<div class="about__section changelog has-subtle-background-color">
<div class="column">
- <h2><?php _e( 'Maintenance Release' ); ?></h2>
+ <h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
+ <p>
+ <?php
+ printf(
+ /* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */
+ _n(
+ '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bug.',
+ '<strong>Version %1$s</strong> addressed some security issues and fixed %2$s bugs.',
+ 41
+ ),
+ '6.3.2',
+ '41'
+ );
+ ?>
+ <?php
+ printf(
+ /* translators: %s: HelpHub URL. */
+ __( 'For more information, see <a href="%s">the release notes</a>.' ),
+ sprintf(
+ /* translators: %s: WordPress version. */
+ esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
+ sanitize_title( '6.3.2' )
+ )
+ );
+ ?>
+ </p>
<p>
<?php
printf(
$shortcode = wp_unslash( $_POST['shortcode'] );
+ // Only process previews for media related shortcodes:
+ $found_shortcodes = get_shortcode_tags_in_content( $shortcode );
+ $media_shortcodes = array(
+ 'audio',
+ 'embed',
+ 'playlist',
+ 'video',
+ 'gallery',
+ );
+
+ $other_shortcodes = array_diff( $found_shortcodes, $media_shortcodes );
+
+ if ( ! empty( $other_shortcodes ) ) {
+ wp_send_json_error();
+ }
+
if ( ! empty( $_POST['post_ID'] ) ) {
$post = get_post( (int) $_POST['post_ID'] );
}
// The embed shortcode requires a post.
if ( ! $post || ! current_user_can( 'edit_post', $post->ID ) ) {
- if ( 'embed' === $shortcode ) {
+ if ( in_array( 'embed', $found_shortcodes, true ) ) {
wp_send_json_error();
}
} else {
* @since 2.8.0
* @since 3.7.0 The `$args` parameter was added, making clearing the plugin update cache optional.
*
+ * @global string $wp_version The WordPress version string.
+ *
* @param string[] $plugins Array of paths to plugin files relative to the plugins directory.
* @param array $args {
* Optional. Other arguments for upgrading several plugins at once.
* @return array|false An array of results indexed by plugin file, or false if unable to connect to the filesystem.
*/
public function bulk_upgrade( $plugins, $args = array() ) {
+ global $wp_version;
+
$defaults = array(
'clear_update_cache' => true,
);
$this->skin->plugin_active = is_plugin_active( $plugin );
- $result = $this->run(
- array(
- 'package' => $r->package,
- 'destination' => WP_PLUGIN_DIR,
- 'clear_destination' => true,
- 'clear_working' => true,
- 'is_multi' => true,
- 'hook_extra' => array(
- 'plugin' => $plugin,
- 'temp_backup' => array(
- 'slug' => dirname( $plugin ),
- 'src' => WP_PLUGIN_DIR,
- 'dir' => 'plugins',
+ if ( isset( $r->requires ) && ! is_wp_version_compatible( $r->requires ) ) {
+ $result = new WP_Error(
+ 'incompatible_wp_required_version',
+ sprintf(
+ /* translators: 1: Current WordPress version, 2: WordPress version required by the new plugin version. */
+ __( 'Your WordPress version is %1$s, however the new plugin version requires %2$s.' ),
+ $wp_version,
+ $r->requires
+ )
+ );
+
+ $this->skin->before( $result );
+ $this->skin->error( $result );
+ $this->skin->after();
+ } elseif ( isset( $r->requires_php ) && ! is_php_version_compatible( $r->requires_php ) ) {
+ $result = new WP_Error(
+ 'incompatible_php_required_version',
+ sprintf(
+ /* translators: 1: Current PHP version, 2: PHP version required by the new plugin version. */
+ __( 'The PHP version on your server is %1$s, however the new plugin version requires %2$s.' ),
+ PHP_VERSION,
+ $r->requires_php
+ )
+ );
+
+ $this->skin->before( $result );
+ $this->skin->error( $result );
+ $this->skin->after();
+ } else {
+ add_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
+ $result = $this->run(
+ array(
+ 'package' => $r->package,
+ 'destination' => WP_PLUGIN_DIR,
+ 'clear_destination' => true,
+ 'clear_working' => true,
+ 'is_multi' => true,
+ 'hook_extra' => array(
+ 'plugin' => $plugin,
+ 'temp_backup' => array(
+ 'slug' => dirname( $plugin ),
+ 'src' => WP_PLUGIN_DIR,
+ 'dir' => 'plugins',
+ ),
),
- ),
- )
- );
+ )
+ );
+ remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) );
+ }
$results[ $plugin ] = $result;
$this->user_can = current_user_can( 'edit_comment', $comment->comment_ID );
+ $edit_post_cap = $post ? 'edit_post' : 'edit_posts';
+ if (
+ current_user_can( $edit_post_cap, $comment->comment_post_ID ) ||
+ (
+ empty( $post->post_password ) &&
+ current_user_can( 'read_post', $comment->comment_post_ID )
+ )
+ ) {
+ // The user has access to the post
+ } else {
+ return false;
+ }
+
echo "<tr id='comment-$comment->comment_ID' class='$the_comment_class'>";
$this->single_row_columns( $comment );
echo "</tr>\n";
$pending_comments_number
);
+ $post_object = get_post( $post_id );
+ $edit_post_cap = $post_object ? 'edit_post' : 'edit_posts';
+ if (
+ current_user_can( $edit_post_cap, $post_id ) ||
+ (
+ empty( $post_object->post_password ) &&
+ current_user_can( 'read_post', $post_id )
+ )
+ ) {
+ // The user has access to the post and thus can see comments
+ } else {
+ return false;
+ }
+
if ( ! $approved_comments && ! $pending_comments ) {
// No comments at all.
printf(
if ( ! $wp_filesystem->delete( $temp_backup_dir, true ) ) {
$errors->add(
'temp_backup_delete_failed',
- sprintf( $this->strings['temp_backup_delete_failed'] ),
- $args['slug']
+ sprintf( $this->strings['temp_backup_delete_failed'], $args['slug'] )
);
continue;
}
echo '<ul id="the-comment-list" data-wp-lists="list:comment">';
foreach ( $comments as $comment ) {
- _wp_dashboard_recent_comments_row( $comment );
+ $comment_post = get_post( $comment->comment_post_ID );
+ if (
+ current_user_can( 'edit_post', $comment->comment_post_ID ) ||
+ (
+ empty( $comment_post->post_password ) &&
+ current_user_can( 'read_post', $comment->comment_post_ID )
+ )
+ ) {
+ _wp_dashboard_recent_comments_row( $comment );
+ }
}
echo '</ul>';
*
* @since 5.6.0
* @since 6.2.0 Allow insecure HTTP connections for the local environment.
+ * @since 6.3.2 Validates the success and reject URLs to prevent javascript pseudo protocol being executed.
*
* @param array $request {
* The array of request data. All arguments are optional and may be empty.
* @return true|WP_Error True if the request is valid, a WP_Error object contains errors if not.
*/
function wp_is_authorize_application_password_request_valid( $request, $user ) {
- $error = new WP_Error();
- $is_local = 'local' === wp_get_environment_type();
-
- if ( ! empty( $request['success_url'] ) ) {
- $scheme = wp_parse_url( $request['success_url'], PHP_URL_SCHEME );
+ $error = new WP_Error();
- if ( 'http' === $scheme && ! $is_local ) {
+ if ( isset( $request['success_url'] ) ) {
+ $validated_success_url = wp_is_authorize_application_redirect_url_valid( $request['success_url'] );
+ if ( is_wp_error( $validated_success_url ) ) {
$error->add(
- 'invalid_redirect_scheme',
- __( 'The success URL must be served over a secure connection.' )
+ $validated_success_url->get_error_code(),
+ $validated_success_url->get_error_message()
);
}
}
- if ( ! empty( $request['reject_url'] ) ) {
- $scheme = wp_parse_url( $request['reject_url'], PHP_URL_SCHEME );
-
- if ( 'http' === $scheme && ! $is_local ) {
+ if ( isset( $request['reject_url'] ) ) {
+ $validated_reject_url = wp_is_authorize_application_redirect_url_valid( $request['reject_url'] );
+ if ( is_wp_error( $validated_reject_url ) ) {
$error->add(
- 'invalid_redirect_scheme',
- __( 'The rejection URL must be served over a secure connection.' )
+ $validated_reject_url->get_error_code(),
+ $validated_reject_url->get_error_message()
);
}
}
return true;
}
+
+/**
+ * Validates the redirect URL protocol scheme. The protocol can be anything except http and javascript.
+ *
+ * @since 6.3.2
+ *
+ * @param string $url - The redirect URL to be validated.
+ *
+ * @return true|WP_Error True if the redirect URL is valid, a WP_Error object otherwise.
+ */
+function wp_is_authorize_application_redirect_url_valid( $url ) {
+ $bad_protocols = array( 'javascript', 'data' );
+ if ( empty( $url ) ) {
+ return true;
+ }
+
+ // Based on https://www.rfc-editor.org/rfc/rfc2396#section-3.1
+ $valid_scheme_regex = '/^[a-zA-Z][a-zA-Z0-9+.-]*:/';
+ if ( ! preg_match( $valid_scheme_regex, $url ) ) {
+ return new WP_Error(
+ 'invalid_redirect_url_format',
+ __( 'Invalid URL format.' )
+ );
+ }
+
+ /**
+ * Filters the list of invalid protocols used in applications redirect URLs.
+ *
+ * @since 6.3.2
+ *
+ * @param string[] $bad_protocols Array of invalid protocols.
+ * @param string $url The redirect URL to be validated.
+ */
+ $invalid_protocols = array_map( 'strtolower', apply_filters( 'wp_authorize_application_redirect_url_invalid_protocols', $bad_protocols, $url ) );
+
+ $scheme = wp_parse_url( $url, PHP_URL_SCHEME );
+ $host = wp_parse_url( $url, PHP_URL_HOST );
+ $is_local = 'local' === wp_get_environment_type();
+
+ // validates if the proper URI format is applied to the $url
+ if ( empty( $host ) || empty( $scheme ) || in_array( strtolower( $scheme ), $invalid_protocols, true ) ) {
+ return new WP_Error(
+ 'invalid_redirect_url_format',
+ __( 'Invalid URL format.' )
+ );
+ }
+
+ if ( 'http' === $scheme && ! $is_local ) {
+ return new WP_Error(
+ 'invalid_redirect_scheme',
+ __( 'The URL must be served over a secure connection.' )
+ );
+ }
+
+ return true;
+}
@version 1.0
*/
-class AlxPosts extends WP_Widget {
+class AlxPosts extends WP_Widget
+{
-/* Constructor
-/* ------------------------------------ */
- function AlxPosts() {
- parent::__construct( false, 'AlxPosts', array('description' => 'Display posts from a category', 'classname' => 'widget_alx_posts') );;
- }
-
-/* Widget
-/* ------------------------------------ */
- public function widget($args, $instance) {
- extract( $args );
- $instance['title']?NULL:$instance['title']='';
- $title = apply_filters('widget_title',$instance['title']);
- $output = $before_widget."\n";
- if($title)
- $output .= $before_title.$title.$after_title;
- ob_start();
-
-?>
-
- <?php
- $posts = new WP_Query( array(
- 'post_type' => array( 'post' ),
- 'showposts' => $instance['posts_num'],
- 'cat' => $instance['posts_cat_id'],
- 'ignore_sticky_posts' => true,
- 'orderby' => $instance['posts_orderby'],
- 'order' => 'dsc',
- 'date_query' => array(
- array(
- 'after' => $instance['posts_time'],
- ),
- ),
- ) );
- ?>
-
- <ul class="alx-posts group <?php if($instance['posts_thumb']) { echo 'thumbs-enabled'; } ?>">
- <?php while ($posts->have_posts()): $posts->the_post(); ?>
- <li>
-
- <?php if($instance['posts_thumb']) { // Thumbnails enabled? ?>
- <div class="post-item-thumbnail">
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
- <?php if ( has_post_thumbnail() ): ?>
- <?php the_post_thumbnail('thumb-medium'); ?>
- <?php elseif ( ot_get_option('placeholder') != 'off' ): ?>
- <img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png" alt="<?php the_title(); ?>" />
- <?php endif; ?>
- <?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
- <?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
- <?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-star"></i></span>'; ?>
- </a>
- </div>
- <?php } ?>
-
- <div class="post-item-inner group">
- <?php if($instance['posts_category']) { ?><p class="post-item-category"><?php the_category(' / '); ?></p><?php } ?>
- <p class="post-item-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></p>
- <?php if($instance['posts_date']) { ?><p class="post-item-date"><?php the_time('j M, Y'); ?></p><?php } ?>
- </div>
-
- </li>
- <?php endwhile; ?>
- <?php wp_reset_postdata(); ?>
- </ul><!--/.alx-posts-->
+ /* Constructor
+ /* ------------------------------------ */
+ function __construct()
+ {
+ parent::__construct(false, 'AlxPosts', array('description' => 'Display posts from a category', 'classname' => 'widget_alx_posts'));;
+ }
-<?php
- $output .= ob_get_clean();
- $output .= $after_widget."\n";
- echo $output;
- }
-
-/* Widget update
-/* ------------------------------------ */
- public function update($new,$old) {
- $instance = $old;
- $instance['title'] = strip_tags($new['title']);
- // Posts
- $instance['posts_thumb'] = $new['posts_thumb']?1:0;
- $instance['posts_category'] = $new['posts_category']?1:0;
- $instance['posts_date'] = $new['posts_date']?1:0;
- $instance['posts_num'] = strip_tags($new['posts_num']);
- $instance['posts_cat_id'] = strip_tags($new['posts_cat_id']);
- $instance['posts_orderby'] = strip_tags($new['posts_orderby']);
- $instance['posts_time'] = strip_tags($new['posts_time']);
- return $instance;
- }
-
-/* Widget form
-/* ------------------------------------ */
- public function form($instance) {
- // Default widget settings
- $defaults = array(
- 'title' => '',
- // Posts
- 'posts_thumb' => 1,
- 'posts_category' => 1,
- 'posts_date' => 1,
- 'posts_num' => '4',
- 'posts_cat_id' => '0',
- 'posts_orderby' => 'date',
- 'posts_time' => '0',
- );
- $instance = wp_parse_args( (array) $instance, $defaults );
-?>
-
- <style>
- .widget .widget-inside .alx-options-posts .postform { width: 100%; }
- .widget .widget-inside .alx-options-posts p { margin: 3px 0; }
- .widget .widget-inside .alx-options-posts hr { margin: 20px 0 10px; }
- .widget .widget-inside .alx-options-posts h4 { margin-bottom: 10px; }
- </style>
-
- <div class="alx-options-posts">
- <p>
- <label for="<?php echo $this->get_field_id('title'); ?>">Title:</label>
- <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance["title"]); ?>" />
- </p>
-
- <h4>List Posts</h4>
-
- <p>
- <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('posts_thumb'); ?>" name="<?php echo $this->get_field_name('posts_thumb'); ?>" <?php checked( (bool) $instance["posts_thumb"], true ); ?>>
- <label for="<?php echo $this->get_field_id('posts_thumb'); ?>">Show thumbnails</label>
- </p>
- <p>
- <label style="width: 55%; display: inline-block;" for="<?php echo $this->get_field_id("posts_num"); ?>">Items to show</label>
- <input style="width:20%;" id="<?php echo $this->get_field_id("posts_num"); ?>" name="<?php echo $this->get_field_name("posts_num"); ?>" type="text" value="<?php echo absint($instance["posts_num"]); ?>" size='3' />
- </p>
- <p>
- <label style="width: 100%; display: inline-block;" for="<?php echo $this->get_field_id("posts_cat_id"); ?>">Category:</label>
- <?php wp_dropdown_categories( array( 'name' => $this->get_field_name("posts_cat_id"), 'selected' => $instance["posts_cat_id"], 'show_option_all' => 'All', 'show_count' => true ) ); ?>
- </p>
- <p style="padding-top: 0.3em;">
- <label style="width: 100%; display: inline-block;" for="<?php echo $this->get_field_id("posts_orderby"); ?>">Order by:</label>
- <select style="width: 100%;" id="<?php echo $this->get_field_id("posts_orderby"); ?>" name="<?php echo $this->get_field_name("posts_orderby"); ?>">
- <option value="date"<?php selected( $instance["posts_orderby"], "date" ); ?>>Most recent</option>
- <option value="comment_count"<?php selected( $instance["posts_orderby"], "comment_count" ); ?>>Most commented</option>
- <option value="rand"<?php selected( $instance["posts_orderby"], "rand" ); ?>>Random</option>
- </select>
- </p>
- <p style="padding-top: 0.3em;">
- <label style="width: 100%; display: inline-block;" for="<?php echo $this->get_field_id("posts_time"); ?>">Posts from:</label>
- <select style="width: 100%;" id="<?php echo $this->get_field_id("posts_time"); ?>" name="<?php echo $this->get_field_name("posts_time"); ?>">
- <option value="0"<?php selected( $instance["posts_time"], "0" ); ?>>All time</option>
- <option value="1 year ago"<?php selected( $instance["posts_time"], "1 year ago" ); ?>>This year</option>
- <option value="1 month ago"<?php selected( $instance["posts_time"], "1 month ago" ); ?>>This month</option>
- <option value="1 week ago"<?php selected( $instance["posts_time"], "1 week ago" ); ?>>This week</option>
- <option value="1 day ago"<?php selected( $instance["posts_time"], "1 day ago" ); ?>>Past 24 hours</option>
- </select>
- </p>
-
- <hr>
- <h4>Post Info</h4>
-
- <p>
- <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('posts_category'); ?>" name="<?php echo $this->get_field_name('posts_category'); ?>" <?php checked( (bool) $instance["posts_category"], true ); ?>>
- <label for="<?php echo $this->get_field_id('posts_category'); ?>">Show categories</label>
- </p>
- <p>
- <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('posts_date'); ?>" name="<?php echo $this->get_field_name('posts_date'); ?>" <?php checked( (bool) $instance["posts_date"], true ); ?>>
- <label for="<?php echo $this->get_field_id('posts_date'); ?>">Show dates</label>
- </p>
-
- <hr>
-
- </div>
-<?php
+ /* Widget
+ /* ------------------------------------ */
+ public function widget($args, $instance)
+ {
+ extract($args);
+ $instance['title'] ? NULL : $instance['title'] = '';
+ $title = apply_filters('widget_title', $instance['title']);
+ $output = $before_widget . "\n";
+ if ($title)
+ $output .= $before_title . $title . $after_title;
+ ob_start();
-}
+ ?>
+
+ <?php
+ $posts = new WP_Query(array(
+ 'post_type' => array('post'),
+ 'showposts' => $instance['posts_num'],
+ 'cat' => $instance['posts_cat_id'],
+ 'ignore_sticky_posts' => true,
+ 'orderby' => $instance['posts_orderby'],
+ 'order' => 'dsc',
+ 'date_query' => array(
+ array(
+ 'after' => $instance['posts_time'],
+ ),
+ ),
+ ));
+ ?>
+
+ <ul class="alx-posts group <?php if ($instance['posts_thumb']) {
+ echo 'thumbs-enabled';
+ } ?>">
+ <?php while ($posts->have_posts()): $posts->the_post(); ?>
+ <li>
+
+ <?php if ($instance['posts_thumb']) { // Thumbnails enabled? ?>
+ <div class="post-item-thumbnail">
+ <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
+ <?php if (has_post_thumbnail()): ?>
+ <?php the_post_thumbnail('thumb-medium'); ?>
+ <?php elseif (ot_get_option('placeholder') != 'off'): ?>
+ <img src="<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png"
+ alt="<?php the_title(); ?>"/>
+ <?php endif; ?>
+ <?php if (has_post_format('video') && !is_sticky()) echo '<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
+ <?php if (has_post_format('audio') && !is_sticky()) echo '<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
+ <?php if (is_sticky()) echo '<span class="thumb-icon small"><i class="fa fa-star"></i></span>'; ?>
+ </a>
+ </div>
+ <?php } ?>
+
+ <div class="post-item-inner group">
+ <?php if ($instance['posts_category']) { ?><p
+ class="post-item-category"><?php the_category(' / '); ?></p><?php } ?>
+ <p class="post-item-title"><a href="<?php the_permalink(); ?>" rel="bookmark"
+ title="<?php the_title(); ?>"><?php the_title(); ?></a></p>
+ <?php if ($instance['posts_date']) { ?><p
+ class="post-item-date"><?php the_time('j M, Y'); ?></p><?php } ?>
+ </div>
+
+ </li>
+ <?php endwhile; ?>
+ <?php wp_reset_postdata(); ?>
+ </ul><!--/.alx-posts-->
+
+ <?php
+ $output .= ob_get_clean();
+ $output .= $after_widget . "\n";
+ echo $output;
+ }
+
+ /* Widget update
+ /* ------------------------------------ */
+ public function update($new, $old)
+ {
+ $instance = $old;
+ $instance['title'] = strip_tags($new['title']);
+ // Posts
+ $instance['posts_thumb'] = $new['posts_thumb'] ? 1 : 0;
+ $instance['posts_category'] = $new['posts_category'] ? 1 : 0;
+ $instance['posts_date'] = $new['posts_date'] ? 1 : 0;
+ $instance['posts_num'] = strip_tags($new['posts_num']);
+ $instance['posts_cat_id'] = strip_tags($new['posts_cat_id']);
+ $instance['posts_orderby'] = strip_tags($new['posts_orderby']);
+ $instance['posts_time'] = strip_tags($new['posts_time']);
+ return $instance;
+ }
+
+ /* Widget form
+ /* ------------------------------------ */
+ public function form($instance)
+ {
+ // Default widget settings
+ $defaults = array(
+ 'title' => '',
+ // Posts
+ 'posts_thumb' => 1,
+ 'posts_category' => 1,
+ 'posts_date' => 1,
+ 'posts_num' => '4',
+ 'posts_cat_id' => '0',
+ 'posts_orderby' => 'date',
+ 'posts_time' => '0',
+ );
+ $instance = wp_parse_args((array)$instance, $defaults);
+ ?>
+
+ <style>
+ .widget .widget-inside .alx-options-posts .postform {
+ width: 100%;
+ }
+
+ .widget .widget-inside .alx-options-posts p {
+ margin: 3px 0;
+ }
+
+ .widget .widget-inside .alx-options-posts hr {
+ margin: 20px 0 10px;
+ }
+
+ .widget .widget-inside .alx-options-posts h4 {
+ margin-bottom: 10px;
+ }
+ </style>
+
+ <div class="alx-options-posts">
+ <p>
+ <label for="<?php echo $this->get_field_id('title'); ?>">Title:</label>
+ <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>"
+ name="<?php echo $this->get_field_name('title'); ?>" type="text"
+ value="<?php echo esc_attr($instance["title"]); ?>"/>
+ </p>
+
+ <h4>List Posts</h4>
+
+ <p>
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('posts_thumb'); ?>"
+ name="<?php echo $this->get_field_name('posts_thumb'); ?>" <?php checked((bool)$instance["posts_thumb"], true); ?>>
+ <label for="<?php echo $this->get_field_id('posts_thumb'); ?>">Show thumbnails</label>
+ </p>
+ <p>
+ <label style="width: 55%; display: inline-block;" for="<?php echo $this->get_field_id("posts_num"); ?>">Items
+ to show</label>
+ <input style="width:20%;" id="<?php echo $this->get_field_id("posts_num"); ?>"
+ name="<?php echo $this->get_field_name("posts_num"); ?>" type="text"
+ value="<?php echo absint($instance["posts_num"]); ?>" size='3'/>
+ </p>
+ <p>
+ <label style="width: 100%; display: inline-block;"
+ for="<?php echo $this->get_field_id("posts_cat_id"); ?>">Category:</label>
+ <?php wp_dropdown_categories(array('name' => $this->get_field_name("posts_cat_id"), 'selected' => $instance["posts_cat_id"], 'show_option_all' => 'All', 'show_count' => true)); ?>
+ </p>
+ <p style="padding-top: 0.3em;">
+ <label style="width: 100%; display: inline-block;"
+ for="<?php echo $this->get_field_id("posts_orderby"); ?>">Order by:</label>
+ <select style="width: 100%;" id="<?php echo $this->get_field_id("posts_orderby"); ?>"
+ name="<?php echo $this->get_field_name("posts_orderby"); ?>">
+ <option value="date"<?php selected($instance["posts_orderby"], "date"); ?>>Most recent</option>
+ <option value="comment_count"<?php selected($instance["posts_orderby"], "comment_count"); ?>>Most
+ commented
+ </option>
+ <option value="rand"<?php selected($instance["posts_orderby"], "rand"); ?>>Random</option>
+ </select>
+ </p>
+ <p style="padding-top: 0.3em;">
+ <label style="width: 100%; display: inline-block;"
+ for="<?php echo $this->get_field_id("posts_time"); ?>">Posts from:</label>
+ <select style="width: 100%;" id="<?php echo $this->get_field_id("posts_time"); ?>"
+ name="<?php echo $this->get_field_name("posts_time"); ?>">
+ <option value="0"<?php selected($instance["posts_time"], "0"); ?>>All time</option>
+ <option value="1 year ago"<?php selected($instance["posts_time"], "1 year ago"); ?>>This year
+ </option>
+ <option value="1 month ago"<?php selected($instance["posts_time"], "1 month ago"); ?>>This month
+ </option>
+ <option value="1 week ago"<?php selected($instance["posts_time"], "1 week ago"); ?>>This week
+ </option>
+ <option value="1 day ago"<?php selected($instance["posts_time"], "1 day ago"); ?>>Past 24 hours
+ </option>
+ </select>
+ </p>
+
+ <hr>
+ <h4>Post Info</h4>
+
+ <p>
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('posts_category'); ?>"
+ name="<?php echo $this->get_field_name('posts_category'); ?>" <?php checked((bool)$instance["posts_category"], true); ?>>
+ <label for="<?php echo $this->get_field_id('posts_category'); ?>">Show categories</label>
+ </p>
+ <p>
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('posts_date'); ?>"
+ name="<?php echo $this->get_field_name('posts_date'); ?>" <?php checked((bool)$instance["posts_date"], true); ?>>
+ <label for="<?php echo $this->get_field_id('posts_date'); ?>">Show dates</label>
+ </p>
+
+ <hr>
+
+ </div>
+ <?php
+
+ }
}
/* Register widget
/* ------------------------------------ */
-if ( ! function_exists( 'alx_register_widget_posts' ) ) {
+if (!function_exists('alx_register_widget_posts')) {
+
+ function alx_register_widget_posts()
+ {
+ register_widget('AlxPosts');
+ }
- function alx_register_widget_posts() {
- register_widget( 'AlxPosts' );
- }
-
}
-add_action( 'widgets_init', 'alx_register_widget_posts' );
+add_action('widgets_init', 'alx_register_widget_posts');
@version 1.0
*/
-class AlxTabs extends WP_Widget {
+class AlxTabs extends WP_Widget
+{
-/* Constructor
-/* ------------------------------------ */
- function AlxTabs() {
- parent::__construct( false, 'AlxTabs', array('description' => 'List posts, comments, and/or tags with or without tabs.', 'classname' => 'widget_alx_tabs') );;
- }
+ /* Constructor
+ /* ------------------------------------ */
+ function __construct()
+ {
+ parent::__construct(false, 'AlxTabs', array('description' => 'List posts, comments, and/or tags with or without tabs.', 'classname' => 'widget_alx_tabs'));;
+ }
-/* Create tabs-nav
-/* ------------------------------------ */
- private function _create_tabs($tabs,$count) {
- // Borrowed from Jermaine Maree, thanks mate!
- $titles = array(
- 'recent' => __('Recent Posts','rodadocavaco'),
- 'popular' => __('Popular Posts','rodadocavaco'),
- 'comments' => __('Recent Comments','rodadocavaco'),
- 'tags' => __('Tags','rodadocavaco')
- );
- $icons = array(
- 'recent' => 'fa fa-clock-o',
- 'popular' => 'fa fa-star',
- 'comments' => 'fa fa-comments-o',
- 'tags' => 'fa fa-tags'
- );
- $output = sprintf('<ul class="alx-tabs-nav group tab-count-%s">', $count);
- foreach ( $tabs as $tab ) {
- $output .= sprintf('<li class="alx-tab tab-%1$s"><a href="#tab-%2$s" title="%4$s"><i class="%3$s"></i><span>%4$s</span></a></li>',$tab, $tab, $icons[$tab], $titles[$tab]);
- }
- $output .= '</ul>';
- return $output;
- }
-
-/* Widget
-/* ------------------------------------ */
- public function widget($args, $instance) {
- extract( $args );
- $instance['title']?NULL:$instance['title']='';
- $title = apply_filters('widget_title',$instance['title']);
- $output = $before_widget."\n";
- if($title)
- $output .= $before_title.$title.$after_title;
- ob_start();
-
-/* Set tabs-nav order & output it
-/* ------------------------------------ */
- $tabs = array();
- $count = 0;
- $order = array(
- 'recent' => $instance['order_recent'],
- 'popular' => $instance['order_popular'],
- 'comments' => $instance['order_comments'],
- 'tags' => $instance['order_tags']
- );
- asort($order);
- foreach ( $order as $key => $value ) {
- if ( $instance[$key.'_enable'] ) {
- $tabs[] = $key;
- $count++;
- }
- }
- if ( $tabs && ($count > 1) ) { $output .= $this->_create_tabs($tabs,$count); }
-?>
-
- <div class="alx-tabs-container">
+ /* Create tabs-nav
+ /* ------------------------------------ */
+ private function _create_tabs($tabs, $count)
+ {
+ // Borrowed from Jermaine Maree, thanks mate!
+ $titles = array(
+ 'recent' => __('Recent Posts', 'rodadocavaco'),
+ 'popular' => __('Popular Posts', 'rodadocavaco'),
+ 'comments' => __('Recent Comments', 'rodadocavaco'),
+ 'tags' => __('Tags', 'rodadocavaco')
+ );
+ $icons = array(
+ 'recent' => 'fa fa-clock-o',
+ 'popular' => 'fa fa-star',
+ 'comments' => 'fa fa-comments-o',
+ 'tags' => 'fa fa-tags'
+ );
+ $output = sprintf('<ul class="alx-tabs-nav group tab-count-%s">', $count);
+ foreach ($tabs as $tab) {
+ $output .= sprintf('<li class="alx-tab tab-%1$s"><a href="#tab-%2$s" title="%4$s"><i class="%3$s"></i><span>%4$s</span></a></li>', $tab, $tab, $icons[$tab], $titles[$tab]);
+ }
+ $output .= '</ul>';
+ return $output;
+ }
-
- <?php if($instance['recent_enable']) { // Recent posts enabled? ?>
-
- <?php $recent=new WP_Query(); ?>
- <?php $recent->query('showposts='.$instance["recent_num"].'&cat='.$instance["recent_cat_id"].'&ignore_sticky_posts=1');?>
-
- <ul id="tab-recent" class="alx-tab group <?php if($instance['recent_thumbs']) { echo 'thumbs-enabled'; } ?>">
- <?php while ($recent->have_posts()): $recent->the_post(); ?>
- <li>
-
- <?php if($instance['recent_thumbs']) { // Thumbnails enabled? ?>
- <div class="tab-item-thumbnail">
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
- <?php if ( has_post_thumbnail() ): ?>
- <?php the_post_thumbnail('thumb-small'); ?>
- <?php else: ?>
- <img src="<?php echo get_template_directory_uri(); ?>/img/thumb-small.png" alt="<?php the_title(); ?>" />
- <?php endif; ?>
- <?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
- <?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
- <?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-star"></i></span>'; ?>
- </a>
- </div>
- <?php } ?>
-
- <div class="tab-item-inner group">
- <?php if($instance['tabs_category']) { ?><p class="tab-item-category"><?php the_category(' / '); ?></p><?php } ?>
- <p class="tab-item-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></p>
- <?php if($instance['tabs_date']) { ?><p class="tab-item-date"><?php the_time('j M, Y'); ?></p><?php } ?>
- </div>
-
- </li>
- <?php endwhile; ?>
- <?php wp_reset_postdata(); ?>
- </ul><!--/.alx-tab-->
-
- <?php } ?>
-
-
- <?php if($instance['popular_enable']) { // Popular posts enabled? ?>
-
- <?php
- $popular = new WP_Query( array(
- 'post_type' => array( 'post' ),
- 'showposts' => $instance['popular_num'],
- 'cat' => $instance['popular_cat_id'],
- 'ignore_sticky_posts' => true,
- 'orderby' => 'comment_count',
- 'order' => 'dsc',
- 'date_query' => array(
- array(
- 'after' => $instance['popular_time'],
- ),
- ),
- ) );
- ?>
- <ul id="tab-popular" class="alx-tab group <?php if($instance['popular_thumbs']) { echo 'thumbs-enabled'; } ?>">
-
- <?php while ( $popular->have_posts() ): $popular->the_post(); ?>
- <li>
-
- <?php if($instance['popular_thumbs']) { // Thumbnails enabled? ?>
- <div class="tab-item-thumbnail">
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
- <?php if ( has_post_thumbnail() ): ?>
- <?php the_post_thumbnail('thumb-small'); ?>
- <?php else: ?>
- <img src="<?php echo get_template_directory_uri(); ?>/img/thumb-small.png" alt="<?php the_title(); ?>" />
- <?php endif; ?>
- <?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
- <?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
- <?php if ( is_sticky() ) echo'<span class="thumb-icon small"><i class="fa fa-star"></i></span>'; ?>
- </a>
- </div>
- <?php } ?>
-
- <div class="tab-item-inner group">
- <?php if($instance['tabs_category']) { ?><p class="tab-item-category"><?php the_category(' / '); ?></p><?php } ?>
- <p class="tab-item-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></p>
- <?php if($instance['tabs_date']) { ?><p class="tab-item-date"><?php the_time('j M, Y'); ?></p><?php } ?>
- </div>
-
- </li>
- <?php endwhile; ?>
- <?php wp_reset_postdata(); ?>
- </ul><!--/.alx-tab-->
-
- <?php } ?>
-
+ /* Widget
+ /* ------------------------------------ */
+ public function widget($args, $instance)
+ {
+ extract($args);
+ $instance['title'] ? NULL : $instance['title'] = '';
+ $title = apply_filters('widget_title', $instance['title']);
+ $output = $before_widget . "\n";
+ if ($title)
+ $output .= $before_title . $title . $after_title;
+ ob_start();
- <?php if($instance['comments_enable']) { // Recent comments enabled? ?>
-
- <?php $comments = get_comments(array('number'=>$instance["comments_num"],'status'=>'approve','post_status'=>'publish')); ?>
-
- <ul id="tab-comments" class="alx-tab group <?php if($instance['comments_avatars']) { echo 'avatars-enabled'; } ?>">
- <?php foreach ($comments as $comment): ?>
- <li>
-
- <?php if($instance['comments_avatars']) { // Avatars enabled? ?>
- <div class="tab-item-avatar">
- <a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>">
- <?php echo get_avatar($comment->comment_author_email,$size='96'); ?>
- </a>
- </div>
- <?php } ?>
-
- <div class="tab-item-inner group">
- <?php $str=explode(' ',get_comment_excerpt($comment->comment_ID)); $comment_excerpt=implode(' ',array_slice($str,0,11)); if(count($str) > 11 && substr($comment_excerpt,-1)!='.') $comment_excerpt.='...' ?>
- <div class="tab-item-name"><?php echo $comment->comment_author; ?> <?php _e('says:','rodadocavaco'); ?></div>
- <div class="tab-item-comment"><a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"><?php echo $comment_excerpt; ?></a></div>
-
- </div>
-
- </li>
- <?php endforeach; ?>
- </ul><!--/.alx-tab-->
-
- <?php } ?>
-
- <?php if($instance['tags_enable']) { // Tags enabled? ?>
-
- <ul id="tab-tags" class="alx-tab group">
- <li>
- <?php wp_tag_cloud(); ?>
- </li>
- </ul><!--/.alx-tab-->
-
- <?php } ?>
- </div>
+ /* Set tabs-nav order & output it
+ /* ------------------------------------ */
+ $tabs = array();
+ $count = 0;
+ $order = array(
+ 'recent' => $instance['order_recent'],
+ 'popular' => $instance['order_popular'],
+ 'comments' => $instance['order_comments'],
+ 'tags' => $instance['order_tags']
+ );
+ asort($order);
+ foreach ($order as $key => $value) {
+ if ($instance[$key . '_enable']) {
+ $tabs[] = $key;
+ $count++;
+ }
+ }
+ if ($tabs && ($count > 1)) {
+ $output .= $this->_create_tabs($tabs, $count);
+ }
+ ?>
-<?php
- $output .= ob_get_clean();
- $output .= $after_widget."\n";
- echo $output;
- }
-
-/* Widget update
-/* ------------------------------------ */
- public function update($new,$old) {
- $instance = $old;
- $instance['title'] = strip_tags($new['title']);
- $instance['tabs_category'] = $new['tabs_category']?1:0;
- $instance['tabs_date'] = $new['tabs_date']?1:0;
- // Recent posts
- $instance['recent_enable'] = $new['recent_enable']?1:0;
- $instance['recent_thumbs'] = $new['recent_thumbs']?1:0;
- $instance['recent_cat_id'] = strip_tags($new['recent_cat_id']);
- $instance['recent_num'] = strip_tags($new['recent_num']);
- // Popular posts
- $instance['popular_enable'] = $new['popular_enable']?1:0;
- $instance['popular_thumbs'] = $new['popular_thumbs']?1:0;
- $instance['popular_cat_id'] = strip_tags($new['popular_cat_id']);
- $instance['popular_time'] = strip_tags($new['popular_time']);
- $instance['popular_num'] = strip_tags($new['popular_num']);
- // Recent comments
- $instance['comments_enable'] = $new['comments_enable']?1:0;
- $instance['comments_avatars'] = $new['comments_avatars']?1:0;
- $instance['comments_num'] = strip_tags($new['comments_num']);
- // Tags
- $instance['tags_enable'] = $new['tags_enable']?1:0;
- // Order
- $instance['order_recent'] = strip_tags($new['order_recent']);
- $instance['order_popular'] = strip_tags($new['order_popular']);
- $instance['order_comments'] = strip_tags($new['order_comments']);
- $instance['order_tags'] = strip_tags($new['order_tags']);
- return $instance;
- }
-
-/* Widget form
-/* ------------------------------------ */
- public function form($instance) {
- // Default widget settings
- $defaults = array(
- 'title' => '',
- 'tabs_category' => 1,
- 'tabs_date' => 1,
- // Recent posts
- 'recent_enable' => 1,
- 'recent_thumbs' => 1,
- 'recent_cat_id' => '0',
- 'recent_num' => '5',
- // Popular posts
- 'popular_enable' => 1,
- 'popular_thumbs' => 1,
- 'popular_cat_id' => '0',
- 'popular_time' => '0',
- 'popular_num' => '5',
- // Recent comments
- 'comments_enable' => 1,
- 'comments_avatars' => 1,
- 'comments_num' => '5',
- // Tags
- 'tags_enable' => 1,
- // Order
- 'order_recent' => '1',
- 'order_popular' => '2',
- 'order_comments' => '3',
- 'order_tags' => '4',
- );
- $instance = wp_parse_args( (array) $instance, $defaults );
-?>
-
- <style>
- .widget .widget-inside .alx-options-tabs .postform { width: 100%; }
- .widget .widget-inside .alx-options-tabs p { margin: 3px 0; }
- .widget .widget-inside .alx-options-tabs hr { margin: 20px 0 10px; }
- .widget .widget-inside .alx-options-tabs h4 { margin-bottom: 10px; }
- </style>
-
- <div class="alx-options-tabs">
- <p>
- <label for="<?php echo $this->get_field_id('title'); ?>">Title:</label>
- <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance["title"]); ?>" />
- </p>
-
- <h4>Recent Posts</h4>
-
- <p>
- <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('recent_enable'); ?>" name="<?php echo $this->get_field_name('recent_enable'); ?>" <?php checked( (bool) $instance["recent_enable"], true ); ?>>
- <label for="<?php echo $this->get_field_id('recent_enable'); ?>">Enable recent posts</label>
- </p>
- <p>
- <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('recent_thumbs'); ?>" name="<?php echo $this->get_field_name('recent_thumbs'); ?>" <?php checked( (bool) $instance["recent_thumbs"], true ); ?>>
- <label for="<?php echo $this->get_field_id('recent_thumbs'); ?>">Show thumbnails</label>
- </p>
- <p>
- <label style="width: 55%; display: inline-block;" for="<?php echo $this->get_field_id("recent_num"); ?>">Items to show</label>
- <input style="width:20%;" id="<?php echo $this->get_field_id("recent_num"); ?>" name="<?php echo $this->get_field_name("recent_num"); ?>" type="text" value="<?php echo absint($instance["recent_num"]); ?>" size='3' />
- </p>
- <p>
- <label style="width: 100%; display: inline-block;" for="<?php echo $this->get_field_id("recent_cat_id"); ?>">Category:</label>
- <?php wp_dropdown_categories( array( 'name' => $this->get_field_name("recent_cat_id"), 'selected' => $instance["recent_cat_id"], 'show_option_all' => 'All', 'show_count' => true ) ); ?>
- </p>
-
- <hr>
- <h4>Most Popular</h4>
-
- <p>
- <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('popular_enable'); ?>" name="<?php echo $this->get_field_name('popular_enable'); ?>" <?php checked( (bool) $instance["popular_enable"], true ); ?>>
- <label for="<?php echo $this->get_field_id('popular_enable'); ?>">Enable most popular posts</label>
- </p>
- <p>
- <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('popular_thumbs'); ?>" name="<?php echo $this->get_field_name('popular_thumbs'); ?>" <?php checked( (bool) $instance["popular_thumbs"], true ); ?>>
- <label for="<?php echo $this->get_field_id('popular_thumbs'); ?>">Show thumbnails</label>
- </p>
- <p>
- <label style="width: 55%; display: inline-block;" for="<?php echo $this->get_field_id("popular_num"); ?>">Items to show</label>
- <input style="width:20%;" id="<?php echo $this->get_field_id("popular_num"); ?>" name="<?php echo $this->get_field_name("popular_num"); ?>" type="text" value="<?php echo absint($instance["popular_num"]); ?>" size='3' />
- </p>
- <p>
- <label style="width: 100%; display: inline-block;" for="<?php echo $this->get_field_id("popular_cat_id"); ?>">Category:</label>
- <?php wp_dropdown_categories( array( 'name' => $this->get_field_name("popular_cat_id"), 'selected' => $instance["popular_cat_id"], 'show_option_all' => 'All', 'show_count' => true ) ); ?>
- </p>
- <p style="padding-top: 0.3em;">
- <label style="width: 100%; display: inline-block;" for="<?php echo $this->get_field_id("popular_time"); ?>">Post with most comments from:</label>
- <select style="width: 100%;" id="<?php echo $this->get_field_id("popular_time"); ?>" name="<?php echo $this->get_field_name("popular_time"); ?>">
- <option value="0"<?php selected( $instance["popular_time"], "0" ); ?>>All time</option>
- <option value="1 year ago"<?php selected( $instance["popular_time"], "1 year ago" ); ?>>This year</option>
- <option value="1 month ago"<?php selected( $instance["popular_time"], "1 month ago" ); ?>>This month</option>
- <option value="1 week ago"<?php selected( $instance["popular_time"], "1 week ago" ); ?>>This week</option>
- <option value="1 day ago"<?php selected( $instance["popular_time"], "1 day ago" ); ?>>Past 24 hours</option>
- </select>
- </p>
-
- <hr>
- <h4>Recent Comments</h4>
-
- <p>
- <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('comments_enable'); ?>" name="<?php echo $this->get_field_name('comments_enable'); ?>" <?php checked( (bool) $instance["comments_enable"], true ); ?>>
- <label for="<?php echo $this->get_field_id('comments_enable'); ?>">Enable recent comments</label>
- </p>
- <p>
- <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('comments_avatars'); ?>" name="<?php echo $this->get_field_name('comments_avatars'); ?>" <?php checked( (bool) $instance["comments_avatars"], true ); ?>>
- <label for="<?php echo $this->get_field_id('comments_avatars'); ?>">Show avatars</label>
- </p>
- <p>
- <label style="width: 55%; display: inline-block;" for="<?php echo $this->get_field_id("comments_num"); ?>">Items to show</label>
- <input style="width:20%;" id="<?php echo $this->get_field_id("comments_num"); ?>" name="<?php echo $this->get_field_name("comments_num"); ?>" type="text" value="<?php echo absint($instance["comments_num"]); ?>" size='3' />
- </p>
-
- <hr>
- <h4>Tags</h4>
-
- <p>
- <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('tags_enable'); ?>" name="<?php echo $this->get_field_name('tags_enable'); ?>" <?php checked( (bool) $instance["tags_enable"], true ); ?>>
- <label for="<?php echo $this->get_field_id('tags_enable'); ?>">Enable tags</label>
- </p>
-
- <hr>
- <h4>Tab Order</h4>
-
- <p>
- <label style="width: 55%; display: inline-block;" for="<?php echo $this->get_field_id("order_recent"); ?>">Recent posts</label>
- <input class="widefat" style="width:20%;" type="text" id="<?php echo $this->get_field_id("order_recent"); ?>" name="<?php echo $this->get_field_name("order_recent"); ?>" value="<?php echo $instance["order_recent"]; ?>" />
- </p>
- <p>
- <label style="width: 55%; display: inline-block;" for="<?php echo $this->get_field_id("order_popular"); ?>">Most popular</label>
- <input class="widefat" style="width:20%;" type="text" id="<?php echo $this->get_field_id("order_popular"); ?>" name="<?php echo $this->get_field_name("order_popular"); ?>" value="<?php echo $instance["order_popular"]; ?>" />
- </p>
- <p>
- <label style="width: 55%; display: inline-block;" for="<?php echo $this->get_field_id("order_comments"); ?>">Recent comments</label>
- <input class="widefat" style="width:20%;" type="text" id="<?php echo $this->get_field_id("order_comments"); ?>" name="<?php echo $this->get_field_name("order_comments"); ?>" value="<?php echo $instance["order_comments"]; ?>" />
- </p>
- <p>
- <label style="width: 55%; display: inline-block;" for="<?php echo $this->get_field_id("order_tags"); ?>">Tags</label>
- <input class="widefat" style="width:20%;" type="text" id="<?php echo $this->get_field_id("order_tags"); ?>" name="<?php echo $this->get_field_name("order_tags"); ?>" value="<?php echo $instance["order_tags"]; ?>" />
- </p>
-
- <hr>
- <h4>Tab Info</h4>
-
- <p>
- <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('tabs_category'); ?>" name="<?php echo $this->get_field_name('tabs_category'); ?>" <?php checked( (bool) $instance["tabs_category"], true ); ?>>
- <label for="<?php echo $this->get_field_id('tabs_category'); ?>">Show categories</label>
- </p>
- <p>
- <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('tabs_date'); ?>" name="<?php echo $this->get_field_name('tabs_date'); ?>" <?php checked( (bool) $instance["tabs_date"], true ); ?>>
- <label for="<?php echo $this->get_field_id('tabs_date'); ?>">Show dates</label>
- </p>
-
- <hr>
-
- </div>
-<?php
+ <div class="alx-tabs-container">
-}
+
+ <?php if ($instance['recent_enable']) { // Recent posts enabled? ?>
+
+ <?php $recent = new WP_Query(); ?>
+ <?php $recent->query('showposts=' . $instance["recent_num"] . '&cat=' . $instance["recent_cat_id"] . '&ignore_sticky_posts=1'); ?>
+
+ <ul id="tab-recent" class="alx-tab group <?php if ($instance['recent_thumbs']) {
+ echo 'thumbs-enabled';
+ } ?>">
+ <?php while ($recent->have_posts()): $recent->the_post(); ?>
+ <li>
+
+ <?php if ($instance['recent_thumbs']) { // Thumbnails enabled? ?>
+ <div class="tab-item-thumbnail">
+ <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
+ <?php if (has_post_thumbnail()): ?>
+ <?php the_post_thumbnail('thumb-small'); ?>
+ <?php else: ?>
+ <img src="<?php echo get_template_directory_uri(); ?>/img/thumb-small.png"
+ alt="<?php the_title(); ?>"/>
+ <?php endif; ?>
+ <?php if (has_post_format('video') && !is_sticky()) echo '<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
+ <?php if (has_post_format('audio') && !is_sticky()) echo '<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
+ <?php if (is_sticky()) echo '<span class="thumb-icon small"><i class="fa fa-star"></i></span>'; ?>
+ </a>
+ </div>
+ <?php } ?>
+
+ <div class="tab-item-inner group">
+ <?php if ($instance['tabs_category']) { ?><p
+ class="tab-item-category"><?php the_category(' / '); ?></p><?php } ?>
+ <p class="tab-item-title"><a href="<?php the_permalink(); ?>" rel="bookmark"
+ title="<?php the_title(); ?>"><?php the_title(); ?></a></p>
+ <?php if ($instance['tabs_date']) { ?><p
+ class="tab-item-date"><?php the_time('j M, Y'); ?></p><?php } ?>
+ </div>
+
+ </li>
+ <?php endwhile; ?>
+ <?php wp_reset_postdata(); ?>
+ </ul><!--/.alx-tab-->
+
+ <?php } ?>
+
+
+ <?php if ($instance['popular_enable']) { // Popular posts enabled? ?>
+
+ <?php
+ $popular = new WP_Query(array(
+ 'post_type' => array('post'),
+ 'showposts' => $instance['popular_num'],
+ 'cat' => $instance['popular_cat_id'],
+ 'ignore_sticky_posts' => true,
+ 'orderby' => 'comment_count',
+ 'order' => 'dsc',
+ 'date_query' => array(
+ array(
+ 'after' => $instance['popular_time'],
+ ),
+ ),
+ ));
+ ?>
+ <ul id="tab-popular" class="alx-tab group <?php if ($instance['popular_thumbs']) {
+ echo 'thumbs-enabled';
+ } ?>">
+
+ <?php while ($popular->have_posts()): $popular->the_post(); ?>
+ <li>
+
+ <?php if ($instance['popular_thumbs']) { // Thumbnails enabled? ?>
+ <div class="tab-item-thumbnail">
+ <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
+ <?php if (has_post_thumbnail()): ?>
+ <?php the_post_thumbnail('thumb-small'); ?>
+ <?php else: ?>
+ <img src="<?php echo get_template_directory_uri(); ?>/img/thumb-small.png"
+ alt="<?php the_title(); ?>"/>
+ <?php endif; ?>
+ <?php if (has_post_format('video') && !is_sticky()) echo '<span class="thumb-icon small"><i class="fa fa-play"></i></span>'; ?>
+ <?php if (has_post_format('audio') && !is_sticky()) echo '<span class="thumb-icon small"><i class="fa fa-volume-up"></i></span>'; ?>
+ <?php if (is_sticky()) echo '<span class="thumb-icon small"><i class="fa fa-star"></i></span>'; ?>
+ </a>
+ </div>
+ <?php } ?>
+
+ <div class="tab-item-inner group">
+ <?php if ($instance['tabs_category']) { ?><p
+ class="tab-item-category"><?php the_category(' / '); ?></p><?php } ?>
+ <p class="tab-item-title"><a href="<?php the_permalink(); ?>" rel="bookmark"
+ title="<?php the_title(); ?>"><?php the_title(); ?></a></p>
+ <?php if ($instance['tabs_date']) { ?><p
+ class="tab-item-date"><?php the_time('j M, Y'); ?></p><?php } ?>
+ </div>
+
+ </li>
+ <?php endwhile; ?>
+ <?php wp_reset_postdata(); ?>
+ </ul><!--/.alx-tab-->
+
+ <?php } ?>
+
+
+ <?php if ($instance['comments_enable']) { // Recent comments enabled? ?>
+
+ <?php $comments = get_comments(array('number' => $instance["comments_num"], 'status' => 'approve', 'post_status' => 'publish')); ?>
+
+ <ul id="tab-comments" class="alx-tab group <?php if ($instance['comments_avatars']) {
+ echo 'avatars-enabled';
+ } ?>">
+ <?php foreach ($comments as $comment): ?>
+ <li>
+
+ <?php if ($instance['comments_avatars']) { // Avatars enabled? ?>
+ <div class="tab-item-avatar">
+ <a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>">
+ <?php echo get_avatar($comment->comment_author_email, $size = '96'); ?>
+ </a>
+ </div>
+ <?php } ?>
+
+ <div class="tab-item-inner group">
+ <?php $str = explode(' ', get_comment_excerpt($comment->comment_ID));
+ $comment_excerpt = implode(' ', array_slice($str, 0, 11));
+ if (count($str) > 11 && substr($comment_excerpt, -1) != '.') $comment_excerpt .= '...' ?>
+ <div class="tab-item-name"><?php echo $comment->comment_author; ?><?php _e('says:', 'rodadocavaco'); ?></div>
+ <div class="tab-item-comment"><a
+ href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"><?php echo $comment_excerpt; ?></a>
+ </div>
+
+ </div>
+
+ </li>
+ <?php endforeach; ?>
+ </ul><!--/.alx-tab-->
+
+ <?php } ?>
+
+ <?php if ($instance['tags_enable']) { // Tags enabled? ?>
+
+ <ul id="tab-tags" class="alx-tab group">
+ <li>
+ <?php wp_tag_cloud(); ?>
+ </li>
+ </ul><!--/.alx-tab-->
+
+ <?php } ?>
+ </div>
+
+ <?php
+ $output .= ob_get_clean();
+ $output .= $after_widget . "\n";
+ echo $output;
+ }
+
+ /* Widget update
+ /* ------------------------------------ */
+ public function update($new, $old)
+ {
+ $instance = $old;
+ $instance['title'] = strip_tags($new['title']);
+ $instance['tabs_category'] = $new['tabs_category'] ? 1 : 0;
+ $instance['tabs_date'] = $new['tabs_date'] ? 1 : 0;
+ // Recent posts
+ $instance['recent_enable'] = $new['recent_enable'] ? 1 : 0;
+ $instance['recent_thumbs'] = $new['recent_thumbs'] ? 1 : 0;
+ $instance['recent_cat_id'] = strip_tags($new['recent_cat_id']);
+ $instance['recent_num'] = strip_tags($new['recent_num']);
+ // Popular posts
+ $instance['popular_enable'] = $new['popular_enable'] ? 1 : 0;
+ $instance['popular_thumbs'] = $new['popular_thumbs'] ? 1 : 0;
+ $instance['popular_cat_id'] = strip_tags($new['popular_cat_id']);
+ $instance['popular_time'] = strip_tags($new['popular_time']);
+ $instance['popular_num'] = strip_tags($new['popular_num']);
+ // Recent comments
+ $instance['comments_enable'] = $new['comments_enable'] ? 1 : 0;
+ $instance['comments_avatars'] = $new['comments_avatars'] ? 1 : 0;
+ $instance['comments_num'] = strip_tags($new['comments_num']);
+ // Tags
+ $instance['tags_enable'] = $new['tags_enable'] ? 1 : 0;
+ // Order
+ $instance['order_recent'] = strip_tags($new['order_recent']);
+ $instance['order_popular'] = strip_tags($new['order_popular']);
+ $instance['order_comments'] = strip_tags($new['order_comments']);
+ $instance['order_tags'] = strip_tags($new['order_tags']);
+ return $instance;
+ }
+
+ /* Widget form
+ /* ------------------------------------ */
+ public function form($instance)
+ {
+ // Default widget settings
+ $defaults = array(
+ 'title' => '',
+ 'tabs_category' => 1,
+ 'tabs_date' => 1,
+ // Recent posts
+ 'recent_enable' => 1,
+ 'recent_thumbs' => 1,
+ 'recent_cat_id' => '0',
+ 'recent_num' => '5',
+ // Popular posts
+ 'popular_enable' => 1,
+ 'popular_thumbs' => 1,
+ 'popular_cat_id' => '0',
+ 'popular_time' => '0',
+ 'popular_num' => '5',
+ // Recent comments
+ 'comments_enable' => 1,
+ 'comments_avatars' => 1,
+ 'comments_num' => '5',
+ // Tags
+ 'tags_enable' => 1,
+ // Order
+ 'order_recent' => '1',
+ 'order_popular' => '2',
+ 'order_comments' => '3',
+ 'order_tags' => '4',
+ );
+ $instance = wp_parse_args((array)$instance, $defaults);
+ ?>
+
+ <style>
+ .widget .widget-inside .alx-options-tabs .postform {
+ width: 100%;
+ }
+
+ .widget .widget-inside .alx-options-tabs p {
+ margin: 3px 0;
+ }
+
+ .widget .widget-inside .alx-options-tabs hr {
+ margin: 20px 0 10px;
+ }
+
+ .widget .widget-inside .alx-options-tabs h4 {
+ margin-bottom: 10px;
+ }
+ </style>
+
+ <div class="alx-options-tabs">
+ <p>
+ <label for="<?php echo $this->get_field_id('title'); ?>">Title:</label>
+ <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>"
+ name="<?php echo $this->get_field_name('title'); ?>" type="text"
+ value="<?php echo esc_attr($instance["title"]); ?>"/>
+ </p>
+
+ <h4>Recent Posts</h4>
+
+ <p>
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('recent_enable'); ?>"
+ name="<?php echo $this->get_field_name('recent_enable'); ?>" <?php checked((bool)$instance["recent_enable"], true); ?>>
+ <label for="<?php echo $this->get_field_id('recent_enable'); ?>">Enable recent posts</label>
+ </p>
+ <p>
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('recent_thumbs'); ?>"
+ name="<?php echo $this->get_field_name('recent_thumbs'); ?>" <?php checked((bool)$instance["recent_thumbs"], true); ?>>
+ <label for="<?php echo $this->get_field_id('recent_thumbs'); ?>">Show thumbnails</label>
+ </p>
+ <p>
+ <label style="width: 55%; display: inline-block;"
+ for="<?php echo $this->get_field_id("recent_num"); ?>">Items to show</label>
+ <input style="width:20%;" id="<?php echo $this->get_field_id("recent_num"); ?>"
+ name="<?php echo $this->get_field_name("recent_num"); ?>" type="text"
+ value="<?php echo absint($instance["recent_num"]); ?>" size='3'/>
+ </p>
+ <p>
+ <label style="width: 100%; display: inline-block;"
+ for="<?php echo $this->get_field_id("recent_cat_id"); ?>">Category:</label>
+ <?php wp_dropdown_categories(array('name' => $this->get_field_name("recent_cat_id"), 'selected' => $instance["recent_cat_id"], 'show_option_all' => 'All', 'show_count' => true)); ?>
+ </p>
+
+ <hr>
+ <h4>Most Popular</h4>
+
+ <p>
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('popular_enable'); ?>"
+ name="<?php echo $this->get_field_name('popular_enable'); ?>" <?php checked((bool)$instance["popular_enable"], true); ?>>
+ <label for="<?php echo $this->get_field_id('popular_enable'); ?>">Enable most popular posts</label>
+ </p>
+ <p>
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('popular_thumbs'); ?>"
+ name="<?php echo $this->get_field_name('popular_thumbs'); ?>" <?php checked((bool)$instance["popular_thumbs"], true); ?>>
+ <label for="<?php echo $this->get_field_id('popular_thumbs'); ?>">Show thumbnails</label>
+ </p>
+ <p>
+ <label style="width: 55%; display: inline-block;"
+ for="<?php echo $this->get_field_id("popular_num"); ?>">Items to show</label>
+ <input style="width:20%;" id="<?php echo $this->get_field_id("popular_num"); ?>"
+ name="<?php echo $this->get_field_name("popular_num"); ?>" type="text"
+ value="<?php echo absint($instance["popular_num"]); ?>" size='3'/>
+ </p>
+ <p>
+ <label style="width: 100%; display: inline-block;"
+ for="<?php echo $this->get_field_id("popular_cat_id"); ?>">Category:</label>
+ <?php wp_dropdown_categories(array('name' => $this->get_field_name("popular_cat_id"), 'selected' => $instance["popular_cat_id"], 'show_option_all' => 'All', 'show_count' => true)); ?>
+ </p>
+ <p style="padding-top: 0.3em;">
+ <label style="width: 100%; display: inline-block;"
+ for="<?php echo $this->get_field_id("popular_time"); ?>">Post with most comments from:</label>
+ <select style="width: 100%;" id="<?php echo $this->get_field_id("popular_time"); ?>"
+ name="<?php echo $this->get_field_name("popular_time"); ?>">
+ <option value="0"<?php selected($instance["popular_time"], "0"); ?>>All time</option>
+ <option value="1 year ago"<?php selected($instance["popular_time"], "1 year ago"); ?>>This year
+ </option>
+ <option value="1 month ago"<?php selected($instance["popular_time"], "1 month ago"); ?>>This month
+ </option>
+ <option value="1 week ago"<?php selected($instance["popular_time"], "1 week ago"); ?>>This week
+ </option>
+ <option value="1 day ago"<?php selected($instance["popular_time"], "1 day ago"); ?>>Past 24 hours
+ </option>
+ </select>
+ </p>
+
+ <hr>
+ <h4>Recent Comments</h4>
+
+ <p>
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('comments_enable'); ?>"
+ name="<?php echo $this->get_field_name('comments_enable'); ?>" <?php checked((bool)$instance["comments_enable"], true); ?>>
+ <label for="<?php echo $this->get_field_id('comments_enable'); ?>">Enable recent comments</label>
+ </p>
+ <p>
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('comments_avatars'); ?>"
+ name="<?php echo $this->get_field_name('comments_avatars'); ?>" <?php checked((bool)$instance["comments_avatars"], true); ?>>
+ <label for="<?php echo $this->get_field_id('comments_avatars'); ?>">Show avatars</label>
+ </p>
+ <p>
+ <label style="width: 55%; display: inline-block;"
+ for="<?php echo $this->get_field_id("comments_num"); ?>">Items to show</label>
+ <input style="width:20%;" id="<?php echo $this->get_field_id("comments_num"); ?>"
+ name="<?php echo $this->get_field_name("comments_num"); ?>" type="text"
+ value="<?php echo absint($instance["comments_num"]); ?>" size='3'/>
+ </p>
+
+ <hr>
+ <h4>Tags</h4>
+
+ <p>
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('tags_enable'); ?>"
+ name="<?php echo $this->get_field_name('tags_enable'); ?>" <?php checked((bool)$instance["tags_enable"], true); ?>>
+ <label for="<?php echo $this->get_field_id('tags_enable'); ?>">Enable tags</label>
+ </p>
+
+ <hr>
+ <h4>Tab Order</h4>
+
+ <p>
+ <label style="width: 55%; display: inline-block;"
+ for="<?php echo $this->get_field_id("order_recent"); ?>">Recent posts</label>
+ <input class="widefat" style="width:20%;" type="text"
+ id="<?php echo $this->get_field_id("order_recent"); ?>"
+ name="<?php echo $this->get_field_name("order_recent"); ?>"
+ value="<?php echo $instance["order_recent"]; ?>"/>
+ </p>
+ <p>
+ <label style="width: 55%; display: inline-block;"
+ for="<?php echo $this->get_field_id("order_popular"); ?>">Most popular</label>
+ <input class="widefat" style="width:20%;" type="text"
+ id="<?php echo $this->get_field_id("order_popular"); ?>"
+ name="<?php echo $this->get_field_name("order_popular"); ?>"
+ value="<?php echo $instance["order_popular"]; ?>"/>
+ </p>
+ <p>
+ <label style="width: 55%; display: inline-block;"
+ for="<?php echo $this->get_field_id("order_comments"); ?>">Recent comments</label>
+ <input class="widefat" style="width:20%;" type="text"
+ id="<?php echo $this->get_field_id("order_comments"); ?>"
+ name="<?php echo $this->get_field_name("order_comments"); ?>"
+ value="<?php echo $instance["order_comments"]; ?>"/>
+ </p>
+ <p>
+ <label style="width: 55%; display: inline-block;"
+ for="<?php echo $this->get_field_id("order_tags"); ?>">Tags</label>
+ <input class="widefat" style="width:20%;" type="text"
+ id="<?php echo $this->get_field_id("order_tags"); ?>"
+ name="<?php echo $this->get_field_name("order_tags"); ?>"
+ value="<?php echo $instance["order_tags"]; ?>"/>
+ </p>
+
+ <hr>
+ <h4>Tab Info</h4>
+
+ <p>
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('tabs_category'); ?>"
+ name="<?php echo $this->get_field_name('tabs_category'); ?>" <?php checked((bool)$instance["tabs_category"], true); ?>>
+ <label for="<?php echo $this->get_field_id('tabs_category'); ?>">Show categories</label>
+ </p>
+ <p>
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id('tabs_date'); ?>"
+ name="<?php echo $this->get_field_name('tabs_date'); ?>" <?php checked((bool)$instance["tabs_date"], true); ?>>
+ <label for="<?php echo $this->get_field_id('tabs_date'); ?>">Show dates</label>
+ </p>
+
+ <hr>
+
+ </div>
+ <?php
+
+ }
}
/* Register widget
/* ------------------------------------ */
-if ( ! function_exists( 'alx_register_widget_tabs' ) ) {
+if (!function_exists('alx_register_widget_tabs')) {
+
+ function alx_register_widget_tabs()
+ {
+ register_widget('AlxTabs');
+ }
- function alx_register_widget_tabs() {
- register_widget( 'AlxTabs' );
- }
-
}
-add_action( 'widgets_init', 'alx_register_widget_tabs' );
+add_action('widgets_init', 'alx_register_widget_tabs');
@version 1.0
*/
-class AlxVideo extends WP_Widget {
+class AlxVideo extends WP_Widget
+{
-/* Constructor
-/* ------------------------------------ */
- function AlxVideo() {
- parent::__construct( false, 'AlxVideo', array('description' => 'Display a responsive video by adding a link or embed code.', 'classname' => 'widget_alx_video') );;
- }
-
-/* Widget
-/* ------------------------------------ */
- public function widget($args, $instance) {
- extract( $args );
- $instance['title']?NULL:$instance['title']='';
- $title = apply_filters('widget_title',$instance['title']);
- $output = $before_widget."\n";
- if($title)
- $output .= $before_title.$title.$after_title;
- ob_start();
-
-
- // The widget
- if ( !empty($instance['video_url']) ) {
- // echo '<div class="video-container">'; - We have a filter adding this to embed shortcode
- global $wp_embed;
- $video = $wp_embed->run_shortcode('[embed]'.$instance['video_url'].'[/embed]');
- // echo '</div>';
- }
- elseif ( !empty($instance['video_embed_code']) ) {
- echo '<div class="video-container">';
- $video = $instance['video_embed_code'];
- echo '</div>';
- } else {
- $video = '';
- }
- echo $video;
-
-
- $output .= ob_get_clean();
- $output .= $after_widget."\n";
- echo $output;
- }
-
-/* Widget update
-/* ------------------------------------ */
- public function update($new,$old) {
- $instance = $old;
- $instance['title'] = esc_attr($new['title']);
- // Video
- $instance['video_url'] = esc_url($new['video_url']);
- $instance['video_embed_code'] = $new['video_embed_code'];
- return $instance;
- }
-
-/* Widget form
-/* ------------------------------------ */
- public function form($instance) {
- // Default widget settings
- $defaults = array(
- 'title' => '',
- // Video
- 'video_url' => '',
- 'video_embed_code' => '',
- );
- $instance = wp_parse_args( (array) $instance, $defaults );
-?>
-
- <style>
- .widget .widget-inside .alx-options-video .postform { width: 100%; }
- .widget .widget-inside .alx-options-video p { margin: 3px 0; }
- .widget .widget-inside .alx-options-video hr { margin: 20px 0 10px; }
- .widget .widget-inside .alx-options-video h4 { margin-bottom: 10px; }
- </style>
-
- <div class="alx-options-video">
- <p>
- <label for="<?php echo $this->get_field_id('title'); ?>">Title:</label>
- <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance["title"]); ?>" />
- </p>
-
- <h4>Responsive Video</h4>
-
- <p>
- <label for="<?php echo $this->get_field_id("video_url"); ?>">Video URL</label>
- <input style="width:100%;" id="<?php echo $this->get_field_id("video_url"); ?>" name="<?php echo $this->get_field_name("video_url"); ?>" type="text" value="<?php echo esc_url($instance["video_url"]); ?>" />
- </p>
- <p>
- <label for="<?php echo $this->get_field_id("video_embed_code"); ?>">Video Embed Code</label>
- <textarea class="widefat" id="<?php echo $this->get_field_id('video_embed_code'); ?>" name="<?php echo $this->get_field_name('video_embed_code'); ?>"><?php echo $instance["video_embed_code"]; ?></textarea>
- </p>
- </div>
-<?php
+ /* Constructor
+ /* ------------------------------------ */
+ function __construct()
+ {
+ parent::__construct(false, 'AlxVideo', array('description' => 'Display a responsive video by adding a link or embed code.', 'classname' => 'widget_alx_video'));;
+ }
+
+ /* Widget
+ /* ------------------------------------ */
+ public function widget($args, $instance)
+ {
+ extract($args);
+ $instance['title'] ? NULL : $instance['title'] = '';
+ $title = apply_filters('widget_title', $instance['title']);
+ $output = $before_widget . "\n";
+ if ($title)
+ $output .= $before_title . $title . $after_title;
+ ob_start();
+
+
+ // The widget
+ if (!empty($instance['video_url'])) {
+ // echo '<div class="video-container">'; - We have a filter adding this to embed shortcode
+ global $wp_embed;
+ $video = $wp_embed->run_shortcode('[embed]' . $instance['video_url'] . '[/embed]');
+ // echo '</div>';
+ } elseif (!empty($instance['video_embed_code'])) {
+ echo '<div class="video-container">';
+ $video = $instance['video_embed_code'];
+ echo '</div>';
+ } else {
+ $video = '';
+ }
+ echo $video;
-}
+
+ $output .= ob_get_clean();
+ $output .= $after_widget . "\n";
+ echo $output;
+ }
+
+ /* Widget update
+ /* ------------------------------------ */
+ public function update($new, $old)
+ {
+ $instance = $old;
+ $instance['title'] = esc_attr($new['title']);
+ // Video
+ $instance['video_url'] = esc_url($new['video_url']);
+ $instance['video_embed_code'] = $new['video_embed_code'];
+ return $instance;
+ }
+
+ /* Widget form
+ /* ------------------------------------ */
+ public function form($instance)
+ {
+ // Default widget settings
+ $defaults = array(
+ 'title' => '',
+ // Video
+ 'video_url' => '',
+ 'video_embed_code' => '',
+ );
+ $instance = wp_parse_args((array)$instance, $defaults);
+ ?>
+
+ <style>
+ .widget .widget-inside .alx-options-video .postform {
+ width: 100%;
+ }
+
+ .widget .widget-inside .alx-options-video p {
+ margin: 3px 0;
+ }
+
+ .widget .widget-inside .alx-options-video hr {
+ margin: 20px 0 10px;
+ }
+
+ .widget .widget-inside .alx-options-video h4 {
+ margin-bottom: 10px;
+ }
+ </style>
+
+ <div class="alx-options-video">
+ <p>
+ <label for="<?php echo $this->get_field_id('title'); ?>">Title:</label>
+ <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>"
+ name="<?php echo $this->get_field_name('title'); ?>" type="text"
+ value="<?php echo esc_attr($instance["title"]); ?>"/>
+ </p>
+
+ <h4>Responsive Video</h4>
+
+ <p>
+ <label for="<?php echo $this->get_field_id("video_url"); ?>">Video URL</label>
+ <input style="width:100%;" id="<?php echo $this->get_field_id("video_url"); ?>"
+ name="<?php echo $this->get_field_name("video_url"); ?>" type="text"
+ value="<?php echo esc_url($instance["video_url"]); ?>"/>
+ </p>
+ <p>
+ <label for="<?php echo $this->get_field_id("video_embed_code"); ?>">Video Embed Code</label>
+ <textarea class="widefat" id="<?php echo $this->get_field_id('video_embed_code'); ?>"
+ name="<?php echo $this->get_field_name('video_embed_code'); ?>"><?php echo $instance["video_embed_code"]; ?></textarea>
+ </p>
+ </div>
+ <?php
+
+ }
}
/* Register widget
/* ------------------------------------ */
-if ( ! function_exists( 'alx_register_widget_video' ) ) {
+if (!function_exists('alx_register_widget_video')) {
+
+ function alx_register_widget_video()
+ {
+ register_widget('AlxVideo');
+ }
- function alx_register_widget_video() {
- register_widget( 'AlxVideo' );
- }
-
}
-add_action( 'widgets_init', 'alx_register_widget_video' );
+add_action('widgets_init', 'alx_register_widget_video');
return true;
}
+
+ public function __wakeup() {
+ throw new \LogicException( __CLASS__ . ' should never be unserialized' );
+ }
}
return true;
}
+ public function __wakeup() {
+ $class_props = get_class_vars( __CLASS__ );
+ $string_props = array( 'scheme', 'iuserinfo', 'ihost', 'port', 'ipath', 'iquery', 'ifragment' );
+ $array_props = array( 'normalization' );
+ foreach ( $class_props as $prop => $default_value ) {
+ if ( in_array( $prop, $string_props, true ) && ! is_string( $this->$prop ) ) {
+ throw new UnexpectedValueException();
+ } elseif ( in_array( $prop, $array_props, true ) && ! is_array( $this->$prop ) ) {
+ throw new UnexpectedValueException();
+ }
+ $this->$prop = null;
+ }
+ }
+
/**
* Set the entire IRI. Returns true on success, false on failure (if there
* are any invalid characters).
return Requests::request_multiple($requests, $options);
}
+ public function __wakeup() {
+ throw new \LogicException( __CLASS__ . ' should never be unserialized' );
+ }
+
/**
* Merge a request's data with the default data
*
-<?php return array('a11y.min.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '7032343a947cfccf5608'), 'annotations.min.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'b2ea813120975bf6fbb5'), 'api-fetch.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '0fa4dabf8bf2c7adf21a'), 'autop.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'dacd785d109317df2707'), 'blob.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '10a1c5c0acdef3d15657'), 'block-directory.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'cf69143cf8a7a08f7e0f'), 'block-editor.min.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '0cd49e3f951fc97cabb7'), 'block-library.min.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'd7a9b7c4483f03874bab'), 'block-serialization-default-parser.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '30ffd7e7e199f10b2a6d'), 'blocks.min.js' => array('dependencies' => array('wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-shortcode'), 'version' => 'b5d3b99262dfb659bd26'), 'commands.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => '6aaa327476959e33b206'), 'components.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => 'f914d11cd76135f7269e'), 'compose.min.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '9424edf50a26435105c0'), 'core-commands.min.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '90e1ba010f5600297bd1'), 'core-data.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'eba24853937736de71cd'), 'customize-widgets.min.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => '6d822aca98e0c32c34fb'), 'data.min.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => 'ff7eb3945f963be850ff'), 'data-controls.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'fe4ccc8a1782ea8e2cb1'), 'date.min.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '505e060585ac0f4b6cb6'), 'deprecated.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '73ad3591e7bc95f4777a'), 'dom.min.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '845eabf47b55af03adfa'), 'dom-ready.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '392bdd43726760d1f3ca'), 'edit-post.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '390f6baf200b6016874f'), 'edit-site.min.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => 'b8d242e1600da32c2411'), 'edit-widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'c48014655968e9365570'), 'editor.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '6d72d0f7ca361ec5011d'), 'element.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'ed1c7604880e8b574b40'), 'escape-html.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '03e27a7b6ae14f7afaa6'), 'format-library.min.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '841596d9c9d3cabeaec1'), 'hooks.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c6aec9a8d4e5a5d543a1'), 'html-entities.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '36a4a255da7dd2e1bf8e'), 'i18n.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '7701b0c3857f914212ef'), 'is-shallow-equal.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '20c2b06ecf04afb14fee'), 'keyboard-shortcuts.min.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '99e2d63033ed57d7783f'), 'keycodes.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3460bd0fac9859d6886c'), 'list-reusable-blocks.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '75abf694c46dcc8972f1'), 'media-utils.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'bcd60e7a2fb568f38015'), 'notices.min.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '38e88f4b627cf873edd0'), 'nux.min.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '59718fab5e39f9dd21b0'), 'plugins.min.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '463143a2aeec9687ac69'), 'preferences.min.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'ca088ba0a612bff77aa3'), 'preferences-persistence.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6c6b220422eb35541489'), 'primitives.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'b90ba9340ccd8dae04b5'), 'priority-queue.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '422e19e9d48b269c5219'), 'private-apis.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c7aedd57ea3c9b334e7d'), 'redux-routine.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0be1b2a6a79703e28531'), 'reusable-blocks.min.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => 'ba0edecdf1360ec259cd'), 'rich-text.min.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => '477e6aed00daeb0e4ab6'), 'router.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'bc3f04a9045626928db0'), 'server-side-render.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '81299db67c0fa2c65479'), 'shortcode.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c128a3008a96e820aa86'), 'style-engine.min.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '8947445e1a2533882c21'), 'token-list.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '199103fc7cec3b9eef5a'), 'url.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8814d23f2d64864d280d'), 'viewport.min.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1fbef8175bb335c5603b'), 'warning.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4acee5fc2fd9a24cefc2'), 'widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '938735ae45e739ac8b70'), 'wordcount.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5a74890fd7c610679e34'));
+<?php return array('a11y.min.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '7032343a947cfccf5608'), 'annotations.min.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'b2ea813120975bf6fbb5'), 'api-fetch.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '0fa4dabf8bf2c7adf21a'), 'autop.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'dacd785d109317df2707'), 'blob.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '10a1c5c0acdef3d15657'), 'block-directory.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'cf69143cf8a7a08f7e0f'), 'block-editor.min.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '6bf412b7afa6151863a3'), 'block-library.min.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'af3abfba51f619ece45e'), 'block-serialization-default-parser.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '30ffd7e7e199f10b2a6d'), 'blocks.min.js' => array('dependencies' => array('wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-shortcode'), 'version' => 'b5d3b99262dfb659bd26'), 'commands.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => '6aaa327476959e33b206'), 'components.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '0f16bd3719000192197f'), 'compose.min.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '9424edf50a26435105c0'), 'core-commands.min.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '90e1ba010f5600297bd1'), 'core-data.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'b19b1b1045a3d2c45c69'), 'customize-widgets.min.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => '6d822aca98e0c32c34fb'), 'data.min.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '1504e29349b8a9d1ae51'), 'data-controls.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'fe4ccc8a1782ea8e2cb1'), 'date.min.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '505e060585ac0f4b6cb6'), 'deprecated.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '73ad3591e7bc95f4777a'), 'dom.min.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '845eabf47b55af03adfa'), 'dom-ready.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '392bdd43726760d1f3ca'), 'edit-post.min.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => 'cfbaf157e587ad5ed2d2'), 'edit-site.min.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => '0756fa65fd9dcffa0bc0'), 'edit-widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'c48014655968e9365570'), 'editor.min.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '6d72d0f7ca361ec5011d'), 'element.min.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'ed1c7604880e8b574b40'), 'escape-html.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '03e27a7b6ae14f7afaa6'), 'format-library.min.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '841596d9c9d3cabeaec1'), 'hooks.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c6aec9a8d4e5a5d543a1'), 'html-entities.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '36a4a255da7dd2e1bf8e'), 'i18n.min.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '7701b0c3857f914212ef'), 'is-shallow-equal.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '20c2b06ecf04afb14fee'), 'keyboard-shortcuts.min.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '99e2d63033ed57d7783f'), 'keycodes.min.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3460bd0fac9859d6886c'), 'list-reusable-blocks.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '75abf694c46dcc8972f1'), 'media-utils.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'bcd60e7a2fb568f38015'), 'notices.min.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '38e88f4b627cf873edd0'), 'nux.min.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '59718fab5e39f9dd21b0'), 'plugins.min.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '463143a2aeec9687ac69'), 'preferences.min.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'ca088ba0a612bff77aa3'), 'preferences-persistence.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6c6b220422eb35541489'), 'primitives.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'b90ba9340ccd8dae04b5'), 'priority-queue.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '422e19e9d48b269c5219'), 'private-apis.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c7aedd57ea3c9b334e7d'), 'redux-routine.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0be1b2a6a79703e28531'), 'reusable-blocks.min.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => 'ba0edecdf1360ec259cd'), 'rich-text.min.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => '477e6aed00daeb0e4ab6'), 'router.min.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => 'bc3f04a9045626928db0'), 'server-side-render.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '81299db67c0fa2c65479'), 'shortcode.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c128a3008a96e820aa86'), 'style-engine.min.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '8947445e1a2533882c21'), 'token-list.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '199103fc7cec3b9eef5a'), 'url.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '8814d23f2d64864d280d'), 'viewport.min.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1fbef8175bb335c5603b'), 'warning.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4acee5fc2fd9a24cefc2'), 'widgets.min.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '938735ae45e739ac8b70'), 'wordcount.min.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5a74890fd7c610679e34'));
-<?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'f5d24347216c445a8c01'), 'annotations.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '75a480a2654dd626c11d'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c6922e5e289e31508e9e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b745c6fbf05b78fb082d'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c8cd0ee72e8256295689'), 'block-directory.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '9d6194f9b4dec23de6e4'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '87e92f80c4626dbe1274'), 'block-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'c7c6cdd87ab7c5489593'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '659c02a916d332d198d3'), 'blocks.js' => array('dependencies' => array('wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-shortcode'), 'version' => '6307ec40356a2e0670e0'), 'commands.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => 'b106e7e79538b1818f91'), 'components.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '32407b70de56366bfd74'), 'compose.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '6861d91c4896ce3aecda'), 'core-commands.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '47054e521a7801cbcdfe'), 'core-data.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '419176f02b850abf99ea'), 'customize-widgets.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => 'eda3ea54b679fff82f38'), 'data.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '16121b61f8bc66f02ac6'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => '21350969228d7e012ae4'), 'date.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '74ec621209ef5f985502'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e7be1e59b3a3f3f2de93'), 'dom.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '2859d23ff0f3c3599c5f'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7c25017459f1da90355d'), 'edit-post.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '953fe4dbc39c83291315'), 'edit-site.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => 'e6a57191e6f58b9f0f2f'), 'edit-widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '4db5e82bdd0cb8525803'), 'editor.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => 'a8b90ee878cbbbb021a9'), 'element.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'b368b38a89162c1a2dd4'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6cf743ecc1ac531a8ee6'), 'format-library.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '119776cc37750315ec4a'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cb3553927d7ab6049113'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '87ef261e846b76e5a37b'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '28325ce370dfa8a48974'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6db118482717025592c3'), 'keyboard-shortcuts.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '0dd9d7a2fc055546ac02'), 'keycodes.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3ea3f757df3faecf5b53'), 'list-reusable-blocks.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'cbc6b63f1e4af6863c25'), 'media-utils.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '64f965a73c9014525194'), 'notices.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '89066af3709002b265aa'), 'nux.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '68360385b9a6946654a4'), 'plugins.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '2c131c2ea4abe95e5138'), 'preferences.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '77e5d89bcb85ec728c47'), 'preferences-persistence.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6359e081d54254a8095f'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '9a5b77281b914496cc3f'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c1d62738f06e87528f62'), 'private-apis.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4aec745137be5ec003ec'), 'redux-routine.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5864c15205ae69892f05'), 'reusable-blocks.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '28127b0e26dd1f5e354e'), 'rich-text.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'ad3aca3abfd414c65cd3'), 'router.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '13c8628603afc0d07efe'), 'server-side-render.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '75db96a643c7c526dd9b'), 'shortcode.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0a7e6e9696d74a96cbbc'), 'style-engine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ed586d7be92a16524d2a'), 'token-list.js' => array('dependencies' => array('wp-polyfill'), 'version' => '59593bbd84ae7c0d4c03'), 'url.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8dc9f774df8e318bec4'), 'viewport.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1150a23174cba4f61f67'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aa73c6d9a1563e863795'), 'widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '4910811297dc0087a579'), 'wordcount.js' => array('dependencies' => array('wp-polyfill'), 'version' => '02aee9969304892b0e50'));
+<?php return array('a11y.js' => array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'f5d24347216c445a8c01'), 'annotations.js' => array('dependencies' => array('wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '75a480a2654dd626c11d'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'c6922e5e289e31508e9e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b745c6fbf05b78fb082d'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c8cd0ee72e8256295689'), 'block-directory.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '9d6194f9b4dec23de6e4'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-shortcode', 'wp-style-engine', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => 'fa62bd0d24a36b779ba0'), 'block-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport', 'wp-wordcount'), 'version' => 'b563f9da9785de3e97fd'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => '659c02a916d332d198d3'), 'blocks.js' => array('dependencies' => array('wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-shortcode'), 'version' => '6307ec40356a2e0670e0'), 'commands.js' => array('dependencies' => array('react', 'react-dom', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-polyfill', 'wp-private-apis'), 'version' => 'b106e7e79538b1818f91'), 'components.js' => array('dependencies' => array('react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-rich-text', 'wp-warning'), 'version' => '703ba046160a573816dd'), 'compose.js' => array('dependencies' => array('react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '6861d91c4896ce3aecda'), 'core-commands.js' => array('dependencies' => array('wp-commands', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-router', 'wp-url'), 'version' => '47054e521a7801cbcdfe'), 'core-data.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '4e23c9d5ac545a0cfbee'), 'customize-widgets.js' => array('dependencies' => array('wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-widgets'), 'version' => 'eda3ea54b679fff82f38'), 'data.js' => array('dependencies' => array('wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-private-apis', 'wp-redux-routine'), 'version' => '7fe70ce69d4580ea6b07'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => '21350969228d7e012ae4'), 'date.js' => array('dependencies' => array('moment', 'wp-deprecated', 'wp-polyfill'), 'version' => '74ec621209ef5f985502'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'e7be1e59b3a3f3f2de93'), 'dom.js' => array('dependencies' => array('wp-deprecated', 'wp-polyfill'), 'version' => '2859d23ff0f3c3599c5f'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7c25017459f1da90355d'), 'edit-post.js' => array('dependencies' => array('wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-url', 'wp-viewport', 'wp-warning', 'wp-widgets'), 'version' => '3b22c381efe60b666e3b'), 'edit-site.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-commands', 'wp-components', 'wp-compose', 'wp-core-commands', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-router', 'wp-url', 'wp-viewport', 'wp-widgets', 'wp-wordcount'), 'version' => '139575fc4e2f96aa2736'), 'edit-widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '4db5e82bdd0cb8525803'), 'editor.js' => array('dependencies' => array('react', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-preferences', 'wp-primitives', 'wp-private-apis', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '9b035636e0ca31acbf3b'), 'element.js' => array('dependencies' => array('react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => 'b368b38a89162c1a2dd4'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6cf743ecc1ac531a8ee6'), 'format-library.js' => array('dependencies' => array('wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '119776cc37750315ec4a'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cb3553927d7ab6049113'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '87ef261e846b76e5a37b'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '28325ce370dfa8a48974'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '6db118482717025592c3'), 'keyboard-shortcuts.js' => array('dependencies' => array('wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '0dd9d7a2fc055546ac02'), 'keycodes.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill'), 'version' => '3ea3f757df3faecf5b53'), 'list-reusable-blocks.js' => array('dependencies' => array('wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'cbc6b63f1e4af6863c25'), 'media-utils.js' => array('dependencies' => array('wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '64f965a73c9014525194'), 'notices.js' => array('dependencies' => array('wp-data', 'wp-polyfill'), 'version' => '89066af3709002b265aa'), 'nux.js' => array('dependencies' => array('wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '68360385b9a6946654a4'), 'plugins.js' => array('dependencies' => array('wp-compose', 'wp-element', 'wp-hooks', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives'), 'version' => '2c131c2ea4abe95e5138'), 'preferences.js' => array('dependencies' => array('wp-a11y', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '77e5d89bcb85ec728c47'), 'preferences-persistence.js' => array('dependencies' => array('wp-api-fetch', 'wp-polyfill'), 'version' => '6359e081d54254a8095f'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => '9a5b77281b914496cc3f'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'c1d62738f06e87528f62'), 'private-apis.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4aec745137be5ec003ec'), 'redux-routine.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5864c15205ae69892f05'), 'reusable-blocks.js' => array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-private-apis', 'wp-url'), 'version' => '28127b0e26dd1f5e354e'), 'rich-text.js' => array('dependencies' => array('wp-a11y', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => '86c724a40b01d2428c17'), 'router.js' => array('dependencies' => array('wp-element', 'wp-polyfill', 'wp-private-apis', 'wp-url'), 'version' => '13c8628603afc0d07efe'), 'server-side-render.js' => array('dependencies' => array('wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '75db96a643c7c526dd9b'), 'shortcode.js' => array('dependencies' => array('wp-polyfill'), 'version' => '0a7e6e9696d74a96cbbc'), 'style-engine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'ed586d7be92a16524d2a'), 'token-list.js' => array('dependencies' => array('wp-polyfill'), 'version' => '59593bbd84ae7c0d4c03'), 'url.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8dc9f774df8e318bec4'), 'viewport.js' => array('dependencies' => array('wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '1150a23174cba4f61f67'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'aa73c6d9a1563e863795'), 'widgets.js' => array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '4910811297dc0087a579'), 'wordcount.js' => array('dependencies' => array('wp-polyfill'), 'version' => '02aee9969304892b0e50'));
: array();
// Defaults.
- $default_maximum_viewport_width = isset( $layout_settings['wideSize'] ) ? $layout_settings['wideSize'] : '1600px';
+ $default_maximum_viewport_width = isset( $layout_settings['wideSize'] ) && ! empty( wp_get_typography_value_and_unit( $layout_settings['wideSize'] ) ) ? $layout_settings['wideSize'] : '1600px';
$default_minimum_viewport_width = '320px';
$default_minimum_font_size_factor_max = 0.75;
$default_minimum_font_size_factor_min = 0.25;
* Determine if the block script was registered in a theme, by checking if the script path starts with either
* the parent (template) or child (stylesheet) directory path.
*/
- $is_parent_theme_block = str_starts_with( $script_path_norm, $template_path_norm );
- $is_child_theme_block = str_starts_with( $script_path_norm, $stylesheet_path_norm );
+ $is_parent_theme_block = str_starts_with( $script_path_norm, trailingslashit( $template_path_norm ) );
+ $is_child_theme_block = str_starts_with( $script_path_norm, trailingslashit( $stylesheet_path_norm ) );
$is_theme_block = ( $is_parent_theme_block || $is_child_theme_block );
$script_uri = plugins_url( $script_path, $metadata['file'] );
// Determine if the block style was registered in a theme, by checking if the script path starts with either
// the parent (template) or child (stylesheet) directory path.
- $is_parent_theme_block = str_starts_with( $style_path_norm, $template_path_norm );
- $is_child_theme_block = str_starts_with( $style_path_norm, $stylesheet_path_norm );
+ $is_parent_theme_block = str_starts_with( $style_path_norm, trailingslashit( $template_path_norm ) );
+ $is_child_theme_block = str_starts_with( $style_path_norm, trailingslashit( $stylesheet_path_norm ) );
$is_theme_block = ( $is_parent_theme_block || $is_child_theme_block );
if ( $is_core_block ) {
}
return null;
}
+
+/**
+ * Strips all HTML from the content of footnotes, and sanitizes the ID.
+ * This function expects slashed data on the footnotes content.
+ *
+ * @access private
+ * @since 6.3.2
+ *
+ * @param string $footnotes JSON encoded string of an array containing the content and ID of each footnote.
+ * @return string Filtered content without any HTML on the footnote content and with the sanitized id.
+ */
+function _wp_filter_post_meta_footnotes( $footnotes ) {
+ $footnotes_decoded = json_decode( $footnotes, true );
+ if ( ! is_array( $footnotes_decoded ) ) {
+ return '';
+ }
+ $footnotes_sanitized = array();
+ foreach ( $footnotes_decoded as $footnote ) {
+ if ( ! empty( $footnote['content'] ) && ! empty( $footnote['id'] ) ) {
+ $footnotes_sanitized[] = array(
+ 'id' => sanitize_key( $footnote['id'] ),
+ 'content' => wp_unslash( wp_filter_post_kses( wp_slash( $footnote['content'] ) ) ),
+ );
+ }
+ }
+ return wp_json_encode( $footnotes_sanitized );
+}
+
+/**
+ * Adds the filters to filter footnotes meta field.
+ *
+ * @access private
+ * @since 6.3.2
+ */
+function _wp_footnotes_kses_init_filters() {
+ add_filter( 'sanitize_post_meta_footnotes', '_wp_filter_post_meta_footnotes' );
+}
+
+/**
+ * Removes the filters that filter footnotes meta field.
+ *
+ * @access private
+ * @since 6.3.2
+ */
+function _wp_footnotes_remove_filters() {
+ remove_filter( 'sanitize_post_meta_footnotes', '_wp_filter_post_meta_footnotes' );
+}
+
+/**
+ * Registers the filter of footnotes meta field if the user does not have unfiltered_html capability.
+ *
+ * @access private
+ * @since 6.3.2
+ */
+function _wp_footnotes_kses_init() {
+ _wp_footnotes_remove_filters();
+ if ( ! current_user_can( 'unfiltered_html' ) ) {
+ _wp_footnotes_kses_init_filters();
+ }
+}
+
+/**
+ * Initializes footnotes meta field filters when imported data should be filtered.
+ *
+ * This filter is the last being executed on force_filtered_html_on_import.
+ * If the input of the filter is true it means we are in an import situation and should
+ * enable kses, independently of the user capabilities.
+ * So in that case we call _wp_footnotes_kses_init_filters;
+ *
+ * @access private
+ * @since 6.3.2
+ *
+ * @param string $arg Input argument of the filter.
+ * @return string Input argument of the filter.
+ */
+function _wp_footnotes_force_filtered_html_on_import_filter( $arg ) {
+ // force_filtered_html_on_import is true we need to init the global styles kses filters.
+ if ( $arg ) {
+ _wp_footnotes_kses_init_filters();
+ }
+ return $arg;
+}
'__experimentalRole' => 'content'
),
'width' => array(
- 'type' => 'number'
+ 'type' => 'string'
),
'height' => array(
- 'type' => 'number'
+ 'type' => 'string'
),
'aspectRatio' => array(
'type' => 'string'
"__experimentalRole": "content"
},
"width": {
- "type": "number"
+ "type": "string"
},
"height": {
- "type": "number"
+ "type": "string"
},
"aspectRatio": {
"type": "string"
* avoids unnecessary logic and filesystem lookups in the other function.
*
* @since 6.3.0
+ *
+ * @global string $wp_version The WordPress version string.
*/
function register_core_block_style_handles() {
+ global $wp_version;
+
if ( ! wp_should_load_separate_core_block_assets() ) {
return;
}
+ $blocks_url = includes_url( 'blocks/' );
+ $suffix = wp_scripts_get_suffix();
+ $wp_styles = wp_styles();
+ $style_fields = array(
+ 'style' => 'style',
+ 'editorStyle' => 'editor',
+ );
+
static $core_blocks_meta;
if ( ! $core_blocks_meta ) {
- $core_blocks_meta = require ABSPATH . WPINC . '/blocks/blocks-json.php';
+ $core_blocks_meta = require BLOCKS_PATH . 'blocks-json.php';
}
- $includes_url = includes_url();
- $includes_path = ABSPATH . WPINC . '/';
- $suffix = wp_scripts_get_suffix();
- $wp_styles = wp_styles();
- $style_fields = array(
- 'style' => 'style',
- 'editorStyle' => 'editor',
- );
+ $files = false;
+ $transient_name = 'wp_core_block_css_files';
/*
* Ignore transient cache when the development mode is set to 'core'. Why? To avoid interfering with
* the core developer's workflow.
*/
- if ( ! wp_is_development_mode( 'core' ) ) {
- $transient_name = 'wp_core_block_css_files';
- $files = get_transient( $transient_name );
- if ( ! $files ) {
- $files = glob( wp_normalize_path( __DIR__ . '/**/**.css' ) );
- set_transient( $transient_name, $files );
+ $can_use_cached = ! wp_is_development_mode( 'core' );
+
+ if ( $can_use_cached ) {
+ $cached_files = get_transient( $transient_name );
+
+ // Check the validity of cached values by checking against the current WordPress version.
+ if (
+ is_array( $cached_files )
+ && isset( $cached_files['version'] )
+ && $cached_files['version'] === $wp_version
+ && isset( $cached_files['files'] )
+ ) {
+ $files = $cached_files['files'];
+ }
+ }
+
+ if ( ! $files ) {
+ $files = glob( wp_normalize_path( BLOCKS_PATH . '**/**.css' ) );
+
+ // Normalize BLOCKS_PATH prior to substitution for Windows environments.
+ $normalized_blocks_path = wp_normalize_path( BLOCKS_PATH );
+
+ $files = array_map(
+ static function ( $file ) use ( $normalized_blocks_path ) {
+ return str_replace( $normalized_blocks_path, '', $file );
+ },
+ $files
+ );
+
+ // Save core block style paths in cache when not in development mode.
+ if ( $can_use_cached ) {
+ set_transient(
+ $transient_name,
+ array(
+ 'version' => $wp_version,
+ 'files' => $files,
+ )
+ );
}
- } else {
- $files = glob( wp_normalize_path( __DIR__ . '/**/**.css' ) );
}
- $register_style = static function( $name, $filename, $style_handle ) use ( $includes_path, $includes_url, $suffix, $wp_styles, $files ) {
- $style_path = "blocks/{$name}/{$filename}{$suffix}.css";
- $path = wp_normalize_path( $includes_path . $style_path );
+ $register_style = static function( $name, $filename, $style_handle ) use ( $blocks_url, $suffix, $wp_styles, $files ) {
+ $style_path = "{$name}/{$filename}{$suffix}.css";
+ $path = wp_normalize_path( BLOCKS_PATH . $style_path );
- if ( ! in_array( $path, $files, true ) ) {
+ if ( ! in_array( $style_path, $files, true ) ) {
$wp_styles->add(
$style_handle,
false
return;
}
- $wp_styles->add( $style_handle, $includes_url . $style_path );
+ $wp_styles->add( $style_handle, $blocks_url . $style_path );
$wp_styles->add_data( $style_handle, 'path', $path );
$rtl_file = str_replace( "{$suffix}.css", "-rtl{$suffix}.css", $path );
$link = 'next' === $navigation_type ? _x( 'Next', 'label for next post link' ) : _x( 'Previous', 'label for previous post link' );
$label = '';
+ // Only use hardcoded values here, otherwise we need to add escaping where these values are used.
$arrow_map = array(
'none' => '',
'arrow' => array(
}
// Display arrows.
- if ( isset( $attributes['arrow'] ) && ! empty( $attributes['arrow'] ) && 'none' !== $attributes['arrow'] ) {
+ if ( isset( $attributes['arrow'] ) && 'none' !== $attributes['arrow'] && isset( $arrow_map[ $attributes['arrow'] ] ) ) {
$arrow = $arrow_map[ $attributes['arrow'] ][ $navigation_type ];
if ( 'next' === $navigation_type ) {
return isset( $this->registered_patterns[ $pattern_name ] );
}
+ public function __wakeup() {
+ if ( ! $this->registered_patterns ) {
+ return;
+ }
+ if ( ! is_array( $this->registered_patterns ) ) {
+ throw new UnexpectedValueException();
+ }
+ foreach ( $this->registered_patterns as $value ) {
+ if ( ! is_array( $value ) ) {
+ throw new UnexpectedValueException();
+ }
+ }
+ $this->registered_patterns_outside_init = array();
+ }
+
/**
* Utility method to retrieve the main instance of the class.
*
return isset( $this->registered_block_types[ $name ] );
}
+ public function __wakeup() {
+ if ( ! $this->registered_block_types ) {
+ return;
+ }
+ if ( ! is_array( $this->registered_block_types ) ) {
+ throw new UnexpectedValueException();
+ }
+ foreach ( $this->registered_block_types as $value ) {
+ if ( ! $value instanceof WP_Block_Type ) {
+ throw new UnexpectedValueException();
+ }
+ }
+ }
+
/**
* Utility method to retrieve the main instance of the class.
*
* Removes insecure data from theme.json.
*
* @since 5.9.0
+ * @since 6.3.2 Preserves global styles block variations when securing styles.
*
* @param array $theme_json Structure to sanitize.
* @return array Sanitized structure.
if ( ! empty( $output ) ) {
_wp_array_set( $sanitized, $metadata['path'], $output );
}
+
+ if ( isset( $metadata['variations'] ) ) {
+ foreach ( $metadata['variations'] as $variation ) {
+ $variation_input = _wp_array_get( $theme_json, $variation['path'], array() );
+ if ( empty( $variation_input ) ) {
+ continue;
+ }
+
+ $variation_output = static::remove_insecure_styles( $variation_input );
+ if ( ! empty( $variation_output ) ) {
+ _wp_array_set( $sanitized, $variation['path'], $variation_output );
+ }
+ }
+ }
}
$setting_nodes = static::get_setting_nodes( $theme_json );
return isset( $this->parent ) ? $this->parent : false;
}
+ /**
+ * Perform reinitialization tasks.
+ *
+ * Prevents a callback from being injected during unserialization of an object.
+ *
+ * @return void
+ */
+ public function __wakeup() {
+ if ( $this->parent && ! $this->parent instanceof self ) {
+ throw new UnexpectedValueException();
+ }
+ if ( $this->headers && ! is_array( $this->headers ) ) {
+ throw new UnexpectedValueException();
+ }
+ foreach ( $this->headers as $value ) {
+ if ( ! is_string( $value ) ) {
+ throw new UnexpectedValueException();
+ }
+ }
+ $this->headers_sanitized = array();
+ }
+
/**
* Adds theme data to cache.
*
private static function _name_sort_i18n( $a, $b ) {
return strnatcasecmp( $a->name_translated, $b->name_translated );
}
+
+ private static function _check_headers_property_has_correct_type( $headers ) {
+ if ( ! is_array( $headers ) ) {
+ return false;
+ }
+ foreach ( $headers as $key => $value ) {
+ if ( ! is_string( $key ) || ! is_string( $value ) ) {
+ return false;
+ }
+ }
+ return true;
+ }
}
if ( $widget instanceof WP_Widget ) {
$this->widgets[ spl_object_hash( $widget ) ] = $widget;
} else {
- $this->widgets[ $widget ] = new $widget($widget,$widget);
+ $this->widgets[ $widget ] = new $widget();
}
}
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{
box-shadow:none;
}
-.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus,.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{
+.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{
outline:none;
}
-.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{
+.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{
border-radius:1px;
bottom:1px;
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
top:1px;
z-index:1;
}
-.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{
+.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{
box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
}
-.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected{
- box-shadow:none;
- outline:none;
-}
.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{
border-radius:2px;
border-top:4px solid #ccc;
+ bottom:auto;
+ box-shadow:none;
content:"";
left:0;
pointer-events:none;
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout::selection{background:transparent}.has-multi-selection .block-editor-block-list__layout::selection{background:transparent}.block-editor-block-list__layout:where(.block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)){border-radius:2px}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.4;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{box-shadow:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus,.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;outline:2px solid transparent;pointer-events:none;position:absolute;right:1px;top:1px;z-index:1}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected{box-shadow:none;outline:none}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{border-radius:2px;border-top:4px solid #ccc;content:"";left:0;pointer-events:none;position:absolute;right:0;top:-14px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;z-index:0}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:after{border-color:var(--wp-admin-theme-color)}.has-multi-selection .block-editor-block-list__layout{-webkit-user-select:none;user-select:none}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;user-select:text}.is-block-moving-mode.block-editor-block-list__block-selection-button{font-size:1px;height:1px;opacity:0;padding:0}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;pointer-events:auto;position:relative;-webkit-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{background-color:hsla(0,0%,100%,.4);border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 1px var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text{cursor:unset}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:after{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-delay:0s;transition-duration:0s}}.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-site-blocks>[data-align=left]{float:right;margin-left:2em}.wp-site-blocks>[data-align=right]{float:left;margin-right:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;transition:padding .2s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-delay:0s;transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{position:relative;z-index:5}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-iframe__body{background-color:#fff;transform-origin:top center;transition:all .3s}.is-vertical .block-list-appender{margin-left:auto;margin-right:12px;margin-top:12px;width:24px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay:before{background:transparent;border:none;border-radius:2px;content:"";height:100%;position:absolute;right:0;top:0;width:100%;z-index:10}.block-editor-block-list__block.has-block-overlay:not(.is-multi-selected):after{content:none!important}.block-editor-block-list__block.has-block-overlay:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay.is-reusable:hover:not(.is-dragging-blocks):not(.is-multi-selected):before,.block-editor-block-list__block.has-block-overlay.wp-block-template-part:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{background:rgba(var(--wp-block-synced-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-block-synced-color) inset}.block-editor-block-list__block.has-block-overlay.is-selected:not(.is-dragging-blocks):before{box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-iframe__body.is-zoomed-out .block-editor-block-list__block.has-block-overlay:before{right:calc(50% - 50vw);width:100vw}.block-editor-block-list__layout .is-dragging{background-color:currentColor!important;border-radius:2px!important;opacity:.05!important;pointer-events:none!important}.block-editor-block-list__layout .is-dragging::selection{background:transparent!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:1}.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true],.block-editor-block-preview__live-content .components-placeholder{display:none}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;list-style:none;margin:16px 0;padding:0;width:100%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{flex-shrink:1;list-style:none;margin:8px 0 0 20px;text-align:center;width:75px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-left:0}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-right:0}.block-editor-block-variation-picker__variation:last-child{margin-left:0}.block-editor-button-block-appender{align-items:center;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:flex;flex-direction:column;height:auto;justify-content:center;width:100%}.block-editor-button-block-appender.components-button.components-button{padding:12px}.is-dark-theme .block-editor-button-block-appender{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65);color:hsla(0,0%,100%,.65)}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child{pointer-events:none}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after:before,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter{visibility:hidden}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after{border:none}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter{visibility:visible}.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65);color:hsla(0,0%,100%,.65);transition:background-color .2s ease-in-out}@media (prefers-reduced-motion:reduce){.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{transition:none}}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child:first-child{margin-block-start:0}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:0;line-height:0;position:absolute;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;left:0;list-style:none;padding:0;position:absolute;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;box-shadow:none;color:#fff;display:none;flex-direction:row;height:24px;min-width:24px;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{align-self:center;left:auto;line-height:inherit;list-style:none;position:relative}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-block-list__layout.has-overlay:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:60}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{border:none;border-radius:0;flex-grow:1;margin:2px;min-width:200px;width:100%}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:pointer}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.rich-text:focus{outline:none}.rich-text:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable>p:first-child{margin-top:0}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}.block-editor-warning{align-items:center;background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:flex;flex-wrap:wrap;padding:1em}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.block-editor-warning .block-editor-warning__message{color:#1e1e1e;font-size:13px;line-height:1.4;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{align-items:baseline;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;width:100%}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;margin-top:1em}.block-editor-warning .block-editor-warning__action{margin:0 0 0 8px}.block-editor-warning__secondary{margin:auto 8px auto 0}.components-popover.block-editor-warning__dropdown{z-index:99998}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout::selection{background:transparent}.has-multi-selection .block-editor-block-list__layout::selection{background:transparent}.block-editor-block-list__layout:where(.block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)){border-radius:2px}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.4;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{box-shadow:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;outline:2px solid transparent;pointer-events:none;position:absolute;right:1px;top:1px;z-index:1}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{border-radius:2px;border-top:4px solid #ccc;bottom:auto;box-shadow:none;content:"";left:0;pointer-events:none;position:absolute;right:0;top:-14px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;z-index:0}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:after{border-color:var(--wp-admin-theme-color)}.has-multi-selection .block-editor-block-list__layout{-webkit-user-select:none;user-select:none}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;user-select:text}.is-block-moving-mode.block-editor-block-list__block-selection-button{font-size:1px;height:1px;opacity:0;padding:0}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;pointer-events:auto;position:relative;-webkit-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{background-color:hsla(0,0%,100%,.4);border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 1px var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text{cursor:unset}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:after{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-delay:0s;transition-duration:0s}}.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-site-blocks>[data-align=left]{float:right;margin-left:2em}.wp-site-blocks>[data-align=right]{float:left;margin-right:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;transition:padding .2s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-delay:0s;transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{position:relative;z-index:5}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-iframe__body{background-color:#fff;transform-origin:top center;transition:all .3s}.is-vertical .block-list-appender{margin-left:auto;margin-right:12px;margin-top:12px;width:24px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay:before{background:transparent;border:none;border-radius:2px;content:"";height:100%;position:absolute;right:0;top:0;width:100%;z-index:10}.block-editor-block-list__block.has-block-overlay:not(.is-multi-selected):after{content:none!important}.block-editor-block-list__block.has-block-overlay:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay.is-reusable:hover:not(.is-dragging-blocks):not(.is-multi-selected):before,.block-editor-block-list__block.has-block-overlay.wp-block-template-part:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{background:rgba(var(--wp-block-synced-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-block-synced-color) inset}.block-editor-block-list__block.has-block-overlay.is-selected:not(.is-dragging-blocks):before{box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-iframe__body.is-zoomed-out .block-editor-block-list__block.has-block-overlay:before{right:calc(50% - 50vw);width:100vw}.block-editor-block-list__layout .is-dragging{background-color:currentColor!important;border-radius:2px!important;opacity:.05!important;pointer-events:none!important}.block-editor-block-list__layout .is-dragging::selection{background:transparent!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:1}.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true],.block-editor-block-preview__live-content .components-placeholder{display:none}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;list-style:none;margin:16px 0;padding:0;width:100%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{flex-shrink:1;list-style:none;margin:8px 0 0 20px;text-align:center;width:75px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-left:0}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-right:0}.block-editor-block-variation-picker__variation:last-child{margin-left:0}.block-editor-button-block-appender{align-items:center;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:flex;flex-direction:column;height:auto;justify-content:center;width:100%}.block-editor-button-block-appender.components-button.components-button{padding:12px}.is-dark-theme .block-editor-button-block-appender{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65);color:hsla(0,0%,100%,.65)}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child{pointer-events:none}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after:before,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter{visibility:hidden}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after{border:none}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter{visibility:visible}.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65);color:hsla(0,0%,100%,.65);transition:background-color .2s ease-in-out}@media (prefers-reduced-motion:reduce){.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{transition:none}}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child:first-child{margin-block-start:0}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{left:0;line-height:0;position:absolute;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;left:0;list-style:none;padding:0;position:absolute;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;box-shadow:none;color:#fff;display:none;flex-direction:row;height:24px;min-width:24px;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{align-self:center;left:auto;line-height:inherit;list-style:none;position:relative}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-block-list__layout.has-overlay:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:60}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{border:none;border-radius:0;flex-grow:1;margin:2px;min-width:200px;width:100%}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:pointer}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.rich-text:focus{outline:none}.rich-text:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable>p:first-child{margin-top:0}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}.block-editor-warning{align-items:center;background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:flex;flex-wrap:wrap;padding:1em}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.block-editor-warning .block-editor-warning__message{color:#1e1e1e;font-size:13px;line-height:1.4;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{align-items:baseline;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;width:100%}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;margin-top:1em}.block-editor-warning .block-editor-warning__action{margin:0 0 0 8px}.block-editor-warning__secondary{margin:auto 8px auto 0}.components-popover.block-editor-warning__dropdown{z-index:99998}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{
box-shadow:none;
}
-.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus,.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{
+.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{
outline:none;
}
-.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{
+.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{
border-radius:1px;
bottom:1px;
box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
top:1px;
z-index:1;
}
-.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{
+.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{
box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff;
}
-.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected{
- box-shadow:none;
- outline:none;
-}
.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{
border-radius:2px;
border-top:4px solid #ccc;
+ bottom:auto;
+ box-shadow:none;
content:"";
left:0;
pointer-events:none;
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout::selection{background:transparent}.has-multi-selection .block-editor-block-list__layout::selection{background:transparent}.block-editor-block-list__layout:where(.block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)){border-radius:2px}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.4;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{box-shadow:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus,.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;outline:2px solid transparent;pointer-events:none;position:absolute;right:1px;top:1px;z-index:1}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.has-child-selected:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected{box-shadow:none;outline:none}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{border-radius:2px;border-top:4px solid #ccc;content:"";left:0;pointer-events:none;position:absolute;right:0;top:-14px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;z-index:0}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:after{border-color:var(--wp-admin-theme-color)}.has-multi-selection .block-editor-block-list__layout{-webkit-user-select:none;user-select:none}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;user-select:text}.is-block-moving-mode.block-editor-block-list__block-selection-button{font-size:1px;height:1px;opacity:0;padding:0}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;pointer-events:auto;position:relative;-webkit-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{background-color:hsla(0,0%,100%,.4);border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 1px var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text{cursor:unset}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:after{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-delay:0s;transition-duration:0s}}.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-site-blocks>[data-align=left]{float:left;margin-right:2em}.wp-site-blocks>[data-align=right]{float:right;margin-left:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;transition:padding .2s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-delay:0s;transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{position:relative;z-index:5}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-iframe__body{background-color:#fff;transform-origin:top center;transition:all .3s}.is-vertical .block-list-appender{margin-left:12px;margin-right:auto;margin-top:12px;width:24px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay:before{background:transparent;border:none;border-radius:2px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:10}.block-editor-block-list__block.has-block-overlay:not(.is-multi-selected):after{content:none!important}.block-editor-block-list__block.has-block-overlay:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay.is-reusable:hover:not(.is-dragging-blocks):not(.is-multi-selected):before,.block-editor-block-list__block.has-block-overlay.wp-block-template-part:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{background:rgba(var(--wp-block-synced-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-block-synced-color) inset}.block-editor-block-list__block.has-block-overlay.is-selected:not(.is-dragging-blocks):before{box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-iframe__body.is-zoomed-out .block-editor-block-list__block.has-block-overlay:before{left:calc(50% - 50vw);width:100vw}.block-editor-block-list__layout .is-dragging{background-color:currentColor!important;border-radius:2px!important;opacity:.05!important;pointer-events:none!important}.block-editor-block-list__layout .is-dragging::selection{background:transparent!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:1}.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true],.block-editor-block-preview__live-content .components-placeholder{display:none}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;list-style:none;margin:16px 0;padding:0;width:100%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{flex-shrink:1;list-style:none;margin:8px 20px 0 0;text-align:center;width:75px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-right:0}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-left:0}.block-editor-block-variation-picker__variation:last-child{margin-right:0}.block-editor-button-block-appender{align-items:center;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:flex;flex-direction:column;height:auto;justify-content:center;width:100%}.block-editor-button-block-appender.components-button.components-button{padding:12px}.is-dark-theme .block-editor-button-block-appender{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65);color:hsla(0,0%,100%,.65)}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child{pointer-events:none}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after:before,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter{visibility:hidden}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after{border:none}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter{visibility:visible}.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65);color:hsla(0,0%,100%,.65);transition:background-color .2s ease-in-out}@media (prefers-reduced-motion:reduce){.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{transition:none}}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child:first-child{margin-block-start:0}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{line-height:0;position:absolute;right:0;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;list-style:none;padding:0;position:absolute;right:0;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;box-shadow:none;color:#fff;display:none;flex-direction:row;height:24px;min-width:24px;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{align-self:center;line-height:inherit;list-style:none;position:relative;right:auto}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-block-list__layout.has-overlay:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:60}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{border:none;border-radius:0;flex-grow:1;margin:2px;min-width:200px;width:100%}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:pointer}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.rich-text:focus{outline:none}.rich-text:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable>p:first-child{margin-top:0}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}.block-editor-warning{align-items:center;background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:flex;flex-wrap:wrap;padding:1em}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.block-editor-warning .block-editor-warning__message{color:#1e1e1e;font-size:13px;line-height:1.4;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{align-items:baseline;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;width:100%}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;margin-top:1em}.block-editor-warning .block-editor-warning__action{margin:0 8px 0 0}.block-editor-warning__secondary{margin:auto 0 auto 8px}.components-popover.block-editor-warning__dropdown{z-index:99998}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-styles .block-editor-block-list__block{margin:0}@keyframes selection-overlay__fade-in-animation{0%{opacity:0}to{opacity:.4}}.block-editor-block-list__layout{position:relative}.block-editor-block-list__layout::selection{background:transparent}.has-multi-selection .block-editor-block-list__layout::selection{background:transparent}.block-editor-block-list__layout:where(.block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)){border-radius:2px}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected) ::selection,.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected)::selection{background:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation:selection-overlay__fade-in-animation .1s ease-out;animation-fill-mode:forwards;background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.4;outline:2px solid transparent;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (prefers-reduced-motion:reduce){.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected):after{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__layout .block-editor-block-list__block.is-multi-selected:not(.is-partially-selected).is-highlighted:after{box-shadow:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected{outline:none}.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;outline:2px solid transparent;pointer-events:none;position:absolute;right:1px;top:1px;z-index:1}.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block.is-highlighted~.is-multi-selected:after,.is-dark-theme .block-editor-block-list__layout .block-editor-block-list__block:not([contenteditable]):focus:after,.is-dark-theme .block-editor-block-list__layout.is-navigate-mode .block-editor-block-list__block.is-selected:after{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-block-list__layout .is-block-moving-mode.block-editor-block-list__block.is-selected:after{border-radius:2px;border-top:4px solid #ccc;bottom:auto;box-shadow:none;content:"";left:0;pointer-events:none;position:absolute;right:0;top:-14px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear;z-index:0}.block-editor-block-list__layout .is-block-moving-mode.can-insert-moving-block.block-editor-block-list__block.is-selected:after{border-color:var(--wp-admin-theme-color)}.has-multi-selection .block-editor-block-list__layout{-webkit-user-select:none;user-select:none}.block-editor-block-list__layout [class^=components-]{-webkit-user-select:text;user-select:text}.is-block-moving-mode.block-editor-block-list__block-selection-button{font-size:1px;height:1px;opacity:0;padding:0}.block-editor-block-list__layout .block-editor-block-list__block{overflow-wrap:break-word;pointer-events:auto;position:relative;-webkit-user-select:text;user-select:text}.block-editor-block-list__layout .block-editor-block-list__block.is-editing-disabled{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block .reusable-block-edit-panel *{z-index:1}.block-editor-block-list__layout .block-editor-block-list__block .components-placeholder .components-with-notices-ui{margin:-10px 0 12px}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui{margin:0 0 12px;width:100%}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice{margin-left:0;margin-right:0}.block-editor-block-list__layout .block-editor-block-list__block .components-with-notices-ui .components-notice .components-notice__content{font-size:13px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning{min-height:48px}.block-editor-block-list__layout .block-editor-block-list__block.has-warning>*{pointer-events:none;-webkit-user-select:none;user-select:none}.block-editor-block-list__layout .block-editor-block-list__block.has-warning .block-editor-warning{pointer-events:all}.block-editor-block-list__layout .block-editor-block-list__block.has-warning:after{background-color:hsla(0,0%,100%,.4);border-radius:2px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}.block-editor-block-list__layout .block-editor-block-list__block.has-warning.is-multi-selected:after{background-color:transparent}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay:after{display:none}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable>.block-editor-inner-blocks>.block-editor-block-list__layout.has-overlay .block-editor-block-list__layout.has-overlay:after{display:block}.block-editor-block-list__layout .block-editor-block-list__block.is-reusable.has-child-selected:after{box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.block-editor-block-list__layout .block-editor-block-list__block[data-clear=true]{float:none}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-hovered:after{border-radius:1px;bottom:1px;box-shadow:0 0 0 1px var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected{cursor:default}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected.rich-text{cursor:unset}.is-outline-mode .block-editor-block-list__block:not(.remove-outline).is-selected:after{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:1px;pointer-events:none;position:absolute;right:1px;top:1px}.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){opacity:.2;transition:opacity .1s linear}@media (prefers-reduced-motion:reduce){.is-focus-mode .block-editor-block-list__block:not(.has-child-selected){transition-delay:0s;transition-duration:0s}}.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked-temporarily-editing-as-blocks.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected,.is-focus-mode .block-editor-block-list__block.is-content-locked.has-child-selected .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected) .block-editor-block-list__block,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-multi-selected,.is-focus-mode .block-editor-block-list__block:not(.has-child-selected).is-selected{opacity:1}.wp-block.alignleft,.wp-block.alignright,.wp-block[data-align=left]>*,.wp-block[data-align=right]>*{z-index:21}.wp-site-blocks>[data-align=left]{float:left;margin-right:2em}.wp-site-blocks>[data-align=right]{float:right;margin-left:2em}.wp-site-blocks>[data-align=center]{justify-content:center;margin-left:auto;margin-right:auto}.block-editor-block-list .block-editor-inserter{cursor:move;cursor:grab;margin:8px}@keyframes block-editor-inserter__toggle__fade-in-animation{0%{opacity:0}to{opacity:1}}.wp-block .block-list-appender .block-editor-inserter__toggle{animation:block-editor-inserter__toggle__fade-in-animation .1s ease;animation-fill-mode:forwards}@media (prefers-reduced-motion:reduce){.wp-block .block-list-appender .block-editor-inserter__toggle{animation-delay:0s;animation-duration:1ms}}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender{display:none}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected) .block-editor-default-block-appender .block-editor-inserter__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block .block-editor-block-list__block-html-textarea{border:none;border-radius:2px;box-shadow:inset 0 0 0 1px #1e1e1e;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:15px;line-height:1.5;margin:0;outline:none;overflow:hidden;padding:12px;resize:none;transition:padding .2s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-list__block .block-editor-block-list__block-html-textarea{transition-delay:0s;transition-duration:0s}}.block-editor-block-list__block .block-editor-block-list__block-html-textarea:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-block-list__block .block-editor-warning{position:relative;z-index:5}.block-editor-block-list__block .block-editor-warning.block-editor-block-list__block-crash-warning{margin-bottom:auto}.block-editor-iframe__body{background-color:#fff;transform-origin:top center;transition:all .3s}.is-vertical .block-list-appender{margin-left:12px;margin-right:auto;margin-top:12px;width:24px}.block-list-appender>.block-editor-inserter{display:block}.block-editor-block-list__block:not(.is-selected):not(.has-child-selected):not(.block-editor-block-list__layout) .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle{opacity:0;transform:scale(0)}.block-editor-block-list__block.has-block-overlay{cursor:default}.block-editor-block-list__block.has-block-overlay:before{background:transparent;border:none;border-radius:2px;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:10}.block-editor-block-list__block.has-block-overlay:not(.is-multi-selected):after{content:none!important}.block-editor-block-list__block.has-block-overlay:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{background:rgba(var(--wp-admin-theme-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay.is-reusable:hover:not(.is-dragging-blocks):not(.is-multi-selected):before,.block-editor-block-list__block.has-block-overlay.wp-block-template-part:hover:not(.is-dragging-blocks):not(.is-multi-selected):before{background:rgba(var(--wp-block-synced-color--rgb),.04);box-shadow:0 0 0 1px var(--wp-block-synced-color) inset}.block-editor-block-list__block.has-block-overlay.is-selected:not(.is-dragging-blocks):before{box-shadow:0 0 0 1px var(--wp-admin-theme-color) inset}.block-editor-block-list__block.has-block-overlay .block-editor-block-list__block{pointer-events:none}.block-editor-iframe__body.is-zoomed-out .block-editor-block-list__block.has-block-overlay:before{left:calc(50% - 50vw);width:100vw}.block-editor-block-list__layout .is-dragging{background-color:currentColor!important;border-radius:2px!important;opacity:.05!important;pointer-events:none!important}.block-editor-block-list__layout .is-dragging::selection{background:transparent!important}.block-editor-block-list__layout .is-dragging:after{content:none!important}.block-editor-block-preview__content-iframe .block-list-appender{display:none}.block-editor-block-preview__live-content *{pointer-events:none}.block-editor-block-preview__live-content .block-list-appender{display:none}.block-editor-block-preview__live-content .components-button:disabled{opacity:1}.block-editor-block-preview__live-content .block-editor-block-list__block[data-empty=true],.block-editor-block-preview__live-content .components-placeholder{display:none}.block-editor-block-variation-picker .components-placeholder__instructions{margin-bottom:0}.block-editor-block-variation-picker .components-placeholder__fieldset{flex-direction:column}.block-editor-block-variation-picker.has-many-variations .components-placeholder__fieldset{max-width:90%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;list-style:none;margin:16px 0;padding:0;width:100%}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li{flex-shrink:1;list-style:none;margin:8px 20px 0 0;text-align:center;width:75px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations>li button{display:inline-flex;margin-right:0}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation{padding:8px}.block-editor-block-variation-picker__variations.block-editor-block-variation-picker__variations .block-editor-block-variation-picker__variation-label{display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:12px;line-height:1.4}.block-editor-block-variation-picker__variation{width:100%}.block-editor-block-variation-picker__variation.components-button.has-icon{justify-content:center;width:auto}.block-editor-block-variation-picker__variation.components-button.has-icon.is-secondary{background-color:#fff}.block-editor-block-variation-picker__variation.components-button{height:auto;padding:0}.block-editor-block-variation-picker__variation:before{content:"";padding-bottom:100%}.block-editor-block-variation-picker__variation:first-child{margin-left:0}.block-editor-block-variation-picker__variation:last-child{margin-right:0}.block-editor-button-block-appender{align-items:center;box-shadow:inset 0 0 0 1px #1e1e1e;color:#1e1e1e;display:flex;flex-direction:column;height:auto;justify-content:center;width:100%}.block-editor-button-block-appender.components-button.components-button{padding:12px}.is-dark-theme .block-editor-button-block-appender{box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65);color:hsla(0,0%,100%,.65)}.block-editor-button-block-appender:hover{box-shadow:inset 0 0 0 1px var(--wp-admin-theme-color);color:var(--wp-admin-theme-color)}.block-editor-button-block-appender:focus{box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.block-editor-button-block-appender:active{color:#000}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child{pointer-events:none}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after{border:1px dashed;border-radius:2px;bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after:before,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child:after:before,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child:after:before{background:currentColor;bottom:0;content:"";left:0;opacity:.1;pointer-events:none;position:absolute;right:0;top:0}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child .block-editor-inserter{visibility:hidden}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over:after,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over:after{border:none}.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-constrained.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.block-list-appender:only-child.is-drag-over .block-editor-inserter,.is-layout-flow.block-editor-block-list__block:not(.is-selected)>.wp-block-group__inner-container>.block-list-appender:only-child.is-drag-over .block-editor-inserter{visibility:visible}.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{background-color:var(--wp-admin-theme-color);box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.65);color:hsla(0,0%,100%,.65);transition:background-color .2s ease-in-out}@media (prefers-reduced-motion:reduce){.block-list-appender:only-child.is-drag-over .block-editor-button-block-appender{transition:none}}.block-editor-default-block-appender{clear:both;margin-left:auto;margin-right:auto;position:relative}.block-editor-default-block-appender[data-root-client-id=""] .block-editor-default-block-appender__content:hover{outline:1px solid transparent}.block-editor-default-block-appender .block-editor-default-block-appender__content{opacity:.62}:where(body .is-layout-constrained) .block-editor-default-block-appender>:first-child:first-child{margin-block-start:0}.block-editor-default-block-appender .components-drop-zone__content-icon{display:none}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-default-block-appender .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter,.block-editor-default-block-appender .block-editor-inserter{line-height:0;position:absolute;right:0;top:0}.block-editor-block-list__empty-block-inserter.block-editor-block-list__empty-block-inserter:disabled,.block-editor-default-block-appender .block-editor-inserter:disabled{display:none}.block-editor-block-list__block .block-list-appender{bottom:0;list-style:none;padding:0;position:absolute;right:0;z-index:2}.block-editor-block-list__block .block-list-appender.block-list-appender{line-height:0;margin:0}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender{height:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle{background:#1e1e1e;box-shadow:none;color:#fff;display:none;flex-direction:row;height:24px;min-width:24px;padding:0!important;width:24px}.block-editor-block-list__block .block-list-appender .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__block .block-list-appender .block-editor-default-block-appender__content{display:none}.block-editor-block-list__block .block-list-appender:only-child{align-self:center;line-height:inherit;list-style:none;position:relative;right:auto}.block-editor-block-list__block .block-list-appender:only-child .block-editor-default-block-appender__content{display:block}.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected .block-editor-block-list__layout>.block-list-appender .block-list-appender__toggle,.block-editor-block-list__block.is-selected>.block-list-appender .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__block.is-selected>.block-list-appender .block-list-appender__toggle{display:flex}.block-editor-default-block-appender__content{cursor:text}.block-editor-block-list__layout.has-overlay:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:60}.block-editor-media-placeholder__url-input-container .block-editor-media-placeholder__button{margin-bottom:0}.block-editor-media-placeholder__url-input-form{display:flex}.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{border:none;border-radius:0;flex-grow:1;margin:2px;min-width:200px;width:100%}@media (min-width:600px){.block-editor-media-placeholder__url-input-form input[type=url].block-editor-media-placeholder__url-input-field{width:300px}}.block-editor-media-placeholder__url-input-submit-button{flex-shrink:1}.block-editor-media-placeholder__button{margin-bottom:.5rem}.block-editor-media-placeholder__cancel-button.is-link{display:block;margin:1em}.block-editor-media-placeholder.is-appender{min-height:0}.block-editor-media-placeholder.is-appender:hover{box-shadow:0 0 0 1px var(--wp-admin-theme-color);cursor:pointer}.block-editor-plain-text{border:none;box-shadow:none;color:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;padding:0;width:100%}.rich-text [data-rich-text-placeholder]{pointer-events:none}.rich-text [data-rich-text-placeholder]:after{content:attr(data-rich-text-placeholder);opacity:.62}.rich-text:focus{outline:none}.rich-text:focus [data-rich-text-format-boundary]{border-radius:2px}.block-editor-rich-text__editable>p:first-child{margin-top:0}figcaption.block-editor-rich-text__editable [data-rich-text-placeholder]:before{opacity:.8}[data-rich-text-script]{display:inline}[data-rich-text-script]:before{background:#ff0;content:"</>"}.block-editor-warning{align-items:center;background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:flex;flex-wrap:wrap;padding:1em}.block-editor-warning,.block-editor-warning .block-editor-warning__message{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}.block-editor-warning .block-editor-warning__message{color:#1e1e1e;font-size:13px;line-height:1.4;margin:0}.block-editor-warning p.block-editor-warning__message.block-editor-warning__message{min-height:auto}.block-editor-warning .block-editor-warning__contents{align-items:baseline;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;width:100%}.block-editor-warning .block-editor-warning__actions{align-items:center;display:flex;margin-top:1em}.block-editor-warning .block-editor-warning__action{margin:0 8px 0 0}.block-editor-warning__secondary{margin:auto 0 auto 8px}.components-popover.block-editor-warning__dropdown{z-index:99998}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
border-bottom:1px solid #e0e0e0;
border-radius:0;
display:block;
+ overflow:hidden;
position:sticky;
top:0;
width:100%;
z-index:31;
}
+.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar{
+ overflow:auto;
+ overflow-y:hidden;
+}
.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group{
border-left-color:#e0e0e0;
}
-.block-editor-block-contextual-toolbar:has(.block-editor-block-toolbar:empty){
- display:none;
-}
.block-editor-block-contextual-toolbar.is-collapsed:after{
background:linear-gradient(270deg, #fff, transparent);
content:"";
}
@media (min-width:782px){
.block-editor-block-contextual-toolbar.is-fixed{
+ align-items:center;
border-bottom:none;
display:flex;
+ height:60px;
margin-right:180px;
min-height:auto;
position:fixed;
- top:39px;
+ top:32px;
}
- .block-editor-block-contextual-toolbar.is-fixed.is-collapsed{
+ .block-editor-block-contextual-toolbar.is-fixed.is-collapsed,.block-editor-block-contextual-toolbar.is-fixed:empty{
width:auto;
}
.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{
margin-right:240px;
- top:7px;
+ top:0;
}
- .is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed.is-collapsed{
+ .is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed.is-collapsed,.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed:empty{
width:auto;
}
.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar.is-showing-movers{
top:auto;
}
.block-editor-block-contextual-toolbar.is-fixed{
- width:100%;
+ width:calc(100% - 180px);
+ }
+ .show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{
+ width:calc(100% - 140px);
}
}
@media (min-width:960px){
- .block-editor-block-contextual-toolbar.is-fixed{
+ .block-editor-block-contextual-toolbar.is-fixed,.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{
width:auto;
}
.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{
.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{
flex-shrink:1;
}
+@media (min-width:782px){
+ .show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .components-toolbar,.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .components-toolbar-group{
+ flex-shrink:0;
+ }
+}
.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{
margin-right:6px;
}
-@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-autocompleters__link{white-space:nowrap}.block-editor-autocompleters__link .block-editor-block-icon{margin-left:8px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-block-tools,.block-editor-block-inspector__no-blocks{background:#fff;display:block;font-size:13px;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector__tab-item{flex:1 1 0px}.block-editor-block-list__insertion-point{bottom:0;left:0;position:absolute;right:0;top:0}.block-editor-block-list__insertion-point-indicator{background:var(--wp-admin-theme-color);border-radius:2px;opacity:0;position:absolute;transform-origin:center;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{height:4px;top:calc(50% - 2px);width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{bottom:0;right:calc(50% - 2px);top:0;width:4px}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;position:absolute;right:calc(50% - 12px);top:calc(50% - 12px);will-change:transform}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}.block-editor-block-contextual-toolbar.is-fixed{right:0}@media (min-width:783px){.block-editor-block-contextual-toolbar.is-fixed{right:160px}}@media (min-width:783px){.auto-fold .block-editor-block-contextual-toolbar.is-fixed{right:36px}}@media (min-width:961px){.auto-fold .block-editor-block-contextual-toolbar.is-fixed{right:160px}}.folded .block-editor-block-contextual-toolbar.is-fixed{right:0}@media (min-width:783px){.folded .block-editor-block-contextual-toolbar.is-fixed{right:36px}}body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{right:0!important}.block-editor-block-contextual-toolbar{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:inline-flex}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-left-color:#1e1e1e}.block-editor-block-contextual-toolbar.is-fixed{border:none;border-bottom:1px solid #e0e0e0;border-radius:0;display:block;position:sticky;top:0;width:100%;z-index:31}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group{border-left-color:#e0e0e0}.block-editor-block-contextual-toolbar:has(.block-editor-block-toolbar:empty){display:none}.block-editor-block-contextual-toolbar.is-collapsed:after{background:linear-gradient(270deg,#fff,transparent);content:"";height:100%;position:absolute;right:100%;width:48px}@media (min-width:782px){.block-editor-block-contextual-toolbar.is-fixed{border-bottom:none;display:flex;margin-right:180px;min-height:auto;position:fixed;top:39px}.block-editor-block-contextual-toolbar.is-fixed.is-collapsed{width:auto}.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{margin-right:240px;top:7px}.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed.is-collapsed{width:auto}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar.is-showing-movers{flex-grow:0;width:auto}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar.is-showing-movers:before{background-color:#ddd;content:"";height:24px;margin-left:0;margin-top:12px;position:relative;right:-2px;top:-1px;width:1px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar{border:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar:before{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:12px;position:relative;right:0;top:-1px;width:1px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar{border:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar{width:256px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar:before{background-color:#ddd;content:"";height:24px;margin-bottom:12px;margin-top:12px;position:relative;right:-8px;top:-1px;width:1px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{margin-right:80px}.is-fullscreen-mode .show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{margin-right:144px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button:after{right:0}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__block-controls .block-editor-block-mover:before{background-color:#ddd;content:"";margin-bottom:12px;margin-top:12px;position:relative;width:1px}.blocks-widgets-container .block-editor-block-contextual-toolbar.is-fixed{margin-right:153.6px}.blocks-widgets-container .block-editor-block-contextual-toolbar.is-fixed.is-collapsed{margin-right:268.8px}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button{border:0;padding-left:6px;padding-right:6px;position:relative;top:-1px}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button:after{bottom:4px;content:"·";font-size:16px;line-height:40px;position:absolute;right:46px}.block-editor-block-contextual-toolbar:not(.is-fixed) .block-editor-block-parent-selector{position:absolute;right:-57px;top:-1px}.show-icon-labels .block-editor-block-contextual-toolbar:not(.is-fixed) .block-editor-block-parent-selector{margin-bottom:-1px;margin-right:-1px;margin-top:-1px;position:relative;right:auto;top:auto}.block-editor-block-contextual-toolbar.is-fixed{width:100%}}@media (min-width:960px){.block-editor-block-contextual-toolbar.is-fixed{width:auto}.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{width:calc(100% - 536px)}}.block-editor-block-list__block-selection-button{background-color:#1e1e1e;border-radius:2px;display:inline-flex;font-size:13px;height:48px;padding:0 12px;z-index:22}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content{align-items:center;display:inline-flex;margin:auto}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content>.components-flex__item{margin-left:6px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle{cursor:grab;height:24px;margin-right:-2px;min-width:24px;padding:0}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle svg{min-height:18px;min-width:18px}.block-editor-block-list__block-selection-button .block-editor-block-icon{color:#fff;font-size:13px;height:48px}.block-editor-block-list__block-selection-button .components-button{color:#fff;display:flex;height:48px;min-width:36px}.block-editor-block-list__block-selection-button .components-button:focus{border:none;box-shadow:none}.block-editor-block-list__block-selection-button .components-button:active,.block-editor-block-list__block-selection-button .components-button[aria-disabled=true]:hover{color:#fff}.block-editor-block-list__block-selection-button .block-selection-button_select-button.components-button{padding:0}.block-editor-block-list__block-selection-button .block-editor-block-mover{background:unset;border:none}@keyframes hide-during-dragging{to{position:fixed;transform:translate(-9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-list__block-selection-button{margin-bottom:12px;margin-top:12px;pointer-events:all}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{animation:hide-during-dragging 1ms linear forwards;opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-lock-modal{z-index:1000001}@media (min-width:600px){.block-editor-block-lock-modal .components-modal__frame{max-width:480px}}.block-editor-block-lock-modal__checklist{margin:0}.block-editor-block-lock-modal__options-title{padding:12px 0}.block-editor-block-lock-modal__options-title .components-checkbox-control__label{font-weight:600}.block-editor-block-lock-modal__checklist-item{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:0;padding:12px 32px 12px 0}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{fill:#1e1e1e;flex-shrink:0;margin-left:12px}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding:12px 0}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-right:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-right:1px solid #1e1e1e;margin-left:-6px;margin-right:6px!important}.block-editor-block-breadcrumb{list-style:none;margin:0;padding:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(-1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){box-shadow:none;text-decoration:underline}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:1px;outline:2px solid transparent;position:absolute;right:1px;top:1px}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;font-size:inherit;padding:0 8px}.block-editor-block-card{align-items:flex-start;display:flex}.block-editor-block-card__content{flex-grow:1;margin-bottom:4px}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{line-height:24px;margin:0 0 4px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{flex:0 0 24px;height:24px;margin-left:12px;margin-right:0;width:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;flex-direction:column;justify-content:space-between;max-width:600px;min-width:200px;padding:0 0 0 16px;width:50%}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-left:0;padding-right:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html{border-bottom:1px solid #ddd;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:12px;line-height:1.7;padding-bottom:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-bottom:3px;padding-top:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;right:0;top:-24px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 6px 8px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;-webkit-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{justify-content:flex-start;margin:auto}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-left:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-left:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-height:18px;min-width:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-mover__move-button-container{border:none;display:flex;padding:0}@media (min-width:600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:24px;min-width:0!important;width:100%}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{flex-shrink:0;top:5px}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:5px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{right:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{left:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width:600px){.block-editor-block-mover__drag-handle{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-mover-button:before{animation-delay:0s;animation-duration:1ms}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:before,.components-button.block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{color:#757575;font-size:11px;font-weight:500;margin:0 0 12px;text-transform:uppercase}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{border:1px solid #1e1e1e;border-radius:2px;height:48px;width:48px}.block-editor-block-patterns-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true] .block-editor-block-preview__container{cursor:grab}.block-editor-block-patterns-list__item{height:100%}.block-editor-block-patterns-list__item .block-editor-block-preview__container{align-items:center;border-radius:4px;display:flex;overflow:hidden}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{font-size:12px;padding-top:8px;text-align:center}.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-patterns-list__item:focus .block-editor-block-patterns-list__item-title,.block-editor-block-patterns-list__item:hover .block-editor-block-patterns-list__item-title{color:var(--wp-admin-theme-color)}.components-popover.block-editor-block-popover{margin:0!important;pointer-events:none;position:absolute;z-index:31}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;overflow-y:visible;width:max-content}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{background-color:var(--wp-admin-theme-color);border-radius:2px;inset:0;position:absolute}.block-editor-block-preview__container{overflow:hidden;position:relative;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content{margin:0;min-height:auto;overflow:visible;right:0;text-align:initial;top:0;transform-origin:top right}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles+.default-style-picker__default-switcher{margin-top:16px}.block-editor-block-styles__preview-panel{display:none;left:16px;position:absolute;right:auto;z-index:90}@media (min-width:782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-inserter__preview-container{left:auto;position:static;right:auto;top:auto}.block-editor-block-styles__preview-panel .block-editor-block-card__title.block-editor-block-card__title{margin:0}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{box-shadow:inset 0 0 0 1px #ccc;color:var(--wp-admin-theme-color)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__variants .block-editor-block-styles__item-text{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-editor-block-styles__block-preview-container,.block-editor-block-styles__block-preview-container *{box-sizing:border-box!important}.block-editor-block-switcher{position:relative}.block-editor-block-switcher .components-button.components-dropdown-menu__toggle.has-icon.has-icon{min-width:36px}.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{display:block;height:48px;margin:0}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.block-editor-block-switcher__toggle-text{margin-right:8px}.show-icon-labels .block-editor-block-switcher__toggle-text{display:none}.show-icon-labels .block-editor-block-toolbar .block-editor-block-switcher .components-button.has-icon:after{font-size:14px}.components-button.block-editor-block-switcher__no-switcher-icon{display:flex}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-left:auto;margin-right:auto;min-width:24px!important}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e}.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{align-items:center;display:flex;height:100%;margin:0 auto;min-width:100%;position:relative}.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{bottom:8px;left:8px;right:8px;top:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;right:calc(100% + 16px);top:-12px}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:none;outline:none;width:300px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{margin:16px 0;max-height:468px;overflow:hidden;padding:0 16px}.block-editor-block-switcher__preview-title{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;text-transform:uppercase}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{min-width:36px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{height:48px;width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:pointer}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border:1px solid transparent;border-radius:2px;height:100%;position:relative;transition:all .05s ease-in-out}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{cursor:pointer;font-size:12px;padding:4px;text-align:center}.block-editor-block-types-list>[role=presentation]{display:flex;flex-wrap:wrap;overflow:hidden}.block-editor-block-pattern-setup{align-items:flex-start;border-radius:2px;display:flex;flex-direction:column;justify-content:center;width:100%}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:2;column-gap:24px;display:block;padding:0 32px;width:100%}@media (min-width:1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{cursor:pointer;font-size:12px;padding-top:8px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{border:1px solid #ddd;border-radius:2px;min-height:100px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{align-items:center;align-self:flex-end;background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:row;height:60px;justify-content:space-between;margin:0;padding:16px;position:absolute;text-align:right;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{display:flex;width:calc(50% - 36px)}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{height:100%;list-style:none;margin:0;overflow:hidden;padding:0;position:relative;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{background-color:#fff;height:100%;margin:auto;padding:0;position:absolute;top:0;transition:transform .5s,z-index .5s;width:100%;z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{padding:0 52px 16px 16px;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle{border:1px solid #757575;border-radius:2px;justify-content:right;min-height:30px;padding:6px 12px;position:relative;text-align:right;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle.components-dropdown-menu__toggle{padding-left:24px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color)}.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg{height:100%;left:0;padding:0;position:absolute;top:0}.block-editor-block-variation-transforms__popover .components-popover__content{min-width:230px}.components-border-radius-control{margin-bottom:12px}.components-border-radius-control legend{margin-bottom:8px}.components-border-radius-control .components-border-radius-control__wrapper{align-items:flex-start;display:flex;justify-content:space-between}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__unit-control{flex-shrink:0;margin-bottom:0;margin-left:16px;width:calc(50% - 8px)}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control{flex:1;margin-left:12px}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control>div{align-items:center;display:flex;height:40px}.components-border-radius-control .components-border-radius-control__wrapper>span{flex:0 0 auto}.components-border-radius-control .components-border-radius-control__input-controls-wrapper{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));margin-left:12px}.components-border-radius-control .component-border-radius-control__linked-button{display:flex;justify-content:center;margin-top:8px}.components-border-radius-control .component-border-radius-control__linked-button svg{margin-left:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{min-width:0}.block-editor-color-gradient-control__tabs .block-editor-color-gradient-control__panel{padding:16px}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings,.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings>div:not(:first-of-type){display:block}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px);justify-content:space-between}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{padding:16px;width:260px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-tools-panel-color-gradient-settings__item{border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;max-width:100%;padding:0}.block-editor-tools-panel-color-gradient-settings__item.first{border-top:1px solid #ddd;border-top-left-radius:2px;border-top-right-radius:2px;margin-top:24px}.block-editor-tools-panel-color-gradient-settings__item.last{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-tools-panel-color-gradient-settings__item>div,.block-editor-tools-panel-color-gradient-settings__item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-bottom:10px;padding-top:10px;text-align:right}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-date-format-picker{margin-bottom:16px}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-date-format-picker__custom-format-select-control__custom-option.has-hint{grid-template-columns:auto 30px}.block-editor-date-format-picker__custom-format-select-control__custom-option .components-custom-select-control__item-hint{grid-row:2;text-align:right}.block-editor-duotone-control__popover>.components-popover__content{padding:16px;width:280px}.block-editor-duotone-control__popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover .components-circular-option-picker__swatches{display:grid;gap:12px;grid-template-columns:repeat(6,28px);justify-content:space-between}.block-editor-duotone-control__description{font-size:12px;margin:16px 0}.block-editor-duotone-control__unset-indicator{background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.components-font-appearance-control ul li{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles-effects-panel__toggle-icon{fill:currentColor}.block-editor-global-styles-effects-panel__shadow-popover-container{width:230px}.block-editor-global-styles-effects-panel__shadow-dropdown,.block-editor-global-styles-filters-panel__dropdown{display:block;padding:0}.block-editor-global-styles-effects-panel__shadow-dropdown button,.block-editor-global-styles-filters-panel__dropdown button{padding:8px;width:100%}.block-editor-global-styles-effects-panel__shadow-dropdown button.is-open,.block-editor-global-styles-filters-panel__dropdown button.is-open{background-color:#f0f0f0}.block-editor-global-styles-effects-panel__shadow-indicator-wrapper{align-items:center;display:flex;justify-content:center;overflow:hidden;padding:6px}.block-editor-global-styles-effects-panel__shadow-indicator{border:1px solid #e0e0e0;border-radius:2px;color:#2f2f2f;cursor:pointer;height:24px;padding:0;width:24px}.block-editor-global-styles-advanced-panel__custom-css-input textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.block-editor-global-styles-advanced-panel__custom-css-validation-wrapper{bottom:16px;left:24px;position:absolute}.block-editor-global-styles-advanced-panel__custom-css-validation-icon{fill:#cc1818}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__width{margin-bottom:1.115em}.block-editor-block-types-list__list-item{display:block;margin:0;padding:0;width:33.33%}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{align-items:stretch;background:transparent;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;flex-direction:column;font-size:13px;height:auto;justify-content:center;padding:8px;position:relative;transition:all .05s ease-in-out;width:100%;word-break:break-word}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-delay:0s;transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{cursor:default;opacity:.6}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.components-button.block-editor-block-types-list__item:not(:disabled):focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{background:#1e1e1e;color:#fff;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{border-radius:2px;color:#1e1e1e;padding:12px 20px;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-delay:0s;transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-delay:0s;transition-duration:0s}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{font-size:12px;padding:4px 2px 8px}.show-icon-labels .block-editor-block-inspector__tabs .components-tab-panel__tabs .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-inspector__tabs .components-tab-panel__tabs .components-button.has-icon:before{content:attr(aria-label)}.block-editor-inspector-controls-tabs__hint{align-items:top;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;margin:16px}.block-editor-inspector-controls-tabs__hint-content{margin:12px 12px 12px 0}.block-editor-inspector-controls-tabs__hint-dismiss{margin:4px 0 4px 4px}.block-editor-inspector-popover-header{margin-bottom:16px}[class].block-editor-inspector-popover-header__action{height:24px}[class].block-editor-inspector-popover-header__action.has-icon{min-width:24px;padding:0}[class].block-editor-inspector-popover-header__action:not(.has-icon){text-decoration:underline}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{min-width:350px;position:relative}.components-popover__content .block-editor-link-control{max-width:350px;min-width:auto;width:90vw}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__search-input-container{position:relative}.block-editor-link-control__search-input.has-no-label .block-editor-url-input__input{flex:1}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:8px 16px;position:relative;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{font-size:13px;line-height:normal}}.block-editor-link-control__field input[type=text]:focus,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control__field input[type=text]::-webkit-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control__field input[type=text]::-moz-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.block-editor-link-control__field input[type=text]:-ms-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{display:flex;flex-direction:row-reverse;gap:8px;justify-content:flex-start;order:20;padding:8px}.block-editor-link-control__search-results{margin-top:-16px;max-height:200px;overflow-y:auto;padding:8px}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:right}.block-editor-link-control__search-item .components-menu-item__item{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{background-color:transparent;color:inherit;font-weight:600}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;text-transform:capitalize;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__search-item.is-current{background:transparent;border:0;cursor:default;flex-direction:column;padding:16px;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{align-items:flex-start;display:block;flex-direction:row;margin-left:8px;overflow-wrap:break-word;white-space:pre-wrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-info{word-break:break-all}.block-editor-link-control__search-item.is-preview .block-editor-link-control__search-item-header{display:flex;flex:1}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-header{align-items:center}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{display:flex;flex-shrink:0;justify-content:center;margin-left:8px;max-height:24px;position:relative;width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon img{width:16px}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-icon{max-height:32px;top:0;width:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;font-weight:500;margin-bottom:.2em;position:relative}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{background-color:transparent;color:inherit;font-weight:600}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-title svg{display:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-description{margin:0;padding-top:12px}.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder{display:flex;flex-direction:column;height:28px;justify-content:space-around;margin-top:12px;padding-top:0}.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder:after,.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder:before{background-color:#f0f0f0;border-radius:3px;content:"";display:block;height:.7em;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-description .components-text{font-size:.9em}.block-editor-link-control__search-item .block-editor-link-control__search-item-image{background-color:#f0f0f0;border-radius:2px;display:flex;height:140px;justify-content:center;margin-top:12px;max-height:140px;overflow:hidden;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-image.is-placeholder{background-color:#f0f0f0;border-radius:3px}.block-editor-link-control__search-item .block-editor-link-control__search-item-image img{display:block;height:140px;max-height:140px;max-width:100%}.block-editor-link-control__search-item-top{display:flex;flex-direction:row;width:100%}.block-editor-link-control__search-item-bottom{transition:opacity 1.5s;width:100%}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-description:after,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-description:before,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-image{animation:loadingpulse 1s linear infinite;animation-delay:.5s}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon img,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon svg{opacity:0}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon:before{animation:loadingpulse 1s linear infinite;animation-delay:.5s;background-color:#f0f0f0;border-radius:100%;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.block-editor-link-control__loading{align-items:center;display:flex;margin:16px}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";display:block;position:absolute;right:0;top:-10px;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__search-item-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer{display:flex;flex-basis:100%;flex-direction:column;order:30}.block-editor-link-control__drawer-inner{display:flex;flex-basis:100%;flex-direction:column;position:relative}.block-editor-link-control__unlink{padding-left:16px;padding-right:16px}.block-editor-link-control__setting{flex:1;margin-bottom:16px;padding:8px 24px 8px 0}.block-editor-link-control__setting input{margin-right:0}.block-editor-link-control__setting.block-editor-link-control__setting:last-child{margin-bottom:0}.block-editor-link-control__tools{margin-top:-16px;padding:8px 8px 0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{gap:0;padding-right:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transform:rotate(-90deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition-delay:0s;transition-duration:0s}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transform:rotate(0deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition-delay:0s;transition-duration:0s}}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{bottom:auto;left:16px;position:absolute;right:auto;top:calc(50% - 8px)}.block-editor-link-control__search-item-action{flex-shrink:0;margin-right:auto}.block-editor-list-view-tree{border-collapse:collapse;margin:0;padding:0;width:100%}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-leaf{position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents{align-items:center;border-radius:2px;display:flex;height:auto;padding:6px 0 6px 4px;position:relative;text-align:right;white-space:nowrap;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before:before{border-top:4px solid var(--wp-admin-theme-color);content:"";left:0;pointer-events:none;position:absolute;right:0;top:-2px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus{box-shadow:none}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:-29px;pointer-events:none;position:absolute;right:0;top:0;z-index:2}.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after{box-shadow:none}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{left:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);z-index:1}.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block__menu:focus{box-shadow:none}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;opacity:1}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation-delay:0s;animation-duration:1ms}}.block-editor-list-view-leaf .block-editor-block-icon{flex:0 0 24px;margin-left:8px}.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{padding-bottom:0;padding-top:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;vertical-align:middle;width:36px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell .components-button.has-icon{min-width:24px;padding:0;width:24px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell{padding-left:4px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon{height:24px}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{align-items:center;display:flex;flex-direction:column;height:100%}.block-editor-list-view-leaf .block-editor-block-mover-button{height:24px;position:relative;width:36px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{height:24px;position:relative}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end;margin-top:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start;margin-bottom:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;left:0;min-width:100%;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 1px 6px 6px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper{min-width:120px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;transform:translateY(-50%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{max-width:min(110px,40%);position:relative;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{background:rgba(0,0,0,.1);border-radius:2px;box-sizing:border-box;left:0;max-width:100%;padding:2px 6px;position:absolute;transform:translateY(-50%)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:rgba(0,0,0,.3)}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__sticky{line-height:0}.block-editor-list-view-appender__cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container{display:flex}.block-editor-list-view__expander{height:24px;margin-right:4px;width:24px}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-right:220px}.block-editor-list-view-leaf:not([aria-level="1"]) .block-editor-list-view__expander{margin-left:4px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-right:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-right:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-right:52px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-right:80px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-right:108px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-right:136px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-right:164px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-right:192px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transform:rotate(-90deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transform:rotate(0deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);border-radius:4px;height:4px}.block-editor-list-view-placeholder{height:36px;margin:0;padding:0}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;border-radius:2px;color:#fff;height:24px;margin:8px 24px 0 0;min-width:24px;padding:0}.list-view-appender .block-editor-inserter__toggle:focus,.list-view-appender .block-editor-inserter__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description,.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-flow__url-input{margin-left:-8px;margin-right:-8px;padding:16px}.block-editor-media-flow__url-input.has-siblings{border-top:1px solid #1e1e1e;margin-top:8px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;margin-bottom:8px;top:16px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{margin:0;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-info,.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:200px;white-space:nowrap}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{padding:0;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{left:4px;top:0}.block-editor-media-flow__error{max-width:255px;padding:0 20px 20px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{word-wrap:break-word;overflow:hidden}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{left:10px;position:absolute}.block-editor-multi-selection-inspector__card{align-items:flex-start;display:flex;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{height:24px;margin-left:10px;margin-right:-2px;padding:0 3px;width:36px}.block-editor-responsive-block-control{border-bottom:1px solid #ccc;margin-bottom:28px;padding-bottom:14px}.block-editor-responsive-block-control:last-child{border-bottom:0;padding-bottom:0}.block-editor-responsive-block-control__title{margin:0 -3px .6em 0}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-right:-3px}.block-editor-responsive-block-control__inner{margin-right:-1px}.block-editor-responsive-block-control__toggle{margin-right:1px}.block-editor-responsive-block-control .components-base-control__help{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{box-shadow:none;margin-bottom:8px;min-width:auto;outline:none;width:auto}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{background:#f1f1f1;box-shadow:0 0 2px 2px rgba(0,0,0,.6);color:var(--wp-admin-theme-color);display:block;font-size:14px;font-weight:600;height:auto;line-height:normal;outline:none;padding:15px 23px 14px;text-decoration:none;width:auto;z-index:100000}.block-editor-text-decoration-control{border:0;margin:0;padding:0}.block-editor-text-decoration-control .block-editor-text-decoration-control__buttons{display:flex;padding:4px 0}.block-editor-text-decoration-control .components-button.has-icon{height:32px;margin-left:4px;min-width:32px;padding:0}.block-editor-text-transform-control{border:0;margin:0;padding:0}.block-editor-text-transform-control .block-editor-text-transform-control__buttons{display:flex;padding:4px 0}.block-editor-text-transform-control .components-button.has-icon{height:32px;margin-left:4px;min-width:32px;padding:0}.block-editor-tool-selector__help{border-top:1px solid #ddd;color:#757575;margin:8px -8px -8px;min-width:280px;padding:16px}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;padding:1px;position:relative}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{border:none;border-radius:0;font-size:16px;margin-left:0;margin-right:0;padding:8px 12px 8px 8px;width:100%}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px;width:300px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{left:8px;margin:0;position:absolute;top:calc(50% - 8px)}.block-editor-url-input__input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__suggestions{max-height:200px;overflow-y:auto;padding:4px 0;transition:all .15s ease-in-out;width:302px}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-delay:0s;transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:grid}}.block-editor-url-input__suggestion{background:#fff;border:none;box-shadow:none;color:#757575;cursor:pointer;display:block;font-size:13px;height:auto;min-height:36px;text-align:right;width:100%}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-left:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{background:#ddd;content:"";display:block;height:24px;left:-1px;position:absolute;width:1px}.block-editor-url-input__button-modal{background:#fff;border:1px solid #ddd;box-shadow:0 .7px 1px rgba(0,0,0,.1),0 1.2px 1.7px -.2px rgba(0,0,0,.1),0 2.3px 3.3px -.5px rgba(0,0,0,.1)}.block-editor-url-input__button-modal-line{align-items:flex-start;display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;height:36px;width:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #ddd}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-right:12px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{border-radius:2px;height:30px;padding:5px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{border-radius:0;border-right:1px solid #ddd;flex-shrink:0;margin-right:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__settings{border-top:1px solid #ddd;display:block;padding:16px}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.html-anchor-control .components-external-link{display:block;margin-top:8px}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{grid-column:span 2;margin-top:16px;order:9999}.color-block-support-panel .block-editor-contrast-checker .components-notice__content{margin-left:0}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.first{margin-top:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-controls{display:flex;margin-bottom:8px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit{display:flex;margin-left:24px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit svg{margin:auto 8px 4px 0}.block-editor-block-inspector .block-editor-hooks__layout-controls-unit-input{margin-bottom:0}.block-editor-hooks__layout-controls-reset{display:flex;justify-content:flex-end;margin-bottom:24px}.block-editor-hooks__layout-controls-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__toggle-control.block-editor-hooks__toggle-control{margin-bottom:16px}.block-editor__padding-visualizer{border-color:var(--wp-admin-theme-color);border-style:solid;bottom:0;box-sizing:border-box;left:0;opacity:.5;pointer-events:none;position:absolute;right:0;top:0}.block-editor-hooks__position-selection__select-control .components-custom-select-control__hint{display:none}.block-editor-hooks__position-selection__select-control__option.has-hint{grid-template-columns:auto 30px;line-height:1.4;margin-bottom:0}.block-editor-hooks__position-selection__select-control__option .components-custom-select-control__item-hint{grid-row:2;text-align:right}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;overflow-x:auto;overflow-y:hidden;position:relative;transition:border-color .1s linear,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;border:0;border-left:1px solid #ddd;line-height:0;margin-bottom:-1px;margin-top:-1px}.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-left:none}@media (min-width:782px){.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group{border-left:none}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar:after{background-color:#ddd;content:"";margin-bottom:12px;margin-right:8px;margin-top:12px;width:1px}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar>:last-child:after{display:none}}.block-editor-block-contextual-toolbar.has-parent:not(.is-fixed){margin-right:56px}.show-icon-labels .block-editor-block-contextual-toolbar.has-parent:not(.is-fixed){margin-right:0}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin:0!important;width:24px!important}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports (position:sticky){.block-editor-block-toolbar__slot{display:inline-flex}}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon{width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.show-icon-labels .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{height:0!important;min-width:0!important;width:0!important}.show-icon-labels .block-editor-block-parent-selector__button{border-bottom-left-radius:0;border-top-left-radius:0}.show-icon-labels .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{width:auto}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right:1px solid #1e1e1e;margin-left:-6px;margin-right:6px;white-space:nowrap}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right-color:#e0e0e0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-mover__move-button-container{border-width:0}@media (min-width:600px){.show-icon-labels .is-up-button.is-up-button.is-up-button{border-radius:0;margin-left:0;order:1}.show-icon-labels .block-editor-block-mover__move-button-container{border-right:1px solid #1e1e1e}.show-icon-labels .is-down-button.is-down-button.is-down-button{order:2}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-mover__move-button-container:before{background:#ddd}}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-right:6px}.block-editor-inserter{background:none;border:none;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0;padding:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{display:flex;flex-direction:column;gap:16px;height:100%;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;box-shadow:0 .7px 1px rgba(0,0,0,.1),0 1.2px 1.7px -.2px rgba(0,0,0,.1),0 2.3px 3.3px -.5px rgba(0,0,0,.1);outline:none}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:first-child{border-radius:2px 2px 0 0;border-top:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:last-child{border-bottom:1px solid #ccc;border-radius:0 0 2px 2px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{height:auto;overflow:visible}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{align-items:center;border:none;cursor:pointer;display:inline-flex;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-delay:0s;transition-duration:0s}}.block-editor-inserter__menu{height:100%;overflow:visible;position:relative}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99999}.block-editor-inserter__search{padding:16px 16px 0}.block-editor-inserter__search .components-search-control__icon{left:20px}.block-editor-inserter__tabs{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.block-editor-inserter__tabs .components-tab-panel__tabs{border-bottom:1px solid #ddd}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item[id$=reusable]{flex-grow:inherit;padding-left:16px;padding-right:16px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto}.block-editor-inserter__no-tab-container{flex-grow:1;overflow-y:auto}.block-editor-inserter__panel-header{align-items:center;display:inline-flex;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{color:#757575;font-size:11px;font-weight:500;margin:0 0 0 12px;text-transform:uppercase}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__manage-reusable-blocks-container{margin:auto 16px 16px}.block-editor-inserter__manage-reusable-blocks{justify-content:center;width:100%}.block-editor-inserter__no-results{padding:32px;text-align:center}.block-editor-inserter__no-results-icon{fill:#949494}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{align-items:center;display:flex}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-left:8px}.block-editor-inserter__preview-container{background:#fff;border:1px solid #ddd;border-radius:2px;display:none;max-height:calc(100% - 32px);overflow-y:hidden;position:absolute;right:calc(100% + 16px);top:16px;width:300px}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__patterns-explore-button.components-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category{color:var(--wp-admin-theme-color);position:relative}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category .components-flex-item{filter:brightness(.95)}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;position:absolute;right:0;top:0}.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__block-patterns-tabs-container nav{height:100%}.block-editor-inserter__block-patterns-tabs{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:16px}.block-editor-inserter__block-patterns-tabs div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__patterns-category-dialog{background:#f0f0f0;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;height:100%;overflow-y:auto;padding:32px 24px;position:absolute;right:0;scrollbar-gutter:stable both-edges;top:0;width:100%}@media (min-width:782px){.block-editor-inserter__patterns-category-dialog{display:block;right:100%;width:300px}}.block-editor-inserter__patterns-category-dialog .block-editor-block-patterns-list{margin-top:24px}.block-editor-inserter__patterns-category-dialog .block-editor-block-preview__container{box-shadow:0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__patterns-category-dialog .block-editor-block-preview__container:hover{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__patterns-category-panel{padding:0 16px}@media (min-width:782px){.block-editor-inserter__patterns-category-panel{padding:0}}.block-editor-inserter__preview-content{align-items:center;background:#f0f0f0;display:grid;flex-grow:1;min-height:144px}.block-editor-inserter__preview-content-missing{align-items:center;background:#f0f0f0;color:#757575;display:flex;flex:1;justify-content:center;min-height:144px}.block-editor-inserter__tips{border-top:1px solid #ddd;flex-shrink:0;padding:16px;position:relative}.block-editor-inserter__quick-inserter{max-width:100%;width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{float:right;height:0;padding:0}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-preview__container{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{background:#1e1e1e;border-radius:0;color:#fff;display:block;height:44px;width:100%}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);box-shadow:none}.block-editor-block-patterns-explorer__sidebar{bottom:0;overflow-x:visible;overflow-y:scroll;padding:24px 32px 32px;position:absolute;right:0;top:76px;width:280px}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;height:48px;text-align:right;width:100%}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-right:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-gap:32px;display:grid;grid-template-columns:repeat(1,1fr)}@media (min-width:1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-preview__container{height:inherit;max-height:800px;min-height:100px}.block-editor-inserter__patterns-category-panel-title{font-size:16.25px}.block-editor-inserter__media-tabs-container,.block-editor-inserter__media-tabs-container nav{height:100%}.block-editor-inserter__media-tabs-container .block-editor-inserter__media-library-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__media-tabs{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:16px}.block-editor-inserter__media-tabs div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__media-tabs__media-category.is-selected{color:var(--wp-admin-theme-color);position:relative}.block-editor-inserter__media-tabs__media-category.is-selected .components-flex-item{filter:brightness(.95)}.block-editor-inserter__media-tabs__media-category.is-selected svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__media-tabs__media-category.is-selected:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;position:absolute;right:0;top:0}.block-editor-inserter__media-dialog{background:#f0f0f0;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;height:100%;overflow-y:auto;padding:16px 24px;position:absolute;right:0;scrollbar-gutter:stable both-edges;top:0;width:100%}@media (min-width:782px){.block-editor-inserter__media-dialog{display:block;right:100%;width:300px}}.block-editor-inserter__media-dialog .block-editor-block-preview__container{box-shadow:0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__media-dialog .block-editor-block-preview__container:hover{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__media-panel{display:flex;flex-direction:column;min-height:100%;padding:0 16px}@media (min-width:782px){.block-editor-inserter__media-panel{padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{align-items:center;display:flex;flex:1;height:100%;justify-content:center}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search.components-search-control input[type=search].components-search-control__input{background:#fff}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search.components-search-control button.components-button{min-width:auto;padding-left:2px;padding-right:2px}.block-editor-inserter__media-list{margin-top:16px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item[draggable=true] .block-editor-block-preview__container{cursor:grab}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{left:8px;position:absolute;top:8px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;border-radius:2px;display:none}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list .block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{margin:0 auto;max-width:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{align-items:center;background:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{height:100%;padding:16px}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width:600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.reusable-blocks-menu-items__rename-hint{align-items:top;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;max-width:380px}.reusable-blocks-menu-items__rename-hint-content{margin:12px 12px 12px 0}.reusable-blocks-menu-items__rename-hint-dismiss{margin:4px 0 4px 4px}.components-menu-group .reusable-blocks-menu-items__rename-hint{margin:0}.block-editor-post-preview__dropdown{padding:0}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-right:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-right:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:first-child{padding-bottom:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:last-child{margin-bottom:0}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{padding:8px}@media (min-width:600px){.edit-post-header__settings .editor-post-preview,.edit-site-header-edit-mode__actions .editor-post-preview{display:none}.edit-post-header.has-reduced-ui .edit-post-header__settings .block-editor-post-preview__button-toggle,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-save-draft,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-saved-state{transition:opacity .1s linear}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.edit-post-header.has-reduced-ui .edit-post-header__settings .block-editor-post-preview__button-toggle,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-save-draft,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-saved-state{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .block-editor-post-preview__button-toggle,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .editor-post-save-draft,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .editor-post-saved-state{opacity:0}.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .block-editor-post-preview__button-toggle.is-opened{opacity:1}}.spacing-sizes-control .spacing-sizes-control__custom-value-input,.spacing-sizes-control .spacing-sizes-control__label{margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range,.spacing-sizes-control .spacing-sizes-control__range-control{align-items:center;display:flex;flex:1;height:40px;margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range>.components-base-control__field,.spacing-sizes-control .spacing-sizes-control__range-control>.components-base-control__field{flex:1}.spacing-sizes-control .components-range-control__mark{background-color:#fff;height:4px;width:3px;z-index:1}.spacing-sizes-control .components-range-control__marks{margin-top:17px}.spacing-sizes-control .components-range-control__marks :first-child{display:none}.spacing-sizes-control .components-range-control__thumb-wrapper{z-index:3}.spacing-sizes-control__wrapper+.spacing-sizes-control__wrapper{margin-top:8px}.spacing-sizes-control__header{height:16px;margin-bottom:8px}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__custom-select-control,.spacing-sizes-control__custom-value-input{flex:1}.spacing-sizes-control__custom-toggle,.spacing-sizes-control__icon{flex:0 0 auto}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
+@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-left:8px}.block-editor-autocompleters__link{white-space:nowrap}.block-editor-autocompleters__link .block-editor-block-icon{margin-left:8px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-block-tools,.block-editor-block-inspector__no-blocks{background:#fff;display:block;font-size:13px;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector__tab-item{flex:1 1 0px}.block-editor-block-list__insertion-point{bottom:0;left:0;position:absolute;right:0;top:0}.block-editor-block-list__insertion-point-indicator{background:var(--wp-admin-theme-color);border-radius:2px;opacity:0;position:absolute;transform-origin:center;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{height:4px;top:calc(50% - 2px);width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{bottom:0;right:calc(50% - 2px);top:0;width:4px}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;position:absolute;right:calc(50% - 12px);top:calc(50% - 12px);will-change:transform}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}.block-editor-block-contextual-toolbar.is-fixed{right:0}@media (min-width:783px){.block-editor-block-contextual-toolbar.is-fixed{right:160px}}@media (min-width:783px){.auto-fold .block-editor-block-contextual-toolbar.is-fixed{right:36px}}@media (min-width:961px){.auto-fold .block-editor-block-contextual-toolbar.is-fixed{right:160px}}.folded .block-editor-block-contextual-toolbar.is-fixed{right:0}@media (min-width:783px){.folded .block-editor-block-contextual-toolbar.is-fixed{right:36px}}body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{right:0!important}.block-editor-block-contextual-toolbar{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:inline-flex}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-left-color:#1e1e1e}.block-editor-block-contextual-toolbar.is-fixed{border:none;border-bottom:1px solid #e0e0e0;border-radius:0;display:block;overflow:hidden;position:sticky;top:0;width:100%;z-index:31}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar{overflow:auto;overflow-y:hidden}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group{border-left-color:#e0e0e0}.block-editor-block-contextual-toolbar.is-collapsed:after{background:linear-gradient(270deg,#fff,transparent);content:"";height:100%;position:absolute;right:100%;width:48px}@media (min-width:782px){.block-editor-block-contextual-toolbar.is-fixed{align-items:center;border-bottom:none;display:flex;height:60px;margin-right:180px;min-height:auto;position:fixed;top:32px}.block-editor-block-contextual-toolbar.is-fixed.is-collapsed,.block-editor-block-contextual-toolbar.is-fixed:empty{width:auto}.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{margin-right:240px;top:0}.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed.is-collapsed,.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed:empty{width:auto}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar.is-showing-movers{flex-grow:0;width:auto}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar.is-showing-movers:before{background-color:#ddd;content:"";height:24px;margin-left:0;margin-top:12px;position:relative;right:-2px;top:-1px;width:1px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar{border:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar:before{background-color:#ddd;content:"";height:24px;margin-left:8px;margin-top:12px;position:relative;right:0;top:-1px;width:1px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar{border:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar{width:256px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar:before{background-color:#ddd;content:"";height:24px;margin-bottom:12px;margin-top:12px;position:relative;right:-8px;top:-1px;width:1px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{margin-right:80px}.is-fullscreen-mode .show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{margin-right:144px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button:after{right:0}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__block-controls .block-editor-block-mover:before{background-color:#ddd;content:"";margin-bottom:12px;margin-top:12px;position:relative;width:1px}.blocks-widgets-container .block-editor-block-contextual-toolbar.is-fixed{margin-right:153.6px}.blocks-widgets-container .block-editor-block-contextual-toolbar.is-fixed.is-collapsed{margin-right:268.8px}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button{border:0;padding-left:6px;padding-right:6px;position:relative;top:-1px}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button:after{bottom:4px;content:"·";font-size:16px;line-height:40px;position:absolute;right:46px}.block-editor-block-contextual-toolbar:not(.is-fixed) .block-editor-block-parent-selector{position:absolute;right:-57px;top:-1px}.show-icon-labels .block-editor-block-contextual-toolbar:not(.is-fixed) .block-editor-block-parent-selector{margin-bottom:-1px;margin-right:-1px;margin-top:-1px;position:relative;right:auto;top:auto}.block-editor-block-contextual-toolbar.is-fixed{width:calc(100% - 180px)}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{width:calc(100% - 140px)}}@media (min-width:960px){.block-editor-block-contextual-toolbar.is-fixed,.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{width:auto}.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{width:calc(100% - 536px)}}.block-editor-block-list__block-selection-button{background-color:#1e1e1e;border-radius:2px;display:inline-flex;font-size:13px;height:48px;padding:0 12px;z-index:22}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content{align-items:center;display:inline-flex;margin:auto}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content>.components-flex__item{margin-left:6px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle{cursor:grab;height:24px;margin-right:-2px;min-width:24px;padding:0}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle svg{min-height:18px;min-width:18px}.block-editor-block-list__block-selection-button .block-editor-block-icon{color:#fff;font-size:13px;height:48px}.block-editor-block-list__block-selection-button .components-button{color:#fff;display:flex;height:48px;min-width:36px}.block-editor-block-list__block-selection-button .components-button:focus{border:none;box-shadow:none}.block-editor-block-list__block-selection-button .components-button:active,.block-editor-block-list__block-selection-button .components-button[aria-disabled=true]:hover{color:#fff}.block-editor-block-list__block-selection-button .block-selection-button_select-button.components-button{padding:0}.block-editor-block-list__block-selection-button .block-editor-block-mover{background:unset;border:none}@keyframes hide-during-dragging{to{position:fixed;transform:translate(-9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-list__block-selection-button{margin-bottom:12px;margin-top:12px;pointer-events:all}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{animation:hide-during-dragging 1ms linear forwards;opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-lock-modal{z-index:1000001}@media (min-width:600px){.block-editor-block-lock-modal .components-modal__frame{max-width:480px}}.block-editor-block-lock-modal__checklist{margin:0}.block-editor-block-lock-modal__options-title{padding:12px 0}.block-editor-block-lock-modal__options-title .components-checkbox-control__label{font-weight:600}.block-editor-block-lock-modal__checklist-item{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:0;padding:12px 32px 12px 0}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{fill:#1e1e1e;flex-shrink:0;margin-left:12px}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding:12px 0}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-right:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-right:1px solid #1e1e1e;margin-left:-6px;margin-right:6px!important}.block-editor-block-breadcrumb{list-style:none;margin:0;padding:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(-1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){box-shadow:none;text-decoration:underline}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:1px;outline:2px solid transparent;position:absolute;right:1px;top:1px}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;font-size:inherit;padding:0 8px}.block-editor-block-card{align-items:flex-start;display:flex}.block-editor-block-card__content{flex-grow:1;margin-bottom:4px}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{line-height:24px;margin:0 0 4px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{flex:0 0 24px;height:24px;margin-left:12px;margin-right:0;width:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;flex-direction:column;justify-content:space-between;max-width:600px;min-width:200px;padding:0 0 0 16px;width:50%}.block-editor-block-compare__wrapper>div button{float:left}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-right:1px solid #ddd;padding-left:0;padding-right:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html{border-bottom:1px solid #ddd;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:12px;line-height:1.7;padding-bottom:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-bottom:3px;padding-top:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{position:absolute;right:0;top:-24px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 6px 8px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;-webkit-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{justify-content:flex-start;margin:auto}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-left:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-left:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-height:18px;min-width:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-mover__move-button-container{border:none;display:flex;padding:0}@media (min-width:600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:24px;min-width:0!important;width:100%}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{flex-shrink:0;top:5px}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:5px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{right:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{left:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width:600px){.block-editor-block-mover__drag-handle{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-mover-button:before{animation-delay:0s;animation-duration:1ms}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:before,.components-button.block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{color:#757575;font-size:11px;font-weight:500;margin:0 0 12px;text-transform:uppercase}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{border:1px solid #1e1e1e;border-radius:2px;height:48px;width:48px}.block-editor-block-patterns-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true] .block-editor-block-preview__container{cursor:grab}.block-editor-block-patterns-list__item{height:100%}.block-editor-block-patterns-list__item .block-editor-block-preview__container{align-items:center;border-radius:4px;display:flex;overflow:hidden}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{font-size:12px;padding-top:8px;text-align:center}.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-patterns-list__item:focus .block-editor-block-patterns-list__item-title,.block-editor-block-patterns-list__item:hover .block-editor-block-patterns-list__item-title{color:var(--wp-admin-theme-color)}.components-popover.block-editor-block-popover{margin:0!important;pointer-events:none;position:absolute;z-index:31}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;overflow-y:visible;width:max-content}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{background-color:var(--wp-admin-theme-color);border-radius:2px;inset:0;position:absolute}.block-editor-block-preview__container{overflow:hidden;position:relative;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content{margin:0;min-height:auto;overflow:visible;right:0;text-align:initial;top:0;transform-origin:top right}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles+.default-style-picker__default-switcher{margin-top:16px}.block-editor-block-styles__preview-panel{display:none;left:16px;position:absolute;right:auto;z-index:90}@media (min-width:782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-inserter__preview-container{left:auto;position:static;right:auto;top:auto}.block-editor-block-styles__preview-panel .block-editor-block-card__title.block-editor-block-card__title{margin:0}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{box-shadow:inset 0 0 0 1px #ccc;color:var(--wp-admin-theme-color)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__variants .block-editor-block-styles__item-text{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-editor-block-styles__block-preview-container,.block-editor-block-styles__block-preview-container *{box-sizing:border-box!important}.block-editor-block-switcher{position:relative}.block-editor-block-switcher .components-button.components-dropdown-menu__toggle.has-icon.has-icon{min-width:36px}.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{display:block;height:48px;margin:0}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.block-editor-block-switcher__toggle-text{margin-right:8px}.show-icon-labels .block-editor-block-switcher__toggle-text{display:none}.show-icon-labels .block-editor-block-toolbar .block-editor-block-switcher .components-button.has-icon:after{font-size:14px}.components-button.block-editor-block-switcher__no-switcher-icon{display:flex}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-left:auto;margin-right:auto;min-width:24px!important}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e}.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{align-items:center;display:flex;height:100%;margin:0 auto;min-width:100%;position:relative}.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{bottom:8px;left:8px;right:8px;top:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{position:absolute;right:calc(100% + 16px);top:-12px}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:none;outline:none;width:300px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{margin:16px 0;max-height:468px;overflow:hidden;padding:0 16px}.block-editor-block-switcher__preview-title{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;text-transform:uppercase}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{min-width:36px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{height:48px;width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:pointer}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border:1px solid transparent;border-radius:2px;height:100%;position:relative;transition:all .05s ease-in-out}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{cursor:pointer;font-size:12px;padding:4px;text-align:center}.block-editor-block-types-list>[role=presentation]{display:flex;flex-wrap:wrap;overflow:hidden}.block-editor-block-pattern-setup{align-items:flex-start;border-radius:2px;display:flex;flex-direction:column;justify-content:center;width:100%}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:2;column-gap:24px;display:block;padding:0 32px;width:100%}@media (min-width:1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{cursor:pointer;font-size:12px;padding-top:8px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{border:1px solid #ddd;border-radius:2px;min-height:100px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{align-items:center;align-self:flex-end;background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:row;height:60px;justify-content:space-between;margin:0;padding:16px;position:absolute;text-align:right;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{display:flex;width:calc(50% - 36px)}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{height:100%;list-style:none;margin:0;overflow:hidden;padding:0;position:relative;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{background-color:#fff;height:100%;margin:auto;padding:0;position:absolute;top:0;transition:transform .5s,z-index .5s;width:100%;z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{padding:0 52px 16px 16px;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle{border:1px solid #757575;border-radius:2px;justify-content:right;min-height:30px;padding:6px 12px;position:relative;text-align:right;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle.components-dropdown-menu__toggle{padding-left:24px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color)}.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg{height:100%;left:0;padding:0;position:absolute;top:0}.block-editor-block-variation-transforms__popover .components-popover__content{min-width:230px}.components-border-radius-control{margin-bottom:12px}.components-border-radius-control legend{margin-bottom:8px}.components-border-radius-control .components-border-radius-control__wrapper{align-items:flex-start;display:flex;justify-content:space-between}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__unit-control{flex-shrink:0;margin-bottom:0;margin-left:16px;width:calc(50% - 8px)}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control{flex:1;margin-left:12px}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control>div{align-items:center;display:flex;height:40px}.components-border-radius-control .components-border-radius-control__wrapper>span{flex:0 0 auto}.components-border-radius-control .components-border-radius-control__input-controls-wrapper{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));margin-left:12px}.components-border-radius-control .component-border-radius-control__linked-button{display:flex;justify-content:center;margin-top:8px}.components-border-radius-control .component-border-radius-control__linked-button svg{margin-left:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{min-width:0}.block-editor-color-gradient-control__tabs .block-editor-color-gradient-control__panel{padding:16px}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings,.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings>div:not(:first-of-type){display:block}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px);justify-content:space-between}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{padding:16px;width:260px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-tools-panel-color-gradient-settings__item{border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;max-width:100%;padding:0}.block-editor-tools-panel-color-gradient-settings__item.first{border-top:1px solid #ddd;border-top-left-radius:2px;border-top-right-radius:2px;margin-top:24px}.block-editor-tools-panel-color-gradient-settings__item.last{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-tools-panel-color-gradient-settings__item>div,.block-editor-tools-panel-color-gradient-settings__item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-bottom:10px;padding-top:10px;text-align:right}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-date-format-picker{margin-bottom:16px}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-date-format-picker__custom-format-select-control__custom-option.has-hint{grid-template-columns:auto 30px}.block-editor-date-format-picker__custom-format-select-control__custom-option .components-custom-select-control__item-hint{grid-row:2;text-align:right}.block-editor-duotone-control__popover>.components-popover__content{padding:16px;width:280px}.block-editor-duotone-control__popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover .components-circular-option-picker__swatches{display:grid;gap:12px;grid-template-columns:repeat(6,28px);justify-content:space-between}.block-editor-duotone-control__description{font-size:12px;margin:16px 0}.block-editor-duotone-control__unset-indicator{background:linear-gradient(45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.components-font-appearance-control ul li{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles-effects-panel__toggle-icon{fill:currentColor}.block-editor-global-styles-effects-panel__shadow-popover-container{width:230px}.block-editor-global-styles-effects-panel__shadow-dropdown,.block-editor-global-styles-filters-panel__dropdown{display:block;padding:0}.block-editor-global-styles-effects-panel__shadow-dropdown button,.block-editor-global-styles-filters-panel__dropdown button{padding:8px;width:100%}.block-editor-global-styles-effects-panel__shadow-dropdown button.is-open,.block-editor-global-styles-filters-panel__dropdown button.is-open{background-color:#f0f0f0}.block-editor-global-styles-effects-panel__shadow-indicator-wrapper{align-items:center;display:flex;justify-content:center;overflow:hidden;padding:6px}.block-editor-global-styles-effects-panel__shadow-indicator{border:1px solid #e0e0e0;border-radius:2px;color:#2f2f2f;cursor:pointer;height:24px;padding:0;width:24px}.block-editor-global-styles-advanced-panel__custom-css-input textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.block-editor-global-styles-advanced-panel__custom-css-validation-wrapper{bottom:16px;left:24px;position:absolute}.block-editor-global-styles-advanced-panel__custom-css-validation-icon{fill:#cc1818}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__width{margin-bottom:1.115em}.block-editor-block-types-list__list-item{display:block;margin:0;padding:0;width:33.33%}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{align-items:stretch;background:transparent;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;flex-direction:column;font-size:13px;height:auto;justify-content:center;padding:8px;position:relative;transition:all .05s ease-in-out;width:100%;word-break:break-word}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-delay:0s;transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{cursor:default;opacity:.6}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.components-button.block-editor-block-types-list__item:not(:disabled):focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{background:#1e1e1e;color:#fff;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{border-radius:2px;color:#1e1e1e;padding:12px 20px;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-delay:0s;transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-delay:0s;transition-duration:0s}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{font-size:12px;padding:4px 2px 8px}.show-icon-labels .block-editor-block-inspector__tabs .components-tab-panel__tabs .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-inspector__tabs .components-tab-panel__tabs .components-button.has-icon:before{content:attr(aria-label)}.block-editor-inspector-controls-tabs__hint{align-items:top;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;margin:16px}.block-editor-inspector-controls-tabs__hint-content{margin:12px 12px 12px 0}.block-editor-inspector-controls-tabs__hint-dismiss{margin:4px 0 4px 4px}.block-editor-inspector-popover-header{margin-bottom:16px}[class].block-editor-inspector-popover-header__action{height:24px}[class].block-editor-inspector-popover-header__action.has-icon{min-width:24px;padding:0}[class].block-editor-inspector-popover-header__action:not(.has-icon){text-decoration:underline}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{min-width:350px;position:relative}.components-popover__content .block-editor-link-control{max-width:350px;min-width:auto;width:90vw}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__search-input-container{position:relative}.block-editor-link-control__search-input.has-no-label .block-editor-url-input__input{flex:1}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:8px 16px;position:relative;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{font-size:13px;line-height:normal}}.block-editor-link-control__field input[type=text]:focus,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control__field input[type=text]::-webkit-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control__field input[type=text]::-moz-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.block-editor-link-control__field input[type=text]:-ms-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{display:flex;flex-direction:row-reverse;gap:8px;justify-content:flex-start;order:20;padding:8px}.block-editor-link-control__search-results{margin-top:-16px;max-height:200px;overflow-y:auto;padding:8px}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:right}.block-editor-link-control__search-item .components-menu-item__item{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{background-color:transparent;color:inherit;font-weight:600}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;text-transform:capitalize;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__search-item.is-current{background:transparent;border:0;cursor:default;flex-direction:column;padding:16px;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{align-items:flex-start;display:block;flex-direction:row;margin-left:8px;overflow-wrap:break-word;white-space:pre-wrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-info{word-break:break-all}.block-editor-link-control__search-item.is-preview .block-editor-link-control__search-item-header{display:flex;flex:1}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-header{align-items:center}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{display:flex;flex-shrink:0;justify-content:center;margin-left:8px;max-height:24px;position:relative;width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon img{width:16px}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-icon{max-height:32px;top:0;width:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;font-weight:500;margin-bottom:.2em;position:relative}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{background-color:transparent;color:inherit;font-weight:600}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-title svg{display:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-description{margin:0;padding-top:12px}.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder{display:flex;flex-direction:column;height:28px;justify-content:space-around;margin-top:12px;padding-top:0}.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder:after,.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder:before{background-color:#f0f0f0;border-radius:3px;content:"";display:block;height:.7em;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-description .components-text{font-size:.9em}.block-editor-link-control__search-item .block-editor-link-control__search-item-image{background-color:#f0f0f0;border-radius:2px;display:flex;height:140px;justify-content:center;margin-top:12px;max-height:140px;overflow:hidden;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-image.is-placeholder{background-color:#f0f0f0;border-radius:3px}.block-editor-link-control__search-item .block-editor-link-control__search-item-image img{display:block;height:140px;max-height:140px;max-width:100%}.block-editor-link-control__search-item-top{display:flex;flex-direction:row;width:100%}.block-editor-link-control__search-item-bottom{transition:opacity 1.5s;width:100%}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-description:after,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-description:before,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-image{animation:loadingpulse 1s linear infinite;animation-delay:.5s}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon img,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon svg{opacity:0}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon:before{animation:loadingpulse 1s linear infinite;animation-delay:.5s;background-color:#f0f0f0;border-radius:100%;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.block-editor-link-control__loading{align-items:center;display:flex;margin:16px}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";display:block;position:absolute;right:0;top:-10px;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__search-item-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer{display:flex;flex-basis:100%;flex-direction:column;order:30}.block-editor-link-control__drawer-inner{display:flex;flex-basis:100%;flex-direction:column;position:relative}.block-editor-link-control__unlink{padding-left:16px;padding-right:16px}.block-editor-link-control__setting{flex:1;margin-bottom:16px;padding:8px 24px 8px 0}.block-editor-link-control__setting input{margin-right:0}.block-editor-link-control__setting.block-editor-link-control__setting:last-child{margin-bottom:0}.block-editor-link-control__tools{margin-top:-16px;padding:8px 8px 0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{gap:0;padding-right:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transform:rotate(-90deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition-delay:0s;transition-duration:0s}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transform:rotate(0deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition-delay:0s;transition-duration:0s}}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{bottom:auto;left:16px;position:absolute;right:auto;top:calc(50% - 8px)}.block-editor-link-control__search-item-action{flex-shrink:0;margin-right:auto}.block-editor-list-view-tree{border-collapse:collapse;margin:0;padding:0;width:100%}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-leaf{position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents{align-items:center;border-radius:2px;display:flex;height:auto;padding:6px 0 6px 4px;position:relative;text-align:right;white-space:nowrap;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before:before{border-top:4px solid var(--wp-admin-theme-color);content:"";left:0;pointer-events:none;position:absolute;right:0;top:-2px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus{box-shadow:none}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:-29px;pointer-events:none;position:absolute;right:0;top:0;z-index:2}.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after{box-shadow:none}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{left:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);z-index:1}.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block__menu:focus{box-shadow:none}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;opacity:1}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation-delay:0s;animation-duration:1ms}}.block-editor-list-view-leaf .block-editor-block-icon{flex:0 0 24px;margin-left:8px}.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{padding-bottom:0;padding-top:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;vertical-align:middle;width:36px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell .components-button.has-icon{min-width:24px;padding:0;width:24px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell{padding-left:4px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon{height:24px}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{align-items:center;display:flex;flex-direction:column;height:100%}.block-editor-list-view-leaf .block-editor-block-mover-button{height:24px;position:relative;width:36px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{height:24px;position:relative}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end;margin-top:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start;margin-bottom:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;left:0;min-width:100%;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 1px 6px 6px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper{min-width:120px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;transform:translateY(-50%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{max-width:min(110px,40%);position:relative;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{background:rgba(0,0,0,.1);border-radius:2px;box-sizing:border-box;left:0;max-width:100%;padding:2px 6px;position:absolute;transform:translateY(-50%)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:rgba(0,0,0,.3)}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__sticky{line-height:0}.block-editor-list-view-appender__cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container{display:flex}.block-editor-list-view__expander{height:24px;margin-right:4px;width:24px}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-right:220px}.block-editor-list-view-leaf:not([aria-level="1"]) .block-editor-list-view__expander{margin-left:4px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-right:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-right:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-right:52px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-right:80px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-right:108px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-right:136px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-right:164px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-right:192px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transform:rotate(-90deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transform:rotate(0deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);border-radius:4px;height:4px}.block-editor-list-view-placeholder{height:36px;margin:0;padding:0}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;border-radius:2px;color:#fff;height:24px;margin:8px 24px 0 0;min-width:24px;padding:0}.list-view-appender .block-editor-inserter__toggle:focus,.list-view-appender .block-editor-inserter__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description,.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__indicator{margin-right:4px}.block-editor-media-flow__url-input{margin-left:-8px;margin-right:-8px;padding:16px}.block-editor-media-flow__url-input.has-siblings{border-top:1px solid #1e1e1e;margin-top:8px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;margin-bottom:8px;top:16px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{margin:0;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-info,.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:200px;white-space:nowrap}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{padding:0;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{left:4px;top:0}.block-editor-media-flow__error{max-width:255px;padding:0 20px 20px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{word-wrap:break-word;overflow:hidden}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{left:10px;position:absolute}.block-editor-multi-selection-inspector__card{align-items:flex-start;display:flex;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{height:24px;margin-left:10px;margin-right:-2px;padding:0 3px;width:36px}.block-editor-responsive-block-control{border-bottom:1px solid #ccc;margin-bottom:28px;padding-bottom:14px}.block-editor-responsive-block-control:last-child{border-bottom:0;padding-bottom:0}.block-editor-responsive-block-control__title{margin:0 -3px .6em 0}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-right:-3px}.block-editor-responsive-block-control__inner{margin-right:-1px}.block-editor-responsive-block-control__toggle{margin-right:1px}.block-editor-responsive-block-control .components-base-control__help{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{box-shadow:none;margin-bottom:8px;min-width:auto;outline:none;width:auto}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{background:#f1f1f1;box-shadow:0 0 2px 2px rgba(0,0,0,.6);color:var(--wp-admin-theme-color);display:block;font-size:14px;font-weight:600;height:auto;line-height:normal;outline:none;padding:15px 23px 14px;text-decoration:none;width:auto;z-index:100000}.block-editor-text-decoration-control{border:0;margin:0;padding:0}.block-editor-text-decoration-control .block-editor-text-decoration-control__buttons{display:flex;padding:4px 0}.block-editor-text-decoration-control .components-button.has-icon{height:32px;margin-left:4px;min-width:32px;padding:0}.block-editor-text-transform-control{border:0;margin:0;padding:0}.block-editor-text-transform-control .block-editor-text-transform-control__buttons{display:flex;padding:4px 0}.block-editor-text-transform-control .components-button.has-icon{height:32px;margin-left:4px;min-width:32px;padding:0}.block-editor-tool-selector__help{border-top:1px solid #ddd;color:#757575;margin:8px -8px -8px;min-width:280px;padding:16px}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;padding:1px;position:relative}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{border:none;border-radius:0;font-size:16px;margin-left:0;margin-right:0;padding:8px 12px 8px 8px;width:100%}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px;width:300px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{left:8px;margin:0;position:absolute;top:calc(50% - 8px)}.block-editor-url-input__input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__suggestions{max-height:200px;overflow-y:auto;padding:4px 0;transition:all .15s ease-in-out;width:302px}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-delay:0s;transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:grid}}.block-editor-url-input__suggestion{background:#fff;border:none;box-shadow:none;color:#757575;cursor:pointer;display:block;font-size:13px;height:auto;min-height:36px;text-align:right;width:100%}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-left:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{background:#ddd;content:"";display:block;height:24px;left:-1px;position:absolute;width:1px}.block-editor-url-input__button-modal{background:#fff;border:1px solid #ddd;box-shadow:0 .7px 1px rgba(0,0,0,.1),0 1.2px 1.7px -.2px rgba(0,0,0,.1),0 2.3px 3.3px -.5px rgba(0,0,0,.1)}.block-editor-url-input__button-modal-line{align-items:flex-start;display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;height:36px;width:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #ddd}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-right:12px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{border-radius:2px;height:30px;padding:5px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{border-radius:0;border-right:1px solid #ddd;flex-shrink:0;margin-right:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(-180deg)}.block-editor-url-popover__settings{border-top:1px solid #ddd;display:block;padding:16px}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.html-anchor-control .components-external-link{display:block;margin-top:8px}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{grid-column:span 2;margin-top:16px;order:9999}.color-block-support-panel .block-editor-contrast-checker .components-notice__content{margin-left:0}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.first{margin-top:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-controls{display:flex;margin-bottom:8px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit{display:flex;margin-left:24px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit svg{margin:auto 8px 4px 0}.block-editor-block-inspector .block-editor-hooks__layout-controls-unit-input{margin-bottom:0}.block-editor-hooks__layout-controls-reset{display:flex;justify-content:flex-end;margin-bottom:24px}.block-editor-hooks__layout-controls-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__toggle-control.block-editor-hooks__toggle-control{margin-bottom:16px}.block-editor__padding-visualizer{border-color:var(--wp-admin-theme-color);border-style:solid;bottom:0;box-sizing:border-box;left:0;opacity:.5;pointer-events:none;position:absolute;right:0;top:0}.block-editor-hooks__position-selection__select-control .components-custom-select-control__hint{display:none}.block-editor-hooks__position-selection__select-control__option.has-hint{grid-template-columns:auto 30px;line-height:1.4;margin-bottom:0}.block-editor-hooks__position-selection__select-control__option .components-custom-select-control__item-hint{grid-row:2;text-align:right}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;overflow-x:auto;overflow-y:hidden;position:relative;transition:border-color .1s linear,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;border:0;border-left:1px solid #ddd;line-height:0;margin-bottom:-1px;margin-top:-1px}.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-left:none}@media (min-width:782px){.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group{border-left:none}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar:after{background-color:#ddd;content:"";margin-bottom:12px;margin-right:8px;margin-top:12px;width:1px}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar>:last-child:after{display:none}}.block-editor-block-contextual-toolbar.has-parent:not(.is-fixed){margin-right:56px}.show-icon-labels .block-editor-block-contextual-toolbar.has-parent:not(.is-fixed){margin-right:0}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin:0!important;width:24px!important}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports (position:sticky){.block-editor-block-toolbar__slot{display:inline-flex}}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon{width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.show-icon-labels .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{height:0!important;min-width:0!important;width:0!important}.show-icon-labels .block-editor-block-parent-selector__button{border-bottom-left-radius:0;border-top-left-radius:0}.show-icon-labels .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{width:auto}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right:1px solid #1e1e1e;margin-left:-6px;margin-right:6px;white-space:nowrap}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-right-color:#e0e0e0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-mover__move-button-container{border-width:0}@media (min-width:600px){.show-icon-labels .is-up-button.is-up-button.is-up-button{border-radius:0;margin-left:0;order:1}.show-icon-labels .block-editor-block-mover__move-button-container{border-right:1px solid #1e1e1e}.show-icon-labels .is-down-button.is-down-button.is-down-button{order:2}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-mover__move-button-container:before{background:#ddd}}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}@media (min-width:782px){.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .components-toolbar,.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .components-toolbar-group{flex-shrink:0}}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-right:6px}.block-editor-inserter{background:none;border:none;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0;padding:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{display:flex;flex-direction:column;gap:16px;height:100%;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;box-shadow:0 .7px 1px rgba(0,0,0,.1),0 1.2px 1.7px -.2px rgba(0,0,0,.1),0 2.3px 3.3px -.5px rgba(0,0,0,.1);outline:none}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:first-child{border-radius:2px 2px 0 0;border-top:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:last-child{border-bottom:1px solid #ccc;border-radius:0 0 2px 2px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{height:auto;overflow:visible}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{align-items:center;border:none;cursor:pointer;display:inline-flex;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-delay:0s;transition-duration:0s}}.block-editor-inserter__menu{height:100%;overflow:visible;position:relative}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99999}.block-editor-inserter__search{padding:16px 16px 0}.block-editor-inserter__search .components-search-control__icon{left:20px}.block-editor-inserter__tabs{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.block-editor-inserter__tabs .components-tab-panel__tabs{border-bottom:1px solid #ddd}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item[id$=reusable]{flex-grow:inherit;padding-left:16px;padding-right:16px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto}.block-editor-inserter__no-tab-container{flex-grow:1;overflow-y:auto}.block-editor-inserter__panel-header{align-items:center;display:inline-flex;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{color:#757575;font-size:11px;font-weight:500;margin:0 0 0 12px;text-transform:uppercase}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:left}.block-editor-inserter__manage-reusable-blocks-container{margin:auto 16px 16px}.block-editor-inserter__manage-reusable-blocks{justify-content:center;width:100%}.block-editor-inserter__no-results{padding:32px;text-align:center}.block-editor-inserter__no-results-icon{fill:#949494}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{align-items:center;display:flex}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-left:8px}.block-editor-inserter__preview-container{background:#fff;border:1px solid #ddd;border-radius:2px;display:none;max-height:calc(100% - 32px);overflow-y:hidden;position:absolute;right:calc(100% + 16px);top:16px;width:300px}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__patterns-explore-button.components-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category{color:var(--wp-admin-theme-color);position:relative}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category .components-flex-item{filter:brightness(.95)}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;position:absolute;right:0;top:0}.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__block-patterns-tabs-container nav{height:100%}.block-editor-inserter__block-patterns-tabs{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:16px}.block-editor-inserter__block-patterns-tabs div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__patterns-category-dialog{background:#f0f0f0;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;height:100%;overflow-y:auto;padding:32px 24px;position:absolute;right:0;scrollbar-gutter:stable both-edges;top:0;width:100%}@media (min-width:782px){.block-editor-inserter__patterns-category-dialog{display:block;right:100%;width:300px}}.block-editor-inserter__patterns-category-dialog .block-editor-block-patterns-list{margin-top:24px}.block-editor-inserter__patterns-category-dialog .block-editor-block-preview__container{box-shadow:0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__patterns-category-dialog .block-editor-block-preview__container:hover{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__patterns-category-panel{padding:0 16px}@media (min-width:782px){.block-editor-inserter__patterns-category-panel{padding:0}}.block-editor-inserter__preview-content{align-items:center;background:#f0f0f0;display:grid;flex-grow:1;min-height:144px}.block-editor-inserter__preview-content-missing{align-items:center;background:#f0f0f0;color:#757575;display:flex;flex:1;justify-content:center;min-height:144px}.block-editor-inserter__tips{border-top:1px solid #ddd;flex-shrink:0;padding:16px;position:relative}.block-editor-inserter__quick-inserter{max-width:100%;width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{float:right;height:0;padding:0}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-preview__container{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{background:#1e1e1e;border-radius:0;color:#fff;display:block;height:44px;width:100%}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);box-shadow:none}.block-editor-block-patterns-explorer__sidebar{bottom:0;overflow-x:visible;overflow-y:scroll;padding:24px 32px 32px;position:absolute;right:0;top:76px;width:280px}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;height:48px;text-align:right;width:100%}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-right:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-gap:32px;display:grid;grid-template-columns:repeat(1,1fr)}@media (min-width:1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-preview__container{height:inherit;max-height:800px;min-height:100px}.block-editor-inserter__patterns-category-panel-title{font-size:16.25px}.block-editor-inserter__media-tabs-container,.block-editor-inserter__media-tabs-container nav{height:100%}.block-editor-inserter__media-tabs-container .block-editor-inserter__media-library-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__media-tabs{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:16px}.block-editor-inserter__media-tabs div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__media-tabs__media-category.is-selected{color:var(--wp-admin-theme-color);position:relative}.block-editor-inserter__media-tabs__media-category.is-selected .components-flex-item{filter:brightness(.95)}.block-editor-inserter__media-tabs__media-category.is-selected svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__media-tabs__media-category.is-selected:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;position:absolute;right:0;top:0}.block-editor-inserter__media-dialog{background:#f0f0f0;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;height:100%;overflow-y:auto;padding:16px 24px;position:absolute;right:0;scrollbar-gutter:stable both-edges;top:0;width:100%}@media (min-width:782px){.block-editor-inserter__media-dialog{display:block;right:100%;width:300px}}.block-editor-inserter__media-dialog .block-editor-block-preview__container{box-shadow:0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__media-dialog .block-editor-block-preview__container:hover{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__media-panel{display:flex;flex-direction:column;min-height:100%;padding:0 16px}@media (min-width:782px){.block-editor-inserter__media-panel{padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{align-items:center;display:flex;flex:1;height:100%;justify-content:center}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search.components-search-control input[type=search].components-search-control__input{background:#fff}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search.components-search-control button.components-button{min-width:auto;padding-left:2px;padding-right:2px}.block-editor-inserter__media-list{margin-top:16px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item[draggable=true] .block-editor-block-preview__container{cursor:grab}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{left:8px;position:absolute;top:8px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;border-radius:2px;display:none}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list .block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{margin:0 auto;max-width:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{align-items:center;background:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{height:100%;padding:16px}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width:600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.reusable-blocks-menu-items__rename-hint{align-items:top;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;max-width:380px}.reusable-blocks-menu-items__rename-hint-content{margin:12px 12px 12px 0}.reusable-blocks-menu-items__rename-hint-dismiss{margin:4px 0 4px 4px}.components-menu-group .reusable-blocks-menu-items__rename-hint{margin:0}.block-editor-post-preview__dropdown{padding:0}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-right:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-right:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:first-child{padding-bottom:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:last-child{margin-bottom:0}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{padding:8px}@media (min-width:600px){.edit-post-header__settings .editor-post-preview,.edit-site-header-edit-mode__actions .editor-post-preview{display:none}.edit-post-header.has-reduced-ui .edit-post-header__settings .block-editor-post-preview__button-toggle,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-save-draft,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-saved-state{transition:opacity .1s linear}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.edit-post-header.has-reduced-ui .edit-post-header__settings .block-editor-post-preview__button-toggle,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-save-draft,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-saved-state{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .block-editor-post-preview__button-toggle,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .editor-post-save-draft,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .editor-post-saved-state{opacity:0}.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .block-editor-post-preview__button-toggle.is-opened{opacity:1}}.spacing-sizes-control .spacing-sizes-control__custom-value-input,.spacing-sizes-control .spacing-sizes-control__label{margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range,.spacing-sizes-control .spacing-sizes-control__range-control{align-items:center;display:flex;flex:1;height:40px;margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range>.components-base-control__field,.spacing-sizes-control .spacing-sizes-control__range-control>.components-base-control__field{flex:1}.spacing-sizes-control .components-range-control__mark{background-color:#fff;height:4px;width:3px;z-index:1}.spacing-sizes-control .components-range-control__marks{margin-top:17px}.spacing-sizes-control .components-range-control__marks :first-child{display:none}.spacing-sizes-control .components-range-control__thumb-wrapper{z-index:3}.spacing-sizes-control__wrapper+.spacing-sizes-control__wrapper{margin-top:8px}.spacing-sizes-control__header{height:16px;margin-bottom:8px}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__custom-select-control,.spacing-sizes-control__custom-value-input{flex:1}.spacing-sizes-control__custom-toggle,.spacing-sizes-control__icon{flex:0 0 auto}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
border-bottom:1px solid #e0e0e0;
border-radius:0;
display:block;
+ overflow:hidden;
position:sticky;
top:0;
width:100%;
z-index:31;
}
+.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar{
+ overflow:auto;
+ overflow-y:hidden;
+}
.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group{
border-right-color:#e0e0e0;
}
-.block-editor-block-contextual-toolbar:has(.block-editor-block-toolbar:empty){
- display:none;
-}
.block-editor-block-contextual-toolbar.is-collapsed:after{
background:linear-gradient(90deg, #fff, transparent);
content:"";
}
@media (min-width:782px){
.block-editor-block-contextual-toolbar.is-fixed{
+ align-items:center;
border-bottom:none;
display:flex;
+ height:60px;
margin-left:180px;
min-height:auto;
position:fixed;
- top:39px;
+ top:32px;
}
- .block-editor-block-contextual-toolbar.is-fixed.is-collapsed{
+ .block-editor-block-contextual-toolbar.is-fixed.is-collapsed,.block-editor-block-contextual-toolbar.is-fixed:empty{
width:auto;
}
.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{
margin-left:240px;
- top:7px;
+ top:0;
}
- .is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed.is-collapsed{
+ .is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed.is-collapsed,.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed:empty{
width:auto;
}
.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar.is-showing-movers{
top:auto;
}
.block-editor-block-contextual-toolbar.is-fixed{
- width:100%;
+ width:calc(100% - 180px);
+ }
+ .show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{
+ width:calc(100% - 140px);
}
}
@media (min-width:960px){
- .block-editor-block-contextual-toolbar.is-fixed{
+ .block-editor-block-contextual-toolbar.is-fixed,.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{
width:auto;
}
.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{
.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{
flex-shrink:1;
}
+@media (min-width:782px){
+ .show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .components-toolbar,.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .components-toolbar-group{
+ flex-shrink:0;
+ }
+}
.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{
margin-left:6px;
}
-@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-right:8px}.block-editor-autocompleters__link{white-space:nowrap}.block-editor-autocompleters__link .block-editor-block-icon{margin-right:8px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-block-tools,.block-editor-block-inspector__no-blocks{background:#fff;display:block;font-size:13px;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector__tab-item{flex:1 1 0px}.block-editor-block-list__insertion-point{bottom:0;left:0;position:absolute;right:0;top:0}.block-editor-block-list__insertion-point-indicator{background:var(--wp-admin-theme-color);border-radius:2px;opacity:0;position:absolute;transform-origin:center;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{height:4px;top:calc(50% - 2px);width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{bottom:0;left:calc(50% - 2px);top:0;width:4px}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;left:calc(50% - 12px);position:absolute;top:calc(50% - 12px);will-change:transform}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}.block-editor-block-contextual-toolbar.is-fixed{left:0}@media (min-width:783px){.block-editor-block-contextual-toolbar.is-fixed{left:160px}}@media (min-width:783px){.auto-fold .block-editor-block-contextual-toolbar.is-fixed{left:36px}}@media (min-width:961px){.auto-fold .block-editor-block-contextual-toolbar.is-fixed{left:160px}}.folded .block-editor-block-contextual-toolbar.is-fixed{left:0}@media (min-width:783px){.folded .block-editor-block-contextual-toolbar.is-fixed{left:36px}}body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{left:0!important}.block-editor-block-contextual-toolbar{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:inline-flex}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-right-color:#1e1e1e}.block-editor-block-contextual-toolbar.is-fixed{border:none;border-bottom:1px solid #e0e0e0;border-radius:0;display:block;position:sticky;top:0;width:100%;z-index:31}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group{border-right-color:#e0e0e0}.block-editor-block-contextual-toolbar:has(.block-editor-block-toolbar:empty){display:none}.block-editor-block-contextual-toolbar.is-collapsed:after{background:linear-gradient(90deg,#fff,transparent);content:"";height:100%;left:100%;position:absolute;width:48px}@media (min-width:782px){.block-editor-block-contextual-toolbar.is-fixed{border-bottom:none;display:flex;margin-left:180px;min-height:auto;position:fixed;top:39px}.block-editor-block-contextual-toolbar.is-fixed.is-collapsed{width:auto}.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{margin-left:240px;top:7px}.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed.is-collapsed{width:auto}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar.is-showing-movers{flex-grow:0;width:auto}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar.is-showing-movers:before{background-color:#ddd;content:"";height:24px;left:-2px;margin-right:0;margin-top:12px;position:relative;top:-1px;width:1px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar{border:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar:before{background-color:#ddd;content:"";height:24px;left:0;margin-right:8px;margin-top:12px;position:relative;top:-1px;width:1px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar{border:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar{width:256px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar:before{background-color:#ddd;content:"";height:24px;left:-8px;margin-bottom:12px;margin-top:12px;position:relative;top:-1px;width:1px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{margin-left:80px}.is-fullscreen-mode .show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{margin-left:144px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button:after{left:0}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__block-controls .block-editor-block-mover:before{background-color:#ddd;content:"";margin-bottom:12px;margin-top:12px;position:relative;width:1px}.blocks-widgets-container .block-editor-block-contextual-toolbar.is-fixed{margin-left:153.6px}.blocks-widgets-container .block-editor-block-contextual-toolbar.is-fixed.is-collapsed{margin-left:268.8px}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button{border:0;padding-left:6px;padding-right:6px;position:relative;top:-1px}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button:after{bottom:4px;content:"·";font-size:16px;left:46px;line-height:40px;position:absolute}.block-editor-block-contextual-toolbar:not(.is-fixed) .block-editor-block-parent-selector{left:-57px;position:absolute;top:-1px}.show-icon-labels .block-editor-block-contextual-toolbar:not(.is-fixed) .block-editor-block-parent-selector{left:auto;margin-bottom:-1px;margin-left:-1px;margin-top:-1px;position:relative;top:auto}.block-editor-block-contextual-toolbar.is-fixed{width:100%}}@media (min-width:960px){.block-editor-block-contextual-toolbar.is-fixed{width:auto}.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{width:calc(100% - 536px)}}.block-editor-block-list__block-selection-button{background-color:#1e1e1e;border-radius:2px;display:inline-flex;font-size:13px;height:48px;padding:0 12px;z-index:22}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content{align-items:center;display:inline-flex;margin:auto}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content>.components-flex__item{margin-right:6px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle{cursor:grab;height:24px;margin-left:-2px;min-width:24px;padding:0}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle svg{min-height:18px;min-width:18px}.block-editor-block-list__block-selection-button .block-editor-block-icon{color:#fff;font-size:13px;height:48px}.block-editor-block-list__block-selection-button .components-button{color:#fff;display:flex;height:48px;min-width:36px}.block-editor-block-list__block-selection-button .components-button:focus{border:none;box-shadow:none}.block-editor-block-list__block-selection-button .components-button:active,.block-editor-block-list__block-selection-button .components-button[aria-disabled=true]:hover{color:#fff}.block-editor-block-list__block-selection-button .block-selection-button_select-button.components-button{padding:0}.block-editor-block-list__block-selection-button .block-editor-block-mover{background:unset;border:none}@keyframes hide-during-dragging{to{position:fixed;transform:translate(9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-list__block-selection-button{margin-bottom:12px;margin-top:12px;pointer-events:all}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{animation:hide-during-dragging 1ms linear forwards;opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-lock-modal{z-index:1000001}@media (min-width:600px){.block-editor-block-lock-modal .components-modal__frame{max-width:480px}}.block-editor-block-lock-modal__checklist{margin:0}.block-editor-block-lock-modal__options-title{padding:12px 0}.block-editor-block-lock-modal__options-title .components-checkbox-control__label{font-weight:600}.block-editor-block-lock-modal__checklist-item{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:0;padding:12px 0 12px 32px}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{fill:#1e1e1e;flex-shrink:0;margin-right:12px}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding:12px 0}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-left:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-left:1px solid #1e1e1e;margin-left:6px!important;margin-right:-6px}.block-editor-block-breadcrumb{list-style:none;margin:0;padding:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){box-shadow:none;text-decoration:underline}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:1px;outline:2px solid transparent;position:absolute;right:1px;top:1px}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;font-size:inherit;padding:0 8px}.block-editor-block-card{align-items:flex-start;display:flex}.block-editor-block-card__content{flex-grow:1;margin-bottom:4px}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{line-height:24px;margin:0 0 4px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{flex:0 0 24px;height:24px;margin-left:0;margin-right:12px;width:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;flex-direction:column;justify-content:space-between;max-width:600px;min-width:200px;padding:0 16px 0 0;width:50%}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px;padding-right:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{border-bottom:1px solid #ddd;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:12px;line-height:1.7;padding-bottom:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-bottom:3px;padding-top:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{left:0;position:absolute;top:-24px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 6px 8px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;-webkit-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{justify-content:flex-start;margin:auto}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-right:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-right:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-height:18px;min-width:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-mover__move-button-container{border:none;display:flex;padding:0}@media (min-width:600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:24px;min-width:0!important;width:100%}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{flex-shrink:0;top:5px}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:5px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{left:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{right:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width:600px){.block-editor-block-mover__drag-handle{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-mover-button:before{animation-delay:0s;animation-duration:1ms}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:before,.components-button.block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{color:#757575;font-size:11px;font-weight:500;margin:0 0 12px;text-transform:uppercase}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{border:1px solid #1e1e1e;border-radius:2px;height:48px;width:48px}.block-editor-block-patterns-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true] .block-editor-block-preview__container{cursor:grab}.block-editor-block-patterns-list__item{height:100%}.block-editor-block-patterns-list__item .block-editor-block-preview__container{align-items:center;border-radius:4px;display:flex;overflow:hidden}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{font-size:12px;padding-top:8px;text-align:center}.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-patterns-list__item:focus .block-editor-block-patterns-list__item-title,.block-editor-block-patterns-list__item:hover .block-editor-block-patterns-list__item-title{color:var(--wp-admin-theme-color)}.components-popover.block-editor-block-popover{margin:0!important;pointer-events:none;position:absolute;z-index:31}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;overflow-y:visible;width:max-content}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{background-color:var(--wp-admin-theme-color);border-radius:2px;inset:0;position:absolute}.block-editor-block-preview__container{overflow:hidden;position:relative;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content{left:0;margin:0;min-height:auto;overflow:visible;text-align:initial;top:0;transform-origin:top left}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles+.default-style-picker__default-switcher{margin-top:16px}.block-editor-block-styles__preview-panel{display:none;left:auto;position:absolute;right:16px;z-index:90}@media (min-width:782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-inserter__preview-container{left:auto;position:static;right:auto;top:auto}.block-editor-block-styles__preview-panel .block-editor-block-card__title.block-editor-block-card__title{margin:0}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{box-shadow:inset 0 0 0 1px #ccc;color:var(--wp-admin-theme-color)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__variants .block-editor-block-styles__item-text{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-editor-block-styles__block-preview-container,.block-editor-block-styles__block-preview-container *{box-sizing:border-box!important}.block-editor-block-switcher{position:relative}.block-editor-block-switcher .components-button.components-dropdown-menu__toggle.has-icon.has-icon{min-width:36px}.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{display:block;height:48px;margin:0}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.block-editor-block-switcher__toggle-text{margin-left:8px}.show-icon-labels .block-editor-block-switcher__toggle-text{display:none}.show-icon-labels .block-editor-block-toolbar .block-editor-block-switcher .components-button.has-icon:after{font-size:14px}.components-button.block-editor-block-switcher__no-switcher-icon{display:flex}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-left:auto;margin-right:auto;min-width:24px!important}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e}.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{align-items:center;display:flex;height:100%;margin:0 auto;min-width:100%;position:relative}.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{bottom:8px;left:8px;right:8px;top:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{left:calc(100% + 16px);position:absolute;top:-12px}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:none;outline:none;width:300px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{margin:16px 0;max-height:468px;overflow:hidden;padding:0 16px}.block-editor-block-switcher__preview-title{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;text-transform:uppercase}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{min-width:36px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{height:48px;width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:pointer}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border:1px solid transparent;border-radius:2px;height:100%;position:relative;transition:all .05s ease-in-out}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{cursor:pointer;font-size:12px;padding:4px;text-align:center}.block-editor-block-types-list>[role=presentation]{display:flex;flex-wrap:wrap;overflow:hidden}.block-editor-block-pattern-setup{align-items:flex-start;border-radius:2px;display:flex;flex-direction:column;justify-content:center;width:100%}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:2;column-gap:24px;display:block;padding:0 32px;width:100%}@media (min-width:1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{cursor:pointer;font-size:12px;padding-top:8px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{border:1px solid #ddd;border-radius:2px;min-height:100px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{align-items:center;align-self:flex-end;background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:row;height:60px;justify-content:space-between;margin:0;padding:16px;position:absolute;text-align:left;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{display:flex;width:calc(50% - 36px)}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{height:100%;list-style:none;margin:0;overflow:hidden;padding:0;position:relative;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{background-color:#fff;height:100%;margin:auto;padding:0;position:absolute;top:0;transition:transform .5s,z-index .5s;width:100%;z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{padding:0 16px 16px 52px;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle{border:1px solid #757575;border-radius:2px;justify-content:left;min-height:30px;padding:6px 12px;position:relative;text-align:left;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle.components-dropdown-menu__toggle{padding-right:24px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color)}.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg{height:100%;padding:0;position:absolute;right:0;top:0}.block-editor-block-variation-transforms__popover .components-popover__content{min-width:230px}.components-border-radius-control{margin-bottom:12px}.components-border-radius-control legend{margin-bottom:8px}.components-border-radius-control .components-border-radius-control__wrapper{align-items:flex-start;display:flex;justify-content:space-between}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__unit-control{flex-shrink:0;margin-bottom:0;margin-right:16px;width:calc(50% - 8px)}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control{flex:1;margin-right:12px}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control>div{align-items:center;display:flex;height:40px}.components-border-radius-control .components-border-radius-control__wrapper>span{flex:0 0 auto}.components-border-radius-control .components-border-radius-control__input-controls-wrapper{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));margin-right:12px}.components-border-radius-control .component-border-radius-control__linked-button{display:flex;justify-content:center;margin-top:8px}.components-border-radius-control .component-border-radius-control__linked-button svg{margin-right:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{min-width:0}.block-editor-color-gradient-control__tabs .block-editor-color-gradient-control__panel{padding:16px}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings,.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings>div:not(:first-of-type){display:block}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px);justify-content:space-between}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{padding:16px;width:260px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-tools-panel-color-gradient-settings__item{border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;max-width:100%;padding:0}.block-editor-tools-panel-color-gradient-settings__item.first{border-top:1px solid #ddd;border-top-left-radius:2px;border-top-right-radius:2px;margin-top:24px}.block-editor-tools-panel-color-gradient-settings__item.last{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-tools-panel-color-gradient-settings__item>div,.block-editor-tools-panel-color-gradient-settings__item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-bottom:10px;padding-top:10px;text-align:left}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-date-format-picker{margin-bottom:16px}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-date-format-picker__custom-format-select-control__custom-option.has-hint{grid-template-columns:auto 30px}.block-editor-date-format-picker__custom-format-select-control__custom-option .components-custom-select-control__item-hint{grid-row:2;text-align:left}.block-editor-duotone-control__popover>.components-popover__content{padding:16px;width:280px}.block-editor-duotone-control__popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover .components-circular-option-picker__swatches{display:grid;gap:12px;grid-template-columns:repeat(6,28px);justify-content:space-between}.block-editor-duotone-control__description{font-size:12px;margin:16px 0}.block-editor-duotone-control__unset-indicator{background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.components-font-appearance-control ul li{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles-effects-panel__toggle-icon{fill:currentColor}.block-editor-global-styles-effects-panel__shadow-popover-container{width:230px}.block-editor-global-styles-effects-panel__shadow-dropdown,.block-editor-global-styles-filters-panel__dropdown{display:block;padding:0}.block-editor-global-styles-effects-panel__shadow-dropdown button,.block-editor-global-styles-filters-panel__dropdown button{padding:8px;width:100%}.block-editor-global-styles-effects-panel__shadow-dropdown button.is-open,.block-editor-global-styles-filters-panel__dropdown button.is-open{background-color:#f0f0f0}.block-editor-global-styles-effects-panel__shadow-indicator-wrapper{align-items:center;display:flex;justify-content:center;overflow:hidden;padding:6px}.block-editor-global-styles-effects-panel__shadow-indicator{border:1px solid #e0e0e0;border-radius:2px;color:#2f2f2f;cursor:pointer;height:24px;padding:0;width:24px}.block-editor-global-styles-advanced-panel__custom-css-input textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.block-editor-global-styles-advanced-panel__custom-css-validation-wrapper{bottom:16px;position:absolute;right:24px}.block-editor-global-styles-advanced-panel__custom-css-validation-icon{fill:#cc1818}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__width{margin-bottom:1.115em}.block-editor-block-types-list__list-item{display:block;margin:0;padding:0;width:33.33%}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{align-items:stretch;background:transparent;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;flex-direction:column;font-size:13px;height:auto;justify-content:center;padding:8px;position:relative;transition:all .05s ease-in-out;width:100%;word-break:break-word}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-delay:0s;transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{cursor:default;opacity:.6}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.components-button.block-editor-block-types-list__item:not(:disabled):focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{background:#1e1e1e;color:#fff;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{border-radius:2px;color:#1e1e1e;padding:12px 20px;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-delay:0s;transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-delay:0s;transition-duration:0s}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{font-size:12px;padding:4px 2px 8px}.show-icon-labels .block-editor-block-inspector__tabs .components-tab-panel__tabs .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-inspector__tabs .components-tab-panel__tabs .components-button.has-icon:before{content:attr(aria-label)}.block-editor-inspector-controls-tabs__hint{align-items:top;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;margin:16px}.block-editor-inspector-controls-tabs__hint-content{margin:12px 0 12px 12px}.block-editor-inspector-controls-tabs__hint-dismiss{margin:4px 4px 4px 0}.block-editor-inspector-popover-header{margin-bottom:16px}[class].block-editor-inspector-popover-header__action{height:24px}[class].block-editor-inspector-popover-header__action.has-icon{min-width:24px;padding:0}[class].block-editor-inspector-popover-header__action:not(.has-icon){text-decoration:underline}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{min-width:350px;position:relative}.components-popover__content .block-editor-link-control{max-width:350px;min-width:auto;width:90vw}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__search-input-container{position:relative}.block-editor-link-control__search-input.has-no-label .block-editor-url-input__input{flex:1}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:8px 16px;position:relative;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{font-size:13px;line-height:normal}}.block-editor-link-control__field input[type=text]:focus,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control__field input[type=text]::-webkit-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control__field input[type=text]::-moz-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.block-editor-link-control__field input[type=text]:-ms-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{display:flex;flex-direction:row-reverse;gap:8px;justify-content:flex-start;order:20;padding:8px}.block-editor-link-control__search-results{margin-top:-16px;max-height:200px;overflow-y:auto;padding:8px}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:left}.block-editor-link-control__search-item .components-menu-item__item{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{background-color:transparent;color:inherit;font-weight:600}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;text-transform:capitalize;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__search-item.is-current{background:transparent;border:0;cursor:default;flex-direction:column;padding:16px;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{align-items:flex-start;display:block;flex-direction:row;margin-right:8px;overflow-wrap:break-word;white-space:pre-wrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-info{word-break:break-all}.block-editor-link-control__search-item.is-preview .block-editor-link-control__search-item-header{display:flex;flex:1}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-header{align-items:center}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{display:flex;flex-shrink:0;justify-content:center;margin-right:8px;max-height:24px;position:relative;width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon img{width:16px}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-icon{max-height:32px;top:0;width:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;font-weight:500;margin-bottom:.2em;position:relative}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{background-color:transparent;color:inherit;font-weight:600}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-title svg{display:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-description{margin:0;padding-top:12px}.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder{display:flex;flex-direction:column;height:28px;justify-content:space-around;margin-top:12px;padding-top:0}.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder:after,.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder:before{background-color:#f0f0f0;border-radius:3px;content:"";display:block;height:.7em;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-description .components-text{font-size:.9em}.block-editor-link-control__search-item .block-editor-link-control__search-item-image{background-color:#f0f0f0;border-radius:2px;display:flex;height:140px;justify-content:center;margin-top:12px;max-height:140px;overflow:hidden;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-image.is-placeholder{background-color:#f0f0f0;border-radius:3px}.block-editor-link-control__search-item .block-editor-link-control__search-item-image img{display:block;height:140px;max-height:140px;max-width:100%}.block-editor-link-control__search-item-top{display:flex;flex-direction:row;width:100%}.block-editor-link-control__search-item-bottom{transition:opacity 1.5s;width:100%}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-description:after,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-description:before,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-image{animation:loadingpulse 1s linear infinite;animation-delay:.5s}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon img,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon svg{opacity:0}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon:before{animation:loadingpulse 1s linear infinite;animation-delay:.5s;background-color:#f0f0f0;border-radius:100%;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.block-editor-link-control__loading{align-items:center;display:flex;margin:16px}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";display:block;left:0;position:absolute;top:-10px;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__search-item-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer{display:flex;flex-basis:100%;flex-direction:column;order:30}.block-editor-link-control__drawer-inner{display:flex;flex-basis:100%;flex-direction:column;position:relative}.block-editor-link-control__unlink{padding-left:16px;padding-right:16px}.block-editor-link-control__setting{flex:1;margin-bottom:16px;padding:8px 0 8px 24px}.block-editor-link-control__setting input{margin-left:0}.block-editor-link-control__setting.block-editor-link-control__setting:last-child{margin-bottom:0}.block-editor-link-control__tools{margin-top:-16px;padding:8px 8px 0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{gap:0;padding-left:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transform:rotate(90deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition-delay:0s;transition-duration:0s}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transform:rotate(0deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition-delay:0s;transition-duration:0s}}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{bottom:auto;left:auto;position:absolute;right:16px;top:calc(50% - 8px)}.block-editor-link-control__search-item-action{flex-shrink:0;margin-left:auto}.block-editor-list-view-tree{border-collapse:collapse;margin:0;padding:0;width:100%}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-leaf{position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents{align-items:center;border-radius:2px;display:flex;height:auto;padding:6px 4px 6px 0;position:relative;text-align:left;white-space:nowrap;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before:before{border-top:4px solid var(--wp-admin-theme-color);content:"";left:0;pointer-events:none;position:absolute;right:0;top:-2px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus{box-shadow:none}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:0;pointer-events:none;position:absolute;right:-29px;top:0;z-index:2}.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after{box-shadow:none}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{right:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);z-index:1}.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block__menu:focus{box-shadow:none}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;opacity:1}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation-delay:0s;animation-duration:1ms}}.block-editor-list-view-leaf .block-editor-block-icon{flex:0 0 24px;margin-right:8px}.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{padding-bottom:0;padding-top:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;vertical-align:middle;width:36px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell .components-button.has-icon{min-width:24px;padding:0;width:24px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell{padding-right:4px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon{height:24px}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{align-items:center;display:flex;flex-direction:column;height:100%}.block-editor-list-view-leaf .block-editor-block-mover-button{height:24px;position:relative;width:36px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{height:24px;position:relative}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end;margin-top:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start;margin-bottom:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;left:0;min-width:100%;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper{min-width:120px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;transform:translateY(-50%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{max-width:min(110px,40%);position:relative;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{background:rgba(0,0,0,.1);border-radius:2px;box-sizing:border-box;max-width:100%;padding:2px 6px;position:absolute;right:0;transform:translateY(-50%)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:rgba(0,0,0,.3)}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__sticky{line-height:0}.block-editor-list-view-appender__cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container{display:flex}.block-editor-list-view__expander{height:24px;margin-left:4px;width:24px}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-left:220px}.block-editor-list-view-leaf:not([aria-level="1"]) .block-editor-list-view__expander{margin-right:4px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-left:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-left:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-left:52px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-left:80px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-left:108px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-left:136px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-left:164px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-left:192px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transform:rotate(90deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transform:rotate(0deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);border-radius:4px;height:4px}.block-editor-list-view-placeholder{height:36px;margin:0;padding:0}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;border-radius:2px;color:#fff;height:24px;margin:8px 0 0 24px;min-width:24px;padding:0}.list-view-appender .block-editor-inserter__toggle:focus,.list-view-appender .block-editor-inserter__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description,.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-flow__url-input{margin-left:-8px;margin-right:-8px;padding:16px}.block-editor-media-flow__url-input.has-siblings{border-top:1px solid #1e1e1e;margin-top:8px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;margin-bottom:8px;top:16px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{margin:0;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-info,.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:200px;white-space:nowrap}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{padding:0;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{right:4px;top:0}.block-editor-media-flow__error{max-width:255px;padding:0 20px 20px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{word-wrap:break-word;overflow:hidden}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;right:10px}.block-editor-multi-selection-inspector__card{align-items:flex-start;display:flex;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{height:24px;margin-left:-2px;margin-right:10px;padding:0 3px;width:36px}.block-editor-responsive-block-control{border-bottom:1px solid #ccc;margin-bottom:28px;padding-bottom:14px}.block-editor-responsive-block-control:last-child{border-bottom:0;padding-bottom:0}.block-editor-responsive-block-control__title{margin:0 0 .6em -3px}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-left:-3px}.block-editor-responsive-block-control__inner{margin-left:-1px}.block-editor-responsive-block-control__toggle{margin-left:1px}.block-editor-responsive-block-control .components-base-control__help{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{box-shadow:none;margin-bottom:8px;min-width:auto;outline:none;width:auto}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{background:#f1f1f1;box-shadow:0 0 2px 2px rgba(0,0,0,.6);color:var(--wp-admin-theme-color);display:block;font-size:14px;font-weight:600;height:auto;line-height:normal;outline:none;padding:15px 23px 14px;text-decoration:none;width:auto;z-index:100000}.block-editor-text-decoration-control{border:0;margin:0;padding:0}.block-editor-text-decoration-control .block-editor-text-decoration-control__buttons{display:flex;padding:4px 0}.block-editor-text-decoration-control .components-button.has-icon{height:32px;margin-right:4px;min-width:32px;padding:0}.block-editor-text-transform-control{border:0;margin:0;padding:0}.block-editor-text-transform-control .block-editor-text-transform-control__buttons{display:flex;padding:4px 0}.block-editor-text-transform-control .components-button.has-icon{height:32px;margin-right:4px;min-width:32px;padding:0}.block-editor-tool-selector__help{border-top:1px solid #ddd;color:#757575;margin:8px -8px -8px;min-width:280px;padding:16px}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;padding:1px;position:relative}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{border:none;border-radius:0;font-size:16px;margin-left:0;margin-right:0;padding:8px 8px 8px 12px;width:100%}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px;width:300px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{margin:0;position:absolute;right:8px;top:calc(50% - 8px)}.block-editor-url-input__input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__suggestions{max-height:200px;overflow-y:auto;padding:4px 0;transition:all .15s ease-in-out;width:302px}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-delay:0s;transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:grid}}.block-editor-url-input__suggestion{background:#fff;border:none;box-shadow:none;color:#757575;cursor:pointer;display:block;font-size:13px;height:auto;min-height:36px;text-align:left;width:100%}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{background:#ddd;content:"";display:block;height:24px;position:absolute;right:-1px;width:1px}.block-editor-url-input__button-modal{background:#fff;border:1px solid #ddd;box-shadow:0 .7px 1px rgba(0,0,0,.1),0 1.2px 1.7px -.2px rgba(0,0,0,.1),0 2.3px 3.3px -.5px rgba(0,0,0,.1)}.block-editor-url-input__button-modal-line{align-items:flex-start;display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;height:36px;width:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #ddd}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-left:12px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{border-radius:2px;height:30px;padding:5px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{border-left:1px solid #ddd;border-radius:0;flex-shrink:0;margin-left:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__settings{border-top:1px solid #ddd;display:block;padding:16px}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.html-anchor-control .components-external-link{display:block;margin-top:8px}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{grid-column:span 2;margin-top:16px;order:9999}.color-block-support-panel .block-editor-contrast-checker .components-notice__content{margin-right:0}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.first{margin-top:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-controls{display:flex;margin-bottom:8px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit{display:flex;margin-right:24px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit svg{margin:auto 0 4px 8px}.block-editor-block-inspector .block-editor-hooks__layout-controls-unit-input{margin-bottom:0}.block-editor-hooks__layout-controls-reset{display:flex;justify-content:flex-end;margin-bottom:24px}.block-editor-hooks__layout-controls-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__toggle-control.block-editor-hooks__toggle-control{margin-bottom:16px}.block-editor__padding-visualizer{border-color:var(--wp-admin-theme-color);border-style:solid;bottom:0;box-sizing:border-box;left:0;opacity:.5;pointer-events:none;position:absolute;right:0;top:0}.block-editor-hooks__position-selection__select-control .components-custom-select-control__hint{display:none}.block-editor-hooks__position-selection__select-control__option.has-hint{grid-template-columns:auto 30px;line-height:1.4;margin-bottom:0}.block-editor-hooks__position-selection__select-control__option .components-custom-select-control__item-hint{grid-row:2;text-align:left}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;overflow-x:auto;overflow-y:hidden;position:relative;transition:border-color .1s linear,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;border:0;border-right:1px solid #ddd;line-height:0;margin-bottom:-1px;margin-top:-1px}.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-right:none}@media (min-width:782px){.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group{border-right:none}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar:after{background-color:#ddd;content:"";margin-bottom:12px;margin-left:8px;margin-top:12px;width:1px}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar>:last-child:after{display:none}}.block-editor-block-contextual-toolbar.has-parent:not(.is-fixed){margin-left:56px}.show-icon-labels .block-editor-block-contextual-toolbar.has-parent:not(.is-fixed){margin-left:0}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin:0!important;width:24px!important}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports (position:sticky){.block-editor-block-toolbar__slot{display:inline-flex}}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon{width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.show-icon-labels .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{height:0!important;min-width:0!important;width:0!important}.show-icon-labels .block-editor-block-parent-selector__button{border-bottom-right-radius:0;border-top-right-radius:0}.show-icon-labels .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{width:auto}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #1e1e1e;margin-left:6px;margin-right:-6px;white-space:nowrap}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left-color:#e0e0e0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-mover__move-button-container{border-width:0}@media (min-width:600px){.show-icon-labels .is-up-button.is-up-button.is-up-button{border-radius:0;margin-right:0;order:1}.show-icon-labels .block-editor-block-mover__move-button-container{border-left:1px solid #1e1e1e}.show-icon-labels .is-down-button.is-down-button.is-down-button{order:2}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-mover__move-button-container:before{background:#ddd}}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-left:6px}.block-editor-inserter{background:none;border:none;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0;padding:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{display:flex;flex-direction:column;gap:16px;height:100%;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;box-shadow:0 .7px 1px rgba(0,0,0,.1),0 1.2px 1.7px -.2px rgba(0,0,0,.1),0 2.3px 3.3px -.5px rgba(0,0,0,.1);outline:none}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:first-child{border-radius:2px 2px 0 0;border-top:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:last-child{border-bottom:1px solid #ccc;border-radius:0 0 2px 2px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{height:auto;overflow:visible}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{align-items:center;border:none;cursor:pointer;display:inline-flex;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-delay:0s;transition-duration:0s}}.block-editor-inserter__menu{height:100%;overflow:visible;position:relative}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99999}.block-editor-inserter__search{padding:16px 16px 0}.block-editor-inserter__search .components-search-control__icon{right:20px}.block-editor-inserter__tabs{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.block-editor-inserter__tabs .components-tab-panel__tabs{border-bottom:1px solid #ddd}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item[id$=reusable]{flex-grow:inherit;padding-left:16px;padding-right:16px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto}.block-editor-inserter__no-tab-container{flex-grow:1;overflow-y:auto}.block-editor-inserter__panel-header{align-items:center;display:inline-flex;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{color:#757575;font-size:11px;font-weight:500;margin:0 12px 0 0;text-transform:uppercase}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks-container{margin:auto 16px 16px}.block-editor-inserter__manage-reusable-blocks{justify-content:center;width:100%}.block-editor-inserter__no-results{padding:32px;text-align:center}.block-editor-inserter__no-results-icon{fill:#949494}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{align-items:center;display:flex}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-inserter__preview-container{background:#fff;border:1px solid #ddd;border-radius:2px;display:none;left:calc(100% + 16px);max-height:calc(100% - 32px);overflow-y:hidden;position:absolute;top:16px;width:300px}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__patterns-explore-button.components-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category{color:var(--wp-admin-theme-color);position:relative}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category .components-flex-item{filter:brightness(.95)}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;position:absolute;right:0;top:0}.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__block-patterns-tabs-container nav{height:100%}.block-editor-inserter__block-patterns-tabs{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:16px}.block-editor-inserter__block-patterns-tabs div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__patterns-category-dialog{background:#f0f0f0;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;height:100%;left:0;overflow-y:auto;padding:32px 24px;position:absolute;scrollbar-gutter:stable both-edges;top:0;width:100%}@media (min-width:782px){.block-editor-inserter__patterns-category-dialog{display:block;left:100%;width:300px}}.block-editor-inserter__patterns-category-dialog .block-editor-block-patterns-list{margin-top:24px}.block-editor-inserter__patterns-category-dialog .block-editor-block-preview__container{box-shadow:0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__patterns-category-dialog .block-editor-block-preview__container:hover{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__patterns-category-panel{padding:0 16px}@media (min-width:782px){.block-editor-inserter__patterns-category-panel{padding:0}}.block-editor-inserter__preview-content{align-items:center;background:#f0f0f0;display:grid;flex-grow:1;min-height:144px}.block-editor-inserter__preview-content-missing{align-items:center;background:#f0f0f0;color:#757575;display:flex;flex:1;justify-content:center;min-height:144px}.block-editor-inserter__tips{border-top:1px solid #ddd;flex-shrink:0;padding:16px;position:relative}.block-editor-inserter__quick-inserter{max-width:100%;width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{float:left;height:0;padding:0}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-preview__container{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{background:#1e1e1e;border-radius:0;color:#fff;display:block;height:44px;width:100%}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);box-shadow:none}.block-editor-block-patterns-explorer__sidebar{bottom:0;left:0;overflow-x:visible;overflow-y:scroll;padding:24px 32px 32px;position:absolute;top:76px;width:280px}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;height:48px;text-align:left;width:100%}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-left:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-gap:32px;display:grid;grid-template-columns:repeat(1,1fr)}@media (min-width:1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-preview__container{height:inherit;max-height:800px;min-height:100px}.block-editor-inserter__patterns-category-panel-title{font-size:16.25px}.block-editor-inserter__media-tabs-container,.block-editor-inserter__media-tabs-container nav{height:100%}.block-editor-inserter__media-tabs-container .block-editor-inserter__media-library-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__media-tabs{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:16px}.block-editor-inserter__media-tabs div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__media-tabs__media-category.is-selected{color:var(--wp-admin-theme-color);position:relative}.block-editor-inserter__media-tabs__media-category.is-selected .components-flex-item{filter:brightness(.95)}.block-editor-inserter__media-tabs__media-category.is-selected svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__media-tabs__media-category.is-selected:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;position:absolute;right:0;top:0}.block-editor-inserter__media-dialog{background:#f0f0f0;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;height:100%;left:0;overflow-y:auto;padding:16px 24px;position:absolute;scrollbar-gutter:stable both-edges;top:0;width:100%}@media (min-width:782px){.block-editor-inserter__media-dialog{display:block;left:100%;width:300px}}.block-editor-inserter__media-dialog .block-editor-block-preview__container{box-shadow:0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__media-dialog .block-editor-block-preview__container:hover{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__media-panel{display:flex;flex-direction:column;min-height:100%;padding:0 16px}@media (min-width:782px){.block-editor-inserter__media-panel{padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{align-items:center;display:flex;flex:1;height:100%;justify-content:center}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search.components-search-control input[type=search].components-search-control__input{background:#fff}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search.components-search-control button.components-button{min-width:auto;padding-left:2px;padding-right:2px}.block-editor-inserter__media-list{margin-top:16px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item[draggable=true] .block-editor-block-preview__container{cursor:grab}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{position:absolute;right:8px;top:8px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;border-radius:2px;display:none}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list .block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{margin:0 auto;max-width:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{align-items:center;background:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{height:100%;padding:16px}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width:600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.reusable-blocks-menu-items__rename-hint{align-items:top;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;max-width:380px}.reusable-blocks-menu-items__rename-hint-content{margin:12px 0 12px 12px}.reusable-blocks-menu-items__rename-hint-dismiss{margin:4px 4px 4px 0}.components-menu-group .reusable-blocks-menu-items__rename-hint{margin:0}.block-editor-post-preview__dropdown{padding:0}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-left:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-left:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:first-child{padding-bottom:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:last-child{margin-bottom:0}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{padding:8px}@media (min-width:600px){.edit-post-header__settings .editor-post-preview,.edit-site-header-edit-mode__actions .editor-post-preview{display:none}.edit-post-header.has-reduced-ui .edit-post-header__settings .block-editor-post-preview__button-toggle,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-save-draft,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-saved-state{transition:opacity .1s linear}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.edit-post-header.has-reduced-ui .edit-post-header__settings .block-editor-post-preview__button-toggle,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-save-draft,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-saved-state{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .block-editor-post-preview__button-toggle,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .editor-post-save-draft,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .editor-post-saved-state{opacity:0}.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .block-editor-post-preview__button-toggle.is-opened{opacity:1}}.spacing-sizes-control .spacing-sizes-control__custom-value-input,.spacing-sizes-control .spacing-sizes-control__label{margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range,.spacing-sizes-control .spacing-sizes-control__range-control{align-items:center;display:flex;flex:1;height:40px;margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range>.components-base-control__field,.spacing-sizes-control .spacing-sizes-control__range-control>.components-base-control__field{flex:1}.spacing-sizes-control .components-range-control__mark{background-color:#fff;height:4px;width:3px;z-index:1}.spacing-sizes-control .components-range-control__marks{margin-top:17px}.spacing-sizes-control .components-range-control__marks :first-child{display:none}.spacing-sizes-control .components-range-control__thumb-wrapper{z-index:3}.spacing-sizes-control__wrapper+.spacing-sizes-control__wrapper{margin-top:8px}.spacing-sizes-control__header{height:16px;margin-bottom:8px}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__custom-select-control,.spacing-sizes-control__custom-value-input{flex:1}.spacing-sizes-control__custom-toggle,.spacing-sizes-control__icon{flex:0 0 auto}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
+@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.block-editor-autocompleters__block{white-space:nowrap}.block-editor-autocompleters__block .block-editor-block-icon{margin-right:8px}.block-editor-autocompleters__link{white-space:nowrap}.block-editor-autocompleters__link .block-editor-block-icon{margin-right:8px}.block-editor-block-alignment-control__menu-group .components-menu-item__info{margin-top:0}.block-editor-block-icon{align-items:center;display:flex;height:24px;justify-content:center;width:24px}.block-editor-block-icon.has-colors svg{fill:currentColor}@media (forced-colors:active){.block-editor-block-icon.has-colors svg{fill:CanvasText}}.block-editor-block-icon svg{max-height:24px;max-width:24px;min-height:20px;min-width:20px}.block-editor-block-inspector p:not(.components-base-control__help){margin-top:0}.block-editor-block-inspector h2,.block-editor-block-inspector h3{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.block-editor-block-inspector .components-base-control{margin-bottom:24px}.block-editor-block-inspector .components-base-control:last-child{margin-bottom:8px}.block-editor-block-inspector .components-focal-point-picker-control .components-base-control,.block-editor-block-inspector .components-query-controls .components-base-control{margin-bottom:0}.block-editor-block-inspector .components-panel__body{border:none;border-top:1px solid #e0e0e0;margin-top:-1px}.block-editor-block-inspector .block-editor-block-card{padding:16px}.block-editor-block-inspector__no-block-tools,.block-editor-block-inspector__no-blocks{background:#fff;display:block;font-size:13px;padding:32px 16px;text-align:center}.block-editor-block-inspector__no-block-tools{border-top:1px solid #ddd}.block-editor-block-inspector__tab-item{flex:1 1 0px}.block-editor-block-list__insertion-point{bottom:0;left:0;position:absolute;right:0;top:0}.block-editor-block-list__insertion-point-indicator{background:var(--wp-admin-theme-color);border-radius:2px;opacity:0;position:absolute;transform-origin:center;will-change:transform,opacity}.block-editor-block-list__insertion-point.is-vertical>.block-editor-block-list__insertion-point-indicator{height:4px;top:calc(50% - 2px);width:100%}.block-editor-block-list__insertion-point.is-horizontal>.block-editor-block-list__insertion-point-indicator{bottom:0;left:calc(50% - 2px);top:0;width:4px}.block-editor-block-list__insertion-point-inserter{display:none;justify-content:center;left:calc(50% - 12px);position:absolute;top:calc(50% - 12px);will-change:transform}@media (min-width:480px){.block-editor-block-list__insertion-point-inserter{display:flex}}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div{pointer-events:none}.block-editor-block-list__block-side-inserter-popover .components-popover__content>div>*{pointer-events:all}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:#1e1e1e;border-radius:2px;color:#fff;height:24px;min-width:24px;padding:0}.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon:hover,.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:var(--wp-admin-theme-color);color:#fff}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon{background:var(--wp-admin-theme-color)}.block-editor-block-list__insertion-point-inserter .block-editor-inserter__toggle.components-button.has-icon:hover{background:#1e1e1e}.block-editor-block-contextual-toolbar.is-fixed{left:0}@media (min-width:783px){.block-editor-block-contextual-toolbar.is-fixed{left:160px}}@media (min-width:783px){.auto-fold .block-editor-block-contextual-toolbar.is-fixed{left:36px}}@media (min-width:961px){.auto-fold .block-editor-block-contextual-toolbar.is-fixed{left:160px}}.folded .block-editor-block-contextual-toolbar.is-fixed{left:0}@media (min-width:783px){.folded .block-editor-block-contextual-toolbar.is-fixed{left:36px}}body.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{left:0!important}.block-editor-block-contextual-toolbar{background-color:#fff;border:1px solid #1e1e1e;border-radius:2px;display:inline-flex}.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group{border-right-color:#1e1e1e}.block-editor-block-contextual-toolbar.is-fixed{border:none;border-bottom:1px solid #e0e0e0;border-radius:0;display:block;overflow:hidden;position:sticky;top:0;width:100%;z-index:31}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar{overflow:auto;overflow-y:hidden}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group{border-right-color:#e0e0e0}.block-editor-block-contextual-toolbar.is-collapsed:after{background:linear-gradient(90deg,#fff,transparent);content:"";height:100%;left:100%;position:absolute;width:48px}@media (min-width:782px){.block-editor-block-contextual-toolbar.is-fixed{align-items:center;border-bottom:none;display:flex;height:60px;margin-left:180px;min-height:auto;position:fixed;top:32px}.block-editor-block-contextual-toolbar.is-fixed.is-collapsed,.block-editor-block-contextual-toolbar.is-fixed:empty{width:auto}.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{margin-left:240px;top:0}.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed.is-collapsed,.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed:empty{width:auto}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar.is-showing-movers{flex-grow:0;width:auto}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar.is-showing-movers:before{background-color:#ddd;content:"";height:24px;left:-2px;margin-right:0;margin-top:12px;position:relative;top:-1px;width:1px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar{border:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-collapse-fixed-toolbar:before{background-color:#ddd;content:"";height:24px;left:0;margin-right:8px;margin-top:12px;position:relative;top:-1px;width:1px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar{border:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar{width:256px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.block-editor-block-contextual-toolbar.is-fixed>.block-editor-block-toolbar__group-expand-fixed-toolbar:before{background-color:#ddd;content:"";height:24px;left:-8px;margin-bottom:12px;margin-top:12px;position:relative;top:-1px;width:1px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{margin-left:80px}.is-fullscreen-mode .show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{margin-left:144px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button:after{left:0}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:none}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__block-controls .block-editor-block-mover:before{background-color:#ddd;content:"";margin-bottom:12px;margin-top:12px;position:relative;width:1px}.blocks-widgets-container .block-editor-block-contextual-toolbar.is-fixed{margin-left:153.6px}.blocks-widgets-container .block-editor-block-contextual-toolbar.is-fixed.is-collapsed{margin-left:268.8px}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button{border:0;padding-left:6px;padding-right:6px;position:relative;top:-1px}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-parent-selector .block-editor-block-parent-selector__button:after{bottom:4px;content:"·";font-size:16px;left:46px;line-height:40px;position:absolute}.block-editor-block-contextual-toolbar:not(.is-fixed) .block-editor-block-parent-selector{left:-57px;position:absolute;top:-1px}.show-icon-labels .block-editor-block-contextual-toolbar:not(.is-fixed) .block-editor-block-parent-selector{left:auto;margin-bottom:-1px;margin-left:-1px;margin-top:-1px;position:relative;top:auto}.block-editor-block-contextual-toolbar.is-fixed{width:calc(100% - 180px)}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{width:calc(100% - 140px)}}@media (min-width:960px){.block-editor-block-contextual-toolbar.is-fixed,.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed{width:auto}.is-fullscreen-mode .block-editor-block-contextual-toolbar.is-fixed{width:calc(100% - 536px)}}.block-editor-block-list__block-selection-button{background-color:#1e1e1e;border-radius:2px;display:inline-flex;font-size:13px;height:48px;padding:0 12px;z-index:22}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content{align-items:center;display:inline-flex;margin:auto}.block-editor-block-list__block-selection-button .block-editor-block-list__block-selection-button__content>.components-flex__item{margin-right:6px}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle{cursor:grab;height:24px;margin-left:-2px;min-width:24px;padding:0}.block-editor-block-list__block-selection-button .components-button.has-icon.block-selection-button_drag-handle svg{min-height:18px;min-width:18px}.block-editor-block-list__block-selection-button .block-editor-block-icon{color:#fff;font-size:13px;height:48px}.block-editor-block-list__block-selection-button .components-button{color:#fff;display:flex;height:48px;min-width:36px}.block-editor-block-list__block-selection-button .components-button:focus{border:none;box-shadow:none}.block-editor-block-list__block-selection-button .components-button:active,.block-editor-block-list__block-selection-button .components-button[aria-disabled=true]:hover{color:#fff}.block-editor-block-list__block-selection-button .block-selection-button_select-button.components-button{padding:0}.block-editor-block-list__block-selection-button .block-editor-block-mover{background:unset;border:none}@keyframes hide-during-dragging{to{position:fixed;transform:translate(9999px,9999px)}}.components-popover.block-editor-block-list__block-popover .block-editor-block-contextual-toolbar,.components-popover.block-editor-block-list__block-popover .block-editor-block-list__block-selection-button{margin-bottom:12px;margin-top:12px;pointer-events:all}.components-popover.block-editor-block-list__block-popover.is-insertion-point-visible{visibility:hidden}.is-dragging-components-draggable .components-popover.block-editor-block-list__block-popover{animation:hide-during-dragging 1ms linear forwards;opacity:0}.is-dragging-components-draggable .components-tooltip{display:none}.block-editor-block-lock-modal{z-index:1000001}@media (min-width:600px){.block-editor-block-lock-modal .components-modal__frame{max-width:480px}}.block-editor-block-lock-modal__checklist{margin:0}.block-editor-block-lock-modal__options-title{padding:12px 0}.block-editor-block-lock-modal__options-title .components-checkbox-control__label{font-weight:600}.block-editor-block-lock-modal__checklist-item{align-items:center;display:flex;gap:12px;justify-content:space-between;margin-bottom:0;padding:12px 0 12px 32px}.block-editor-block-lock-modal__checklist-item .block-editor-block-lock-modal__lock-icon{fill:#1e1e1e;flex-shrink:0;margin-right:12px}.block-editor-block-lock-modal__checklist-item:hover{background-color:#f0f0f0;border-radius:2px}.block-editor-block-lock-modal__template-lock{border-top:1px solid #ddd;margin-top:16px;padding:12px 0}.block-editor-block-lock-modal__actions{margin-top:24px}.block-editor-block-lock-toolbar .components-button.has-icon{min-width:36px!important}.block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{margin-left:-6px!important}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-lock-toolbar{border-left:1px solid #1e1e1e;margin-left:6px!important;margin-right:-6px}.block-editor-block-breadcrumb{list-style:none;margin:0;padding:0}.block-editor-block-breadcrumb li{display:inline-flex;margin:0}.block-editor-block-breadcrumb li .block-editor-block-breadcrumb__separator{fill:currentColor;margin-left:-4px;margin-right:-4px;transform:scaleX(1)}.block-editor-block-breadcrumb li:last-child .block-editor-block-breadcrumb__separator{display:none}.block-editor-block-breadcrumb__button.components-button{height:24px;line-height:24px;padding:0;position:relative}.block-editor-block-breadcrumb__button.components-button:hover:not(:disabled){box-shadow:none;text-decoration:underline}.block-editor-block-breadcrumb__button.components-button:focus{box-shadow:none}.block-editor-block-breadcrumb__button.components-button:focus:before{border-radius:2px;bottom:1px;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:1px;outline:2px solid transparent;position:absolute;right:1px;top:1px}.block-editor-block-breadcrumb__current{cursor:default}.block-editor-block-breadcrumb__button.components-button,.block-editor-block-breadcrumb__current{color:#1e1e1e;font-size:inherit;padding:0 8px}.block-editor-block-card{align-items:flex-start;display:flex}.block-editor-block-card__content{flex-grow:1;margin-bottom:4px}.block-editor-block-card__title{font-weight:500}.block-editor-block-card__title.block-editor-block-card__title{line-height:24px;margin:0 0 4px}.block-editor-block-card__description{font-size:13px}.block-editor-block-card .block-editor-block-icon{flex:0 0 24px;height:24px;margin-left:0;margin-right:12px;width:24px}.block-editor-block-card.is-synced .block-editor-block-icon{color:var(--wp-block-synced-color)}.block-editor-block-compare{height:auto}.block-editor-block-compare__wrapper{display:flex;padding-bottom:16px}.block-editor-block-compare__wrapper>div{display:flex;flex-direction:column;justify-content:space-between;max-width:600px;min-width:200px;padding:0 16px 0 0;width:50%}.block-editor-block-compare__wrapper>div button{float:right}.block-editor-block-compare__wrapper .block-editor-block-compare__converted{border-left:1px solid #ddd;padding-left:15px;padding-right:0}.block-editor-block-compare__wrapper .block-editor-block-compare__html{border-bottom:1px solid #ddd;color:#1e1e1e;font-family:Menlo,Consolas,monaco,monospace;font-size:12px;line-height:1.7;padding-bottom:15px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span{background-color:#e6ffed;padding-bottom:3px;padding-top:3px}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__added{background-color:#acf2bd}.block-editor-block-compare__wrapper .block-editor-block-compare__html span.block-editor-block-compare__removed{background-color:#cc1818}.block-editor-block-compare__wrapper .block-editor-block-compare__preview{padding:16px 0 0}.block-editor-block-compare__wrapper .block-editor-block-compare__preview p{font-size:12px;margin-top:0}.block-editor-block-compare__wrapper .block-editor-block-compare__action{margin-top:16px}.block-editor-block-compare__wrapper .block-editor-block-compare__heading{font-size:1em;font-weight:400;margin:.67em 0}.block-editor-block-draggable-chip-wrapper{left:0;position:absolute;top:-24px}.block-editor-block-draggable-chip{background-color:#1e1e1e;border-radius:2px;box-shadow:0 6px 8px rgba(0,0,0,.3);color:#fff;cursor:grabbing;display:inline-flex;height:48px;padding:0 13px;-webkit-user-select:none;user-select:none}.block-editor-block-draggable-chip svg{fill:currentColor}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content{justify-content:flex-start;margin:auto}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item{margin-right:6px}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content>.components-flex__item:last-child{margin-right:0}.block-editor-block-draggable-chip .block-editor-block-draggable-chip__content .block-editor-block-icon svg{min-height:18px;min-width:18px}.block-editor-block-draggable-chip .components-flex__item{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.block-editor-block-mover__move-button-container{border:none;display:flex;padding:0}@media (min-width:600px){.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container{flex-direction:column}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>*{height:24px;min-width:0!important;width:100%}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container>:before{height:calc(100% - 4px)}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{flex-shrink:0;top:5px}.block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{bottom:5px;flex-shrink:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{width:48px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container>*{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button{padding-left:0;padding-right:0}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg{left:5px}.block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg{right:5px}}.block-editor-block-mover__drag-handle{cursor:grab}@media (min-width:600px){.block-editor-block-mover__drag-handle{min-width:0!important;overflow:hidden;width:24px}.block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon.has-icon{padding-left:0;padding-right:0}}.components-button.block-editor-block-mover-button:before{animation:components-button__appear-animation .1s ease;animation-fill-mode:forwards;border-radius:2px;content:"";display:block;height:32px;left:8px;position:absolute;right:8px;z-index:-1}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-mover-button:before{animation-delay:0s;animation-duration:1ms}}.components-button.block-editor-block-mover-button:focus,.components-button.block-editor-block-mover-button:focus:before,.components-button.block-editor-block-mover-button:focus:enabled{box-shadow:none;outline:none}.components-button.block-editor-block-mover-button:focus-visible:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-block-navigation__container{min-width:280px}.block-editor-block-navigation__label{color:#757575;font-size:11px;font-weight:500;margin:0 0 12px;text-transform:uppercase}.block-editor-block-parent-selector{background:#fff;border-radius:2px}.block-editor-block-parent-selector .block-editor-block-parent-selector__button{border:1px solid #1e1e1e;border-radius:2px;height:48px;width:48px}.block-editor-block-patterns-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-block-patterns-list__list-item.is-placeholder{min-height:100px}.block-editor-block-patterns-list__list-item[draggable=true] .block-editor-block-preview__container{cursor:grab}.block-editor-block-patterns-list__item{height:100%}.block-editor-block-patterns-list__item .block-editor-block-preview__container{align-items:center;border-radius:4px;display:flex;overflow:hidden}.block-editor-block-patterns-list__item .block-editor-block-patterns-list__item-title{font-size:12px;padding-top:8px;text-align:center}.block-editor-block-patterns-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-patterns-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-patterns-list__item:focus .block-editor-block-patterns-list__item-title,.block-editor-block-patterns-list__item:hover .block-editor-block-patterns-list__item-title{color:var(--wp-admin-theme-color)}.components-popover.block-editor-block-popover{margin:0!important;pointer-events:none;position:absolute;z-index:31}.components-popover.block-editor-block-popover .components-popover__content{margin:0!important;min-width:auto;overflow-y:visible;width:max-content}.components-popover.block-editor-block-popover:not(.block-editor-block-popover__inbetween,.block-editor-block-popover__drop-zone,.block-editor-block-list__block-side-inserter-popover) .components-popover__content *{pointer-events:all}.components-popover.block-editor-block-popover__inbetween,.components-popover.block-editor-block-popover__inbetween *{pointer-events:none}.components-popover.block-editor-block-popover__inbetween .is-with-inserter,.components-popover.block-editor-block-popover__inbetween .is-with-inserter *{pointer-events:all}.components-popover.block-editor-block-popover__drop-zone *{pointer-events:none}.components-popover.block-editor-block-popover__drop-zone .block-editor-block-popover__drop-zone-foreground{background-color:var(--wp-admin-theme-color);border-radius:2px;inset:0;position:absolute}.block-editor-block-preview__container{overflow:hidden;position:relative;width:100%}.block-editor-block-preview__container .block-editor-block-preview__content{left:0;margin:0;min-height:auto;overflow:visible;text-align:initial;top:0;transform-origin:top left}.block-editor-block-preview__container .block-editor-block-preview__content .block-editor-block-list__insertion-point,.block-editor-block-preview__container .block-editor-block-preview__content .block-list-appender{display:none}.block-editor-block-preview__container:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.block-editor-block-settings-menu__popover .components-dropdown-menu__menu{padding:0}.block-editor-block-styles+.default-style-picker__default-switcher{margin-top:16px}.block-editor-block-styles__preview-panel{display:none;left:auto;position:absolute;right:16px;z-index:90}@media (min-width:782px){.block-editor-block-styles__preview-panel{display:block}}.block-editor-block-styles__preview-panel .block-editor-inserter__preview-container{left:auto;position:static;right:auto;top:auto}.block-editor-block-styles__preview-panel .block-editor-block-card__title.block-editor-block-card__title{margin:0}.block-editor-block-styles__preview-panel .block-editor-block-icon{display:none}.block-editor-block-styles__variants{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item{box-shadow:inset 0 0 0 1px #ccc;color:#1e1e1e;display:inline-block;width:calc(50% - 4px)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:hover{box-shadow:inset 0 0 0 1px #ccc;color:var(--wp-admin-theme-color)}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover{background-color:#1e1e1e;box-shadow:none}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active .block-editor-block-styles__item-text,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:hover .block-editor-block-styles__item-text{color:#fff}.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item.is-active:focus,.block-editor-block-styles__variants button.components-button.block-editor-block-styles__item:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-styles__variants .block-editor-block-styles__item-text{text-align:start;text-align-last:center;white-space:normal;word-break:break-all}.block-editor-block-styles__block-preview-container,.block-editor-block-styles__block-preview-container *{box-sizing:border-box!important}.block-editor-block-switcher{position:relative}.block-editor-block-switcher .components-button.components-dropdown-menu__toggle.has-icon.has-icon{min-width:36px}.block-editor-block-switcher__no-switcher-icon,.block-editor-block-switcher__toggle{position:relative}.components-button.block-editor-block-switcher__no-switcher-icon,.components-button.block-editor-block-switcher__toggle{display:block;height:48px;margin:0}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.components-button.block-editor-block-switcher__toggle .block-editor-block-icon{margin:auto}.block-editor-block-switcher__toggle-text{margin-left:8px}.show-icon-labels .block-editor-block-switcher__toggle-text{display:none}.show-icon-labels .block-editor-block-toolbar .block-editor-block-switcher .components-button.has-icon:after{font-size:14px}.components-button.block-editor-block-switcher__no-switcher-icon{display:flex}.components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin-left:auto;margin-right:auto;min-width:24px!important}.components-button.block-editor-block-switcher__no-switcher-icon:disabled{opacity:1}.components-button.block-editor-block-switcher__no-switcher-icon:disabled,.components-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:#1e1e1e}.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon .block-editor-block-icon,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon .block-editor-block-icon{align-items:center;display:flex;height:100%;margin:0 auto;min-width:100%;position:relative}.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__no-switcher-icon.has-icon.has-icon:before,.block-editor-block-toolbar .components-toolbar-group .components-button.block-editor-block-switcher__toggle.has-icon.has-icon:before{bottom:8px;left:8px;right:8px;top:8px}.components-popover.block-editor-block-switcher__popover .components-popover__content{min-width:300px}.block-editor-block-switcher__popover__preview__parent .block-editor-block-switcher__popover__preview__container{left:calc(100% + 16px);position:absolute;top:-12px}.block-editor-block-switcher__preview__popover{display:none}.block-editor-block-switcher__preview__popover.components-popover{margin-top:11px}@media (min-width:782px){.block-editor-block-switcher__preview__popover{display:block}}.block-editor-block-switcher__preview__popover .components-popover__content{background:#fff;border:1px solid #1e1e1e;border-radius:2px;box-shadow:none;outline:none;width:300px}.block-editor-block-switcher__preview__popover .block-editor-block-switcher__preview{margin:16px 0;max-height:468px;overflow:hidden;padding:0 16px}.block-editor-block-switcher__preview-title{color:#757575;font-size:11px;font-weight:500;margin-bottom:12px;text-transform:uppercase}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon{min-width:36px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle{height:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-icon,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{height:48px;width:48px}.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__no-switcher-icon .block-editor-block-switcher__transform,.block-editor-block-contextual-toolbar .components-button.block-editor-block-switcher__toggle .block-editor-block-switcher__transform{padding:12px}.block-editor-block-switcher__preview-patterns-container{padding-bottom:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item{margin-top:16px}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-preview__container{cursor:pointer}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item{border:1px solid transparent;border-radius:2px;height:100%;position:relative;transition:all .05s ease-in-out}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:focus,.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item:hover{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) #1e1e1e}.block-editor-block-switcher__preview-patterns-container .block-editor-block-switcher__preview-patterns-container-list__list-item .block-editor-block-switcher__preview-patterns-container-list__item .block-editor-block-switcher__preview-patterns-container-list__item-title{cursor:pointer;font-size:12px;padding:4px;text-align:center}.block-editor-block-types-list>[role=presentation]{display:flex;flex-wrap:wrap;overflow:hidden}.block-editor-block-pattern-setup{align-items:flex-start;border-radius:2px;display:flex;flex-direction:column;justify-content:center;width:100%}.block-editor-block-pattern-setup.view-mode-grid{padding-top:4px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__toolbar{justify-content:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:2;column-gap:24px;display:block;padding:0 32px;width:100%}@media (min-width:1440px){.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container{column-count:3}}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-preview__container,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container div[role=button]{cursor:pointer}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-preview__container{box-shadow:0 0 0 2px var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-preview__container{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #fff,0 0 0 calc(var(--wp-admin-border-width-focus)*2) var(--wp-admin-theme-color);outline:2px solid transparent;outline-offset:2px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:focus .block-editor-block-pattern-setup-list__item-title,.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__item:hover .block-editor-block-pattern-setup-list__item-title{color:var(--wp-admin-theme-color)}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item{break-inside:avoid-column;margin-bottom:24px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-pattern-setup-list__item-title{cursor:pointer;font-size:12px;padding-top:8px;text-align:center}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__container{border:1px solid #ddd;border-radius:2px;min-height:100px}.block-editor-block-pattern-setup.view-mode-grid .block-editor-block-pattern-setup__container .block-editor-block-pattern-setup-list__list-item .block-editor-block-preview__content{width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar{align-items:center;align-self:flex-end;background-color:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:border-box;color:#1e1e1e;display:flex;flex-direction:row;height:60px;justify-content:space-between;margin:0;padding:16px;position:absolute;text-align:left;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__display-controls{display:flex}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions,.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__navigation{display:flex;width:calc(50% - 36px)}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__toolbar .block-editor-block-pattern-setup__actions{justify-content:flex-end}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;width:100%}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container{height:100%;list-style:none;margin:0;overflow:hidden;padding:0;position:relative;transform-style:preserve-3d}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container *{box-sizing:border-box}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide{background-color:#fff;height:100%;margin:auto;padding:0;position:absolute;top:0;transition:transform .5s,z-index .5s;width:100%;z-index:100}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.active-slide{opacity:1;position:relative;z-index:102}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.previous-slide{transform:translateX(-100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .carousel-container .pattern-slide.next-slide{transform:translateX(100%);z-index:101}.block-editor-block-pattern-setup .block-editor-block-pattern-setup__container .block-list-appender{display:none}.block-editor-block-pattern-setup__carousel,.block-editor-block-pattern-setup__grid{width:100%}.block-editor-block-variation-transforms{padding:0 16px 16px 52px;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle{border:1px solid #757575;border-radius:2px;justify-content:left;min-height:30px;padding:6px 12px;position:relative;text-align:left;width:100%}.block-editor-block-variation-transforms .components-dropdown-menu__toggle.components-dropdown-menu__toggle{padding-right:24px}.block-editor-block-variation-transforms .components-dropdown-menu__toggle:focus:not(:disabled){border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 calc(var(--wp-admin-border-width-focus) - 1px) var(--wp-admin-theme-color)}.block-editor-block-variation-transforms .components-dropdown-menu__toggle svg{height:100%;padding:0;position:absolute;right:0;top:0}.block-editor-block-variation-transforms__popover .components-popover__content{min-width:230px}.components-border-radius-control{margin-bottom:12px}.components-border-radius-control legend{margin-bottom:8px}.components-border-radius-control .components-border-radius-control__wrapper{align-items:flex-start;display:flex;justify-content:space-between}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__unit-control{flex-shrink:0;margin-bottom:0;margin-right:16px;width:calc(50% - 8px)}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control{flex:1;margin-right:12px}.components-border-radius-control .components-border-radius-control__wrapper .components-border-radius-control__range-control>div{align-items:center;display:flex;height:40px}.components-border-radius-control .components-border-radius-control__wrapper>span{flex:0 0 auto}.components-border-radius-control .components-border-radius-control__input-controls-wrapper{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));margin-right:12px}.components-border-radius-control .component-border-radius-control__linked-button{display:flex;justify-content:center;margin-top:8px}.components-border-radius-control .component-border-radius-control__linked-button svg{margin-right:0}.block-editor-color-gradient-control .block-editor-color-gradient-control__color-indicator{margin-bottom:12px}.block-editor-color-gradient-control__fieldset{min-width:0}.block-editor-color-gradient-control__tabs .block-editor-color-gradient-control__panel{padding:16px}.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings,.block-editor-panel-color-gradient-settings.block-editor-panel-color-gradient-settings>div:not(:first-of-type){display:block}@media screen and (min-width:782px){.block-editor-panel-color-gradient-settings .components-circular-option-picker__swatches{display:grid;grid-template-columns:repeat(6,28px);justify-content:space-between}}.block-editor-block-inspector .block-editor-panel-color-gradient-settings .components-base-control{margin-bottom:inherit}.block-editor-panel-color-gradient-settings__dropdown-content .block-editor-color-gradient-control__panel{padding:16px;width:260px}.block-editor-panel-color-gradient-settings__color-indicator{background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.block-editor-tools-panel-color-gradient-settings__item{border-bottom:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;max-width:100%;padding:0}.block-editor-tools-panel-color-gradient-settings__item.first{border-top:1px solid #ddd;border-top-left-radius:2px;border-top-right-radius:2px;margin-top:24px}.block-editor-tools-panel-color-gradient-settings__item.last{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.block-editor-tools-panel-color-gradient-settings__item>div,.block-editor-tools-panel-color-gradient-settings__item>div>button{border-radius:inherit}.block-editor-tools-panel-color-gradient-settings__dropdown{display:block;padding:0}.block-editor-tools-panel-color-gradient-settings__dropdown>button{height:auto;padding-bottom:10px;padding-top:10px;text-align:left}.block-editor-tools-panel-color-gradient-settings__dropdown>button.is-open{background:#f0f0f0;color:var(--wp-admin-theme-color)}.block-editor-tools-panel-color-gradient-settings__dropdown .block-editor-panel-color-gradient-settings__color-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-panel-color-gradient-settings__dropdown{width:100%}.block-editor-panel-color-gradient-settings__dropdown .component-color-indicator{flex-shrink:0}.block-editor-contrast-checker>.components-notice{margin:0}.block-editor-date-format-picker{margin-bottom:16px}.block-editor-date-format-picker__custom-format-select-control__custom-option{border-top:1px solid #ddd}.block-editor-date-format-picker__custom-format-select-control__custom-option.has-hint{grid-template-columns:auto 30px}.block-editor-date-format-picker__custom-format-select-control__custom-option .components-custom-select-control__item-hint{grid-row:2;text-align:left}.block-editor-duotone-control__popover>.components-popover__content{padding:16px;width:280px}.block-editor-duotone-control__popover .components-menu-group__label{padding:0}.block-editor-duotone-control__popover .components-circular-option-picker__swatches{display:grid;gap:12px;grid-template-columns:repeat(6,28px);justify-content:space-between}.block-editor-duotone-control__description{font-size:12px;margin:16px 0}.block-editor-duotone-control__unset-indicator{background:linear-gradient(-45deg,transparent 48%,#ddd 0,#ddd 52%,transparent 0)}.components-font-appearance-control ul li{color:#1e1e1e;text-transform:capitalize}.block-editor-global-styles-effects-panel__toggle-icon{fill:currentColor}.block-editor-global-styles-effects-panel__shadow-popover-container{width:230px}.block-editor-global-styles-effects-panel__shadow-dropdown,.block-editor-global-styles-filters-panel__dropdown{display:block;padding:0}.block-editor-global-styles-effects-panel__shadow-dropdown button,.block-editor-global-styles-filters-panel__dropdown button{padding:8px;width:100%}.block-editor-global-styles-effects-panel__shadow-dropdown button.is-open,.block-editor-global-styles-filters-panel__dropdown button.is-open{background-color:#f0f0f0}.block-editor-global-styles-effects-panel__shadow-indicator-wrapper{align-items:center;display:flex;justify-content:center;overflow:hidden;padding:6px}.block-editor-global-styles-effects-panel__shadow-indicator{border:1px solid #e0e0e0;border-radius:2px;color:#2f2f2f;cursor:pointer;height:24px;padding:0;width:24px}.block-editor-global-styles-advanced-panel__custom-css-input textarea{direction:ltr;font-family:Menlo,Consolas,monaco,monospace}.block-editor-global-styles-advanced-panel__custom-css-validation-wrapper{bottom:16px;position:absolute;right:24px}.block-editor-global-styles-advanced-panel__custom-css-validation-icon{fill:#cc1818}.block-editor-height-control{border:0;margin:0;padding:0}.block-editor-image-size-control{margin-bottom:1em}.block-editor-image-size-control .block-editor-image-size-control__height,.block-editor-image-size-control .block-editor-image-size-control__width{margin-bottom:1.115em}.block-editor-block-types-list__list-item{display:block;margin:0;padding:0;width:33.33%}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled) .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-block-synced-color)!important;filter:brightness(.95)}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-block-synced-color)!important}.block-editor-block-types-list__list-item.is-synced .components-button.block-editor-block-types-list__item:not(:disabled):after{background:var(--wp-block-synced-color)}.components-button.block-editor-block-types-list__item{align-items:stretch;background:transparent;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;flex-direction:column;font-size:13px;height:auto;justify-content:center;padding:8px;position:relative;transition:all .05s ease-in-out;width:100%;word-break:break-word}@media (prefers-reduced-motion:reduce){.components-button.block-editor-block-types-list__item{transition-delay:0s;transition-duration:0s}}.components-button.block-editor-block-types-list__item:disabled{cursor:default;opacity:.6}.components-button.block-editor-block-types-list__item:not(:disabled):hover .block-editor-block-types-list__item-title{color:var(--wp-admin-theme-color)!important;filter:brightness(.95)}.components-button.block-editor-block-types-list__item:not(:disabled):hover svg{color:var(--wp-admin-theme-color)!important}.components-button.block-editor-block-types-list__item:not(:disabled):hover:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.components-button.block-editor-block-types-list__item:not(:disabled):focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.components-button.block-editor-block-types-list__item:not(:disabled).is-active{background:#1e1e1e;color:#fff;outline:2px solid transparent;outline-offset:-2px}.block-editor-block-types-list__item-icon{border-radius:2px;color:#1e1e1e;padding:12px 20px;transition:all .05s ease-in-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon{transition-delay:0s;transition-duration:0s}}.block-editor-block-types-list__item-icon .block-editor-block-icon{margin-left:auto;margin-right:auto}.block-editor-block-types-list__item-icon svg{transition:all .15s ease-out}@media (prefers-reduced-motion:reduce){.block-editor-block-types-list__item-icon svg{transition-delay:0s;transition-duration:0s}}.block-editor-block-types-list__list-item[draggable=true] .block-editor-block-types-list__item-icon{cursor:grab}.block-editor-block-types-list__item-title{font-size:12px;padding:4px 2px 8px}.show-icon-labels .block-editor-block-inspector__tabs .components-tab-panel__tabs .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-inspector__tabs .components-tab-panel__tabs .components-button.has-icon:before{content:attr(aria-label)}.block-editor-inspector-controls-tabs__hint{align-items:top;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;margin:16px}.block-editor-inspector-controls-tabs__hint-content{margin:12px 0 12px 12px}.block-editor-inspector-controls-tabs__hint-dismiss{margin:4px 4px 4px 0}.block-editor-inspector-popover-header{margin-bottom:16px}[class].block-editor-inspector-popover-header__action{height:24px}[class].block-editor-inspector-popover-header__action.has-icon{min-width:24px;padding:0}[class].block-editor-inspector-popover-header__action:not(.has-icon){text-decoration:underline}.items-justified-left{justify-content:flex-start}.items-justified-center{justify-content:center}.items-justified-right{justify-content:flex-end}.items-justified-space-between{justify-content:space-between}@keyframes loadingpulse{0%{opacity:1}50%{opacity:0}to{opacity:1}}.block-editor-link-control{min-width:350px;position:relative}.components-popover__content .block-editor-link-control{max-width:350px;min-width:auto;width:90vw}.show-icon-labels .block-editor-link-control .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-link-control .components-button.has-icon:before{content:attr(aria-label)}.block-editor-link-control__search-input-wrapper{margin-bottom:8px;position:relative}.block-editor-link-control__search-input-container{position:relative}.block-editor-link-control__search-input.has-no-label .block-editor-url-input__input{flex:1}.block-editor-link-control__field{margin:16px}.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;display:block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:40px;line-height:normal;margin:0;padding:8px 16px;position:relative;transition:box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-link-control__field input[type=text],.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input{font-size:13px;line-height:normal}}.block-editor-link-control__field input[type=text]:focus,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-link-control__field input[type=text]::-webkit-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control__field input[type=text]::-moz-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.block-editor-link-control__field input[type=text]:-ms-input-placeholder,.block-editor-link-control__field.block-editor-url-input input[type=text].block-editor-url-input__input:-ms-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-link-control__search-error{margin:-8px 16px 16px}.block-editor-link-control__search-actions{display:flex;flex-direction:row-reverse;gap:8px;justify-content:flex-start;order:20;padding:8px}.block-editor-link-control__search-results{margin-top:-16px;max-height:200px;overflow-y:auto;padding:8px}.block-editor-link-control__search-results.is-loading{opacity:.2}.block-editor-link-control__search-item.components-button.components-menu-item__button{height:auto;text-align:left}.block-editor-link-control__search-item .components-menu-item__item{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.block-editor-link-control__search-item .components-menu-item__item mark{background-color:transparent;color:inherit;font-weight:600}.block-editor-link-control__search-item .components-menu-item__shortcut{color:#757575;text-transform:capitalize;white-space:nowrap}.block-editor-link-control__search-item[aria-selected]{background:#f0f0f0}.block-editor-link-control__search-item.is-current{background:transparent;border:0;cursor:default;flex-direction:column;padding:16px;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-header{align-items:flex-start;display:block;flex-direction:row;margin-right:8px;overflow-wrap:break-word;white-space:pre-wrap}.block-editor-link-control__search-item .block-editor-link-control__search-item-header .block-editor-link-control__search-item-info{word-break:break-all}.block-editor-link-control__search-item.is-preview .block-editor-link-control__search-item-header{display:flex;flex:1}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-header{align-items:center}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon{display:flex;flex-shrink:0;justify-content:center;margin-right:8px;max-height:24px;position:relative;width:24px}.block-editor-link-control__search-item .block-editor-link-control__search-item-icon img{width:16px}.block-editor-link-control__search-item.is-error .block-editor-link-control__search-item-icon{max-height:32px;top:0;width:32px}.block-editor-link-control__search-item .block-editor-link-control__search-item-title{display:block;font-weight:500;margin-bottom:.2em;position:relative}.block-editor-link-control__search-item .block-editor-link-control__search-item-title mark{background-color:transparent;color:inherit;font-weight:600}.block-editor-link-control__search-item .block-editor-link-control__search-item-title span{font-weight:400}.block-editor-link-control__search-item .block-editor-link-control__search-item-title svg{display:none}.block-editor-link-control__search-item .block-editor-link-control__search-item-description{margin:0;padding-top:12px}.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder{display:flex;flex-direction:column;height:28px;justify-content:space-around;margin-top:12px;padding-top:0}.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder:after,.block-editor-link-control__search-item .block-editor-link-control__search-item-description.is-placeholder:before{background-color:#f0f0f0;border-radius:3px;content:"";display:block;height:.7em;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-description .components-text{font-size:.9em}.block-editor-link-control__search-item .block-editor-link-control__search-item-image{background-color:#f0f0f0;border-radius:2px;display:flex;height:140px;justify-content:center;margin-top:12px;max-height:140px;overflow:hidden;width:100%}.block-editor-link-control__search-item .block-editor-link-control__search-item-image.is-placeholder{background-color:#f0f0f0;border-radius:3px}.block-editor-link-control__search-item .block-editor-link-control__search-item-image img{display:block;height:140px;max-height:140px;max-width:100%}.block-editor-link-control__search-item-top{display:flex;flex-direction:row;width:100%}.block-editor-link-control__search-item-bottom{transition:opacity 1.5s;width:100%}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-description:after,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-description:before,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-image{animation:loadingpulse 1s linear infinite;animation-delay:.5s}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon img,.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon svg{opacity:0}.block-editor-link-control__search-item.is-fetching .block-editor-link-control__search-item-icon:before{animation:loadingpulse 1s linear infinite;animation-delay:.5s;background-color:#f0f0f0;border-radius:100%;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}.block-editor-link-control__loading{align-items:center;display:flex;margin:16px}.block-editor-link-control__loading .components-spinner{margin-top:0}.components-button+.block-editor-link-control__search-create{overflow:visible;padding:12px 16px}.components-button+.block-editor-link-control__search-create:before{content:"";display:block;left:0;position:absolute;top:-10px;width:100%}.block-editor-link-control__search-create{align-items:center}.block-editor-link-control__search-create .block-editor-link-control__search-item-title{margin-bottom:0}.block-editor-link-control__search-create .block-editor-link-control__search-item-icon{top:0}.block-editor-link-control__drawer{display:flex;flex-basis:100%;flex-direction:column;order:30}.block-editor-link-control__drawer-inner{display:flex;flex-basis:100%;flex-direction:column;position:relative}.block-editor-link-control__unlink{padding-left:16px;padding-right:16px}.block-editor-link-control__setting{flex:1;margin-bottom:16px;padding:8px 0 8px 24px}.block-editor-link-control__setting input{margin-left:0}.block-editor-link-control__setting.block-editor-link-control__setting:last-child{margin-bottom:0}.block-editor-link-control__tools{margin-top:-16px;padding:8px 8px 0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle{gap:0;padding-left:0}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transform:rotate(90deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=true] svg{transition-delay:0s;transition-duration:0s}}.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transform:rotate(0deg);transition:transform .1s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-link-control__tools .components-button.block-editor-link-control__drawer-toggle[aria-expanded=false] svg{transition-delay:0s;transition-duration:0s}}.block-editor-link-control .block-editor-link-control__search-input .components-spinner{display:block}.block-editor-link-control .block-editor-link-control__search-input .components-spinner.components-spinner{bottom:auto;left:auto;position:absolute;right:16px;top:calc(50% - 8px)}.block-editor-link-control__search-item-action{flex-shrink:0;margin-left:auto}.block-editor-list-view-tree{border-collapse:collapse;margin:0;padding:0;width:100%}.components-modal__content .block-editor-list-view-tree{margin:-12px -6px 0;width:calc(100% + 12px)}.block-editor-list-view-leaf{position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button[aria-expanded=true]{color:inherit}.block-editor-list-view-leaf .block-editor-list-view-block-select-button:hover{color:var(--wp-admin-theme-color)}.is-dragging-components-draggable .block-editor-list-view-leaf:not(.is-selected) .block-editor-list-view-block-select-button:hover{color:inherit}.block-editor-list-view-leaf.is-selected td{background:var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced td{background:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents .block-editor-block-icon,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus,.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:hover{color:var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-synced:not(.is-selected) .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents,.block-editor-list-view-leaf.is-selected .components-button.has-icon{color:#fff}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.block-editor-list-view-leaf.is-selected.is-synced .block-editor-list-view-block-contents:focus:after{box-shadow:inset 0 0 0 1px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-block-synced-color)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #fff}.block-editor-list-view-leaf.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:rgba(var(--wp-admin-theme-color--rgb),.04)}.block-editor-list-view-leaf.is-synced-branch.is-branch-selected{background:rgba(var(--wp-block-synced-color--rgb),.04)}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf.is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:first-child{border-top-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-first-selected td:last-child{border-top-right-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:first-child{border-bottom-left-radius:2px}.block-editor-list-view-leaf[data-expanded=false].is-branch-selected.is-last-selected td:last-child{border-bottom-right-radius:2px}.block-editor-list-view-leaf.is-branch-selected:not(.is-selected) td{border-radius:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents{align-items:center;border-radius:2px;display:flex;height:auto;padding:6px 4px 6px 0;position:relative;text-align:left;white-space:nowrap;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-contents.is-dropping-before:before{border-top:4px solid var(--wp-admin-theme-color);content:"";left:0;pointer-events:none;position:absolute;right:0;top:-2px;transition:border-color .1s linear,border-style .1s linear,box-shadow .1s linear}.components-modal__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{padding-left:0;padding-right:0}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus{box-shadow:none}.block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after{border-radius:inherit;bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";left:0;pointer-events:none;position:absolute;right:-29px;top:0;z-index:2}.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after{box-shadow:none}.block-editor-list-view-leaf.has-single-cell .block-editor-list-view-block-contents:focus:after{right:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);z-index:1}.is-dragging-components-draggable .block-editor-list-view-leaf .block-editor-list-view-block__menu:focus{box-shadow:none}.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation:edit-post__fade-in-animation .2s ease-out 0s;animation-fill-mode:forwards;opacity:1}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf.is-visible .block-editor-list-view-block-contents{animation-delay:0s;animation-duration:1ms}}.block-editor-list-view-leaf .block-editor-block-icon{flex:0 0 24px;margin-right:8px}.block-editor-list-view-leaf .block-editor-list-view-block__contents-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{padding-bottom:0;padding-top:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell{line-height:0;vertical-align:middle;width:36px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell>*{opacity:0}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell:hover>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell.is-visible>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:focus-within>*,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell:hover>*{opacity:1}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell,.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell,.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell .components-button.has-icon{min-width:24px;padding:0;width:24px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell{padding-right:4px}.block-editor-list-view-leaf .block-editor-list-view-block__menu-cell .components-button.has-icon{height:24px}.block-editor-list-view-leaf .block-editor-list-view-block__mover-cell-alignment-wrapper{align-items:center;display:flex;flex-direction:column;height:100%}.block-editor-list-view-leaf .block-editor-block-mover-button{height:24px;position:relative;width:36px}.block-editor-list-view-leaf .block-editor-block-mover-button svg{height:24px;position:relative}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button{align-items:flex-end;margin-top:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-up-button svg{bottom:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button{align-items:flex-start;margin-bottom:-6px}.block-editor-list-view-leaf .block-editor-block-mover-button.is-down-button svg{top:-4px}.block-editor-list-view-leaf .block-editor-block-mover-button:before{height:16px;left:0;min-width:100%;right:0}.block-editor-list-view-leaf .block-editor-inserter__toggle{background:#1e1e1e;color:#fff;height:24px;margin:6px 6px 6px 1px;min-width:24px}.block-editor-list-view-leaf .block-editor-inserter__toggle:active{color:#fff}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__label-wrapper{min-width:120px}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title{flex:1;position:relative}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__title .components-truncate{position:absolute;transform:translateY(-50%);width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor-wrapper{max-width:min(110px,40%);position:relative;width:100%}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__anchor{background:rgba(0,0,0,.1);border-radius:2px;box-sizing:border-box;max-width:100%;padding:2px 6px;position:absolute;right:0;transform:translateY(-50%)}.block-editor-list-view-leaf.is-selected .block-editor-list-view-block-select-button__anchor{background:rgba(0,0,0,.3)}.block-editor-list-view-leaf .block-editor-list-view-block-select-button__lock,.block-editor-list-view-leaf .block-editor-list-view-block-select-button__sticky{line-height:0}.block-editor-list-view-appender__cell .block-editor-list-view-appender__container,.block-editor-list-view-appender__cell .block-editor-list-view-block__contents-container,.block-editor-list-view-block__contents-cell .block-editor-list-view-appender__container,.block-editor-list-view-block__contents-cell .block-editor-list-view-block__contents-container{display:flex}.block-editor-list-view__expander{height:24px;margin-left:4px;width:24px}.block-editor-list-view-leaf[aria-level] .block-editor-list-view__expander{margin-left:220px}.block-editor-list-view-leaf:not([aria-level="1"]) .block-editor-list-view__expander{margin-right:4px}.block-editor-list-view-leaf[aria-level="1"] .block-editor-list-view__expander{margin-left:0}.block-editor-list-view-leaf[aria-level="2"] .block-editor-list-view__expander{margin-left:24px}.block-editor-list-view-leaf[aria-level="3"] .block-editor-list-view__expander{margin-left:52px}.block-editor-list-view-leaf[aria-level="4"] .block-editor-list-view__expander{margin-left:80px}.block-editor-list-view-leaf[aria-level="5"] .block-editor-list-view__expander{margin-left:108px}.block-editor-list-view-leaf[aria-level="6"] .block-editor-list-view__expander{margin-left:136px}.block-editor-list-view-leaf[aria-level="7"] .block-editor-list-view__expander{margin-left:164px}.block-editor-list-view-leaf[aria-level="8"] .block-editor-list-view__expander{margin-left:192px}.block-editor-list-view-leaf .block-editor-list-view__expander{visibility:hidden}.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transform:rotate(90deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=true] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transform:rotate(0deg);transition:transform .2s ease;visibility:visible}@media (prefers-reduced-motion:reduce){.block-editor-list-view-leaf[data-expanded=false] .block-editor-list-view__expander svg{transition-delay:0s;transition-duration:0s}}.block-editor-list-view-drop-indicator{pointer-events:none}.block-editor-list-view-drop-indicator .block-editor-list-view-drop-indicator__line{background:var(--wp-admin-theme-color);border-radius:4px;height:4px}.block-editor-list-view-placeholder{height:36px;margin:0;padding:0}.list-view-appender .block-editor-inserter__toggle{background-color:#1e1e1e;border-radius:2px;color:#fff;height:24px;margin:8px 0 0 24px;min-width:24px;padding:0}.list-view-appender .block-editor-inserter__toggle:focus,.list-view-appender .block-editor-inserter__toggle:hover{background:var(--wp-admin-theme-color);color:#fff}.list-view-appender__description,.modal-open .block-editor-media-replace-flow__options{display:none}.block-editor-media-replace-flow__indicator{margin-left:4px}.block-editor-media-flow__url-input{margin-left:-8px;margin-right:-8px;padding:16px}.block-editor-media-flow__url-input.has-siblings{border-top:1px solid #1e1e1e;margin-top:8px}.block-editor-media-flow__url-input .block-editor-media-replace-flow__image-url-label{display:block;margin-bottom:8px;top:16px}.block-editor-media-flow__url-input .block-editor-link-control{width:300px}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-url-input{margin:0;padding:0}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-info,.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item-title{max-width:200px;white-space:nowrap}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__tools{justify-content:flex-end;padding:16px var(--wp-admin-border-width-focus) var(--wp-admin-border-width-focus)}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-item.is-current{padding:0;width:auto}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-input.block-editor-link-control__search-input input[type=text]{margin:0;width:100%}.block-editor-media-flow__url-input .block-editor-link-control .block-editor-link-control__search-actions{right:4px;top:0}.block-editor-media-flow__error{max-width:255px;padding:0 20px 20px}.block-editor-media-flow__error .components-with-notices-ui{max-width:255px}.block-editor-media-flow__error .components-with-notices-ui .components-notice__content{word-wrap:break-word;overflow:hidden}.block-editor-media-flow__error .components-with-notices-ui .components-notice__dismiss{position:absolute;right:10px}.block-editor-multi-selection-inspector__card{align-items:flex-start;display:flex;padding:16px}.block-editor-multi-selection-inspector__card-content{flex-grow:1}.block-editor-multi-selection-inspector__card-title{font-weight:500;margin-bottom:5px}.block-editor-multi-selection-inspector__card-description{font-size:13px}.block-editor-multi-selection-inspector__card .block-editor-block-icon{height:24px;margin-left:-2px;margin-right:10px;padding:0 3px;width:36px}.block-editor-responsive-block-control{border-bottom:1px solid #ccc;margin-bottom:28px;padding-bottom:14px}.block-editor-responsive-block-control:last-child{border-bottom:0;padding-bottom:0}.block-editor-responsive-block-control__title{margin:0 0 .6em -3px}.block-editor-responsive-block-control__label{font-weight:600;margin-bottom:.6em;margin-left:-3px}.block-editor-responsive-block-control__inner{margin-left:-1px}.block-editor-responsive-block-control__toggle{margin-left:1px}.block-editor-responsive-block-control .components-base-control__help{clip:rect(1px,1px,1px,1px);word-wrap:normal!important;border:0;-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.components-popover.block-editor-rich-text__inline-format-toolbar{z-index:99998}.components-popover.block-editor-rich-text__inline-format-toolbar .components-popover__content{box-shadow:none;margin-bottom:8px;min-width:auto;outline:none;width:auto}.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar{border-radius:2px}.components-popover.block-editor-rich-text__inline-format-toolbar .components-dropdown-menu__toggle,.components-popover.block-editor-rich-text__inline-format-toolbar .components-toolbar__control{min-height:48px;min-width:48px;padding-left:12px;padding-right:12px}.block-editor-rich-text__inline-format-toolbar-group .components-dropdown-menu__toggle{justify-content:center}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon{width:auto}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button.has-icon:after{content:attr(aria-label)}.block-editor-skip-to-selected-block{position:absolute;top:-9999em}.block-editor-skip-to-selected-block:focus{background:#f1f1f1;box-shadow:0 0 2px 2px rgba(0,0,0,.6);color:var(--wp-admin-theme-color);display:block;font-size:14px;font-weight:600;height:auto;line-height:normal;outline:none;padding:15px 23px 14px;text-decoration:none;width:auto;z-index:100000}.block-editor-text-decoration-control{border:0;margin:0;padding:0}.block-editor-text-decoration-control .block-editor-text-decoration-control__buttons{display:flex;padding:4px 0}.block-editor-text-decoration-control .components-button.has-icon{height:32px;margin-right:4px;min-width:32px;padding:0}.block-editor-text-transform-control{border:0;margin:0;padding:0}.block-editor-text-transform-control .block-editor-text-transform-control__buttons{display:flex;padding:4px 0}.block-editor-text-transform-control .components-button.has-icon{height:32px;margin-right:4px;min-width:32px;padding:0}.block-editor-tool-selector__help{border-top:1px solid #ddd;color:#757575;margin:8px -8px -8px;min-width:280px;padding:16px}.block-editor-block-list__block .block-editor-url-input,.block-editor-url-input,.components-popover .block-editor-url-input{flex-grow:1;padding:1px;position:relative}.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{border:none;border-radius:0;font-size:16px;margin-left:0;margin-right:0;padding:8px 8px 8px 12px;width:100%}@media (min-width:600px){.block-editor-block-list__block .block-editor-url-input input[type=text],.block-editor-url-input input[type=text],.components-popover .block-editor-url-input input[type=text]{font-size:13px;width:300px}}.block-editor-block-list__block .block-editor-url-input input[type=text]::-ms-clear,.block-editor-url-input input[type=text]::-ms-clear,.components-popover .block-editor-url-input input[type=text]::-ms-clear{display:none}.block-editor-block-list__block .block-editor-url-input.is-full-width,.block-editor-block-list__block .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-block-list__block .block-editor-url-input.is-full-width__suggestions,.block-editor-url-input.is-full-width,.block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.block-editor-url-input.is-full-width__suggestions,.components-popover .block-editor-url-input.is-full-width,.components-popover .block-editor-url-input.is-full-width .block-editor-url-input__input[type=text],.components-popover .block-editor-url-input.is-full-width__suggestions{width:100%}.block-editor-block-list__block .block-editor-url-input .components-spinner,.block-editor-url-input .components-spinner,.components-popover .block-editor-url-input .components-spinner{margin:0;position:absolute;right:8px;top:calc(50% - 8px)}.block-editor-url-input__input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;padding:6px 8px;transition:box-shadow .1s linear}@media (prefers-reduced-motion:reduce){.block-editor-url-input__input[type=text]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-url-input__input[type=text]{font-size:13px;line-height:normal}}.block-editor-url-input__input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-url-input__input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__input[type=text]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.block-editor-url-input__input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.block-editor-url-input__suggestions{max-height:200px;overflow-y:auto;padding:4px 0;transition:all .15s ease-in-out;width:302px}@media (prefers-reduced-motion:reduce){.block-editor-url-input__suggestions{transition-delay:0s;transition-duration:0s}}.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:none}@media (min-width:600px){.block-editor-url-input .components-spinner,.block-editor-url-input__suggestions{display:grid}}.block-editor-url-input__suggestion{background:#fff;border:none;box-shadow:none;color:#757575;cursor:pointer;display:block;font-size:13px;height:auto;min-height:36px;text-align:left;width:100%}.block-editor-url-input__suggestion:hover{background:#ddd}.block-editor-url-input__suggestion.is-selected,.block-editor-url-input__suggestion:focus{background:var(--wp-admin-theme-color-darker-20);color:#fff;outline:none}.components-toolbar-group>.block-editor-url-input__button,.components-toolbar>.block-editor-url-input__button{position:inherit}.block-editor-url-input__button .block-editor-url-input__back{margin-right:4px;overflow:visible}.block-editor-url-input__button .block-editor-url-input__back:after{background:#ddd;content:"";display:block;height:24px;position:absolute;right:-1px;width:1px}.block-editor-url-input__button-modal{background:#fff;border:1px solid #ddd;box-shadow:0 .7px 1px rgba(0,0,0,.1),0 1.2px 1.7px -.2px rgba(0,0,0,.1),0 2.3px 3.3px -.5px rgba(0,0,0,.1)}.block-editor-url-input__button-modal-line{align-items:flex-start;display:flex;flex-direction:row;flex-grow:1;flex-shrink:1;min-width:0}.block-editor-url-input__button-modal-line .components-button{flex-shrink:0;height:36px;width:36px}.block-editor-url-popover__additional-controls{border-top:1px solid #ddd}.block-editor-url-popover__additional-controls>div[role=menu] .components-button:not(:disabled):not([aria-disabled=true]):not(.is-secondary)>svg{box-shadow:none}.block-editor-url-popover__additional-controls div[role=menu]>.components-button{padding-left:12px}.block-editor-url-popover__row{display:flex}.block-editor-url-popover__row>:not(.block-editor-url-popover__settings-toggle){flex-grow:1}.block-editor-url-popover .components-button.has-icon{padding:3px}.block-editor-url-popover .components-button.has-icon>svg{border-radius:2px;height:30px;padding:5px;width:30px}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus{box-shadow:none}.block-editor-url-popover .components-button.has-icon:not(:disabled):focus>svg{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 4px #fff;outline:2px solid transparent}.block-editor-url-popover__settings-toggle{border-left:1px solid #ddd;border-radius:0;flex-shrink:0;margin-left:1px}.block-editor-url-popover__settings-toggle[aria-expanded=true] .dashicon{transform:rotate(180deg)}.block-editor-url-popover__settings{border-top:1px solid #ddd;display:block;padding:16px}.block-editor-url-popover__link-editor,.block-editor-url-popover__link-viewer{display:flex}.block-editor-url-popover__link-viewer-url{flex-grow:1;flex-shrink:1;margin:7px;max-width:500px;min-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-editor-url-popover__link-viewer-url.has-invalid-link{color:#cc1818}.html-anchor-control .components-external-link{display:block;margin-top:8px}.border-block-support-panel .single-column{grid-column:span 1}.color-block-support-panel .block-editor-contrast-checker{grid-column:span 2;margin-top:16px;order:9999}.color-block-support-panel .block-editor-contrast-checker .components-notice__content{margin-right:0}.color-block-support-panel.color-block-support-panel .color-block-support-panel__inner-wrapper{row-gap:0}.color-block-support-panel .block-editor-tools-panel-color-gradient-settings__item.first{margin-top:0}.dimensions-block-support-panel .single-column{grid-column:span 1}.block-editor-hooks__layout-controls{display:flex;margin-bottom:8px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit{display:flex;margin-right:24px}.block-editor-hooks__layout-controls .block-editor-hooks__layout-controls-unit svg{margin:auto 0 4px 8px}.block-editor-block-inspector .block-editor-hooks__layout-controls-unit-input{margin-bottom:0}.block-editor-hooks__layout-controls-reset{display:flex;justify-content:flex-end;margin-bottom:24px}.block-editor-hooks__layout-controls-helptext{color:#757575;font-size:12px;margin-bottom:16px}.block-editor-hooks__flex-layout-justification-controls,.block-editor-hooks__flex-layout-orientation-controls{margin-bottom:12px}.block-editor-hooks__flex-layout-justification-controls legend,.block-editor-hooks__flex-layout-orientation-controls legend{margin-bottom:8px}.block-editor-hooks__toggle-control.block-editor-hooks__toggle-control{margin-bottom:16px}.block-editor__padding-visualizer{border-color:var(--wp-admin-theme-color);border-style:solid;bottom:0;box-sizing:border-box;left:0;opacity:.5;pointer-events:none;position:absolute;right:0;top:0}.block-editor-hooks__position-selection__select-control .components-custom-select-control__hint{display:none}.block-editor-hooks__position-selection__select-control__option.has-hint{grid-template-columns:auto 30px;line-height:1.4;margin-bottom:0}.block-editor-hooks__position-selection__select-control__option .components-custom-select-control__item-hint{grid-row:2;text-align:left}.typography-block-support-panel .single-column{grid-column:span 1}.block-editor-block-toolbar{display:flex;flex-grow:1;overflow-x:auto;overflow-y:hidden;position:relative;transition:border-color .1s linear,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.block-editor-block-toolbar{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.block-editor-block-toolbar{overflow:inherit}}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group{background:none;border:0;border-right:1px solid #ddd;line-height:0;margin-bottom:-1px;margin-top:-1px}.block-editor-block-toolbar.is-synced .block-editor-block-switcher .components-button .block-editor-block-icon,.block-editor-block-toolbar.is-synced .components-toolbar-button.block-editor-block-switcher__no-switcher-icon:disabled .block-editor-block-icon.has-colors{color:var(--wp-block-synced-color)}.block-editor-block-toolbar>:last-child,.block-editor-block-toolbar>:last-child .components-toolbar,.block-editor-block-toolbar>:last-child .components-toolbar-group{border-right:none}@media (min-width:782px){.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group{border-right:none}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar:after{background-color:#ddd;content:"";margin-bottom:12px;margin-left:8px;margin-top:12px;width:1px}.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar .components-toolbar-group.components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar .components-toolbar-group .components-toolbar-group.components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar>:last-child .components-toolbar-group:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar>:last-child .components-toolbar:after,.block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar>:last-child:after{display:none}}.block-editor-block-contextual-toolbar.has-parent:not(.is-fixed){margin-left:56px}.show-icon-labels .block-editor-block-contextual-toolbar.has-parent:not(.is-fixed){margin-left:0}.block-editor-block-toolbar__block-controls .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.block-editor-block-toolbar__block-controls .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{margin:0!important;width:24px!important}.block-editor-block-toolbar__block-controls .components-toolbar-group{padding:0}.block-editor-block-toolbar .components-toolbar,.block-editor-block-toolbar .components-toolbar-group,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar,.block-editor-rich-text__inline-format-toolbar-group .components-toolbar-group{display:flex;flex-wrap:nowrap}.block-editor-block-toolbar__slot{display:inline-block;line-height:0}@supports (position:sticky){.block-editor-block-toolbar__slot{display:inline-flex}}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon{width:auto}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon svg{display:none}.show-icon-labels .block-editor-block-toolbar .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.show-icon-labels .components-accessible-toolbar .components-toolbar-group>div:first-child:last-child>.components-button.has-icon{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-switcher .components-dropdown-menu__toggle .block-editor-block-icon,.show-icon-labels .block-editor-block-switcher__no-switcher-icon .block-editor-block-icon{height:0!important;min-width:0!important;width:0!important}.show-icon-labels .block-editor-block-parent-selector__button{border-bottom-right-radius:0;border-top-right-radius:0}.show-icon-labels .block-editor-block-parent-selector__button .block-editor-block-icon{width:0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__move-button-container{width:auto}.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover-button,.show-icon-labels .block-editor-block-mover.is-horizontal .block-editor-block-mover__move-button-container{padding-left:6px;padding-right:6px}.show-icon-labels .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover-button{padding-left:8px;padding-right:8px}.show-icon-labels .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left:1px solid #1e1e1e;margin-left:6px;margin-right:-6px;white-space:nowrap}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-toolbar__block-controls .block-editor-block-mover{border-left-color:#e0e0e0}.show-icon-labels .block-editor-block-mover .block-editor-block-mover__drag-handle.has-icon{padding-left:12px;padding-right:12px}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-mover__move-button-container{border-width:0}@media (min-width:600px){.show-icon-labels .is-up-button.is-up-button.is-up-button{border-radius:0;margin-right:0;order:1}.show-icon-labels .block-editor-block-mover__move-button-container{border-left:1px solid #1e1e1e}.show-icon-labels .is-down-button.is-down-button.is-down-button{order:2}.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .block-editor-block-mover__move-button-container:before{background:#ddd}}.show-icon-labels .block-editor-block-contextual-toolbar .block-editor-block-mover.is-horizontal .block-editor-block-mover-button.block-editor-block-mover-button{width:auto}.show-icon-labels .components-toolbar,.show-icon-labels .components-toolbar-group{flex-shrink:1}@media (min-width:782px){.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .components-toolbar,.show-icon-labels .block-editor-block-contextual-toolbar.is-fixed .components-toolbar-group{flex-shrink:0}}.show-icon-labels .block-editor-rich-text__inline-format-toolbar-group .components-button+.components-button{margin-left:6px}.block-editor-inserter{background:none;border:none;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;line-height:0;padding:0}@media (min-width:782px){.block-editor-inserter{position:relative}}.block-editor-inserter__main-area{display:flex;flex-direction:column;gap:16px;height:100%;position:relative}.block-editor-inserter__main-area.show-as-tabs{gap:0}@media (min-width:782px){.block-editor-inserter__main-area{width:350px}}.block-editor-inserter__popover.is-quick .components-popover__content{border:none;box-shadow:0 .7px 1px rgba(0,0,0,.1),0 1.2px 1.7px -.2px rgba(0,0,0,.1),0 2.3px 3.3px -.5px rgba(0,0,0,.1);outline:none}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>*{border-left:1px solid #ccc;border-right:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:first-child{border-radius:2px 2px 0 0;border-top:1px solid #ccc}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>:last-child{border-bottom:1px solid #ccc;border-radius:0 0 2px 2px}.block-editor-inserter__popover.is-quick .components-popover__content .block-editor-inserter__quick-inserter>.components-button{border:1px solid #1e1e1e}.block-editor-inserter__popover .block-editor-inserter__menu{margin:-12px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__tabs .components-tab-panel__tabs{top:60px}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__main-area{height:auto;overflow:visible}.block-editor-inserter__popover .block-editor-inserter__menu .block-editor-inserter__preview-container{display:none}.block-editor-inserter__toggle.components-button{align-items:center;border:none;cursor:pointer;display:inline-flex;outline:none;padding:0;transition:color .2s ease}@media (prefers-reduced-motion:reduce){.block-editor-inserter__toggle.components-button{transition-delay:0s;transition-duration:0s}}.block-editor-inserter__menu{height:100%;overflow:visible;position:relative}.block-editor-inserter__inline-elements{margin-top:-1px}.block-editor-inserter__menu.is-bottom:after{border-bottom-color:#fff}.components-popover.block-editor-inserter__popover{z-index:99999}.block-editor-inserter__search{padding:16px 16px 0}.block-editor-inserter__search .components-search-control__icon{right:20px}.block-editor-inserter__tabs{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.block-editor-inserter__tabs .components-tab-panel__tabs{border-bottom:1px solid #ddd}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{flex-grow:1;margin-bottom:-1px}.block-editor-inserter__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item[id$=reusable]{flex-grow:inherit;padding-left:16px;padding-right:16px}.block-editor-inserter__tabs .components-tab-panel__tab-content{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto}.block-editor-inserter__no-tab-container{flex-grow:1;overflow-y:auto}.block-editor-inserter__panel-header{align-items:center;display:inline-flex;padding:16px 16px 0}.block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__panel-title,.block-editor-inserter__panel-title button{color:#757575;font-size:11px;font-weight:500;margin:0 12px 0 0;text-transform:uppercase}.block-editor-inserter__panel-dropdown select.components-select-control__input.components-select-control__input.components-select-control__input{height:36px;line-height:36px}.block-editor-inserter__panel-dropdown select{border:none}.block-editor-inserter__reusable-blocks-panel{position:relative;text-align:right}.block-editor-inserter__manage-reusable-blocks-container{margin:auto 16px 16px}.block-editor-inserter__manage-reusable-blocks{justify-content:center;width:100%}.block-editor-inserter__no-results{padding:32px;text-align:center}.block-editor-inserter__no-results-icon{fill:#949494}.block-editor-inserter__child-blocks{padding:0 16px}.block-editor-inserter__parent-block-header{align-items:center;display:flex}.block-editor-inserter__parent-block-header h2{font-size:13px}.block-editor-inserter__parent-block-header .block-editor-block-icon{margin-right:8px}.block-editor-inserter__preview-container{background:#fff;border:1px solid #ddd;border-radius:2px;display:none;left:calc(100% + 16px);max-height:calc(100% - 32px);overflow-y:hidden;position:absolute;top:16px;width:300px}@media (min-width:782px){.block-editor-inserter__preview-container{display:block}}.block-editor-inserter__preview-container .block-editor-block-card{padding:16px}.block-editor-inserter__preview-container .block-editor-block-card__title{font-size:13px}.block-editor-inserter__patterns-explore-button.components-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category{color:var(--wp-admin-theme-color);position:relative}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category .components-flex-item{filter:brightness(.95)}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__patterns-selected-category.block-editor-inserter__patterns-selected-category:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;position:absolute;right:0;top:0}.block-editor-inserter__block-patterns-tabs-container,.block-editor-inserter__block-patterns-tabs-container nav{height:100%}.block-editor-inserter__block-patterns-tabs{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:16px}.block-editor-inserter__block-patterns-tabs div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__patterns-category-dialog{background:#f0f0f0;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;height:100%;left:0;overflow-y:auto;padding:32px 24px;position:absolute;scrollbar-gutter:stable both-edges;top:0;width:100%}@media (min-width:782px){.block-editor-inserter__patterns-category-dialog{display:block;left:100%;width:300px}}.block-editor-inserter__patterns-category-dialog .block-editor-block-patterns-list{margin-top:24px}.block-editor-inserter__patterns-category-dialog .block-editor-block-preview__container{box-shadow:0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__patterns-category-dialog .block-editor-block-preview__container:hover{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__patterns-category-panel{padding:0 16px}@media (min-width:782px){.block-editor-inserter__patterns-category-panel{padding:0}}.block-editor-inserter__preview-content{align-items:center;background:#f0f0f0;display:grid;flex-grow:1;min-height:144px}.block-editor-inserter__preview-content-missing{align-items:center;background:#f0f0f0;color:#757575;display:flex;flex:1;justify-content:center;min-height:144px}.block-editor-inserter__tips{border-top:1px solid #ddd;flex-shrink:0;padding:16px;position:relative}.block-editor-inserter__quick-inserter{max-width:100%;width:100%}@media (min-width:782px){.block-editor-inserter__quick-inserter{width:350px}}.block-editor-inserter__quick-inserter-results .block-editor-inserter__panel-header{float:left;height:0;padding:0}.block-editor-inserter__quick-inserter.has-expand .block-editor-inserter__panel-content,.block-editor-inserter__quick-inserter.has-search .block-editor-inserter__panel-content{padding:16px}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list{grid-gap:8px;display:grid;grid-template-columns:1fr 1fr}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{margin-bottom:0}.block-editor-inserter__quick-inserter-patterns .block-editor-block-patterns-list .block-editor-block-preview__container{min-height:100px}.block-editor-inserter__quick-inserter-separator{border-top:1px solid #ddd}.block-editor-inserter__popover.is-quick>.components-popover__content{padding:0}.block-editor-inserter__quick-inserter-expand.components-button{background:#1e1e1e;border-radius:0;color:#fff;display:block;height:44px;width:100%}.block-editor-inserter__quick-inserter-expand.components-button:hover{color:#fff}.block-editor-inserter__quick-inserter-expand.components-button:active{color:#ccc}.block-editor-inserter__quick-inserter-expand.components-button.components-button:focus:not(:disabled){background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color);box-shadow:none}.block-editor-block-patterns-explorer__sidebar{bottom:0;left:0;overflow-x:visible;overflow-y:scroll;padding:24px 32px 32px;position:absolute;top:76px;width:280px}.block-editor-block-patterns-explorer__sidebar__categories-list__item{display:block;height:48px;text-align:left;width:100%}.block-editor-block-patterns-explorer__search{margin-bottom:32px}.block-editor-block-patterns-explorer__search-results-count{padding-bottom:32px}.block-editor-block-patterns-explorer__list{margin-left:280px;padding:24px 0 32px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-gap:32px;display:grid;grid-template-columns:repeat(1,1fr)}@media (min-width:1080px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.block-editor-block-patterns-explorer .block-editor-block-patterns-list{grid-template-columns:repeat(3,1fr)}}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{min-height:240px}.block-editor-block-patterns-explorer .block-editor-block-patterns-list .block-editor-block-preview__container{height:inherit;max-height:800px;min-height:100px}.block-editor-inserter__patterns-category-panel-title{font-size:16.25px}.block-editor-inserter__media-tabs-container,.block-editor-inserter__media-tabs-container nav{height:100%}.block-editor-inserter__media-tabs-container .block-editor-inserter__media-library-button{justify-content:center;margin-top:16px;padding:16px;width:100%}.block-editor-inserter__media-tabs{display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:16px}.block-editor-inserter__media-tabs div[role=listitem]:last-child{margin-top:auto}.block-editor-inserter__media-tabs__media-category.is-selected{color:var(--wp-admin-theme-color);position:relative}.block-editor-inserter__media-tabs__media-category.is-selected .components-flex-item{filter:brightness(.95)}.block-editor-inserter__media-tabs__media-category.is-selected svg{fill:var(--wp-admin-theme-color)}.block-editor-inserter__media-tabs__media-category.is-selected:after{background:var(--wp-admin-theme-color);border-radius:2px;bottom:0;content:"";left:0;opacity:.04;position:absolute;right:0;top:0}.block-editor-inserter__media-dialog{background:#f0f0f0;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0;height:100%;left:0;overflow-y:auto;padding:16px 24px;position:absolute;scrollbar-gutter:stable both-edges;top:0;width:100%}@media (min-width:782px){.block-editor-inserter__media-dialog{display:block;left:100%;width:300px}}.block-editor-inserter__media-dialog .block-editor-block-preview__container{box-shadow:0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__media-dialog .block-editor-block-preview__container:hover{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__media-panel{display:flex;flex-direction:column;min-height:100%;padding:0 16px}@media (min-width:782px){.block-editor-inserter__media-panel{padding:0}}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-spinner{align-items:center;display:flex;flex:1;height:100%;justify-content:center}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search.components-search-control input[type=search].components-search-control__input{background:#fff}.block-editor-inserter__media-panel .block-editor-inserter__media-panel-search.components-search-control button.components-button{min-width:auto;padding-left:2px;padding-right:2px}.block-editor-inserter__media-list{margin-top:16px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item{cursor:pointer;margin-bottom:24px;position:relative}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-placeholder{min-height:100px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item[draggable=true] .block-editor-block-preview__container{cursor:grab}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview{box-shadow:0 0 0 2px #1e1e1e,0 15px 25px rgba(0,0,0,.07)}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item.is-hovered .block-editor-inserter__media-list__item-preview-options>button{display:block}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options{position:absolute;right:8px;top:8px}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button{background:#fff;border-radius:2px;display:none}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button.is-opened,.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:focus{display:block}.block-editor-inserter__media-list .block-editor-inserter__media-list__list-item .block-editor-inserter__media-list__item-preview-options>button:hover{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list .block-editor-inserter__media-list__item{height:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview{align-items:center;border-radius:2px;display:flex;overflow:hidden}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview>*{margin:0 auto;max-width:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item .block-editor-inserter__media-list__item-preview .block-editor-inserter__media-list__item-preview-spinner{align-items:center;background:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;pointer-events:none;position:absolute;width:100%}.block-editor-inserter__media-list .block-editor-inserter__media-list__item:focus .block-editor-inserter__media-list__item-preview{box-shadow:inset 0 0 0 2px #fff,0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.block-editor-inserter__media-list__item-preview-options__popover .components-menu-item__button .components-menu-item__item{min-width:auto}.block-editor-inserter__mobile-tab-navigation{height:100%;padding:16px}.block-editor-inserter__mobile-tab-navigation>*{height:100%}@media (min-width:600px){.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal{max-width:480px}}.block-editor-inserter-media-tab-media-preview-inserter-external-image-modal p{margin:0}.block-editor-inserter__hint{margin:16px 16px 0}.reusable-blocks-menu-items__rename-hint{align-items:top;background:#f0f0f0;border-radius:2px;color:#1e1e1e;display:flex;flex-direction:row;max-width:380px}.reusable-blocks-menu-items__rename-hint-content{margin:12px 0 12px 12px}.reusable-blocks-menu-items__rename-hint-dismiss{margin:4px 4px 4px 0}.components-menu-group .reusable-blocks-menu-items__rename-hint{margin:0}.block-editor-post-preview__dropdown{padding:0}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize{padding-left:40px}.block-editor-post-preview__button-resize.block-editor-post-preview__button-resize.has-icon{padding-left:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:first-child{padding-bottom:8px}.block-editor-post-preview__dropdown-content.edit-post-post-preview-dropdown .components-menu-group:last-child{margin-bottom:0}.block-editor-post-preview__dropdown-content .components-menu-group+.components-menu-group{padding:8px}@media (min-width:600px){.edit-post-header__settings .editor-post-preview,.edit-site-header-edit-mode__actions .editor-post-preview{display:none}.edit-post-header.has-reduced-ui .edit-post-header__settings .block-editor-post-preview__button-toggle,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-save-draft,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-saved-state{transition:opacity .1s linear}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.edit-post-header.has-reduced-ui .edit-post-header__settings .block-editor-post-preview__button-toggle,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-save-draft,.edit-post-header.has-reduced-ui .edit-post-header__settings .editor-post-saved-state{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .block-editor-post-preview__button-toggle,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .editor-post-save-draft,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .editor-post-saved-state{opacity:0}.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header__settings .block-editor-post-preview__button-toggle.is-opened{opacity:1}}.spacing-sizes-control .spacing-sizes-control__custom-value-input,.spacing-sizes-control .spacing-sizes-control__label{margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range,.spacing-sizes-control .spacing-sizes-control__range-control{align-items:center;display:flex;flex:1;height:40px;margin-bottom:0}.spacing-sizes-control .spacing-sizes-control__custom-value-range>.components-base-control__field,.spacing-sizes-control .spacing-sizes-control__range-control>.components-base-control__field{flex:1}.spacing-sizes-control .components-range-control__mark{background-color:#fff;height:4px;width:3px;z-index:1}.spacing-sizes-control .components-range-control__marks{margin-top:17px}.spacing-sizes-control .components-range-control__marks :first-child{display:none}.spacing-sizes-control .components-range-control__thumb-wrapper{z-index:3}.spacing-sizes-control__wrapper+.spacing-sizes-control__wrapper{margin-top:8px}.spacing-sizes-control__header{height:16px;margin-bottom:8px}.spacing-sizes-control__dropdown{height:24px}.spacing-sizes-control__custom-select-control,.spacing-sizes-control__custom-value-input{flex:1}.spacing-sizes-control__custom-toggle,.spacing-sizes-control__icon{flex:0 0 auto}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
overflow:auto;
z-index:20;
}
+@media (min-width:782px){
+ .interface-interface-skeleton__content{
+ z-index:auto;
+ }
+}
.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
background:#fff;
display:flex;
flex:1 0 auto;
flex-flow:column;
- overflow:hidden;
position:relative;
}
+.edit-post-visual-editor:not(.has-inline-canvas){
+ overflow:hidden;
+}
.edit-post-visual-editor .components-button{
font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
font-size:13px;
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-left:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{position:absolute;right:16px;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-right:160px;padding-right:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-right:48px;margin-top:0}.edit-post-header{align-items:center;background:#fff;display:flex;flex-wrap:wrap;height:60px;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports (position:sticky){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__center{display:flex;flex-grow:1;justify-content:center}.edit-post-header__settings{align-items:center;display:inline-flex;flex-wrap:wrap;gap:4px;padding-left:4px}@media (min-width:600px){.edit-post-header__settings{gap:8px;padding-left:10px}}.edit-post-header-preview__grouping-external{display:flex;padding-bottom:0;position:relative}.edit-post-header-preview__button-external{display:flex;justify-content:flex-start;margin-left:auto;padding-right:8px;width:100%}.edit-post-header-preview__button-external svg{margin-right:auto}.edit-post-post-preview-dropdown .components-popover__content{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:transparent;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.edit-post-header__dropdown .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.edit-post-header__dropdown .components-button.block-editor-list-view,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{justify-content:flex-start;margin:0;padding:6px 40px 6px 6px;text-align:right;width:14.625rem}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 8px 6px 6px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-right:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-left:8px}.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.is-distraction-free .edit-post-header{-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;background-color:hsla(0,0%,100%,.9);border-bottom:1px solid #e0e0e0;position:absolute;width:100%}.is-distraction-free .edit-post-header>.edit-post-header__settings>.editor-post-preview{visibility:hidden}.is-distraction-free .edit-post-header>.edit-post-header__settings>.block-editor-post-preview__dropdown,.is-distraction-free .edit-post-header>.edit-post-header__settings>.interface-pinned-items,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__document-overview-toggle,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__inserter-toggle{display:none}.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.edit-post-fullscreen-mode-close.components-button{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button{align-items:center;align-self:stretch;background:#1e1e1e;border:none;border-radius:0;color:#fff;display:flex;height:61px;margin-bottom:-1px;position:relative;width:60px}.edit-post-fullscreen-mode-close.components-button:active{color:#fff}.edit-post-fullscreen-mode-close.components-button:focus{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:before{border-radius:4px;bottom:10px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-fullscreen-mode-close.components-button:before{transition-delay:0s;transition-duration:0s}}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-post-fullscreen-mode-close.components-button.has-icon:hover:before{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}}.edit-post-fullscreen-mode-close.components-button .edit-post-fullscreen-mode-close_site-icon{border-radius:2px;height:36px;margin-top:-1px;object-fit:cover;width:36px}.edit-post-header-toolbar{align-items:center;border:none;display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:inline-flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-post-header-toolbar .block-editor-list-view{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-list-view{display:flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon.is-pressed,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:before,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:before{display:none}@media (min-width:600px){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition:opacity .1s linear}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{opacity:0}}.edit-post-header-toolbar__left{align-items:center;display:inline-flex;margin-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header-toolbar__left{padding-right:24px}}@media (min-width:1280px){.edit-post-header-toolbar__left{padding-left:8px}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:32px;margin-left:8px;min-width:32px;padding:0;width:32px}.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:36px;padding:0 8px;width:auto}.show-icon-labels .edit-post-header-toolbar__left>*+*{margin-right:8px}.edit-post-document-actions{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;gap:8px;height:36px;justify-content:space-between;min-width:0;width:min(100%,450px)}.edit-post-document-actions .components-button:hover{background:#e0e0e0;color:var(--wp-block-synced-color)}.edit-post-document-actions__command,.edit-post-document-actions__title{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.edit-post-document-actions__title:hover{color:var(--wp-block-synced-color)}.edit-post-document-actions__title .block-editor-block-icon{flex-shrink:0}.edit-post-document-actions__title h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-post-document-actions__shortcut{color:#2f2f2f}.edit-post-document-actions__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px}.edit-post-document-actions__back.components-button.has-icon.has-text:hover{color:currentColor}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout__metaboxes{clear:both;flex-shrink:0}.edit-post-layout .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:fixed}.is-distraction-free .components-editor-notices__snackbar{bottom:20px}.edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{right:0!important}.edit-post-layout .editor-post-publish-panel{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{animation:edit-post-post-publish-panel__slide-in-animation .1s forwards;border-right:1px solid #ddd;right:auto;top:32px;transform:translateX(-100%);width:281px;z-index:99998}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-delay:0s;animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}[role=region]:focus .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:0;padding:24px;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{bottom:0;top:auto}.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel{bottom:0;top:auto}.edit-post-layout .entities-saved-states__panel-header{height:61px}@media (min-width:782px){.edit-post-layout.has-fixed-toolbar .interface-interface-skeleton__header:not(:focus-within){z-index:19}}.edit-post-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-block-manager__search{margin:16px 0}.edit-post-block-manager__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:32px 0 0 0 #fff,-32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-1px;z-index:2}.edit-post-block-manager__disabled-blocks-count~.edit-post-block-manager__results .edit-post-block-manager__category-title{top:35px}.edit-post-block-manager__disabled-blocks-count .is-link{margin-right:12px}.edit-post-block-manager__category{margin:0 0 24px}.edit-post-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:-4px;z-index:1}.edit-post-block-manager__category-title .components-checkbox-control__label{font-weight:600}.edit-post-block-manager__checklist{margin-top:0}.edit-post-block-manager__category-title,.edit-post-block-manager__checklist-item{border-bottom:1px solid #ddd}.edit-post-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 16px 8px 0}.components-modal__content .edit-post-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-block-manager__checklist-item .block-editor-block-icon{fill:#1e1e1e;margin-left:10px}.edit-post-block-manager__results{border-top:1px solid #ddd}.edit-post-block-manager__disabled-blocks-count+.edit-post-block-manager__results{border-top-width:0}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #ddd}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .components-spinner{left:20px;position:absolute;top:10px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-editor__document-overview-panel,.edit-post-editor__inserter-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-post-editor__document-overview-panel{width:350px}}.edit-post-editor__document-overview-panel .edit-post-editor__document-overview-panel__close-button{background:#fff;left:8px;position:absolute;top:6px;z-index:1}.edit-post-editor__document-overview-panel .components-tab-panel__tabs{border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;padding-left:56px;width:100%}.edit-post-editor__document-overview-panel .components-tab-panel__tabs .edit-post-sidebar__panel-tab{width:50%}.edit-post-editor__document-overview-panel .components-tab-panel__tab-content{height:calc(100% - 48px)}.edit-post-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.edit-post-editor__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-editor__inserter-panel-content{height:100%}}.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar,.edit-post-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-track,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-track,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:transparent}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-post-editor__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-post-editor__list-view-container>.document-outline:focus,.edit-post-editor__list-view-container>.document-outline:focus-within,.edit-post-editor__list-view-container>.document-outline:hover,.edit-post-editor__list-view-empty-headings:focus,.edit-post-editor__list-view-empty-headings:focus-within,.edit-post-editor__list-view-empty-headings:hover,.edit-post-editor__list-view-panel-content:focus,.edit-post-editor__list-view-panel-content:focus-within,.edit-post-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-post-editor__list-view-empty-headings{color:#757575;text-align:center}.edit-post-editor__list-view-empty-headings>svg{margin-top:28px}.edit-post-editor__list-view-empty-headings>p{padding-left:32px;padding-right:32px}.edit-post-editor__list-view-overview{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.edit-post-editor__list-view-overview>div>span:first-child{display:inline-block;width:90px}.edit-post-editor__list-view-overview>div>span{color:#757575;font-size:12px;line-height:1.4}.edit-post-editor__list-view-container{display:flex;flex-direction:column;height:100%}.edit-post-editor__document-overview-panel__tab-panel{height:100%}.components-panel__header.edit-post-sidebar__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:16px;padding-right:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 auto 0 0;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{height:48px;padding:0}.editor-post-last-revision__title.components-button{padding:16px}.edit-post-post-author,.edit-post-post-format{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-schedule{justify-content:flex-start;position:relative;width:100%}.edit-post-post-schedule span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:right;white-space:normal}.components-button.edit-post-post-schedule__toggle span{width:0}.edit-post-post-schedule__dialog .block-editor-publish-date-time-picker{margin:8px}.edit-post-post-slug{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;text-align:center;width:100%}.edit-post-post-template{justify-content:flex-start;width:100%}.edit-post-post-template span{display:block;padding:6px 0;width:45%}.edit-post-post-template__dropdown{max-width:55%}.components-button.edit-post-post-template__toggle{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.edit-post-post-template__dialog{z-index:99999}.edit-post-post-template__form{margin:8px;min-width:248px}@media (min-width:782px){.edit-post-post-template__create-form{width:320px}}.edit-post-post-url{align-items:flex-start;justify-content:flex-start;width:100%}.edit-post-post-url span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-url__toggle{height:auto;text-align:right;white-space:normal;word-break:break-word}.edit-post-post-url__dialog .editor-post-url{margin:8px;min-width:248px}.edit-post-post-visibility{justify-content:flex-start;width:100%}.edit-post-post-visibility span{display:block;padding:6px 0;width:45%}.edit-post-post-visibility__dialog .editor-post-visibility{margin:8px;min-width:248px}.components-button.edit-post-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-button.edit-post-sidebar__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-post-sidebar__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-post-sidebar__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}h2.edit-post-template-summary__title{font-weight:500;line-height:24px;margin:0 0 4px}.edit-post-text-editor{background-color:#fff;flex-grow:1;position:relative;width:100%}.edit-post-text-editor .editor-post-title{border:1px solid #949494;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.edit-post-text-editor .editor-post-title{padding:24px}}.edit-post-text-editor .editor-post-title:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-post-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 0 0 auto}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{background-color:#1e1e1e;display:flex;flex:1 0 auto;flex-flow:column;overflow:hidden;position:relative}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}.edit-post-visual-editor__post-title-wrapper{margin-bottom:var(--wp--style--block-gap);margin-top:4rem}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin-left:auto;margin-right:auto}.edit-post-visual-editor__content-area{box-sizing:border-box;display:flex;flex-grow:1;height:100%;position:relative;width:100%}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-template-welcome-guide .components-button svg{fill:#fff}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.js.block-editor-page{background:#fff}body.js.block-editor-page #wpcontent{padding-right:0}body.js.block-editor-page #wpbody-content{padding-bottom:0}body.js.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.js.block-editor-page #wpfooter{display:none}body.js.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.js.block-editor-page ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.components-modal__frame,.components-popover,.edit-post-editor__inserter-panel,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-editor__inserter-panel *,.edit-post-editor__inserter-panel :after,.edit-post-editor__inserter-panel :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{height:auto;max-width:100%}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}@supports (scrollbar-gutter:stable){.interface-interface-skeleton__header .edit-post-header{overflow:hidden;scrollbar-gutter:stable}}.interface-interface-skeleton__sidebar{border-right:none}@media (min-width:782px){.is-sidebar-opened .interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0;overflow:hidden scroll}}
\ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-left:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{position:absolute;right:16px;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-right:160px;padding-right:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-right:48px;margin-top:0}.edit-post-header{align-items:center;background:#fff;display:flex;flex-wrap:wrap;height:60px;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports (position:sticky){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__center{display:flex;flex-grow:1;justify-content:center}.edit-post-header__settings{align-items:center;display:inline-flex;flex-wrap:wrap;gap:4px;padding-left:4px}@media (min-width:600px){.edit-post-header__settings{gap:8px;padding-left:10px}}.edit-post-header-preview__grouping-external{display:flex;padding-bottom:0;position:relative}.edit-post-header-preview__button-external{display:flex;justify-content:flex-start;margin-left:auto;padding-right:8px;width:100%}.edit-post-header-preview__button-external svg{margin-right:auto}.edit-post-post-preview-dropdown .components-popover__content{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:transparent;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.edit-post-header__dropdown .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.edit-post-header__dropdown .components-button.block-editor-list-view,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{justify-content:flex-start;margin:0;padding:6px 40px 6px 6px;text-align:right;width:14.625rem}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 8px 6px 6px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-right:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-left:8px}.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.is-distraction-free .edit-post-header{-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;background-color:hsla(0,0%,100%,.9);border-bottom:1px solid #e0e0e0;position:absolute;width:100%}.is-distraction-free .edit-post-header>.edit-post-header__settings>.editor-post-preview{visibility:hidden}.is-distraction-free .edit-post-header>.edit-post-header__settings>.block-editor-post-preview__dropdown,.is-distraction-free .edit-post-header>.edit-post-header__settings>.interface-pinned-items,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__document-overview-toggle,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__inserter-toggle{display:none}.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.edit-post-fullscreen-mode-close.components-button{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button{align-items:center;align-self:stretch;background:#1e1e1e;border:none;border-radius:0;color:#fff;display:flex;height:61px;margin-bottom:-1px;position:relative;width:60px}.edit-post-fullscreen-mode-close.components-button:active{color:#fff}.edit-post-fullscreen-mode-close.components-button:focus{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:before{border-radius:4px;bottom:10px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-fullscreen-mode-close.components-button:before{transition-delay:0s;transition-duration:0s}}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-post-fullscreen-mode-close.components-button.has-icon:hover:before{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}}.edit-post-fullscreen-mode-close.components-button .edit-post-fullscreen-mode-close_site-icon{border-radius:2px;height:36px;margin-top:-1px;object-fit:cover;width:36px}.edit-post-header-toolbar{align-items:center;border:none;display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:inline-flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-post-header-toolbar .block-editor-list-view{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-list-view{display:flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon.is-pressed,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:before,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:before{display:none}@media (min-width:600px){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition:opacity .1s linear}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{opacity:0}}.edit-post-header-toolbar__left{align-items:center;display:inline-flex;margin-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header-toolbar__left{padding-right:24px}}@media (min-width:1280px){.edit-post-header-toolbar__left{padding-left:8px}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:32px;margin-left:8px;min-width:32px;padding:0;width:32px}.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:36px;padding:0 8px;width:auto}.show-icon-labels .edit-post-header-toolbar__left>*+*{margin-right:8px}.edit-post-document-actions{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;gap:8px;height:36px;justify-content:space-between;min-width:0;width:min(100%,450px)}.edit-post-document-actions .components-button:hover{background:#e0e0e0;color:var(--wp-block-synced-color)}.edit-post-document-actions__command,.edit-post-document-actions__title{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.edit-post-document-actions__title:hover{color:var(--wp-block-synced-color)}.edit-post-document-actions__title .block-editor-block-icon{flex-shrink:0}.edit-post-document-actions__title h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-post-document-actions__shortcut{color:#2f2f2f}.edit-post-document-actions__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px}.edit-post-document-actions__back.components-button.has-icon.has-text:hover{color:currentColor}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-post-layout__metaboxes{clear:both;flex-shrink:0}.edit-post-layout .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:fixed}.is-distraction-free .components-editor-notices__snackbar{bottom:20px}.edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{right:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{right:0!important}.edit-post-layout .editor-post-publish-panel{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{animation:edit-post-post-publish-panel__slide-in-animation .1s forwards;border-right:1px solid #ddd;right:auto;top:32px;transform:translateX(-100%);width:281px;z-index:99998}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-delay:0s;animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}[role=region]:focus .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:0;padding:24px;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{bottom:0;top:auto}.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel{bottom:0;top:auto}.edit-post-layout .entities-saved-states__panel-header{height:61px}@media (min-width:782px){.edit-post-layout.has-fixed-toolbar .interface-interface-skeleton__header:not(:focus-within){z-index:19}}.edit-post-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-block-manager__search{margin:16px 0}.edit-post-block-manager__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:32px 0 0 0 #fff,-32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-1px;z-index:2}.edit-post-block-manager__disabled-blocks-count~.edit-post-block-manager__results .edit-post-block-manager__category-title{top:35px}.edit-post-block-manager__disabled-blocks-count .is-link{margin-right:12px}.edit-post-block-manager__category{margin:0 0 24px}.edit-post-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:-4px;z-index:1}.edit-post-block-manager__category-title .components-checkbox-control__label{font-weight:600}.edit-post-block-manager__checklist{margin-top:0}.edit-post-block-manager__category-title,.edit-post-block-manager__checklist-item{border-bottom:1px solid #ddd}.edit-post-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 16px 8px 0}.components-modal__content .edit-post-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-block-manager__checklist-item .block-editor-block-icon{fill:#1e1e1e;margin-left:10px}.edit-post-block-manager__results{border-top:1px solid #ddd}.edit-post-block-manager__disabled-blocks-count+.edit-post-block-manager__results{border-top-width:0}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #ddd}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .components-spinner{left:20px;position:absolute;top:10px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-editor__document-overview-panel,.edit-post-editor__inserter-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-post-editor__document-overview-panel{width:350px}}.edit-post-editor__document-overview-panel .edit-post-editor__document-overview-panel__close-button{background:#fff;left:8px;position:absolute;top:6px;z-index:1}.edit-post-editor__document-overview-panel .components-tab-panel__tabs{border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;padding-left:56px;width:100%}.edit-post-editor__document-overview-panel .components-tab-panel__tabs .edit-post-sidebar__panel-tab{width:50%}.edit-post-editor__document-overview-panel .components-tab-panel__tab-content{height:calc(100% - 48px)}.edit-post-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.edit-post-editor__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-editor__inserter-panel-content{height:100%}}.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar,.edit-post-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-track,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-track,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:transparent}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-post-editor__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-post-editor__list-view-container>.document-outline:focus,.edit-post-editor__list-view-container>.document-outline:focus-within,.edit-post-editor__list-view-container>.document-outline:hover,.edit-post-editor__list-view-empty-headings:focus,.edit-post-editor__list-view-empty-headings:focus-within,.edit-post-editor__list-view-empty-headings:hover,.edit-post-editor__list-view-panel-content:focus,.edit-post-editor__list-view-panel-content:focus-within,.edit-post-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-post-editor__list-view-empty-headings{color:#757575;text-align:center}.edit-post-editor__list-view-empty-headings>svg{margin-top:28px}.edit-post-editor__list-view-empty-headings>p{padding-left:32px;padding-right:32px}.edit-post-editor__list-view-overview{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.edit-post-editor__list-view-overview>div>span:first-child{display:inline-block;width:90px}.edit-post-editor__list-view-overview>div>span{color:#757575;font-size:12px;line-height:1.4}.edit-post-editor__list-view-container{display:flex;flex-direction:column;height:100%}.edit-post-editor__document-overview-panel__tab-panel{height:100%}.components-panel__header.edit-post-sidebar__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:16px;padding-right:0}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 auto 0 0;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{height:48px;padding:0}.editor-post-last-revision__title.components-button{padding:16px}.edit-post-post-author,.edit-post-post-format{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-schedule{justify-content:flex-start;position:relative;width:100%}.edit-post-post-schedule span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:right;white-space:normal}.components-button.edit-post-post-schedule__toggle span{width:0}.edit-post-post-schedule__dialog .block-editor-publish-date-time-picker{margin:8px}.edit-post-post-slug{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;text-align:center;width:100%}.edit-post-post-template{justify-content:flex-start;width:100%}.edit-post-post-template span{display:block;padding:6px 0;width:45%}.edit-post-post-template__dropdown{max-width:55%}.components-button.edit-post-post-template__toggle{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.edit-post-post-template__dialog{z-index:99999}.edit-post-post-template__form{margin:8px;min-width:248px}@media (min-width:782px){.edit-post-post-template__create-form{width:320px}}.edit-post-post-url{align-items:flex-start;justify-content:flex-start;width:100%}.edit-post-post-url span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-url__toggle{height:auto;text-align:right;white-space:normal;word-break:break-word}.edit-post-post-url__dialog .editor-post-url{margin:8px;min-width:248px}.edit-post-post-visibility{justify-content:flex-start;width:100%}.edit-post-post-visibility span{display:block;padding:6px 0;width:45%}.edit-post-post-visibility__dialog .editor-post-visibility{margin:8px;min-width:248px}.components-button.edit-post-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-button.edit-post-sidebar__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-post-sidebar__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-post-sidebar__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}h2.edit-post-template-summary__title{font-weight:500;line-height:24px;margin:0 0 4px}.edit-post-text-editor{background-color:#fff;flex-grow:1;position:relative;width:100%}.edit-post-text-editor .editor-post-title{border:1px solid #949494;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.edit-post-text-editor .editor-post-title{padding:24px}}.edit-post-text-editor .editor-post-title:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-post-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 0 0 auto}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{background-color:#1e1e1e;display:flex;flex:1 0 auto;flex-flow:column;position:relative}.edit-post-visual-editor:not(.has-inline-canvas){overflow:hidden}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}.edit-post-visual-editor__post-title-wrapper{margin-bottom:var(--wp--style--block-gap);margin-top:4rem}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin-left:auto;margin-right:auto}.edit-post-visual-editor__content-area{box-sizing:border-box;display:flex;flex-grow:1;height:100%;position:relative;width:100%}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-template-welcome-guide .components-button svg{fill:#fff}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.js.block-editor-page{background:#fff}body.js.block-editor-page #wpcontent{padding-right:0}body.js.block-editor-page #wpbody-content{padding-bottom:0}body.js.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.js.block-editor-page #wpfooter{display:none}body.js.block-editor-page .a11y-speak-region{right:-1px;top:-1px}body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.js.block-editor-page ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.components-modal__frame,.components-popover,.edit-post-editor__inserter-panel,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-editor__inserter-panel *,.edit-post-editor__inserter-panel :after,.edit-post-editor__inserter-panel :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{height:auto;max-width:100%}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}@supports (scrollbar-gutter:stable){.interface-interface-skeleton__header .edit-post-header{overflow:hidden;scrollbar-gutter:stable}}.interface-interface-skeleton__sidebar{border-right:none}@media (min-width:782px){.is-sidebar-opened .interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0;overflow:hidden scroll}}
\ No newline at end of file
overflow:auto;
z-index:20;
}
+@media (min-width:782px){
+ .interface-interface-skeleton__content{
+ z-index:auto;
+ }
+}
.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
background:#fff;
display:flex;
flex:1 0 auto;
flex-flow:column;
- overflow:hidden;
position:relative;
}
+.edit-post-visual-editor:not(.has-inline-canvas){
+ overflow:hidden;
+}
.edit-post-visual-editor .components-button{
font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;
font-size:13px;
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-right:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{left:16px;position:absolute;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-left:160px;padding-left:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-left:48px;margin-top:0}.edit-post-header{align-items:center;background:#fff;display:flex;flex-wrap:wrap;height:60px;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports (position:sticky){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__center{display:flex;flex-grow:1;justify-content:center}.edit-post-header__settings{align-items:center;display:inline-flex;flex-wrap:wrap;gap:4px;padding-right:4px}@media (min-width:600px){.edit-post-header__settings{gap:8px;padding-right:10px}}.edit-post-header-preview__grouping-external{display:flex;padding-bottom:0;position:relative}.edit-post-header-preview__button-external{display:flex;justify-content:flex-start;margin-right:auto;padding-left:8px;width:100%}.edit-post-header-preview__button-external svg{margin-left:auto}.edit-post-post-preview-dropdown .components-popover__content{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:transparent;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.edit-post-header__dropdown .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.edit-post-header__dropdown .components-button.block-editor-list-view,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{justify-content:flex-start;margin:0;padding:6px 6px 6px 40px;text-align:left;width:14.625rem}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 6px 6px 8px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.is-distraction-free .edit-post-header{-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;background-color:hsla(0,0%,100%,.9);border-bottom:1px solid #e0e0e0;position:absolute;width:100%}.is-distraction-free .edit-post-header>.edit-post-header__settings>.editor-post-preview{visibility:hidden}.is-distraction-free .edit-post-header>.edit-post-header__settings>.block-editor-post-preview__dropdown,.is-distraction-free .edit-post-header>.edit-post-header__settings>.interface-pinned-items,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__document-overview-toggle,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__inserter-toggle{display:none}.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.edit-post-fullscreen-mode-close.components-button{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button{align-items:center;align-self:stretch;background:#1e1e1e;border:none;border-radius:0;color:#fff;display:flex;height:61px;margin-bottom:-1px;position:relative;width:60px}.edit-post-fullscreen-mode-close.components-button:active{color:#fff}.edit-post-fullscreen-mode-close.components-button:focus{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:before{border-radius:4px;bottom:10px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-fullscreen-mode-close.components-button:before{transition-delay:0s;transition-duration:0s}}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-post-fullscreen-mode-close.components-button.has-icon:hover:before{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}}.edit-post-fullscreen-mode-close.components-button .edit-post-fullscreen-mode-close_site-icon{border-radius:2px;height:36px;margin-top:-1px;object-fit:cover;width:36px}.edit-post-header-toolbar{align-items:center;border:none;display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:inline-flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-post-header-toolbar .block-editor-list-view{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-list-view{display:flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon.is-pressed,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:before,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:before{display:none}@media (min-width:600px){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition:opacity .1s linear}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{opacity:0}}.edit-post-header-toolbar__left{align-items:center;display:inline-flex;margin-right:8px;padding-left:8px}@media (min-width:600px){.edit-post-header-toolbar__left{padding-left:24px}}@media (min-width:1280px){.edit-post-header-toolbar__left{padding-right:8px}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:32px;margin-right:8px;min-width:32px;padding:0;width:32px}.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:36px;padding:0 8px;width:auto}.show-icon-labels .edit-post-header-toolbar__left>*+*{margin-left:8px}.edit-post-document-actions{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;gap:8px;height:36px;justify-content:space-between;min-width:0;width:min(100%,450px)}.edit-post-document-actions .components-button:hover{background:#e0e0e0;color:var(--wp-block-synced-color)}.edit-post-document-actions__command,.edit-post-document-actions__title{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.edit-post-document-actions__title:hover{color:var(--wp-block-synced-color)}.edit-post-document-actions__title .block-editor-block-icon{flex-shrink:0}.edit-post-document-actions__title h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-post-document-actions__shortcut{color:#2f2f2f}.edit-post-document-actions__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px}.edit-post-document-actions__back.components-button.has-icon.has-text:hover{color:currentColor}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout__metaboxes{clear:both;flex-shrink:0}.edit-post-layout .components-editor-notices__snackbar{bottom:40px;padding-left:16px;padding-right:16px;position:fixed;right:0}.is-distraction-free .components-editor-notices__snackbar{bottom:20px}.edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{left:0!important}.edit-post-layout .editor-post-publish-panel{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{animation:edit-post-post-publish-panel__slide-in-animation .1s forwards;border-left:1px solid #ddd;left:auto;top:32px;transform:translateX(100%);width:281px;z-index:99998}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-delay:0s;animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}[role=region]:focus .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:auto;padding:24px;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{bottom:0;top:auto}.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel{bottom:0;top:auto}.edit-post-layout .entities-saved-states__panel-header{height:61px}@media (min-width:782px){.edit-post-layout.has-fixed-toolbar .interface-interface-skeleton__header:not(:focus-within){z-index:19}}.edit-post-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-block-manager__search{margin:16px 0}.edit-post-block-manager__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:-32px 0 0 0 #fff,32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-1px;z-index:2}.edit-post-block-manager__disabled-blocks-count~.edit-post-block-manager__results .edit-post-block-manager__category-title{top:35px}.edit-post-block-manager__disabled-blocks-count .is-link{margin-left:12px}.edit-post-block-manager__category{margin:0 0 24px}.edit-post-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:-4px;z-index:1}.edit-post-block-manager__category-title .components-checkbox-control__label{font-weight:600}.edit-post-block-manager__checklist{margin-top:0}.edit-post-block-manager__category-title,.edit-post-block-manager__checklist-item{border-bottom:1px solid #ddd}.edit-post-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 0 8px 16px}.components-modal__content .edit-post-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-block-manager__checklist-item .block-editor-block-icon{fill:#1e1e1e;margin-right:10px}.edit-post-block-manager__results{border-top:1px solid #ddd}.edit-post-block-manager__disabled-blocks-count+.edit-post-block-manager__results{border-top-width:0}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #ddd}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;right:20px;top:10px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-editor__document-overview-panel,.edit-post-editor__inserter-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-post-editor__document-overview-panel{width:350px}}.edit-post-editor__document-overview-panel .edit-post-editor__document-overview-panel__close-button{background:#fff;position:absolute;right:8px;top:6px;z-index:1}.edit-post-editor__document-overview-panel .components-tab-panel__tabs{border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;padding-right:56px;width:100%}.edit-post-editor__document-overview-panel .components-tab-panel__tabs .edit-post-sidebar__panel-tab{width:50%}.edit-post-editor__document-overview-panel .components-tab-panel__tab-content{height:calc(100% - 48px)}.edit-post-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.edit-post-editor__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-editor__inserter-panel-content{height:100%}}.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar,.edit-post-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-track,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-track,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:transparent}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-post-editor__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-post-editor__list-view-container>.document-outline:focus,.edit-post-editor__list-view-container>.document-outline:focus-within,.edit-post-editor__list-view-container>.document-outline:hover,.edit-post-editor__list-view-empty-headings:focus,.edit-post-editor__list-view-empty-headings:focus-within,.edit-post-editor__list-view-empty-headings:hover,.edit-post-editor__list-view-panel-content:focus,.edit-post-editor__list-view-panel-content:focus-within,.edit-post-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-post-editor__list-view-empty-headings{color:#757575;text-align:center}.edit-post-editor__list-view-empty-headings>svg{margin-top:28px}.edit-post-editor__list-view-empty-headings>p{padding-left:32px;padding-right:32px}.edit-post-editor__list-view-overview{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.edit-post-editor__list-view-overview>div>span:first-child{display:inline-block;width:90px}.edit-post-editor__list-view-overview>div>span{color:#757575;font-size:12px;line-height:1.4}.edit-post-editor__list-view-container{display:flex;flex-direction:column;height:100%}.edit-post-editor__document-overview-panel__tab-panel{height:100%}.components-panel__header.edit-post-sidebar__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:0;padding-right:16px}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 0 0 auto;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{height:48px;padding:0}.editor-post-last-revision__title.components-button{padding:16px}.edit-post-post-author,.edit-post-post-format{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-schedule{justify-content:flex-start;position:relative;width:100%}.edit-post-post-schedule span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:left;white-space:normal}.components-button.edit-post-post-schedule__toggle span{width:0}.edit-post-post-schedule__dialog .block-editor-publish-date-time-picker{margin:8px}.edit-post-post-slug{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;text-align:center;width:100%}.edit-post-post-template{justify-content:flex-start;width:100%}.edit-post-post-template span{display:block;padding:6px 0;width:45%}.edit-post-post-template__dropdown{max-width:55%}.components-button.edit-post-post-template__toggle{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.edit-post-post-template__dialog{z-index:99999}.edit-post-post-template__form{margin:8px;min-width:248px}@media (min-width:782px){.edit-post-post-template__create-form{width:320px}}.edit-post-post-url{align-items:flex-start;justify-content:flex-start;width:100%}.edit-post-post-url span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-url__toggle{height:auto;text-align:left;white-space:normal;word-break:break-word}.edit-post-post-url__dialog .editor-post-url{margin:8px;min-width:248px}.edit-post-post-visibility{justify-content:flex-start;width:100%}.edit-post-post-visibility span{display:block;padding:6px 0;width:45%}.edit-post-post-visibility__dialog .editor-post-visibility{margin:8px;min-width:248px}.components-button.edit-post-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-button.edit-post-sidebar__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-post-sidebar__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-post-sidebar__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}h2.edit-post-template-summary__title{font-weight:500;line-height:24px;margin:0 0 4px}.edit-post-text-editor{background-color:#fff;flex-grow:1;position:relative;width:100%}.edit-post-text-editor .editor-post-title{border:1px solid #949494;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.edit-post-text-editor .editor-post-title{padding:24px}}.edit-post-text-editor .editor-post-title:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-post-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 auto 0 0}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{background-color:#1e1e1e;display:flex;flex:1 0 auto;flex-flow:column;overflow:hidden;position:relative}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}.edit-post-visual-editor__post-title-wrapper{margin-bottom:var(--wp--style--block-gap);margin-top:4rem}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin-left:auto;margin-right:auto}.edit-post-visual-editor__content-area{box-sizing:border-box;display:flex;flex-grow:1;height:100%;position:relative;width:100%}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-template-welcome-guide .components-button svg{fill:#fff}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.js.block-editor-page{background:#fff}body.js.block-editor-page #wpcontent{padding-left:0}body.js.block-editor-page #wpbody-content{padding-bottom:0}body.js.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.js.block-editor-page #wpfooter{display:none}body.js.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.js.block-editor-page ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.components-modal__frame,.components-popover,.edit-post-editor__inserter-panel,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-editor__inserter-panel *,.edit-post-editor__inserter-panel :after,.edit-post-editor__inserter-panel :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{height:auto;max-width:100%}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}@supports (scrollbar-gutter:stable){.interface-interface-skeleton__header .edit-post-header{overflow:hidden;scrollbar-gutter:stable}}.interface-interface-skeleton__sidebar{border-left:none}@media (min-width:782px){.is-sidebar-opened .interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0;overflow:hidden scroll}}
\ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-right:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{left:16px;position:absolute;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-left:160px;padding-left:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-left:48px;margin-top:0}.edit-post-header{align-items:center;background:#fff;display:flex;flex-wrap:wrap;height:60px;max-width:100vw}@media (min-width:280px){.edit-post-header{flex-wrap:nowrap}}.edit-post-header>.edit-post-header__settings{order:1}@supports (position:sticky){.edit-post-header>.edit-post-header__settings{order:0}}.edit-post-header__toolbar{display:flex;flex-grow:1}.edit-post-header__toolbar .table-of-contents{display:none}@media (min-width:600px){.edit-post-header__toolbar .table-of-contents{display:block}}.edit-post-header__center{display:flex;flex-grow:1;justify-content:center}.edit-post-header__settings{align-items:center;display:inline-flex;flex-wrap:wrap;gap:4px;padding-right:4px}@media (min-width:600px){.edit-post-header__settings{gap:8px;padding-right:10px}}.edit-post-header-preview__grouping-external{display:flex;padding-bottom:0;position:relative}.edit-post-header-preview__button-external{display:flex;justify-content:flex-start;margin-right:auto;padding-left:8px;width:100%}.edit-post-header-preview__button-external svg{margin-left:auto}.edit-post-post-preview-dropdown .components-popover__content{padding-bottom:0}.edit-post-header__dropdown .components-button.has-icon,.show-icon-labels .edit-post-header .components-button.has-icon,.show-icon-labels.interface-pinned-items .components-button.has-icon{width:auto}.edit-post-header__dropdown .components-button.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon svg{display:none}.edit-post-header__dropdown .components-button.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon:after{content:attr(aria-label)}.edit-post-header__dropdown .components-button.has-icon[aria-disabled=true],.show-icon-labels .edit-post-header .components-button.has-icon[aria-disabled=true],.show-icon-labels.interface-pinned-items .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-post-header__dropdown .is-tertiary:active,.show-icon-labels .edit-post-header .is-tertiary:active,.show-icon-labels.interface-pinned-items .is-tertiary:active{background-color:transparent;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-post-header__dropdown .components-button.has-icon.button-toggle svg,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle svg,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon svg,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle svg,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon svg{display:block}.edit-post-header__dropdown .components-button.has-icon.button-toggle:after,.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels .edit-post-header .components-button.has-icon.button-toggle:after,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon:after,.show-icon-labels.interface-pinned-items .components-button.has-icon.button-toggle:after,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon:after{content:none}.edit-post-header__dropdown .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels .edit-post-header .edit-post-fullscreen-mode-close.has-icon,.show-icon-labels.interface-pinned-items .edit-post-fullscreen-mode-close.has-icon{width:60px}.edit-post-header__dropdown .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels .edit-post-header .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon,.show-icon-labels.interface-pinned-items .components-menu-items-choice .components-menu-items__item-icon.components-menu-items__item-icon{display:block}.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-post-header__dropdown .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.edit-post-header__dropdown .interface-pinned-items .components-button,.show-icon-labels .edit-post-header .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels .edit-post-header .interface-pinned-items .components-button,.show-icon-labels.interface-pinned-items .edit-post-header-toolbar__inserter-toggle.edit-post-header-toolbar__inserter-toggle,.show-icon-labels.interface-pinned-items .interface-pinned-items .components-button{padding-left:12px;padding-right:12px}}.edit-post-header__dropdown .editor-post-save-draft.editor-post-save-draft:after,.edit-post-header__dropdown .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels .edit-post-header .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels .edit-post-header .editor-post-saved-state.editor-post-saved-state:after,.show-icon-labels.interface-pinned-items .editor-post-save-draft.editor-post-save-draft:after,.show-icon-labels.interface-pinned-items .editor-post-saved-state.editor-post-saved-state:after{content:none}.edit-post-header__dropdown .components-button.block-editor-list-view,.edit-post-header__dropdown .components-button.editor-history__redo,.edit-post-header__dropdown .components-button.editor-history__undo,.edit-post-header__dropdown .components-menu-item__button.components-menu-item__button,.edit-post-header__dropdown .table-of-contents .components-button{justify-content:flex-start;margin:0;padding:6px 6px 6px 40px;text-align:left;width:14.625rem}.show-icon-labels.interface-pinned-items{border-bottom:1px solid #ccc;display:block;margin:0 -12px;padding:6px 12px 12px}.show-icon-labels.interface-pinned-items>.components-button.has-icon{justify-content:flex-start;margin:0;padding:6px 6px 6px 8px;width:14.625rem}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=true] svg{display:block;max-width:24px}.show-icon-labels.interface-pinned-items>.components-button.has-icon[aria-expanded=false]{padding-left:40px}.show-icon-labels.interface-pinned-items>.components-button.has-icon svg{margin-right:8px}.is-distraction-free .interface-interface-skeleton__header{border-bottom:none}.is-distraction-free .edit-post-header{-webkit-backdrop-filter:blur(20px)!important;backdrop-filter:blur(20px)!important;background-color:hsla(0,0%,100%,.9);border-bottom:1px solid #e0e0e0;position:absolute;width:100%}.is-distraction-free .edit-post-header>.edit-post-header__settings>.editor-post-preview{visibility:hidden}.is-distraction-free .edit-post-header>.edit-post-header__settings>.block-editor-post-preview__dropdown,.is-distraction-free .edit-post-header>.edit-post-header__settings>.interface-pinned-items,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__document-overview-toggle,.is-distraction-free .edit-post-header>.edit-post-header__toolbar .edit-post-header-toolbar__inserter-toggle{display:none}.is-distraction-free .interface-interface-skeleton__header:focus-within{opacity:1!important}.is-distraction-free .interface-interface-skeleton__header:focus-within div{transform:translateX(0) translateZ(0)!important}.is-distraction-free .components-editor-notices__dismissible{position:absolute;z-index:35}.edit-post-fullscreen-mode-close.components-button{display:none}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button{align-items:center;align-self:stretch;background:#1e1e1e;border:none;border-radius:0;color:#fff;display:flex;height:61px;margin-bottom:-1px;position:relative;width:60px}.edit-post-fullscreen-mode-close.components-button:active{color:#fff}.edit-post-fullscreen-mode-close.components-button:focus{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:before{border-radius:4px;bottom:10px;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-fullscreen-mode-close.components-button:before{transition-delay:0s;transition-duration:0s}}@media (min-width:782px){.edit-post-fullscreen-mode-close.components-button:hover:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) #757575}.edit-post-fullscreen-mode-close.components-button.has-icon:hover:before{box-shadow:none}.edit-post-fullscreen-mode-close.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}}.edit-post-fullscreen-mode-close.components-button .edit-post-fullscreen-mode-close_site-icon{border-radius:2px;height:36px;margin-top:-1px;object-fit:cover;width:36px}.edit-post-header-toolbar{align-items:center;border:none;display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:none}@media (min-width:600px){.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button{display:inline-flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle{display:inline-flex}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-post-header-toolbar .block-editor-list-view{display:none}@media (min-width:600px){.edit-post-header-toolbar .block-editor-list-view{display:flex}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon.is-pressed,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:focus:not(:disabled),.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-button.has-icon:before,.edit-post-header-toolbar .edit-post-header-toolbar__left>.components-dropdown>.components-button.has-icon:before{display:none}@media (min-width:600px){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition:opacity .1s linear}}@media (min-width:600px) and (prefers-reduced-motion:reduce){.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-button,.edit-post-header.has-reduced-ui:not(:hover) .edit-post-header-toolbar__left>*+.components-dropdown>[aria-expanded=false]{opacity:0}}.edit-post-header-toolbar__left{align-items:center;display:inline-flex;margin-right:8px;padding-left:8px}@media (min-width:600px){.edit-post-header-toolbar__left{padding-left:24px}}@media (min-width:1280px){.edit-post-header-toolbar__left{padding-right:8px}}.edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:32px;margin-right:8px;min-width:32px;padding:0;width:32px}.show-icon-labels .edit-post-header-toolbar .edit-post-header-toolbar__left>.edit-post-header-toolbar__inserter-toggle.has-icon{height:36px;padding:0 8px;width:auto}.show-icon-labels .edit-post-header-toolbar__left>*+*{margin-left:8px}.edit-post-document-actions{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;gap:8px;height:36px;justify-content:space-between;min-width:0;width:min(100%,450px)}.edit-post-document-actions .components-button:hover{background:#e0e0e0;color:var(--wp-block-synced-color)}.edit-post-document-actions__command,.edit-post-document-actions__title{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.edit-post-document-actions__title:hover{color:var(--wp-block-synced-color)}.edit-post-document-actions__title .block-editor-block-icon{flex-shrink:0}.edit-post-document-actions__title h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-post-document-actions__shortcut{color:#2f2f2f}.edit-post-document-actions__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px}.edit-post-document-actions__back.components-button.has-icon.has-text:hover{color:currentColor}.edit-post-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-post-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-post-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-post-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-post-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-post-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-post-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-post-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-post-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-post-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-post-layout__metaboxes{clear:both;flex-shrink:0}.edit-post-layout .components-editor-notices__snackbar{bottom:40px;padding-left:16px;padding-right:16px;position:fixed;right:0}.is-distraction-free .components-editor-notices__snackbar{bottom:20px}.edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.edit-post-layout .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-post-layout .components-editor-notices__snackbar{left:160px}}.folded .edit-post-layout .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-post-layout .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar{left:0!important}.edit-post-layout .editor-post-publish-panel{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:46px;z-index:100001}@media (min-width:782px){.edit-post-layout .editor-post-publish-panel{animation:edit-post-post-publish-panel__slide-in-animation .1s forwards;border-left:1px solid #ddd;left:auto;top:32px;transform:translateX(100%);width:281px;z-index:99998}}@media (min-width:782px) and (prefers-reduced-motion:reduce){.edit-post-layout .editor-post-publish-panel{animation-delay:0s;animation-duration:1ms}}@media (min-width:782px){body.is-fullscreen-mode .edit-post-layout .editor-post-publish-panel{top:0}[role=region]:focus .edit-post-layout .editor-post-publish-panel{transform:translateX(0)}}@keyframes edit-post-post-publish-panel__slide-in-animation{to{transform:translateX(0)}}.edit-post-layout .editor-post-publish-panel__header-publish-button{justify-content:center}.edit-post-layout__toggle-entities-saved-states-panel,.edit-post-layout__toggle-publish-panel,.edit-post-layout__toggle-sidebar-panel{background-color:#fff;border:1px dotted #ddd;bottom:auto;box-sizing:border-box;display:flex;height:auto!important;justify-content:center;left:auto;padding:24px;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.interface-interface-skeleton__sidebar:focus .edit-post-layout__toggle-sidebar-panel,.interface-interface-skeleton__sidebar:focus-within .edit-post-layout__toggle-sidebar-panel{bottom:0;top:auto}.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus .edit-post-layout__toggle-publish-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-entities-saved-states-panel,.interface-interface-skeleton__actions:focus-within .edit-post-layout__toggle-publish-panel{bottom:0;top:auto}.edit-post-layout .entities-saved-states__panel-header{height:61px}@media (min-width:782px){.edit-post-layout.has-fixed-toolbar .interface-interface-skeleton__header:not(:focus-within){z-index:19}}.edit-post-block-manager__no-results{font-style:italic;padding:24px 0;text-align:center}.edit-post-block-manager__search{margin:16px 0}.edit-post-block-manager__disabled-blocks-count{background-color:#fff;border:1px solid #ddd;border-width:1px 0;box-shadow:-32px 0 0 0 #fff,32px 0 0 0 #fff;padding:8px;position:sticky;text-align:center;top:-1px;z-index:2}.edit-post-block-manager__disabled-blocks-count~.edit-post-block-manager__results .edit-post-block-manager__category-title{top:35px}.edit-post-block-manager__disabled-blocks-count .is-link{margin-left:12px}.edit-post-block-manager__category{margin:0 0 24px}.edit-post-block-manager__category-title{background-color:#fff;padding:16px 0;position:sticky;top:-4px;z-index:1}.edit-post-block-manager__category-title .components-checkbox-control__label{font-weight:600}.edit-post-block-manager__checklist{margin-top:0}.edit-post-block-manager__category-title,.edit-post-block-manager__checklist-item{border-bottom:1px solid #ddd}.edit-post-block-manager__checklist-item{align-items:center;display:flex;justify-content:space-between;margin-bottom:0;padding:8px 0 8px 16px}.components-modal__content .edit-post-block-manager__checklist-item.components-checkbox-control__input-container{margin:0 8px}.edit-post-block-manager__checklist-item .block-editor-block-icon{fill:#1e1e1e;margin-right:10px}.edit-post-block-manager__results{border-top:1px solid #ddd}.edit-post-block-manager__disabled-blocks-count+.edit-post-block-manager__results{border-top-width:0}.edit-post-meta-boxes-area{position:relative}.edit-post-meta-boxes-area .inside,.edit-post-meta-boxes-area__container{box-sizing:content-box}.edit-post-meta-boxes-area input,.edit-post-meta-boxes-area textarea{box-sizing:border-box}.edit-post-meta-boxes-area .postbox-header{border-bottom:0;border-top:1px solid #ddd}.edit-post-meta-boxes-area #poststuff{margin:0 auto;min-width:auto;padding-top:0}.edit-post-meta-boxes-area #poststuff .stuffbox>h3,.edit-post-meta-boxes-area #poststuff h2.hndle,.edit-post-meta-boxes-area #poststuff h3.hndle{box-sizing:border-box;color:inherit;font-weight:600;outline:none;padding:0 24px;position:relative;width:100%}.edit-post-meta-boxes-area .postbox{border:0;color:inherit;margin-bottom:0}.edit-post-meta-boxes-area .postbox>.inside{color:inherit;margin:0;padding:0 24px 24px}.edit-post-meta-boxes-area .postbox .handlediv{height:44px;width:44px}.edit-post-meta-boxes-area.is-loading:before{background:transparent;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}.edit-post-meta-boxes-area .components-spinner{position:absolute;right:20px;top:10px;z-index:5}.edit-post-meta-boxes-area .is-hidden{display:none}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]{border:1px solid #757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:checked{background:#fff;border-color:#757575}.edit-post-meta-boxes-area .metabox-location-side .postbox input[type=checkbox]:before{margin:-3px -4px}.edit-post-meta-boxes-area__clear{clear:both}.edit-post-editor__document-overview-panel,.edit-post-editor__inserter-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-post-editor__document-overview-panel{width:350px}}.edit-post-editor__document-overview-panel .edit-post-editor__document-overview-panel__close-button{background:#fff;position:absolute;right:8px;top:6px;z-index:1}.edit-post-editor__document-overview-panel .components-tab-panel__tabs{border-bottom:1px solid #ddd;box-sizing:border-box;display:flex;padding-right:56px;width:100%}.edit-post-editor__document-overview-panel .components-tab-panel__tabs .edit-post-sidebar__panel-tab{width:50%}.edit-post-editor__document-overview-panel .components-tab-panel__tab-content{height:calc(100% - 48px)}.edit-post-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.edit-post-editor__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-post-editor__inserter-panel-content{height:100%}}.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar,.edit-post-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-track,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-track,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:transparent}.edit-post-editor__list-view-container>.document-outline::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-post-editor__list-view-container>.document-outline:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-container>.document-outline:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-empty-headings:hover::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-post-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-post-editor__list-view-container>.document-outline:focus,.edit-post-editor__list-view-container>.document-outline:focus-within,.edit-post-editor__list-view-container>.document-outline:hover,.edit-post-editor__list-view-empty-headings:focus,.edit-post-editor__list-view-empty-headings:focus-within,.edit-post-editor__list-view-empty-headings:hover,.edit-post-editor__list-view-panel-content:focus,.edit-post-editor__list-view-panel-content:focus-within,.edit-post-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-post-editor__list-view-container>.document-outline,.edit-post-editor__list-view-empty-headings,.edit-post-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-post-editor__list-view-empty-headings{color:#757575;text-align:center}.edit-post-editor__list-view-empty-headings>svg{margin-top:28px}.edit-post-editor__list-view-empty-headings>p{padding-left:32px;padding-right:32px}.edit-post-editor__list-view-overview{border-bottom:1px solid #ddd;display:flex;flex-direction:column;gap:8px;padding:16px}.edit-post-editor__list-view-overview>div>span:first-child{display:inline-block;width:90px}.edit-post-editor__list-view-overview>div>span{color:#757575;font-size:12px;line-height:1.4}.edit-post-editor__list-view-container{display:flex;flex-direction:column;height:100%}.edit-post-editor__document-overview-panel__tab-panel{height:100%}.components-panel__header.edit-post-sidebar__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:0;padding-right:16px}.components-panel__header.edit-post-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-post-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 0 0 auto;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-post-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-panel__body.is-opened.edit-post-last-revision__panel{height:48px;padding:0}.editor-post-last-revision__title.components-button{padding:16px}.edit-post-post-author,.edit-post-post-format{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-schedule{justify-content:flex-start;position:relative;width:100%}.edit-post-post-schedule span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-schedule__toggle{text-align:left;white-space:normal}.components-button.edit-post-post-schedule__toggle span{width:0}.edit-post-post-schedule__dialog .block-editor-publish-date-time-picker{margin:8px}.edit-post-post-slug{align-items:stretch;display:flex;flex-direction:column}.edit-post-post-status .edit-post-post-publish-dropdown__switch-to-draft{margin-top:15px;text-align:center;width:100%}.edit-post-post-template{justify-content:flex-start;width:100%}.edit-post-post-template span{display:block;padding:6px 0;width:45%}.edit-post-post-template__dropdown{max-width:55%}.components-button.edit-post-post-template__toggle{display:inline-block;overflow:hidden;text-overflow:ellipsis;width:100%}.edit-post-post-template__dialog{z-index:99999}.edit-post-post-template__form{margin:8px;min-width:248px}@media (min-width:782px){.edit-post-post-template__create-form{width:320px}}.edit-post-post-url{align-items:flex-start;justify-content:flex-start;width:100%}.edit-post-post-url span{display:block;flex-shrink:0;padding:6px 0;width:45%}.components-button.edit-post-post-url__toggle{height:auto;text-align:left;white-space:normal;word-break:break-word}.edit-post-post-url__dialog .editor-post-url{margin:8px;min-width:248px}.edit-post-post-visibility{justify-content:flex-start;width:100%}.edit-post-post-visibility span{display:block;padding:6px 0;width:45%}.edit-post-post-visibility__dialog .editor-post-visibility{margin:8px;min-width:248px}.components-button.edit-post-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-button.edit-post-sidebar__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-post-sidebar__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-post-sidebar__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-post-sidebar__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-post-sidebar__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}h2.edit-post-template-summary__title{font-weight:500;line-height:24px;margin:0 0 4px}.edit-post-text-editor{background-color:#fff;flex-grow:1;position:relative;width:100%}.edit-post-text-editor .editor-post-title{border:1px solid #949494;font-family:Menlo,Consolas,monaco,monospace;font-size:2.5em;font-weight:400;line-height:1.4;max-width:none;padding:16px}@media (min-width:600px){.edit-post-text-editor .editor-post-title{padding:24px}}.edit-post-text-editor .editor-post-title:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-post-text-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:0 12px 12px;width:100%}@media (min-width:960px){.edit-post-text-editor__body{padding:0 24px 24px}}.edit-post-text-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-post-text-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-post-text-editor__toolbar{padding:12px 24px}}.edit-post-text-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 auto 0 0}.edit-post-text-editor__toolbar .components-button svg{order:1}.edit-post-visual-editor{background-color:#1e1e1e;display:flex;flex:1 0 auto;flex-flow:column;position:relative}.edit-post-visual-editor:not(.has-inline-canvas){overflow:hidden}.edit-post-visual-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-post-visual-editor .components-button.has-icon,.edit-post-visual-editor .components-button.is-tertiary{padding:6px}.edit-post-visual-editor__post-title-wrapper{margin-bottom:var(--wp--style--block-gap);margin-top:4rem}.edit-post-visual-editor__post-title-wrapper .editor-post-title{margin-left:auto;margin-right:auto}.edit-post-visual-editor__content-area{box-sizing:border-box;display:flex;flex-grow:1;height:100%;position:relative;width:100%}.edit-post-welcome-guide,.edit-template-welcome-guide{width:312px}.edit-post-welcome-guide__image,.edit-template-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-post-welcome-guide__image>img,.edit-template-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-post-welcome-guide__heading,.edit-template-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-post-welcome-guide__text,.edit-template-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-post-welcome-guide__inserter-icon,.edit-template-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-template-welcome-guide .components-button svg{fill:#fff}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-post-start-page-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column;margin-bottom:24px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__container{min-height:100px}.edit-post-start-page-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-preview__content{width:100%}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.js.block-editor-page{background:#fff}body.js.block-editor-page #wpcontent{padding-left:0}body.js.block-editor-page #wpbody-content{padding-bottom:0}body.js.block-editor-page #wpbody-content>div:not(.block-editor):not(#screen-meta),body.js.block-editor-page #wpfooter{display:none}body.js.block-editor-page .a11y-speak-region{left:-1px;top:-1px}body.js.block-editor-page ul#adminmenu a.wp-has-current-submenu:after,body.js.block-editor-page ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.block-editor-page .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.block-editor-page #wpwrap{overflow-y:auto}@media (min-width:782px){.block-editor-page #wpwrap{overflow-y:initial}}.components-modal__frame,.components-popover,.edit-post-editor__inserter-panel,.edit-post-header,.edit-post-sidebar,.edit-post-text-editor,.editor-post-publish-panel{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.components-popover *,.components-popover :after,.components-popover :before,.edit-post-editor__inserter-panel *,.edit-post-editor__inserter-panel :after,.edit-post-editor__inserter-panel :before,.edit-post-header *,.edit-post-header :after,.edit-post-header :before,.edit-post-sidebar *,.edit-post-sidebar :after,.edit-post-sidebar :before,.edit-post-text-editor *,.edit-post-text-editor :after,.edit-post-text-editor :before,.editor-post-publish-panel *,.editor-post-publish-panel :after,.editor-post-publish-panel :before{box-sizing:inherit}@media (min-width:600px){.block-editor__container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.block-editor__container{min-height:calc(100vh - 32px)}body.is-fullscreen-mode .block-editor__container{min-height:100vh}}.block-editor__container img{height:auto;max-width:100%}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}@supports (scrollbar-gutter:stable){.interface-interface-skeleton__header .edit-post-header{overflow:hidden;scrollbar-gutter:stable}}.interface-interface-skeleton__sidebar{border-left:none}@media (min-width:782px){.is-sidebar-opened .interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0;overflow:hidden scroll}}
\ No newline at end of file
overflow:auto;
z-index:20;
}
+@media (min-width:782px){
+ .interface-interface-skeleton__content{
+ z-index:auto;
+ }
+}
.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
background:#fff;
background:#f0f0f0;
border-radius:4px;
display:flex;
- gap:8px;
height:36px;
justify-content:space-between;
min-width:0;
.has-fixed-toolbar .edit-site-document-actions{
width:min(100%, 380px);
}
+.edit-site-document-actions:hover{
+ background-color:#e0e0e0;
+}
+.edit-site-document-actions .components-button{
+ border-radius:4px;
+}
.edit-site-document-actions .components-button:hover{
background:#e0e0e0;
color:var(--wp-block-synced-color);
}
-@media (min-width:782px){
- .edit-site-document-actions{
- width:50%;
- }
-}
@media (min-width:960px){
.edit-site-document-actions{
width:min(100%, 450px);
flex-grow:1;
overflow:hidden;
}
+
+.edit-site-document-actions__title{
+ padding-right:32px;
+}
.edit-site-document-actions__title:hover{
color:var(--wp-block-synced-color);
}
}
.edit-site-document-actions__title h1{
color:var(--wp-block-synced-color);
+ max-width:50%;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
.edit-site-document-actions__shortcut{
color:#2f2f2f;
+ min-width:32px;
}
.edit-site-document-actions__back.components-button.has-icon.has-text{
flex-shrink:0;
gap:0;
min-width:36px;
+ position:absolute;
z-index:1;
}
.edit-site-document-actions__back.components-button.has-icon.has-text:hover{
+ background-color:transparent;
color:currentColor;
}
.edit-site-document-actions.is-animated .edit-site-document-actions__back.components-button.has-icon.has-text{
color:#2f2f2f;
flex-grow:1;
margin:60px 0 0;
- overflow:auto;
+ overflow:hidden;
}
@media (min-width:782px){
.edit-site-page{
.edit-site-page-header{
background:#fff;
border-bottom:1px solid #f0f0f0;
- height:60px;
+ min-height:60px;
padding:0 32px;
position:sticky;
top:0;
}
.edit-site-page-content{
- overflow-x:auto;
- padding:32px;
+ display:flex;
+ flex-flow:column;
+ height:100%;
+ overflow:auto;
+ position:relative;
+ z-index:1;
}
.edit-site-patterns{
}
.edit-site-table-wrapper{
+ padding:32px;
width:100%;
}
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-left:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{position:absolute;right:16px;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-right:160px;padding-right:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-right:48px;margin-top:0}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input{background:#fff;border:1px solid #ddd}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{overflow:scroll}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:right;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}.edit-site-template-actions-loading-screen-modal{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:transparent}.edit-site-template-actions-loading-screen-modal.is-full-screen{background-color:#fff;box-shadow:0 0 0 transparent;min-height:100%;min-width:100%}.edit-site-template-actions-loading-screen-modal__content{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:50%;transform:translateX(50%)}.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 64px)}@media (min-width:960px){.edit-site-add-new-template__modal{width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;border-radius:2px;display:flex;flex-direction:column;justify-content:center;outline:1px solid transparent;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:transparent;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:transparent;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column-end:4;grid-column-start:1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-block-editor__block-list.is-navigation-block{padding:24px}.edit-site-visual-editor{align-items:center;background-color:#1e1e1e;display:block;height:100%;overflow:hidden;position:relative}.edit-site-visual-editor iframe{display:block;height:100%;width:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas{height:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-layout.is-full-canvas .edit-site-visual-editor.is-focus-mode{padding:48px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px;max-height:100%}.edit-site-visual-editor.is-focus-mode .components-resizable-box__container{overflow:visible}.edit-site-visual-editor .components-resizable-box__container{margin:0 auto;overflow:auto}.edit-site-visual-editor.is-view-mode{box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8)}.edit-site-visual-editor.is-view-mode .block-editor-block-contextual-toolbar{display:none}.edit-site-visual-editor__back-button{color:#fff;position:absolute;right:8px;top:8px}.edit-site-visual-editor__back-button:active:not([aria-disabled=true]),.edit-site-visual-editor__back-button:focus:not([aria-disabled=true]),.edit-site-visual-editor__back-button:hover{color:#f0f0f0}.resizable-editor__drag-handle{-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:2px;bottom:0;cursor:ew-resize;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.resizable-editor__drag-handle.is-variation-default{height:100px}.resizable-editor__drag-handle.is-variation-separator{height:100%;left:0;width:24px}.resizable-editor__drag-handle.is-variation-separator:after{background:transparent;border-radius:0;left:0;right:50%;transform:translateX(1px);transition:all .2s ease;transition-delay:.1s;width:2px}@media (prefers-reduced-motion:reduce){.resizable-editor__drag-handle.is-variation-separator:after{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.resizable-editor__drag-handle:after{background:#949494;border-radius:2px;bottom:24px;content:"";left:0;position:absolute;right:4px;top:24px;width:4px}.resizable-editor__drag-handle.is-left{right:-16px}.resizable-editor__drag-handle.is-right{left:-16px}.resizable-editor__drag-handle:active,.resizable-editor__drag-handle:hover{opacity:1}.resizable-editor__drag-handle:active.is-variation-default:after,.resizable-editor__drag-handle:hover.is-variation-default:after{background:#ccc}.resizable-editor__drag-handle:active.is-variation-separator:after,.resizable-editor__drag-handle:hover.is-variation-separator:after{background:var(--wp-admin-theme-color)}.resizable-editor__drag-handle:focus:after{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.resizable-editor__drag-handle.is-variation-separator:focus:after{border-radius:2px;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.edit-site-canvas-spinner{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.edit-site-code-editor{background-color:#fff;min-height:100%;position:relative;width:100%}.edit-site-code-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:12px;width:100%}@media (min-width:960px){.edit-site-code-editor__body{padding:24px}}.edit-site-code-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-site-code-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-site-code-editor__toolbar{padding:12px 24px}}.edit-site-code-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 0 0 auto}.edit-site-code-editor__toolbar .components-button svg{order:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{font-size:15px!important;padding:24px}}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder{color:rgba(30,30,30,.62)}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__iframe{display:block;max-width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-typography-panel__full-width-control{grid-column:1/-1;max-width:100%}.edit-site-global-styles-screen-css,.edit-site-global-styles-screen-typography{margin:16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .color-block-support-panel{border-top:none;padding-left:0;padding-right:0}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-variations_item{box-sizing:border-box}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border:1px solid #e0e0e0;border-radius:2px;padding:2px}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:2px;overflow:auto;position:relative;width:100%}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}[class][class].edit-site-global-styles-sidebar__revisions-count-badge{align-items:center;background:#2f2f2f;border-radius:2px;color:#fff;display:inline-flex;justify-content:center;min-height:24px;min-width:24px}.edit-site-global-styles-screen-revisions{margin:16px}.edit-site-global-styles-screen-revisions__revisions-list{list-style:none;margin:0}.edit-site-global-styles-screen-revisions__revisions-list li{border-right:1px solid #ddd;margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{padding:8px 12px 8px 0;position:relative}.edit-site-global-styles-screen-revisions__revision-item:first-child{padding-top:0}.edit-site-global-styles-screen-revisions__revision-item:last-child{padding-bottom:0}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border-radius:50%;content:"\a";display:inline-block;height:8px;position:absolute;right:0;top:50%;transform:translate(50%,-50%);width:8px}.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.edit-site-global-styles-screen-revisions__revision-button{display:block;height:auto;padding:8px 12px;width:100%}.edit-site-global-styles-screen-revisions__revision-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-button:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.is-selected .edit-site-global-styles-screen-revisions__revision-button{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));opacity:1}.is-selected .edit-site-global-styles-screen-revisions__meta{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__button{justify-content:center;width:100%}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__meta{align-items:center;color:#757575;display:flex;justify-content:space-between;text-align:right;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-header-edit-mode{align-items:center;background-color:#fff;border-bottom:1px solid #e0e0e0;box-sizing:border-box;color:#1e1e1e;display:flex;height:60px;justify-content:space-between;padding-right:60px;width:100%}.edit-site-header-edit-mode .edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode .edit-site-header-edit-mode__end{display:flex;justify-content:flex-end}.edit-site-header-edit-mode .edit-site-header-edit-mode__center{align-items:center;display:flex;flex-grow:1;height:100%;justify-content:center;margin:0 8px;min-width:0}.edit-site-header-edit-mode__toolbar{align-items:center;display:flex;padding-right:8px}@media (min-width:600px){.edit-site-header-edit-mode__toolbar{padding-right:24px}}@media (min-width:1280px){.edit-site-header-edit-mode__toolbar{padding-left:8px}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle{height:32px;margin-left:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-site-header-edit-mode__actions{align-items:center;display:inline-flex;gap:4px;padding-left:4px}@media (min-width:600px){.edit-site-header-edit-mode__actions{gap:8px;padding-left:10px}}.edit-site-header-edit-mode__actions .interface-pinned-items{display:none}@media (min-width:782px){.edit-site-header-edit-mode__actions .interface-pinned-items{display:inline-flex}}.edit-site-header-edit-mode__preview-options{opacity:1;transition:opacity .3s}.edit-site-header-edit-mode__preview-options.is-zoomed-out{opacity:0}.edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon.is-pressed,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:focus:not(:disabled),.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:before,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-icon{height:32px;margin-left:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-text.has-icon{padding:0 8px;width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon{width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon svg{display:none}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon:after{content:attr(aria-label)}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-site-header-edit-mode.show-icon-labels .is-tertiary:active{background-color:transparent;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-site-header-edit-mode.show-icon-labels .edit-site-save-button__button{padding-left:6px;padding-right:6px}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info:after{content:none}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info,.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__inserter-toggle.edit-site-header-edit-mode__inserter-toggle{height:36px;padding:0 8px}.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>*+*{margin-right:8px}.edit-site-document-actions{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;gap:8px;height:36px;justify-content:space-between;min-width:0;width:min(100%,450px)}.has-fixed-toolbar .edit-site-document-actions{width:min(100%,380px)}.edit-site-document-actions .components-button:hover{background:#e0e0e0;color:var(--wp-block-synced-color)}@media (min-width:782px){.edit-site-document-actions{width:50%}}@media (min-width:960px){.edit-site-document-actions{width:min(100%,450px)}}.edit-site-document-actions__command,.edit-site-document-actions__title{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.edit-site-document-actions__title:hover{color:var(--wp-block-synced-color)}.edit-site-document-actions__title .block-editor-block-icon{flex-shrink:0;min-width:24px}.edit-site-document-actions__title h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-document-actions.is-page .edit-site-document-actions__title,.edit-site-document-actions.is-page .edit-site-document-actions__title h1{color:#2f2f2f}.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-right .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions__shortcut{color:#2f2f2f}.edit-site-document-actions__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px;z-index:1}.edit-site-document-actions__back.components-button.has-icon.has-text:hover{color:currentColor}.edit-site-document-actions.is-animated .edit-site-document-actions__back.components-button.has-icon.has-text{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__back.components-button.has-icon.has-text{animation-delay:0s;animation-duration:1ms}}@keyframes edit-site-document-actions__slide-in-right{0%{opacity:0;transform:translateX(15%)}to{opacity:1;transform:translateX(0)}}@keyframes edit-site-document-actions__slide-in-left{0%{opacity:0;transform:translateX(-15%)}to{opacity:1;transform:translateX(0)}}.edit-site-list-header{align-items:center;box-sizing:border-box;display:flex;height:60px;justify-content:flex-end;padding-left:16px;position:relative;width:100%}body.is-fullscreen-mode .edit-site-list-header{padding-right:60px;transition:padding-right 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-delay:0s;transition-duration:0s}}.edit-site-list-header .edit-site-list-header__title{font-size:20px;margin:0;padding:0;position:absolute;right:0;text-align:center;width:100%}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list{background:#fff;border-radius:8px;box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8);flex-grow:1}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{align-items:center;background:#fff;padding:16px}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__content{padding:72px}}.edit-site-list-table{border:1px solid #ddd;border-radius:2px;border-spacing:0;margin:0 auto;max-width:960px;min-width:100%;overflow:hidden}.edit-site-list-table tr{align-items:center;border-top:1px solid #f0f0f0;box-sizing:border-box;display:flex;margin:0;padding:16px}.edit-site-list-table tr:first-child{border-top:0}@media (min-width:782px){.edit-site-list-table tr{padding:24px 32px}}.edit-site-list-table tr .edit-site-list-table-column:first-child{padding-left:24px;width:calc(60% - 18px)}.edit-site-list-table tr .edit-site-list-table-column:first-child a{display:inline-block;font-weight:500;margin-bottom:4px;text-decoration:none}.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){width:calc(40% - 18px);word-break:break-word}.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){flex-shrink:0;min-width:36px}.edit-site-list-table tr.edit-site-list-table-head{border-bottom:1px solid #ddd;border-top:none;color:#1e1e1e;font-size:16px;font-weight:600;text-align:right}.edit-site-list-table tr.edit-site-list-table-head th{font-weight:inherit}@media (min-width:782px){.edit-site-list.is-navigation-open .components-snackbar-list{margin-right:360px}.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-template__actions button:not(:last-child){margin-left:8px}.edit-site-list-added-by__icon{align-items:center;background:#2f2f2f;border-radius:100%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.edit-site-list-added-by__icon svg{fill:#fff}.edit-site-list-added-by__avatar{background:#2f2f2f;border-radius:100%;flex-shrink:0;height:32px;overflow:hidden;width:32px}.edit-site-list-added-by__avatar img{height:32px;object-fit:cover;opacity:0;transition:opacity .1s linear;width:32px}@media (prefers-reduced-motion:reduce){.edit-site-list-added-by__avatar img{transition-delay:0s;transition-duration:0s}}.edit-site-list-added-by__avatar.is-loaded img{opacity:1}.edit-site-list-added-by__customized-info{color:#757575;display:block}.edit-site-page{background:#fff;color:#2f2f2f;flex-grow:1;margin:60px 0 0;overflow:auto}@media (min-width:782px){.edit-site-page{border-radius:8px;margin:24px 0 24px 24px}}.edit-site-page-header{background:#fff;border-bottom:1px solid #f0f0f0;height:60px;padding:0 32px;position:sticky;top:0;z-index:2}.edit-site-page-header .components-text{color:#2f2f2f}.edit-site-page-header .components-heading{color:#1e1e1e}.edit-site-page-header .edit-site-page-header__sub-title{color:#757575;margin-top:8px}.edit-site-page-content{overflow-x:auto;padding:32px}.edit-site-patterns{background:none;border:1px solid #2f2f2f;border-radius:0;margin:60px 0 0}.edit-site-patterns .components-base-control{width:100%}@media (min-width:782px){.edit-site-patterns .components-base-control{width:auto}}.edit-site-patterns .components-text{color:#949494}.edit-site-patterns .components-heading{color:#e0e0e0}@media (min-width:782px){.edit-site-patterns{margin:0}}.edit-site-patterns .edit-site-patterns__search-block{flex-grow:1;min-width:-moz-fit-content;min-width:fit-content}.edit-site-patterns .edit-site-patterns__search input[type=search]{background:#2f2f2f;color:#e0e0e0;height:40px}.edit-site-patterns .edit-site-patterns__search input[type=search]:focus{background:#2f2f2f}.edit-site-patterns .edit-site-patterns__search svg{fill:#949494}.edit-site-patterns .edit-site-patterns__sync-status-filter{background:#2f2f2f;border:none;height:40px;max-width:100%;min-width:max-content;width:100%}@media (min-width:782px){.edit-site-patterns .edit-site-patterns__sync-status-filter{width:300px}}.edit-site-patterns .edit-site-patterns__sync-status-filter-option:not([aria-checked=true]){color:#949494}.edit-site-patterns .edit-site-patterns__sync-status-filter-option:active{background:#757575;color:#f0f0f0}.edit-site-patterns .edit-site-patterns__grid-pagination{width:-moz-fit-content;width:fit-content}.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary{background-color:#2f2f2f;color:#f0f0f0;height:32px;width:32px}.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary:disabled{background:none;color:#949494}.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary:hover:not(:disabled){background-color:#757575}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-patterns__grid{display:grid;gap:32px;grid-template-columns:1fr;margin-bottom:32px;margin-top:0;padding-top:2px}@media (min-width:960px){.edit-site-patterns__grid{grid-template-columns:1fr 1fr}}.edit-site-patterns__grid .edit-site-patterns__pattern{break-inside:avoid-column;display:flex;flex-direction:column}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;overflow:hidden;padding:0}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview:focus{box-shadow:inset 0 0 0 0 #fff,0 0 0 2px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive{cursor:default}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #2f2f2f;opacity:.8}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__button,.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__footer{color:#949494}.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview{align-items:center;border:1px dashed #2f2f2f;color:#949494;display:flex;justify-content:center;min-height:64px}.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-patterns__grid .edit-site-patterns__preview{flex:0 1 auto;margin-bottom:16px}.edit-site-patterns__load-more{align-self:center}.edit-site-patterns__pattern-title{color:#e0e0e0}.edit-site-patterns__pattern-title .is-link{color:#e0e0e0;text-decoration:none}.edit-site-patterns__pattern-title .is-link:focus,.edit-site-patterns__pattern-title .is-link:hover{color:#fff}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-icon{fill:#fff;background:var(--wp-block-synced-color);border-radius:4px}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon{display:inline-flex}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon svg{fill:currentcolor}.edit-site-patterns__no-results{color:#949494}.edit-site-table-wrapper{width:100%}.edit-site-table{border-collapse:collapse;border-color:inherit;position:relative;text-indent:0;width:100%}.edit-site-table a{text-decoration:none}.edit-site-table th{color:#757575;font-weight:400;padding:0 16px 16px;text-align:right}.edit-site-table td{padding:16px}.edit-site-table td,.edit-site-table th{vertical-align:center}.edit-site-table td:first-child,.edit-site-table th:first-child{padding-right:0}.edit-site-table td:last-child,.edit-site-table th:last-child{padding-left:0;text-align:left}.edit-site-table tr{border-bottom:1px solid #f0f0f0}.edit-site-sidebar-edit-mode{width:280px}.edit-site-sidebar-edit-mode>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar-edit-mode>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar-edit-mode .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{display:flex;flex:1;flex-direction:column}.edit-site-global-styles-sidebar__navigator-screen{flex:1}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-right:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-right:auto}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-sidebar-fixed-bottom-slot{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:content-box;display:flex;padding:16px;position:sticky}.edit-site-page-panels__edit-template-preview{border:1px solid #e0e0e0;height:200px;max-height:200px;overflow:hidden}.edit-site-page-panels__edit-template-button{justify-content:center}.edit-site-change-status__content .components-popover__content{min-width:320px;padding:16px}.edit-site-change-status__content .edit-site-change-status__options .components-base-control__field>.components-v-stack{gap:8px}.edit-site-change-status__content .edit-site-change-status__options label .components-text{display:block;margin-right:26px}.edit-site-summary-field .components-dropdown{flex-grow:1}.edit-site-summary-field .edit-site-summary-field__trigger{width:100%}.edit-site-summary-field .edit-site-summary-field__label{width:30%}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:16px;padding-right:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs ul{display:flex}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs li{margin:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 auto 0 0;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-site-sidebar-edit-mode__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-site-sidebar-edit-mode__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-sidebar-card{align-items:flex-start;display:flex}.edit-site-sidebar-card__content{flex-grow:1;margin-bottom:4px}.edit-site-sidebar-card__title{font-weight:500;line-height:24px}.edit-site-sidebar-card__title.edit-site-sidebar-card__title{margin:0}.edit-site-sidebar-card__description{font-size:13px}.edit-site-sidebar-card__icon{flex:0 0 24px;height:24px;margin-left:12px;width:24px}.edit-site-sidebar-card__header{display:flex;justify-content:space-between;margin:0 0 4px}.edit-site-template-card__template-areas{margin-top:16px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}.edit-site-template-card__actions{line-height:0}.edit-site-template-card__actions>.components-button.is-small.has-icon{min-width:auto;padding:0}.edit-site-template-revisions{margin-right:-4px}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-editor__interface-skeleton{opacity:1;transition:opacity .1s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-editor__interface-skeleton{transition-delay:0s;transition-duration:0s}}.edit-site-editor__interface-skeleton.is-loading{opacity:0}.edit-site-editor__interface-skeleton .interface-interface-skeleton__header{border:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:absolute;right:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{right:160px}}.folded .edit-site .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{right:0!important}.edit-site-create-pattern-modal__input input{height:40px}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;height:100%;padding:12px;text-align:right;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{font-size:12px;padding-top:4px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-right:auto;min-width:24px}.edit-site-editor__inserter-panel,.edit-site-editor__list-view-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-site-editor__list-view-panel{width:350px}}.edit-site-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.edit-site-editor__inserter-panel-content,.edit-site-editor__list-view-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-site-editor__inserter-panel-content{height:100%}}.edit-site-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:4px;padding-right:16px}.edit-site-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-site-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:transparent}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-site-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-site-editor__list-view-panel-content:focus,.edit-site-editor__list-view-panel-content:focus-within,.edit-site-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-site-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image .edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-start-template-options__modal .edit-site-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.edit-site-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{box-shadow:0 0 0 1px #ddd}.edit-site-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-site-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-site-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-site-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-site-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-site-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-site-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-site-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-site-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-site-layout{background:#1e1e1e;color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout__hub{height:60px;position:fixed;right:0;top:0;width:calc(100vw - 48px);z-index:3}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub{padding-left:0;width:60px}@media (min-width:782px){.edit-site-layout__hub{width:336px}}.edit-site-layout.is-full-canvas .edit-site-layout__hub{border-radius:0;box-shadow:none;padding-left:16px;width:100vw}@media (min-width:782px){.edit-site-layout.is-full-canvas .edit-site-layout__hub{padding-left:0;width:auto}}.edit-site-layout__header-container{z-index:4}.edit-site-layout__header{display:flex;height:60px;z-index:2}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__header{position:fixed;width:100vw}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:360px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;position:fixed!important;right:0;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{left:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__canvas-container{flex-grow:1;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas>div{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:24px;top:24px;width:calc(100% - 24px)}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .edit-site-visual-editor__editor-canvas,.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .interface-interface-skeleton__content,.edit-site-layout__canvas>div{border-radius:8px}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout.is-full-canvas .edit-site-layout__canvas>div{border-radius:0}.edit-site-layout__canvas .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-layout__view-mode-toggle.components-button{align-items:center;border-bottom:1px solid transparent;border-radius:0;color:#fff;display:flex;height:60px;justify-content:center;overflow:hidden;padding:0;position:relative;width:60px}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__view-mode-toggle.components-button{border-bottom-color:#e0e0e0;transition:border-bottom-color .15s ease-out .4s}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus{box-shadow:none}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}@media (prefers-reduced-motion:reduce){.edit-site-layout__view-mode-toggle.components-button:before{transition-delay:0s;transition-duration:0s}}.edit-site-layout__view-mode-toggle.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;border-radius:2px;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-right:1px solid #ddd}.edit-site-layout.has-fixed-toolbar .edit-site-layout__canvas-container{z-index:5}.edit-site-layout.has-fixed-toolbar .edit-site-site-hub{z-index:4}}@media (min-width:782px){.edit-site-layout.has-fixed-toolbar .edit-site-layout__header:focus-within{z-index:3}}.is-edit-mode.is-distraction-free .edit-site-layout__header-container{height:60px;left:0;position:absolute;right:0;top:0;width:100%;z-index:4}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within div{transform:translateX(0) translateY(0) translateZ(0)!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header,.is-edit-mode.is-distraction-free .edit-site-site-hub{position:absolute;top:0;z-index:2}.is-edit-mode.is-distraction-free .edit-site-site-hub{z-index:3}.is-edit-mode.is-distraction-free .edit-site-layout__header{width:100%}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:24px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{flex-grow:1;overflow-y:auto}.edit-site-sidebar__content .components-navigator-screen{display:flex;flex-direction:column;height:100%;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:stable;scrollbar-width:thin;will-change:transform}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-track{background-color:transparent}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-site-sidebar__content .components-navigator-screen:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__content .components-navigator-screen:focus,.edit-site-sidebar__content .components-navigator-screen:focus-within,.edit-site-sidebar__content .components-navigator-screen:hover{scrollbar-color:#757575 transparent}@media (hover:none){.edit-site-sidebar__content .components-navigator-screen{scrollbar-color:#757575 transparent}}.edit-site-sidebar__footer{border-top:1px solid #2f2f2f;flex-shrink:0;margin:0 24px;padding:24px 0}.edit-site-sidebar__content>div{padding:0 12px}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid transparent}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;border-radius:2px;color:#949494;min-height:40px;padding:8px 16px 8px 6px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current]{background:var(--wp-admin-theme-color);color:#fff}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#949494}.edit-site-sidebar-navigation-item.components-item:is(a){align-items:center;display:flex;text-decoration:none}.edit-site-sidebar-navigation-item.components-item:is(a):focus{box-shadow:none;outline:none}.edit-site-sidebar-navigation-item.components-item:is(a):focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-left:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-item-group{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__meta{color:#ccc;margin:0 16px 16px 0}.edit-site-sidebar-navigation-screen__meta .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__page-link{color:#949494;display:inline-block}.edit-site-sidebar-navigation-screen__page-link:focus,.edit-site-sidebar-navigation-screen__page-link:hover{color:#fff}.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon{margin-right:4px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:108px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow:hidden;overflow-wrap:break-word;padding:6px 0 0}.edit-site-sidebar-navigation-screen__actions{flex-shrink:0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #f0f0f0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:16px 0;position:sticky}.edit-site-sidebar__notice{background:#2f2f2f;color:#ddd;margin:24px 0}.edit-site-sidebar__notice.is-dismissible{padding-left:8px}.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#f0f0f0}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:#2f2f2f}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer{padding-bottom:8px;padding-right:16px;padding-top:8px}.edit-site-sidebar-navigation-screen-global-styles__revisions{border-radius:2px}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover){color:#e0e0e0}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover) .edit-site-sidebar-navigation-screen-global-styles__revisions__label{color:#949494}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-screen-page__featured-image-wrapper{background-color:#2f2f2f;border-radius:4px;margin-bottom:16px;min-height:128px}.edit-site-sidebar-navigation-screen-page__featured-image{align-items:center;background-position:50% 50%;background-size:cover;border-radius:2px;color:#949494;display:flex;height:128px;justify-content:center;overflow:hidden;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image img{height:100%;object-fit:cover;object-position:50% 50%;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image-description{font-size:12px}.edit-site-sidebar-navigation-screen-page__excerpt{font-size:12px;margin-bottom:24px}.edit-site-sidebar-navigation-screen-page__modified{color:#949494;margin:0 16px 16px 0}.edit-site-sidebar-navigation-screen-page__modified .components-text{color:#949494}.edit-site-sidebar-navigation-screen-page__status{display:inline-flex}.edit-site-sidebar-navigation-screen-page__status time{display:contents}.edit-site-sidebar-navigation-screen-page__status svg{fill:#f0b849;height:16px;margin-left:8px;width:16px}.edit-site-sidebar-navigation-screen-page__status.has-future-status svg,.edit-site-sidebar-navigation-screen-page__status.has-publish-status svg{fill:#4ab866}.edit-site-sidebar-navigation-details-screen-panel{margin:24px 0}.edit-site-sidebar-navigation-details-screen-panel:last-of-type{margin-bottom:0}.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading{color:#ccc;font-size:11px;font-weight:500;margin-bottom:0;padding:0;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label{color:#949494;width:100px}.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value{color:#e0e0e0}.edit-site-sidebar-navigation-screen-pattern__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon{height:24px;margin-left:8px;width:24px}.edit-site-sidebar-navigation-screen-pattern__lock-icon{display:inline-flex}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:#949494}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen-template__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-template__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-template__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-template__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon{height:24px;margin-left:8px;width:24px}.edit-site-sidebar-navigation-screen-template__template-area-button{align-items:center;border-radius:4px;color:#fff;display:flex;flex-wrap:nowrap;width:100%}.edit-site-sidebar-navigation-screen-template__template-area-button:focus,.edit-site-sidebar-navigation-screen-template__template-area-button:hover{background:#2f2f2f;color:#fff}.edit-site-sidebar-navigation-screen-template__template-area-label-text{flex-grow:1;margin:0 4px 0 16px}.edit-site-sidebar-navigation-screen-template__template-icon{display:flex}.edit-site-site-hub{align-items:center;display:flex;gap:8px;justify-content:space-between}.edit-site-site-hub .edit-site-site-hub__container{gap:0}.edit-site-site-hub .edit-site-site-hub__site-title,.edit-site-site-hub .edit-site-site-hub_toggle-command-center{transition:opacity .1s ease}.edit-site-site-hub .edit-site-site-hub__site-title.is-transparent,.edit-site-site-hub .edit-site-site-hub_toggle-command-center.is-transparent{opacity:0!important}.edit-site-site-hub .edit-site-site-hub__site-view-link{flex-grow:0;margin-left:var(--wp-admin-border-width-focus)}@media (min-width:480px){.edit-site-site-hub .edit-site-site-hub__site-view-link{opacity:0;transition:opacity .2s ease-in-out}}.edit-site-site-hub .edit-site-site-hub__site-view-link:focus{opacity:1}.edit-site-site-hub .edit-site-site-hub__site-view-link svg{fill:#e0e0e0}.edit-site-site-hub:hover .edit-site-site-hub__site-view-link{opacity:1}.edit-site-site-hub__post-type{opacity:.6}.edit-site-site-hub__view-mode-toggle-container{background:#1e1e1e;flex-shrink:0;height:60px;width:60px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background{background:transparent}.edit-site-site-hub__text-content{overflow:hidden}.edit-site-site-hub__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__site-title{color:#e0e0e0;flex-grow:1;margin-right:4px}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:hover{color:#f0f0f0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf{border-radius:2px;max-width:calc(100% - 4px)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current]{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu{margin-right:-8px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected>td{background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents{color:inherit}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu{opacity:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell{opacity:1}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{width:100%}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-left:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .popover-slot .wp-block-navigation-submenu{display:none}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-site-icon__icon{fill:currentColor}.edit-site-site-icon__image{background:#333;border-radius:4px;height:auto;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-site-icon__image{border-radius:0}.edit-site-style-book{height:100%}.edit-site-style-book.is-button,.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tab-panel .components-tab-panel__tabs{background:#fff;color:#1e1e1e}.edit-site-style-book__tab-panel .components-tab-panel__tab-content{bottom:0;left:0;overflow:auto;padding:0;position:absolute;right:0;top:48px}.edit-site-editor-canvas-container{background:#fff;border-radius:2px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:all .3s}.edit-site-editor-canvas-container__close-button{background:#fff;left:8px;position:absolute;top:6px;z-index:1}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:hsla(0,0%,46%,.4);border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid transparent}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}body.js #wpadminbar{display:none}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:#1e1e1e}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#1e1e1e}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-left:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{position:absolute;right:16px;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-right:160px;padding-right:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-right:48px;margin-top:0}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input{background:#fff;border:1px solid #ddd}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{overflow:scroll}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:right;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}.edit-site-template-actions-loading-screen-modal{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:transparent}.edit-site-template-actions-loading-screen-modal.is-full-screen{background-color:#fff;box-shadow:0 0 0 transparent;min-height:100%;min-width:100%}.edit-site-template-actions-loading-screen-modal__content{align-items:center;display:flex;height:100%;justify-content:center;position:absolute;right:50%;transform:translateX(50%)}.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 64px)}@media (min-width:960px){.edit-site-add-new-template__modal{width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;border-radius:2px;display:flex;flex-direction:column;justify-content:center;outline:1px solid transparent;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:transparent;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:transparent;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column-end:4;grid-column-start:1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-block-editor__block-list.is-navigation-block{padding:24px}.edit-site-visual-editor{align-items:center;background-color:#1e1e1e;display:block;height:100%;overflow:hidden;position:relative}.edit-site-visual-editor iframe{display:block;height:100%;width:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas{height:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-layout.is-full-canvas .edit-site-visual-editor.is-focus-mode{padding:48px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px;max-height:100%}.edit-site-visual-editor.is-focus-mode .components-resizable-box__container{overflow:visible}.edit-site-visual-editor .components-resizable-box__container{margin:0 auto;overflow:auto}.edit-site-visual-editor.is-view-mode{box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8)}.edit-site-visual-editor.is-view-mode .block-editor-block-contextual-toolbar{display:none}.edit-site-visual-editor__back-button{color:#fff;position:absolute;right:8px;top:8px}.edit-site-visual-editor__back-button:active:not([aria-disabled=true]),.edit-site-visual-editor__back-button:focus:not([aria-disabled=true]),.edit-site-visual-editor__back-button:hover{color:#f0f0f0}.resizable-editor__drag-handle{-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:2px;bottom:0;cursor:ew-resize;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.resizable-editor__drag-handle.is-variation-default{height:100px}.resizable-editor__drag-handle.is-variation-separator{height:100%;left:0;width:24px}.resizable-editor__drag-handle.is-variation-separator:after{background:transparent;border-radius:0;left:0;right:50%;transform:translateX(1px);transition:all .2s ease;transition-delay:.1s;width:2px}@media (prefers-reduced-motion:reduce){.resizable-editor__drag-handle.is-variation-separator:after{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.resizable-editor__drag-handle:after{background:#949494;border-radius:2px;bottom:24px;content:"";left:0;position:absolute;right:4px;top:24px;width:4px}.resizable-editor__drag-handle.is-left{right:-16px}.resizable-editor__drag-handle.is-right{left:-16px}.resizable-editor__drag-handle:active,.resizable-editor__drag-handle:hover{opacity:1}.resizable-editor__drag-handle:active.is-variation-default:after,.resizable-editor__drag-handle:hover.is-variation-default:after{background:#ccc}.resizable-editor__drag-handle:active.is-variation-separator:after,.resizable-editor__drag-handle:hover.is-variation-separator:after{background:var(--wp-admin-theme-color)}.resizable-editor__drag-handle:focus:after{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.resizable-editor__drag-handle.is-variation-separator:focus:after{border-radius:2px;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.edit-site-canvas-spinner{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.edit-site-code-editor{background-color:#fff;min-height:100%;position:relative;width:100%}.edit-site-code-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:12px;width:100%}@media (min-width:960px){.edit-site-code-editor__body{padding:24px}}.edit-site-code-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-site-code-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-site-code-editor__toolbar{padding:12px 24px}}.edit-site-code-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 0 0 auto}.edit-site-code-editor__toolbar .components-button svg{order:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{font-size:15px!important;padding:24px}}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder{color:rgba(30,30,30,.62)}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__iframe{display:block;max-width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-typography-panel__full-width-control{grid-column:1/-1;max-width:100%}.edit-site-global-styles-screen-css,.edit-site-global-styles-screen-typography{margin:16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .color-block-support-panel{border-top:none;padding-left:0;padding-right:0}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-variations_item{box-sizing:border-box}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border:1px solid #e0e0e0;border-radius:2px;padding:2px}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:2px;overflow:auto;position:relative;width:100%}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}[class][class].edit-site-global-styles-sidebar__revisions-count-badge{align-items:center;background:#2f2f2f;border-radius:2px;color:#fff;display:inline-flex;justify-content:center;min-height:24px;min-width:24px}.edit-site-global-styles-screen-revisions{margin:16px}.edit-site-global-styles-screen-revisions__revisions-list{list-style:none;margin:0}.edit-site-global-styles-screen-revisions__revisions-list li{border-right:1px solid #ddd;margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{padding:8px 12px 8px 0;position:relative}.edit-site-global-styles-screen-revisions__revision-item:first-child{padding-top:0}.edit-site-global-styles-screen-revisions__revision-item:last-child{padding-bottom:0}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border-radius:50%;content:"\a";display:inline-block;height:8px;position:absolute;right:0;top:50%;transform:translate(50%,-50%);width:8px}.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.edit-site-global-styles-screen-revisions__revision-button{display:block;height:auto;padding:8px 12px;width:100%}.edit-site-global-styles-screen-revisions__revision-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-button:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.is-selected .edit-site-global-styles-screen-revisions__revision-button{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));opacity:1}.is-selected .edit-site-global-styles-screen-revisions__meta{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__button{justify-content:center;width:100%}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__meta{align-items:center;color:#757575;display:flex;justify-content:space-between;text-align:right;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-header-edit-mode{align-items:center;background-color:#fff;border-bottom:1px solid #e0e0e0;box-sizing:border-box;color:#1e1e1e;display:flex;height:60px;justify-content:space-between;padding-right:60px;width:100%}.edit-site-header-edit-mode .edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode .edit-site-header-edit-mode__end{display:flex;justify-content:flex-end}.edit-site-header-edit-mode .edit-site-header-edit-mode__center{align-items:center;display:flex;flex-grow:1;height:100%;justify-content:center;margin:0 8px;min-width:0}.edit-site-header-edit-mode__toolbar{align-items:center;display:flex;padding-right:8px}@media (min-width:600px){.edit-site-header-edit-mode__toolbar{padding-right:24px}}@media (min-width:1280px){.edit-site-header-edit-mode__toolbar{padding-left:8px}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle{height:32px;margin-left:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-site-header-edit-mode__actions{align-items:center;display:inline-flex;gap:4px;padding-left:4px}@media (min-width:600px){.edit-site-header-edit-mode__actions{gap:8px;padding-left:10px}}.edit-site-header-edit-mode__actions .interface-pinned-items{display:none}@media (min-width:782px){.edit-site-header-edit-mode__actions .interface-pinned-items{display:inline-flex}}.edit-site-header-edit-mode__preview-options{opacity:1;transition:opacity .3s}.edit-site-header-edit-mode__preview-options.is-zoomed-out{opacity:0}.edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon.is-pressed,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:focus:not(:disabled),.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:before,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-icon{height:32px;margin-left:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-text.has-icon{padding:0 8px;width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon{width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon svg{display:none}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon:after{content:attr(aria-label)}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-site-header-edit-mode.show-icon-labels .is-tertiary:active{background-color:transparent;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-site-header-edit-mode.show-icon-labels .edit-site-save-button__button{padding-left:6px;padding-right:6px}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info:after{content:none}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info,.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__inserter-toggle.edit-site-header-edit-mode__inserter-toggle{height:36px;padding:0 8px}.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>*+*{margin-right:8px}.edit-site-document-actions{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;height:36px;justify-content:space-between;min-width:0;width:min(100%,450px)}.has-fixed-toolbar .edit-site-document-actions{width:min(100%,380px)}.edit-site-document-actions:hover{background-color:#e0e0e0}.edit-site-document-actions .components-button{border-radius:4px}.edit-site-document-actions .components-button:hover{background:#e0e0e0;color:var(--wp-block-synced-color)}@media (min-width:960px){.edit-site-document-actions{width:min(100%,450px)}}.edit-site-document-actions__command,.edit-site-document-actions__title{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.edit-site-document-actions__title{padding-right:32px}.edit-site-document-actions__title:hover{color:var(--wp-block-synced-color)}.edit-site-document-actions__title .block-editor-block-icon{flex-shrink:0;min-width:24px}.edit-site-document-actions__title h1{color:var(--wp-block-synced-color);max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-document-actions.is-page .edit-site-document-actions__title,.edit-site-document-actions.is-page .edit-site-document-actions__title h1{color:#2f2f2f}.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-right .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions__shortcut{color:#2f2f2f;min-width:32px}.edit-site-document-actions__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px;position:absolute;z-index:1}.edit-site-document-actions__back.components-button.has-icon.has-text:hover{background-color:transparent;color:currentColor}.edit-site-document-actions.is-animated .edit-site-document-actions__back.components-button.has-icon.has-text{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__back.components-button.has-icon.has-text{animation-delay:0s;animation-duration:1ms}}@keyframes edit-site-document-actions__slide-in-right{0%{opacity:0;transform:translateX(15%)}to{opacity:1;transform:translateX(0)}}@keyframes edit-site-document-actions__slide-in-left{0%{opacity:0;transform:translateX(-15%)}to{opacity:1;transform:translateX(0)}}.edit-site-list-header{align-items:center;box-sizing:border-box;display:flex;height:60px;justify-content:flex-end;padding-left:16px;position:relative;width:100%}body.is-fullscreen-mode .edit-site-list-header{padding-right:60px;transition:padding-right 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-delay:0s;transition-duration:0s}}.edit-site-list-header .edit-site-list-header__title{font-size:20px;margin:0;padding:0;position:absolute;right:0;text-align:center;width:100%}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list{background:#fff;border-radius:8px;box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8);flex-grow:1}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{align-items:center;background:#fff;padding:16px}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__content{padding:72px}}.edit-site-list-table{border:1px solid #ddd;border-radius:2px;border-spacing:0;margin:0 auto;max-width:960px;min-width:100%;overflow:hidden}.edit-site-list-table tr{align-items:center;border-top:1px solid #f0f0f0;box-sizing:border-box;display:flex;margin:0;padding:16px}.edit-site-list-table tr:first-child{border-top:0}@media (min-width:782px){.edit-site-list-table tr{padding:24px 32px}}.edit-site-list-table tr .edit-site-list-table-column:first-child{padding-left:24px;width:calc(60% - 18px)}.edit-site-list-table tr .edit-site-list-table-column:first-child a{display:inline-block;font-weight:500;margin-bottom:4px;text-decoration:none}.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){width:calc(40% - 18px);word-break:break-word}.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){flex-shrink:0;min-width:36px}.edit-site-list-table tr.edit-site-list-table-head{border-bottom:1px solid #ddd;border-top:none;color:#1e1e1e;font-size:16px;font-weight:600;text-align:right}.edit-site-list-table tr.edit-site-list-table-head th{font-weight:inherit}@media (min-width:782px){.edit-site-list.is-navigation-open .components-snackbar-list{margin-right:360px}.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-template__actions button:not(:last-child){margin-left:8px}.edit-site-list-added-by__icon{align-items:center;background:#2f2f2f;border-radius:100%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.edit-site-list-added-by__icon svg{fill:#fff}.edit-site-list-added-by__avatar{background:#2f2f2f;border-radius:100%;flex-shrink:0;height:32px;overflow:hidden;width:32px}.edit-site-list-added-by__avatar img{height:32px;object-fit:cover;opacity:0;transition:opacity .1s linear;width:32px}@media (prefers-reduced-motion:reduce){.edit-site-list-added-by__avatar img{transition-delay:0s;transition-duration:0s}}.edit-site-list-added-by__avatar.is-loaded img{opacity:1}.edit-site-list-added-by__customized-info{color:#757575;display:block}.edit-site-page{background:#fff;color:#2f2f2f;flex-grow:1;margin:60px 0 0;overflow:hidden}@media (min-width:782px){.edit-site-page{border-radius:8px;margin:24px 0 24px 24px}}.edit-site-page-header{background:#fff;border-bottom:1px solid #f0f0f0;min-height:60px;padding:0 32px;position:sticky;top:0;z-index:2}.edit-site-page-header .components-text{color:#2f2f2f}.edit-site-page-header .components-heading{color:#1e1e1e}.edit-site-page-header .edit-site-page-header__sub-title{color:#757575;margin-top:8px}.edit-site-page-content{display:flex;flex-flow:column;height:100%;overflow:auto;position:relative;z-index:1}.edit-site-patterns{background:none;border:1px solid #2f2f2f;border-radius:0;margin:60px 0 0}.edit-site-patterns .components-base-control{width:100%}@media (min-width:782px){.edit-site-patterns .components-base-control{width:auto}}.edit-site-patterns .components-text{color:#949494}.edit-site-patterns .components-heading{color:#e0e0e0}@media (min-width:782px){.edit-site-patterns{margin:0}}.edit-site-patterns .edit-site-patterns__search-block{flex-grow:1;min-width:-moz-fit-content;min-width:fit-content}.edit-site-patterns .edit-site-patterns__search input[type=search]{background:#2f2f2f;color:#e0e0e0;height:40px}.edit-site-patterns .edit-site-patterns__search input[type=search]:focus{background:#2f2f2f}.edit-site-patterns .edit-site-patterns__search svg{fill:#949494}.edit-site-patterns .edit-site-patterns__sync-status-filter{background:#2f2f2f;border:none;height:40px;max-width:100%;min-width:max-content;width:100%}@media (min-width:782px){.edit-site-patterns .edit-site-patterns__sync-status-filter{width:300px}}.edit-site-patterns .edit-site-patterns__sync-status-filter-option:not([aria-checked=true]){color:#949494}.edit-site-patterns .edit-site-patterns__sync-status-filter-option:active{background:#757575;color:#f0f0f0}.edit-site-patterns .edit-site-patterns__grid-pagination{width:-moz-fit-content;width:fit-content}.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary{background-color:#2f2f2f;color:#f0f0f0;height:32px;width:32px}.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary:disabled{background:none;color:#949494}.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary:hover:not(:disabled){background-color:#757575}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-patterns__grid{display:grid;gap:32px;grid-template-columns:1fr;margin-bottom:32px;margin-top:0;padding-top:2px}@media (min-width:960px){.edit-site-patterns__grid{grid-template-columns:1fr 1fr}}.edit-site-patterns__grid .edit-site-patterns__pattern{break-inside:avoid-column;display:flex;flex-direction:column}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;overflow:hidden;padding:0}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview:focus{box-shadow:inset 0 0 0 0 #fff,0 0 0 2px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive{cursor:default}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #2f2f2f;opacity:.8}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__button,.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__footer{color:#949494}.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview{align-items:center;border:1px dashed #2f2f2f;color:#949494;display:flex;justify-content:center;min-height:64px}.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-patterns__grid .edit-site-patterns__preview{flex:0 1 auto;margin-bottom:16px}.edit-site-patterns__load-more{align-self:center}.edit-site-patterns__pattern-title{color:#e0e0e0}.edit-site-patterns__pattern-title .is-link{color:#e0e0e0;text-decoration:none}.edit-site-patterns__pattern-title .is-link:focus,.edit-site-patterns__pattern-title .is-link:hover{color:#fff}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-icon{fill:#fff;background:var(--wp-block-synced-color);border-radius:4px}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon{display:inline-flex}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon svg{fill:currentcolor}.edit-site-patterns__no-results{color:#949494}.edit-site-table-wrapper{padding:32px;width:100%}.edit-site-table{border-collapse:collapse;border-color:inherit;position:relative;text-indent:0;width:100%}.edit-site-table a{text-decoration:none}.edit-site-table th{color:#757575;font-weight:400;padding:0 16px 16px;text-align:right}.edit-site-table td{padding:16px}.edit-site-table td,.edit-site-table th{vertical-align:center}.edit-site-table td:first-child,.edit-site-table th:first-child{padding-right:0}.edit-site-table td:last-child,.edit-site-table th:last-child{padding-left:0;text-align:left}.edit-site-table tr{border-bottom:1px solid #f0f0f0}.edit-site-sidebar-edit-mode{width:280px}.edit-site-sidebar-edit-mode>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar-edit-mode>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar-edit-mode .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{display:flex;flex:1;flex-direction:column}.edit-site-global-styles-sidebar__navigator-screen{flex:1}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-right:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-right:auto}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-sidebar-fixed-bottom-slot{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:content-box;display:flex;padding:16px;position:sticky}.edit-site-page-panels__edit-template-preview{border:1px solid #e0e0e0;height:200px;max-height:200px;overflow:hidden}.edit-site-page-panels__edit-template-button{justify-content:center}.edit-site-change-status__content .components-popover__content{min-width:320px;padding:16px}.edit-site-change-status__content .edit-site-change-status__options .components-base-control__field>.components-v-stack{gap:8px}.edit-site-change-status__content .edit-site-change-status__options label .components-text{display:block;margin-right:26px}.edit-site-summary-field .components-dropdown{flex-grow:1}.edit-site-summary-field .edit-site-summary-field__trigger{width:100%}.edit-site-summary-field .edit-site-summary-field__label{width:30%}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:16px;padding-right:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs ul{display:flex}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs li{margin:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 auto 0 0;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-site-sidebar-edit-mode__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-site-sidebar-edit-mode__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-sidebar-card{align-items:flex-start;display:flex}.edit-site-sidebar-card__content{flex-grow:1;margin-bottom:4px}.edit-site-sidebar-card__title{font-weight:500;line-height:24px}.edit-site-sidebar-card__title.edit-site-sidebar-card__title{margin:0}.edit-site-sidebar-card__description{font-size:13px}.edit-site-sidebar-card__icon{flex:0 0 24px;height:24px;margin-left:12px;width:24px}.edit-site-sidebar-card__header{display:flex;justify-content:space-between;margin:0 0 4px}.edit-site-template-card__template-areas{margin-top:16px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}.edit-site-template-card__actions{line-height:0}.edit-site-template-card__actions>.components-button.is-small.has-icon{min-width:auto;padding:0}.edit-site-template-revisions{margin-right:-4px}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-editor__interface-skeleton{opacity:1;transition:opacity .1s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-editor__interface-skeleton{transition-delay:0s;transition-duration:0s}}.edit-site-editor__interface-skeleton.is-loading{opacity:0}.edit-site-editor__interface-skeleton .interface-interface-skeleton__header{border:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:absolute;right:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{right:160px}}.folded .edit-site .components-editor-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{right:0!important}.edit-site-create-pattern-modal__input input{height:40px}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;height:100%;padding:12px;text-align:right;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{font-size:12px;padding-top:4px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-right:auto;min-width:24px}.edit-site-editor__inserter-panel,.edit-site-editor__list-view-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-site-editor__list-view-panel{width:350px}}.edit-site-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.edit-site-editor__inserter-panel-content,.edit-site-editor__list-view-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-site-editor__inserter-panel-content{height:100%}}.edit-site-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:4px;padding-right:16px}.edit-site-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-site-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:transparent}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-site-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-site-editor__list-view-panel-content:focus,.edit-site-editor__list-view-panel-content:focus-within,.edit-site-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-site-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image .edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-start-template-options__modal .edit-site-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.edit-site-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{box-shadow:0 0 0 1px #ddd}.edit-site-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-site-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-site-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-site-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-site-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-site-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-site-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-site-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-site-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.edit-site-layout{background:#1e1e1e;color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout__hub{height:60px;position:fixed;right:0;top:0;width:calc(100vw - 48px);z-index:3}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub{padding-left:0;width:60px}@media (min-width:782px){.edit-site-layout__hub{width:336px}}.edit-site-layout.is-full-canvas .edit-site-layout__hub{border-radius:0;box-shadow:none;padding-left:16px;width:100vw}@media (min-width:782px){.edit-site-layout.is-full-canvas .edit-site-layout__hub{padding-left:0;width:auto}}.edit-site-layout__header-container{z-index:4}.edit-site-layout__header{display:flex;height:60px;z-index:2}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__header{position:fixed;width:100vw}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:360px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;position:fixed!important;right:0;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{left:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__canvas-container{flex-grow:1;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;position:absolute;right:0;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas>div{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:24px;top:24px;width:calc(100% - 24px)}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .edit-site-visual-editor__editor-canvas,.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .interface-interface-skeleton__content,.edit-site-layout__canvas>div{border-radius:8px}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout.is-full-canvas .edit-site-layout__canvas>div{border-radius:0}.edit-site-layout__canvas .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-layout__view-mode-toggle.components-button{align-items:center;border-bottom:1px solid transparent;border-radius:0;color:#fff;display:flex;height:60px;justify-content:center;overflow:hidden;padding:0;position:relative;width:60px}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__view-mode-toggle.components-button{border-bottom-color:#e0e0e0;transition:border-bottom-color .15s ease-out .4s}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus{box-shadow:none}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}@media (prefers-reduced-motion:reduce){.edit-site-layout__view-mode-toggle.components-button:before{transition-delay:0s;transition-duration:0s}}.edit-site-layout__view-mode-toggle.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;border-radius:2px;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-right:1px solid #ddd}.edit-site-layout.has-fixed-toolbar .edit-site-layout__canvas-container{z-index:5}.edit-site-layout.has-fixed-toolbar .edit-site-site-hub{z-index:4}}@media (min-width:782px){.edit-site-layout.has-fixed-toolbar .edit-site-layout__header:focus-within{z-index:3}}.is-edit-mode.is-distraction-free .edit-site-layout__header-container{height:60px;left:0;position:absolute;right:0;top:0;width:100%;z-index:4}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within div{transform:translateX(0) translateY(0) translateZ(0)!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header,.is-edit-mode.is-distraction-free .edit-site-site-hub{position:absolute;top:0;z-index:2}.is-edit-mode.is-distraction-free .edit-site-site-hub{z-index:3}.is-edit-mode.is-distraction-free .edit-site-layout__header{width:100%}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:24px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{flex-grow:1;overflow-y:auto}.edit-site-sidebar__content .components-navigator-screen{display:flex;flex-direction:column;height:100%;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:stable;scrollbar-width:thin;will-change:transform}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-track{background-color:transparent}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-site-sidebar__content .components-navigator-screen:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__content .components-navigator-screen:focus,.edit-site-sidebar__content .components-navigator-screen:focus-within,.edit-site-sidebar__content .components-navigator-screen:hover{scrollbar-color:#757575 transparent}@media (hover:none){.edit-site-sidebar__content .components-navigator-screen{scrollbar-color:#757575 transparent}}.edit-site-sidebar__footer{border-top:1px solid #2f2f2f;flex-shrink:0;margin:0 24px;padding:24px 0}.edit-site-sidebar__content>div{padding:0 12px}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid transparent}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;border-radius:2px;color:#949494;min-height:40px;padding:8px 16px 8px 6px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current]{background:var(--wp-admin-theme-color);color:#fff}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#949494}.edit-site-sidebar-navigation-item.components-item:is(a){align-items:center;display:flex;text-decoration:none}.edit-site-sidebar-navigation-item.components-item:is(a):focus{box-shadow:none;outline:none}.edit-site-sidebar-navigation-item.components-item:is(a):focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-left:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-item-group{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__meta{color:#ccc;margin:0 16px 16px 0}.edit-site-sidebar-navigation-screen__meta .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__page-link{color:#949494;display:inline-block}.edit-site-sidebar-navigation-screen__page-link:focus,.edit-site-sidebar-navigation-screen__page-link:hover{color:#fff}.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon{margin-right:4px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:108px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow:hidden;overflow-wrap:break-word;padding:6px 0 0}.edit-site-sidebar-navigation-screen__actions{flex-shrink:0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #f0f0f0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:16px 0;position:sticky}.edit-site-sidebar__notice{background:#2f2f2f;color:#ddd;margin:24px 0}.edit-site-sidebar__notice.is-dismissible{padding-left:8px}.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#f0f0f0}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:#2f2f2f}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer{padding-bottom:8px;padding-right:16px;padding-top:8px}.edit-site-sidebar-navigation-screen-global-styles__revisions{border-radius:2px}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover){color:#e0e0e0}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover) .edit-site-sidebar-navigation-screen-global-styles__revisions__label{color:#949494}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-screen-page__featured-image-wrapper{background-color:#2f2f2f;border-radius:4px;margin-bottom:16px;min-height:128px}.edit-site-sidebar-navigation-screen-page__featured-image{align-items:center;background-position:50% 50%;background-size:cover;border-radius:2px;color:#949494;display:flex;height:128px;justify-content:center;overflow:hidden;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image img{height:100%;object-fit:cover;object-position:50% 50%;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image-description{font-size:12px}.edit-site-sidebar-navigation-screen-page__excerpt{font-size:12px;margin-bottom:24px}.edit-site-sidebar-navigation-screen-page__modified{color:#949494;margin:0 16px 16px 0}.edit-site-sidebar-navigation-screen-page__modified .components-text{color:#949494}.edit-site-sidebar-navigation-screen-page__status{display:inline-flex}.edit-site-sidebar-navigation-screen-page__status time{display:contents}.edit-site-sidebar-navigation-screen-page__status svg{fill:#f0b849;height:16px;margin-left:8px;width:16px}.edit-site-sidebar-navigation-screen-page__status.has-future-status svg,.edit-site-sidebar-navigation-screen-page__status.has-publish-status svg{fill:#4ab866}.edit-site-sidebar-navigation-details-screen-panel{margin:24px 0}.edit-site-sidebar-navigation-details-screen-panel:last-of-type{margin-bottom:0}.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading{color:#ccc;font-size:11px;font-weight:500;margin-bottom:0;padding:0;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label{color:#949494;width:100px}.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value{color:#e0e0e0}.edit-site-sidebar-navigation-screen-pattern__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon{height:24px;margin-left:8px;width:24px}.edit-site-sidebar-navigation-screen-pattern__lock-icon{display:inline-flex}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:#949494}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen-template__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-template__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-template__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-template__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon{height:24px;margin-left:8px;width:24px}.edit-site-sidebar-navigation-screen-template__template-area-button{align-items:center;border-radius:4px;color:#fff;display:flex;flex-wrap:nowrap;width:100%}.edit-site-sidebar-navigation-screen-template__template-area-button:focus,.edit-site-sidebar-navigation-screen-template__template-area-button:hover{background:#2f2f2f;color:#fff}.edit-site-sidebar-navigation-screen-template__template-area-label-text{flex-grow:1;margin:0 4px 0 16px}.edit-site-sidebar-navigation-screen-template__template-icon{display:flex}.edit-site-site-hub{align-items:center;display:flex;gap:8px;justify-content:space-between}.edit-site-site-hub .edit-site-site-hub__container{gap:0}.edit-site-site-hub .edit-site-site-hub__site-title,.edit-site-site-hub .edit-site-site-hub_toggle-command-center{transition:opacity .1s ease}.edit-site-site-hub .edit-site-site-hub__site-title.is-transparent,.edit-site-site-hub .edit-site-site-hub_toggle-command-center.is-transparent{opacity:0!important}.edit-site-site-hub .edit-site-site-hub__site-view-link{flex-grow:0;margin-left:var(--wp-admin-border-width-focus)}@media (min-width:480px){.edit-site-site-hub .edit-site-site-hub__site-view-link{opacity:0;transition:opacity .2s ease-in-out}}.edit-site-site-hub .edit-site-site-hub__site-view-link:focus{opacity:1}.edit-site-site-hub .edit-site-site-hub__site-view-link svg{fill:#e0e0e0}.edit-site-site-hub:hover .edit-site-site-hub__site-view-link{opacity:1}.edit-site-site-hub__post-type{opacity:.6}.edit-site-site-hub__view-mode-toggle-container{background:#1e1e1e;flex-shrink:0;height:60px;width:60px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background{background:transparent}.edit-site-site-hub__text-content{overflow:hidden}.edit-site-site-hub__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__site-title{color:#e0e0e0;flex-grow:1;margin-right:4px}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:hover{color:#f0f0f0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf{border-radius:2px;max-width:calc(100% - 4px)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current]{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu{margin-right:-8px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected>td{background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents{color:inherit}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu{opacity:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell{opacity:1}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{width:100%}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-left:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .popover-slot .wp-block-navigation-submenu{display:none}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-site-icon__icon{fill:currentColor}.edit-site-site-icon__image{background:#333;border-radius:4px;height:auto;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-site-icon__image{border-radius:0}.edit-site-style-book{height:100%}.edit-site-style-book.is-button,.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tab-panel .components-tab-panel__tabs{background:#fff;color:#1e1e1e}.edit-site-style-book__tab-panel .components-tab-panel__tab-content{bottom:0;left:0;overflow:auto;padding:0;position:absolute;right:0;top:48px}.edit-site-editor-canvas-container{background:#fff;border-radius:2px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:all .3s}.edit-site-editor-canvas-container__close-button{background:#fff;left:8px;position:absolute;top:6px;z-index:1}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:hsla(0,0%,46%,.4);border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid transparent}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}body.js #wpadminbar{display:none}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:#1e1e1e}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#1e1e1e}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
overflow:auto;
z-index:20;
}
+@media (min-width:782px){
+ .interface-interface-skeleton__content{
+ z-index:auto;
+ }
+}
.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
background:#fff;
background:#f0f0f0;
border-radius:4px;
display:flex;
- gap:8px;
height:36px;
justify-content:space-between;
min-width:0;
.has-fixed-toolbar .edit-site-document-actions{
width:min(100%, 380px);
}
+.edit-site-document-actions:hover{
+ background-color:#e0e0e0;
+}
+.edit-site-document-actions .components-button{
+ border-radius:4px;
+}
.edit-site-document-actions .components-button:hover{
background:#e0e0e0;
color:var(--wp-block-synced-color);
}
-@media (min-width:782px){
- .edit-site-document-actions{
- width:50%;
- }
-}
@media (min-width:960px){
.edit-site-document-actions{
width:min(100%, 450px);
flex-grow:1;
overflow:hidden;
}
+
+.edit-site-document-actions__title{
+ padding-left:32px;
+}
.edit-site-document-actions__title:hover{
color:var(--wp-block-synced-color);
}
}
.edit-site-document-actions__title h1{
color:var(--wp-block-synced-color);
+ max-width:50%;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
.edit-site-document-actions__shortcut{
color:#2f2f2f;
+ min-width:32px;
}
.edit-site-document-actions__back.components-button.has-icon.has-text{
flex-shrink:0;
gap:0;
min-width:36px;
+ position:absolute;
z-index:1;
}
.edit-site-document-actions__back.components-button.has-icon.has-text:hover{
+ background-color:transparent;
color:currentColor;
}
.edit-site-document-actions.is-animated .edit-site-document-actions__back.components-button.has-icon.has-text{
color:#2f2f2f;
flex-grow:1;
margin:60px 0 0;
- overflow:auto;
+ overflow:hidden;
}
@media (min-width:782px){
.edit-site-page{
.edit-site-page-header{
background:#fff;
border-bottom:1px solid #f0f0f0;
- height:60px;
+ min-height:60px;
padding:0 32px;
position:sticky;
top:0;
}
.edit-site-page-content{
- overflow-x:auto;
- padding:32px;
+ display:flex;
+ flex-flow:column;
+ height:100%;
+ overflow:auto;
+ position:relative;
+ z-index:1;
}
.edit-site-patterns{
}
.edit-site-table-wrapper{
+ padding:32px;
width:100%;
}
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-right:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{left:16px;position:absolute;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-left:160px;padding-left:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-left:48px;margin-top:0}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input{background:#fff;border:1px solid #ddd}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{overflow:scroll}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:left;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}.edit-site-template-actions-loading-screen-modal{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:transparent}.edit-site-template-actions-loading-screen-modal.is-full-screen{background-color:#fff;box-shadow:0 0 0 transparent;min-height:100%;min-width:100%}.edit-site-template-actions-loading-screen-modal__content{align-items:center;display:flex;height:100%;justify-content:center;left:50%;position:absolute;transform:translateX(-50%)}.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 64px)}@media (min-width:960px){.edit-site-add-new-template__modal{width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;border-radius:2px;display:flex;flex-direction:column;justify-content:center;outline:1px solid transparent;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:transparent;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:transparent;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column-end:4;grid-column-start:1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-block-editor__block-list.is-navigation-block{padding:24px}.edit-site-visual-editor{align-items:center;background-color:#1e1e1e;display:block;height:100%;overflow:hidden;position:relative}.edit-site-visual-editor iframe{display:block;height:100%;width:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas{height:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-layout.is-full-canvas .edit-site-visual-editor.is-focus-mode{padding:48px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px;max-height:100%}.edit-site-visual-editor.is-focus-mode .components-resizable-box__container{overflow:visible}.edit-site-visual-editor .components-resizable-box__container{margin:0 auto;overflow:auto}.edit-site-visual-editor.is-view-mode{box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8)}.edit-site-visual-editor.is-view-mode .block-editor-block-contextual-toolbar{display:none}.edit-site-visual-editor__back-button{color:#fff;left:8px;position:absolute;top:8px}.edit-site-visual-editor__back-button:active:not([aria-disabled=true]),.edit-site-visual-editor__back-button:focus:not([aria-disabled=true]),.edit-site-visual-editor__back-button:hover{color:#f0f0f0}.resizable-editor__drag-handle{-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:2px;bottom:0;cursor:ew-resize;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.resizable-editor__drag-handle.is-variation-default{height:100px}.resizable-editor__drag-handle.is-variation-separator{height:100%;right:0;width:24px}.resizable-editor__drag-handle.is-variation-separator:after{background:transparent;border-radius:0;left:50%;right:0;transform:translateX(-1px);transition:all .2s ease;transition-delay:.1s;width:2px}@media (prefers-reduced-motion:reduce){.resizable-editor__drag-handle.is-variation-separator:after{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.resizable-editor__drag-handle:after{background:#949494;border-radius:2px;bottom:24px;content:"";left:4px;position:absolute;right:0;top:24px;width:4px}.resizable-editor__drag-handle.is-left{left:-16px}.resizable-editor__drag-handle.is-right{right:-16px}.resizable-editor__drag-handle:active,.resizable-editor__drag-handle:hover{opacity:1}.resizable-editor__drag-handle:active.is-variation-default:after,.resizable-editor__drag-handle:hover.is-variation-default:after{background:#ccc}.resizable-editor__drag-handle:active.is-variation-separator:after,.resizable-editor__drag-handle:hover.is-variation-separator:after{background:var(--wp-admin-theme-color)}.resizable-editor__drag-handle:focus:after{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.resizable-editor__drag-handle.is-variation-separator:focus:after{border-radius:2px;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.edit-site-canvas-spinner{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.edit-site-code-editor{background-color:#fff;min-height:100%;position:relative;width:100%}.edit-site-code-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:12px;width:100%}@media (min-width:960px){.edit-site-code-editor__body{padding:24px}}.edit-site-code-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-site-code-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-site-code-editor__toolbar{padding:12px 24px}}.edit-site-code-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 auto 0 0}.edit-site-code-editor__toolbar .components-button svg{order:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{font-size:15px!important;padding:24px}}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder{color:rgba(30,30,30,.62)}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__iframe{display:block;max-width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-typography-panel__full-width-control{grid-column:1/-1;max-width:100%}.edit-site-global-styles-screen-css,.edit-site-global-styles-screen-typography{margin:16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .color-block-support-panel{border-top:none;padding-left:0;padding-right:0}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-variations_item{box-sizing:border-box}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border:1px solid #e0e0e0;border-radius:2px;padding:2px}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:2px;overflow:auto;position:relative;width:100%}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}[class][class].edit-site-global-styles-sidebar__revisions-count-badge{align-items:center;background:#2f2f2f;border-radius:2px;color:#fff;display:inline-flex;justify-content:center;min-height:24px;min-width:24px}.edit-site-global-styles-screen-revisions{margin:16px}.edit-site-global-styles-screen-revisions__revisions-list{list-style:none;margin:0}.edit-site-global-styles-screen-revisions__revisions-list li{border-left:1px solid #ddd;margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{padding:8px 0 8px 12px;position:relative}.edit-site-global-styles-screen-revisions__revision-item:first-child{padding-top:0}.edit-site-global-styles-screen-revisions__revision-item:last-child{padding-bottom:0}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border-radius:50%;content:"\a";display:inline-block;height:8px;left:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.edit-site-global-styles-screen-revisions__revision-button{display:block;height:auto;padding:8px 12px;width:100%}.edit-site-global-styles-screen-revisions__revision-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-button:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.is-selected .edit-site-global-styles-screen-revisions__revision-button{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));opacity:1}.is-selected .edit-site-global-styles-screen-revisions__meta{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__button{justify-content:center;width:100%}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__meta{align-items:center;color:#757575;display:flex;justify-content:space-between;text-align:left;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-header-edit-mode{align-items:center;background-color:#fff;border-bottom:1px solid #e0e0e0;box-sizing:border-box;color:#1e1e1e;display:flex;height:60px;justify-content:space-between;padding-left:60px;width:100%}.edit-site-header-edit-mode .edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode .edit-site-header-edit-mode__end{display:flex;justify-content:flex-end}.edit-site-header-edit-mode .edit-site-header-edit-mode__center{align-items:center;display:flex;flex-grow:1;height:100%;justify-content:center;margin:0 8px;min-width:0}.edit-site-header-edit-mode__toolbar{align-items:center;display:flex;padding-left:8px}@media (min-width:600px){.edit-site-header-edit-mode__toolbar{padding-left:24px}}@media (min-width:1280px){.edit-site-header-edit-mode__toolbar{padding-right:8px}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle{height:32px;margin-right:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-site-header-edit-mode__actions{align-items:center;display:inline-flex;gap:4px;padding-right:4px}@media (min-width:600px){.edit-site-header-edit-mode__actions{gap:8px;padding-right:10px}}.edit-site-header-edit-mode__actions .interface-pinned-items{display:none}@media (min-width:782px){.edit-site-header-edit-mode__actions .interface-pinned-items{display:inline-flex}}.edit-site-header-edit-mode__preview-options{opacity:1;transition:opacity .3s}.edit-site-header-edit-mode__preview-options.is-zoomed-out{opacity:0}.edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon.is-pressed,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:focus:not(:disabled),.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:before,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-icon{height:32px;margin-right:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-text.has-icon{padding:0 8px;width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon{width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon svg{display:none}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon:after{content:attr(aria-label)}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-site-header-edit-mode.show-icon-labels .is-tertiary:active{background-color:transparent;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-site-header-edit-mode.show-icon-labels .edit-site-save-button__button{padding-left:6px;padding-right:6px}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info:after{content:none}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info,.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__inserter-toggle.edit-site-header-edit-mode__inserter-toggle{height:36px;padding:0 8px}.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>*+*{margin-left:8px}.edit-site-document-actions{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;gap:8px;height:36px;justify-content:space-between;min-width:0;width:min(100%,450px)}.has-fixed-toolbar .edit-site-document-actions{width:min(100%,380px)}.edit-site-document-actions .components-button:hover{background:#e0e0e0;color:var(--wp-block-synced-color)}@media (min-width:782px){.edit-site-document-actions{width:50%}}@media (min-width:960px){.edit-site-document-actions{width:min(100%,450px)}}.edit-site-document-actions__command,.edit-site-document-actions__title{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.edit-site-document-actions__title:hover{color:var(--wp-block-synced-color)}.edit-site-document-actions__title .block-editor-block-icon{flex-shrink:0;min-width:24px}.edit-site-document-actions__title h1{color:var(--wp-block-synced-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-document-actions.is-page .edit-site-document-actions__title,.edit-site-document-actions.is-page .edit-site-document-actions__title h1{color:#2f2f2f}.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-right .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions__shortcut{color:#2f2f2f}.edit-site-document-actions__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px;z-index:1}.edit-site-document-actions__back.components-button.has-icon.has-text:hover{color:currentColor}.edit-site-document-actions.is-animated .edit-site-document-actions__back.components-button.has-icon.has-text{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__back.components-button.has-icon.has-text{animation-delay:0s;animation-duration:1ms}}@keyframes edit-site-document-actions__slide-in-right{0%{opacity:0;transform:translateX(-15%)}to{opacity:1;transform:translateX(0)}}@keyframes edit-site-document-actions__slide-in-left{0%{opacity:0;transform:translateX(15%)}to{opacity:1;transform:translateX(0)}}.edit-site-list-header{align-items:center;box-sizing:border-box;display:flex;height:60px;justify-content:flex-end;padding-right:16px;position:relative;width:100%}body.is-fullscreen-mode .edit-site-list-header{padding-left:60px;transition:padding-left 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-delay:0s;transition-duration:0s}}.edit-site-list-header .edit-site-list-header__title{font-size:20px;left:0;margin:0;padding:0;position:absolute;text-align:center;width:100%}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list{background:#fff;border-radius:8px;box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8);flex-grow:1}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{align-items:center;background:#fff;padding:16px}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__content{padding:72px}}.edit-site-list-table{border:1px solid #ddd;border-radius:2px;border-spacing:0;margin:0 auto;max-width:960px;min-width:100%;overflow:hidden}.edit-site-list-table tr{align-items:center;border-top:1px solid #f0f0f0;box-sizing:border-box;display:flex;margin:0;padding:16px}.edit-site-list-table tr:first-child{border-top:0}@media (min-width:782px){.edit-site-list-table tr{padding:24px 32px}}.edit-site-list-table tr .edit-site-list-table-column:first-child{padding-right:24px;width:calc(60% - 18px)}.edit-site-list-table tr .edit-site-list-table-column:first-child a{display:inline-block;font-weight:500;margin-bottom:4px;text-decoration:none}.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){width:calc(40% - 18px);word-break:break-word}.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){flex-shrink:0;min-width:36px}.edit-site-list-table tr.edit-site-list-table-head{border-bottom:1px solid #ddd;border-top:none;color:#1e1e1e;font-size:16px;font-weight:600;text-align:left}.edit-site-list-table tr.edit-site-list-table-head th{font-weight:inherit}@media (min-width:782px){.edit-site-list.is-navigation-open .components-snackbar-list{margin-left:360px}.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-template__actions button:not(:last-child){margin-right:8px}.edit-site-list-added-by__icon{align-items:center;background:#2f2f2f;border-radius:100%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.edit-site-list-added-by__icon svg{fill:#fff}.edit-site-list-added-by__avatar{background:#2f2f2f;border-radius:100%;flex-shrink:0;height:32px;overflow:hidden;width:32px}.edit-site-list-added-by__avatar img{height:32px;object-fit:cover;opacity:0;transition:opacity .1s linear;width:32px}@media (prefers-reduced-motion:reduce){.edit-site-list-added-by__avatar img{transition-delay:0s;transition-duration:0s}}.edit-site-list-added-by__avatar.is-loaded img{opacity:1}.edit-site-list-added-by__customized-info{color:#757575;display:block}.edit-site-page{background:#fff;color:#2f2f2f;flex-grow:1;margin:60px 0 0;overflow:auto}@media (min-width:782px){.edit-site-page{border-radius:8px;margin:24px 24px 24px 0}}.edit-site-page-header{background:#fff;border-bottom:1px solid #f0f0f0;height:60px;padding:0 32px;position:sticky;top:0;z-index:2}.edit-site-page-header .components-text{color:#2f2f2f}.edit-site-page-header .components-heading{color:#1e1e1e}.edit-site-page-header .edit-site-page-header__sub-title{color:#757575;margin-top:8px}.edit-site-page-content{overflow-x:auto;padding:32px}.edit-site-patterns{background:none;border:1px solid #2f2f2f;border-radius:0;margin:60px 0 0}.edit-site-patterns .components-base-control{width:100%}@media (min-width:782px){.edit-site-patterns .components-base-control{width:auto}}.edit-site-patterns .components-text{color:#949494}.edit-site-patterns .components-heading{color:#e0e0e0}@media (min-width:782px){.edit-site-patterns{margin:0}}.edit-site-patterns .edit-site-patterns__search-block{flex-grow:1;min-width:-moz-fit-content;min-width:fit-content}.edit-site-patterns .edit-site-patterns__search input[type=search]{background:#2f2f2f;color:#e0e0e0;height:40px}.edit-site-patterns .edit-site-patterns__search input[type=search]:focus{background:#2f2f2f}.edit-site-patterns .edit-site-patterns__search svg{fill:#949494}.edit-site-patterns .edit-site-patterns__sync-status-filter{background:#2f2f2f;border:none;height:40px;max-width:100%;min-width:max-content;width:100%}@media (min-width:782px){.edit-site-patterns .edit-site-patterns__sync-status-filter{width:300px}}.edit-site-patterns .edit-site-patterns__sync-status-filter-option:not([aria-checked=true]){color:#949494}.edit-site-patterns .edit-site-patterns__sync-status-filter-option:active{background:#757575;color:#f0f0f0}.edit-site-patterns .edit-site-patterns__grid-pagination{width:-moz-fit-content;width:fit-content}.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary{background-color:#2f2f2f;color:#f0f0f0;height:32px;width:32px}.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary:disabled{background:none;color:#949494}.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary:hover:not(:disabled){background-color:#757575}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-patterns__grid{display:grid;gap:32px;grid-template-columns:1fr;margin-bottom:32px;margin-top:0;padding-top:2px}@media (min-width:960px){.edit-site-patterns__grid{grid-template-columns:1fr 1fr}}.edit-site-patterns__grid .edit-site-patterns__pattern{break-inside:avoid-column;display:flex;flex-direction:column}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;overflow:hidden;padding:0}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview:focus{box-shadow:inset 0 0 0 0 #fff,0 0 0 2px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive{cursor:default}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #2f2f2f;opacity:.8}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__button,.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__footer{color:#949494}.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview{align-items:center;border:1px dashed #2f2f2f;color:#949494;display:flex;justify-content:center;min-height:64px}.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-patterns__grid .edit-site-patterns__preview{flex:0 1 auto;margin-bottom:16px}.edit-site-patterns__load-more{align-self:center}.edit-site-patterns__pattern-title{color:#e0e0e0}.edit-site-patterns__pattern-title .is-link{color:#e0e0e0;text-decoration:none}.edit-site-patterns__pattern-title .is-link:focus,.edit-site-patterns__pattern-title .is-link:hover{color:#fff}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-icon{fill:#fff;background:var(--wp-block-synced-color);border-radius:4px}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon{display:inline-flex}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon svg{fill:currentcolor}.edit-site-patterns__no-results{color:#949494}.edit-site-table-wrapper{width:100%}.edit-site-table{border-collapse:collapse;border-color:inherit;position:relative;text-indent:0;width:100%}.edit-site-table a{text-decoration:none}.edit-site-table th{color:#757575;font-weight:400;padding:0 16px 16px;text-align:left}.edit-site-table td{padding:16px}.edit-site-table td,.edit-site-table th{vertical-align:center}.edit-site-table td:first-child,.edit-site-table th:first-child{padding-left:0}.edit-site-table td:last-child,.edit-site-table th:last-child{padding-right:0;text-align:right}.edit-site-table tr{border-bottom:1px solid #f0f0f0}.edit-site-sidebar-edit-mode{width:280px}.edit-site-sidebar-edit-mode>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar-edit-mode>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar-edit-mode .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{display:flex;flex:1;flex-direction:column}.edit-site-global-styles-sidebar__navigator-screen{flex:1}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-left:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-left:auto}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-sidebar-fixed-bottom-slot{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:content-box;display:flex;padding:16px;position:sticky}.edit-site-page-panels__edit-template-preview{border:1px solid #e0e0e0;height:200px;max-height:200px;overflow:hidden}.edit-site-page-panels__edit-template-button{justify-content:center}.edit-site-change-status__content .components-popover__content{min-width:320px;padding:16px}.edit-site-change-status__content .edit-site-change-status__options .components-base-control__field>.components-v-stack{gap:8px}.edit-site-change-status__content .edit-site-change-status__options label .components-text{display:block;margin-left:26px}.edit-site-summary-field .components-dropdown{flex-grow:1}.edit-site-summary-field .edit-site-summary-field__trigger{width:100%}.edit-site-summary-field .edit-site-summary-field__label{width:30%}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:0;padding-right:16px}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs ul{display:flex}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs li{margin:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 0 0 auto;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-site-sidebar-edit-mode__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-site-sidebar-edit-mode__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-sidebar-card{align-items:flex-start;display:flex}.edit-site-sidebar-card__content{flex-grow:1;margin-bottom:4px}.edit-site-sidebar-card__title{font-weight:500;line-height:24px}.edit-site-sidebar-card__title.edit-site-sidebar-card__title{margin:0}.edit-site-sidebar-card__description{font-size:13px}.edit-site-sidebar-card__icon{flex:0 0 24px;height:24px;margin-right:12px;width:24px}.edit-site-sidebar-card__header{display:flex;justify-content:space-between;margin:0 0 4px}.edit-site-template-card__template-areas{margin-top:16px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}.edit-site-template-card__actions{line-height:0}.edit-site-template-card__actions>.components-button.is-small.has-icon{min-width:auto;padding:0}.edit-site-template-revisions{margin-left:-4px}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-editor__interface-skeleton{opacity:1;transition:opacity .1s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-editor__interface-skeleton{transition-delay:0s;transition-duration:0s}}.edit-site-editor__interface-skeleton.is-loading{opacity:0}.edit-site-editor__interface-skeleton .interface-interface-skeleton__header{border:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:absolute;right:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{left:160px}}.folded .edit-site .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{left:0!important}.edit-site-create-pattern-modal__input input{height:40px}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;height:100%;padding:12px;text-align:left;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{font-size:12px;padding-top:4px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-left:auto;min-width:24px}.edit-site-editor__inserter-panel,.edit-site-editor__list-view-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-site-editor__list-view-panel{width:350px}}.edit-site-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.edit-site-editor__inserter-panel-content,.edit-site-editor__list-view-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-site-editor__inserter-panel-content{height:100%}}.edit-site-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:16px;padding-right:4px}.edit-site-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-site-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:transparent}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-site-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-site-editor__list-view-panel-content:focus,.edit-site-editor__list-view-panel-content:focus-within,.edit-site-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-site-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image .edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-start-template-options__modal .edit-site-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.edit-site-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{box-shadow:0 0 0 1px #ddd}.edit-site-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-site-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-site-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-site-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-site-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-site-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-site-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-site-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-site-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-site-layout{background:#1e1e1e;color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout__hub{height:60px;left:0;position:fixed;top:0;width:calc(100vw - 48px);z-index:3}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub{padding-right:0;width:60px}@media (min-width:782px){.edit-site-layout__hub{width:336px}}.edit-site-layout.is-full-canvas .edit-site-layout__hub{border-radius:0;box-shadow:none;padding-right:16px;width:100vw}@media (min-width:782px){.edit-site-layout.is-full-canvas .edit-site-layout__hub{padding-right:0;width:auto}}.edit-site-layout__header-container{z-index:4}.edit-site-layout__header{display:flex;height:60px;z-index:2}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__header{position:fixed;width:100vw}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:360px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;left:0;position:fixed!important;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{right:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__canvas-container{flex-grow:1;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas>div{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:24px;top:24px;width:calc(100% - 24px)}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .edit-site-visual-editor__editor-canvas,.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .interface-interface-skeleton__content,.edit-site-layout__canvas>div{border-radius:8px}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout.is-full-canvas .edit-site-layout__canvas>div{border-radius:0}.edit-site-layout__canvas .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-layout__view-mode-toggle.components-button{align-items:center;border-bottom:1px solid transparent;border-radius:0;color:#fff;display:flex;height:60px;justify-content:center;overflow:hidden;padding:0;position:relative;width:60px}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__view-mode-toggle.components-button{border-bottom-color:#e0e0e0;transition:border-bottom-color .15s ease-out .4s}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus{box-shadow:none}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}@media (prefers-reduced-motion:reduce){.edit-site-layout__view-mode-toggle.components-button:before{transition-delay:0s;transition-duration:0s}}.edit-site-layout__view-mode-toggle.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;border-radius:2px;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-left:1px solid #ddd}.edit-site-layout.has-fixed-toolbar .edit-site-layout__canvas-container{z-index:5}.edit-site-layout.has-fixed-toolbar .edit-site-site-hub{z-index:4}}@media (min-width:782px){.edit-site-layout.has-fixed-toolbar .edit-site-layout__header:focus-within{z-index:3}}.is-edit-mode.is-distraction-free .edit-site-layout__header-container{height:60px;left:0;position:absolute;right:0;top:0;width:100%;z-index:4}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within div{transform:translateX(0) translateY(0) translateZ(0)!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header,.is-edit-mode.is-distraction-free .edit-site-site-hub{position:absolute;top:0;z-index:2}.is-edit-mode.is-distraction-free .edit-site-site-hub{z-index:3}.is-edit-mode.is-distraction-free .edit-site-layout__header{width:100%}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:24px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{flex-grow:1;overflow-y:auto}.edit-site-sidebar__content .components-navigator-screen{display:flex;flex-direction:column;height:100%;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:stable;scrollbar-width:thin;will-change:transform}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-track{background-color:transparent}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-site-sidebar__content .components-navigator-screen:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__content .components-navigator-screen:focus,.edit-site-sidebar__content .components-navigator-screen:focus-within,.edit-site-sidebar__content .components-navigator-screen:hover{scrollbar-color:#757575 transparent}@media (hover:none){.edit-site-sidebar__content .components-navigator-screen{scrollbar-color:#757575 transparent}}.edit-site-sidebar__footer{border-top:1px solid #2f2f2f;flex-shrink:0;margin:0 24px;padding:24px 0}.edit-site-sidebar__content>div{padding:0 12px}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid transparent}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;border-radius:2px;color:#949494;min-height:40px;padding:8px 6px 8px 16px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current]{background:var(--wp-admin-theme-color);color:#fff}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#949494}.edit-site-sidebar-navigation-item.components-item:is(a){align-items:center;display:flex;text-decoration:none}.edit-site-sidebar-navigation-item.components-item:is(a):focus{box-shadow:none;outline:none}.edit-site-sidebar-navigation-item.components-item:is(a):focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-right:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-item-group{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__meta{color:#ccc;margin:0 0 16px 16px}.edit-site-sidebar-navigation-screen__meta .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__page-link{color:#949494;display:inline-block}.edit-site-sidebar-navigation-screen__page-link:focus,.edit-site-sidebar-navigation-screen__page-link:hover{color:#fff}.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon{margin-left:4px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:108px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow:hidden;overflow-wrap:break-word;padding:6px 0 0}.edit-site-sidebar-navigation-screen__actions{flex-shrink:0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #f0f0f0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:16px 0;position:sticky}.edit-site-sidebar__notice{background:#2f2f2f;color:#ddd;margin:24px 0}.edit-site-sidebar__notice.is-dismissible{padding-right:8px}.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#f0f0f0}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:#2f2f2f}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer{padding-bottom:8px;padding-left:16px;padding-top:8px}.edit-site-sidebar-navigation-screen-global-styles__revisions{border-radius:2px}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover){color:#e0e0e0}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover) .edit-site-sidebar-navigation-screen-global-styles__revisions__label{color:#949494}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-screen-page__featured-image-wrapper{background-color:#2f2f2f;border-radius:4px;margin-bottom:16px;min-height:128px}.edit-site-sidebar-navigation-screen-page__featured-image{align-items:center;background-position:50% 50%;background-size:cover;border-radius:2px;color:#949494;display:flex;height:128px;justify-content:center;overflow:hidden;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image img{height:100%;object-fit:cover;object-position:50% 50%;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image-description{font-size:12px}.edit-site-sidebar-navigation-screen-page__excerpt{font-size:12px;margin-bottom:24px}.edit-site-sidebar-navigation-screen-page__modified{color:#949494;margin:0 0 16px 16px}.edit-site-sidebar-navigation-screen-page__modified .components-text{color:#949494}.edit-site-sidebar-navigation-screen-page__status{display:inline-flex}.edit-site-sidebar-navigation-screen-page__status time{display:contents}.edit-site-sidebar-navigation-screen-page__status svg{fill:#f0b849;height:16px;margin-right:8px;width:16px}.edit-site-sidebar-navigation-screen-page__status.has-future-status svg,.edit-site-sidebar-navigation-screen-page__status.has-publish-status svg{fill:#4ab866}.edit-site-sidebar-navigation-details-screen-panel{margin:24px 0}.edit-site-sidebar-navigation-details-screen-panel:last-of-type{margin-bottom:0}.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading{color:#ccc;font-size:11px;font-weight:500;margin-bottom:0;padding:0;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label{color:#949494;width:100px}.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value{color:#e0e0e0}.edit-site-sidebar-navigation-screen-pattern__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon{height:24px;margin-right:8px;width:24px}.edit-site-sidebar-navigation-screen-pattern__lock-icon{display:inline-flex}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:#949494}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen-template__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-template__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-template__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-template__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon{height:24px;margin-right:8px;width:24px}.edit-site-sidebar-navigation-screen-template__template-area-button{align-items:center;border-radius:4px;color:#fff;display:flex;flex-wrap:nowrap;width:100%}.edit-site-sidebar-navigation-screen-template__template-area-button:focus,.edit-site-sidebar-navigation-screen-template__template-area-button:hover{background:#2f2f2f;color:#fff}.edit-site-sidebar-navigation-screen-template__template-area-label-text{flex-grow:1;margin:0 16px 0 4px}.edit-site-sidebar-navigation-screen-template__template-icon{display:flex}.edit-site-site-hub{align-items:center;display:flex;gap:8px;justify-content:space-between}.edit-site-site-hub .edit-site-site-hub__container{gap:0}.edit-site-site-hub .edit-site-site-hub__site-title,.edit-site-site-hub .edit-site-site-hub_toggle-command-center{transition:opacity .1s ease}.edit-site-site-hub .edit-site-site-hub__site-title.is-transparent,.edit-site-site-hub .edit-site-site-hub_toggle-command-center.is-transparent{opacity:0!important}.edit-site-site-hub .edit-site-site-hub__site-view-link{flex-grow:0;margin-right:var(--wp-admin-border-width-focus)}@media (min-width:480px){.edit-site-site-hub .edit-site-site-hub__site-view-link{opacity:0;transition:opacity .2s ease-in-out}}.edit-site-site-hub .edit-site-site-hub__site-view-link:focus{opacity:1}.edit-site-site-hub .edit-site-site-hub__site-view-link svg{fill:#e0e0e0}.edit-site-site-hub:hover .edit-site-site-hub__site-view-link{opacity:1}.edit-site-site-hub__post-type{opacity:.6}.edit-site-site-hub__view-mode-toggle-container{background:#1e1e1e;flex-shrink:0;height:60px;width:60px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background{background:transparent}.edit-site-site-hub__text-content{overflow:hidden}.edit-site-site-hub__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__site-title{color:#e0e0e0;flex-grow:1;margin-left:4px}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:hover{color:#f0f0f0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf{border-radius:2px;max-width:calc(100% - 4px)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current]{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu{margin-left:-8px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected>td{background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents{color:inherit}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu{opacity:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell{opacity:1}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{width:100%}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-right:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .popover-slot .wp-block-navigation-submenu{display:none}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-site-icon__icon{fill:currentColor}.edit-site-site-icon__image{background:#333;border-radius:4px;height:auto;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-site-icon__image{border-radius:0}.edit-site-style-book{height:100%}.edit-site-style-book.is-button,.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tab-panel .components-tab-panel__tabs{background:#fff;color:#1e1e1e}.edit-site-style-book__tab-panel .components-tab-panel__tab-content{bottom:0;left:0;overflow:auto;padding:0;position:absolute;right:0;top:48px}.edit-site-editor-canvas-container{background:#fff;border-radius:2px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:all .3s}.edit-site-editor-canvas-container__close-button{background:#fff;position:absolute;right:8px;top:6px;z-index:1}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:hsla(0,0%,46%,.4);border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid transparent}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}body.js #wpadminbar{display:none}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:#1e1e1e}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#1e1e1e}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-right:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{left:16px;position:absolute;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-left:160px;padding-left:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-left:48px;margin-top:0}.edit-site-custom-template-modal__contents-wrapper{height:100%;justify-content:flex-start!important}.edit-site-custom-template-modal__contents-wrapper>*{width:100%}.edit-site-custom-template-modal__contents-wrapper__suggestions_list{margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.edit-site-custom-template-modal__contents>.components-button{height:auto;justify-content:center}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input{background:#fff;border:1px solid #ddd}.edit-site-custom-template-modal .components-search-control input[type=search].components-search-control__input:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}@media (min-width:782px){.edit-site-custom-template-modal{width:456px}}@media (min-width:600px){.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list{overflow:scroll}}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item{display:block;height:auto;overflow-wrap:break-word;padding:8px 12px;text-align:left;white-space:pre-wrap;width:100%}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item mark{background:none;font-weight:700}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover *,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:hover mark{color:var(--wp-admin-theme-color)}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus{background-color:#f0f0f0}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color) inset}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info,.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__title{display:block;overflow:hidden;text-overflow:ellipsis}.edit-site-custom-template-modal .edit-site-custom-template-modal__suggestions_list__list-item__info{color:#757575;word-break:break-all}.edit-site-custom-template-modal__no-results{border:1px solid #ccc;border-radius:2px;padding:16px}.edit-site-custom-generic-template__modal .components-modal__header{border-bottom:none}.edit-site-custom-generic-template__modal .components-modal__content:before{margin-bottom:4px}.edit-site-template-actions-loading-screen-modal{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:transparent}.edit-site-template-actions-loading-screen-modal.is-full-screen{background-color:#fff;box-shadow:0 0 0 transparent;min-height:100%;min-width:100%}.edit-site-template-actions-loading-screen-modal__content{align-items:center;display:flex;height:100%;justify-content:center;left:50%;position:absolute;transform:translateX(-50%)}.edit-site-add-new-template__modal{margin-top:64px;max-height:calc(100% - 128px);max-width:832px;width:calc(100% - 64px)}@media (min-width:960px){.edit-site-add-new-template__modal{width:calc(100% - 128px)}}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button svg,.edit-site-add-new-template__modal .edit-site-add-new-template__template-button svg{fill:var(--wp-admin-theme-color)}.edit-site-add-new-template__modal .edit-site-add-new-template__custom-template-button .edit-site-add-new-template__template-name{align-items:flex-start;flex-grow:1}.edit-site-add-new-template__modal .edit-site-add-new-template__template-icon{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-radius:100%;max-height:40px;max-width:40px;padding:8px}.edit-site-add-new-template__template-list__contents>.components-button,.edit-site-custom-template-modal__contents>.components-button{border:1px solid #ddd;border-radius:2px;display:flex;flex-direction:column;justify-content:center;outline:1px solid transparent;padding:32px}.edit-site-add-new-template__template-list__contents>.components-button span:first-child,.edit-site-custom-template-modal__contents>.components-button span:first-child{color:#1e1e1e}.edit-site-add-new-template__template-list__contents>.components-button span,.edit-site-custom-template-modal__contents>.components-button span{color:#757575}.edit-site-add-new-template__template-list__contents>.components-button:hover,.edit-site-custom-template-modal__contents>.components-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04);border-color:transparent;color:var(--wp-admin-theme-color-darker-10)}.edit-site-add-new-template__template-list__contents>.components-button:hover span,.edit-site-custom-template-modal__contents>.components-button:hover span{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents>.components-button:focus,.edit-site-custom-template-modal__contents>.components-button:focus{border-color:transparent;box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:3px solid transparent}.edit-site-add-new-template__template-list__contents>.components-button:focus span:first-child,.edit-site-custom-template-modal__contents>.components-button:focus span:first-child{color:var(--wp-admin-theme-color)}.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__custom-template-button,.edit-site-add-new-template__template-list__contents .edit-site-add-new-template__template-list__prompt,.edit-site-custom-template-modal__contents .edit-site-add-new-template__custom-template-button,.edit-site-custom-template-modal__contents .edit-site-add-new-template__template-list__prompt{grid-column-end:4;grid-column-start:1}.edit-site-add-new-template__template-list__contents>.components-button{align-items:flex-start;height:100%;text-align:start}.edit-site-block-editor__editor-styles-wrapper .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;padding:6px 12px}.edit-site-block-editor__editor-styles-wrapper .components-button.has-icon,.edit-site-block-editor__editor-styles-wrapper .components-button.is-tertiary{padding:6px}.edit-site-block-editor__block-list.is-navigation-block{padding:24px}.edit-site-visual-editor{align-items:center;background-color:#1e1e1e;display:block;height:100%;overflow:hidden;position:relative}.edit-site-visual-editor iframe{display:block;height:100%;width:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas{height:100%}.edit-site-visual-editor .edit-site-visual-editor__editor-canvas.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-layout.is-full-canvas .edit-site-visual-editor.is-focus-mode{padding:48px}.edit-site-visual-editor.is-focus-mode .edit-site-visual-editor__editor-canvas{border-radius:2px;max-height:100%}.edit-site-visual-editor.is-focus-mode .components-resizable-box__container{overflow:visible}.edit-site-visual-editor .components-resizable-box__container{margin:0 auto;overflow:auto}.edit-site-visual-editor.is-view-mode{box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8)}.edit-site-visual-editor.is-view-mode .block-editor-block-contextual-toolbar{display:none}.edit-site-visual-editor__back-button{color:#fff;left:8px;position:absolute;top:8px}.edit-site-visual-editor__back-button:active:not([aria-disabled=true]),.edit-site-visual-editor__back-button:focus:not([aria-disabled=true]),.edit-site-visual-editor__back-button:hover{color:#f0f0f0}.resizable-editor__drag-handle{-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:2px;bottom:0;cursor:ew-resize;margin:auto 0;outline:none;padding:0;position:absolute;top:0;width:12px}.resizable-editor__drag-handle.is-variation-default{height:100px}.resizable-editor__drag-handle.is-variation-separator{height:100%;right:0;width:24px}.resizable-editor__drag-handle.is-variation-separator:after{background:transparent;border-radius:0;left:50%;right:0;transform:translateX(-1px);transition:all .2s ease;transition-delay:.1s;width:2px}@media (prefers-reduced-motion:reduce){.resizable-editor__drag-handle.is-variation-separator:after{animation-delay:0s;animation-duration:1ms;transition-delay:0s;transition-duration:0s}}.resizable-editor__drag-handle:after{background:#949494;border-radius:2px;bottom:24px;content:"";left:4px;position:absolute;right:0;top:24px;width:4px}.resizable-editor__drag-handle.is-left{left:-16px}.resizable-editor__drag-handle.is-right{right:-16px}.resizable-editor__drag-handle:active,.resizable-editor__drag-handle:hover{opacity:1}.resizable-editor__drag-handle:active.is-variation-default:after,.resizable-editor__drag-handle:hover.is-variation-default:after{background:#ccc}.resizable-editor__drag-handle:active.is-variation-separator:after,.resizable-editor__drag-handle:hover.is-variation-separator:after{background:var(--wp-admin-theme-color)}.resizable-editor__drag-handle:focus:after{box-shadow:0 0 0 1px #2f2f2f,0 0 0 calc(var(--wp-admin-border-width-focus) + 1px) var(--wp-admin-theme-color)}.resizable-editor__drag-handle.is-variation-separator:focus:after{border-radius:2px;box-shadow:inset 0 0 0 2px var(--wp-admin-theme-color)}.edit-site-canvas-spinner{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.edit-site-code-editor{background-color:#fff;min-height:100%;position:relative;width:100%}.edit-site-code-editor__body{margin-left:auto;margin-right:auto;max-width:1080px;padding:12px;width:100%}@media (min-width:960px){.edit-site-code-editor__body{padding:24px}}.edit-site-code-editor__toolbar{background:hsla(0,0%,100%,.8);display:flex;left:0;padding:4px 12px;position:sticky;right:0;top:0;z-index:1}@media (min-width:600px){.edit-site-code-editor__toolbar{padding:12px}}@media (min-width:960px){.edit-site-code-editor__toolbar{padding:12px 24px}}.edit-site-code-editor__toolbar h2{color:#1e1e1e;font-size:13px;line-height:36px;margin:0 auto 0 0}.edit-site-code-editor__toolbar .components-button svg{order:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area{font-size:15px!important;padding:24px}}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-webkit-input-placeholder{color:rgba(30,30,30,.62)}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}textarea.edit-site-code-editor-text-area.edit-site-code-editor-text-area:-ms-input-placeholder{color:rgba(30,30,30,.62)}.edit-site-global-styles-preview{align-items:center;cursor:pointer;display:flex;justify-content:center;line-height:1}.edit-site-global-styles-preview__iframe{display:block;max-width:100%}.edit-site-typography-preview{align-items:center;background:#f0f0f0;border-radius:2px;display:flex;justify-content:center;margin-bottom:16px;min-height:100px;overflow:hidden}.edit-site-typography-panel__full-width-control{grid-column:1/-1;max-width:100%}.edit-site-global-styles-screen-css,.edit-site-global-styles-screen-typography{margin:16px}.edit-site-global-styles-screen-typography__indicator{align-items:center;border-radius:2px;display:flex!important;font-size:14px;height:24px;justify-content:center;width:24px}.edit-site-global-styles-screen-colors{margin:16px}.edit-site-global-styles-screen-colors .color-block-support-panel{border-top:none;padding-left:0;padding-right:0}.edit-site-global-styles-header__description{padding:0 16px}.edit-site-block-types-search{margin-bottom:8px;padding:0 16px}.edit-site-global-styles-header{margin-bottom:0!important}.edit-site-global-styles-subtitle{font-size:11px!important;font-weight:500!important;margin-bottom:0!important;text-transform:uppercase}.edit-site-global-styles-section-title{color:#2f2f2f;font-weight:600;line-height:1.2;margin:0;padding:16px 16px 0}.edit-site-global-styles-variations_item{box-sizing:border-box}.edit-site-global-styles-variations_item .edit-site-global-styles-variations_item-preview{border:1px solid #e0e0e0;border-radius:2px;padding:2px}.edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-global-styles-icon-with-current-color{fill:currentColor}.edit-site-global-styles__color-indicator-wrapper{flex-shrink:0;height:24px}.edit-site-global-styles__block-preview-panel{border:1px solid #e0e0e0;border-radius:2px;overflow:auto;position:relative;width:100%}.edit-site-global-styles-screen-css{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack{flex:1 1 auto}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input,.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field{display:flex;flex:1 1 auto;flex-direction:column}.edit-site-global-styles-screen-css .components-v-stack .block-editor-global-styles-advanced-panel__custom-css-input .components-base-control__field .components-textarea-control__input{direction:ltr;flex:1 1 auto}.edit-site-global-styles-screen-css-help-link{display:block;margin-top:8px}.edit-site-global-styles-screen-variations{border-top:1px solid #ddd;margin-top:16px}.edit-site-global-styles-screen-variations>*{margin:24px 16px}.edit-site-global-styles-sidebar__navigator-screen{display:flex;flex-direction:column}.edit-site-global-styles-screen-root.edit-site-global-styles-screen-root,.edit-site-global-styles-screen-style-variations.edit-site-global-styles-screen-style-variations{background:unset;color:inherit}.edit-site-global-styles-sidebar__panel .block-editor-block-icon svg{fill:currentColor}[class][class].edit-site-global-styles-sidebar__revisions-count-badge{align-items:center;background:#2f2f2f;border-radius:2px;color:#fff;display:inline-flex;justify-content:center;min-height:24px;min-width:24px}.edit-site-global-styles-screen-revisions{margin:16px}.edit-site-global-styles-screen-revisions__revisions-list{list-style:none;margin:0}.edit-site-global-styles-screen-revisions__revisions-list li{border-left:1px solid #ddd;margin-bottom:0}.edit-site-global-styles-screen-revisions__revision-item{padding:8px 0 8px 12px;position:relative}.edit-site-global-styles-screen-revisions__revision-item:first-child{padding-top:0}.edit-site-global-styles-screen-revisions__revision-item:last-child{padding-bottom:0}.edit-site-global-styles-screen-revisions__revision-item:before{background:#ddd;border-radius:50%;content:"\a";display:inline-block;height:8px;left:0;position:absolute;top:50%;transform:translate(-50%,-50%);width:8px}.edit-site-global-styles-screen-revisions__revision-item.is-selected:before{background:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba))}.edit-site-global-styles-screen-revisions__revision-button{display:block;height:auto;padding:8px 12px;width:100%}.edit-site-global-styles-screen-revisions__revision-button:hover{background:rgba(var(--wp-admin-theme-color--rgb),.04)}.edit-site-global-styles-screen-revisions__revision-button:hover .edit-site-global-styles-screen-revisions__date{color:var(--wp-admin-theme-color)}.is-selected .edit-site-global-styles-screen-revisions__revision-button{background:rgba(var(--wp-admin-theme-color--rgb),.04);color:var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));opacity:1}.is-selected .edit-site-global-styles-screen-revisions__meta{color:var(--wp-admin-theme-color)}.edit-site-global-styles-screen-revisions__button{justify-content:center;width:100%}.edit-site-global-styles-screen-revisions__description{align-items:flex-start;display:flex;flex-direction:column;gap:8px}.edit-site-global-styles-screen-revisions__meta{align-items:center;color:#757575;display:flex;justify-content:space-between;text-align:left;width:100%}.edit-site-global-styles-screen-revisions__meta img{border-radius:100%;height:16px;width:16px}.edit-site-global-styles-screen-revisions__loading{margin:24px auto!important}.edit-site-header-edit-mode{align-items:center;background-color:#fff;border-bottom:1px solid #e0e0e0;box-sizing:border-box;color:#1e1e1e;display:flex;height:60px;justify-content:space-between;padding-left:60px;width:100%}.edit-site-header-edit-mode .edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode .edit-site-header-edit-mode__end{display:flex;justify-content:flex-end}.edit-site-header-edit-mode .edit-site-header-edit-mode__center{align-items:center;display:flex;flex-grow:1;height:100%;justify-content:center;margin:0 8px;min-width:0}.edit-site-header-edit-mode__toolbar{align-items:center;display:flex;padding-left:8px}@media (min-width:600px){.edit-site-header-edit-mode__toolbar{padding-left:24px}}@media (min-width:1280px){.edit-site-header-edit-mode__toolbar{padding-right:8px}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle{height:32px;margin-right:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-site-header-edit-mode__toolbar .edit-site-header-edit-mode__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-site-header-edit-mode__actions{align-items:center;display:inline-flex;gap:4px;padding-right:4px}@media (min-width:600px){.edit-site-header-edit-mode__actions{gap:8px;padding-right:10px}}.edit-site-header-edit-mode__actions .interface-pinned-items{display:none}@media (min-width:782px){.edit-site-header-edit-mode__actions .interface-pinned-items{display:inline-flex}}.edit-site-header-edit-mode__preview-options{opacity:1;transition:opacity .3s}.edit-site-header-edit-mode__preview-options.is-zoomed-out{opacity:0}.edit-site-header-edit-mode__start{border:none;display:flex}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon{height:36px;min-width:36px;padding:6px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon.is-pressed,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon.is-pressed{background:#1e1e1e}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:focus:not(:disabled),.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-button.has-icon:before,.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.components-dropdown>.components-button.has-icon:before{display:none}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-icon{height:32px;margin-right:8px;min-width:32px;padding:0;width:32px}.edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>.edit-site-header-edit-mode__inserter-toggle.has-text.has-icon{padding:0 8px;width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon{width:auto}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon svg{display:none}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon:after{content:attr(aria-label)}.edit-site-header-edit-mode.show-icon-labels .components-button.has-icon[aria-disabled=true]{background-color:transparent}.edit-site-header-edit-mode.show-icon-labels .is-tertiary:active{background-color:transparent;box-shadow:0 0 0 1.5px var(--wp-admin-theme-color)}.edit-site-header-edit-mode.show-icon-labels .edit-site-save-button__button{padding-left:6px;padding-right:6px}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info:after{content:none}.edit-site-header-edit-mode.show-icon-labels .edit-site-document-actions__get-info.edit-site-document-actions__get-info.edit-site-document-actions__get-info,.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__inserter-toggle.edit-site-header-edit-mode__inserter-toggle{height:36px;padding:0 8px}.edit-site-header-edit-mode.show-icon-labels .edit-site-header-edit-mode__start .edit-site-header-edit-mode__toolbar>*+*{margin-left:8px}.edit-site-document-actions{align-items:center;background:#f0f0f0;border-radius:4px;display:flex;height:36px;justify-content:space-between;min-width:0;width:min(100%,450px)}.has-fixed-toolbar .edit-site-document-actions{width:min(100%,380px)}.edit-site-document-actions:hover{background-color:#e0e0e0}.edit-site-document-actions .components-button{border-radius:4px}.edit-site-document-actions .components-button:hover{background:#e0e0e0;color:var(--wp-block-synced-color)}@media (min-width:960px){.edit-site-document-actions{width:min(100%,450px)}}.edit-site-document-actions__command,.edit-site-document-actions__title{color:var(--wp-block-synced-color);flex-grow:1;overflow:hidden}.edit-site-document-actions__title{padding-left:32px}.edit-site-document-actions__title:hover{color:var(--wp-block-synced-color)}.edit-site-document-actions__title .block-editor-block-icon{flex-shrink:0;min-width:24px}.edit-site-document-actions__title h1{color:var(--wp-block-synced-color);max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-document-actions.is-page .edit-site-document-actions__title,.edit-site-document-actions.is-page .edit-site-document-actions__title h1{color:#2f2f2f}.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation:edit-site-document-actions__slide-in-right .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated.is-page .edit-site-document-actions__title{animation-delay:0s;animation-duration:1ms}}.edit-site-document-actions__shortcut{color:#2f2f2f;min-width:32px}.edit-site-document-actions__back.components-button.has-icon.has-text{color:#757575;flex-shrink:0;gap:0;min-width:36px;position:absolute;z-index:1}.edit-site-document-actions__back.components-button.has-icon.has-text:hover{background-color:transparent;color:currentColor}.edit-site-document-actions.is-animated .edit-site-document-actions__back.components-button.has-icon.has-text{animation:edit-site-document-actions__slide-in-left .3s}@media (prefers-reduced-motion:reduce){.edit-site-document-actions.is-animated .edit-site-document-actions__back.components-button.has-icon.has-text{animation-delay:0s;animation-duration:1ms}}@keyframes edit-site-document-actions__slide-in-right{0%{opacity:0;transform:translateX(-15%)}to{opacity:1;transform:translateX(0)}}@keyframes edit-site-document-actions__slide-in-left{0%{opacity:0;transform:translateX(15%)}to{opacity:1;transform:translateX(0)}}.edit-site-list-header{align-items:center;box-sizing:border-box;display:flex;height:60px;justify-content:flex-end;padding-right:16px;position:relative;width:100%}body.is-fullscreen-mode .edit-site-list-header{padding-left:60px;transition:padding-left 20ms linear;transition-delay:80ms}@media (prefers-reduced-motion:reduce){body.is-fullscreen-mode .edit-site-list-header{transition-delay:0s;transition-duration:0s}}.edit-site-list-header .edit-site-list-header__title{font-size:20px;left:0;margin:0;padding:0;position:absolute;text-align:center;width:100%}.edit-site-list-header__right{position:relative}.edit-site .edit-site-list{background:#fff;border-radius:8px;box-shadow:0 20px 25px -5px rgba(0,0,0,.8),0 8px 10px -6px rgba(0,0,0,.8);flex-grow:1}.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:100%}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__editor{min-width:0}}.edit-site .edit-site-list .interface-interface-skeleton__content{align-items:center;background:#fff;padding:16px}@media (min-width:782px){.edit-site .edit-site-list .interface-interface-skeleton__content{padding:72px}}.edit-site-list-table{border:1px solid #ddd;border-radius:2px;border-spacing:0;margin:0 auto;max-width:960px;min-width:100%;overflow:hidden}.edit-site-list-table tr{align-items:center;border-top:1px solid #f0f0f0;box-sizing:border-box;display:flex;margin:0;padding:16px}.edit-site-list-table tr:first-child{border-top:0}@media (min-width:782px){.edit-site-list-table tr{padding:24px 32px}}.edit-site-list-table tr .edit-site-list-table-column:first-child{padding-right:24px;width:calc(60% - 18px)}.edit-site-list-table tr .edit-site-list-table-column:first-child a{display:inline-block;font-weight:500;margin-bottom:4px;text-decoration:none}.edit-site-list-table tr .edit-site-list-table-column:nth-child(2){width:calc(40% - 18px);word-break:break-word}.edit-site-list-table tr .edit-site-list-table-column:nth-child(3){flex-shrink:0;min-width:36px}.edit-site-list-table tr.edit-site-list-table-head{border-bottom:1px solid #ddd;border-top:none;color:#1e1e1e;font-size:16px;font-weight:600;text-align:left}.edit-site-list-table tr.edit-site-list-table-head th{font-weight:inherit}@media (min-width:782px){.edit-site-list.is-navigation-open .components-snackbar-list{margin-left:360px}.edit-site-list__rename-modal .components-base-control{width:320px}}.edit-site-template__actions button:not(:last-child){margin-right:8px}.edit-site-list-added-by__icon{align-items:center;background:#2f2f2f;border-radius:100%;display:flex;flex-shrink:0;height:32px;justify-content:center;width:32px}.edit-site-list-added-by__icon svg{fill:#fff}.edit-site-list-added-by__avatar{background:#2f2f2f;border-radius:100%;flex-shrink:0;height:32px;overflow:hidden;width:32px}.edit-site-list-added-by__avatar img{height:32px;object-fit:cover;opacity:0;transition:opacity .1s linear;width:32px}@media (prefers-reduced-motion:reduce){.edit-site-list-added-by__avatar img{transition-delay:0s;transition-duration:0s}}.edit-site-list-added-by__avatar.is-loaded img{opacity:1}.edit-site-list-added-by__customized-info{color:#757575;display:block}.edit-site-page{background:#fff;color:#2f2f2f;flex-grow:1;margin:60px 0 0;overflow:hidden}@media (min-width:782px){.edit-site-page{border-radius:8px;margin:24px 24px 24px 0}}.edit-site-page-header{background:#fff;border-bottom:1px solid #f0f0f0;min-height:60px;padding:0 32px;position:sticky;top:0;z-index:2}.edit-site-page-header .components-text{color:#2f2f2f}.edit-site-page-header .components-heading{color:#1e1e1e}.edit-site-page-header .edit-site-page-header__sub-title{color:#757575;margin-top:8px}.edit-site-page-content{display:flex;flex-flow:column;height:100%;overflow:auto;position:relative;z-index:1}.edit-site-patterns{background:none;border:1px solid #2f2f2f;border-radius:0;margin:60px 0 0}.edit-site-patterns .components-base-control{width:100%}@media (min-width:782px){.edit-site-patterns .components-base-control{width:auto}}.edit-site-patterns .components-text{color:#949494}.edit-site-patterns .components-heading{color:#e0e0e0}@media (min-width:782px){.edit-site-patterns{margin:0}}.edit-site-patterns .edit-site-patterns__search-block{flex-grow:1;min-width:-moz-fit-content;min-width:fit-content}.edit-site-patterns .edit-site-patterns__search input[type=search]{background:#2f2f2f;color:#e0e0e0;height:40px}.edit-site-patterns .edit-site-patterns__search input[type=search]:focus{background:#2f2f2f}.edit-site-patterns .edit-site-patterns__search svg{fill:#949494}.edit-site-patterns .edit-site-patterns__sync-status-filter{background:#2f2f2f;border:none;height:40px;max-width:100%;min-width:max-content;width:100%}@media (min-width:782px){.edit-site-patterns .edit-site-patterns__sync-status-filter{width:300px}}.edit-site-patterns .edit-site-patterns__sync-status-filter-option:not([aria-checked=true]){color:#949494}.edit-site-patterns .edit-site-patterns__sync-status-filter-option:active{background:#757575;color:#f0f0f0}.edit-site-patterns .edit-site-patterns__grid-pagination{width:-moz-fit-content;width:fit-content}.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary{background-color:#2f2f2f;color:#f0f0f0;height:32px;width:32px}.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary:disabled{background:none;color:#949494}.edit-site-patterns .edit-site-patterns__grid-pagination .components-button.is-tertiary:hover:not(:disabled){background-color:#757575}.edit-site-patterns__section-header .screen-reader-shortcut:focus{top:0}.edit-site-patterns__grid{display:grid;gap:32px;grid-template-columns:1fr;margin-bottom:32px;margin-top:0;padding-top:2px}@media (min-width:960px){.edit-site-patterns__grid{grid-template-columns:1fr 1fr}}.edit-site-patterns__grid .edit-site-patterns__pattern{break-inside:avoid-column;display:flex;flex-direction:column}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview{background-color:unset;border:none;border-radius:4px;box-shadow:none;box-sizing:border-box;cursor:pointer;overflow:hidden;padding:0}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview:focus{box-shadow:inset 0 0 0 0 #fff,0 0 0 2px var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive{cursor:default}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__preview.is-inactive:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) #2f2f2f;opacity:.8}.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__button,.edit-site-patterns__grid .edit-site-patterns__pattern .edit-site-patterns__footer{color:#949494}.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview{align-items:center;border:1px dashed #2f2f2f;color:#949494;display:flex;justify-content:center;min-height:64px}.edit-site-patterns__grid .edit-site-patterns__pattern.is-placeholder .edit-site-patterns__preview:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-patterns__grid .edit-site-patterns__preview{flex:0 1 auto;margin-bottom:16px}.edit-site-patterns__load-more{align-self:center}.edit-site-patterns__pattern-title{color:#e0e0e0}.edit-site-patterns__pattern-title .is-link{color:#e0e0e0;text-decoration:none}.edit-site-patterns__pattern-title .is-link:focus,.edit-site-patterns__pattern-title .is-link:hover{color:#fff}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-icon{fill:#fff;background:var(--wp-block-synced-color);border-radius:4px}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon{display:inline-flex}.edit-site-patterns__pattern-title .edit-site-patterns__pattern-lock-icon svg{fill:currentcolor}.edit-site-patterns__no-results{color:#949494}.edit-site-table-wrapper{padding:32px;width:100%}.edit-site-table{border-collapse:collapse;border-color:inherit;position:relative;text-indent:0;width:100%}.edit-site-table a{text-decoration:none}.edit-site-table th{color:#757575;font-weight:400;padding:0 16px 16px;text-align:left}.edit-site-table td{padding:16px}.edit-site-table td,.edit-site-table th{vertical-align:center}.edit-site-table td:first-child,.edit-site-table th:first-child{padding-left:0}.edit-site-table td:last-child,.edit-site-table th:last-child{padding-right:0;text-align:right}.edit-site-table tr{border-bottom:1px solid #f0f0f0}.edit-site-sidebar-edit-mode{width:280px}.edit-site-sidebar-edit-mode>.components-panel{border-left:0;border-right:0;margin-bottom:-1px;margin-top:-1px}.edit-site-sidebar-edit-mode>.components-panel>.components-panel__header{background:#f0f0f0}.edit-site-sidebar-edit-mode .block-editor-block-inspector__card{margin:0}.edit-site-global-styles-sidebar{display:flex;flex-direction:column;min-height:100%}.edit-site-global-styles-sidebar__navigator-provider,.edit-site-global-styles-sidebar__panel{display:flex;flex:1;flex-direction:column}.edit-site-global-styles-sidebar__navigator-screen{flex:1}.edit-site-global-styles-sidebar .interface-complementary-area-header .components-button.has-icon{margin-left:0}.edit-site-global-styles-sidebar__reset-button.components-button{margin-left:auto}.edit-site-global-styles-sidebar .components-navigation__menu-title-heading{font-size:15.6px;font-weight:500}.edit-site-global-styles-sidebar .components-navigation__item>button span{font-weight:500}.edit-site-global-styles-sidebar .block-editor-panel-color-gradient-settings,.edit-site-typography-panel{border:0}.edit-site-global-styles-sidebar .single-column{grid-column:span 1}.edit-site-global-styles-sidebar .components-tools-panel .span-columns{grid-column:1/-1}.edit-site-global-styles-sidebar__blocks-group{border-top:1px solid #e0e0e0;padding-top:24px}.edit-site-global-styles-sidebar__blocks-group-help{padding:0 16px}.edit-site-global-styles-color-palette-panel,.edit-site-global-styles-gradient-palette-panel{padding:16px}.edit-site-global-styles-sidebar hr{margin:0}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon svg{display:none}.show-icon-labels .edit-site-global-styles-sidebar__header .components-button.has-icon:after{content:attr(aria-label);font-size:12px}.edit-site-sidebar-fixed-bottom-slot{background:#fff;border-top:1px solid #ddd;bottom:0;box-sizing:content-box;display:flex;padding:16px;position:sticky}.edit-site-page-panels__edit-template-preview{border:1px solid #e0e0e0;height:200px;max-height:200px;overflow:hidden}.edit-site-page-panels__edit-template-button{justify-content:center}.edit-site-change-status__content .components-popover__content{min-width:320px;padding:16px}.edit-site-change-status__content .edit-site-change-status__options .components-base-control__field>.components-v-stack{gap:8px}.edit-site-change-status__content .edit-site-change-status__options label .components-text{display:block;margin-left:26px}.edit-site-summary-field .components-dropdown{flex-grow:1}.edit-site-summary-field .edit-site-summary-field__trigger{width:100%}.edit-site-summary-field .edit-site-summary-field__label{width:30%}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:0;padding-right:16px}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs ul{display:flex}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs li{margin:0}.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:none;height:24px;margin:0 0 0 auto;min-width:24px;padding:0}@media (min-width:782px){.components-panel__header.edit-site-sidebar-edit-mode__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-site-sidebar-edit-mode__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-site-sidebar-edit-mode__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-site-sidebar-edit-mode__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-site-sidebar-edit-mode__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-site-sidebar-edit-mode__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-sidebar-card{align-items:flex-start;display:flex}.edit-site-sidebar-card__content{flex-grow:1;margin-bottom:4px}.edit-site-sidebar-card__title{font-weight:500;line-height:24px}.edit-site-sidebar-card__title.edit-site-sidebar-card__title{margin:0}.edit-site-sidebar-card__description{font-size:13px}.edit-site-sidebar-card__icon{flex:0 0 24px;height:24px;margin-right:12px;width:24px}.edit-site-sidebar-card__header{display:flex;justify-content:space-between;margin:0 0 4px}.edit-site-template-card__template-areas{margin-top:16px}.edit-site-template-card__template-areas-list,.edit-site-template-card__template-areas-list>li{margin:0}.edit-site-template-card__template-areas-item{width:100%}.edit-site-template-card__template-areas-item.components-button.has-icon{padding:0}.edit-site-template-card__actions{line-height:0}.edit-site-template-card__actions>.components-button.is-small.has-icon{min-width:auto;padding:0}.edit-site-template-revisions{margin-left:-4px}h3.edit-site-template-card__template-areas-title{font-weight:500;margin:0 0 8px}.edit-site-editor__interface-skeleton{opacity:1;transition:opacity .1s ease-out}@media (prefers-reduced-motion:reduce){.edit-site-editor__interface-skeleton{transition-delay:0s;transition-duration:0s}}.edit-site-editor__interface-skeleton.is-loading{opacity:0}.edit-site-editor__interface-skeleton .interface-interface-skeleton__header{border:0}.edit-site-editor__toggle-save-panel{background-color:#fff;border:1px dotted #ddd;box-sizing:border-box;display:flex;justify-content:center;padding:24px;width:280px}.edit-site .components-editor-notices__snackbar{bottom:40px;left:0;padding-left:16px;padding-right:16px;position:absolute;right:0}@media (min-width:783px){.edit-site .components-editor-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-site .components-editor-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-site .components-editor-notices__snackbar{left:160px}}.folded .edit-site .components-editor-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-site .components-editor-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-site .components-editor-notices__snackbar{left:0!important}.edit-site-create-pattern-modal__input input{height:40px}.edit-site-create-template-part-modal{z-index:1000001}@media (min-width:600px){.edit-site-create-template-part-modal .components-modal__frame{max-width:500px}}.edit-site-create-template-part-modal__area-radio-group{border:1px solid #757575;border-radius:2px;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio{display:block;height:100%;padding:12px;text-align:left;width:100%}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover{background-color:inherit;border-bottom:1px solid #757575;border-radius:0;margin:0}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:not(:focus),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:focus){box-shadow:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:focus,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:focus{border-bottom:1px solid #fff}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-primary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio.is-secondary:hover:last-of-type,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:last-of-type{border-bottom:none}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover),.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true]{color:#1e1e1e;cursor:auto}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio:not(:hover) .edit-site-create-template-part-modal__option-label div,.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio[aria-checked=true] .edit-site-create-template-part-modal__option-label div{color:#949494}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label{padding-top:4px;white-space:normal}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__option-label div{font-size:12px;padding-top:4px}.edit-site-create-template-part-modal__area-radio-group .components-button.edit-site-create-template-part-modal__area-radio .edit-site-create-template-part-modal__checkbox{margin-left:auto;min-width:24px}.edit-site-editor__inserter-panel,.edit-site-editor__list-view-panel{display:flex;flex-direction:column;height:100%}@media (min-width:782px){.edit-site-editor__list-view-panel{width:350px}}.edit-site-editor__inserter-panel-header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.edit-site-editor__inserter-panel-content,.edit-site-editor__list-view-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-site-editor__inserter-panel-content{height:100%}}.edit-site-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:16px;padding-right:4px}.edit-site-editor__list-view-panel-content{height:100%;overflow:auto;padding:8px 6px;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:auto;scrollbar-width:thin;will-change:transform}.edit-site-editor__list-view-panel-content::-webkit-scrollbar{height:12px;width:12px}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-track{background-color:transparent}.edit-site-editor__list-view-panel-content::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-site-editor__list-view-panel-content:focus-within::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:focus::-webkit-scrollbar-thumb,.edit-site-editor__list-view-panel-content:hover::-webkit-scrollbar-thumb{background-color:#949494}.edit-site-editor__list-view-panel-content:focus,.edit-site-editor__list-view-panel-content:focus-within,.edit-site-editor__list-view-panel-content:hover{scrollbar-color:#949494 transparent}@media (hover:none){.edit-site-editor__list-view-panel-content{scrollbar-color:#949494 transparent}}.edit-site-welcome-guide{width:312px}.edit-site-welcome-guide.guide-editor .edit-site-welcome-guide__image .edit-site-welcome-guide.guide-styles .edit-site-welcome-guide__image{background:#00a0d2}.edit-site-welcome-guide.guide-page .edit-site-welcome-guide__video{border-right:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide.guide-template .edit-site-welcome-guide__video{border-left:16px solid #3858e9;border-top:16px solid #3858e9}.edit-site-welcome-guide__image{margin:0 0 16px}.edit-site-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-site-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-site-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 16px;padding:0 32px}.edit-site-welcome-guide__text img{vertical-align:bottom}.edit-site-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-site-start-template-options__modal .edit-site-start-template-options__modal__actions{background-color:#fff;border-top:1px solid #ddd;bottom:0;height:92px;margin-left:-32px;margin-right:-32px;padding-left:32px;padding-right:32px;position:absolute;width:100%;z-index:1}.edit-site-start-template-options__modal .block-editor-block-patterns-list{padding-bottom:92px}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:2;column-gap:24px}@media (min-width:782px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:3}}@media (min-width:1280px){.edit-site-start-template-options__modal-content .block-editor-block-patterns-list{column-count:4}}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item{break-inside:avoid-column}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item .block-editor-block-patterns-list__item-title{display:none}.edit-site-start-template-options__modal-content .block-editor-block-patterns-list .block-editor-block-patterns-list__item:not(:focus):not(:hover) .block-editor-block-preview__container{box-shadow:0 0 0 1px #ddd}.edit-site-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-site-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-site-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-site-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-site-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-site-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-site-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-site-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-site-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-site-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.edit-site-layout{background:#1e1e1e;color:#ccc;display:flex;flex-direction:column;height:100%}.edit-site-layout__hub{height:60px;left:0;position:fixed;top:0;width:calc(100vw - 48px);z-index:3}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__hub{padding-right:0;width:60px}@media (min-width:782px){.edit-site-layout__hub{width:336px}}.edit-site-layout.is-full-canvas .edit-site-layout__hub{border-radius:0;box-shadow:none;padding-right:16px;width:100vw}@media (min-width:782px){.edit-site-layout.is-full-canvas .edit-site-layout__hub{padding-right:0;width:auto}}.edit-site-layout__header-container{z-index:4}.edit-site-layout__header{display:flex;height:60px;z-index:2}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__header{position:fixed;width:100vw}.edit-site-layout__content{display:flex;flex-grow:1;height:100%}.edit-site-layout__sidebar-region{flex-shrink:0;width:100vw;z-index:1}@media (min-width:782px){.edit-site-layout__sidebar-region{width:360px}}.edit-site-layout.is-full-canvas .edit-site-layout__sidebar-region{height:100vh;left:0;position:fixed!important;top:0}.edit-site-layout__sidebar-region .edit-site-layout__sidebar{display:flex;flex-direction:column;height:100%}.edit-site-layout__sidebar-region .resizable-editor__drag-handle{right:0}.edit-site-layout__main{display:flex;flex-direction:column;flex-grow:1;overflow:hidden}.edit-site-layout__canvas-container{flex-grow:1;position:relative;z-index:2}.edit-site-layout__canvas-container.is-resizing:after{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:100}.edit-site-layout__canvas{align-items:center;bottom:0;display:flex;justify-content:center;left:0;position:absolute;top:0;width:100%}.edit-site-layout__canvas.is-right-aligned{justify-content:flex-end}.edit-site-layout__canvas>div{color:#1e1e1e}@media (min-width:782px){.edit-site-layout__canvas{bottom:24px;top:24px;width:calc(100% - 24px)}.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .edit-site-visual-editor__editor-canvas,.edit-site-layout:not(.is-full-canvas) .edit-site-layout__canvas>div .interface-interface-skeleton__content,.edit-site-layout__canvas>div{border-radius:8px}}.edit-site-layout.is-full-canvas .edit-site-layout__canvas{bottom:0;top:0;width:100%}.edit-site-layout.is-full-canvas .edit-site-layout__canvas>div{border-radius:0}.edit-site-layout__canvas .interface-interface-skeleton{min-height:100%!important;position:relative!important}.edit-site-layout__view-mode-toggle.components-button{align-items:center;border-bottom:1px solid transparent;border-radius:0;color:#fff;display:flex;height:60px;justify-content:center;overflow:hidden;padding:0;position:relative;width:60px}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__view-mode-toggle.components-button{border-bottom-color:#e0e0e0;transition:border-bottom-color .15s ease-out .4s}.edit-site-layout__view-mode-toggle.components-button:active,.edit-site-layout__view-mode-toggle.components-button:hover{color:#fff}.edit-site-layout__view-mode-toggle.components-button:focus{box-shadow:none}.edit-site-layout__view-mode-toggle.components-button:before{border-radius:4px;bottom:9px;box-shadow:none;content:"";display:block;left:9px;position:absolute;right:9px;top:9px;transition:box-shadow .1s ease}@media (prefers-reduced-motion:reduce){.edit-site-layout__view-mode-toggle.components-button:before{transition-delay:0s;transition-duration:0s}}.edit-site-layout__view-mode-toggle.components-button:focus:before{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) hsla(0,0%,100%,.1),inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-layout__view-mode-toggle.components-button .edit-site-layout__view-mode-toggle-icon{align-items:center;border-radius:2px;display:flex;height:64px;justify-content:center;width:64px}.edit-site-layout__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:280px;z-index:100000}.edit-site-layout__actions:focus,.edit-site-layout__actions:focus-within{bottom:0;top:auto}.edit-site-layout__actions.is-entity-save-view-open:focus,.edit-site-layout__actions.is-entity-save-view-open:focus-within{top:0}@media (min-width:782px){.edit-site-layout__actions{border-left:1px solid #ddd}.edit-site-layout.has-fixed-toolbar .edit-site-layout__canvas-container{z-index:5}.edit-site-layout.has-fixed-toolbar .edit-site-site-hub{z-index:4}}@media (min-width:782px){.edit-site-layout.has-fixed-toolbar .edit-site-layout__header:focus-within{z-index:3}}.is-edit-mode.is-distraction-free .edit-site-layout__header-container{height:60px;left:0;position:absolute;right:0;top:0;width:100%;z-index:4}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within div{transform:translateX(0) translateY(0) translateZ(0)!important}.is-edit-mode.is-distraction-free .edit-site-layout__header-container:focus-within .edit-site-layout__header{opacity:1!important}.is-edit-mode.is-distraction-free .edit-site-layout__header,.is-edit-mode.is-distraction-free .edit-site-site-hub{position:absolute;top:0;z-index:2}.is-edit-mode.is-distraction-free .edit-site-site-hub{z-index:3}.is-edit-mode.is-distraction-free .edit-site-layout__header{width:100%}.edit-site-save-hub{border-top:1px solid #2f2f2f;color:#949494;flex-shrink:0;margin:0;padding:24px}.edit-site-save-hub__button{color:inherit;justify-content:center;width:100%}.edit-site-save-hub__button[aria-disabled=true]{opacity:1}.edit-site-save-hub__button[aria-disabled=true]:hover{color:inherit}@media (min-width:600px){.edit-site-save-panel__modal{width:600px}}.edit-site-sidebar__content{flex-grow:1;overflow-y:auto}.edit-site-sidebar__content .components-navigator-screen{display:flex;flex-direction:column;height:100%;scrollbar-color:transparent transparent;scrollbar-gutter:stable both-edges;scrollbar-gutter:stable;scrollbar-width:thin;will-change:transform}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar{height:12px;width:12px}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-track{background-color:transparent}.edit-site-sidebar__content .components-navigator-screen::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:transparent;border:3px solid transparent;border-radius:8px}.edit-site-sidebar__content .components-navigator-screen:focus-within::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:focus::-webkit-scrollbar-thumb,.edit-site-sidebar__content .components-navigator-screen:hover::-webkit-scrollbar-thumb{background-color:#757575}.edit-site-sidebar__content .components-navigator-screen:focus,.edit-site-sidebar__content .components-navigator-screen:focus-within,.edit-site-sidebar__content .components-navigator-screen:hover{scrollbar-color:#757575 transparent}@media (hover:none){.edit-site-sidebar__content .components-navigator-screen{scrollbar-color:#757575 transparent}}.edit-site-sidebar__footer{border-top:1px solid #2f2f2f;flex-shrink:0;margin:0 24px;padding:24px 0}.edit-site-sidebar__content>div{padding:0 12px}.edit-site-sidebar-button{color:#e0e0e0;flex-shrink:0}.edit-site-sidebar-button:focus:not(:disabled){box-shadow:none;outline:none}.edit-site-sidebar-button:focus-visible:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent,var(--wp-admin-theme-color,#007cba));outline:3px solid transparent}.edit-site-sidebar-button:focus,.edit-site-sidebar-button:focus-visible,.edit-site-sidebar-button:hover,.edit-site-sidebar-button:not([aria-disabled=true]):active,.edit-site-sidebar-button[aria-expanded=true]{color:#f0f0f0}.edit-site-sidebar-navigation-item.components-item{border:none;border-radius:2px;color:#949494;min-height:40px;padding:8px 6px 8px 16px}.edit-site-sidebar-navigation-item.components-item:focus,.edit-site-sidebar-navigation-item.components-item:hover,.edit-site-sidebar-navigation-item.components-item[aria-current]{background:#2f2f2f;color:#e0e0e0}.edit-site-sidebar-navigation-item.components-item:focus .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item:hover .edit-site-sidebar-navigation-item__drilldown-indicator,.edit-site-sidebar-navigation-item.components-item[aria-current] .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#e0e0e0}.edit-site-sidebar-navigation-item.components-item[aria-current]{background:var(--wp-admin-theme-color);color:#fff}.edit-site-sidebar-navigation-item.components-item .edit-site-sidebar-navigation-item__drilldown-indicator{fill:#949494}.edit-site-sidebar-navigation-item.components-item:is(a){align-items:center;display:flex;text-decoration:none}.edit-site-sidebar-navigation-item.components-item:is(a):focus{box-shadow:none;outline:none}.edit-site-sidebar-navigation-item.components-item:is(a):focus-visible{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-site-sidebar-navigation-item.components-item.with-suffix{padding-right:16px}.edit-site-sidebar-navigation-screen__content .block-editor-list-view-block-select-button{cursor:grab;padding:8px}.edit-site-sidebar-navigation-screen{display:flex;flex-direction:column;overflow-x:unset!important;position:relative}.edit-site-sidebar-navigation-screen__main{flex-grow:1;margin-bottom:16px}.edit-site-sidebar-navigation-screen__main.has-footer{margin-bottom:0}.edit-site-sidebar-navigation-screen__content{padding:0 16px}.edit-site-sidebar-navigation-screen__content .components-item-group{margin-left:-16px;margin-right:-16px}.edit-site-sidebar-navigation-screen__content .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__content .components-heading{margin-bottom:8px}.edit-site-sidebar-navigation-screen__meta{color:#ccc;margin:0 0 16px 16px}.edit-site-sidebar-navigation-screen__meta .components-text{color:#ccc}.edit-site-sidebar-navigation-screen__page-link{color:#949494;display:inline-block}.edit-site-sidebar-navigation-screen__page-link:focus,.edit-site-sidebar-navigation-screen__page-link:hover{color:#fff}.edit-site-sidebar-navigation-screen__page-link .components-external-link__icon{margin-left:4px}.edit-site-sidebar-navigation-screen__title-icon{background:#1e1e1e;margin-bottom:8px;padding-bottom:8px;padding-top:108px;position:sticky;top:0;z-index:1}.edit-site-sidebar-navigation-screen__title{flex-grow:1;overflow:hidden;overflow-wrap:break-word;padding:6px 0 0}.edit-site-sidebar-navigation-screen__actions{flex-shrink:0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item-preview{border:1px solid #1e1e1e}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item.is-active .edit-site-global-styles-variations_item-preview{border:1px solid #f0f0f0}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:hover .edit-site-global-styles-variations_item-preview{border:1px solid var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen__content .edit-site-global-styles-style-variations-container .edit-site-global-styles-variations_item:focus .edit-site-global-styles-variations_item-preview{border:var(--wp-admin-theme-color) var(--wp-admin-border-width-focus) solid}.edit-site-sidebar-navigation-screen__footer{background-color:#1e1e1e;border-top:1px solid #2f2f2f;bottom:0;gap:0;margin:16px 0 0;padding:16px 0;position:sticky}.edit-site-sidebar__notice{background:#2f2f2f;color:#ddd;margin:24px 0}.edit-site-sidebar__notice.is-dismissible{padding-right:8px}.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):focus,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):active,.edit-site-sidebar__notice .components-notice__dismiss:not(:disabled):not([aria-disabled=true]):not(.is-secondary):hover{color:#f0f0f0}.edit-site-sidebar-navigation-screen__input-control{width:100%}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container{background:#2f2f2f}.edit-site-sidebar-navigation-screen__input-control .components-input-control__container .components-button{color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__input{background:#2f2f2f!important;color:#e0e0e0!important}.edit-site-sidebar-navigation-screen__input-control .components-input-control__backdrop{border:4px!important}.edit-site-sidebar-navigation-screen__input-control .components-base-control__help{color:#949494}.edit-site-sidebar-navigation-screen-details-footer{padding-bottom:8px;padding-left:16px;padding-top:8px}.edit-site-sidebar-navigation-screen-global-styles__revisions{border-radius:2px}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover){color:#e0e0e0}.edit-site-sidebar-navigation-screen-global-styles__revisions:not(:hover) .edit-site-sidebar-navigation-screen-global-styles__revisions__label{color:#949494}.sidebar-navigation__more-menu .components-button{color:#e0e0e0}.sidebar-navigation__more-menu .components-button:focus,.sidebar-navigation__more-menu .components-button:hover,.sidebar-navigation__more-menu .components-button[aria-current]{color:#f0f0f0}.edit-site-sidebar-navigation-screen-page__featured-image-wrapper{background-color:#2f2f2f;border-radius:4px;margin-bottom:16px;min-height:128px}.edit-site-sidebar-navigation-screen-page__featured-image{align-items:center;background-position:50% 50%;background-size:cover;border-radius:2px;color:#949494;display:flex;height:128px;justify-content:center;overflow:hidden;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image img{height:100%;object-fit:cover;object-position:50% 50%;width:100%}.edit-site-sidebar-navigation-screen-page__featured-image-description{font-size:12px}.edit-site-sidebar-navigation-screen-page__excerpt{font-size:12px;margin-bottom:24px}.edit-site-sidebar-navigation-screen-page__modified{color:#949494;margin:0 0 16px 16px}.edit-site-sidebar-navigation-screen-page__modified .components-text{color:#949494}.edit-site-sidebar-navigation-screen-page__status{display:inline-flex}.edit-site-sidebar-navigation-screen-page__status time{display:contents}.edit-site-sidebar-navigation-screen-page__status svg{fill:#f0b849;height:16px;margin-right:8px;width:16px}.edit-site-sidebar-navigation-screen-page__status.has-future-status svg,.edit-site-sidebar-navigation-screen-page__status.has-publish-status svg{fill:#4ab866}.edit-site-sidebar-navigation-details-screen-panel{margin:24px 0}.edit-site-sidebar-navigation-details-screen-panel:last-of-type{margin-bottom:0}.edit-site-sidebar-navigation-details-screen-panel .edit-site-sidebar-navigation-details-screen-panel__heading{color:#ccc;font-size:11px;font-weight:500;margin-bottom:0;padding:0;text-transform:uppercase}.edit-site-sidebar-navigation-details-screen-panel__label.edit-site-sidebar-navigation-details-screen-panel__label{color:#949494;width:100px}.edit-site-sidebar-navigation-details-screen-panel__value.edit-site-sidebar-navigation-details-screen-panel__value{color:#e0e0e0}.edit-site-sidebar-navigation-screen-pattern__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon{height:24px;margin-right:8px;width:24px}.edit-site-sidebar-navigation-screen-pattern__lock-icon{display:inline-flex}.edit-site-sidebar-navigation-screen-patterns__group{margin-bottom:24px}.edit-site-sidebar-navigation-screen-patterns__group:last-of-type{border-bottom:0;margin-bottom:0;padding-bottom:0}.edit-site-sidebar-navigation-screen-patterns__group-header{margin-top:16px}.edit-site-sidebar-navigation-screen-patterns__group-header p{color:#949494}.edit-site-sidebar-navigation-screen-patterns__group-header h2{font-size:11px;font-weight:500;text-transform:uppercase}.edit-site-sidebar-navigation-screen-template__added-by-description{align-items:center;display:flex;justify-content:space-between;margin-top:24px}.edit-site-sidebar-navigation-screen-template__added-by-description-author{align-items:center;display:inline-flex}.edit-site-sidebar-navigation-screen-template__added-by-description-author img{border-radius:12px}.edit-site-sidebar-navigation-screen-template__added-by-description-author svg{fill:#949494}.edit-site-sidebar-navigation-screen-template__added-by-description-author-icon{height:24px;margin-right:8px;width:24px}.edit-site-sidebar-navigation-screen-template__template-area-button{align-items:center;border-radius:4px;color:#fff;display:flex;flex-wrap:nowrap;width:100%}.edit-site-sidebar-navigation-screen-template__template-area-button:focus,.edit-site-sidebar-navigation-screen-template__template-area-button:hover{background:#2f2f2f;color:#fff}.edit-site-sidebar-navigation-screen-template__template-area-label-text{flex-grow:1;margin:0 16px 0 4px}.edit-site-sidebar-navigation-screen-template__template-icon{display:flex}.edit-site-site-hub{align-items:center;display:flex;gap:8px;justify-content:space-between}.edit-site-site-hub .edit-site-site-hub__container{gap:0}.edit-site-site-hub .edit-site-site-hub__site-title,.edit-site-site-hub .edit-site-site-hub_toggle-command-center{transition:opacity .1s ease}.edit-site-site-hub .edit-site-site-hub__site-title.is-transparent,.edit-site-site-hub .edit-site-site-hub_toggle-command-center.is-transparent{opacity:0!important}.edit-site-site-hub .edit-site-site-hub__site-view-link{flex-grow:0;margin-right:var(--wp-admin-border-width-focus)}@media (min-width:480px){.edit-site-site-hub .edit-site-site-hub__site-view-link{opacity:0;transition:opacity .2s ease-in-out}}.edit-site-site-hub .edit-site-site-hub__site-view-link:focus{opacity:1}.edit-site-site-hub .edit-site-site-hub__site-view-link svg{fill:#e0e0e0}.edit-site-site-hub:hover .edit-site-site-hub__site-view-link{opacity:1}.edit-site-site-hub__post-type{opacity:.6}.edit-site-site-hub__view-mode-toggle-container{background:#1e1e1e;flex-shrink:0;height:60px;width:60px}.edit-site-site-hub__view-mode-toggle-container.has-transparent-background{background:transparent}.edit-site-site-hub__text-content{overflow:hidden}.edit-site-site-hub__title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-site-site-hub__site-title{color:#e0e0e0;flex-grow:1;margin-left:4px}.edit-site-site-hub_toggle-command-center{color:#e0e0e0}.edit-site-site-hub_toggle-command-center:hover{color:#f0f0f0}.edit-site-sidebar-navigation-screen__description{margin:0 0 32px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf{border-radius:2px;max-width:calc(100% - 4px)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf[aria-current]{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block__menu{margin-left:-8px}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected>td{background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block-contents{color:inherit}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:not(:hover) .block-editor-list-view-block__menu{opacity:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:focus .block-editor-list-view-block__menu-cell,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected:hover .block-editor-list-view-block__menu-cell{opacity:1}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf .block-editor-list-view-block-contents:focus:after,.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-selected .block-editor-list-view-block__menu:focus{box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch){background:transparent}.edit-site-sidebar-navigation-screen-navigation-menus__content .offcanvas-editor-list-view-leaf.is-branch-selected:not(.is-selected):not(.is-synced-branch):hover{background:#2f2f2f}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block__contents-cell{width:100%}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-leaf .block-editor-list-view-block-contents{white-space:normal}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__title{margin-top:3px}.edit-site-sidebar-navigation-screen-navigation-menus__content .block-editor-list-view-block__menu-cell{padding-right:0}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button{color:#949494}.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:focus,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button:hover,.edit-site-sidebar-navigation-screen-navigation-menus__content .components-button[aria-current]{color:#fff}.edit-site-sidebar-navigation-screen-navigation-menus__content .popover-slot .wp-block-navigation-submenu{display:none}.edit-site-sidebar-navigation-screen-navigation-menus__loading.components-spinner{display:block;margin-left:auto;margin-right:auto}.edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor{display:none}.edit-site-site-icon__icon{fill:currentColor}.edit-site-site-icon__image{background:#333;border-radius:4px;height:auto;object-fit:cover;width:100%}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-site-icon__image{border-radius:0}.edit-site-style-book{height:100%}.edit-site-style-book.is-button,.edit-site-style-book__iframe.is-button{border-radius:8px}.edit-site-style-book__iframe.is-focused{outline:calc(var(--wp-admin-border-width-focus)*2) solid var(--wp-admin-theme-color);outline-offset:calc(var(--wp-admin-border-width-focus)*-2)}.edit-site-style-book__tab-panel .components-tab-panel__tabs{background:#fff;color:#1e1e1e}.edit-site-style-book__tab-panel .components-tab-panel__tab-content{bottom:0;left:0;overflow:auto;padding:0;position:absolute;right:0;top:48px}.edit-site-editor-canvas-container{background:#fff;border-radius:2px;bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0;transition:all .3s}.edit-site-editor-canvas-container__close-button{background:#fff;position:absolute;right:8px;top:6px;z-index:1}.edit-site-resizable-frame__inner{position:relative}body:has(.edit-site-resizable-frame__inner.is-resizing){cursor:col-resize;user-select:none;-webkit-user-select:none}.edit-site-resizable-frame__inner.is-resizing:before{content:"";inset:0;position:absolute;z-index:1}.edit-site-resizable-frame__inner-content{inset:0;position:absolute;z-index:0}.edit-site-resizable-frame__handle{align-items:center;background-color:hsla(0,0%,46%,.4);border:0;border-radius:4px;cursor:col-resize;display:flex;height:64px;justify-content:flex-end;padding:0;position:absolute;top:calc(50% - 32px);width:4px;z-index:100}.edit-site-resizable-frame__handle:before{content:"";height:100%;left:100%;position:absolute;width:32px}.edit-site-resizable-frame__handle:after{content:"";height:100%;position:absolute;right:100%;width:32px}.edit-site-resizable-frame__handle:focus-visible{outline:2px solid transparent}.edit-site-resizable-frame__handle.is-resizing,.edit-site-resizable-frame__handle:focus,.edit-site-resizable-frame__handle:hover{background-color:var(--wp-admin-theme-color)}.edit-site-push-changes-to-global-styles-control .components-button{justify-content:center;width:100%}body.js #wpadminbar{display:none}body.js #wpbody{padding-top:0}body.js.appearance_page_gutenberg-template-parts,body.js.site-editor-php{background:#fff}body.js.appearance_page_gutenberg-template-parts #wpcontent,body.js.site-editor-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content,body.js.site-editor-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-template-parts #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.appearance_page_gutenberg-template-parts #wpfooter,body.js.site-editor-php #wpbody-content>div:not(.edit-site):not(#screen-meta),body.js.site-editor-php #wpfooter{display:none}body.js.appearance_page_gutenberg-template-parts .a11y-speak-region,body.js.site-editor-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-template-parts ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-template-parts ul#adminmenu>li.current>a.current:after,body.js.site-editor-php ul#adminmenu a.wp-has-current-submenu:after,body.js.site-editor-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-template-parts .media-frame select.attachment-filters:last-of-type,body.js.site-editor-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}body.js.site-editor-php{background:#1e1e1e}.components-modal__frame,.edit-site{box-sizing:border-box}.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before,.edit-site *,.edit-site :after,.edit-site :before{box-sizing:inherit}.edit-site{height:100vh}@media (min-width:600px){.edit-site{bottom:0;left:0;min-height:100vh;position:fixed;right:0;top:0}}.no-js .edit-site{min-height:0;position:static}.edit-site .interface-interface-skeleton{top:0}.edit-site .interface-complementary-area__pin-unpin-item.components-button{display:none}.edit-site .interface-interface-skeleton__content{background-color:#1e1e1e}@keyframes edit-post__fade-in-animation{0%{opacity:0}to{opacity:1}}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
overflow:auto;
z-index:20;
}
+@media (min-width:782px){
+ .interface-interface-skeleton__content{
+ z-index:auto;
+ }
+}
.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
background:#fff;
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-left:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{position:absolute;right:16px;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-right:160px;padding-right:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-right:48px;margin-top:0}.wp-block[data-type="core/widget-area"]{margin-left:auto;margin-right:auto;max-width:700px}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title{background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:48px;margin:0;position:relative;transform:translateZ(0);z-index:1}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title:hover{background:#fff}.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block{position:relative;width:auto}.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block{max-width:100%}.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened{padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper{margin:0;padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper>.block-editor-block-list__layout{margin-top:-48px;min-height:32px;padding:72px 16px 16px}.wp-block-widget-area__highlight-drop-zone{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color)}body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title,body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title *{pointer-events:none}.edit-widgets-error-boundary{box-shadow:0 .7px 1px rgba(0,0,0,.15),0 2.7px 3.8px -.2px rgba(0,0,0,.15),0 5.5px 7.8px -.3px rgba(0,0,0,.15),-.1px 11.5px 16.4px -.5px rgba(0,0,0,.15);margin:60px auto auto;max-width:780px;padding:20px}.edit-widgets-header{align-items:center;background:#fff;display:flex;height:60px;justify-content:space-between;overflow:auto;padding:0 16px}@media (min-width:600px){.edit-widgets-header{overflow:visible}}.edit-widgets-header__navigable-toolbar-wrapper{align-items:center;display:flex;justify-content:center}.edit-widgets-header__title{font-size:20px;margin:0 0 0 20px;padding:0}.edit-widgets-header__actions{align-items:center;display:flex;gap:4px}@media (min-width:600px){.edit-widgets-header__actions{gap:8px}}.edit-widgets-header-toolbar{border:none}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{height:36px;min-width:36px;padding:6px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{background:#1e1e1e}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:focus:not(:disabled),.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:before,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:before{display:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:12px;padding-right:12px}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle:after{content:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-widgets-keyboard-shortcut-help-modal__main-shortcuts .edit-widgets-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.components-panel__header.edit-widgets-sidebar__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:4px;padding-right:0}.components-panel__header.edit-widgets-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-widgets-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-widgets-sidebar__panel-tabs .components-button.has-icon{display:none;margin-right:auto}@media (min-width:782px){.components-panel__header.edit-widgets-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-widgets-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-button.edit-widgets-sidebar__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-widgets-sidebar__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-widgets-sidebar__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-widgets-sidebar__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-widgets-sidebar__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-widgets-sidebar__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-widgets-sidebar__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-widgets-widget-areas__top-container{display:flex;padding:16px}.edit-widgets-widget-areas__top-container .block-editor-block-icon{margin-left:16px}.edit-widgets-notices__snackbar{bottom:20px;left:0;padding-left:16px;padding-right:16px;position:fixed;right:0}@media (min-width:783px){.edit-widgets-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-widgets-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-widgets-notices__snackbar{right:160px}}.folded .edit-widgets-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-widgets-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-widgets-notices__snackbar{right:0!important}.edit-widgets-notices__dismissible .components-notice,.edit-widgets-notices__pinned .components-notice{border-bottom:1px solid rgba(0,0,0,.2);box-sizing:border-box;margin:0;min-height:60px;padding:0 12px}.edit-widgets-notices__dismissible .components-notice .components-notice__dismiss,.edit-widgets-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.edit-widgets-layout__inserter-panel{display:flex;flex-direction:column;height:100%}.edit-widgets-layout__inserter-panel .block-editor-inserter__menu{overflow:hidden}.edit-widgets-layout__inserter-panel-header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.edit-widgets-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-widgets-layout__inserter-panel-content{height:100%}}@media (min-width:782px){.blocks-widgets-container .interface-interface-skeleton__header:not(:focus-within){z-index:19}}.edit-widgets-welcome-guide{width:312px}.edit-widgets-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-widgets-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-widgets-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-widgets-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-widgets-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-widgets-block-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative}.edit-widgets-block-editor,.edit-widgets-block-editor .block-editor-writing-flow,.edit-widgets-block-editor .block-editor-writing-flow>div,.edit-widgets-block-editor>div:last-of-type{display:flex;flex-direction:column;flex-grow:1}.edit-widgets-block-editor .edit-widgets-main-block-list{height:100%}.edit-widgets-block-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.edit-widgets-block-editor .components-button.has-icon,.edit-widgets-block-editor .components-button.is-tertiary{padding:6px}.edit-widgets-editor__list-view-panel{display:flex;flex-direction:column;height:100%;min-width:350px}.edit-widgets-editor__list-view-panel-content{height:calc(100% - 44px);overflow-y:auto;padding:8px}.edit-widgets-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:4px;padding-right:16px}body.js.appearance_page_gutenberg-widgets,body.js.widgets-php{background:#fff}body.js.appearance_page_gutenberg-widgets #wpcontent,body.js.widgets-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-widgets #wpbody-content,body.js.widgets-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-widgets #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.appearance_page_gutenberg-widgets #wpfooter,body.js.widgets-php #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.widgets-php #wpfooter{display:none}body.js.appearance_page_gutenberg-widgets .a11y-speak-region,body.js.widgets-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-widgets ul#adminmenu>li.current>a.current:after,body.js.widgets-php ul#adminmenu a.wp-has-current-submenu:after,body.js.widgets-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,body.js.widgets-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.blocks-widgets-container,.components-modal__frame{box-sizing:border-box}.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before,.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}@media (min-width:600px){.blocks-widgets-container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.blocks-widgets-container{min-height:calc(100vh - 32px)}}.blocks-widgets-container .interface-interface-skeleton__content{background-color:#f0f0f0}.blocks-widgets-container .editor-styles-wrapper{margin:auto;max-width:700px}.edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item{display:none}.widgets-php .notice{display:none!important}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-left:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-left:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-right:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-right:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:10px;right:auto;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-right:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;left:0;max-height:100%;position:fixed;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{right:0}@media (min-width:783px){.interface-interface-skeleton{right:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{right:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{right:160px}}.folded .interface-interface-skeleton{right:0}@media (min-width:783px){.folded .interface-interface-skeleton{right:36px}}body.is-fullscreen-mode .interface-interface-skeleton{right:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-right:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-left:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;position:absolute;right:0;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:0;position:fixed!important;right:auto;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-right:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-right:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-right:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-left:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{position:absolute;right:16px;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-right:160px;padding-right:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-right:48px;margin-top:0}.wp-block[data-type="core/widget-area"]{margin-left:auto;margin-right:auto;max-width:700px}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title{background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:48px;margin:0;position:relative;transform:translateZ(0);z-index:1}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title:hover{background:#fff}.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block{position:relative;width:auto}.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block{max-width:100%}.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened{padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper{margin:0;padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper>.block-editor-block-list__layout{margin-top:-48px;min-height:32px;padding:72px 16px 16px}.wp-block-widget-area__highlight-drop-zone{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color)}body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title,body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title *{pointer-events:none}.edit-widgets-error-boundary{box-shadow:0 .7px 1px rgba(0,0,0,.15),0 2.7px 3.8px -.2px rgba(0,0,0,.15),0 5.5px 7.8px -.3px rgba(0,0,0,.15),-.1px 11.5px 16.4px -.5px rgba(0,0,0,.15);margin:60px auto auto;max-width:780px;padding:20px}.edit-widgets-header{align-items:center;background:#fff;display:flex;height:60px;justify-content:space-between;overflow:auto;padding:0 16px}@media (min-width:600px){.edit-widgets-header{overflow:visible}}.edit-widgets-header__navigable-toolbar-wrapper{align-items:center;display:flex;justify-content:center}.edit-widgets-header__title{font-size:20px;margin:0 0 0 20px;padding:0}.edit-widgets-header__actions{align-items:center;display:flex;gap:4px}@media (min-width:600px){.edit-widgets-header__actions{gap:8px}}.edit-widgets-header-toolbar{border:none}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{height:36px;min-width:36px;padding:6px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{background:#1e1e1e}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:focus:not(:disabled),.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:before,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:before{display:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:12px;padding-right:12px}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle:after{content:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(-45deg)}.edit-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-widgets-keyboard-shortcut-help-modal__main-shortcuts .edit-widgets-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 1rem 0 0;text-align:left}.edit-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 .2rem 0 0}.components-panel__header.edit-widgets-sidebar__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:4px;padding-right:0}.components-panel__header.edit-widgets-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-widgets-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-widgets-sidebar__panel-tabs .components-button.has-icon{display:none;margin-right:auto}@media (min-width:782px){.components-panel__header.edit-widgets-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-widgets-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-right:0;padding:3px 16px;position:relative}.components-button.edit-widgets-sidebar__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-widgets-sidebar__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-widgets-sidebar__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-widgets-sidebar__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-widgets-sidebar__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-widgets-sidebar__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-widgets-sidebar__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-widgets-widget-areas__top-container{display:flex;padding:16px}.edit-widgets-widget-areas__top-container .block-editor-block-icon{margin-left:16px}.edit-widgets-notices__snackbar{bottom:20px;left:0;padding-left:16px;padding-right:16px;position:fixed;right:0}@media (min-width:783px){.edit-widgets-notices__snackbar{right:160px}}@media (min-width:783px){.auto-fold .edit-widgets-notices__snackbar{right:36px}}@media (min-width:961px){.auto-fold .edit-widgets-notices__snackbar{right:160px}}.folded .edit-widgets-notices__snackbar{right:0}@media (min-width:783px){.folded .edit-widgets-notices__snackbar{right:36px}}body.is-fullscreen-mode .edit-widgets-notices__snackbar{right:0!important}.edit-widgets-notices__dismissible .components-notice,.edit-widgets-notices__pinned .components-notice{border-bottom:1px solid rgba(0,0,0,.2);box-sizing:border-box;margin:0;min-height:60px;padding:0 12px}.edit-widgets-notices__dismissible .components-notice .components-notice__dismiss,.edit-widgets-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.edit-widgets-layout__inserter-panel{display:flex;flex-direction:column;height:100%}.edit-widgets-layout__inserter-panel .block-editor-inserter__menu{overflow:hidden}.edit-widgets-layout__inserter-panel-header{display:flex;justify-content:flex-end;padding-left:8px;padding-top:8px}.edit-widgets-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-widgets-layout__inserter-panel-content{height:100%}}@media (min-width:782px){.blocks-widgets-container .interface-interface-skeleton__header:not(:focus-within){z-index:19}}.edit-widgets-welcome-guide{width:312px}.edit-widgets-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-widgets-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-widgets-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-widgets-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-widgets-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-widgets-block-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative}.edit-widgets-block-editor,.edit-widgets-block-editor .block-editor-writing-flow,.edit-widgets-block-editor .block-editor-writing-flow>div,.edit-widgets-block-editor>div:last-of-type{display:flex;flex-direction:column;flex-grow:1}.edit-widgets-block-editor .edit-widgets-main-block-list{height:100%}.edit-widgets-block-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.edit-widgets-block-editor .components-button.has-icon,.edit-widgets-block-editor .components-button.is-tertiary{padding:6px}.edit-widgets-editor__list-view-panel{display:flex;flex-direction:column;height:100%;min-width:350px}.edit-widgets-editor__list-view-panel-content{height:calc(100% - 44px);overflow-y:auto;padding:8px}.edit-widgets-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:4px;padding-right:16px}body.js.appearance_page_gutenberg-widgets,body.js.widgets-php{background:#fff}body.js.appearance_page_gutenberg-widgets #wpcontent,body.js.widgets-php #wpcontent{padding-right:0}body.js.appearance_page_gutenberg-widgets #wpbody-content,body.js.widgets-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-widgets #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.appearance_page_gutenberg-widgets #wpfooter,body.js.widgets-php #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.widgets-php #wpfooter{display:none}body.js.appearance_page_gutenberg-widgets .a11y-speak-region,body.js.widgets-php .a11y-speak-region{right:-1px;top:-1px}body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-widgets ul#adminmenu>li.current>a.current:after,body.js.widgets-php ul#adminmenu a.wp-has-current-submenu:after,body.js.widgets-php ul#adminmenu>li.current>a.current:after{border-left-color:#fff}body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,body.js.widgets-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.blocks-widgets-container,.components-modal__frame{box-sizing:border-box}.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before,.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}@media (min-width:600px){.blocks-widgets-container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.blocks-widgets-container{min-height:calc(100vh - 32px)}}.blocks-widgets-container .interface-interface-skeleton__content{background-color:#f0f0f0}.blocks-widgets-container .editor-styles-wrapper{margin:auto;max-width:700px}.edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item{display:none}.widgets-php .notice{display:none!important}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
overflow:auto;
z-index:20;
}
+@media (min-width:782px){
+ .interface-interface-skeleton__content{
+ z-index:auto;
+ }
+}
.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{
background:#fff;
-:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-right:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{left:16px;position:absolute;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-left:160px;padding-left:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-left:48px;margin-top:0}.wp-block[data-type="core/widget-area"]{margin-left:auto;margin-right:auto;max-width:700px}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title{background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:48px;margin:0;position:relative;transform:translateZ(0);z-index:1}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title:hover{background:#fff}.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block{position:relative;width:auto}.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block{max-width:100%}.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened{padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper{margin:0;padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper>.block-editor-block-list__layout{margin-top:-48px;min-height:32px;padding:72px 16px 16px}.wp-block-widget-area__highlight-drop-zone{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color)}body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title,body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title *{pointer-events:none}.edit-widgets-error-boundary{box-shadow:0 .7px 1px rgba(0,0,0,.15),0 2.7px 3.8px -.2px rgba(0,0,0,.15),0 5.5px 7.8px -.3px rgba(0,0,0,.15),.1px 11.5px 16.4px -.5px rgba(0,0,0,.15);margin:60px auto auto;max-width:780px;padding:20px}.edit-widgets-header{align-items:center;background:#fff;display:flex;height:60px;justify-content:space-between;overflow:auto;padding:0 16px}@media (min-width:600px){.edit-widgets-header{overflow:visible}}.edit-widgets-header__navigable-toolbar-wrapper{align-items:center;display:flex;justify-content:center}.edit-widgets-header__title{font-size:20px;margin:0 20px 0 0;padding:0}.edit-widgets-header__actions{align-items:center;display:flex;gap:4px}@media (min-width:600px){.edit-widgets-header__actions{gap:8px}}.edit-widgets-header-toolbar{border:none}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{height:36px;min-width:36px;padding:6px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{background:#1e1e1e}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:focus:not(:disabled),.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:before,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:before{display:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:12px;padding-right:12px}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle:after{content:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-widgets-keyboard-shortcut-help-modal__main-shortcuts .edit-widgets-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.components-panel__header.edit-widgets-sidebar__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:0;padding-right:4px}.components-panel__header.edit-widgets-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-widgets-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-widgets-sidebar__panel-tabs .components-button.has-icon{display:none;margin-left:auto}@media (min-width:782px){.components-panel__header.edit-widgets-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-widgets-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-button.edit-widgets-sidebar__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-widgets-sidebar__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-widgets-sidebar__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-widgets-sidebar__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-widgets-sidebar__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-widgets-sidebar__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-widgets-sidebar__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-widgets-widget-areas__top-container{display:flex;padding:16px}.edit-widgets-widget-areas__top-container .block-editor-block-icon{margin-right:16px}.edit-widgets-notices__snackbar{bottom:20px;left:0;padding-left:16px;padding-right:16px;position:fixed;right:0}@media (min-width:783px){.edit-widgets-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-widgets-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-widgets-notices__snackbar{left:160px}}.folded .edit-widgets-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-widgets-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-widgets-notices__snackbar{left:0!important}.edit-widgets-notices__dismissible .components-notice,.edit-widgets-notices__pinned .components-notice{border-bottom:1px solid rgba(0,0,0,.2);box-sizing:border-box;margin:0;min-height:60px;padding:0 12px}.edit-widgets-notices__dismissible .components-notice .components-notice__dismiss,.edit-widgets-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.edit-widgets-layout__inserter-panel{display:flex;flex-direction:column;height:100%}.edit-widgets-layout__inserter-panel .block-editor-inserter__menu{overflow:hidden}.edit-widgets-layout__inserter-panel-header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.edit-widgets-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-widgets-layout__inserter-panel-content{height:100%}}@media (min-width:782px){.blocks-widgets-container .interface-interface-skeleton__header:not(:focus-within){z-index:19}}.edit-widgets-welcome-guide{width:312px}.edit-widgets-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-widgets-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-widgets-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-widgets-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-widgets-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-widgets-block-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative}.edit-widgets-block-editor,.edit-widgets-block-editor .block-editor-writing-flow,.edit-widgets-block-editor .block-editor-writing-flow>div,.edit-widgets-block-editor>div:last-of-type{display:flex;flex-direction:column;flex-grow:1}.edit-widgets-block-editor .edit-widgets-main-block-list{height:100%}.edit-widgets-block-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.edit-widgets-block-editor .components-button.has-icon,.edit-widgets-block-editor .components-button.is-tertiary{padding:6px}.edit-widgets-editor__list-view-panel{display:flex;flex-direction:column;height:100%;min-width:350px}.edit-widgets-editor__list-view-panel-content{height:calc(100% - 44px);overflow-y:auto;padding:8px}.edit-widgets-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:16px;padding-right:4px}body.js.appearance_page_gutenberg-widgets,body.js.widgets-php{background:#fff}body.js.appearance_page_gutenberg-widgets #wpcontent,body.js.widgets-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-widgets #wpbody-content,body.js.widgets-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-widgets #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.appearance_page_gutenberg-widgets #wpfooter,body.js.widgets-php #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.widgets-php #wpfooter{display:none}body.js.appearance_page_gutenberg-widgets .a11y-speak-region,body.js.widgets-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-widgets ul#adminmenu>li.current>a.current:after,body.js.widgets-php ul#adminmenu a.wp-has-current-submenu:after,body.js.widgets-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,body.js.widgets-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.blocks-widgets-container,.components-modal__frame{box-sizing:border-box}.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before,.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}@media (min-width:600px){.blocks-widgets-container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.blocks-widgets-container{min-height:calc(100vh - 32px)}}.blocks-widgets-container .interface-interface-skeleton__content{background-color:#f0f0f0}.blocks-widgets-container .editor-styles-wrapper{margin:auto;max-width:700px}.edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item{display:none}.widgets-php .notice{display:none!important}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
+:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.components-panel__header.interface-complementary-area-header__small{background:#fff;padding-right:4px}.components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}@media (min-width:782px){.components-panel__header.interface-complementary-area-header__small{display:none}}.interface-complementary-area-header{background:#fff;padding-right:4px}.interface-complementary-area-header .components-button.has-icon{display:none;margin-left:auto}.interface-complementary-area-header .components-button.has-icon~.components-button{margin-left:0}@media (min-width:782px){.interface-complementary-area-header .components-button.has-icon{display:flex}.components-panel__header+.interface-complementary-area-header{margin-top:0}}.interface-complementary-area{background:#fff;color:#1e1e1e}@media (min-width:600px){.interface-complementary-area{-webkit-overflow-scrolling:touch}}@media (min-width:782px){.interface-complementary-area{width:280px}}.interface-complementary-area .components-panel{border:none;position:relative;z-index:0}.interface-complementary-area .components-panel__header{position:sticky;top:0;z-index:1}.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:48px}@media (min-width:782px){.interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs{top:0}}.interface-complementary-area p:not(.components-base-control__help){margin-top:0}.interface-complementary-area h2{color:#1e1e1e;font-size:13px;margin-bottom:1.5em}.interface-complementary-area h3{color:#1e1e1e;font-size:11px;font-weight:500;margin-bottom:1.5em;text-transform:uppercase}.interface-complementary-area hr{border-bottom:1px solid #f0f0f0;border-top:none;margin:1.5em 0}.interface-complementary-area div.components-toolbar,.interface-complementary-area div.components-toolbar-group{box-shadow:none;margin-bottom:1.5em}.interface-complementary-area div.components-toolbar-group:last-child,.interface-complementary-area div.components-toolbar:last-child{margin-bottom:0}.interface-complementary-area .block-editor-skip-to-selected-block:focus{bottom:10px;left:auto;right:10px;top:auto}@media (min-width:782px){body.js.is-fullscreen-mode{height:calc(100% + 32px);margin-top:-32px}body.js.is-fullscreen-mode #adminmenumain,body.js.is-fullscreen-mode #wpadminbar{display:none}body.js.is-fullscreen-mode #wpcontent,body.js.is-fullscreen-mode #wpfooter{margin-left:0}}html.interface-interface-skeleton__html-container{position:fixed;width:100%}@media (min-width:782px){html.interface-interface-skeleton__html-container{position:static;width:auto}}.interface-interface-skeleton{bottom:0;display:flex;flex-direction:row;height:auto;max-height:100%;position:fixed;right:0;top:46px}@media (min-width:783px){.interface-interface-skeleton{top:32px}.is-fullscreen-mode .interface-interface-skeleton{top:0}}.interface-interface-skeleton__editor{display:flex;flex:0 1 100%;flex-direction:column;overflow:hidden}.interface-interface-skeleton{left:0}@media (min-width:783px){.interface-interface-skeleton{left:160px}}@media (min-width:783px){.auto-fold .interface-interface-skeleton{left:36px}}@media (min-width:961px){.auto-fold .interface-interface-skeleton{left:160px}}.folded .interface-interface-skeleton{left:0}@media (min-width:783px){.folded .interface-interface-skeleton{left:36px}}body.is-fullscreen-mode .interface-interface-skeleton{left:0!important}.interface-interface-skeleton__body{display:flex;flex-grow:1;overflow:auto;overscroll-behavior-y:none}@media (min-width:782px){.has-footer .interface-interface-skeleton__body{padding-bottom:25px}}.interface-interface-skeleton__content{display:flex;flex-direction:column;flex-grow:1;overflow:auto;z-index:20}@media (min-width:782px){.interface-interface-skeleton__content{z-index:auto}}.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{background:#fff;bottom:0;color:#1e1e1e;flex-shrink:0;left:0;position:absolute;right:0;top:0;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__secondary-sidebar,.interface-interface-skeleton__sidebar{position:relative!important;width:auto}.is-sidebar-opened .interface-interface-skeleton__secondary-sidebar,.is-sidebar-opened .interface-interface-skeleton__sidebar{z-index:90}}.interface-interface-skeleton__sidebar{overflow:auto}@media (min-width:782px){.interface-interface-skeleton__sidebar{border-left:1px solid #e0e0e0}.interface-interface-skeleton__secondary-sidebar{border-right:1px solid #e0e0e0}}.interface-interface-skeleton__header{border-bottom:1px solid #e0e0e0;color:#1e1e1e;flex-shrink:0;height:auto;z-index:30}.interface-interface-skeleton__footer{background-color:#fff;border-top:1px solid #e0e0e0;bottom:0;color:#1e1e1e;display:none;flex-shrink:0;height:auto;left:0;position:absolute;width:100%;z-index:90}@media (min-width:782px){.interface-interface-skeleton__footer{display:flex}}.interface-interface-skeleton__footer .block-editor-block-breadcrumb{align-items:center;background:#fff;display:flex;font-size:13px;height:24px;padding:0 18px;z-index:30}.interface-interface-skeleton__actions{background:#fff;bottom:auto;color:#1e1e1e;left:auto;position:fixed!important;right:0;top:-9999em;width:100vw;z-index:100000}@media (min-width:782px){.interface-interface-skeleton__actions{width:280px}}.interface-interface-skeleton__actions:focus,.interface-interface-skeleton__actions:focus-within{bottom:0;top:auto}.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:46px}@media (min-width:782px){.is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{border-left:1px solid #ddd;top:32px}.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus,.is-fullscreen-mode .is-entity-save-view-open .interface-interface-skeleton__actions:focus-within{top:0}}.interface-more-menu-dropdown{margin-left:-4px}.interface-more-menu-dropdown .components-button{padding:0 2px;width:auto}@media (min-width:600px){.interface-more-menu-dropdown{margin-left:0}.interface-more-menu-dropdown .components-button{padding:0 4px}}.interface-more-menu-dropdown__content .components-popover__content{min-width:280px}@media (min-width:480px){.interface-more-menu-dropdown__content .components-popover__content{max-width:480px}}.interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu{padding:0}.components-popover.interface-more-menu-dropdown__content{z-index:99998}.interface-pinned-items{display:flex;gap:4px;margin-right:-4px}.interface-pinned-items .components-button:not(:first-child){display:none}@media (min-width:600px){.interface-pinned-items .components-button:not(:first-child){display:flex}}.interface-pinned-items .components-button{margin:0}.interface-pinned-items .components-button svg{max-height:24px;max-width:24px}@media (min-width:600px){.interface-preferences-modal{height:calc(100% - 120px);width:calc(100% - 32px)}}@media (min-width:782px){.interface-preferences-modal{width:750px}}@media (min-width:960px){.interface-preferences-modal{height:70%}}@media (max-width:781px){.interface-preferences-modal .components-modal__content{padding:0}}.interface-preferences__tabs .components-tab-panel__tabs{left:16px;position:absolute;top:84px;width:160px}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item{border-radius:2px;font-weight:400}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active{background:#f0f0f0;box-shadow:none;font-weight:500}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active:after{content:none}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled){box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus-visible:before{content:none}.interface-preferences__tabs .components-tab-panel__tab-content{margin-left:160px;padding-left:24px}@media (max-width:781px){.interface-preferences__provider{height:100%}}.interface-preferences-modal__section{margin:0 0 2.5rem}.interface-preferences-modal__section:last-child{margin:0}.interface-preferences-modal__section-legend{margin-bottom:8px}.interface-preferences-modal__section-title{font-size:.9rem;font-weight:600;margin-top:0}.interface-preferences-modal__section-description{color:#757575;font-size:12px;font-style:normal;margin:-8px 0 8px}.interface-preferences-modal__option+.interface-preferences-modal__option{margin-top:16px}.interface-preferences-modal__option .components-base-control__help{margin-left:48px;margin-top:0}.wp-block[data-type="core/widget-area"]{margin-left:auto;margin-right:auto;max-width:700px}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title{background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;height:48px;margin:0;position:relative;transform:translateZ(0);z-index:1}.wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title:hover{background:#fff}.wp-block[data-type="core/widget-area"] .block-list-appender.wp-block{position:relative;width:auto}.wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block{max-width:100%}.wp-block[data-type="core/widget-area"] .components-panel__body.is-opened{padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper{margin:0;padding:0}.blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper>.block-editor-block-list__layout{margin-top:-48px;min-height:32px;padding:72px 16px 16px}.wp-block-widget-area__highlight-drop-zone{outline:var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color)}body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title,body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body>.components-panel__body-title *{pointer-events:none}.edit-widgets-error-boundary{box-shadow:0 .7px 1px rgba(0,0,0,.15),0 2.7px 3.8px -.2px rgba(0,0,0,.15),0 5.5px 7.8px -.3px rgba(0,0,0,.15),.1px 11.5px 16.4px -.5px rgba(0,0,0,.15);margin:60px auto auto;max-width:780px;padding:20px}.edit-widgets-header{align-items:center;background:#fff;display:flex;height:60px;justify-content:space-between;overflow:auto;padding:0 16px}@media (min-width:600px){.edit-widgets-header{overflow:visible}}.edit-widgets-header__navigable-toolbar-wrapper{align-items:center;display:flex;justify-content:center}.edit-widgets-header__title{font-size:20px;margin:0 20px 0 0;padding:0}.edit-widgets-header__actions{align-items:center;display:flex;gap:4px}@media (min-width:600px){.edit-widgets-header__actions{gap:8px}}.edit-widgets-header-toolbar{border:none}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon{height:36px;min-width:36px;padding:6px}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon.is-pressed,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon.is-pressed{background:#1e1e1e}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:focus:not(:disabled),.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:focus:not(:disabled){box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color),inset 0 0 0 1px #fff;outline:1px solid transparent}.edit-widgets-header-toolbar>.components-button.has-icon.has-icon.has-icon:before,.edit-widgets-header-toolbar>.components-dropdown>.components-button.has-icon.has-icon:before{display:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:8px;padding-right:8px}@media (min-width:600px){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle{padding-left:12px;padding-right:12px}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle:after{content:none}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition:transform .2s cubic-bezier(.165,.84,.44,1)}@media (prefers-reduced-motion:reduce){.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg{transition-delay:0s;transition-duration:0s}}.edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg{transform:rotate(45deg)}.edit-widgets-keyboard-shortcut-help-modal__section{margin:0 0 2rem}.edit-widgets-keyboard-shortcut-help-modal__main-shortcuts .edit-widgets-keyboard-shortcut-help-modal__shortcut-list{margin-top:-25px}.edit-widgets-keyboard-shortcut-help-modal__section-title{font-size:.9rem;font-weight:600}.edit-widgets-keyboard-shortcut-help-modal__shortcut{align-items:baseline;border-top:1px solid #ddd;display:flex;margin-bottom:0;padding:.6rem 0}.edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child{border-bottom:1px solid #ddd}.edit-widgets-keyboard-shortcut-help-modal__shortcut:empty{display:none}.edit-widgets-keyboard-shortcut-help-modal__shortcut-term{font-weight:600;margin:0 0 0 1rem;text-align:right}.edit-widgets-keyboard-shortcut-help-modal__shortcut-description{flex:1;flex-basis:auto;margin:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{background:none;display:block;margin:0;padding:0}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination+.edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination{margin-top:10px}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key{border-radius:8%;margin:0 .2rem;padding:.25rem .5rem}.edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child{margin:0 0 0 .2rem}.components-panel__header.edit-widgets-sidebar__panel-tabs{border-top:0;justify-content:flex-start;margin-top:0;padding-left:0;padding-right:4px}.components-panel__header.edit-widgets-sidebar__panel-tabs ul{display:flex}.components-panel__header.edit-widgets-sidebar__panel-tabs li{margin:0}.components-panel__header.edit-widgets-sidebar__panel-tabs .components-button.has-icon{display:none;margin-left:auto}@media (min-width:782px){.components-panel__header.edit-widgets-sidebar__panel-tabs .components-button.has-icon{display:flex}}.components-button.edit-widgets-sidebar__panel-tab{background:transparent;border:none;border-radius:0;box-shadow:none;cursor:pointer;font-weight:500;height:48px;margin-left:0;padding:3px 16px;position:relative}.components-button.edit-widgets-sidebar__panel-tab:focus:not(:disabled){box-shadow:none;outline:none;position:relative}.components-button.edit-widgets-sidebar__panel-tab:after{background:var(--wp-admin-theme-color);border-radius:0;bottom:0;content:"";height:calc(var(--wp-admin-border-width-focus)*0);left:0;pointer-events:none;position:absolute;right:0;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-widgets-sidebar__panel-tab:after{transition-delay:0s;transition-duration:0s}}.components-button.edit-widgets-sidebar__panel-tab.is-active:after{height:calc(var(--wp-admin-border-width-focus)*1);outline:2px solid transparent;outline-offset:-1px}.components-button.edit-widgets-sidebar__panel-tab:before{border-radius:2px;bottom:12px;box-shadow:0 0 0 0 transparent;content:"";left:12px;pointer-events:none;position:absolute;right:12px;top:12px;transition:all .1s linear}@media (prefers-reduced-motion:reduce){.components-button.edit-widgets-sidebar__panel-tab:before{transition-delay:0s;transition-duration:0s}}.components-button.edit-widgets-sidebar__panel-tab:focus-visible:before{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.edit-widgets-widget-areas__top-container{display:flex;padding:16px}.edit-widgets-widget-areas__top-container .block-editor-block-icon{margin-right:16px}.edit-widgets-notices__snackbar{bottom:20px;left:0;padding-left:16px;padding-right:16px;position:fixed;right:0}@media (min-width:783px){.edit-widgets-notices__snackbar{left:160px}}@media (min-width:783px){.auto-fold .edit-widgets-notices__snackbar{left:36px}}@media (min-width:961px){.auto-fold .edit-widgets-notices__snackbar{left:160px}}.folded .edit-widgets-notices__snackbar{left:0}@media (min-width:783px){.folded .edit-widgets-notices__snackbar{left:36px}}body.is-fullscreen-mode .edit-widgets-notices__snackbar{left:0!important}.edit-widgets-notices__dismissible .components-notice,.edit-widgets-notices__pinned .components-notice{border-bottom:1px solid rgba(0,0,0,.2);box-sizing:border-box;margin:0;min-height:60px;padding:0 12px}.edit-widgets-notices__dismissible .components-notice .components-notice__dismiss,.edit-widgets-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.edit-widgets-layout__inserter-panel{display:flex;flex-direction:column;height:100%}.edit-widgets-layout__inserter-panel .block-editor-inserter__menu{overflow:hidden}.edit-widgets-layout__inserter-panel-header{display:flex;justify-content:flex-end;padding-right:8px;padding-top:8px}.edit-widgets-layout__inserter-panel-content{height:calc(100% - 44px)}@media (min-width:782px){.edit-widgets-layout__inserter-panel-content{height:100%}}@media (min-width:782px){.blocks-widgets-container .interface-interface-skeleton__header:not(:focus-within){z-index:19}}.edit-widgets-welcome-guide{width:312px}.edit-widgets-welcome-guide__image{background:#00a0d2;margin:0 0 16px}.edit-widgets-welcome-guide__image>img{display:block;max-width:100%;object-fit:cover}.edit-widgets-welcome-guide__heading{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:24px;line-height:1.4;margin:16px 0;padding:0 32px}.edit-widgets-welcome-guide__text{font-size:13px;line-height:1.4;margin:0 0 24px;padding:0 32px}.edit-widgets-welcome-guide__inserter-icon{margin:0 4px;vertical-align:text-top}.edit-widgets-block-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;position:relative}.edit-widgets-block-editor,.edit-widgets-block-editor .block-editor-writing-flow,.edit-widgets-block-editor .block-editor-writing-flow>div,.edit-widgets-block-editor>div:last-of-type{display:flex;flex-direction:column;flex-grow:1}.edit-widgets-block-editor .edit-widgets-main-block-list{height:100%}.edit-widgets-block-editor .components-button{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px}.edit-widgets-block-editor .components-button.has-icon,.edit-widgets-block-editor .components-button.is-tertiary{padding:6px}.edit-widgets-editor__list-view-panel{display:flex;flex-direction:column;height:100%;min-width:350px}.edit-widgets-editor__list-view-panel-content{height:calc(100% - 44px);overflow-y:auto;padding:8px}.edit-widgets-editor__list-view-panel-header{align-items:center;border-bottom:1px solid #ddd;display:flex;height:48px;justify-content:space-between;padding-left:16px;padding-right:4px}body.js.appearance_page_gutenberg-widgets,body.js.widgets-php{background:#fff}body.js.appearance_page_gutenberg-widgets #wpcontent,body.js.widgets-php #wpcontent{padding-left:0}body.js.appearance_page_gutenberg-widgets #wpbody-content,body.js.widgets-php #wpbody-content{padding-bottom:0}body.js.appearance_page_gutenberg-widgets #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.appearance_page_gutenberg-widgets #wpfooter,body.js.widgets-php #wpbody-content>div:not(.blocks-widgets-container):not(#screen-meta),body.js.widgets-php #wpfooter{display:none}body.js.appearance_page_gutenberg-widgets .a11y-speak-region,body.js.widgets-php .a11y-speak-region{left:-1px;top:-1px}body.js.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu:after,body.js.appearance_page_gutenberg-widgets ul#adminmenu>li.current>a.current:after,body.js.widgets-php ul#adminmenu a.wp-has-current-submenu:after,body.js.widgets-php ul#adminmenu>li.current>a.current:after{border-right-color:#fff}body.js.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,body.js.widgets-php .media-frame select.attachment-filters:last-of-type{max-width:100%;width:auto}.blocks-widgets-container,.components-modal__frame{box-sizing:border-box}.blocks-widgets-container *,.blocks-widgets-container :after,.blocks-widgets-container :before,.components-modal__frame *,.components-modal__frame :after,.components-modal__frame :before{box-sizing:inherit}@media (min-width:600px){.blocks-widgets-container{bottom:0;left:0;min-height:calc(100vh - 46px);position:absolute;right:0;top:0}}@media (min-width:782px){.blocks-widgets-container{min-height:calc(100vh - 32px)}}.blocks-widgets-container .interface-interface-skeleton__content{background-color:#f0f0f0}.blocks-widgets-container .editor-styles-wrapper{margin:auto;max-width:700px}.edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item{display:none}.widgets-php .notice{display:none!important}body.admin-color-light{--wp-admin-theme-color:#0085ba;--wp-admin-theme-color--rgb:0,133,186;--wp-admin-theme-color-darker-10:#0073a1;--wp-admin-theme-color-darker-10--rgb:0,115,161;--wp-admin-theme-color-darker-20:#006187;--wp-admin-theme-color-darker-20--rgb:0,97,135;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-light{--wp-admin-border-width-focus:1.5px}}body.admin-color-modern{--wp-admin-theme-color:#3858e9;--wp-admin-theme-color--rgb:56,88,233;--wp-admin-theme-color-darker-10:#2145e6;--wp-admin-theme-color-darker-10--rgb:33,69,230;--wp-admin-theme-color-darker-20:#183ad6;--wp-admin-theme-color-darker-20--rgb:24,58,214;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-modern{--wp-admin-border-width-focus:1.5px}}body.admin-color-blue{--wp-admin-theme-color:#096484;--wp-admin-theme-color--rgb:9,100,132;--wp-admin-theme-color-darker-10:#07526c;--wp-admin-theme-color-darker-10--rgb:7,82,108;--wp-admin-theme-color-darker-20:#064054;--wp-admin-theme-color-darker-20--rgb:6,64,84;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-blue{--wp-admin-border-width-focus:1.5px}}body.admin-color-coffee{--wp-admin-theme-color:#46403c;--wp-admin-theme-color--rgb:70,64,60;--wp-admin-theme-color-darker-10:#383330;--wp-admin-theme-color-darker-10--rgb:56,51,48;--wp-admin-theme-color-darker-20:#2b2724;--wp-admin-theme-color-darker-20--rgb:43,39,36;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-coffee{--wp-admin-border-width-focus:1.5px}}body.admin-color-ectoplasm{--wp-admin-theme-color:#523f6d;--wp-admin-theme-color--rgb:82,63,109;--wp-admin-theme-color-darker-10:#46365d;--wp-admin-theme-color-darker-10--rgb:70,54,93;--wp-admin-theme-color-darker-20:#3a2c4d;--wp-admin-theme-color-darker-20--rgb:58,44,77;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ectoplasm{--wp-admin-border-width-focus:1.5px}}body.admin-color-midnight{--wp-admin-theme-color:#e14d43;--wp-admin-theme-color--rgb:225,77,67;--wp-admin-theme-color-darker-10:#dd382d;--wp-admin-theme-color-darker-10--rgb:221,56,45;--wp-admin-theme-color-darker-20:#d02c21;--wp-admin-theme-color-darker-20--rgb:208,44,33;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-midnight{--wp-admin-border-width-focus:1.5px}}body.admin-color-ocean{--wp-admin-theme-color:#627c83;--wp-admin-theme-color--rgb:98,124,131;--wp-admin-theme-color-darker-10:#576e74;--wp-admin-theme-color-darker-10--rgb:87,110,116;--wp-admin-theme-color-darker-20:#4c6066;--wp-admin-theme-color-darker-20--rgb:76,96,102;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-ocean{--wp-admin-border-width-focus:1.5px}}body.admin-color-sunrise{--wp-admin-theme-color:#dd823b;--wp-admin-theme-color--rgb:221,130,59;--wp-admin-theme-color-darker-10:#d97426;--wp-admin-theme-color-darker-10--rgb:217,116,38;--wp-admin-theme-color-darker-20:#c36922;--wp-admin-theme-color-darker-20--rgb:195,105,34;--wp-admin-border-width-focus:2px}@media (min-resolution:192dpi){body.admin-color-sunrise{--wp-admin-border-width-focus:1.5px}}
\ No newline at end of file
}
.edit-post-sync-status{
+ align-items:flex-start;
justify-content:flex-start;
position:relative;
width:100%;
.edit-post-sync-status>span{
display:block;
flex-shrink:0;
+ padding:6px 0;
width:45%;
+ word-break:break-word;
}
.edit-post-sync-status>div{
- padding-right:12px;
+ padding:6px 12px 6px 0;
}
.editor-post-taxonomies__hierarchical-terms-list{
-@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{content:"";font:normal 20px/1 dashicons;margin-left:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{flex-grow:0;flex-shrink:0;height:24px;margin-left:8px;max-width:none;width:24px}.editor-autocompleters__user .editor-autocompleters__user-name{flex-grow:1;flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__user-slug{color:#757575;flex-grow:0;flex-shrink:0;margin-right:8px;max-width:100px;overflow:none;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:var(--wp-admin-theme-color)}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{align-items:flex-start;background:none;border:none;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;margin:0 -1px 0 0;padding:2px 1px 2px 5px;text-align:right}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;border-radius:3px;color:#1e1e1e;font-size:13px;margin-left:4px;padding:1px 6px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible,.components-editor-notices__pinned{color:#1e1e1e;left:0;position:relative;right:0;top:0}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{border-bottom:1px solid rgba(0,0,0,.2);box-sizing:border-box;margin:0;min-height:60px;padding:0 12px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.entities-saved-states__find-entity{display:none}@media (min-width:782px){.entities-saved-states__find-entity{display:block}}.entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel-header{background:#fff;border-bottom:1px solid #ddd;box-sizing:border-box;height:60px;padding-left:8px;padding-right:8px}.entities-saved-states__text-prompt{padding:16px 16px 4px}.editor-error-boundary{box-shadow:0 .7px 1px rgba(0,0,0,.15),0 2.7px 3.8px -.2px rgba(0,0,0,.15),0 5.5px 7.8px -.3px rgba(0,0,0,.15),-.1px 11.5px 16.4px -.5px rgba(0,0,0,.15);margin:60px auto auto;max-width:780px;padding:20px}.editor-post-excerpt__textarea{margin-bottom:10px;width:100%}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:focus .editor-post-featured-image__actions,.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions,.editor-post-featured-image__container:hover .editor-post-featured-image__actions{opacity:1}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{box-shadow:0 0 0 0 var(--wp-admin-theme-color);display:flex;justify-content:center;max-height:150px;overflow:hidden;padding:0;transition:all .1s ease-out;width:100%}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview .components-responsive-wrapper{background:#f0f0f0;width:100%}.editor-post-featured-image__toggle{background-color:#f0f0f0;border-radius:2px;line-height:20px;min-height:90px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-featured-image__actions{bottom:0;opacity:0;padding:8px;position:absolute;transition:opacity 50ms ease-out}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__actions{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__action{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:hsla(0,0%,100%,.75);flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-last-revision__title{font-weight:600;width:100%}.editor-post-last-revision__title .dashicon{margin-left:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f0f0f0}.components-button.editor-post-last-revision__title:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}@media (min-width:600px){.editor-post-locked-modal{max-width:480px}}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:2px;margin-top:16px;min-width:auto!important}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto -3px auto 5px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content>.components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{align-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ddd;display:flex;height:61px;padding-left:16px;padding-right:16px}.editor-post-publish-panel__header .components-button{justify-content:center;width:100%}.editor-post-publish-panel__header .has-icon{margin-right:auto;width:auto}.components-site-card{align-items:center;display:flex;margin:16px 0}.components-site-icon{border:none;border-radius:2px;height:36px;margin-left:12px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{color:#757575;display:block;font-size:12px}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-left:4px}.editor-post-publish-panel__header-cancel-button{padding-right:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{align-items:center;display:inline-flex}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{font-weight:400;padding-right:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{align-content:space-between;display:flex;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{flex:1;height:auto;justify-content:center;line-height:1.6;padding:3px 10px 4px;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{align-items:flex-end;display:flex;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{background:#ddd;overflow:hidden;padding:10px;text-overflow:ellipsis}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-right:8px}.post-publish-panel__postpublish-post-address__copy-button-wrap .components-button{height:38px}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width:782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-saved-state{align-items:center;color:#757575;display:flex;overflow:hidden;padding:12px 4px;white-space:nowrap;width:28px}.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover,.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover{background:transparent;color:#757575}.editor-post-saved-state svg{fill:currentColor;display:inline-block;flex:0 0 auto;margin-left:8px}@media (min-width:600px){.editor-post-saved-state{padding:8px 12px;text-indent:inherit;width:auto}.editor-post-saved-state svg{margin-left:0}}.editor-post-save-draft.has-text.has-icon svg{margin-left:0}.edit-post-sync-status{justify-content:flex-start;position:relative;width:100%}.edit-post-sync-status>span{display:block;flex-shrink:0;width:45%}.edit-post-sync-status>div{padding-right:12px}.editor-post-taxonomies__hierarchical-terms-list{margin-right:-6px;margin-top:-6px;max-height:14em;overflow:auto;padding-right:6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-right:16px;margin-top:8px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-left:8px}.editor-post-taxonomies__flat-term-most-used-list .components-button{font-size:12px}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.edit-post-text-editor__body textarea.editor-post-text-editor{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{font-size:15px!important;padding:24px}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-url__link-label{font-size:13px;font-weight:400;margin:0}.editor-post-url__link{direction:ltr;word-break:break-word}.editor-post-url__link-slug{font-weight:600}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin-left:12px;margin-top:2px;padding:6px 8px;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{height:20px;width:20px}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(-7px,7px);width:8px}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{transform:translate(-5px,5px)}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__info{color:#757575;margin-right:36px;margin-top:.5em}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__info{margin-right:32px}}.editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info{margin-bottom:0}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:32px;padding:6px 8px;transition:box-shadow .1s linear;width:calc(100% - 32px)}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{color:#1e1e1e;display:flex;flex-basis:33%;flex-direction:column;font-size:13px;margin-bottom:0;margin-top:8px;padding-left:8px}.table-of-contents__count:nth-child(4n){padding-left:0}.table-of-contents__number,.table-of-contents__popover .word-count{color:#1e1e1e;font-size:21px;font-weight:400;line-height:30px}.table-of-contents__title{display:block;font-size:15px;font-weight:600;margin-top:20px}.editor-template-validation-notice{align-items:center;display:flex;justify-content:space-between}.editor-template-validation-notice .components-button{margin-right:5px}
\ No newline at end of file
+@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{content:"";font:normal 20px/1 dashicons;margin-left:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{flex-grow:0;flex-shrink:0;height:24px;margin-left:8px;max-width:none;width:24px}.editor-autocompleters__user .editor-autocompleters__user-name{flex-grow:1;flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__user-slug{color:#757575;flex-grow:0;flex-shrink:0;margin-right:8px;max-width:100px;overflow:none;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:var(--wp-admin-theme-color)}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-left:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{align-items:flex-start;background:none;border:none;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;margin:0 -1px 0 0;padding:2px 1px 2px 5px;text-align:right}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;border-radius:3px;color:#1e1e1e;font-size:13px;margin-left:4px;padding:1px 6px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible,.components-editor-notices__pinned{color:#1e1e1e;left:0;position:relative;right:0;top:0}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{border-bottom:1px solid rgba(0,0,0,.2);box-sizing:border-box;margin:0;min-height:60px;padding:0 12px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.entities-saved-states__find-entity{display:none}@media (min-width:782px){.entities-saved-states__find-entity{display:block}}.entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel-header{background:#fff;border-bottom:1px solid #ddd;box-sizing:border-box;height:60px;padding-left:8px;padding-right:8px}.entities-saved-states__text-prompt{padding:16px 16px 4px}.editor-error-boundary{box-shadow:0 .7px 1px rgba(0,0,0,.15),0 2.7px 3.8px -.2px rgba(0,0,0,.15),0 5.5px 7.8px -.3px rgba(0,0,0,.15),-.1px 11.5px 16.4px -.5px rgba(0,0,0,.15);margin:60px auto auto;max-width:780px;padding:20px}.editor-post-excerpt__textarea{margin-bottom:10px;width:100%}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{margin-right:-9px;margin-top:-9px;position:absolute;right:50%;top:50%}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:focus .editor-post-featured-image__actions,.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions,.editor-post-featured-image__container:hover .editor-post-featured-image__actions{opacity:1}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{box-shadow:0 0 0 0 var(--wp-admin-theme-color);display:flex;justify-content:center;max-height:150px;overflow:hidden;padding:0;transition:all .1s ease-out;width:100%}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview .components-responsive-wrapper{background:#f0f0f0;width:100%}.editor-post-featured-image__toggle{background-color:#f0f0f0;border-radius:2px;line-height:20px;min-height:90px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-featured-image__actions{bottom:0;opacity:0;padding:8px;position:absolute;transition:opacity 50ms ease-out}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__actions{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__action{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:hsla(0,0%,100%,.75);flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-last-revision__title{font-weight:600;width:100%}.editor-post-last-revision__title .dashicon{margin-left:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f0f0f0}.components-button.editor-post-last-revision__title:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}@media (min-width:600px){.editor-post-locked-modal{max-width:480px}}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:2px;margin-top:16px;min-width:auto!important}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto -3px auto 5px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content>.components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{align-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ddd;display:flex;height:61px;padding-left:16px;padding-right:16px}.editor-post-publish-panel__header .components-button{justify-content:center;width:100%}.editor-post-publish-panel__header .has-icon{margin-right:auto;width:auto}.components-site-card{align-items:center;display:flex;margin:16px 0}.components-site-icon{border:none;border-radius:2px;height:36px;margin-left:12px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{color:#757575;display:block;font-size:12px}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-left:4px}.editor-post-publish-panel__header-cancel-button{padding-right:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{align-items:center;display:inline-flex}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-left:-4px}.editor-post-publish-panel__link{font-weight:400;padding-right:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{align-content:space-between;display:flex;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{flex:1;height:auto;justify-content:center;line-height:1.6;padding:3px 10px 4px;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{align-items:flex-end;display:flex;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{background:#ddd;overflow:hidden;padding:10px;text-overflow:ellipsis}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-right:8px}.post-publish-panel__postpublish-post-address__copy-button-wrap .components-button{height:38px}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width:782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-saved-state{align-items:center;color:#757575;display:flex;overflow:hidden;padding:12px 4px;white-space:nowrap;width:28px}.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover,.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover{background:transparent;color:#757575}.editor-post-saved-state svg{fill:currentColor;display:inline-block;flex:0 0 auto;margin-left:8px}@media (min-width:600px){.editor-post-saved-state{padding:8px 12px;text-indent:inherit;width:auto}.editor-post-saved-state svg{margin-left:0}}.editor-post-save-draft.has-text.has-icon svg{margin-left:0}.edit-post-sync-status{align-items:flex-start;justify-content:flex-start;position:relative;width:100%}.edit-post-sync-status>span{display:block;flex-shrink:0;padding:6px 0;width:45%;word-break:break-word}.edit-post-sync-status>div{padding:6px 12px 6px 0}.editor-post-taxonomies__hierarchical-terms-list{margin-right:-6px;margin-top:-6px;max-height:14em;overflow:auto;padding-right:6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-right:16px;margin-top:8px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-left:8px}.editor-post-taxonomies__flat-term-most-used-list .components-button{font-size:12px}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.edit-post-text-editor__body textarea.editor-post-text-editor{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{font-size:15px!important;padding:24px}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-url__link-label{font-size:13px;font-weight:400;margin:0}.editor-post-url__link{direction:ltr;word-break:break-word}.editor-post-url__link-slug{font-weight:600}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin-left:12px;margin-top:2px;padding:6px 8px;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{height:20px;width:20px}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(-7px,7px);width:8px}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{transform:translate(-5px,5px)}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__info{color:#757575;margin-right:36px;margin-top:.5em}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__info{margin-right:32px}}.editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info{margin-bottom:0}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-right:32px;padding:6px 8px;transition:box-shadow .1s linear;width:calc(100% - 32px)}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{color:#1e1e1e;display:flex;flex-basis:33%;flex-direction:column;font-size:13px;margin-bottom:0;margin-top:8px;padding-left:8px}.table-of-contents__count:nth-child(4n){padding-left:0}.table-of-contents__number,.table-of-contents__popover .word-count{color:#1e1e1e;font-size:21px;font-weight:400;line-height:30px}.table-of-contents__title{display:block;font-size:15px;font-weight:600;margin-top:20px}.editor-template-validation-notice{align-items:center;display:flex;justify-content:space-between}.editor-template-validation-notice .components-button{margin-right:5px}
\ No newline at end of file
}
.edit-post-sync-status{
+ align-items:flex-start;
justify-content:flex-start;
position:relative;
width:100%;
.edit-post-sync-status>span{
display:block;
flex-shrink:0;
+ padding:6px 0;
width:45%;
+ word-break:break-word;
}
.edit-post-sync-status>div{
- padding-left:12px;
+ padding:6px 0 6px 12px;
}
.editor-post-taxonomies__hierarchical-terms-list{
-@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{content:"";font:normal 20px/1 dashicons;margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{flex-grow:0;flex-shrink:0;height:24px;margin-right:8px;max-width:none;width:24px}.editor-autocompleters__user .editor-autocompleters__user-name{flex-grow:1;flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__user-slug{color:#757575;flex-grow:0;flex-shrink:0;margin-left:8px;max-width:100px;overflow:none;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:var(--wp-admin-theme-color)}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{align-items:flex-start;background:none;border:none;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;margin:0 0 0 -1px;padding:2px 5px 2px 1px;text-align:left}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;border-radius:3px;color:#1e1e1e;font-size:13px;margin-right:4px;padding:1px 6px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible,.components-editor-notices__pinned{color:#1e1e1e;left:0;position:relative;right:0;top:0}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{border-bottom:1px solid rgba(0,0,0,.2);box-sizing:border-box;margin:0;min-height:60px;padding:0 12px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.entities-saved-states__find-entity{display:none}@media (min-width:782px){.entities-saved-states__find-entity{display:block}}.entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel-header{background:#fff;border-bottom:1px solid #ddd;box-sizing:border-box;height:60px;padding-left:8px;padding-right:8px}.entities-saved-states__text-prompt{padding:16px 16px 4px}.editor-error-boundary{box-shadow:0 .7px 1px rgba(0,0,0,.15),0 2.7px 3.8px -.2px rgba(0,0,0,.15),0 5.5px 7.8px -.3px rgba(0,0,0,.15),.1px 11.5px 16.4px -.5px rgba(0,0,0,.15);margin:60px auto auto;max-width:780px;padding:20px}.editor-post-excerpt__textarea{margin-bottom:10px;width:100%}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:focus .editor-post-featured-image__actions,.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions,.editor-post-featured-image__container:hover .editor-post-featured-image__actions{opacity:1}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{box-shadow:0 0 0 0 var(--wp-admin-theme-color);display:flex;justify-content:center;max-height:150px;overflow:hidden;padding:0;transition:all .1s ease-out;width:100%}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview .components-responsive-wrapper{background:#f0f0f0;width:100%}.editor-post-featured-image__toggle{background-color:#f0f0f0;border-radius:2px;line-height:20px;min-height:90px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-featured-image__actions{bottom:0;opacity:0;padding:8px;position:absolute;transition:opacity 50ms ease-out}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__actions{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__action{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:hsla(0,0%,100%,.75);flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-last-revision__title{font-weight:600;width:100%}.editor-post-last-revision__title .dashicon{margin-right:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f0f0f0}.components-button.editor-post-last-revision__title:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}@media (min-width:600px){.editor-post-locked-modal{max-width:480px}}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:2px;margin-top:16px;min-width:auto!important}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto 5px auto -3px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content>.components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{align-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ddd;display:flex;height:61px;padding-left:16px;padding-right:16px}.editor-post-publish-panel__header .components-button{justify-content:center;width:100%}.editor-post-publish-panel__header .has-icon{margin-left:auto;width:auto}.components-site-card{align-items:center;display:flex;margin:16px 0}.components-site-icon{border:none;border-radius:2px;height:36px;margin-right:12px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{color:#757575;display:block;font-size:12px}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-right:4px}.editor-post-publish-panel__header-cancel-button{padding-left:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{align-items:center;display:inline-flex}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{font-weight:400;padding-left:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{align-content:space-between;display:flex;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{flex:1;height:auto;justify-content:center;line-height:1.6;padding:3px 10px 4px;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{align-items:flex-end;display:flex;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{background:#ddd;overflow:hidden;padding:10px;text-overflow:ellipsis}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-left:8px}.post-publish-panel__postpublish-post-address__copy-button-wrap .components-button{height:38px}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width:782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-saved-state{align-items:center;color:#757575;display:flex;overflow:hidden;padding:12px 4px;white-space:nowrap;width:28px}.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover,.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover{background:transparent;color:#757575}.editor-post-saved-state svg{fill:currentColor;display:inline-block;flex:0 0 auto;margin-right:8px}@media (min-width:600px){.editor-post-saved-state{padding:8px 12px;text-indent:inherit;width:auto}.editor-post-saved-state svg{margin-right:0}}.editor-post-save-draft.has-text.has-icon svg{margin-right:0}.edit-post-sync-status{justify-content:flex-start;position:relative;width:100%}.edit-post-sync-status>span{display:block;flex-shrink:0;width:45%}.edit-post-sync-status>div{padding-left:12px}.editor-post-taxonomies__hierarchical-terms-list{margin-left:-6px;margin-top:-6px;max-height:14em;overflow:auto;padding-left:6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-left:16px;margin-top:8px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-right:8px}.editor-post-taxonomies__flat-term-most-used-list .components-button{font-size:12px}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.edit-post-text-editor__body textarea.editor-post-text-editor{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{font-size:15px!important;padding:24px}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-url__link-label{font-size:13px;font-weight:400;margin:0}.editor-post-url__link{direction:ltr;word-break:break-word}.editor-post-url__link-slug{font-weight:600}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin-right:12px;margin-top:2px;padding:6px 8px;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{height:20px;width:20px}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(7px,7px);width:8px}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{transform:translate(5px,5px)}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__info{color:#757575;margin-left:36px;margin-top:.5em}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__info{margin-left:32px}}.editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info{margin-bottom:0}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:32px;padding:6px 8px;transition:box-shadow .1s linear;width:calc(100% - 32px)}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{color:#1e1e1e;display:flex;flex-basis:33%;flex-direction:column;font-size:13px;margin-bottom:0;margin-top:8px;padding-right:8px}.table-of-contents__count:nth-child(4n){padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{color:#1e1e1e;font-size:21px;font-weight:400;line-height:30px}.table-of-contents__title{display:block;font-size:15px;font-weight:600;margin-top:20px}.editor-template-validation-notice{align-items:center;display:flex;justify-content:space-between}.editor-template-validation-notice .components-button{margin-left:5px}
\ No newline at end of file
+@charset "UTF-8";:root{--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,161;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px;--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223}@media (min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.editor-autocompleters__user .editor-autocompleters__no-avatar:before{content:"";font:normal 20px/1 dashicons;margin-right:5px;vertical-align:middle}.editor-autocompleters__user .editor-autocompleters__user-avatar{flex-grow:0;flex-shrink:0;height:24px;margin-right:8px;max-width:none;width:24px}.editor-autocompleters__user .editor-autocompleters__user-name{flex-grow:1;flex-shrink:0;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user .editor-autocompleters__user-slug{color:#757575;flex-grow:0;flex-shrink:0;margin-left:8px;max-width:100px;overflow:none;text-overflow:ellipsis;white-space:nowrap}.editor-autocompleters__user:hover .editor-autocompleters__user-slug{color:var(--wp-admin-theme-color)}.document-outline{margin:20px 0}.document-outline ul{margin:0;padding:0}.document-outline__item{display:flex;margin:4px 0}.document-outline__item a{text-decoration:none}.document-outline__item .document-outline__emdash:before{color:#ddd;margin-right:4px}.document-outline__item.is-h2 .document-outline__emdash:before{content:"—"}.document-outline__item.is-h3 .document-outline__emdash:before{content:"——"}.document-outline__item.is-h4 .document-outline__emdash:before{content:"———"}.document-outline__item.is-h5 .document-outline__emdash:before{content:"————"}.document-outline__item.is-h6 .document-outline__emdash:before{content:"—————"}.document-outline__button{align-items:flex-start;background:none;border:none;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;margin:0 0 0 -1px;padding:2px 5px 2px 1px;text-align:left}.document-outline__button:disabled{cursor:default}.document-outline__button:focus{box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);outline:2px solid transparent}.document-outline__level{background:#ddd;border-radius:3px;color:#1e1e1e;font-size:13px;margin-right:4px;padding:1px 6px}.is-invalid .document-outline__level{background:#f0b849}.document-outline__item-content{padding:1px 0}.components-editor-notices__dismissible,.components-editor-notices__pinned{color:#1e1e1e;left:0;position:relative;right:0;top:0}.components-editor-notices__dismissible .components-notice,.components-editor-notices__pinned .components-notice{border-bottom:1px solid rgba(0,0,0,.2);box-sizing:border-box;margin:0;min-height:60px;padding:0 12px}.components-editor-notices__dismissible .components-notice .components-notice__dismiss,.components-editor-notices__pinned .components-notice .components-notice__dismiss{margin-top:12px}.entities-saved-states__find-entity{display:none}@media (min-width:782px){.entities-saved-states__find-entity{display:block}}.entities-saved-states__find-entity-small{display:block}@media (min-width:782px){.entities-saved-states__find-entity-small{display:none}}.entities-saved-states__panel-header{background:#fff;border-bottom:1px solid #ddd;box-sizing:border-box;height:60px;padding-left:8px;padding-right:8px}.entities-saved-states__text-prompt{padding:16px 16px 4px}.editor-error-boundary{box-shadow:0 .7px 1px rgba(0,0,0,.15),0 2.7px 3.8px -.2px rgba(0,0,0,.15),0 5.5px 7.8px -.3px rgba(0,0,0,.15),.1px 11.5px 16.4px -.5px rgba(0,0,0,.15);margin:60px auto auto;max-width:780px;padding:20px}.editor-post-excerpt__textarea{margin-bottom:10px;width:100%}.editor-post-featured-image{padding:0}.editor-post-featured-image .components-spinner{left:50%;margin-left:-9px;margin-top:-9px;position:absolute;top:50%}.editor-post-featured-image .components-responsive-wrapper__content{max-width:100%;width:auto}.editor-post-featured-image__container{position:relative}.editor-post-featured-image__container:focus .editor-post-featured-image__actions,.editor-post-featured-image__container:focus-within .editor-post-featured-image__actions,.editor-post-featured-image__container:hover .editor-post-featured-image__actions{opacity:1}.editor-post-featured-image__preview,.editor-post-featured-image__toggle{box-shadow:0 0 0 0 var(--wp-admin-theme-color);display:flex;justify-content:center;max-height:150px;overflow:hidden;padding:0;transition:all .1s ease-out;width:100%}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__preview,.editor-post-featured-image__toggle{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__preview{height:auto}.editor-post-featured-image__preview .components-responsive-wrapper{background:#f0f0f0;width:100%}.editor-post-featured-image__toggle{background-color:#f0f0f0;border-radius:2px;line-height:20px;min-height:90px;padding:8px 0;text-align:center}.editor-post-featured-image__toggle:hover{background:#ddd;color:#1e1e1e}.editor-post-featured-image__actions{bottom:0;opacity:0;padding:8px;position:absolute;transition:opacity 50ms ease-out}@media (prefers-reduced-motion:reduce){.editor-post-featured-image__actions{transition-delay:0s;transition-duration:0s}}.editor-post-featured-image__action{-webkit-backdrop-filter:blur(16px) saturate(180%);backdrop-filter:blur(16px) saturate(180%);background:hsla(0,0%,100%,.75);flex-grow:1;justify-content:center}[class].editor-post-format__suggestion{margin:4px 0 0}.editor-post-last-revision__title{font-weight:600;width:100%}.editor-post-last-revision__title .dashicon{margin-right:5px}.components-button.editor-post-last-revision__title{height:100%}.components-button.editor-post-last-revision__title:active,.components-button.editor-post-last-revision__title:hover{background:#f0f0f0}.components-button.editor-post-last-revision__title:focus{border-radius:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)}@media (min-width:600px){.editor-post-locked-modal{max-width:480px}}.editor-post-locked-modal__buttons{margin-top:24px}.editor-post-locked-modal__avatar{border-radius:2px;margin-top:16px;min-width:auto!important}.editor-post-publish-button__button.has-changes-dot:before{background:currentcolor;border-radius:4px;content:"";height:8px;margin:auto 5px auto -3px;width:8px}.editor-post-publish-panel{background:#fff}.editor-post-publish-panel__content{min-height:calc(100% - 144px)}.editor-post-publish-panel__content>.components-spinner{display:block;margin:100px auto 0}.editor-post-publish-panel__header{align-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #ddd;display:flex;height:61px;padding-left:16px;padding-right:16px}.editor-post-publish-panel__header .components-button{justify-content:center;width:100%}.editor-post-publish-panel__header .has-icon{margin-left:auto;width:auto}.components-site-card{align-items:center;display:flex;margin:16px 0}.components-site-icon{border:none;border-radius:2px;height:36px;margin-right:12px;width:36px}.components-site-name{display:block;font-size:14px}.components-site-home{color:#757575;display:block;font-size:12px}.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{flex:1}@media (min-width:480px){.editor-post-publish-panel__header-cancel-button,.editor-post-publish-panel__header-publish-button{max-width:160px}}.editor-post-publish-panel__header-publish-button{padding-right:4px}.editor-post-publish-panel__header-cancel-button{padding-left:4px}.editor-post-publish-panel__header-published{flex-grow:1}.editor-post-publish-panel__footer{padding:16px}.components-button.editor-post-publish-panel__toggle.is-primary{align-items:center;display:inline-flex}.components-button.editor-post-publish-panel__toggle.is-primary.is-busy .dashicon{display:none}.components-button.editor-post-publish-panel__toggle.is-primary .dashicon{margin-right:-4px}.editor-post-publish-panel__link{font-weight:400;padding-left:4px}.editor-post-publish-panel__prepublish{padding:16px}.editor-post-publish-panel__prepublish strong{color:#1e1e1e}.editor-post-publish-panel__prepublish .components-panel__body{background:#fff;margin-left:-16px;margin-right:-16px}.editor-post-publish-panel__prepublish .editor-post-visibility__dialog-legend{display:none}.post-publish-panel__postpublish .components-panel__body{border-bottom:1px solid #e0e0e0;border-top:none}.post-publish-panel__postpublish-buttons{align-content:space-between;display:flex;flex-wrap:wrap;margin:-5px}.post-publish-panel__postpublish-buttons>*{flex-grow:1;margin:5px}.post-publish-panel__postpublish-buttons .components-button{flex:1;height:auto;justify-content:center;line-height:1.6;padding:3px 10px 4px;text-align:center;white-space:normal}.post-publish-panel__postpublish-buttons .components-clipboard-button{width:100%}.post-publish-panel__postpublish-post-address-container{align-items:flex-end;display:flex;margin-bottom:16px}.post-publish-panel__postpublish-post-address-container .post-publish-panel__postpublish-post-address{flex:1}.post-publish-panel__postpublish-post-address-container input[readonly]{background:#ddd;overflow:hidden;padding:10px;text-overflow:ellipsis}.post-publish-panel__postpublish-post-address__copy-button-wrap{flex-shrink:0;margin-left:8px}.post-publish-panel__postpublish-post-address__copy-button-wrap .components-button{height:38px}.post-publish-panel__postpublish-header{font-weight:500}.post-publish-panel__postpublish-subheader{margin:0 0 8px}.post-publish-panel__tip{color:#f0b849}@media screen and (max-width:782px){.post-publish-panel__postpublish-post-address__button-wrap .components-button{height:40px}}.editor-post-saved-state{align-items:center;color:#757575;display:flex;overflow:hidden;padding:12px 4px;white-space:nowrap;width:28px}.editor-post-saved-state.is-saved[aria-disabled=true],.editor-post-saved-state.is-saved[aria-disabled=true]:hover,.editor-post-saved-state.is-saving[aria-disabled=true],.editor-post-saved-state.is-saving[aria-disabled=true]:hover{background:transparent;color:#757575}.editor-post-saved-state svg{fill:currentColor;display:inline-block;flex:0 0 auto;margin-right:8px}@media (min-width:600px){.editor-post-saved-state{padding:8px 12px;text-indent:inherit;width:auto}.editor-post-saved-state svg{margin-right:0}}.editor-post-save-draft.has-text.has-icon svg{margin-right:0}.edit-post-sync-status{align-items:flex-start;justify-content:flex-start;position:relative;width:100%}.edit-post-sync-status>span{display:block;flex-shrink:0;padding:6px 0;width:45%;word-break:break-word}.edit-post-sync-status>div{padding:6px 0 6px 12px}.editor-post-taxonomies__hierarchical-terms-list{margin-left:-6px;margin-top:-6px;max-height:14em;overflow:auto;padding-left:6px;padding-top:6px}.editor-post-taxonomies__hierarchical-terms-choice{margin-bottom:8px}.editor-post-taxonomies__hierarchical-terms-choice:last-child{margin-bottom:4px}.editor-post-taxonomies__hierarchical-terms-subchoices{margin-left:16px;margin-top:8px}.editor-post-taxonomies__flat-term-most-used .editor-post-taxonomies__flat-term-most-used-label{margin-bottom:4px}.editor-post-taxonomies__flat-term-most-used-list{margin:0}.editor-post-taxonomies__flat-term-most-used-list li{display:inline-block;margin-right:8px}.editor-post-taxonomies__flat-term-most-used-list .components-button{font-size:12px}.edit-post-text-editor__body textarea.editor-post-text-editor{border:1px solid #949494;border-radius:0;box-shadow:none;display:block;font-family:Menlo,Consolas,monaco,monospace;font-size:16px!important;line-height:2.4;margin:0;min-height:200px;overflow:hidden;padding:16px;resize:none;transition:border .1s ease-out,box-shadow .1s linear;width:100%}@media (prefers-reduced-motion:reduce){.edit-post-text-editor__body textarea.editor-post-text-editor{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.edit-post-text-editor__body textarea.editor-post-text-editor{font-size:15px!important;padding:24px}}.edit-post-text-editor__body textarea.editor-post-text-editor:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);position:relative}.edit-post-text-editor__body textarea.editor-post-text-editor::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.edit-post-text-editor__body textarea.editor-post-text-editor::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.edit-post-text-editor__body textarea.editor-post-text-editor:-ms-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-url__link-label{font-size:13px;font-weight:400;margin:0}.editor-post-url__link{direction:ltr;word-break:break-word}.editor-post-url__link-slug{font-weight:600}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{border:1px solid #1e1e1e;border-radius:2px;border-radius:50%;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;height:24px;line-height:normal;margin-right:12px;margin-top:2px;padding:6px 8px;transition:box-shadow .1s linear;transition:none;width:24px}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:-ms-input-placeholder{color:rgba(30,30,30,.62)}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]{height:20px;width:20px}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{background-color:#fff;border:4px solid #fff;box-sizing:inherit;height:8px;margin:0;transform:translate(7px,7px);width:8px}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked:before{transform:translate(5px,5px)}}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__radio[type=radio]:checked{background:var(--wp-admin-theme-color);border-color:var(--wp-admin-theme-color)}.editor-post-visibility__fieldset .editor-post-visibility__info{color:#757575;margin-left:36px;margin-top:.5em}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__info{margin-left:32px}}.editor-post-visibility__fieldset .editor-post-visibility__choice:last-child .editor-post-visibility__info{margin-bottom:0}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{border:1px solid #949494;border-radius:2px;box-shadow:0 0 0 transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:16px;line-height:normal;margin-left:32px;padding:6px 8px;transition:box-shadow .1s linear;width:calc(100% - 32px)}@media (prefers-reduced-motion:reduce){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{transition-delay:0s;transition-duration:0s}}@media (min-width:600px){.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]{font-size:13px;line-height:normal}}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:focus{border-color:var(--wp-admin-theme-color);box-shadow:0 0 0 1px var(--wp-admin-theme-color);outline:2px solid transparent}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-webkit-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]::-moz-placeholder{color:rgba(30,30,30,.62);opacity:1}.editor-post-visibility__fieldset .editor-post-visibility__password .editor-post-visibility__password-input[type=text]:-ms-input-placeholder{color:rgba(30,30,30,.62)}.editor-post-trash.components-button{flex-grow:1;justify-content:center}.table-of-contents__popover.components-popover .components-popover__content{min-width:380px}.components-popover.table-of-contents__popover{z-index:99998}.table-of-contents__popover .components-popover__content{padding:16px}@media (min-width:600px){.table-of-contents__popover .components-popover__content{max-height:calc(100vh - 120px);overflow-y:auto}}.table-of-contents__popover hr{margin:10px -16px 0}.table-of-contents__wrapper:focus:before{bottom:0;box-shadow:inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);content:"";display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}.table-of-contents__counts{display:flex;flex-wrap:wrap;margin:-8px 0 0}.table-of-contents__count{color:#1e1e1e;display:flex;flex-basis:33%;flex-direction:column;font-size:13px;margin-bottom:0;margin-top:8px;padding-right:8px}.table-of-contents__count:nth-child(4n){padding-right:0}.table-of-contents__number,.table-of-contents__popover .word-count{color:#1e1e1e;font-size:21px;font-weight:400;line-height:30px}.table-of-contents__title{display:block;font-size:15px;font-weight:600;margin-top:20px}.editor-template-validation-notice{align-items:center;display:flex;justify-content:space-between}.editor-template-validation-notice .components-button{margin-left:5px}
\ No newline at end of file
add_action( 'delete_attachment', '_delete_attachment_theme_mod' );
add_action( 'transition_post_status', '_wp_keep_alive_customize_changeset_dependent_auto_drafts', 20, 3 );
+// Block Theme Previews.
+add_action( 'plugins_loaded', 'wp_initialize_theme_preview_hooks', 1 );
+
// Calendar widget cache.
add_action( 'save_post', 'delete_get_calendar_cache' );
add_action( 'delete_post', 'delete_get_calendar_cache' );
add_action( 'wp_head', 'wp_maybe_inline_styles', 1 ); // Run for styles enqueued in <head>.
add_action( 'wp_footer', 'wp_maybe_inline_styles', 1 ); // Run for late-loaded styles in the footer.
+/*
+ * Block specific actions and filters.
+ */
+
+// Footnotes Block.
+add_action( 'init', '_wp_footnotes_kses_init' );
+add_action( 'set_current_user', '_wp_footnotes_kses_init' );
+add_filter( 'force_filtered_html_on_import', '_wp_footnotes_force_filtered_html_on_import_filter', 999 );
+
/*
* Disable "Post Attributes" for wp_navigation post type. The attributes are
* also conditionally enabled when a site has custom templates. Block Theme
* unquoted values will appear in the output with double-quotes.
*
* @since 6.2.0
+ * @since 6.2.1 Fix: Support for various invalid comments; attribute updates are case-insensitive.
+ * @since 6.3.2 Fix: Skip HTML-like content inside rawtext elements such as STYLE.
*/
class WP_HTML_Tag_Processor {
/**
*/
private $attributes = array();
+ /**
+ * Tracks spans of duplicate attributes on a given tag, used for removing
+ * all copies of an attribute when calling `remove_attribute()`.
+ *
+ * @since 6.3.2
+ *
+ * @var (WP_HTML_Span[])[]|null
+ */
+ private $duplicate_attributes = null;
+
/**
* Which class names to add or remove from a tag.
*
* of the tag name as a pre-check avoids a string allocation when it's not needed.
*/
$t = $this->html[ $this->tag_name_starts_at ];
- if ( ! $this->is_closing_tag && ( 's' === $t || 'S' === $t || 't' === $t || 'T' === $t ) ) {
+ if (
+ ! $this->is_closing_tag &&
+ (
+ 'i' === $t || 'I' === $t ||
+ 'n' === $t || 'N' === $t ||
+ 's' === $t || 'S' === $t ||
+ 't' === $t || 'T' === $t
+ ) ) {
$tag_name = $this->get_tag();
if ( 'SCRIPT' === $tag_name && ! $this->skip_script_data() ) {
) {
$this->bytes_already_parsed = strlen( $this->html );
return false;
+ } elseif (
+ (
+ 'IFRAME' === $tag_name ||
+ 'NOEMBED' === $tag_name ||
+ 'NOFRAMES' === $tag_name ||
+ 'NOSCRIPT' === $tag_name ||
+ 'STYLE' === $tag_name
+ ) &&
+ ! $this->skip_rawtext( $tag_name )
+ ) {
+ /*
+ * "XMP" should be here too but its rules are more complicated and require the
+ * complexity of the HTML Processor (it needs to close out any open P element,
+ * meaning it can't be skipped here or else the HTML Processor will lose its
+ * place). For now, it can be ignored as it's a rare HTML tag in practice and
+ * any normative HTML should be using PRE instead.
+ */
+ $this->bytes_already_parsed = strlen( $this->html );
+ return false;
}
}
} while ( $already_found < $this->sought_match_offset );
return true;
}
+ /**
+ * Skips contents of generic rawtext elements.
+ *
+ * @since 6.3.2
+ *
+ * @see https://html.spec.whatwg.org/#generic-raw-text-element-parsing-algorithm
+ *
+ * @param string $tag_name The uppercase tag name which will close the RAWTEXT region.
+ * @return bool Whether an end to the RAWTEXT region was found before the end of the document.
+ */
+ private function skip_rawtext( $tag_name ) {
+ /*
+ * These two functions distinguish themselves on whether character references are
+ * decoded, and since functionality to read the inner markup isn't supported, it's
+ * not necessary to implement these two functions separately.
+ */
+ return $this->skip_rcdata( $tag_name );
+ }
/**
- * Skips contents of title and textarea tags.
+ * Skips contents of RCDATA elements, namely title and textarea tags.
*
* @since 6.2.0
*
* @see https://html.spec.whatwg.org/multipage/parsing.html#rcdata-state
*
- * @param string $tag_name The lowercase tag name which will close the RCDATA region.
+ * @param string $tag_name The uppercase tag name which will close the RCDATA region.
* @return bool Whether an end to the RCDATA region was found before the end of the document.
*/
private function skip_rcdata( $tag_name ) {
$attribute_end,
! $has_value
);
+
+ return true;
+ }
+
+ /*
+ * Track the duplicate attributes so if we remove it, all disappear together.
+ *
+ * While `$this->duplicated_attributes` could always be stored as an `array()`,
+ * which would simplify the logic here, storing a `null` and only allocating
+ * an array when encountering duplicates avoids needless allocations in the
+ * normative case of parsing tags with no duplicate attributes.
+ */
+ $duplicate_span = new WP_HTML_Span( $attribute_start, $attribute_end );
+ if ( null === $this->duplicate_attributes ) {
+ $this->duplicate_attributes = array( $comparable_name => array( $duplicate_span ) );
+ } elseif ( ! array_key_exists( $comparable_name, $this->duplicate_attributes ) ) {
+ $this->duplicate_attributes[ $comparable_name ] = array( $duplicate_span );
+ } else {
+ $this->duplicate_attributes[ $comparable_name ][] = $duplicate_span;
}
return true;
*/
private function after_tag() {
$this->get_updated_html();
- $this->tag_name_starts_at = null;
- $this->tag_name_length = null;
- $this->tag_ends_at = null;
- $this->is_closing_tag = null;
- $this->attributes = array();
+ $this->tag_name_starts_at = null;
+ $this->tag_name_length = null;
+ $this->tag_ends_at = null;
+ $this->is_closing_tag = null;
+ $this->attributes = array();
+ $this->duplicate_attributes = null;
}
/**
''
);
+ // Removes any duplicated attributes if they were also present.
+ if ( null !== $this->duplicate_attributes && array_key_exists( $name, $this->duplicate_attributes ) ) {
+ foreach ( $this->duplicate_attributes[ $name ] as $attribute_token ) {
+ $this->lexical_updates[] = new WP_HTML_Text_Replacement(
+ $attribute_token->start,
+ $attribute_token->end,
+ ''
+ );
+ }
+ }
+
return true;
}
function getFluidTypographyOptionsFromSettings(settings) {
const typographySettings = settings?.typography;
const layoutSettings = settings?.layout;
- return isFluidTypographyEnabled(typographySettings) && layoutSettings?.wideSize ? {
+ const defaultMaxViewportWidth = getTypographyValueAndUnit(layoutSettings?.wideSize) ? layoutSettings?.wideSize : null;
+ return isFluidTypographyEnabled(typographySettings) && defaultMaxViewportWidth ? {
fluid: {
- maxViewPortWidth: layoutSettings.wideSize,
+ maxViewPortWidth: defaultMaxViewportWidth,
...typographySettings.fluid
}
} : {
+
+
/**
* Internal dependencies
*/
*/
const link_control_noop = () => {};
+
+const PREFERENCE_SCOPE = 'core/block-editor';
+const PREFERENCE_KEY = 'linkControlSettingsDrawer';
/**
* Renders a link control. A link control is a controlled input which maintains
* a value associated with a link (HTML anchor element) and relevant settings
* @param {WPLinkControlProps} props Component props.
*/
-
function LinkControl({
searchInputPlaceholder,
value,
withCreateSuggestion = true;
}
+ const [settingsOpen, setSettingsOpen] = (0,external_wp_element_namespaceObject.useState)(false);
+ const {
+ advancedSettingsPreference
+ } = (0,external_wp_data_namespaceObject.useSelect)(select => {
+ var _prefsStore$get;
+
+ const prefsStore = select(external_wp_preferences_namespaceObject.store);
+ return {
+ advancedSettingsPreference: (_prefsStore$get = prefsStore.get(PREFERENCE_SCOPE, PREFERENCE_KEY)) !== null && _prefsStore$get !== void 0 ? _prefsStore$get : false
+ };
+ }, []);
+ const {
+ set: setPreference
+ } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
+ /**
+ * Sets the open/closed state of the Advanced Settings Drawer,
+ * optionlly persisting the state to the user's preferences.
+ *
+ * Note that Block Editor components can be consumed by non-WordPress
+ * environments which may not have preferences setup.
+ * Therefore a local state is also used as a fallback.
+ *
+ * @param {boolean} prefVal the open/closed state of the Advanced Settings Drawer.
+ */
+
+ const setSettingsOpenWithPreference = prefVal => {
+ if (setPreference) {
+ setPreference(PREFERENCE_SCOPE, PREFERENCE_KEY, prefVal);
+ }
+
+ setSettingsOpen(prefVal);
+ }; // Block Editor components can be consumed by non-WordPress environments
+ // which may not have these preferences setup.
+ // Therefore a local state is used as a fallback.
+
+
+ const isSettingsOpen = advancedSettingsPreference || settingsOpen;
const isMounting = (0,external_wp_element_namespaceObject.useRef)(true);
const wrapperNode = (0,external_wp_element_namespaceObject.useRef)();
const textInputRef = (0,external_wp_element_namespaceObject.useRef)();
const settingsKeys = settings.map(({
id
}) => id);
- const [settingsOpen, setSettingsOpen] = (0,external_wp_element_namespaceObject.useState)(false);
const [internalControlValue, setInternalControlValue, setInternalURLInputValue, setInternalTextInputValue, createSetInternalSettingValueHandler] = useInternalValue(value);
const valueHasChanges = value && !(0,external_wp_isShallowEqual_namespaceObject.isShallowEqualObjects)(internalControlValue, value);
const [isEditingLink, setIsEditingLink] = (0,external_wp_element_namespaceObject.useState)(forceIsEditingLink !== undefined ? forceIsEditingLink : !value || !value.url);
const stopEditing = () => {
isEndingEditWithFocus.current = !!wrapperNode.current?.contains(wrapperNode.current.ownerDocument.activeElement);
- setSettingsOpen(false);
setIsEditingLink(false);
};
const currentUrlInputValue = propInputValue || internalControlValue?.url || '';
const currentInputIsEmpty = !currentUrlInputValue?.trim()?.length;
const shownUnlinkControl = onRemove && value && !isEditingLink && !isCreatingPage;
- const showSettings = !!settings?.length && isEditingLink && hasLinkValue;
const showActions = isEditingLink && hasLinkValue; // Only show text control once a URL value has been committed
// and it isn't just empty whitespace.
// See https://github.com/WordPress/gutenberg/pull/33849/#issuecomment-932194927.
const showTextControl = hasLinkValue && hasTextControl;
const isEditing = (isEditingLink || !value) && !isCreatingPage;
const isDisabled = !valueHasChanges || currentInputIsEmpty;
+ const showSettings = !!settings?.length && isEditingLink && hasLinkValue;
return (0,external_wp_element_namespaceObject.createElement)("div", {
tabIndex: -1,
ref: wrapperNode,
}), showSettings && (0,external_wp_element_namespaceObject.createElement)("div", {
className: "block-editor-link-control__tools"
}, !currentInputIsEmpty && (0,external_wp_element_namespaceObject.createElement)(settings_drawer, {
- settingsOpen: settingsOpen,
- setSettingsOpen: setSettingsOpen
+ settingsOpen: isSettingsOpen,
+ setSettingsOpen: setSettingsOpenWithPreference
}, (0,external_wp_element_namespaceObject.createElement)(link_control_settings, {
value: internalControlValue,
settings: settings,
const formatTypes = (0,external_wp_element_namespaceObject.useMemo)(() => {
return allFormatTypes.filter(({
name,
+ interactive,
tagName
}) => {
if (allowedFormats && !allowedFormats.includes(name)) {
return false;
}
- if (withoutInteractiveFormatting && interactiveContentTags.has(tagName)) {
+ if (withoutInteractiveFormatting && (interactive || interactiveContentTags.has(tagName))) {
return false;
}
return true;
});
- }, [allFormatTypes, allowedFormats, interactiveContentTags]);
+ }, [allFormatTypes, allowedFormats, withoutInteractiveFormatting]);
const keyedSelected = (0,external_wp_data_namespaceObject.useSelect)(select => formatTypes.reduce((accumulator, type) => {
if (!type.__experimentalGetPropsForEditableTreePreparation) {
return accumulator;
}));
/* harmony default export */ var library_previous = (previous);
+;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-controls/use-has-block-controls.js
+/**
+ * WordPress dependencies
+ */
+
+
+/**
+ * Internal dependencies
+ */
+
+
+function useHasAnyBlockControls() {
+ let hasAnyBlockControls = false;
+
+ for (const group in block_controls_groups) {
+ // It is safe to violate the rules of hooks here as the `groups` object
+ // is static and will not change length between renders. Do not return
+ // early as that will cause the hook to be called a different number of
+ // times between renders.
+ // eslint-disable-next-line react-hooks/rules-of-hooks
+ if (useHasBlockControls(group)) {
+ hasAnyBlockControls = true;
+ }
+ }
+
+ return hasAnyBlockControls;
+}
+function useHasBlockControls(group = 'default') {
+ const Slot = block_controls_groups[group]?.Slot;
+ const fills = (0,external_wp_components_namespaceObject.__experimentalUseSlotFills)(Slot?.__unstableName);
+
+ if (!Slot) {
+ typeof process !== "undefined" && process.env && "production" !== "production" ? 0 : void 0;
+ return null;
+ }
+
+ return !!fills?.length;
+}
+
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/block-contextual-toolbar.js
+
function BlockContextualToolbar({
focusOnMount,
isFixed,
const isLargeViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('medium');
const {
blockType,
+ blockEditingMode,
hasParents,
showParentSelector,
- selectedBlockClientId,
- isContentOnly
+ selectedBlockClientId
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
const {
getBlockName,
return {
selectedBlockClientId: _selectedBlockClientId,
blockType: _selectedBlockClientId && getBlockType(getBlockName(_selectedBlockClientId)),
+ blockEditingMode: getBlockEditingMode(_selectedBlockClientId),
hasParents: parents.length,
- isContentOnly: getBlockEditingMode(_selectedBlockClientId) === 'contentOnly',
showParentSelector: parentBlockType && getBlockEditingMode(firstParentClientId) === 'default' && (0,external_wp_blocks_namespaceObject.hasBlockSupport)(parentBlockType, '__experimentalParentSelector', true) && selectedBlockClientIds.length <= 1 && getBlockEditingMode(_selectedBlockClientId) === 'default'
};
}, []);
(0,external_wp_element_namespaceObject.useEffect)(() => {
setIsCollapsed(false);
}, [selectedBlockClientId]);
+ const isLargerThanTabletViewport = (0,external_wp_compose_namespaceObject.useViewportMatch)('large', '>=');
+ const isFullscreen = document.body.classList.contains('is-fullscreen-mode');
+ (0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
+ // don't do anything if not fixed toolbar
+ if (!isFixed || !blockType) {
+ return;
+ }
+
+ const blockToolbar = document.querySelector('.block-editor-block-contextual-toolbar');
+
+ if (!blockToolbar) {
+ return;
+ }
+
+ if (!isLargerThanTabletViewport) {
+ // set the width of the toolbar to auto
+ blockToolbar.style = {};
+ return;
+ }
+
+ if (isCollapsed) {
+ // set the width of the toolbar to auto
+ blockToolbar.style.width = 'auto';
+ return;
+ } // get the width of the pinned items in the post editor
+
+
+ const pinnedItems = document.querySelector('.edit-post-header__settings'); // get the width of the left header in the site editor
+
+ const leftHeader = document.querySelector('.edit-site-header-edit-mode__end');
+ const computedToolbarStyle = window.getComputedStyle(blockToolbar);
+ const computedPinnedItemsStyle = pinnedItems ? window.getComputedStyle(pinnedItems) : false;
+ const computedLeftHeaderStyle = leftHeader ? window.getComputedStyle(leftHeader) : false;
+ const marginLeft = parseFloat(computedToolbarStyle.marginLeft);
+ const pinnedItemsWidth = computedPinnedItemsStyle ? parseFloat(computedPinnedItemsStyle.width) + 10 // 10 is the pinned items padding
+ : 0;
+ const leftHeaderWidth = computedLeftHeaderStyle ? parseFloat(computedLeftHeaderStyle.width) : 0; // set the new witdth of the toolbar
+
+ blockToolbar.style.width = `calc(100% - ${leftHeaderWidth + pinnedItemsWidth + marginLeft + (isFullscreen ? 0 : 160) // the width of the admin sidebar expanded
+ }px)`;
+ }, [isFixed, isLargerThanTabletViewport, isCollapsed, isFullscreen, blockType]);
+ const isToolbarEnabled = !blockType || (0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, '__experimentalToolbar', true);
+ const hasAnyBlockControls = useHasAnyBlockControls();
- if (isContentOnly || blockType && !(0,external_wp_blocks_namespaceObject.hasBlockSupport)(blockType, '__experimentalToolbar', true)) {
+ if (!isToolbarEnabled || blockEditingMode !== 'default' && !hasAnyBlockControls) {
return null;
} // Shifts the toolbar to make room for the parent block selector.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
- */,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,l=n in document;if(!l){var i=document.createElement("div");i.setAttribute(n,"return;"),l="function"==typeof i[n]}return!l&&o&&"wheel"===e&&(l=document.implementation.hasFeature("Events.wheel","3.0")),l}},195:function(e,t,n){"use strict";var o=n(3812),r=n(7939);function l(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}l.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},5372:function(e,t,n){"use strict";var o=n(9567);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,l,i){if(i!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:r};return n.PropTypes=n,n}},2652:function(e,t,n){e.exports=n(5372)()},9567:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5438:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var a=n(9196),s=n(2652),c=n(6411),u=n(9894),d="autosize:resized",p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),s=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return a.createElement("textarea",l({},s,{onChange:this.onChange,style:u?l({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:s.number,maxRows:s.number,onResize:s.func,innerRef:s.any,async:s.bool},t}(a.Component);t.TextareaAutosize=a.forwardRef((function(e,t){return a.createElement(p,l({},e,{innerRef:t}))}))},773:function(e,t,n){"use strict";var o=n(5438);t.Z=o.TextareaAutosize},4793:function(e){var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","ß":"ss","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),r=new RegExp(n,"");function l(e){return t[e]}var i=function(e){return e.replace(o,l)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i},3124:function(e){"use strict";function t(e){return Object.prototype.toString.call(e)}var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)}var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},l=Object.prototype.hasOwnProperty||function(e,t){return t in e};function i(e){if("object"==typeof e&&null!==e){var l;if(n(e))l=[];else if("[object Date]"===t(e))l=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===t(e)}(e))l=new RegExp(e);else if(function(e){return"[object Error]"===t(e)}(e))l={message:e.message};else if(function(e){return"[object Boolean]"===t(e)}(e)||function(e){return"[object Number]"===t(e)}(e)||function(e){return"[object String]"===t(e)}(e))l=Object(e);else if(Object.create&&Object.getPrototypeOf)l=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)l={};else{var i=e.constructor&&e.constructor.prototype||e.__proto__||{},a=function(){};a.prototype=i,l=new a}return o(r(e),(function(t){l[t]=e[t]})),l}return e}function a(e,t,a){var s=[],c=[],u=!0;return function e(d){var p=a?i(d):d,m={},f=!0,g={node:p,node_:d,path:[].concat(s),parent:c[c.length-1],parents:c,key:s[s.length-1],isRoot:0===s.length,level:s.length,circular:null,update:function(e,t){g.isRoot||(g.parent.node[g.key]=e),g.node=e,t&&(f=!1)},delete:function(e){delete g.parent.node[g.key],e&&(f=!1)},remove:function(e){n(g.parent.node)?g.parent.node.splice(g.key,1):delete g.parent.node[g.key],e&&(f=!1)},keys:null,before:function(e){m.before=e},after:function(e){m.after=e},pre:function(e){m.pre=e},post:function(e){m.post=e},stop:function(){u=!1},block:function(){f=!1}};if(!u)return g;function h(){if("object"==typeof g.node&&null!==g.node){g.keys&&g.node_===g.node||(g.keys=r(g.node)),g.isLeaf=0===g.keys.length;for(var e=0;e<c.length;e++)if(c[e].node_===d){g.circular=c[e];break}}else g.isLeaf=!0,g.keys=null;g.notLeaf=!g.isLeaf,g.notRoot=!g.isRoot}h();var b=t.call(g,g.node);return void 0!==b&&g.update&&g.update(b),m.before&&m.before.call(g,g.node),f?("object"!=typeof g.node||null===g.node||g.circular||(c.push(g),h(),o(g.keys,(function(t,n){s.push(t),m.pre&&m.pre.call(g,g.node[t],t);var o=e(g.node[t]);a&&l.call(g.node,t)&&(g.node[t]=o.node),o.isLast=n===g.keys.length-1,o.isFirst=0===n,m.post&&m.post.call(g,o),s.pop()})),c.pop()),m.after&&m.after.call(g,g.node),g):g}(e).node}function s(e){this.value=e}function c(e){return new s(e)}s.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!l.call(t,o))return;t=t[o]}return t},s.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!l.call(t,o))return!1;t=t[o]}return!0},s.prototype.set=function(e,t){for(var n=this.value,o=0;o<e.length-1;o++){var r=e[o];l.call(n,r)||(n[r]={}),n=n[r]}return n[e[o]]=t,t},s.prototype.map=function(e){return a(this.value,e,!0)},s.prototype.forEach=function(e){return this.value=a(this.value,e,!1),this.value},s.prototype.reduce=function(e,t){var n=1===arguments.length,o=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(o=e.call(this,o,t))})),o},s.prototype.paths=function(){var e=[];return this.forEach((function(){e.push(this.path)})),e},s.prototype.nodes=function(){var e=[];return this.forEach((function(){e.push(this.node)})),e},s.prototype.clone=function(){var e=[],t=[];return function n(l){for(var a=0;a<e.length;a++)if(e[a]===l)return t[a];if("object"==typeof l&&null!==l){var s=i(l);return e.push(l),t.push(s),o(r(l),(function(e){s[e]=n(l[e])})),e.pop(),t.pop(),s}return l}(this.value)},o(r(s.prototype),(function(e){c[e]=function(t){var n=[].slice.call(arguments,1),o=new s(t);return o[e].apply(o,n)}})),e.exports=c},9196:function(e){"use strict";e.exports=window.React}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var l=t[o]={exports:{}};return e[o].call(l.exports,l,l.exports,n),l.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){"use strict";n.r(o),n.d(o,{AlignmentControl:function(){return cy},AlignmentToolbar:function(){return uy},Autocomplete:function(){return ky},BlockAlignmentControl:function(){return wi},BlockAlignmentToolbar:function(){return Si},BlockBreadcrumb:function(){return Iy},BlockColorsStyleSelector:function(){return Ny},BlockContextProvider:function(){return na},BlockControls:function(){return er},BlockEdit:function(){return aa},BlockEditorKeyboardShortcuts:function(){return bI},BlockEditorProvider:function(){return Yd},BlockFormatControls:function(){return Jo},BlockIcon:function(){return $d},BlockInspector:function(){return yB},BlockList:function(){return Jg},BlockMover:function(){return EB},BlockNavigationDropdown:function(){return YE},BlockPreview:function(){return Em},BlockSelectionClearer:function(){return Qd},BlockSettingsMenu:function(){return wB},BlockSettingsMenuControls:function(){return Nk},BlockStyles:function(){return ow},BlockTitle:function(){return By},BlockToolbar:function(){return XB},BlockTools:function(){return mI},BlockVerticalAlignmentControl:function(){return Fr},BlockVerticalAlignmentToolbar:function(){return Hr},ButtonBlockAppender:function(){return vg},ButtonBlockerAppender:function(){return bg},ColorPalette:function(){return xw},ColorPaletteControl:function(){return Bw},ContrastChecker:function(){return mb},CopyHandler:function(){return vE},DefaultBlockAppender:function(){return gg},FontSizePicker:function(){return Jk},HeadingLevelDropdown:function(){return sw},HeightControl:function(){return Vv},InnerBlocks:function(){return qg},Inserter:function(){return fg},InspectorAdvancedControls:function(){return Ki},InspectorControls:function(){return qi},JustifyContentControl:function(){return $r},JustifyToolbar:function(){return jr},LineHeightControl:function(){return Db},MediaPlaceholder:function(){return SC},MediaReplaceFlow:function(){return gC},MediaUpload:function(){return Zf},MediaUploadCheck:function(){return qf},MultiSelectScrollIntoView:function(){return vI},NavigableToolbar:function(){return MC},ObserveTyping:function(){return EI},PanelColorSettings:function(){return CC},PlainText:function(){return fx},RichText:function(){return dx},RichTextShortcut:function(){return bx},RichTextToolbarButton:function(){return vx},SETTINGS_DEFAULTS:function(){return k},SkipToSelectedBlock:function(){return Gx},ToolSelector:function(){return yx},Typewriter:function(){return BI},URLInput:function(){return CS},URLInputButton:function(){return Cx},URLPopover:function(){return kC},Warning:function(){return ca},WritingFlow:function(){return pp},__experimentalBlockAlignmentMatrixControl:function(){return Sy},__experimentalBlockFullHeightAligmentControl:function(){return Ey},__experimentalBlockPatternSetup:function(){return yw},__experimentalBlockPatternsList:function(){return jm},__experimentalBlockVariationPicker:function(){return uw},__experimentalBlockVariationTransforms:function(){return Sw},__experimentalBorderRadiusControl:function(){return kh},__experimentalColorGradientControl:function(){return Qh},__experimentalColorGradientSettingsDropdown:function(){return Aw},__experimentalDateFormatPicker:function(){return Mw},__experimentalDuotoneControl:function(){return C_},__experimentalFontAppearanceControl:function(){return Lb},__experimentalFontFamilyControl:function(){return Tb},__experimentalGetBorderClassesAndStyles:function(){return Vk},__experimentalGetColorClassesAndStyles:function(){return Hk},__experimentalGetElementClassName:function(){return AI},__experimentalGetGapCSSValue:function(){return Pr},__experimentalGetGradientClass:function(){return Hh},__experimentalGetGradientObjectByGradientValue:function(){return Uh},__experimentalGetMatchingVariation:function(){return OI},__experimentalGetSpacingClassesAndStyles:function(){return $k},__experimentalImageEditor:function(){return hS},__experimentalImageSizeControl:function(){return _S},__experimentalImageURLInputUI:function(){return Nx},__experimentalInspectorPopoverHeader:function(){return NI},__experimentalLetterSpacingControl:function(){return Ob},__experimentalLibrary:function(){return gI},__experimentalLinkControl:function(){return cC},__experimentalLinkControlSearchInput:function(){return YS},__experimentalLinkControlSearchItem:function(){return AS},__experimentalLinkControlSearchResults:function(){return GS},__experimentalListView:function(){return qE},__experimentalPanelColorGradientSettings:function(){return Vw},__experimentalPreviewOptions:function(){return Fx},__experimentalPublishDateTimePicker:function(){return LI},__experimentalRecursionProvider:function(){return TI},__experimentalResponsiveBlockControl:function(){return hx},__experimentalSpacingSizesControl:function(){return Ov},__experimentalTextDecorationControl:function(){return Kb},__experimentalTextTransformControl:function(){return Ub},__experimentalUnitControl:function(){return Ex},__experimentalUseBlockOverlayActive:function(){return Md},__experimentalUseBlockPreview:function(){return wm},__experimentalUseBorderProps:function(){return Fk},__experimentalUseColorProps:function(){return Uk},__experimentalUseCustomSides:function(){return m_},__experimentalUseGradient:function(){return jh},__experimentalUseHasRecursion:function(){return MI},__experimentalUseMultipleOriginColorsAndGradients:function(){return lh},__experimentalUseResizeCanvas:function(){return Hx},__unstableBlockNameContext:function(){return Dx},__unstableBlockSettingsMenuFirstItem:function(){return AE},__unstableBlockToolbarLastItem:function(){return Ax},__unstableDuotoneFilter:function(){return T_},__unstableDuotoneStylesheet:function(){return B_},__unstableDuotoneUnsetStylesheet:function(){return I_},__unstableEditorStyles:function(){return bm},__unstableGetValuesFromColors:function(){return x_},__unstableIframe:function(){return fp},__unstableInserterMenuExtension:function(){return eg},__unstablePresetDuotoneFilter:function(){return M_},__unstableRichTextInputEvent:function(){return _x},__unstableUseBlockSelectionClearer:function(){return Xd},__unstableUseClipboardHandler:function(){return bE},__unstableUseMouseMoveTypingReset:function(){return kI},__unstableUseTypewriter:function(){return xI},__unstableUseTypingObserver:function(){return yI},createCustomColorsHOC:function(){return Xk},getColorClassName:function(){return rh},getColorObjectByAttributeValues:function(){return nh},getColorObjectByColorValue:function(){return oh},getComputedFluidTypographyValue:function(){return rl},getCustomValueFromPreset:function(){return xr},getFontSize:function(){return mv},getFontSizeClass:function(){return gv},getFontSizeObjectByValue:function(){return fv},getGradientSlugByValue:function(){return $h},getGradientValueBySlug:function(){return Gh},getPxFromCssUnit:function(){return jI},getSpacingPresetCssVar:function(){return Ir},getTypographyClassesAndStyles:function(){return jk},isValueSpacingPreset:function(){return Cr},privateApis:function(){return lP},store:function(){return Go},storeConfig:function(){return Ho},transformStyles:function(){return fm},useBlockDisplayInformation:function(){return Z_},useBlockEditContext:function(){return Ko},useBlockProps:function(){return Nd},useCachedTruthy:function(){return Wk},useInnerBlocksProps:function(){return Kg},useSetting:function(){return Xr},withColorContext:function(){return Cw},withColors:function(){return Qk},withFontSizes:function(){return ny}});var e={};n.r(e),n.d(e,{getBlockEditingMode:function(){return Y},getBlockRemovalRules:function(){return te},getEnabledBlockParents:function(){return J},getEnabledClientIdsTree:function(){return Q},getLastInsertedBlocksClientIds:function(){return Z},getRemovalPromptData:function(){return ee},isBlockInterfaceHidden:function(){return q},isBlockSubtreeDisabled:function(){return X}});var t={};n.r(t),n.d(t,{__experimentalGetActiveBlockIdByBlockNames:function(){return an},__experimentalGetAllowedBlocks:function(){return Dt},__experimentalGetAllowedPatterns:function(){return Ht},__experimentalGetBlockListSettingsForBlocks:function(){return Zt},__experimentalGetDirectInsertBlock:function(){return Ot},__experimentalGetGlobalBlocksByName:function(){return ge},__experimentalGetLastBlockAttributeChanges:function(){return Qt},__experimentalGetParsedPattern:function(){return Vt},__experimentalGetPatternTransformItems:function(){return $t},__experimentalGetPatternsByBlockTypes:function(){return Ut},__experimentalGetReusableBlockTitle:function(){return Yt},__unstableGetBlockWithoutInnerBlocks:function(){return se},__unstableGetClientIdWithClientIdsTree:function(){return ue},__unstableGetClientIdsTree:function(){return de},__unstableGetContentLockingParent:function(){return dn},__unstableGetEditorMode:function(){return tn},__unstableGetSelectedBlocksWithPartialSelection:function(){return Ye},__unstableGetTemporarilyEditingAsBlocks:function(){return pn},__unstableGetVisibleBlocks:function(){return un},__unstableHasActiveBlockOverlayActive:function(){return mn},__unstableIsFullySelected:function(){return We},__unstableIsLastBlockChangeIgnored:function(){return Xt},__unstableIsSelectionCollapsed:function(){return Ke},__unstableIsSelectionMergeable:function(){return Ze},__unstableIsWithinBlockOverlay:function(){return fn},__unstableSelectionHasUnmergeableBlock:function(){return qe},areInnerBlocksControlled:function(){return ln},canEditBlock:function(){return xt},canInsertBlockType:function(){return kt},canInsertBlocks:function(){return yt},canLockBlockType:function(){return Bt},canMoveBlock:function(){return St},canMoveBlocks:function(){return Ct},canRemoveBlock:function(){return Et},canRemoveBlocks:function(){return wt},didAutomaticChange:function(){return on},getAdjacentBlockClientId:function(){return Ne},getAllowedBlocks:function(){return At},getBehaviors:function(){return Kt},getBlock:function(){return ae},getBlockAttributes:function(){return ie},getBlockCount:function(){return ve},getBlockHierarchyRootClientId:function(){return Me},getBlockIndex:function(){return Qe},getBlockInsertionPoint:function(){return mt},getBlockListSettings:function(){return jt},getBlockMode:function(){return it},getBlockName:function(){return re},getBlockNamesByClientId:function(){return be},getBlockOrder:function(){return Xe},getBlockParents:function(){return Ie},getBlockParentsByBlockName:function(){return Te},getBlockRootClientId:function(){return Be},getBlockSelectionEnd:function(){return Ee},getBlockSelectionStart:function(){return ye},getBlockTransformItems:function(){return Lt},getBlocks:function(){return ce},getBlocksByClientId:function(){return he},getClientIdsOfDescendants:function(){return pe},getClientIdsWithDescendants:function(){return me},getDraggedBlockClientIds:function(){return ct},getFirstMultiSelectedBlockClientId:function(){return Ve},getGlobalBlockCount:function(){return fe},getInserterItems:function(){return Nt},getLastMultiSelectedBlockClientId:function(){return Fe},getLowestCommonAncestorWithSelectedBlock:function(){return Pe},getMultiSelectedBlockClientIds:function(){return Oe},getMultiSelectedBlocks:function(){return ze},getMultiSelectedBlocksEndClientId:function(){return je},getMultiSelectedBlocksStartClientId:function(){return $e},getNextBlockClientId:function(){return Re},getPatternsByBlockTypes:function(){return Gt},getPreviousBlockClientId:function(){return Le},getSelectedBlock:function(){return xe},getSelectedBlockClientId:function(){return Ce},getSelectedBlockClientIds:function(){return De},getSelectedBlockCount:function(){return we},getSelectedBlocksInitialCaretPosition:function(){return Ae},getSelectionEnd:function(){return ke},getSelectionStart:function(){return _e},getSettings:function(){return Wt},getTemplate:function(){return ht},getTemplateLock:function(){return bt},hasBlockMovingClientId:function(){return nn},hasDraggedInnerBlock:function(){return tt},hasInserterItems:function(){return Rt},hasMultiSelection:function(){return ot},hasSelectedBlock:function(){return Se},hasSelectedInnerBlock:function(){return et},isAncestorBeingDragged:function(){return dt},isAncestorMultiSelected:function(){return Ue},isBlockBeingDragged:function(){return ut},isBlockHighlighted:function(){return rn},isBlockInsertionPointVisible:function(){return ft},isBlockMultiSelected:function(){return Ge},isBlockSelected:function(){return Je},isBlockValid:function(){return le},isBlockVisible:function(){return cn},isBlockWithinSelection:function(){return nt},isCaretWithinFormattedText:function(){return pt},isDraggingBlocks:function(){return st},isFirstMultiSelectedBlock:function(){return He},isLastBlockChangePersistent:function(){return qt},isMultiSelecting:function(){return rt},isNavigationMode:function(){return en},isSelectionEnabled:function(){return lt},isTyping:function(){return at},isValidTemplate:function(){return gt},wasBlockJustInserted:function(){return sn}});var r={};n.r(r),n.d(r,{__experimentalUpdateSettings:function(){return hn},clearBlockRemovalPrompt:function(){return wn},ensureDefaultBlock:function(){return En},hideBlockInterface:function(){return bn},privateRemoveBlocks:function(){return yn},setBlockEditingMode:function(){return _n},setBlockRemovalRules:function(){return Sn},showBlockInterface:function(){return vn},unsetBlockEditingMode:function(){return kn}});var l={};n.r(l),n.d(l,{__unstableDeleteSelection:function(){return oo},__unstableExpandSelection:function(){return lo},__unstableMarkAutomaticChange:function(){return Co},__unstableMarkLastChangeAsPersistent:function(){return wo},__unstableMarkNextChangeAsNotPersistent:function(){return So},__unstableSaveReusableBlock:function(){return Eo},__unstableSetEditorMode:function(){return Bo},__unstableSetTemporarilyEditingAsBlocks:function(){return Do},__unstableSplitSelection:function(){return ro},clearSelectedBlock:function(){return Hn},duplicateBlocks:function(){return To},enterFormattedText:function(){return ho},exitFormattedText:function(){return bo},flashBlock:function(){return Lo},hideInsertionPoint:function(){return eo},insertAfterBlock:function(){return Po},insertBeforeBlock:function(){return Mo},insertBlock:function(){return Xn},insertBlocks:function(){return Qn},insertDefaultBlock:function(){return _o},mergeBlocks:function(){return io},moveBlockToPosition:function(){return Yn},moveBlocksDown:function(){return Kn},moveBlocksToPosition:function(){return Zn},moveBlocksUp:function(){return qn},multiSelect:function(){return Fn},receiveBlocks:function(){return Nn},removeBlock:function(){return so},removeBlocks:function(){return ao},replaceBlock:function(){return jn},replaceBlocks:function(){return $n},replaceInnerBlocks:function(){return co},resetBlocks:function(){return Tn},resetSelection:function(){return Pn},selectBlock:function(){return An},selectNextBlock:function(){return On},selectPreviousBlock:function(){return Dn},selectionChange:function(){return vo},setBlockMovingClientId:function(){return Io},setBlockVisibility:function(){return Ao},setHasControlledInnerBlocks:function(){return Ro},setNavigationMode:function(){return xo},setTemplateValidity:function(){return to},showInsertionPoint:function(){return Jn},startDraggingBlocks:function(){return fo},startMultiSelect:function(){return zn},startTyping:function(){return po},stopDraggingBlocks:function(){return go},stopMultiSelect:function(){return Vn},stopTyping:function(){return mo},synchronizeTemplate:function(){return no},toggleBlockHighlight:function(){return No},toggleBlockMode:function(){return uo},toggleSelection:function(){return Gn},updateBlock:function(){return Rn},updateBlockAttributes:function(){return Ln},updateBlockListSettings:function(){return ko},updateSettings:function(){return yo},validateBlocksToTemplate:function(){return Mn}});var i={};n.r(i),n.d(i,{AdvancedPanel:function(){return vT},BorderPanel:function(){return Ih},ColorPanel:function(){return pb},DimensionsPanel:function(){return n_},EffectsPanel:function(){return mT},FiltersPanel:function(){return F_},GlobalStylesContext:function(){return bl},TypographyPanel:function(){return av},areGlobalStyleConfigsEqual:function(){return hl},getBlockCSSSelector:function(){return P_},getLayoutStyles:function(){return XI},useGlobalSetting:function(){return yl},useGlobalStyle:function(){return El},useGlobalStylesOutput:function(){return aT},useGlobalStylesOutputWithConfig:function(){return iT},useGlobalStylesReset:function(){return kl},useHasBorderPanel:function(){return yh},useHasColorPanel:function(){return Jh},useHasDimensionsPanel:function(){return $v},useHasEffectsPanel:function(){return cT},useHasFiltersPanel:function(){return R_},useHasTypographyPanel:function(){return Yb},useSettingsForBlockElement:function(){return wl}});var a=window.wp.blocks,s=window.wp.hooks;(0,s.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,a.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var c=window.wp.element,u=n(4403),d=n.n(u),p=window.wp.compose,m=window.wp.components,f=window.wp.data;var g={default:(0,m.createSlotFill)("BlockControls"),block:(0,m.createSlotFill)("BlockControlsBlock"),inline:(0,m.createSlotFill)("BlockFormatControls"),other:(0,m.createSlotFill)("BlockControlsOther"),parent:(0,m.createSlotFill)("BlockControlsParent")},h=n(5619),b=n.n(h),v=window.wp.i18n;const _={insertUsage:{}},k={alignWide:!1,supportsLayout:!0,colors:[{name:(0,v.__)("Black"),slug:"black",color:"#000000"},{name:(0,v.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,v.__)("White"),slug:"white",color:"#ffffff"},{name:(0,v.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,v.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,v.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,v.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,v.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,v.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,v.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,v.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,v.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,v._x)("Small","font size name"),size:13,slug:"small"},{name:(0,v._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,v._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,v._x)("Large","font size name"),size:36,slug:"large"},{name:(0,v._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,v.__)("Thumbnail")},{slug:"medium",name:(0,v.__)("Medium")},{slug:"large",name:(0,v.__)("Large")},{slug:"full",name:(0,v.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableGalleryWithImageBlocks:!1,__unstableIsPreviewMode:!1,blockInspectorAnimation:{animationParent:"core/navigation","core/navigation":{enterDirection:"leftToRight"},"core/navigation-submenu":{enterDirection:"rightToLeft"},"core/navigation-link":{enterDirection:"rightToLeft"},"core/search":{enterDirection:"rightToLeft"},"core/social-links":{enterDirection:"rightToLeft"},"core/page-list":{enterDirection:"rightToLeft"},"core/spacer":{enterDirection:"rightToLeft"},"core/home-link":{enterDirection:"rightToLeft"},"core/site-title":{enterDirection:"rightToLeft"},"core/site-logo":{enterDirection:"rightToLeft"}},generateAnchors:!1,gradients:[{name:(0,v.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:(0,v.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:(0,v.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:(0,v.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:(0,v.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:(0,v.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:(0,v.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,v.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:(0,v.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:(0,v.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:(0,v.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,v.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function y(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function E(e,t,n,o=1){const r=[...e];return r.splice(t,o),y(r,e.slice(t,t+o),n)}const w=e=>e;function S(e,t=""){const n=new Map,o=[];return n.set(t,o),e.forEach((e=>{const{clientId:t,innerBlocks:r}=e;o.push(t),S(r,t).forEach(((e,t)=>{n.set(t,e)}))})),n}function C(e,t=""){const n=[],o=[[t,e]];for(;o.length;){const[e,t]=o.shift();t.forEach((({innerBlocks:t,...r})=>{n.push([r.clientId,e]),t?.length&&o.push([r.clientId,t])}))}return n}function x(e,t=w){const n=[],o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n.push([r.clientId,t(r)])}return n}function B(e){return x(e,(e=>{const{attributes:t,...n}=e;return n}))}function I(e){return x(e,(e=>e.attributes))}function T(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&b()(e.clientIds,t.clientIds)&&function(e,t){return b()(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function M(e,t){const n=e.tree,o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n.set(e.clientId,{});for(const t of r)n.set(t.clientId,Object.assign(n.get(t.clientId),{...e.byClientId.get(t.clientId),attributes:e.attributes.get(t.clientId),innerBlocks:t.innerBlocks.map((e=>n.get(e.clientId)))}))}function P(e,t,n=!1){const o=e.tree,r=new Set([]),l=new Set;for(const o of t){let t=n?o:e.parents.get(o);do{if(e.controlledInnerBlocks[t]){l.add(t);break}r.add(t),t=e.parents.get(t)}while(void 0!==t)}for(const e of r)o.set(e,{...o.get(e)});for(const t of r)o.get(t).innerBlocks=(e.order.get(t)||[]).map((e=>o.get(e)));for(const t of l)o.set("controlled||"+t,{innerBlocks:(e.order.get(t)||[]).map((e=>o.get(e)))})}const N=(0,p.pipe)(f.combineReducers,(e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=new Map(t.attributes),t.attributes.forEach(((n,r)=>{const{name:l}=t.byClientId.get(r);"core/block"===l&&n.ref===e&&t.attributes.set(r,{...n,ref:o})}))}return e(t,n)}),(e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:new Map,n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":o.tree=new Map(o.tree),M(o,n.blocks),P(o,n.rootClientId?[n.rootClientId]:[""],!0);break;case"UPDATE_BLOCK":o.tree=new Map(o.tree),o.tree.set(n.clientId,{...o.tree.get(n.clientId),...o.byClientId.get(n.clientId),attributes:o.attributes.get(n.clientId)}),P(o,[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":o.tree=new Map(o.tree),n.clientIds.forEach((e=>{o.tree.set(e,{...o.tree.get(e),attributes:o.attributes.get(e)})})),P(o,n.clientIds,!1);break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=function(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t[o.clientId]=!0}return t}(n.blocks);o.tree=new Map(o.tree),n.replacedClientIds.concat(n.replacedClientIds.filter((t=>!e[t])).map((e=>"controlled||"+e))).forEach((e=>{o.tree.delete(e)})),M(o,n.blocks),P(o,n.blocks.map((e=>e.clientId)),!1);const r=[];for(const e of n.clientIds)void 0===t.parents.get(e)||""!==t.parents.get(e)&&!o.byClientId.get(t.parents.get(e))||r.push(t.parents.get(e));P(o,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds)void 0===t.parents.get(r)||""!==t.parents.get(r)&&!o.byClientId.get(t.parents.get(r))||e.push(t.parents.get(r));o.tree=new Map(o.tree),n.removedClientIds.concat(n.removedClientIds.map((e=>"controlled||"+e))).forEach((e=>{o.tree.delete(e)})),P(o,e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(""),n.toRootClientId&&e.push(n.toRootClientId),o.tree=new Map(o.tree),P(o,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=new Map(o.tree),P(o,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=[];o.attributes.forEach(((t,r)=>{"core/block"===o.byClientId.get(r).name&&t.ref===n.updatedId&&e.push(r)})),o.tree=new Map(o.tree),e.forEach((e=>{o.tree.set(e,{...o.byClientId.get(e),attributes:o.attributes.get(e),innerBlocks:o.tree.get(e).innerBlocks})})),P(o,e,!1)}}return o}),(e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order.get(o[r])||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order.get(o[r])));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)}),(e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order.get(n.rootClientId)&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order.get(n.rootClientId)}));let l=r;if(n.blocks.length){l=e(l,{...n,type:"INSERT_BLOCKS",index:0});const r=new Map(l.order);Object.keys(o).forEach((e=>{t.order.get(e)&&r.set(e,t.order.get(e))})),l.order=r,l.tree=new Map(l.tree),Object.keys(o).forEach((e=>{const n=`controlled||${e}`;t.tree.has(n)&&l.tree.set(n,t.tree.get(n))}))}return l}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:new Map(B(n.blocks)),attributes:new Map(I(n.blocks)),order:S(n.blocks),parents:new Map(C(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(t?.tree),M(e,n.blocks),e.tree.set("",{innerBlocks:n.blocks.map((t=>e.tree.get(t.clientId)))}),e}return e(t,n)}),(function(e){let t,n=!1;return(o,r)=>{let l=e(o,r);const i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===l&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(a=o?.isPersistentChange)||void 0===a||a;return o.isPersistentChange===e?o:{...l,isPersistentChange:e}}return l={...l,isPersistentChange:i?!n:!T(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,l}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return B(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;const{attributes:n,...o}=t.updates;if(0===Object.values(o).length)return e;const r=new Map(e);return r.set(t.clientId,{...e.get(t.clientId),...o}),r}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),B(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return I(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e.get(t))))return e;let o=!1;const r=new Map(e);for(const l of t.clientIds){var n;const i=Object.entries(t.uniqueByBlock?t.attributes[l]:null!==(n=t.attributes)&&void 0!==n?n:{});if(0===i.length)continue;let a=!1;const s=e.get(l),c={};i.forEach((([e,t])=>{s[e]!==t&&(a=!0,c[e]=t)})),o=o||a,a&&r.set(l,{...s,...c})}return o?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),I(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{var n;const o=S(t.blocks),r=new Map(e);return o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.set("",(null!==(n=e.get(""))&&void 0!==n?n:[]).concat(o[""])),r}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e.get(n)||[],r=S(t.blocks,n),{index:l=o.length}=t,i=new Map(e);return r.forEach(((e,t)=>{i.set(t,e)})),i.set(n,y(o,r.get(n),l)),i}case"MOVE_BLOCKS_TO_POSITION":{var o;const{fromRootClientId:n="",toRootClientId:r="",clientIds:l}=t,{index:i=e.get(r).length}=t;if(n===r){const t=e.get(r).indexOf(l[0]),n=new Map(e);return n.set(r,E(e.get(r),t,i,l.length)),n}const a=new Map(e);return a.set(n,null!==(o=e.get(n)?.filter((e=>!l.includes(e))))&&void 0!==o?o:[]),a.set(r,y(e.get(r),l,i)),a}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],l=e.get(o);if(!l.length||r===l[0])return e;const i=l.indexOf(r),a=new Map(e);return a.set(o,E(l,i,i-1,n.length)),a}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],l=n[n.length-1],i=e.get(o);if(!i.length||l===i[i.length-1])return e;const a=i.indexOf(r),s=new Map(e);return s.set(o,E(i,a,a+1,n.length)),s}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=S(t.blocks),r=new Map(e);return t.replacedClientIds.forEach((e=>{r.delete(e)})),o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.forEach(((e,t)=>{const l=Object.values(e).reduce(((e,t)=>t===n[0]?[...e,...o.get("")]:(-1===n.indexOf(t)&&e.push(t),e)),[]);r.set(t,l)})),r}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n.forEach(((e,o)=>{var r;const l=null!==(r=e?.filter((e=>!t.removedClientIds.includes(e))))&&void 0!==r?r:[];l.length!==e.length&&n.set(o,l)})),n}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);return C(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"INSERT_BLOCKS":{const n=new Map(e);return C(t.blocks,t.rootClientId||"").forEach((([e,t])=>{n.set(e,t)})),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach((e=>{n.set(e,t.toRootClientId||"")})),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),C(t.blocks,e.get(t.clientIds[0])).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},controlledInnerBlocks(e={},{type:t,clientId:n,hasControlledInnerBlocks:o}){return"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e}});function L(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}const R=(0,f.combineReducers)({blocks:N,isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isBlockInterfaceHidden:function(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},selection:function(e={},t){switch(t.type){case"SELECTION_CHANGE":return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case"RESET_SELECTION":const{selectionStart:n,selectionEnd:o}=t;return{selectionStart:n,selectionEnd:o};case"MULTI_SELECT":const{start:r,end:l}=t;return r===e.selectionStart?.clientId&&l===e.selectionEnd?.clientId?e:{selectionStart:{clientId:r},selectionEnd:{clientId:l}};case"RESET_BLOCKS":const i=e?.selectionStart?.clientId,a=e?.selectionEnd?.clientId;if(!i&&!a)return e;if(!t.blocks.some((e=>e.clientId===i)))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some((e=>e.clientId===a)))return{...e,selectionEnd:e.selectionStart}}const n=L(e.selectionStart,t),o=L(e.selectionEnd,t);return n===e.selectionStart&&o===e.selectionEnd?e:{selectionStart:n,selectionEnd:o}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(e=null,t){return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object.fromEntries(Object.entries(e).filter((([e])=>!t.clientIds.includes(e))));case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;if(!t.settings){if(e.hasOwnProperty(n)){const{[n]:t,...o}=e;return o}return e}return b()(e[n],t.settings)?e:{...e,[n]:t.settings}}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:o,__unstableWithInserter:r,operation:l}=t,i={rootClientId:n,index:o,__unstableWithInserter:r,operation:l};return b()(e,i)?e:i}case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(e=k,t){return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},preferences:function(e=_,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(((e,n)=>{const{attributes:o,name:r}=n;let l=r;const i=(0,f.select)(a.store).getActiveBlockVariation(r,o);return i?.name&&(l+="/"+i.name),"core/block"===r&&(l+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[l]:{time:t.time,count:e.insertUsage[l]?e.insertUsage[l].count+1:1}}}}),e)}return e},lastBlockAttributesChange:function(e=null,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce(((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},editorMode:function(e="edit",t){return"INSERT_BLOCKS"===t.type&&"navigation"===e?"edit":"SET_EDITOR_MODE"===t.type?t.mode:e},hasBlockMovingClientId:function(e=null,t){return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_EDITOR_MODE"===t.type?null:e},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":case"REPLACE_INNER_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.map((e=>e.clientId)),o=t.meta?.source;return{clientIds:n,source:o};case"RESET_BLOCKS":return{}}return e},temporarilyEditingAsBlocks:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.temporarilyEditingAsBlocks:e},blockVisibility:function(e={},t){return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e},blockEditingModes:function(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{const n=new Map(e);return n.delete(t.clientId),n}case"RESET_BLOCKS":return e.has("")?(new Map).set("",e.get("")):e}return e},removalPromptData:function(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":const{clientIds:e,selectPrevious:n,blockNamesForPrompt:o}=t;return{clientIds:e,selectPrevious:n,blockNamesForPrompt:o};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e},blockRemovalRules:function(e=!1,t){return"SET_BLOCK_REMOVAL_RULES"===t.type?t.rules:e}});var A=function(e){return(t,n)=>{const o=e(t,n);return t?(o.automaticChangeStatus=t.automaticChangeStatus,"MARK_AUTOMATIC_CHANGE"===n.type?{...o,automaticChangeStatus:"pending"}:"MARK_AUTOMATIC_CHANGE_FINAL"===n.type&&"pending"===t.automaticChangeStatus?{...o,automaticChangeStatus:"final"}:o.blocks===t.blocks&&o.selection===t.selection||"final"!==o.automaticChangeStatus&&o.selection!==t.selection?o:{...o,automaticChangeStatus:void 0}):o}}(R),D={};function O(e){return[e]}function z(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function V(e,t){var n,o=t||O;function r(){n=new WeakMap}function l(){var t,r,l,i,a,s=arguments.length;for(i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];for(t=function(e){var t,o,r,l,i,a=n,s=!0;for(t=0;t<e.length;t++){if(!(i=o=e[t])||"object"!=typeof i){s=!1;break}a.has(o)?a=a.get(o):(r=new WeakMap,a.set(o,r),a=r)}return a.has(D)||((l=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=s,a.set(D,l)),a.get(D)}(a=o.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!z(a,t.lastDependants,0)&&t.clear(),t.lastDependants=a),r=t.head;r;){if(z(r.args,i,1))return r!==t.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=t.head,r.prev=null,t.head.prev=r,t.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,t.head&&(t.head.prev=r,r.next=t.head),t.head=r,r.val}return l.getDependants=o,l.clear=r,r(),l}var F=window.wp.primitives;var H=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),G=window.wp.richText,U=window.wp.deprecated,$=n.n(U);function j(e){const{multiline:t,__unstableMultilineWrapperTags:n,__unstablePreserveWhiteSpace:o}=e;return{multilineTag:t,multilineWrapperTags:n,preserveWhiteSpace:o}}const W=(e,t,n)=>(o,r)=>{let l,i;if("function"==typeof e?(l=e(o),i=e(r)):(l=o[e],i=r[e]),l>i)return"asc"===n?1:-1;if(i>l)return"asc"===n?-1:1;const a=t.findIndex((e=>e===o)),s=t.findIndex((e=>e===r));return a>s?1:s>a?-1:0};function K(e,t,n="asc"){return e.concat().sort(W(t,e,n))}function q(e){return e.isBlockInterfaceHidden}function Z(e){return e?.lastBlockInserted?.clientIds}function Y(e,t=""){if(e.blockEditingModes.has(t))return e.blockEditingModes.get(t);if(!t)return"default";const n=Be(e,t);if("contentOnly"===bt(e,n)){const n=re(e,t);return(0,f.select)(a.store).__experimentalHasContentRoleAttribute(n)?"contentOnly":"disabled"}const o=Y(e,n);return"contentOnly"===o?"default":o}const X=V(((e,t)=>{const n=t=>{const o=e.blockEditingModes.get(t);return(void 0===o||"disabled"===o)&&Xe(e,t).every(n)};return"disabled"===Y(e,t)&&Xe(e,t).every(n)}),(e=>[e.blockEditingModes,e.blocks.parents])),Q=V(((e,t="")=>Xe(e,t).flatMap((t=>"disabled"!==Y(e,t)?[{clientId:t,innerBlocks:Q(e,t)}]:Q(e,t)))),(e=>[e.blocks.order,e.blockEditingModes,e.settings.templateLock,e.blockListSettings])),J=V(((e,t,n=!1)=>Ie(e,t,n).filter((t=>"disabled"!==Y(e,t)))),(e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]));function ee(e){return e.removalPromptData}function te(e){return e.blockRemovalRules}const ne=[],oe=new Set;function re(e,t){const n=e.blocks.byClientId.get(t),o="core/social-link";if("web"!==c.Platform.OS&&n?.name===o){const n=e.blocks.attributes.get(t),{service:r}=null!=n?n:{};return r?`${o}-${r}`:o}return n?n.name:null}function le(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function ie(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function ae(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const se=V(((e,t)=>e.blocks.byClientId.has(t)?{...e.blocks.byClientId.get(t),attributes:ie(e,t)}:null),((e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function ce(e,t){const n=t&&ln(e,t)?"controlled||"+t:t||"";return e.blocks.tree.get(n)?.innerBlocks||ne}const ue=V(((e,t)=>($()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:de(e,t)})),(e=>[e.blocks.order])),de=V(((e,t="")=>($()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),Xe(e,t).map((t=>ue(e,t))))),(e=>[e.blocks.order])),pe=V(((e,t)=>{const n=[];for(const o of t)for(const t of Xe(e,o))n.push(t,...pe(e,[t]));return n}),(e=>[e.blocks.order])),me=V((e=>{const t=[];for(const n of Xe(e))t.push(n,...pe(e,[n]));return t}),(e=>[e.blocks.order])),fe=V(((e,t)=>{const n=me(e);return t?n.reduce(((n,o)=>e.blocks.byClientId.get(o).name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),ge=V(((e,t)=>{if(!t)return ne;const n=Array.isArray(t)?t:[t],o=me(e).filter((t=>{const o=e.blocks.byClientId.get(t);return n.includes(o.name)}));return o.length>0?o:ne}),(e=>[e.blocks.order,e.blocks.byClientId])),he=V(((e,t)=>(Array.isArray(t)?t:[t]).map((t=>ae(e,t)))),((e,t)=>(Array.isArray(t)?t:[t]).map((t=>e.blocks.tree.get(t))))),be=V(((e,t)=>he(e,t).filter(Boolean).map((e=>e.name))),((e,t)=>he(e,t)));function ve(e,t){return Xe(e,t).length}function _e(e){return e.selection.selectionStart}function ke(e){return e.selection.selectionEnd}function ye(e){return e.selection.selectionStart.clientId}function Ee(e){return e.selection.selectionEnd.clientId}function we(e){const t=Oe(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function Se(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function Ce(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function xe(e){const t=Ce(e);return t?ae(e,t):null}function Be(e,t){return e.blocks.parents.has(t)?e.blocks.parents.get(t):null}const Ie=V(((e,t,n=!1)=>{const o=[];let r=t;for(;e.blocks.parents.get(r);)r=e.blocks.parents.get(r),o.push(r);return o.length?n?o:o.reverse():ne}),(e=>[e.blocks.parents])),Te=V(((e,t,n,o=!1)=>{const r=Ie(e,t,o),l=Array.isArray(n)?e=>n.includes(e):e=>n===e;return r.filter((t=>l(re(e,t))))}),(e=>[e.blocks.parents]));function Me(e,t){let n,o=t;do{n=o,o=e.blocks.parents.get(o)}while(o);return n}function Pe(e,t){const n=Ce(e),o=[...Ie(e,t),t],r=[...Ie(e,n),n];let l;const i=Math.min(o.length,r.length);for(let e=0;e<i&&o[e]===r[e];e++)l=o[e];return l}function Ne(e,t,n=1){if(void 0===t&&(t=Ce(e)),void 0===t&&(t=n<0?Ve(e):Fe(e)),!t)return null;const o=Be(e,t);if(null===o)return null;const{order:r}=e.blocks,l=r.get(o),i=l.indexOf(t)+1*n;return i<0||i===l.length?null:l[i]}function Le(e,t){return Ne(e,t,-1)}function Re(e,t){return Ne(e,t,1)}function Ae(e){return e.initialPosition}const De=V((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return ne;if(t.clientId===n.clientId)return[t.clientId];const o=Be(e,t.clientId);if(null===o)return ne;const r=Xe(e,o),l=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return l>i?r.slice(i,l+1):r.slice(l,i+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function Oe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?ne:De(e)}const ze=V((e=>{const t=Oe(e);return t.length?t.map((t=>ae(e,t))):ne}),(e=>[...De.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function Ve(e){return Oe(e)[0]||null}function Fe(e){const t=Oe(e);return t[t.length-1]||null}function He(e,t){return Ve(e)===t}function Ge(e,t){return-1!==Oe(e).indexOf(t)}const Ue=V(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=Be(e,n),o=Ge(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function $e(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function je(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function We(e){const t=_e(e),n=ke(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Ke(e){const t=_e(e),n=ke(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function qe(e){return De(e).some((t=>{const n=re(e,t);return!(0,a.getBlockType)(n).merge}))}function Ze(e,t){const n=_e(e),o=ke(e);if(n.clientId===o.clientId)return!1;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return!1;const r=Be(e,n.clientId);if(r!==Be(e,o.clientId))return!1;const l=Xe(e,r);let i,s;l.indexOf(n.clientId)>l.indexOf(o.clientId)?(i=o,s=n):(i=n,s=o);const c=t?s.clientId:i.clientId,u=t?i.clientId:s.clientId,d=re(e,c);if(!(0,a.getBlockType)(d).merge)return!1;const p=ae(e,u);if(p.name===d)return!0;const m=(0,a.switchToBlockType)(p,d);return m&&m.length}const Ye=e=>{const t=_e(e),n=ke(e);if(t.clientId===n.clientId)return ne;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return ne;const o=Be(e,t.clientId);if(o!==Be(e,n.clientId))return ne;const r=Xe(e,o),l=r.indexOf(t.clientId),i=r.indexOf(n.clientId),[s,c]=l>i?[n,t]:[t,n],u=ae(e,s.clientId),d=(0,a.getBlockType)(u.name),p=ae(e,c.clientId),m=(0,a.getBlockType)(p.name),f=u.attributes[s.attributeKey],g=p.attributes[c.attributeKey],h=d.attributes[s.attributeKey],b=m.attributes[c.attributeKey];let v=(0,G.create)({html:f,...j(h)}),_=(0,G.create)({html:g,...j(b)});return v=(0,G.remove)(v,0,s.offset),_=(0,G.remove)(_,c.offset,_.text.length),[{...u,attributes:{...u.attributes,[s.attributeKey]:(0,G.toHTMLString)({value:v,...j(h)})}},{...p,attributes:{...p.attributes,[c.attributeKey]:(0,G.toHTMLString)({value:_,...j(b)})}}]};function Xe(e,t){return e.blocks.order.get(t||"")||ne}function Qe(e,t){return Xe(e,Be(e,t)).indexOf(t)}function Je(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function et(e,t,n=!1){return Xe(e,t).some((t=>Je(e,t)||Ge(e,t)||n&&et(e,t,n)))}function tt(e,t,n=!1){return Xe(e,t).some((t=>ut(e,t)||n&&tt(e,t,n)))}function nt(e,t){if(!t)return!1;const n=Oe(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function ot(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function rt(e){return e.isMultiSelecting}function lt(e){return e.isSelectionEnabled}function it(e,t){return e.blocksMode[t]||"visual"}function at(e){return e.isTyping}function st(e){return!!e.draggedBlocks.length}function ct(e){return e.draggedBlocks}function ut(e,t){return e.draggedBlocks.includes(t)}function dt(e,t){if(!st(e))return!1;return Ie(e,t).some((t=>ut(e,t)))}function pt(){return $()('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const mt=V((e=>{let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:l}=r;return l?(t=Be(e,l)||void 0,n=Qe(e,r.clientId)+1):n=Xe(e).length,{rootClientId:t,index:n}}),(e=>[e.insertionPoint,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function ft(e){return null!==e.insertionPoint}function gt(e){return e.template.isValid}function ht(e){return e.settings.template}function bt(e,t){var n,o;return t?null!==(n=jt(e,t)?.templateLock)&&void 0!==n&&n:null!==(o=e.settings.templateLock)&&void 0!==o&&o}const vt=(e,t,n=null)=>"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,_t=(e,t,n=null)=>{let o;if(t&&"object"==typeof t?(o=t,t=o.name):o=(0,a.getBlockType)(t),!o)return!1;const{allowedBlockTypes:r}=Wt(e);if(!vt(r,t,!0))return!1;if(!!bt(e,n))return!1;if("disabled"===Y(e,null!=n?n:""))return!1;const l=jt(e,n);if(n&&void 0===l)return!1;const i=l?.allowedBlocks,c=vt(i,t),u=o.parent,d=re(e,n),p=vt(u,d);let m=!0;const f=o.ancestor;if(f){m=[n,...Ie(e,n)].some((t=>vt(f,re(e,t))))}const g=m&&(null===c&&null===p||!0===c||!0===p);return g?(0,s.applyFilters)("blockEditor.__unstableCanInsertBlockType",g,o,n,{getBlock:ae.bind(null,e),getBlockParentsByBlockName:Te.bind(null,e)}):g},kt=V(_t,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId.get(n),e.settings.allowedBlockTypes,e.settings.templateLock,e.blockEditingModes]));function yt(e,t,n=null){return t.every((t=>kt(e,re(e,t),n)))}function Et(e,t,n=null){const o=ie(e,t);return null===o||(void 0!==o.lock?.remove?!o.lock.remove:!bt(e,n)&&"disabled"!==Y(e,n))}function wt(e,t,n=null){return t.every((t=>Et(e,t,n)))}function St(e,t,n=null){const o=ie(e,t);return null===o||(void 0!==o.lock?.move?!o.lock.move:"all"!==bt(e,n)&&"disabled"!==Y(e,n))}function Ct(e,t,n=null){return t.every((t=>St(e,t,n)))}function xt(e,t){const n=ie(e,t);if(null===n)return!0;const{lock:o}=n;return!o?.edit}function Bt(e,t){return!!(0,a.hasBlockSupport)(t,"lock",!0)&&!!e.settings?.canLockBlocks}function It(e,t){var n;return null!==(n=e.preferences.insertUsage?.[t])&&void 0!==n?n:null}const Tt=(e,t,n)=>!!(0,a.hasBlockSupport)(t,"inserter",!0)&&_t(e,t.name,n),Mt=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},Pt=(e,{buildScope:t="inserter"})=>n=>{const o=n.name;let r=!1;(0,a.hasBlockSupport)(n.name,"multiple",!0)||(r=he(e,me(e)).some((({name:e})=>e===n.name)));const{time:l,count:i=0}=It(e,o)||{},s={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:Mt(l,i)};if("transform"===t)return s;const c=(0,a.getBlockVariations)(n.name,"inserter");return{...s,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:c,example:n.example,utility:1}},Nt=V(((e,t=null)=>{const n=/^\s*<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,o=_t(e,"core/block",t)?Jt(e).filter((e=>"fully"===e.wp_pattern_sync_status||""===e.wp_pattern_sync_status||!e.wp_pattern_sync_status)).map((t=>{let o=H;if("web"===c.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(n);if(e){const[,,t="core/",n]=e,r=(0,a.getBlockType)(t+n);r&&(o=r.icon)}}const r=`core/block/${t.id}`,{time:l,count:i=0}=It(e,r)||{},s=Mt(l,i);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:o,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:s,content:t.content.raw}})):[],r=Pt(e,{buildScope:"inserter"}),l=(0,a.getBlockTypes)().filter((n=>Tt(e,n,t))).map(r).reduce(((t,n)=>{const{variations:o=[]}=n;if(o.some((({isDefault:e})=>e))||t.push(n),o.length){const r=((e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:l=0}=It(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:Mt(r,l)}})(e,n);t.push(...o.map(r))}return t}),[]),{core:i,noncore:s}=l.reduce(((e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e}),{core:[],noncore:[]});return[...[...i,...s],...o]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Jt(e),(0,a.getBlockTypes)()])),Lt=V(((e,t,n=null)=>{const o=Array.isArray(t)?t:[t],r=Pt(e,{buildScope:"transform"}),l=(0,a.getBlockTypes)().filter((t=>Tt(e,t,n))).map(r),i=Object.fromEntries(Object.entries(l).map((([,e])=>[e.name,e]))),s=(0,a.getPossibleBlockTransformations)(o).reduce(((e,t)=>(i[t?.name]&&e.push(i[t.name]),e)),[]);return K(s,(e=>i[e.name].frecency),"desc")}),((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,(0,a.getBlockTypes)()])),Rt=V(((e,t=null)=>{if((0,a.getBlockTypes)().some((n=>Tt(e,n,t))))return!0;return _t(e,"core/block",t)&&Jt(e).length>0}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Jt(e),(0,a.getBlockTypes)()])),At=V(((e,t=null)=>{if(t)return(0,a.getBlockTypes)().filter((n=>Tt(e,n,t)))}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,(0,a.getBlockTypes)()])),Dt=V(((e,t=null)=>($()('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),At(e,t))),((e,t)=>[...At.getDependants(e,t)])),Ot=V(((e,t=null)=>{if(!t)return;const n=e.blockListSettings[t]?.__experimentalDefaultBlock,o=e.blockListSettings[t]?.__experimentalDirectInsert;return n&&o?"function"==typeof o?o(ae(e,t))?n:null:n:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree.get(t)]));function zt(e){var t;return(null!==(t=e?.settings?.__experimentalReusableBlocks)&&void 0!==t?t:ne).filter((e=>"unsynced"===e.wp_pattern_sync_status)).map((e=>({name:`core/block/${e.id}`,title:e.title.raw,categories:["custom"],content:e.content.raw})))}const Vt=V(((e,t)=>{const n=[...e.settings.__experimentalBlockPatterns,...zt(e)].find((({name:e})=>e===t));return n?{...n,blocks:(0,a.parse)(n.content,{__unstableSkipMigrationLogs:!0})}:null}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks])),Ft=V((e=>{const t=e.settings.__experimentalBlockPatterns,n=zt(e),{allowedBlockTypes:o}=Wt(e),r=[...t,...n].filter((({inserter:e=!0})=>!!e)).map((({name:t})=>Vt(e,t))),l=r.filter((({blocks:e})=>((e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){const e=n.shift();if(!vt(t,e.name||e.blockName,!0))return!1;e.innerBlocks?.forEach((e=>{n.push(e)}))}return!0})(e,o)));return l}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks,e.settings.allowedBlockTypes])),Ht=V(((e,t=null)=>{const n=Ft(e).filter((({blocks:n})=>n.every((({name:n})=>kt(e,n,t)))));return n}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId.get(t)])),Gt=V(((e,t,n=null)=>{if(!t)return ne;const o=Ht(e,n),r=Array.isArray(t)?t:[t],l=o.filter((e=>e?.blockTypes?.some?.((e=>r.includes(e)))));return 0===l.length?ne:l}),((e,t,n)=>[...Ht.getDependants(e,n)])),Ut=V(((e,t,n=null)=>($()('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),Gt(e,t,n))),((e,t,n)=>[...Ht.getDependants(e,n)])),$t=V(((e,t,n=null)=>{if(!t)return ne;if(t.some((({clientId:t,innerBlocks:n})=>n.length||ln(e,t))))return ne;const o=Array.from(new Set(t.map((({name:e})=>e))));return Gt(e,o,n)}),((e,t,n)=>[...Gt.getDependants(e,n)]));function jt(e,t){return e.blockListSettings[t]}function Wt(e){return e.settings}function Kt(e){return e.settings.behaviors}function qt(e){return e.blocks.isPersistentChange}const Zt=V(((e,t=[])=>t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})),(e=>[e.blockListSettings])),Yt=V(((e,t)=>{const n=Jt(e).find((e=>e.id===t));return n?n.title?.raw:null}),(e=>[Jt(e)]));function Xt(e){return e.blocks.isIgnoredChange}function Qt(e){return e.lastBlockAttributesChange}function Jt(e){var t;return null!==(t=e?.settings?.__experimentalReusableBlocks)&&void 0!==t?t:ne}function en(e){return"navigation"===e.editorMode}function tn(e){return e.editorMode}function nn(e){return e.hasBlockMovingClientId}function on(e){return!!e.automaticChangeStatus}function rn(e,t){return e.highlightedBlock===t}function ln(e,t){return!!e.blocks.controlledInnerBlocks[t]}const an=V(((e,t)=>{if(!t.length)return null;const n=Ce(e);if(t.includes(re(e,n)))return n;const o=Oe(e),r=Te(e,n||o[0],t);return r?r[r.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function sn(e,t,n){const{lastBlockInserted:o}=e;return o.clientIds?.includes(t)&&o.source===n}function cn(e,t){var n;return null===(n=e.blockVisibility?.[t])||void 0===n||n}const un=V((e=>{const t=new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])));return 0===t.size?oe:t}),(e=>[e.blockVisibility])),dn=V(((e,t)=>{let n,o=t;for(;e.blocks.parents.has(o);)o=e.blocks.parents.get(o),o&&"contentOnly"===bt(e,o)&&(n=o);return n}),(e=>[e.blocks.parents,e.blockListSettings]));function pn(e){return e.temporarilyEditingAsBlocks}function mn(e,t){if("default"!==Y(e,t))return!1;if(!xt(e,t))return!0;const n=tn(e);if("zoom-out"===n&&t&&!Be(e,t))return!0;const o=(0,a.hasBlockSupport)(re(e,t),"__experimentalDisableBlockOverlay",!1);return("navigation"===n||!o&&ln(e,t))&&!Je(e,t)&&!et(e,t,!0)}function fn(e,t){let n=e.blocks.parents.get(t);for(;n;){if(mn(e,n))return!0;n=e.blocks.parents.get(n)}return!1}const gn=["inserterMediaCategories","blockInspectorAnimation"];function hn(e,t=!1){let n=e;if(t&&"web"===c.Platform.OS){n={};for(const t in e)gn.includes(t)||(n[t]=e[t])}return{type:"UPDATE_SETTINGS",settings:n}}function bn(){return{type:"HIDE_BLOCK_INTERFACE"}}function vn(){return{type:"SHOW_BLOCK_INTERFACE"}}function _n(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function kn(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const yn=(e,t=!0,n=!1)=>({select:o,dispatch:r})=>{if(!e||!e.length)return;var l;l=e,e=Array.isArray(l)?l:[l];const i=o.getBlockRootClientId(e[0]);if(!o.canRemoveBlocks(e,i))return;const a=!n&&o.getBlockRemovalRules();if(a){const n=new Set,l=[...e];for(;l.length;){const e=l.shift(),t=o.getBlockName(e);a[t]&&n.add(t);const r=o.getBlockOrder(e);l.push(...r)}if(n.size)return void r(function(e,t,n){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,blockNamesForPrompt:n}}(e,t,Array.from(n)))}t&&r.selectPreviousBlock(e[0],t),r({type:"REMOVE_BLOCKS",clientIds:e}),r(En())},En=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function wn(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function Sn(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}var Cn=window.wp.a11y;const xn="\86";function Bn(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return"string"==typeof n&&-1!==n.indexOf(xn)}))}const In=e=>Array.isArray(e)?e:[e],Tn=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(Mn(e))},Mn=e=>({select:t,dispatch:n})=>{const o=t.getTemplate(),r=t.getTemplateLock(),l=!o||"all"!==r||(0,a.doBlocksMatchTemplate)(e,o);if(l!==t.isValidTemplate())return n.setTemplateValidity(l),l};function Pn(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Nn(e){return $()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Ln(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:In(e),attributes:t,uniqueByBlock:n}}function Rn(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function An(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const Dn=(e,t=!1)=>({select:n,dispatch:o})=>{const r=n.getPreviousBlockClientId(e);if(r)o.selectBlock(r,-1);else if(t){const t=n.getBlockRootClientId(e);t&&o.selectBlock(t,-1)}},On=e=>({select:t,dispatch:n})=>{const o=t.getNextBlockClientId(e);o&&n.selectBlock(o)};function zn(){return{type:"START_MULTI_SELECT"}}function Vn(){return{type:"STOP_MULTI_SELECT"}}const Fn=(e,t,n=0)=>({select:o,dispatch:r})=>{if(o.getBlockRootClientId(e)!==o.getBlockRootClientId(t))return;r({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const l=o.getSelectedBlockCount();(0,Cn.speak)((0,v.sprintf)((0,v._n)("%s block selected.","%s blocks selected.",l),l),"assertive")};function Hn(){return{type:"CLEAR_SELECTED_BLOCK"}}function Gn(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Un(e,t){var n;const o=null!==(n=t?.__experimentalPreferredStyleVariations?.value)&&void 0!==n?n:{};return e.map((e=>{const t=e.name;if(!(0,a.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!o[t])return e;const n=e.attributes?.className;if(n?.includes("is-style-"))return e;const{attributes:r={}}=e,l=o[t];return{...e,attributes:{...r,className:`${n||""} is-style-${l}`.trim()}}}))}const $n=(e,t,n,o=0,r)=>({select:l,dispatch:i})=>{e=In(e),t=Un(In(t),l.getSettings());const a=l.getBlockRootClientId(e[0]);for(let e=0;e<t.length;e++){const n=t[e];if(!l.canInsertBlockType(n.name,a))return}i({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),i(En())};function jn(e,t){return $n(e,t)}const Wn=e=>(t,n)=>({select:o,dispatch:r})=>{o.canMoveBlocks(t,n)&&r({type:e,clientIds:In(t),rootClientId:n})},Kn=Wn("MOVE_BLOCKS_DOWN"),qn=Wn("MOVE_BLOCKS_UP"),Zn=(e,t="",n="",o)=>({select:r,dispatch:l})=>{if(r.canMoveBlocks(e,t)){if(t!==n){if(!r.canRemoveBlocks(e,t))return;if(!r.canInsertBlocks(e,n))return}l({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}};function Yn(e,t="",n="",o){return Zn([e],t,n,o)}function Xn(e,t,n,o,r){return Qn([e],t,n,o,0,r)}const Qn=(e,t,n,o=!0,r=0,l)=>({select:i,dispatch:a})=>{null!==r&&"object"==typeof r&&(l=r,r=0,$()("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=Un(In(e),i.getSettings());const s=[];for(const t of e){i.canInsertBlockType(t.name,n)&&s.push(t)}s.length&&a({type:"INSERT_BLOCKS",blocks:s,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:l})};function Jn(e,t,n={}){const{__unstableWithInserter:o,operation:r}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o,operation:r}}const eo=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function to(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const no=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=e.getBlocks(),o=e.getTemplate(),r=(0,a.synchronizeBlocksWithTemplate)(n,o);t.resetBlocks(r)},oo=e=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),l=n.getSelectionEnd();if(r.clientId===l.clientId)return;if(!r.attributeKey||!l.attributeKey||void 0===r.offset||void 0===l.offset)return!1;const i=n.getBlockRootClientId(r.clientId);if(i!==n.getBlockRootClientId(l.clientId))return;const s=n.getBlockOrder(i);let c,u;s.indexOf(r.clientId)>s.indexOf(l.clientId)?(c=l,u=r):(c=r,u=l);const d=e?u:c,p=n.getBlock(d.clientId),m=(0,a.getBlockType)(p.name);if(!m.merge)return;const f=c,g=u,h=n.getBlock(f.clientId),b=(0,a.getBlockType)(h.name),v=n.getBlock(g.clientId),_=(0,a.getBlockType)(v.name),k=h.attributes[f.attributeKey],y=v.attributes[g.attributeKey],E=b.attributes[f.attributeKey],w=_.attributes[g.attributeKey];let S=(0,G.create)({html:k,...j(E)}),C=(0,G.create)({html:y,...j(w)});S=(0,G.remove)(S,f.offset,S.text.length),C=(0,G.insert)(C,xn,0,g.offset);const x=(0,a.cloneBlock)(h,{[f.attributeKey]:(0,G.toHTMLString)({value:S,...j(E)})}),B=(0,a.cloneBlock)(v,{[g.attributeKey]:(0,G.toHTMLString)({value:C,...j(w)})}),I=e?x:B,T=h.name===v.name?[I]:(0,a.switchToBlockType)(I,m.name);if(!T||!T.length)return;let M;if(e){const e=T.pop();M=m.merge(e.attributes,B.attributes)}else{const e=T.shift();M=m.merge(x.attributes,e.attributes)}const P=Bn(M),N=M[P],L=(0,G.create)({html:N,...j(m.attributes[P])}),R=L.text.indexOf(xn),A=(0,G.remove)(L,R,R+1),D=(0,G.toHTMLString)({value:A,...j(m.attributes[P])});M[P]=D;const O=n.getSelectedBlockClientIds(),z=[...e?T:[],{...p,attributes:{...p.attributes,...M}},...e?[]:T];t.batch((()=>{o.selectionChange(p.clientId,P,R,R),o.replaceBlocks(O,z,0,n.getSelectedBlocksInitialCaretPosition())}))},ro=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();if(n.clientId===o.clientId)return;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return;const r=e.getBlockRootClientId(n.clientId);if(r!==e.getBlockRootClientId(o.clientId))return;const l=e.getBlockOrder(r);let i,s;l.indexOf(n.clientId)>l.indexOf(o.clientId)?(i=o,s=n):(i=n,s=o);const c=i,u=s,d=e.getBlock(c.clientId),p=(0,a.getBlockType)(d.name),m=e.getBlock(u.clientId),f=(0,a.getBlockType)(m.name),g=d.attributes[c.attributeKey],h=m.attributes[u.attributeKey],b=p.attributes[c.attributeKey],v=f.attributes[u.attributeKey];let _=(0,G.create)({html:g,...j(b)}),k=(0,G.create)({html:h,...j(v)});_=(0,G.remove)(_,c.offset,_.text.length),k=(0,G.remove)(k,0,u.offset),t.replaceBlocks(e.getSelectedBlockClientIds(),[{...d,attributes:{...d.attributes,[c.attributeKey]:(0,G.toHTMLString)({value:_,...j(b)})}},(0,a.createBlock)((0,a.getDefaultBlockName)()),{...m,attributes:{...m.attributes,[u.attributeKey]:(0,G.toHTMLString)({value:k,...j(v)})}}],1,e.getSelectedBlocksInitialCaretPosition())},lo=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:o.clientId}})},io=(e,t)=>({registry:n,select:o,dispatch:r})=>{const l=[e,t];r({type:"MERGE_BLOCKS",blocks:l});const[i,s]=l,c=o.getBlock(i),u=(0,a.getBlockType)(c.name);if(!u)return;const d=o.getBlock(s);if(u&&!u.merge){const e=(0,a.switchToBlockType)(d,u.name);if(1!==e?.length)return void r.selectBlock(c.clientId);const[t]=e;return t.innerBlocks.length<1?void r.selectBlock(c.clientId):void n.batch((()=>{r.insertBlocks(t.innerBlocks,void 0,i),r.removeBlock(s),r.selectBlock(t.innerBlocks[0].clientId)}))}const p=(0,a.getBlockType)(d.name),{clientId:m,attributeKey:f,offset:g}=o.getSelectionStart(),h=(m===i?u:p).attributes[f],b=(m===i||m===s)&&void 0!==f&&void 0!==g&&!!h;h||("number"==typeof f?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof f):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const v=(0,a.cloneBlock)(c),_=(0,a.cloneBlock)(d);if(b){const e=m===i?v:_,t=e.attributes[f],n=(0,G.insert)((0,G.create)({html:t,...j(h)}),xn,g,g);e.attributes[f]=(0,G.toHTMLString)({value:n,...j(h)})}const k=c.name===d.name?[_]:(0,a.switchToBlockType)(_,c.name);if(!k||!k.length)return;const y=u.merge(v.attributes,k[0].attributes);if(b){const e=Bn(y),t=y[e],n=(0,G.create)({html:t,...j(u.attributes[e])}),o=n.text.indexOf(xn),l=(0,G.remove)(n,o,o+1),i=(0,G.toHTMLString)({value:l,...j(u.attributes[e])});y[e]=i,r.selectionChange(c.clientId,e,o,o)}r.replaceBlocks([c.clientId,d.clientId],[{...c,attributes:{...c.attributes,...y}},...k.slice(1)],0)},ao=(e,t=!0)=>yn(e,t);function so(e,t){return ao([e],t)}function co(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function uo(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function po(){return{type:"START_TYPING"}}function mo(){return{type:"STOP_TYPING"}}function fo(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function go(){return{type:"STOP_DRAGGING_BLOCKS"}}function ho(){return $()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function bo(){return $()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function vo(e,t,n,o){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const _o=(e,t,n)=>({dispatch:o})=>{const r=(0,a.getDefaultBlockName)();if(!r)return;const l=(0,a.createBlock)(r,e);return o.insertBlock(l,n,t)};function ko(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function yo(e){return hn(e,!0)}function Eo(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function wo(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function So(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const Co=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t((()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},xo=(e=!0)=>({dispatch:t})=>{t.__unstableSetEditorMode(e?"navigation":"edit")},Bo=e=>({dispatch:t,select:n})=>{if("zoom-out"===e){const e=n.getBlockSelectionStart();e&&t.selectBlock(n.getBlockHierarchyRootClientId(e))}t({type:"SET_EDITOR_MODE",mode:e}),"navigation"===e?(0,Cn.speak)((0,v.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):"edit"===e?(0,Cn.speak)((0,v.__)("You are currently in edit mode. To return to the navigation mode, press Escape.")):"zoom-out"===e&&(0,Cn.speak)((0,v.__)("You are currently in zoom-out mode."))},Io=(e=null)=>({dispatch:t})=>{t({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&(0,Cn.speak)((0,v.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))},To=(e,t=!0)=>({select:n,dispatch:o})=>{if(!e||!e.length)return;const r=n.getBlocksByClientId(e);if(r.some((e=>!e)))return;const l=r.map((e=>e.name));if(l.some((e=>!(0,a.hasBlockSupport)(e,"multiple",!0))))return;const i=n.getBlockRootClientId(e[0]),s=In(e),c=n.getBlockIndex(s[s.length-1]),u=r.map((e=>(0,a.__experimentalCloneSanitizedBlock)(e)));return o.insertBlocks(u,c+1,i,t),u.length>1&&t&&o.multiSelect(u[0].clientId,u[u.length-1].clientId),u.map((e=>e.clientId))},Mo=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e);return n.insertDefaultBlock({},o,r)},Po=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e);return n.insertDefaultBlock({},o,r+1)};function No(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const Lo=e=>async({dispatch:t})=>{t(No(e,!0)),await new Promise((e=>setTimeout(e,150))),t(No(e,!1))};function Ro(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function Ao(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function Do(e){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e}}const Oo="core/block-editor";var zo=window.wp.privateApis;const{lock:Vo,unlock:Fo}=(0,zo.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/block-editor"),Ho={reducer:A,selectors:t,actions:l},Go=(0,f.createReduxStore)(Oo,{...Ho,persist:["preferences"]}),Uo=(0,f.registerStore)(Oo,{...Ho,persist:["preferences"]});Fo(Uo).registerPrivateActions(r),Fo(Uo).registerPrivateSelectors(e),Fo(Go).registerPrivateActions(r),Fo(Go).registerPrivateSelectors(e);const $o={name:"",isSelected:!1},jo=(0,c.createContext)($o),{Provider:Wo}=jo;function Ko(){return(0,c.useContext)(jo)}function qo(){const{isSelected:e,clientId:t,name:n}=Ko();return(0,f.useSelect)((o=>{if(e)return!0;const{getBlockName:r,isFirstMultiSelectedBlock:l,getMultiSelectedBlockClientIds:i}=o(Go);return!!l(t)&&i().every((e=>r(e)===n))}),[t,e,n])}function Zo({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:o=!1}){const r=function(e,t){const n=qo(),{clientId:o}=Ko(),r=(0,f.useSelect)((e=>{const{getBlockName:n,hasSelectedInnerBlock:r}=e(Go),{hasBlockSupport:l}=e(a.store);return t&&l(n(o),"__experimentalExposeControlsToChildren",!1)&&r(o)}),[t,o]);return n?g[e]?.Fill:r?g.parent.Fill:null}(e,o);if(!r)return null;const l=(0,c.createElement)(c.Fragment,null,"default"===e&&(0,c.createElement)(m.ToolbarGroup,{controls:t}),n);return(0,c.createElement)(m.__experimentalStyleProvider,{document:document},(0,c.createElement)(r,null,(e=>{const{forwardedContext:t=[]}=e;return t.reduce(((e,[t,n])=>(0,c.createElement)(t,{...n},e)),l)})))}window.wp.warning;const{ComponentsContext:Yo}=Fo(m.privateApis);function Xo({group:e="default",...t}){const n=(0,c.useContext)(m.__experimentalToolbarContext),o=(0,c.useContext)(Yo),r=(0,c.useMemo)((()=>({forwardedContext:[[m.__experimentalToolbarContext.Provider,{value:n}],[Yo.Provider,{value:o}]]})),[n,o]),l=g[e]?.Slot,i=(0,m.__experimentalUseSlotFills)(l?.__unstableName);if(!l)return"undefined"!=typeof process&&process.env,null;if(!i?.length)return null;const a=(0,c.createElement)(l,{...t,bubblesVirtually:!0,fillProps:r});return"default"===e?a:(0,c.createElement)(m.ToolbarGroup,null,a)}const Qo=Zo;Qo.Slot=Xo;const Jo=e=>(0,c.createElement)(Zo,{group:"inline",...e});Jo.Slot=e=>(0,c.createElement)(Xo,{group:"inline",...e});var er=Qo;var tr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"}));var nr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"}));var or=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"}));var rr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"}));var lr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"}));var ir=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}));var ar=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"}));const sr={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child:first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child:last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child:first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child:last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > *",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > *",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function cr(e,t=""){return e.split(",").map((e=>`.editor-styles-wrapper ${e}${t?` ${t}`:""}`)).join(",")}function ur(e,t=sr,n,o){let r="";return t?.[n]?.spacingStyles?.length&&o&&t[n].spacingStyles.forEach((t=>{r+=`${cr(e,t.selector.trim())} { `,r+=Object.entries(t.rules).map((([e,t])=>`${e}: ${t||o}`)).join("; "),r+="; }"})),r}function dr(e){const{contentSize:t,wideSize:n,type:o="default"}=e,r={},l=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;return l.test(t)&&"constrained"===o&&(r.none=(0,v.sprintf)((0,v.__)("Max %s wide"),t)),l.test(n)&&(r.wide=(0,v.sprintf)((0,v.__)("Max %s wide"),n)),r}var pr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM7 20.5h10V19H7v1.5zM19 7v10h1.5V7H19zM7 5h10V3.5H7V5z",style:{fill:"#1e1e1e"}}));var mr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M8.2 5.3h8V3.8h-8v1.5zm0 14.5h8v-1.5h-8v1.5zm3.5-6.5h1v-1h-1v1zm1-6.5h-1v.5h1v-.5zm-1 4.5h1v-1h-1v1zm0-2h1v-1h-1v1zm0 7.5h1v-.5h-1v.5zm1-2.5h-1v1h1v-1zm-8.5 1.5h1.5v-8H4.2v8zm14.5-8v8h1.5v-8h-1.5zm-5 4.5v-1h-1v1h1zm-6.5 0h.5v-1h-.5v1zm3.5-1v1h1v-1h-1zm6 1h.5v-1h-.5v1zm-8-1v1h1v-1h-1zm6 0v1h1v-1h-1z",style:{fill:"#1e1e1e",fillRule:"evenodd",clipRule:"evenodd"}}));var fr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM19 7v10h1.5V7H19z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(F.Path,{d:"M7 20.5h10V19H7v1.5zm0-17V5h10V3.5H7z",style:{fill:"#1e1e1e",opacity:.1}}));var gr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM19 7v10h1.5V7H19z",style:{fill:"#1e1e1e",opacity:.1}}),(0,c.createElement)(F.Path,{d:"M7 20.5h10V19H7v1.5zm0-17V5h10V3.5H7z",style:{fill:"#1e1e1e"}}));var hr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM7 20.5h10V19H7v1.5zM19 7v10h1.5V7H19z",style:{fill:"#1e1e1e",opacity:.1}}),(0,c.createElement)(F.Path,{d:"M7 5h10V3.5H7V5z",style:{fill:"#1e1e1e"}}));var br=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20.5 7H19v10h1.5V7z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM7 20.5h10V19H7v1.5zm0-17V5h10V3.5H7z",style:{fill:"#1e1e1e",opacity:.1}}));var vr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7 20.5h10V19H7v1.5z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM19 7v10h1.5V7H19zM7 5h10V3.5H7V5z",style:{fill:"#1e1e1e",opacity:.1}}));const _r=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M5 17H3.5V7H5v10z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(F.Path,{d:"M7 20.5h10V19H7v1.5zM19 7v10h1.5V7H19zM7 5h10V3.5H7V5z",style:{fill:"#1e1e1e",opacity:.1}}));const kr=["top","right","bottom","left"],yr={top:void 0,right:void 0,bottom:void 0,left:void 0},Er={custom:pr,axial:mr,horizontal:fr,vertical:gr,top:hr,right:br,bottom:vr,left:_r},wr={default:(0,v.__)("Spacing control"),top:(0,v.__)("Top"),bottom:(0,v.__)("Bottom"),left:(0,v.__)("Left"),right:(0,v.__)("Right"),mixed:(0,v.__)("Mixed"),vertical:(0,v.__)("Vertical"),horizontal:(0,v.__)("Horizontal"),axial:(0,v.__)("Horizontal & vertical"),custom:(0,v.__)("Custom")},Sr={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function Cr(e){return!!e?.includes&&("0"===e||e.includes("var:preset|spacing|"))}function xr(e,t){if(!Cr(e))return e;const n=Tr(e),o=t.find((e=>String(e.slug)===n));return o?.size}function Br(e,t){if(!e||Cr(e)||"0"===e)return e;const n=t.find((t=>String(t.size)===String(e)));return n?.slug?`var:preset|spacing|${n.slug}`:e}function Ir(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function Tr(e){if(!e)return;if("0"===e||"default"===e)return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function Mr(e,t){if(!e||!e.length)return!1;const n=e.includes("horizontal")||e.includes("left")&&e.includes("right"),o=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return"horizontal"===t?n:"vertical"===t?o:n||o}function Pr(e,t="0"){const n=function(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const o=Ir(n?.top)||t,r=Ir(n?.left)||t;return o===r?o:`${o} ${r}`}const Nr=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Lr=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),Rr=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),Ar=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})),Dr=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})),Or={top:{icon:Rr,title:(0,v._x)("Align top","Block vertical alignment setting")},center:{icon:Lr,title:(0,v._x)("Align middle","Block vertical alignment setting")},bottom:{icon:Nr,title:(0,v._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:Ar,title:(0,v._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:Dr,title:(0,v._x)("Space between","Block vertical alignment setting")}},zr=["top","center","bottom"];var Vr=function({value:e,onChange:t,controls:n=zr,isCollapsed:o=!0,isToolbar:r}){const l=Or[e],i=Or.top,a=r?m.ToolbarGroup:m.ToolbarDropdownMenu,s=r?{isCollapsed:o}:{};return(0,c.createElement)(a,{icon:l?l.icon:i.icon,label:(0,v._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map((n=>{return{...Or[n],isActive:e===n,role:o?"menuitemradio":void 0,onClick:(r=n,()=>t(e===r?void 0:r))};var r})),...s})};const Fr=e=>(0,c.createElement)(Vr,{...e,isToolbar:!1}),Hr=e=>(0,c.createElement)(Vr,{...e,isToolbar:!0}),Gr={left:tr,center:nr,right:or,"space-between":rr,stretch:lr};var Ur=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:o,popoverProps:r,isToolbar:l}){const i=e=>{n(e===o?void 0:e)},a=o?Gr[o]:Gr.left,s=[{name:"left",icon:tr,title:(0,v.__)("Justify items left"),isActive:"left"===o,onClick:()=>i("left")},{name:"center",icon:nr,title:(0,v.__)("Justify items center"),isActive:"center"===o,onClick:()=>i("center")},{name:"right",icon:or,title:(0,v.__)("Justify items right"),isActive:"right"===o,onClick:()=>i("right")},{name:"space-between",icon:rr,title:(0,v.__)("Space between items"),isActive:"space-between"===o,onClick:()=>i("space-between")},{name:"stretch",icon:lr,title:(0,v.__)("Stretch items"),isActive:"stretch"===o,onClick:()=>i("stretch")}],u=l?m.ToolbarGroup:m.ToolbarDropdownMenu,d=l?{isCollapsed:t}:{};return(0,c.createElement)(u,{icon:a,popoverProps:r,label:(0,v.__)("Change items justification"),controls:s.filter((t=>e.includes(t.name))),...d})};const $r=e=>(0,c.createElement)(Ur,{...e,isToolbar:!1}),jr=e=>(0,c.createElement)(Ur,{...e,isToolbar:!0});var Wr=window.lodash;const Kr=["color","border","dimensions","typography","spacing"],qr={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},Zr={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"},Yr=e=>Zr[e]||e;function Xr(e){const{name:t,clientId:n}=Ko();return(0,f.useSelect)((o=>{if(Kr.includes(e))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let r=(0,s.applyFilters)("blockEditor.useSetting.before",void 0,e,n,t);if(void 0!==r)return r;const l=Yr(e),i=[n,...o(Go).getBlockParents(n,!0)];for(const e of i){const n=o(Go).getBlockName(e);if((0,a.hasBlockSupport)(n,"__experimentalSettings",!1)){var c;const n=o(Go).getBlockAttributes(e);if(r=null!==(c=(0,Wr.get)(n,`settings.blocks.${t}.${l}`))&&void 0!==c?c:(0,Wr.get)(n,`settings.${l}`),void 0!==r)break}}const u=o(Go).getSettings();if(void 0===r){var d;const e=`__experimentalFeatures.${l}`,n=`__experimentalFeatures.blocks.${t}.${l}`;r=null!==(d=(0,Wr.get)(u,n))&&void 0!==d?d:(0,Wr.get)(u,e)}var p,m;if(void 0!==r)return a.__EXPERIMENTAL_PATHS_WITH_MERGE[l]?null!==(p=null!==(m=r.custom)&&void 0!==m?m:r.theme)&&void 0!==p?p:r.default:r;const f=qr[l]?qr[l](u):void 0;return void 0!==f?f:"typography.dropCap"===l||void 0}),[t,n,e])}const Qr="1600px",Jr="320px",el=1,tl=.25,nl=.75,ol="14px";function rl({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewPortWidth:o=Jr,maximumViewPortWidth:r=Qr,scaleFactor:l=el,minimumFontSizeLimit:i}){if(i=ll(i)?i:ol,n){const o=ll(n);if(!o?.unit)return null;const r=ll(i,{coerceTo:o.unit});if(r?.value&&!e&&!t&&o?.value<=r?.value)return null;if(t||(t=`${o.value}${o.unit}`),!e){const t="px"===o.unit?o.value:16*o.value,n=Math.min(Math.max(1-.075*Math.log2(t),tl),nl),l=il(o.value*n,3);e=r?.value&&l<r?.value?`${r.value}${r.unit}`:`${l}${o.unit}`}}const a=ll(e),s=a?.unit||"rem",c=ll(t,{coerceTo:s});if(!a||!c)return null;const u=ll(e,{coerceTo:"rem"}),d=ll(r,{coerceTo:s}),p=ll(o,{coerceTo:s});if(!d||!p||!u)return null;const m=il(p.value/100,3),f=il(m,3)+s,g=il(((c.value-a.value)/(d.value-p.value)*100||1)*l,3);return`clamp(${e}, ${`${u.value}${u.unit} + ((1vw - ${f}) * ${g})`}, ${t})`}function ll(e,t={}){if("string"!=typeof e&&"number"!=typeof e)return null;isFinite(e)&&(e=`${e}px`);const{coerceTo:n,rootSizeValue:o,acceptableUnits:r}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},l=r?.join("|"),i=new RegExp(`^(\\d*\\.?\\d+)(${l}){1,1}$`),a=e.match(i);if(!a||a.length<3)return null;let[,s,c]=a,u=parseFloat(s);return"px"!==n||"em"!==c&&"rem"!==c||(u*=o,c=n),"px"!==c||"em"!==n&&"rem"!==n||(u/=o,c=n),"em"!==n&&"rem"!==n||"em"!==c&&"rem"!==c||(c=n),{value:il(u,3),unit:c}}function il(e,t=3){const n=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*n)/n):void 0}function al(e,t){const{size:n}=e;if(!sl(t))return n;if(!n||"0"===n||!1===e?.fluid)return n;const o="object"==typeof t?.fluid?t?.fluid:{},r=rl({minimumFontSize:e?.fluid?.min,maximumFontSize:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:o?.minFontSize,maximumViewPortWidth:o?.maxViewPortWidth});return r||n}function sl(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}function cl(e){const t=e?.typography,n=e?.layout;return sl(t)&&n?.wideSize?{fluid:{maxViewPortWidth:n.wideSize,...t.fluid}}:{fluid:t?.fluid}}const ul="body",dl=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>al(e,cl(t)),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}],pl={"color.background":"color","color.text":"color","filter.duotone":"duotone","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.caption.color.text":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",shadow:"shadow","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function ml(e,t,n,o,r){const l=[(0,Wr.get)(e,["blocks",t,...n]),(0,Wr.get)(e,n)];for(const i of l)if(i){const l=["custom","theme","default"];for(const a of l){const l=i[a];if(l){const i=l.find((e=>e[o]===r));if(i){if("slug"===o)return i;return ml(e,t,n,"slug",i.slug)[o]===i[o]?i:void 0}}}}}function fl(e,t,n){if(!n||"string"!=typeof n){if(!n?.ref||"string"!=typeof n?.ref)return n;{const t=n.ref.split(".");if(!(n=(0,Wr.get)(e,t))||n?.ref)return n}}const o="var:",r="var(--wp--";let l;if(n.startsWith(o))l=n.slice(4).split("|");else{if(!n.startsWith(r)||!n.endsWith(")"))return n;l=n.slice(10,-1).split("--")}const[i,...a]=l;return"preset"===i?function(e,t,n,[o,r]){const l=dl.find((e=>e.cssVarInfix===o));if(!l)return n;const i=ml(e.settings,t,l.path,"slug",r);if(i){const{valueKey:n}=l;return fl(e,t,i[n])}return n}(e,t,n,a):"custom"===i?function(e,t,n,o){var r;const l=null!==(r=(0,Wr.get)(e.settings,["blocks",t,"custom",...o]))&&void 0!==r?r:(0,Wr.get)(e.settings,["custom",...o]);return l?fl(e,t,l):n}(e,t,n,a):n}function gl(e,t){const n=e.split(","),o=t.split(","),r=[];return n.forEach((e=>{o.forEach((t=>{r.push(`${e.trim()} ${t.trim()}`)}))})),r.join(", ")}function hl(e,t){return"object"!=typeof e||"object"!=typeof t?e===t:b()(e?.styles,t?.styles)&&b()(e?.settings,t?.settings)}const bl=(0,c.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}}),vl={settings:{},styles:{}},_l=["appearanceTools","useRootPaddingAwareAlignments","border.color","border.radius","border.style","border.width","shadow.presets","shadow.defaultPresets","color.background","color.button","color.caption","color.custom","color.customDuotone","color.customGradient","color.defaultDuotone","color.defaultGradients","color.defaultPalette","color.duotone","color.gradients","color.heading","color.link","color.palette","color.text","custom","dimensions.minHeight","layout.contentSize","layout.definitions","layout.wideSize","position.fixed","position.sticky","spacing.customSpacingSize","spacing.spacingSizes","spacing.spacingScale","spacing.blockGap","spacing.margin","spacing.padding","spacing.units","typography.fluid","typography.customFontSize","typography.dropCap","typography.fontFamilies","typography.fontSizes","typography.fontStyle","typography.fontWeight","typography.letterSpacing","typography.lineHeight","typography.textColumns","typography.textDecoration","typography.textTransform"],kl=()=>{const{user:e,setUserConfig:t}=(0,c.useContext)(bl);return[!!e&&!b()(e,vl),(0,c.useCallback)((()=>t((()=>vl))),[t])]};function yl(e,t,n="all"){const{setUserConfig:o,...r}=(0,c.useContext)(bl),l=t?".blocks."+t:"",i=e?"."+e:"",a=`settings${l}${i}`,s=`settings${i}`,u="all"===n?"merged":n;return[(0,c.useMemo)((()=>{const t=r[u];if(!t)throw"Unsupported source";var n;if(e)return null!==(n=(0,Wr.get)(t,a))&&void 0!==n?n:(0,Wr.get)(t,s);const o={};return _l.forEach((e=>{var n;const r=null!==(n=(0,Wr.get)(t,`settings${l}.${e}`))&&void 0!==n?n:(0,Wr.get)(t,`settings.${e}`);r&&(0,Wr.set)(o,e,r)})),o}),[r,u,e,a,s,l]),e=>{o((t=>{const n=JSON.parse(JSON.stringify(t));return(0,Wr.set)(n,a,e),n}))}]}function El(e,t,n="all",{shouldDecodeEncode:o=!0}={}){const{merged:r,base:l,user:i,setUserConfig:a}=(0,c.useContext)(bl),s=e?"."+e:"",u=t?`styles.blocks.${t}${s}`:`styles${s}`;let d,p;switch(n){case"all":d=(0,Wr.get)(r,u),p=o?fl(r,t,d):d;break;case"user":d=(0,Wr.get)(i,u),p=o?fl(r,t,d):d;break;case"base":d=(0,Wr.get)(l,u),p=o?fl(l,t,d):d;break;default:throw"Unsupported source"}return[p,n=>{a((l=>{const i=JSON.parse(JSON.stringify(l));return(0,Wr.set)(i,u,o?function(e,t,n,o){if(!o)return o;const r=pl[n],l=dl.find((e=>e.cssVarInfix===r));if(!l)return o;const{valueKey:i,path:a}=l,s=ml(e,t,a,i,o);return s?`var:preset|${r}|${s.slug}`:o}(r.settings,t,e,n):n),i}))}]}function wl(e,t,n){const{supportedStyles:o,supports:r}=(0,f.useSelect)((e=>({supportedStyles:Fo(e(a.store)).getSupportedStyles(t,n),supports:e(a.store).getBlockType(t)?.supports})),[t,n]);return(0,c.useMemo)((()=>{const t={...e};return o.includes("fontSize")||(t.typography={...t.typography,fontSizes:{},customFontSize:!1}),o.includes("fontFamily")||(t.typography={...t.typography,fontFamilies:{}}),t.color={...t.color,text:t.color?.text&&o.includes("color"),background:t.color?.background&&(o.includes("background")||o.includes("backgroundColor")),button:t.color?.button&&o.includes("buttonColor"),heading:t.color?.heading&&o.includes("headingColor"),link:t.color?.link&&o.includes("linkColor"),caption:t.color?.caption&&o.includes("captionColor")},o.includes("background")||(t.color.gradients=[],t.color.customGradient=!1),o.includes("filter")||(t.color.defaultDuotone=!1,t.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textTransform","textDecoration"].forEach((e=>{o.includes(e)||(t.typography={...t.typography,[e]:!1})})),o.includes("columnCount")||(t.typography={...t.typography,textColumns:!1}),["contentSize","wideSize"].forEach((e=>{o.includes(e)||(t.layout={...t.layout,[e]:!1})})),["padding","margin","blockGap"].forEach((e=>{o.includes(e)||(t.spacing={...t.spacing,[e]:!1});const n=Array.isArray(r?.spacing?.[e])?r?.spacing?.[e]:r?.spacing?.[e]?.sides;n?.length&&t.spacing?.[e]&&(t.spacing={...t.spacing,[e]:{...t.spacing?.[e],sides:n}})})),o.includes("minHeight")||(t.dimensions={...t.dimensions,minHeight:!1}),["radius","color","style","width"].forEach((e=>{o.includes("border"+e.charAt(0).toUpperCase()+e.slice(1))||(t.border={...t.border,[e]:!1})})),t.shadow=!!o.includes("shadow")&&t.shadow,t}),[e,o,r])}function Sl(e){const t=e?.color?.palette?.custom,n=e?.color?.palette?.theme,o=e?.color?.palette?.default,r=e?.color?.defaultPalette;return(0,c.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,v._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&e.push({name:(0,v._x)("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&e.push({name:(0,v._x)("Custom","Indicates this palette is created by the user."),colors:t}),e}),[t,n,o,r])}function Cl(e){const t=e?.color?.gradients?.custom,n=e?.color?.gradients?.theme,o=e?.color?.gradients?.default,r=e?.color?.defaultGradients;return(0,c.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,v._x)("Theme","Indicates this palette comes from the theme."),gradients:n}),r&&o&&o.length&&e.push({name:(0,v._x)("Default","Indicates this palette comes from WordPress."),gradients:o}),t&&t.length&&e.push({name:(0,v._x)("Custom","Indicates this palette is created by the user."),gradients:t}),e}),[t,n,o,r])}var xl=function(){return xl=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},xl.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function Bl(e){return e.toLowerCase()}var Il=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Tl=/[^A-Z0-9]+/gi;function Ml(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?Il:n,r=t.stripRegexp,l=void 0===r?Tl:r,i=t.transform,a=void 0===i?Bl:i,s=t.delimiter,c=void 0===s?" ":s,u=Pl(Pl(e,o,"$1\0$2"),l,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(a).join(c)}function Pl(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function Nl(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),Ml(e,xl({delimiter:"."},t))}(e,xl({delimiter:"-"},t))}function Ll(e){let t=e;var n;"string"!=typeof e&&(t=null!==(n=e?.toString?.())&&void 0!==n?n:"");return t=t.replace(/['\u2019]/,""),Nl(t,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}function Rl(e){return e&&"object"==typeof e?{...Object.fromEntries(Object.entries(e).map((([e,t])=>[e,Rl(t)])))}:e}function Al(e,t,n){const o=function(e){return Array.isArray(e)?e:"number"==typeof e?[e.toString()]:[e]}(t),r=e?Rl(e):{};return o.reduce(((e,t,r)=>(void 0===e[t]&&(e[t]={}),r===o.length-1&&(e[t]=n),e[t])),r),r}const Dl=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map((([e,t])=>[e,Dl(t)])).filter((([,e])=>void 0!==e));return t.length?Object.fromEntries(t):void 0};function Ol(e,t,n,o,r,l){if(Object.values(null!=e?e:{}).every((e=>!e)))return n;if(1===l.length&&n.innerBlocks.length===o.length)return n;let i=o[0]?.attributes;if(l.length>1&&o.length>1){if(!o[r])return n;i=o[r]?.attributes}let a=n;return Object.entries(e).forEach((([e,n])=>{n&&t[e].forEach((e=>{const t=(0,Wr.get)(i,e);t&&(a={...a,attributes:Al(a.attributes,e,t)})}))})),a}function zl(e,t,n){const o=(0,a.getBlockSupport)(e,t),r=o?.__experimentalSkipSerialization;return Array.isArray(r)?r.includes(n):r}function Vl(e,t){const n=Xr("typography.fontFamilies"),o=Xr("typography.fontSizes"),r=Xr("typography.customFontSize"),l=Xr("typography.fontStyle"),i=Xr("typography.fontWeight"),a=Xr("typography.lineHeight"),s=Xr("typography.textColumns"),u=Xr("typography.textDecoration"),d=Xr("typography.textTransform"),p=Xr("typography.letterSpacing"),m=Xr("spacing.padding"),f=Xr("spacing.margin"),g=Xr("spacing.blockGap"),h=Xr("spacing.spacingSizes"),b=Xr("spacing.units"),v=Xr("dimensions.minHeight"),_=Xr("layout"),k=Xr("border.color"),y=Xr("border.radius"),E=Xr("border.style"),w=Xr("border.width"),S=Xr("color.custom"),C=Xr("color.palette.custom"),x=Xr("color.customDuotone"),B=Xr("color.palette.theme"),I=Xr("color.palette.default"),T=Xr("color.defaultPalette"),M=Xr("color.defaultDuotone"),P=Xr("color.duotone.custom"),N=Xr("color.duotone.theme"),L=Xr("color.duotone.default"),R=Xr("color.gradients.custom"),A=Xr("color.gradients.theme"),D=Xr("color.gradients.default"),O=Xr("color.defaultGradients"),z=Xr("color.customGradient"),V=Xr("color.background"),F=Xr("color.link"),H=Xr("color.text");return wl((0,c.useMemo)((()=>({color:{palette:{custom:C,theme:B,default:I},gradients:{custom:R,theme:A,default:D},duotone:{custom:P,theme:N,default:L},defaultGradients:O,defaultPalette:T,defaultDuotone:M,custom:S,customGradient:z,customDuotone:x,background:V,link:F,text:H},typography:{fontFamilies:{custom:n},fontSizes:{custom:o},customFontSize:r,fontStyle:l,fontWeight:i,lineHeight:a,textColumns:s,textDecoration:u,textTransform:d,letterSpacing:p},spacing:{spacingSizes:{custom:h},padding:m,margin:f,blockGap:g,units:b},border:{color:k,radius:y,style:E,width:w},dimensions:{minHeight:v},layout:_,parentLayout:t})),[n,o,r,l,i,a,s,u,d,p,m,f,g,h,b,v,_,t,k,y,E,w,S,C,x,B,I,T,M,P,N,L,R,A,D,O,z,V,F,H]),e)}const Fl={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},Hl={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},Gl={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},Ul=["wrap","nowrap"];var $l={name:"flex",label:(0,v.__)("Flex"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowOrientation:o=!0}=n;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.Flex,null,(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(Kl,{layout:e,onChange:t})),(0,c.createElement)(m.FlexItem,null,o&&(0,c.createElement)(Zl,{layout:e,onChange:t}))),(0,c.createElement)(ql,{layout:e,onChange:t}))},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){if(n?.allowSwitching)return null;const{allowVerticalAlignment:o=!0}=n;return(0,c.createElement)(er,{group:"block",__experimentalShareWithChildBlocks:!0},(0,c.createElement)(Kl,{layout:e,onChange:t,isToolbar:!0}),o&&(0,c.createElement)(jl,{layout:e,onChange:t,isToolbar:!0}))},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:l=sr}){const{orientation:i="horizontal"}=t,a=n?.spacing?.blockGap&&!zl(o,"spacing","blockGap")?Pr(n?.spacing?.blockGap,"0.5em"):void 0,s=Fl[t.justifyContent],c=Ul.includes(t.flexWrap)?t.flexWrap:"wrap",u=Gl[t.verticalAlignment],d=Hl[t.justifyContent]||Hl.left;let p="";const m=[];return c&&"wrap"!==c&&m.push(`flex-wrap: ${c}`),"horizontal"===i?(u&&m.push(`align-items: ${u}`),s&&m.push(`justify-content: ${s}`)):(u&&m.push(`justify-content: ${u}`),m.push("flex-direction: column"),m.push(`align-items: ${d}`)),m.length&&(p=`${cr(e)} {\n\t\t\t\t${m.join("; ")};\n\t\t\t}`),r&&a&&(p+=ur(e,l,"flex",a)),p},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments(){return[]}};function jl({layout:e,onChange:t,isToolbar:n=!1}){const{orientation:o="horizontal"}=e,r="horizontal"===o?Gl.center:Gl.top,{verticalAlignment:l=r}=e,i=n=>{t({...e,verticalAlignment:n})};if(n)return(0,c.createElement)(Fr,{onChange:i,value:l,controls:"horizontal"===o?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]});const a=[{value:"flex-start",label:(0,v.__)("Align items top")},{value:"center",label:(0,v.__)("Align items center")},{value:"flex-end",label:(0,v.__)("Align items bottom")}];return(0,c.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control"},(0,c.createElement)("legend",null,(0,v.__)("Vertical alignment")),(0,c.createElement)("div",null,a.map(((e,t,n)=>(0,c.createElement)(m.Button,{key:e,label:n,icon:t,isPressed:l===e,onClick:()=>i(e)})))))}const Wl={placement:"bottom-start"};function Kl({layout:e,onChange:t,isToolbar:n=!1}){const{justifyContent:o="left",orientation:r="horizontal"}=e,l=n=>{t({...e,justifyContent:n})},i=["left","center","right"];if("horizontal"===r?i.push("space-between"):i.push("stretch"),n)return(0,c.createElement)($r,{allowedControls:i,value:o,onChange:l,popoverProps:Wl});const a=[{value:"left",icon:tr,label:(0,v.__)("Justify items left")},{value:"center",icon:nr,label:(0,v.__)("Justify items center")},{value:"right",icon:or,label:(0,v.__)("Justify items right")}];return"horizontal"===r?a.push({value:"space-between",icon:rr,label:(0,v.__)("Space between items")}):a.push({value:"stretch",icon:lr,label:(0,v.__)("Stretch items")}),(0,c.createElement)(m.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Justification"),value:o,onChange:l,className:"block-editor-hooks__flex-layout-justification-controls"},a.map((({value:e,icon:t,label:n})=>(0,c.createElement)(m.__experimentalToggleGroupControlOptionIcon,{key:e,value:e,icon:t,label:n}))))}function ql({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Allow to wrap to multiple lines"),onChange:n=>{t({...e,flexWrap:n?"wrap":"nowrap"})},checked:"wrap"===n})}function Zl({layout:e,onChange:t}){const{orientation:n="horizontal",verticalAlignment:o,justifyContent:r}=e;return(0,c.createElement)(m.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,v.__)("Orientation"),value:n,onChange:n=>{let l=o,i=r;return"horizontal"===n?("space-between"===o&&(l="center"),"stretch"===r&&(i="left")):("stretch"===o&&(l="top"),"space-between"===r&&(i="left")),t({...e,orientation:n,verticalAlignment:l,justifyContent:i})}},(0,c.createElement)(m.__experimentalToggleGroupControlOptionIcon,{icon:ir,value:"horizontal",label:(0,v.__)("Horizontal")}),(0,c.createElement)(m.__experimentalToggleGroupControlOptionIcon,{icon:ar,value:"vertical",label:(0,v.__)("Vertical")}))}var Yl={name:"default",label:(0,v.__)("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:o,layoutDefinitions:r=sr}){const l=Pr(t?.spacing?.blockGap);let i="";zl(n,"spacing","blockGap")||(l?.top?i=Pr(l?.top):"string"==typeof l&&(i=Pr(l)));let a="";return o&&i&&(a+=ur(e,r,"default",i)),a},getOrientation(){return"vertical"},getAlignments(e,t){const n=dr(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:n[e]})));const o=[{name:"left"},{name:"center"},{name:"right"}];if(!t){const{contentSize:t,wideSize:r}=e;t&&o.unshift({name:"full"}),r&&o.unshift({name:"wide",info:n.wide})}return o.unshift({name:"none",info:n.none}),o}};var Xl=function({icon:e,size:t=24,...n}){return(0,c.cloneElement)(e,{width:t,height:t,...n})};var Ql=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"}));var Jl=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})),ei=window.wp.styleEngine,ti={name:"constrained",label:(0,v.__)("Constrained"),inspectorControls:function({layout:e,onChange:t,layoutBlockSupport:n={}}){const{wideSize:o,contentSize:r,justifyContent:l="center"}=e,{allowJustification:i=!0}=n,a=[{value:"left",icon:tr,label:(0,v.__)("Justify items left")},{value:"center",icon:nr,label:(0,v.__)("Justify items center")},{value:"right",icon:or,label:(0,v.__)("Justify items right")}],s=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["%","px","em","rem","vw"]});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,c.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,c.createElement)(m.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:(0,v.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:s}),(0,c.createElement)(Xl,{icon:Ql})),(0,c.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,c.createElement)(m.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:(0,v.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:s}),(0,c.createElement)(Xl,{icon:Jl}))),(0,c.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},(0,v.__)("Customize the width for all elements that are assigned to the center or wide columns.")),i&&(0,c.createElement)(m.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Justification"),value:l,onChange:n=>{t({...e,justifyContent:n})}},a.map((({value:e,icon:t,label:n})=>(0,c.createElement)(m.__experimentalToggleGroupControlOptionIcon,{key:e,value:e,icon:t,label:n})))))},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t={},style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:l=sr}){const{contentSize:i,wideSize:a,justifyContent:s}=t,c=Pr(n?.spacing?.blockGap);let u="";zl(o,"spacing","blockGap")||(c?.top?u=Pr(c?.top):"string"==typeof c&&(u=Pr(c)));const d="left"===s?"0 !important":"auto !important",p="right"===s?"0 !important":"auto !important";let m=i||a?`\n\t\t\t\t\t${cr(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {\n\t\t\t\t\t\tmax-width: ${null!=i?i:a};\n\t\t\t\t\t\tmargin-left: ${d};\n\t\t\t\t\t\tmargin-right: ${p};\n\t\t\t\t\t}\n\t\t\t\t\t${cr(e,"> .alignwide")} {\n\t\t\t\t\t\tmax-width: ${null!=a?a:i};\n\t\t\t\t\t}\n\t\t\t\t\t${cr(e,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";if("left"===s?m+=`${cr(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-left: ${d}; }`:"right"===s&&(m+=`${cr(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-right: ${p}; }`),n?.spacing?.padding){(0,ei.getCSSRules)(n).forEach((t=>{"paddingRight"===t.key?m+=`\n\t\t\t\t\t${cr(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-right: calc(${t.value} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`:"paddingLeft"===t.key&&(m+=`\n\t\t\t\t\t${cr(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-left: calc(${t.value} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`)}))}return r&&u&&(m+=ur(e,l,"constrained",u)),m},getOrientation(){return"vertical"},getAlignments(e){const t=dr(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}};const ni={px:600,"%":100,vw:100,vh:100,em:38,rem:38};var oi={name:"grid",label:(0,v.__)("Grid"),inspectorControls:function({layout:e={},onChange:t}){return e?.columnCount?(0,c.createElement)(li,{layout:e,onChange:t}):(0,c.createElement)(ri,{layout:e,onChange:t})},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:l=sr}){const{minimumColumnWidth:i="12rem",columnCount:a=null}=t,s=n?.spacing?.blockGap&&!zl(o,"spacing","blockGap")?Pr(n?.spacing?.blockGap,"0.5em"):void 0;let c="";const u=[];return a?u.push(`grid-template-columns: repeat(${a}, minmax(0, 1fr))`):i&&u.push(`grid-template-columns: repeat(auto-fill, minmax(min(${i}, 100%), 1fr))`),u.length&&(c=`${cr(e)} { ${u.join("; ")}; }`),r&&s&&(c+=ur(e,l,"grid",s)),c},getOrientation(){return"horizontal"},getAlignments(){return[]}};function ri({layout:e,onChange:t}){const{minimumColumnWidth:n="12rem"}=e,[o,r]=(0,m.__experimentalParseQuantityAndUnitFromRawValue)(n);return(0,c.createElement)("fieldset",null,(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend"},(0,v.__)("Minimum column width")),(0,c.createElement)(m.Flex,{gap:4},(0,c.createElement)(m.FlexItem,{isBlock:!0},(0,c.createElement)(m.__experimentalUnitControl,{size:"__unstable-large",onChange:n=>{t({...e,minimumColumnWidth:n})},onUnitChange:n=>{let l;["em","rem"].includes(n)&&"px"===r?l=(o/16).toFixed(2)+n:["em","rem"].includes(r)&&"px"===n?l=Math.round(16*o)+n:["vh","vw","%"].includes(n)&&o>100&&(l=100+n),t({...e,minimumColumnWidth:l})},value:n,min:0})),(0,c.createElement)(m.FlexItem,{isBlock:!0},(0,c.createElement)(m.RangeControl,{onChange:n=>{t({...e,minimumColumnWidth:[n,r].join("")})},value:o,min:0,max:ni[r]||600,withInputField:!1}))))}function li({layout:e,onChange:t}){const{columnCount:n=3}=e;return(0,c.createElement)(m.RangeControl,{label:(0,v.__)("Columns"),value:n,onChange:n=>t({...e,columnCount:n}),min:1,max:6})}const ii=[Yl,$l,ti,oi];function ai(e="default"){return ii.find((t=>t.name===e))}const si={type:"default"},ci=(0,c.createContext)(si),ui=ci.Provider;function di(){return(0,c.useContext)(ci)}function pi({layout:e={},css:t,...n}){const o=ai(e.type),r=null!==Xr("spacing.blockGap");if(o){if(t)return(0,c.createElement)("style",null,t);const l=o.getLayoutStyle?.({hasBlockGapSupport:r,layout:e,...n});if(l)return(0,c.createElement)("style",null,l)}return null}const mi=[],fi=["none","left","center","right","wide","full"],gi=["wide","full"];function hi(e=fi){e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n,isBlockBasedTheme:o}=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout,isBlockBasedTheme:n.__unstableIsBlockBasedTheme}}),[]),r=di(),l=ai(r?.type),i=l.getAlignments(r,o);if(n){const t=i.filter((({name:t})=>e.includes(t)));return 1===t.length&&"none"===t[0].name?mi:t}if("default"!==l.name&&"constrained"!==l.name)return mi;const{alignments:a=fi}=r,s=e.filter((e=>(r.alignments||t||!gi.includes(e))&&a.includes(e))).map((e=>({name:e})));return 1===s.length&&"none"===s[0].name?mi:s}var bi=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"}));var vi=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"}));var _i=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"}));var ki=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"}));const yi={none:{icon:bi,title:(0,v._x)("None","Alignment option")},left:{icon:vi,title:(0,v.__)("Align left")},center:{icon:Ql,title:(0,v.__)("Align center")},right:{icon:_i,title:(0,v.__)("Align right")},wide:{icon:Jl,title:(0,v.__)("Wide width")},full:{icon:ki,title:(0,v.__)("Full width")}};var Ei=function({value:e,onChange:t,controls:n,isToolbar:o,isCollapsed:r=!0}){const l=hi(n);if(!!!l.length)return null;function i(n){t([e,"none"].includes(n)?void 0:n)}const a=yi[e],s=yi.none,u=o?m.ToolbarGroup:m.ToolbarDropdownMenu,p={icon:a?a.icon:s.icon,label:(0,v.__)("Align")},f=o?{isCollapsed:r,controls:l.map((({name:t})=>({...yi[t],isActive:e===t||!e&&"none"===t,role:r?"menuitemradio":void 0,onClick:()=>i(t)})))}:{toggleProps:{describedBy:(0,v.__)("Change alignment")},children:({onClose:t})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},l.map((({name:n,info:o})=>{const{icon:r,title:l}=yi[n],a=n===e||!e&&"none"===n;return(0,c.createElement)(m.MenuItem,{key:n,icon:r,iconPosition:"left",className:d()("components-dropdown-menu__menu-item",{"is-active":a}),isSelected:a,onClick:()=>{i(n),t()},role:"menuitemradio",info:o},l)}))))};return(0,c.createElement)(u,{...p,...f})};const wi=e=>(0,c.createElement)(Ei,{...e,isToolbar:!1}),Si=e=>(0,c.createElement)(Ei,{...e,isToolbar:!0}),Ci=(0,c.createContext)(null);function xi(e){var t;const{clientId:n=""}=null!==(t=(0,c.useContext)(Ci))&&void 0!==t?t:{},o=(0,f.useSelect)((e=>Fo(e(Go)).getBlockEditingMode(n)),[n]),{setBlockEditingMode:r,unsetBlockEditingMode:l}=Fo((0,f.useDispatch)(Go));return(0,c.useEffect)((()=>(e&&r(n,e),()=>{e&&l(n)})),[n,e]),o}const Bi=["left","center","right","wide","full"],Ii=["wide","full"];function Ti(e,t=!0,n=!0){let o;return o=Array.isArray(e)?Bi.filter((t=>e.includes(t))):!0===e?[...Bi]:[],!n||!0===e&&!t?o.filter((e=>!Ii.includes(e))):o}const Mi=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,c.createElement)(e,{key:"edit",...t}),{name:o}=t,r=hi(Ti((0,a.getBlockSupport)(o,"align"),(0,a.hasBlockSupport)(o,"alignWide",!0))).map((({name:e})=>e)),l=xi();if(!r.length||"default"!==l)return n;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(er,{group:"block",__experimentalShareWithChildBlocks:!0},(0,c.createElement)(wi,{value:t.attributes.align,onChange:e=>{if(!e){const n=(0,a.getBlockType)(t.name),o=n?.attributes?.align?.default;o&&(e="")}t.setAttributes({align:e})},controls:r})),n)}),"withToolbarControls"),Pi=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,{align:r}=o,l=hi(Ti((0,a.getBlockSupport)(n,"align"),(0,a.hasBlockSupport)(n,"alignWide",!0)));if(void 0===r)return(0,c.createElement)(e,{...t});let i=t.wrapperProps;return l.some((e=>e.name===r))&&(i={...i,"data-align":r}),(0,c.createElement)(e,{...t,wrapperProps:i})}),"withDataAlign");(0,s.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.align)&&void 0!==t?t:{})||(0,a.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Bi,""]}}),e})),(0,s.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Pi),(0,s.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Mi),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:o}=n;return Ti((0,a.getBlockSupport)(t,"align"),(0,a.hasBlockSupport)(t,"alignWide",!0)).includes(o)&&(e.className=d()(`align${o}`,e.className)),e})),(0,s.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.lock)&&void 0!==t?t:{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));const Ni=(0,m.createSlotFill)("InspectorControls"),Li=(0,m.createSlotFill)("InspectorAdvancedControls"),Ri=(0,m.createSlotFill)("InspectorControlsBorder"),Ai=(0,m.createSlotFill)("InspectorControlsColor"),Di=(0,m.createSlotFill)("InspectorControlsFilter"),Oi=(0,m.createSlotFill)("InspectorControlsDimensions"),zi=(0,m.createSlotFill)("InspectorControlsPosition"),Vi=(0,m.createSlotFill)("InspectorControlsTypography");var Fi={default:Ni,advanced:Li,border:Ri,color:Ai,filter:Di,dimensions:Oi,list:(0,m.createSlotFill)("InspectorControlsListView"),settings:Ni,styles:(0,m.createSlotFill)("InspectorControlsStyles"),typography:Vi,position:zi};function Hi({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:o}){n&&($()("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const r=qo(),l=Fi[t]?.Fill;return l?r?(0,c.createElement)(m.__experimentalStyleProvider,{document:document},(0,c.createElement)(l,null,(t=>(0,c.createElement)(Gi,{fillProps:t,children:e,resetAllFilter:o})))):null:("undefined"!=typeof process&&process.env,null)}function Gi({children:e,resetAllFilter:t,fillProps:n}){const{registerResetAllFilter:o,deregisterResetAllFilter:r}=n;(0,c.useEffect)((()=>(t&&o&&o(t),()=>{t&&r&&r(t)})),[t,o,r]);const l=n&&Object.keys(n).length>0?n:null;return(0,c.createElement)(m.__experimentalToolsPanelContext.Provider,{value:l},e)}function Ui({children:e,group:t,label:n}){const{updateBlockAttributes:o}=(0,f.useDispatch)(Go),{getBlockAttributes:r,getMultiSelectedBlockClientIds:l,getSelectedBlockClientId:i,hasMultiSelection:a}=(0,f.useSelect)(Go),s=i(),u=(0,c.useCallback)(((e=[])=>{const t={},n=a()?l():[s];n.forEach((n=>{const{style:o}=r(n);let l={style:o};e.forEach((e=>{l={...l,...e(l)}})),l={...l,style:Dl(l.style)},t[n]=l})),o(n,t,!0)}),[r,l,a,s,o]);return(0,c.createElement)(m.__experimentalToolsPanel,{className:`${t}-block-support-panel`,label:n,resetAll:u,key:s,panelId:s,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},e)}function $i({Slot:e,...t}){const n=(0,c.useContext)(m.__experimentalToolsPanelContext);return(0,c.createElement)(e,{...t,fillProps:n,bubblesVirtually:!0})}function ji({__experimentalGroup:e,group:t="default",label:n,...o}){e&&($()("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const r=Fi[t]?.Slot,l=(0,m.__experimentalUseSlotFills)(r?.__unstableName);return r?l?.length?n?(0,c.createElement)(Ui,{group:t,label:n},(0,c.createElement)($i,{...o,Slot:r})):(0,c.createElement)(r,{...o,bubblesVirtually:!0}):null:("undefined"!=typeof process&&process.env,null)}const Wi=Hi;Wi.Slot=ji;const Ki=e=>(0,c.createElement)(Hi,{...e,group:"advanced"});Ki.Slot=e=>(0,c.createElement)(ji,{...e,group:"advanced"}),Ki.slotName="InspectorAdvancedControls";var qi=Wi;const Zi=/[\s#]/g,Yi={type:"string",source:"attribute",attribute:"id",selector:"*"};const Xi=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,a.hasBlockSupport)(t.name,"anchor"),o=xi();if(n&&t.isSelected){const n="web"===c.Platform.OS,r=(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,className:"html-anchor-control",label:(0,v.__)("HTML anchor"),help:(0,c.createElement)(c.Fragment,null,(0,v.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),n&&(0,c.createElement)(m.ExternalLink,{href:(0,v.__)("https://wordpress.org/documentation/article/page-jumps/")},(0,v.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:(0,v.__)("Add an anchor"),onChange:e=>{e=e.replace(Zi,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(e,{...t}),n&&"default"===o&&(0,c.createElement)(qi,{group:"advanced"},r),!n&&"core/heading"===t.name&&(0,c.createElement)(qi,null,(0,c.createElement)(m.PanelBody,{title:(0,v.__)("Heading settings")},r)))}return(0,c.createElement)(e,{...t})}),"withInspectorControl");(0,s.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.anchor)&&void 0!==t?t:{})||(0,a.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:Yi}),e})),(0,s.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Xi),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return(0,a.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const Qi={type:"string",source:"attribute",attribute:"aria-label",selector:"*"};(0,s.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",(function(e){return e?.attributes?.ariaLabel?.type||(0,a.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:Qi}),e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/ariaLabel/save-props",(function(e,t,n){return(0,a.hasBlockSupport)(t,"ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e}));const Ji=(0,p.createHigherOrderComponent)((e=>t=>{const n=xi();return(0,a.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(e,{...t}),"default"===n&&(0,c.createElement)(qi,{group:"advanced"},(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,v.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:(0,v.__)("Separate multiple classes with spaces.")}))):(0,c.createElement)(e,{...t})}),"withInspectorControl");(0,s.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return(0,a.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,s.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Ji),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return(0,a.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=d()(e.className,n.className)),e})),(0,s.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){if(!(0,a.hasBlockSupport)(e.name,"customClassName",!0))return e;if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(t[n]){const o=t[n]?.attributes.className;if(o)return{...e,attributes:{...e.attributes,className:o}}}return e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,a.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([(0,a.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,a.getBlockDefaultClassName)(t.name)),e}));var ea=window.wp.dom;const ta=(0,c.createContext)({});function na({value:e,children:t}){const n=(0,c.useContext)(ta),o=(0,c.useMemo)((()=>({...n,...e})),[n,e]);return(0,c.createElement)(ta.Provider,{value:o,children:t})}var oa=ta;const ra={},la=(0,m.withFilters)("editor.BlockEdit")((e=>{const{name:t}=e,n=(0,a.getBlockType)(t);if(!n)return null;const o=n.edit||n.save;return(0,c.createElement)(o,{...e})}));var ia=e=>{const{attributes:t={},name:n}=e,o=(0,a.getBlockType)(n),r=(0,c.useContext)(oa),l=(0,c.useMemo)((()=>o&&o.usesContext?Object.fromEntries(Object.entries(r).filter((([e])=>o.usesContext.includes(e)))):ra),[o,r]);if(!o)return null;if(o.apiVersion>1)return(0,c.createElement)(la,{...e,context:l});const i=(0,a.hasBlockSupport)(o,"className",!0)?(0,a.getBlockDefaultClassName)(n):null,s=d()(i,t.className,e.className);return(0,c.createElement)(la,{...e,context:l,className:s})};function aa(e){const{name:t,isSelected:n,clientId:o,attributes:r={},__unstableLayoutClassNames:l}=e,{layout:i=null}=r,s={name:t,isSelected:n,clientId:o,layout:(0,a.hasBlockSupport)(t,"layout",!1)||(0,a.hasBlockSupport)(t,"__experimentalLayout",!1)?i:null,__unstableLayoutClassNames:l};return(0,c.createElement)(Wo,{value:(0,c.useMemo)((()=>s),Object.values(s))},(0,c.createElement)(ia,{...e}))}var sa=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var ca=function({className:e,actions:t,children:n,secondaryActions:o}){return(0,c.createElement)("div",{style:{display:"contents",all:"initial"}},(0,c.createElement)("div",{className:d()(e,"block-editor-warning")},(0,c.createElement)("div",{className:"block-editor-warning__contents"},(0,c.createElement)("p",{className:"block-editor-warning__message"},n),(c.Children.count(t)>0||o)&&(0,c.createElement)("div",{className:"block-editor-warning__actions"},c.Children.count(t)>0&&c.Children.map(t,((e,t)=>(0,c.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),o&&(0,c.createElement)(m.DropdownMenu,{className:"block-editor-warning__secondary",icon:sa,label:(0,v.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,c.createElement)(m.MenuGroup,null,o.map(((e,t)=>(0,c.createElement)(m.MenuItem,{onClick:e.onClick,key:t},e.title))))))))))},ua=n(1973);function da({title:e,rawContent:t,renderedContent:n,action:o,actionText:r,className:l}){return(0,c.createElement)("div",{className:l},(0,c.createElement)("div",{className:"block-editor-block-compare__content"},(0,c.createElement)("h2",{className:"block-editor-block-compare__heading"},e),(0,c.createElement)("div",{className:"block-editor-block-compare__html"},t),(0,c.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,c.createElement)(c.RawHTML,null,(0,ea.safeHTML)(n)))),(0,c.createElement)("div",{className:"block-editor-block-compare__action"},(0,c.createElement)(m.Button,{variant:"secondary",tabIndex:"0",onClick:o},r)))}var pa=function({block:e,onKeep:t,onConvert:n,convertor:o,convertButtonText:r}){const l=(i=o(e),(Array.isArray(i)?i:[i]).map((e=>(0,a.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var i;const s=(u=e.originalContent,p=l,(0,ua.Kx)(u,p).map(((e,t)=>{const n=d()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,c.createElement)("span",{key:t,className:n},e.value)})));var u,p;return(0,c.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,c.createElement)(da,{title:(0,v.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,v.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,c.createElement)(da,{title:(0,v.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:r,rawContent:s,renderedContent:l}))};const ma=e=>(0,a.rawHandler)({HTML:e.originalContent});function fa({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:o}=(0,f.useSelect)((t=>{const{canInsertBlockType:n,getBlock:o,getBlockRootClientId:r}=t(Go),l=r(e);return{block:o(e),canInsertHTMLBlock:n("core/html",l),canInsertClassicBlock:n("core/freeform",l)}}),[e]),{replaceBlock:r}=(0,f.useDispatch)(Go),[l,i]=(0,c.useState)(!1),s=(0,c.useCallback)((()=>i(!1)),[]),u=(0,c.useMemo)((()=>({toClassic(){const e=(0,a.createBlock)("core/freeform",{content:t.originalContent});return r(t.clientId,e)},toHTML(){const e=(0,a.createBlock)("core/html",{content:t.originalContent});return r(t.clientId,e)},toBlocks(){const e=ma(t);return r(t.clientId,e)},toRecoveredBlock(){const e=(0,a.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,e)}})),[t,r]),d=(0,c.useMemo)((()=>[{title:(0,v._x)("Resolve","imperative verb"),onClick:()=>i(!0)},n&&{title:(0,v.__)("Convert to HTML"),onClick:u.toHTML},o&&{title:(0,v.__)("Convert to Classic Block"),onClick:u.toClassic}].filter(Boolean)),[n,o,u]);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(ca,{actions:[(0,c.createElement)(m.Button,{key:"recover",onClick:u.toRecoveredBlock,variant:"primary"},(0,v.__)("Attempt Block Recovery"))],secondaryActions:d},(0,v.__)("This block contains unexpected or invalid content.")),l&&(0,c.createElement)(m.Modal,{title:(0,v.__)("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare"},(0,c.createElement)(pa,{block:t,onKeep:u.toHTML,onConvert:u.toBlocks,convertor:ma,convertButtonText:(0,v.__)("Convert to Blocks")})))}const ga=(0,c.createElement)(ca,{className:"block-editor-block-list__block-crash-warning"},(0,v.__)("This block has encountered an error and cannot be previewed."));var ha=()=>ga;class ba extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var va=ba,_a=n(773);var ka=function({clientId:e}){const[t,n]=(0,c.useState)(""),o=(0,f.useSelect)((t=>t(Go).getBlock(e)),[e]),{updateBlock:r}=(0,f.useDispatch)(Go);return(0,c.useEffect)((()=>{n((0,a.getBlockContent)(o))}),[o]),(0,c.createElement)(_a.Z,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const l=(0,a.getBlockType)(o.name);if(!l)return;const i=(0,a.getBlockAttributes)(l,t,o.attributes),s=t||(0,a.getSaveContent)(l,i),[c]=t?(0,a.validateBlock)({...o,attributes:i,originalContent:s}):[!0];r(e,{attributes:i,originalContent:s,isValid:c}),t||n(s)},onChange:e=>n(e.target.value)})},ya=n(9196),Ea=n.n(ya),wa=Object.defineProperty,Sa={};((e,t)=>{for(var n in t)wa(e,n,{get:t[n],enumerable:!0})})(Sa,{assign:()=>os,colors:()=>es,createStringInterpolator:()=>Ya,skipAnimation:()=>ts,to:()=>Xa,willAdvance:()=>ns});var Ca=Ha(),xa=e=>Oa(e,Ca),Ba=Ha();xa.write=e=>Oa(e,Ba);var Ia=Ha();xa.onStart=e=>Oa(e,Ia);var Ta=Ha();xa.onFrame=e=>Oa(e,Ta);var Ma=Ha();xa.onFinish=e=>Oa(e,Ma);var Pa=[];xa.setTimeout=(e,t)=>{const n=xa.now()+t,o=()=>{const e=Pa.findIndex((e=>e.cancel==o));~e&&Pa.splice(e,1),Aa-=~e?1:0},r={time:n,handler:e,cancel:o};return Pa.splice(Na(n),0,r),Aa+=1,za(),r};var Na=e=>~(~Pa.findIndex((t=>t.time>e))||~Pa.length);xa.cancel=e=>{Ia.delete(e),Ta.delete(e),Ma.delete(e),Ca.delete(e),Ba.delete(e)},xa.sync=e=>{Da=!0,xa.batchedUpdates(e),Da=!1},xa.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,xa.onStart(n)}return o.handler=e,o.cancel=()=>{Ia.delete(n),t=null},o};var La="undefined"!=typeof window?window.requestAnimationFrame:()=>{};xa.use=e=>La=e,xa.now="undefined"!=typeof performance?()=>performance.now():Date.now,xa.batchedUpdates=e=>e(),xa.catch=console.error,xa.frameLoop="always",xa.advance=()=>{"demand"!==xa.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Fa()};var Ra=-1,Aa=0,Da=!1;function Oa(e,t){Da?(t.delete(e),e(0)):(t.add(e),za())}function za(){Ra<0&&(Ra=0,"demand"!==xa.frameLoop&&La(Va))}function Va(){~Ra&&(La(Va),xa.batchedUpdates(Fa))}function Fa(){const e=Ra;Ra=xa.now();const t=Na(Ra);t&&(Ga(Pa.splice(0,t),(e=>e.handler())),Aa-=t),Aa?(Ia.flush(),Ca.flush(e?Math.min(64,Ra-e):16.667),Ta.flush(),Ba.flush(),Ma.flush()):Ra=-1}function Ha(){let e=new Set,t=e;return{add(n){Aa+=t!=e||e.has(n)?0:1,e.add(n)},delete(n){return Aa-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Aa-=t.size,Ga(t,(t=>t(n)&&e.add(t))),Aa+=e.size,t=e)}}}function Ga(e,t){e.forEach((e=>{try{t(e)}catch(e){xa.catch(e)}}))}function Ua(){}var $a={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function ja(e,t){if($a.arr(e)){if(!$a.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Wa=(e,t)=>e.forEach(t);function Ka(e,t,n){if($a.arr(e))for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);else for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}var qa=e=>$a.und(e)?[]:$a.arr(e)?e:[e];function Za(e,t){if(e.size){const n=Array.from(e);e.clear(),Wa(n,t)}}var Ya,Xa,Qa=(e,...t)=>Za(e,(e=>e(...t))),Ja=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),es=null,ts=!1,ns=Ua,os=e=>{e.to&&(Xa=e.to),e.now&&(xa.now=e.now),void 0!==e.colors&&(es=e.colors),null!=e.skipAnimation&&(ts=e.skipAnimation),e.createStringInterpolator&&(Ya=e.createStringInterpolator),e.requestAnimationFrame&&xa.use(e.requestAnimationFrame),e.batchedUpdates&&(xa.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ns=e.willAdvance),e.frameLoop&&(xa.frameLoop=e.frameLoop)},rs=new Set,ls=[],is=[],as=0,ss={get idle(){return!rs.size&&!ls.length},start(e){as>e.priority?(rs.add(e),xa.onStart(cs)):(us(e),xa(ps))},advance:ps,sort(e){if(as)xa.onFrame((()=>ss.sort(e)));else{const t=ls.indexOf(e);~t&&(ls.splice(t,1),ds(e))}},clear(){ls=[],rs.clear()}};function cs(){rs.forEach(us),rs.clear(),xa(ps)}function us(e){ls.includes(e)||ds(e)}function ds(e){ls.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(ls,(t=>t.priority>e.priority)),0,e)}function ps(e){const t=is;for(let n=0;n<ls.length;n++){const o=ls[n];as=o.priority,o.idle||(ns(o),o.advance(e),o.idle||t.push(o))}return as=0,(is=ls).length=0,(ls=t).length>0}var ms="[-+]?\\d*\\.?\\d+",fs=ms+"%";function gs(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var hs=new RegExp("rgb"+gs(ms,ms,ms)),bs=new RegExp("rgba"+gs(ms,ms,ms,ms)),vs=new RegExp("hsl"+gs(ms,fs,fs)),_s=new RegExp("hsla"+gs(ms,fs,fs,ms)),ks=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ys=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Es=/^#([0-9a-fA-F]{6})$/,ws=/^#([0-9a-fA-F]{8})$/;function Ss(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Cs(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,l=Ss(r,o,e+1/3),i=Ss(r,o,e),a=Ss(r,o,e-1/3);return Math.round(255*l)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function xs(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Bs(e){return(parseFloat(e)%360+360)%360/360}function Is(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ts(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ms(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Es.exec(e))?parseInt(t[1]+"ff",16)>>>0:es&&void 0!==es[e]?es[e]:(t=hs.exec(e))?(xs(t[1])<<24|xs(t[2])<<16|xs(t[3])<<8|255)>>>0:(t=bs.exec(e))?(xs(t[1])<<24|xs(t[2])<<16|xs(t[3])<<8|Is(t[4]))>>>0:(t=ks.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ws.exec(e))?parseInt(t[1],16)>>>0:(t=ys.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=vs.exec(e))?(255|Cs(Bs(t[1]),Ts(t[2]),Ts(t[3])))>>>0:(t=_s.exec(e))?(Cs(Bs(t[1]),Ts(t[2]),Ts(t[3]))|Is(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var Ps=(e,t,n)=>{if($a.fun(e))return e;if($a.arr(e))return Ps({range:e,output:t,extrapolate:n});if($a.str(e.output[0]))return Ya(e);const o=e,r=o.output,l=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",a=o.extrapolateRight||o.extrapolate||"extend",s=o.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,l);return function(e,t,n,o,r,l,i,a,s){let c=s?s(e):e;if(c<t){if("identity"===i)return c;"clamp"===i&&(c=t)}if(c>n){if("identity"===a)return c;"clamp"===a&&(c=n)}if(o===r)return o;if(t===n)return e<=t?o:r;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=l(c),o===-1/0?c=-c:r===1/0?c+=o:c=c*(r-o)+o;return c}(e,l[t],l[t+1],r[t],r[t+1],s,i,a,o.map)}};var Ns=1.70158,Ls=1.525*Ns,Rs=Ns+1,As=2*Math.PI/3,Ds=2*Math.PI/4.5,Os=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},zs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Rs*e*e*e-Ns*e*e,easeOutBack:e=>1+Rs*Math.pow(e-1,3)+Ns*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ls)/2:(Math.pow(2*e-2,2)*((Ls+1)*(2*e-2)+Ls)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*As),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*As)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Ds)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Ds)/2+1,easeInBounce:e=>1-Os(1-e),easeOutBounce:Os,easeInOutBounce:e=>e<.5?(1-Os(1-2*e))/2:(1+Os(2*e-1))/2,steps:(e,t="end")=>n=>{const o=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(o):Math.ceil(o))/e)}},Vs=Symbol.for("FluidValue.get"),Fs=Symbol.for("FluidValue.observers"),Hs=e=>Boolean(e&&e[Vs]),Gs=e=>e&&e[Vs]?e[Vs]():e,Us=e=>e[Fs]||null;function $s(e,t){const n=e[Fs];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var js=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ws(this,e)}},Ws=(e,t)=>Ys(e,Vs,t);function Ks(e,t){if(e[Vs]){let n=e[Fs];n||Ys(e,Fs,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function qs(e,t){const n=e[Fs];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[Fs]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var Zs,Ys=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Xs=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Qs=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Js=new RegExp(`(${Xs.source})(%|[a-z]+)`,"i"),ec=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,tc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,nc=e=>{const[t,n]=oc(e);if(!t||Ja())return e;const o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&tc.test(n)?nc(n):n||e},oc=e=>{const t=tc.exec(e);if(!t)return[,];const[,n,o]=t;return[n,o]},rc=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,lc=e=>{Zs||(Zs=es?new RegExp(`(${Object.keys(es).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Gs(e).replace(tc,nc).replace(Qs,Ms).replace(Zs,Ms))),n=t.map((e=>e.match(Xs).map(Number))),o=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),r=o.map((t=>Ps({...e,output:t})));return e=>{const n=!Js.test(t[0])&&t.find((e=>Js.test(e)))?.replace(Xs,"");let o=0;return t[0].replace(Xs,(()=>`${r[o++](e)}${n||""}`)).replace(ec,rc)}},ic="react-spring: ",ac=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${ic}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},sc=ac(console.warn);var cc=ac(console.warn);function uc(e){return $a.str(e)&&("#"==e[0]||/\d/.test(e)||!Ja()&&tc.test(e)||e in(es||{}))}var dc=Ja()?ya.useEffect:ya.useLayoutEffect,pc=()=>{const e=(0,ya.useRef)(!1);return dc((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function mc(){const e=(0,ya.useState)()[1],t=pc();return()=>{t.current&&e(Math.random())}}var fc=e=>(0,ya.useEffect)(e,gc),gc=[];function hc(e){const t=(0,ya.useRef)();return(0,ya.useEffect)((()=>{t.current=e})),t.current}var bc=Symbol.for("Animated:node"),vc=e=>e&&e[bc],_c=(e,t)=>{return n=e,o=bc,r=t,Object.defineProperty(n,o,{value:r,writable:!0,configurable:!0});var n,o,r},kc=e=>e&&e[bc]&&e[bc].getPayload(),yc=class{constructor(){_c(this,this)}getPayload(){return this.payload||[]}},Ec=class extends yc{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,$a.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ec(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return $a.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,$a.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},wc=class extends Ec{constructor(e){super(0),this._string=null,this._toString=Ps({output:[e,e]})}static create(e){return new wc(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if($a.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Ps({output:[this.getValue(),e]})),this._value=0,super.reset()}},Sc={dependencies:null},Cc=class extends yc{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ka(this.source,((n,o)=>{var r;(r=n)&&r[bc]===r?t[o]=n.getValue(e):Hs(n)?t[o]=Gs(n):e||(t[o]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Wa(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Ka(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Sc.dependencies&&Hs(e)&&Sc.dependencies.add(e);const t=kc(e);t&&Wa(t,(e=>this.add(e)))}},xc=class extends Cc{constructor(e){super(e)}static create(e){return new xc(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Bc)),!0)}};function Bc(e){return(uc(e)?wc:Ec).create(e)}function Ic(e){const t=vc(e);return t?t.constructor:$a.arr(e)?xc:uc(e)?wc:Ec}var Tc=(e,t)=>{const n=!$a.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,ya.forwardRef)(((o,r)=>{const l=(0,ya.useRef)(null),i=n&&(0,ya.useCallback)((e=>{l.current=function(e,t){e&&($a.fun(e)?e(t):e.current=t);return t}(r,e)}),[r]),[a,s]=function(e,t){const n=new Set;Sc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Cc(e),Sc.dependencies=null,[e,n]}(o,t),c=mc(),u=()=>{const e=l.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,a.getValue(!0)))&&c()},d=new Mc(u,s),p=(0,ya.useRef)();dc((()=>(p.current=d,Wa(s,(e=>Ks(e,d))),()=>{p.current&&(Wa(p.current.deps,(e=>qs(e,p.current))),xa.cancel(p.current.update))}))),(0,ya.useEffect)(u,[]),fc((()=>()=>{const e=p.current;Wa(e.deps,(t=>qs(t,e)))}));const m=t.getComponentProps(a.getValue());return ya.createElement(e,{...m,ref:i})}))},Mc=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&xa.write(this.update)}};var Pc=Symbol.for("AnimatedComponent"),Nc=e=>$a.str(e)?e:e&&$a.str(e.displayName)?e.displayName:$a.fun(e)&&e.name||null;function Lc(e,...t){return $a.fun(e)?e(...t):e}var Rc=(e,t)=>!0===e||!!(t&&e&&($a.fun(e)?e(t):qa(e).includes(t))),Ac=(e,t)=>$a.obj(e)?t&&e[t]:e,Dc=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Oc=e=>e,zc=(e,t=Oc)=>{let n=Vc;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const n=t(e[r],r);$a.und(n)||(o[r]=n)}return o},Vc=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Fc={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Hc(e){const t=function(e){const t={};let n=0;if(Ka(e,((e,o)=>{Fc[o]||(t[o]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Ka(e,((e,o)=>o in t||(n[o]=e))),n}return{...e}}function Gc(e){return e=Gs(e),$a.arr(e)?e.map(Gc):uc(e)?Sa.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Uc(e){for(const t in e)return!0;return!1}function $c(e){return $a.fun(e)||$a.arr(e)&&$a.obj(e[0])}function jc(e,t){e.ref?.delete(e),t?.delete(e)}function Wc(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Kc={tension:170,friction:26,mass:1,damping:1,easing:zs.linear,clamp:!1};function qc(e,t){if($a.und(t.decay)){const n=!$a.und(t.tension)||!$a.und(t.friction);!n&&$a.und(t.frequency)&&$a.und(t.damping)&&$a.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Zc=[];function Yc(e,{key:t,props:n,defaultProps:o,state:r,actions:l}){return new Promise(((i,a)=>{let s,c,u=Rc(n.cancel??o?.cancel,t);if(u)m();else{$a.und(n.pause)||(r.paused=Rc(n.pause,t));let e=o?.pause;!0!==e&&(e=r.paused||Rc(e,t)),s=Lc(n.delay||0,t),e?(r.resumeQueue.add(p),l.pause()):(l.resume(),p())}function d(){r.resumeQueue.add(p),r.timeouts.delete(c),c.cancel(),s=c.time-xa.now()}function p(){s>0&&!Sa.skipAnimation?(r.delayed=!0,c=xa.setTimeout(m,s),r.pauseQueue.add(d),r.timeouts.add(c)):m()}function m(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(d),r.timeouts.delete(c),e<=(r.cancelId||0)&&(u=!0);try{l.start({...n,callId:e,cancel:u},i)}catch(e){a(e)}}}))}var Xc=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?eu(e.get()):t.every((e=>e.noop))?Qc(e.get()):Jc(e.get(),t.every((e=>e.finished))),Qc=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Jc=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),eu=e=>({value:e,cancelled:!0,finished:!1});function tu(e,t,n,o){const{callId:r,parentId:l,onRest:i}=t,{asyncTo:a,promise:s}=n;return l||e!==a||t.reset?n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;const c=zc(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),m=e=>{const t=r<=(n.cancelId||0)&&eu(o)||r!==n.asyncId&&Jc(o,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const l=new ou,i=new ru;return(async()=>{if(Sa.skipAnimation)throw nu(n),i.result=Jc(o,!1),d(i),i;m(l);const a=$a.obj(e)?{...e}:{...t,to:e};a.parentId=r,Ka(c,((e,t)=>{$a.und(a[t])&&(a[t]=e)}));const s=await o.start(a);return m(l),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),s})()};let g;if(Sa.skipAnimation)return nu(n),Jc(o,!1);try{let t;t=$a.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,o.stop.bind(o))),await Promise.all([t.then(u),p]),g=Jc(o.get(),!0,!1)}catch(e){if(e instanceof ou)g=e.result;else{if(!(e instanceof ru))throw e;g=e.result}}finally{r==n.asyncId&&(n.asyncId=l,n.asyncTo=l?a:void 0,n.promise=l?s:void 0)}return $a.fun(i)&&xa.batchedUpdates((()=>{i(g,o,o.item)})),g})():s}function nu(e,t){Za(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var ou=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ru=class extends Error{constructor(){super("SkipAnimationSignal")}},lu=e=>e instanceof au,iu=1,au=class extends js{constructor(){super(...arguments),this.id=iu++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=vc(this);return e&&e.getValue()}to(...e){return Sa.to(this,e)}interpolate(...e){return sc(`${ic}The "interpolate" function is deprecated in v9 (use "to" instead)`),Sa.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){$s(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ss.sort(this),$s(this,{type:"priority",parent:this,priority:e})}},su=Symbol.for("SpringPhase"),cu=e=>(1&e[su])>0,uu=e=>(2&e[su])>0,du=e=>(4&e[su])>0,pu=(e,t)=>t?e[su]|=3:e[su]&=-3,mu=(e,t)=>t?e[su]|=4:e[su]&=-5,fu=class extends au{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=Zc,this.toValues=null,this.fromValues=Zc,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Kc)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!$a.und(e)||!$a.und(t)){const n=$a.obj(e)?{...e}:{...t,from:e};$a.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(uu(this)||this._state.asyncTo)||du(this)}get goal(){return Gs(this.animation.to)}get velocity(){const e=vc(this);return e instanceof Ec?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return cu(this)}get isAnimating(){return uu(this)}get isPaused(){return du(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const o=this.animation;let{toValues:r}=o;const{config:l}=o,i=kc(o.to);!i&&Hs(o.to)&&(r=qa(Gs(o.to))),o.values.forEach(((a,s)=>{if(a.done)return;const c=a.constructor==wc?1:i?i[s].lastPosition:r[s];let u=o.immediate,d=c;if(!u){if(d=a.lastPosition,l.tension<=0)return void(a.done=!0);let t=a.elapsedTime+=e;const n=o.fromValues[s],r=null!=a.v0?a.v0:a.v0=$a.arr(l.velocity)?l.velocity[s]:l.velocity;let i;const p=l.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if($a.und(l.duration))if(l.decay){const e=!0===l.decay?.998:l.decay,o=Math.exp(-(1-e)*t);d=n+r/(1-e)*(1-o),u=Math.abs(a.lastPosition-d)<=p,i=r*o}else{i=null==a.lastVelocity?r:a.lastVelocity;const t=l.restVelocity||p/10,o=l.clamp?0:l.bounce,s=!$a.und(o),m=n==c?a.v0>0:n<c;let f,g=!1;const h=1,b=Math.ceil(e/h);for(let e=0;e<b&&(f=Math.abs(i)>t,f||(u=Math.abs(c-d)<=p,!u));++e){s&&(g=d==c||d>c==m,g&&(i=-i*o,d=c));i+=(1e-6*-l.tension*(d-c)+.001*-l.friction*i)/l.mass*h,d+=i*h}}else{let o=1;l.duration>0&&(this._memoizedDuration!==l.duration&&(this._memoizedDuration=l.duration,a.durationProgress>0&&(a.elapsedTime=l.duration*a.durationProgress,t=a.elapsedTime+=e)),o=(l.progress||0)+t/this._memoizedDuration,o=o>1?1:o<0?0:o,a.durationProgress=o),d=n+l.easing(o)*(c-n),i=(d-a.lastPosition)/e,u=1==o}a.lastVelocity=i,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}i&&!i[s].done&&(u=!1),u?a.done=!0:t=!1,a.setValue(d,l.round)&&(n=!0)}));const a=vc(this),s=a.getValue();if(t){const e=Gs(o.to);s===e&&!n||l.decay?n&&l.decay&&this._onChange(s):(a.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(s)}set(e){return xa.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(uu(this)){const{to:e,config:t}=this.animation;xa.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return $a.und(e)?(n=this.queue||[],this.queue=[]):n=[$a.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Xc(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),nu(this._state,e&&this._lastCallId),xa.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:o}=e;n=$a.obj(n)?n[t]:n,(null==n||$c(n))&&(n=void 0),o=$a.obj(o)?o[t]:o,null==o&&(o=void 0);const r={to:n,from:o};return cu(this)||(e.reverse&&([n,o]=[o,n]),o=Gs(o),$a.und(o)?vc(this)||this._set(n):this._set(o)),r}_update({...e},t){const{key:n,defaultProps:o}=this;e.default&&Object.assign(o,zc(e,((e,t)=>/^on/.test(t)?Ac(e,n):e))),yu(this,e,"onProps"),Eu(this,"onProps",e,this);const r=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const l=this._state;return Yc(++this._lastCallId,{key:n,props:e,defaultProps:o,state:l,actions:{pause:()=>{du(this)||(mu(this,!0),Qa(l.pauseQueue),Eu(this,"onPause",Jc(this,gu(this,this.animation.to)),this))},resume:()=>{du(this)&&(mu(this,!1),uu(this)&&this._resume(),Qa(l.resumeQueue),Eu(this,"onResume",Jc(this,gu(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=hu(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(eu(this));const o=!$a.und(e.to),r=!$a.und(e.from);if(o||r){if(!(t.callId>this._lastToId))return n(eu(this));this._lastToId=t.callId}const{key:l,defaultProps:i,animation:a}=this,{to:s,from:c}=a;let{to:u=s,from:d=c}=e;!r||o||t.default&&!$a.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!ja(d,c);p&&(a.from=d),d=Gs(d);const m=!ja(u,s);m&&this._focus(u);const f=$c(t.to),{config:g}=a,{decay:h,velocity:b}=g;(o||r)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(qc(n={...n},t),t={...n,...t}),qc(e,t),Object.assign(e,t);for(const t in Kc)null==e[t]&&(e[t]=Kc[t]);let{frequency:o,damping:r}=e;const{mass:l}=e;$a.und(o)||(o<.01&&(o=.01),r<0&&(r=0),e.tension=Math.pow(2*Math.PI/o,2)*l,e.friction=4*Math.PI*r*l/o)}(g,Lc(t.config,l),t.config!==i.config?Lc(i.config,l):void 0);let v=vc(this);if(!v||$a.und(u))return n(Jc(this,!0));const _=$a.und(t.reset)?r&&!t.default:!$a.und(d)&&Rc(t.reset,l),k=_?d:this.get(),y=Gc(u),E=$a.num(y)||$a.arr(y)||uc(y),w=!f&&(!E||Rc(i.immediate||t.immediate,l));if(m){const e=Ic(u);if(e!==v.constructor){if(!w)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(y)}}const S=v.constructor;let C=Hs(u),x=!1;if(!C){const e=_||!cu(this)&&p;(m||e)&&(x=ja(Gc(k),y),C=!x),(ja(a.immediate,w)||w)&&ja(g.decay,h)&&ja(g.velocity,b)||(C=!0)}if(x&&uu(this)&&(a.changed&&!_?C=!0:C||this._stop(s)),!f&&((C||Hs(s))&&(a.values=v.getPayload(),a.toValues=Hs(u)?null:S==wc?[1]:qa(y)),a.immediate!=w&&(a.immediate=w,w||_||this._set(s)),C)){const{onRest:e}=a;Wa(ku,(e=>yu(this,t,e)));const o=Jc(this,gu(this,s));Qa(this._pendingCalls,o),this._pendingCalls.add(n),a.changed&&xa.batchedUpdates((()=>{a.changed=!_,e?.(o,this),_?Lc(i.onRest,o):a.onStart?.(o,this)}))}_&&this._set(k),f?n(tu(t.to,t,this._state,this)):C?this._start():uu(this)&&!m?this._pendingCalls.add(n):n(Qc(k))}_focus(e){const t=this.animation;e!==t.to&&(Us(this)&&this._detach(),t.to=e,Us(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Hs(t)&&(Ks(t,this),lu(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Hs(e)&&qs(e,this)}_set(e,t=!0){const n=Gs(e);if(!$a.und(n)){const e=vc(this);if(!e||!ja(n,e.getValue())){const o=Ic(n);e&&e.constructor==o?e.setValue(n):_c(this,o.create(n)),e&&xa.batchedUpdates((()=>{this._onChange(n,t)}))}}return vc(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Eu(this,"onStart",Jc(this,gu(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Lc(this.animation.onChange,e,this)),Lc(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;vc(this).reset(Gs(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),uu(this)||(pu(this,!0),du(this)||this._resume())}_resume(){Sa.skipAnimation?this.finish():ss.start(this)}_stop(e,t){if(uu(this)){pu(this,!1);const n=this.animation;Wa(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),$s(this,{type:"idle",parent:this});const o=t?eu(this.get()):Jc(this.get(),gu(this,e??n.to));Qa(this._pendingCalls,o),n.changed&&(n.changed=!1,Eu(this,"onRest",o,this))}}};function gu(e,t){const n=Gc(t);return ja(Gc(e.get()),n)}function hu(e,t=e.loop,n=e.to){const o=Lc(t);if(o){const r=!0!==o&&Hc(o),l=(r||e).reverse,i=!r||r.reset;return bu({...e,loop:t,default:!1,pause:void 0,to:!l||$c(n)?n:void 0,from:i?e.from:void 0,reset:i,...r})}}function bu(e){const{to:t,from:n}=e=Hc(e),o=new Set;return $a.obj(t)&&_u(t,o),$a.obj(n)&&_u(n,o),e.keys=o.size?Array.from(o):null,e}function vu(e){const t=bu(e);return $a.und(t.default)&&(t.default=zc(t)),t}function _u(e,t){Ka(e,((e,n)=>null!=e&&t.add(n)))}var ku=["onStart","onRest","onChange","onPause","onResume"];function yu(e,t,n){e.animation[n]=t[n]!==Dc(t,n)?Ac(t[n],e.key):void 0}function Eu(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var wu=["onStart","onChange","onRest"],Su=1,Cu=class{constructor(e,t){this.id=Su++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];$a.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(bu(e)),this}start(e){let{queue:t}=this;return e?t=qa(e).map(bu):this.queue=[],this._flush?this._flush(this,t):(Nu(this,t),xu(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Wa(qa(t),(t=>n[t].stop(!!e)))}else nu(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if($a.und(e))this.start({pause:!0});else{const t=this.springs;Wa(qa(e),(e=>t[e].pause()))}return this}resume(e){if($a.und(e))this.start({pause:!1});else{const t=this.springs;Wa(qa(e),(e=>t[e].resume()))}return this}each(e){Ka(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size>0,r=this._changed.size>0;(o&&!this._started||r&&!this._started)&&(this._started=!0,Za(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const l=!o&&this._started,i=r||l&&n.size?this.get():null;r&&t.size&&Za(t,(([e,t])=>{t.value=i,e(t,this,this._item)})),l&&(this._started=!1,Za(n,(([e,t])=>{t.value=i,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}xa.onFrame(this._onFrame)}};function xu(e,t){return Promise.all(t.map((t=>Bu(e,t)))).then((t=>Xc(e,t)))}async function Bu(e,t,n){const{keys:o,to:r,from:l,loop:i,onRest:a,onResolve:s}=t,c=$a.obj(t.default)&&t.default;i&&(t.loop=!1),!1===r&&(t.to=null),!1===l&&(t.from=null);const u=$a.arr(r)||$a.fun(r)?r:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Wa(wu,(n=>{const o=t[n];if($a.fun(o)){const r=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=r.get(o);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(o,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Qa(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(o||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),m=!0===t.cancel||!0===Dc(t,"cancel");(u||m&&d.asyncId)&&p.push(Yc(++e._lastAsyncId,{props:t,state:d,actions:{pause:Ua,resume:Ua,start(t,n){m?(nu(d,e._lastAsyncId),n(eu(e))):(t.onRest=a,n(tu(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Xc(e,await Promise.all(p));if(i&&f.finished&&(!n||!f.noop)){const n=hu(t,i,r);if(n)return Nu(e,[n]),Bu(e,n,!0)}return s&&xa.batchedUpdates((()=>s(f,e,e.item))),f}function Iu(e,t){const n={...e.springs};return t&&Wa(qa(t),(e=>{$a.und(e.keys)&&(e=bu(e)),$a.obj(e.to)||(e={...e,to:void 0}),Pu(n,e,(e=>Mu(e)))})),Tu(e,n),n}function Tu(e,t){Ka(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Ks(t,e))}))}function Mu(e,t){const n=new fu;return n.key=e,t&&Ks(n,t),n}function Pu(e,t,n){t.keys&&Wa(t.keys,(o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)}))}function Nu(e,t){Wa(t,(t=>{Pu(e.springs,t,(t=>Mu(t,e)))}))}var Lu,Ru,Au=({children:e,...t})=>{const n=(0,ya.useContext)(Du),o=t.pause||!!n.pause,r=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,ya.useState)((()=>({inputs:t,result:e()}))),o=(0,ya.useRef)(),r=o.current;let l=r;if(l){const n=Boolean(t&&l.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,l.inputs));n||(l={inputs:t,result:e()})}else l=n;return(0,ya.useEffect)((()=>{o.current=l,r==n&&(n.inputs=n.result=void 0)}),[l]),l.result}((()=>({pause:o,immediate:r})),[o,r]);const{Provider:l}=Du;return ya.createElement(l,{value:t},e)},Du=(Lu=Au,Ru={},Object.assign(Lu,ya.createContext(Ru)),Lu.Provider._context=Lu,Lu.Consumer._context=Lu,Lu);Au.Provider=Du.Provider,Au.Consumer=Du.Consumer;var Ou=()=>{const e=[],t=function(t){cc(`${ic}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const o=[];return Wa(e,((e,r)=>{if($a.und(t))o.push(e.start());else{const l=n(t,e,r);l&&o.push(e.start(l))}})),o};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Wa(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Wa(e,(e=>e.resume(...arguments))),this},t.set=function(t){Wa(e,((e,n)=>{const o=$a.fun(t)?t(n,e):t;o&&e.set(o)}))},t.start=function(t){const n=[];return Wa(e,((e,o)=>{if($a.und(t))n.push(e.start());else{const r=this._getProps(t,e,o);r&&n.push(e.start(r))}})),n},t.stop=function(){return Wa(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Wa(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return $a.fun(e)?e(n,t):e};return t._getProps=n,t};function zu(e,t,n){const o=$a.fun(t)&&t;o&&!n&&(n=[]);const r=(0,ya.useMemo)((()=>o||3==arguments.length?Ou():void 0),[]),l=(0,ya.useRef)(0),i=mc(),a=(0,ya.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=Iu(e,t);return l.current>0&&!a.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?xu(e,t):new Promise((o=>{Tu(e,n),a.queue.push((()=>{o(xu(e,t))})),i()}))}})),[]),s=(0,ya.useRef)([...a.ctrls]),c=[],u=hc(e)||0;function d(e,n){for(let r=e;r<n;r++){const e=s.current[r]||(s.current[r]=new Cu(null,a.flush)),n=o?o(r,e):t[r];n&&(c[r]=vu(n))}}(0,ya.useMemo)((()=>{Wa(s.current.slice(e,u),(e=>{jc(e,r),e.stop(!0)})),s.current.length=e,d(u,e)}),[e]),(0,ya.useMemo)((()=>{d(0,Math.min(u,e))}),n);const p=s.current.map(((e,t)=>Iu(e,c[t]))),m=(0,ya.useContext)(Au),f=hc(m),g=m!==f&&Uc(m);dc((()=>{l.current++,a.ctrls=s.current;const{queue:e}=a;e.length&&(a.queue=[],Wa(e,(e=>e()))),Wa(s.current,((e,t)=>{r?.add(e),g&&e.start({default:m});const n=c[t];n&&(Wc(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),fc((()=>()=>{Wa(a.ctrls,(e=>e.stop(!0)))}));const h=p.map((e=>({...e})));return r?[h,r]:h}function Vu(e,t){const n=$a.fun(e),[[o],r]=zu(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[o,r]:o}var Fu=class extends au{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ps(...t);const n=this._get(),o=Ic(n);_c(this,o.create(n))}advance(e){const t=this._get();ja(t,this.get())||(vc(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Gu(this._active)&&Uu(this)}_get(){const e=$a.arr(this.source)?this.source.map(Gs):qa(Gs(this.source));return this.calc(...e)}_start(){this.idle&&!Gu(this._active)&&(this.idle=!1,Wa(kc(this),(e=>{e.done=!1})),Sa.skipAnimation?(xa.batchedUpdates((()=>this.advance())),Uu(this)):ss.start(this))}_attach(){let e=1;Wa(qa(this.source),(t=>{Hs(t)&&Ks(t,this),lu(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Wa(qa(this.source),(e=>{Hs(e)&&qs(e,this)})),this._active.clear(),Uu(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=qa(this.source).reduce(((e,t)=>Math.max(e,(lu(t)?t.priority:0)+1)),0))}};function Hu(e){return!1!==e.idle}function Gu(e){return!e.size||Array.from(e).every(Hu)}function Uu(e){e.idle||(e.idle=!0,Wa(kc(e),(e=>{e.done=!0})),$s(e,{type:"idle",parent:e}))}Sa.assign({createStringInterpolator:lc,to:(e,t)=>new Fu(e,t)});ss.advance;var $u=window.ReactDOM,ju=/^--/;function Wu(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||ju.test(e)||qu.hasOwnProperty(e)&&qu[e]?(""+t).trim():t+"px"}var Ku={};var qu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zu=["Webkit","Ms","Moz","O"];qu=Object.keys(qu).reduce(((e,t)=>(Zu.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),qu);var Yu=/^(matrix|translate|scale|rotate|skew)/,Xu=/^(translate)/,Qu=/^(rotate|skew)/,Ju=(e,t)=>$a.num(e)&&0!==e?e+t:e,ed=(e,t)=>$a.arr(e)?e.every((e=>ed(e,t))):$a.num(e)?e===t:parseFloat(e)===t,td=class extends Cc{constructor({x:e,y:t,z:n,...o}){const r=[],l=[];(e||t||n)&&(r.push([e||0,t||0,n||0]),l.push((e=>[`translate3d(${e.map((e=>Ju(e,"px"))).join(",")})`,ed(e,0)]))),Ka(o,((e,t)=>{if("transform"===t)r.push([e||""]),l.push((e=>[e,""===e]));else if(Yu.test(t)){if(delete o[t],$a.und(e))return;const n=Xu.test(t)?"px":Qu.test(t)?"deg":"";r.push(qa(e)),l.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${Ju(r,n)})`,ed(r,0)]:e=>[`${t}(${e.map((e=>Ju(e,n))).join(",")})`,ed(e,t.startsWith("scale")?1:0)])}})),r.length&&(o.transform=new nd(r,l)),super(o)}},nd=class extends js{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Wa(this.inputs,((n,o)=>{const r=Gs(n[0]),[l,i]=this.transforms[o]($a.arr(r)?r:n.map(Gs));e+=" "+l,t=t&&i})),t?"none":e}observerAdded(e){1==e&&Wa(this.inputs,(e=>Wa(e,(e=>Hs(e)&&Ks(e,this)))))}observerRemoved(e){0==e&&Wa(this.inputs,(e=>Wa(e,(e=>Hs(e)&&qs(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),$s(this,e)}};Sa.assign({batchedUpdates:$u.unstable_batchedUpdates,createStringInterpolator:lc,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var od=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Cc(e)),getComponentProps:o=(e=>e)}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},l=e=>{const t=Nc(e)||"Anonymous";return(e=$a.str(e)?l[e]||(l[e]=Tc(e,r)):e[Pc]||(e[Pc]=Tc(e,r))).displayName=`Animated(${t})`,e};return Ka(e,((t,n)=>{$a.arr(e)&&(n=Nc(t)),l[n]=l(t)})),{animated:l}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:o,children:r,scrollTop:l,scrollLeft:i,viewBox:a,...s}=t,c=Object.values(s),u=Object.keys(s).map((t=>n||e.hasAttribute(t)?t:Ku[t]||(Ku[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==r&&(e.textContent=r);for(const t in o)if(o.hasOwnProperty(t)){const n=Wu(t,o[t]);ju.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==l&&(e.scrollTop=l),void 0!==i&&(e.scrollLeft=i),void 0!==a&&e.setAttribute("viewBox",a)},createAnimatedStyle:e=>new td(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),rd=od.animated;const ld=e=>e+1,id=e=>({top:e.offsetTop,left:e.offsetLeft});var ad=function({isSelected:e,adjustScrolling:t,enableAnimation:n,triggerAnimationOnChange:o}){const r=(0,c.useRef)(),l=(0,p.useReducedMotion)()||!n,[i,a]=(0,c.useReducer)(ld,0),[s,u]=(0,c.useReducer)(ld,0),[d,m]=(0,c.useState)({x:0,y:0}),f=(0,c.useMemo)((()=>r.current?id(r.current):null),[o]),g=(0,c.useMemo)((()=>{if(!t||!r.current)return()=>{};const e=(0,ea.getScrollContainer)(r.current);if(!e)return()=>{};const n=r.current.getBoundingClientRect();return()=>{const t=r.current.getBoundingClientRect().top-n.top;t&&(e.scrollTop+=t)}}),[o,t]);return(0,c.useLayoutEffect)((()=>{i&&u()}),[i]),(0,c.useLayoutEffect)((()=>{if(!f)return;if(l)return void g();r.current.style.transform=void 0;const e=id(r.current);a(),m({x:Math.round(f.left-e.left),y:Math.round(f.top-e.top)})}),[o]),Vu({from:{x:d.x,y:d.y},to:{x:0,y:0},reset:i!==s,config:{mass:5,tension:2e3,friction:200},immediate:l,onChange:function({value:t}){if(!r.current)return;let{x:n,y:o}=t;n=Math.round(n),o=Math.round(o);const l=0===n&&0===o;r.current.style.transformOrigin="center center",r.current.style.transform=l?void 0:`translate3d(${n}px,${o}px,0)`,r.current.style.zIndex=e?"1":"",g()}}),r};const sd=".block-editor-block-list__block",cd=".block-list-appender",ud=".block-editor-button-block-appender";function dd(e,t){return t.closest([sd,cd,ud].join(","))===e}function pd(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(sd);return t?t.id.slice(6):void 0}function md(e){const t=(0,c.useRef)(),n=function(e){return(0,f.useSelect)((t=>{const{getSelectedBlocksInitialCaretPosition:n,__unstableGetEditorMode:o,isBlockSelected:r}=t(Go);if(r(e)&&"edit"===o())return n()}),[e])}(e),{isBlockSelected:o,isMultiSelecting:r}=(0,f.useSelect)(Go);return(0,c.useEffect)((()=>{if(!o(e)||r())return;if(null==n)return;if(!t.current)return;const{ownerDocument:l}=t.current;if(dd(t.current,l.activeElement))return;const i=ea.focus.tabbable.find(t.current).filter((e=>(0,ea.isTextField)(e))),a=-1===n,s=i[a?i.length-1:0]||t.current;if(dd(t.current,s)){if(!t.current.getAttribute("contenteditable")){const e=ea.focus.tabbable.findNext(t.current);if(e&&dd(t.current,e)&&(0,ea.isFormElement)(e))return void e.focus()}(0,ea.placeCaretAtHorizontalEdge)(s,a)}else t.current.focus()}),[n,e]),t}function fd(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function gd(){const e=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return t().outlineMode}),[]);return(0,p.useRefEffect)((t=>{if(e)return t.addEventListener("mouseout",fd),t.addEventListener("mouseover",fd),()=>{t.removeEventListener("mouseout",fd),t.removeEventListener("mouseover",fd),t.classList.remove("is-hovered")}}),[e])}function hd(e){return(0,f.useSelect)((t=>{const{isBlockBeingDragged:n,isBlockHighlighted:o,isBlockSelected:r,isBlockMultiSelected:l,getBlockName:i,getSettings:s,hasSelectedInnerBlock:c,isTyping:u,__unstableIsFullySelected:p,__unstableSelectionHasUnmergeableBlock:m}=t(Go),{outlineMode:f}=s(),g=n(e),h=r(e),b=i(e),v=c(e,!0),_=l(e);return d()({"is-selected":h,"is-highlighted":o(e),"is-multi-selected":_,"is-partially-selected":_&&!p()&&!m(),"is-reusable":(0,a.isReusableBlock)((0,a.getBlockType)(b)),"is-dragging":g,"has-child-selected":v,"remove-outline":h&&f&&u()})}),[e])}function bd(e){return(0,f.useSelect)((t=>{const n=t(Go).getBlockName(e),o=(0,a.getBlockType)(n);if(o?.apiVersion>1)return(0,a.getBlockDefaultClassName)(n)}),[e])}function vd(e){return(0,f.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(Go),r=o(e);if(!r?.className)return;const l=(0,a.getBlockType)(n(e));return l?.apiVersion>1?r.className:void 0}),[e])}function _d(e){return(0,f.useSelect)((t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:r,getBlockRootClientId:l,isBlockSelected:i}=t(Go);if(!i(e))return;const a=n();return a?d()("is-block-moving-mode",{"can-insert-moving-block":o(r(a),l(e))}):void 0}),[e])}function kd(e){const{isBlockSelected:t}=(0,f.useSelect)(Go),{selectBlock:n,selectionChange:o}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((r=>{function l(l){r.parentElement.closest('[contenteditable="true"]')||(t(e)?l.target.isContentEditable||o(e):dd(r,l.target)&&n(e))}return r.addEventListener("focusin",l),()=>{r.removeEventListener("focusin",l)}}),[t,n])}var yd=window.wp.keycodes;function Ed(e){const t=(0,f.useSelect)((t=>t(Go).isBlockSelected(e)),[e]),{getBlockRootClientId:n,getBlockIndex:o}=(0,f.useSelect)(Go),{insertDefaultBlock:r,removeBlock:l}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((i=>{if(t)return i.addEventListener("keydown",a),i.addEventListener("dragstart",s),()=>{i.removeEventListener("keydown",a),i.removeEventListener("dragstart",s)};function a(t){const{keyCode:a,target:s}=t;a!==yd.ENTER&&a!==yd.BACKSPACE&&a!==yd.DELETE||s!==i||(0,ea.isTextField)(s)||(t.preventDefault(),a===yd.ENTER?r({},n(e),o(e)+1):l(e))}function s(e){e.preventDefault()}}),[e,t,n,o,r,l])}function wd(e){const{isNavigationMode:t,isBlockSelected:n}=(0,f.useSelect)(Go),{setNavigationMode:o,selectBlock:r}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((l=>{function i(l){t()&&!l.defaultPrevented&&(l.preventDefault(),n(e)?o(!1):r(e))}return l.addEventListener("mousedown",i),()=>{l.addEventListener("mousedown",i)}}),[e,t,n,o])}const Sd=(0,c.createContext)({refs:new Map,callbacks:new Map});function Cd({children:e}){const t=(0,c.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,c.createElement)(Sd.Provider,{value:t},e)}function xd(e){const{refs:t,callbacks:n}=(0,c.useContext)(Sd),o=(0,c.useRef)();return(0,c.useLayoutEffect)((()=>(t.set(o,e),()=>{t.delete(o)})),[e]),(0,p.useRefEffect)((t=>{o.current=t,n.forEach(((n,o)=>{e===n&&o(t)}))}),[e])}function Bd(e){const{refs:t}=(0,c.useContext)(Sd),n=(0,c.useRef)();return n.current=e,(0,c.useMemo)((()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}})),[])}function Id(e){const{callbacks:t}=(0,c.useContext)(Sd),n=Bd(e),[o,r]=(0,c.useState)(null);return(0,c.useLayoutEffect)((()=>{if(e)return t.set(r,e),()=>{t.delete(r)}}),[e]),n.current||o}function Td(){const e=(0,c.useContext)(Yg);return(0,p.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function Md(e){return(0,f.useSelect)((t=>{const{__unstableHasActiveBlockOverlayActive:n}=t(Go);return n(e)}),[e])}const Pd=200;function Nd(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:o,wrapperProps:r={},isAligned:l}=(0,c.useContext)(Ci),{index:i,mode:s,name:u,blockApiVersion:m,blockTitle:g,isPartOfSelection:h,adjustScrolling:b,enableAnimation:_,isSubtreeDisabled:k}=(0,f.useSelect)((e=>{const{getBlockAttributes:t,getBlockIndex:o,getBlockMode:r,getBlockName:l,isTyping:i,getGlobalBlockCount:s,isBlockSelected:c,isBlockMultiSelected:u,isAncestorMultiSelected:d,isFirstMultiSelectedBlock:p,isBlockSubtreeDisabled:m}=Fo(e(Go)),{getActiveBlockVariation:f}=e(a.store),g=c(n),h=u(n)||d(n),b=l(n),v=(0,a.getBlockType)(b),_=f(b,t(n));return{index:o(n),mode:r(n),name:b,blockApiVersion:v?.apiVersion||1,blockTitle:_?.title||v?.title,isPartOfSelection:g||h,adjustScrolling:g||p(n),enableAnimation:!i()&&s()<=Pd,isSubtreeDisabled:m(n)}}),[n]),y=Md(n),E=(0,v.sprintf)((0,v.__)("Block: %s"),g),w="html"!==s||t?"":"-visual",S=(0,p.useMergeRefs)([e.ref,md(n),xd(n),kd(n),Ed(n),wd(n),gd(),Td(),ad({isSelected:h,adjustScrolling:b,enableAnimation:_,triggerAnimationOnChange:i}),(0,p.useDisabled)({isDisabled:!y})]),C=Ko();return m<2&&n===C.clientId&&"undefined"!=typeof process&&process.env,{tabIndex:0,...r,...e,ref:S,id:`block-${n}${w}`,role:"document","aria-label":E,"data-block":n,"data-type":u,"data-title":g,inert:k?"true":void 0,className:d()(d()("block-editor-block-list__block",{"wp-block":!l,"has-block-overlay":y}),o,e.className,r.className,hd(n),bd(n),vd(n),_d(n)),style:{...r.style,...e.style}}}function Ld({children:e,isHtml:t,...n}){return(0,c.createElement)("div",{...Nd(n,{__unstableIsHtml:t})},e)}Nd.save=a.__unstableGetBlockProps;const Rd=(0,f.withSelect)(((e,{clientId:t,rootClientId:n})=>{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:l,getTemplateLock:i,__unstableGetBlockWithoutInnerBlocks:a,canRemoveBlock:s,canMoveBlock:c}=e(Go),u=a(t),d=o(t),p=i(n),m=s(t,n),f=c(t,n),{name:g,attributes:h,isValid:b}=u||{};return{mode:r(t),isSelectionEnabled:l(),isLocked:!!p,canRemove:m,canMove:f,block:u,name:g,attributes:h,isValid:b,isSelected:d}})),Ad=(0,f.withDispatch)(((e,t,n)=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:l,replaceBlocks:i,toggleSelection:s,__unstableMarkLastChangeAsPersistent:c,moveBlocksToPosition:u,removeBlock:d}=e(Go);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n.select(Go),l=r(),{clientId:i}=t,a=l.length?l:[i];o(a,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:l}=t,{getBlockIndex:i}=n.select(Go),a=i(o);r(e,a+1,l)},onMerge(e){const{clientId:o,rootClientId:i}=t,{getPreviousBlockClientId:s,getNextBlockClientId:c,getBlock:p,getBlockAttributes:m,getBlockName:f,getBlockOrder:g,getBlockIndex:h,getBlockRootClientId:b,canInsertBlockType:v}=n.select(Go);function _(e,t=!0){const o=b(e),l=g(e),[i]=l;1===l.length&&(0,a.isUnmodifiedBlock)(p(i))?d(e):n.batch((()=>{if(v(f(i),o))u([i],e,o,h(e));else{const n=(0,a.switchToBlockType)(p(i),(0,a.getDefaultBlockName)());n&&n.length&&(r(n,h(e),o,t),d(i,!1))}!g(e).length&&(0,a.isUnmodifiedBlock)(p(e))&&d(e,!1)}))}if(e){if(i){const e=c(i);if(e){if(f(i)!==f(e))return void l(i,e);{const t=m(i),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{u(g(e),e,i),d(e,!1)}))}}}const e=c(o);if(!e)return;g(e).length?_(e,!1):l(o,e)}else{const e=s(o);if(e)l(e,o);else if(i){const e=s(i);if(e&&f(i)===f(e)){const t=m(i),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{u(g(i),i,e),d(i,!1)}))}_(i)}}},onReplace(e,n,o){e.length&&!(0,a.isUnmodifiedDefaultBlock)(e[e.length-1])&&c(),i([t.clientId],e,n,o)},toggleSelection(e){s(e)}}}));var Dd=(0,p.compose)(p.pure,Rd,Ad,(0,p.ifCondition)((({block:e})=>!!e)),(0,m.withFilters)("editor.BlockListBlock"))((function({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:o,clientId:r,isSelected:l,isSelectionEnabled:i,className:s,__unstableLayoutClassNames:u,name:p,isValid:m,attributes:g,wrapperProps:h,setAttributes:b,onReplace:v,onInsertBlocksAfter:_,onMerge:k,toggleSelection:y}){var E;const{themeSupportsLayout:w,isTemporarilyEditingAsBlocks:S,blockEditingMode:C}=(0,f.useSelect)((e=>{const{getSettings:t,__unstableGetTemporarilyEditingAsBlocks:n,getBlockEditingMode:o}=Fo(e(Go));return{themeSupportsLayout:t().supportsLayout,isTemporarilyEditingAsBlocks:n()===r,blockEditingMode:o(r)}}),[r]),{removeBlock:x}=(0,f.useDispatch)(Go),B=(0,c.useCallback)((()=>x(r)),[r]),I=di()||{};let T=(0,c.createElement)(aa,{name:p,isSelected:l,attributes:g,setAttributes:b,insertBlocksAfter:n?void 0:_,onReplace:o?v:void 0,onRemove:o?B:void 0,mergeBlocks:o?k:void 0,clientId:r,isSelectionEnabled:i,toggleSelection:y,__unstableLayoutClassNames:u,__unstableParentLayout:Object.keys(I).length?I:void 0});const M=(0,a.getBlockType)(p);"disabled"===C&&(h={...h,tabIndex:-1}),M?.getEditWrapperProps&&(h=function(e,t){const n={...e,...t};return e?.className&&t?.className&&(n.className=d()(e.className,t.className)),e?.style&&t?.style&&(n.style={...e.style,...t.style}),n}(h,M.getEditWrapperProps(g)));const P=h&&!!h["data-align"]&&!w;let N;if(P&&(T=(0,c.createElement)("div",{className:"wp-block","data-align":h["data-align"]},T)),m)N="html"===t?(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{style:{display:"none"}},T),(0,c.createElement)(Ld,{isHtml:!0},(0,c.createElement)(ka,{clientId:r}))):M?.apiVersion>1?T:(0,c.createElement)(Ld,{...h},T);else{const t=e?(0,a.serializeRawBlock)(e):(0,a.getSaveContent)(M,g);N=(0,c.createElement)(Ld,{className:"has-warning"},(0,c.createElement)(fa,{clientId:r}),(0,c.createElement)(c.RawHTML,null,(0,ea.safeHTML)(t)))}const{"data-align":L,...R}=null!==(E=h)&&void 0!==E?E:{},A={clientId:r,className:d()({"is-editing-disabled":"disabled"===C,"is-content-locked-temporarily-editing-as-blocks":S},L&&w&&`align${L}`,s),wrapperProps:R,isAligned:P},D=(0,c.useMemo)((()=>A),Object.values(A));return(0,c.createElement)(Ci.Provider,{value:D},(0,c.createElement)(va,{fallback:(0,c.createElement)(Ld,{className:"has-warning"},(0,c.createElement)(ha,null))},N))})),Od=window.wp.htmlEntities;var zd=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const Vd=[(0,c.createInterpolateElement)((0,v.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,c.createElement)("kbd",null)}),(0,c.createInterpolateElement)((0,v.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,c.createElement)("kbd",null)}),(0,c.createInterpolateElement)((0,v.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,c.createElement)("kbd",null)}),(0,v.__)("Drag files into the editor to automatically insert media blocks."),(0,v.__)("Change a block's type by pressing the block icon on the toolbar.")];var Fd=function(){const[e]=(0,c.useState)(Math.floor(Math.random()*Vd.length));return(0,c.createElement)(m.Tip,null,Vd[e])};var Hd=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var Gd=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var Ud=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));var $d=(0,c.memo)((function({icon:e,showColors:t=!1,className:n,context:o}){"block-default"===e?.src&&(e={src:Ud});const r=(0,c.createElement)(m.Icon,{icon:e&&e.src?e.src:e,context:o}),l=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,c.createElement)("span",{style:l,className:d()("block-editor-block-icon",n,{"has-colors":t})},r)}));var jd=function({title:e,icon:t,description:n,blockType:o,className:r}){o&&($()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=o));const{parentNavBlockClientId:l}=(0,f.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(Go);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[]),{selectBlock:i}=(0,f.useDispatch)(Go);return(0,c.createElement)("div",{className:d()("block-editor-block-card",r)},l&&(0,c.createElement)(m.Button,{onClick:()=>i(l),label:(0,v.__)("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:(0,v.isRTL)()?Hd:Gd,isSmall:!0}),(0,c.createElement)($d,{icon:t,showColors:!0}),(0,c.createElement)("div",{className:"block-editor-block-card__content"},(0,c.createElement)("h2",{className:"block-editor-block-card__title"},e),(0,c.createElement)("span",{className:"block-editor-block-card__description"},n)))};const Wd=(0,p.createHigherOrderComponent)((e=>(0,f.withRegistry)((({useSubRegistry:t=!0,registry:n,...o})=>{if(!t)return(0,c.createElement)(e,{registry:n,...o});const[r,l]=(0,c.useState)(null);return(0,c.useEffect)((()=>{const e=(0,f.createRegistry)({},n);e.registerStore(Oo,Ho),l(e)}),[n]),r?(0,c.createElement)(f.RegistryProvider,{value:r},(0,c.createElement)(e,{registry:r,...o})):null}))),"withRegistryProvider");const Kd=()=>{};function qd({clientId:e=null,value:t,selection:n,onChange:o=Kd,onInput:r=Kd}){const l=(0,f.useRegistry)(),{resetBlocks:i,resetSelection:s,replaceInnerBlocks:u,selectBlock:d,setHasControlledInnerBlocks:p,__unstableMarkNextChangeAsNotPersistent:m}=l.dispatch(Go),{hasSelectedBlock:g,getBlockName:h,getBlocks:b,getSelectionStart:v,getSelectionEnd:_,getBlock:k}=l.select(Go),y=(0,f.useSelect)((t=>!e||t(Go).areInnerBlocksControlled(e)),[e]),E=(0,c.useRef)({incoming:null,outgoing:[]}),w=(0,c.useRef)(!1),S=()=>{t&&(m(),e?l.batch((()=>{p(e,!0);const n=t.map((e=>(0,a.cloneBlock)(e)));w.current&&(E.current.incoming=n),m(),u(e,n)})):(w.current&&(E.current.incoming=t),i(t)))},C=(0,c.useRef)(r),x=(0,c.useRef)(o);(0,c.useEffect)((()=>{C.current=r,x.current=o}),[r,o]),(0,c.useEffect)((()=>{if(E.current.outgoing.includes(t))E.current.outgoing[E.current.outgoing.length-1]===t&&(E.current.outgoing=[]);else if(b(e)!==t){E.current.outgoing=[];const t=g(),o=v(),r=_();if(S(),n)s(n.selectionStart,n.selectionEnd,n.initialPosition);else{const n=k(o.clientId);t&&!n?d(e):s(o,r)}}}),[t,e]),(0,c.useEffect)((()=>{y||(E.current.outgoing=[],S())}),[y]),(0,c.useEffect)((()=>{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableIsLastBlockChangeIgnored:o,areInnerBlocksControlled:r}=l.select(Go);let i=b(e),a=n(),s=!1;w.current=!0;const c=l.subscribe((()=>{if(null!==e&&null===h(e))return;if(!(!e||r(e)))return;const l=n(),c=b(e),u=c!==i;if(i=c,u&&(E.current.incoming||o()))return E.current.incoming=null,void(a=l);if(u||s&&!u&&l&&!a){a=l,E.current.outgoing.push(i);(a?x.current:C.current)(i,{selection:{selectionStart:v(),selectionEnd:_(),initialPosition:t()}})}s=u}));return()=>{w.current=!1,c()}}),[l,e]),(0,c.useEffect)((()=>()=>{m(),e?(p(e,!1),m(),u(e,[])):i([])}),[])}const Zd=Wd((e=>{const{children:t,settings:n,stripExperimentalSettings:o=!1}=e,{__experimentalUpdateSettings:r}=Fo((0,f.useDispatch)(Go));return(0,c.useEffect)((()=>{r({...n,__internalIsInitialized:!0},o)}),[n]),qd(e),(0,c.createElement)(Cd,null,t)}));var Yd=e=>(0,c.createElement)(Zd,{...e,stripExperimentalSettings:!0},e.children);function Xd(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=(0,f.useSelect)(Go),{clearSelectedBlock:o}=(0,f.useDispatch)(Go),{clearBlockSelection:r}=e();return(0,p.useRefEffect)((e=>{if(r)return e.addEventListener("mousedown",l),()=>{e.removeEventListener("mousedown",l)};function l(r){(t()||n())&&r.target===e&&o()}}),[t,n,o,r])}function Qd(e){return(0,c.createElement)("div",{ref:Xd(),...e})}function Jd(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r,getSelectedBlocksInitialCaretPosition:l,__unstableIsFullySelected:i}=e(Go);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r(),initialPosition:l(),isFullSelection:i()}}function ep(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r,isFullSelection:l}=(0,f.useSelect)(Jd,[]);return(0,p.useRefEffect)((r=>{const{ownerDocument:i}=r,{defaultView:a}=i;if(null==e)return;if(!o||t)return;const{length:s}=n;s<2||l&&(r.contentEditable=!0,r.focus(),a.getSelection().removeAllRanges())}),[o,t,n,r,e,l])}function tp(e,t,n,o){let r,l=ea.focus.focusable.find(n);return t&&l.reverse(),l=l.slice(l.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),l.find((function(e){if(1!==e.children.length||!function(e,t){return e.closest(sd)===t.closest(sd)}(e,e.firstElementChild)||"true"!==e.firstElementChild.getAttribute("contenteditable")){if(!ea.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}}))}function np(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:o,__unstableIsFullySelected:r}=(0,f.useSelect)(Go),{selectBlock:l}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((i=>{let a;function s(){a=null}function c(s){if(s.defaultPrevented)return;const{keyCode:c,target:u,shiftKey:d,ctrlKey:p,altKey:m,metaKey:f}=s,g=c===yd.UP,h=c===yd.DOWN,b=c===yd.LEFT,v=c===yd.RIGHT,_=g||b,k=b||v,y=g||h,E=k||y,w=d||p||m||f,S=y?ea.isVerticalEdge:ea.isHorizontalEdge,{ownerDocument:C}=i,{defaultView:x}=C;if(!E)return;if(o()){if(d)return;if(!r())return;return s.preventDefault(),void(_?l(e()):l(t(),-1))}if(!function(e,t,n){const o=t===yd.UP||t===yd.DOWN,{tagName:r}=e,l=e.getAttribute("type");if(o&&!n)return"INPUT"!==r||!["date","datetime-local","month","number","range","time","week"].includes(l);if("INPUT"===r)return["button","checkbox","number","color","file","image","radio","reset","submit"].includes(l);return"TEXTAREA"!==r}(u,c,w))return;y?a||(a=(0,ea.computeCaretRect)(x)):a=null;const B=(0,ea.isRTL)(u)?!_:_,{keepCaretInsideBlock:I}=n();if(d)(function(e,t){const n=tp(e,t,i);return n&&pd(n)})(u,_)&&S(u,_)&&(i.contentEditable=!0,i.focus());else if(!y||!(0,ea.isVerticalEdge)(u,_)||m&&!(0,ea.isHorizontalEdge)(u,B)||I){if(k&&x.getSelection().isCollapsed&&(0,ea.isHorizontalEdge)(u,B)&&!I){const e=tp(u,B,i);(0,ea.placeCaretAtHorizontalEdge)(e,_),s.preventDefault()}}else{const e=tp(u,_,i,!0);e&&((0,ea.placeCaretAtVerticalEdge)(e,m?!_:_,m?void 0:a),s.preventDefault())}}return i.addEventListener("mousedown",s),i.addEventListener("keydown",c),()=>{i.removeEventListener("mousedown",s),i.removeEventListener("keydown",c)}}),[])}var op=window.wp.keyboardShortcuts;function rp(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,f.useSelect)(Go),{multiSelect:o,selectBlock:r}=(0,f.useDispatch)(Go),l=(0,op.__unstableUseShortcutEventMatch)();return(0,p.useRefEffect)((i=>{function a(a){if(!l("core/block-editor/select-all",a))return;const s=t();if(s.length<2&&!(0,ea.isEntirelySelected)(a.target))return;a.preventDefault();const[c]=s,u=n(c),d=e(u);s.length!==d.length?o(d[0],d[d.length-1]):u&&(i.ownerDocument.defaultView.getSelection().removeAllRanges(),r(u))}return i.addEventListener("keydown",a),()=>{i.removeEventListener("keydown",a)}}),[])}function lp(e,t){e.contentEditable=t,t&&e.focus()}function ip(){const{startMultiSelect:e,stopMultiSelect:t}=(0,f.useDispatch)(Go),{isSelectionEnabled:n,hasMultiSelection:o,isDraggingBlocks:r}=(0,f.useSelect)(Go);return(0,p.useRefEffect)((l=>{const{ownerDocument:i}=l,{defaultView:a}=i;let s,c;function u(){t(),a.removeEventListener("mouseup",u),c=a.requestAnimationFrame((()=>{if(o())return;lp(l,!1);const e=a.getSelection();if(e.rangeCount){const{commonAncestorContainer:t}=e.getRangeAt(0);s.contains(t)&&s.focus()}}))}function d({buttons:t,target:o}){r()||1===t&&"true"===o.getAttribute("contenteditable")&&n()&&(s=i.activeElement,e(),a.addEventListener("mouseup",u),lp(l,!0))}return l.addEventListener("mouseout",d),()=>{l.removeEventListener("mouseout",d),a.removeEventListener("mouseup",u),a.cancelAnimationFrame(c)}}),[e,t,n,o])}function ap(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t),t&&e.focus()}function sp(){const{multiSelect:e,selectBlock:t,selectionChange:n}=(0,f.useDispatch)(Go),{getBlockParents:o,getBlockSelectionStart:r}=(0,f.useSelect)(Go);return(0,p.useRefEffect)((n=>{const{ownerDocument:l}=n,{defaultView:i}=l;function a(l){const a=i.getSelection();if(!a.rangeCount)return;const s=l.shiftKey&&"mouseup"===l.type;if(a.isCollapsed&&!s)return void ap(n,!1);let c=pd(function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}(a)),u=pd(function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===t.childNodes.length?t:t.childNodes[n]}(a));if(s){const e=r(),t=pd(l.target),n=t!==u;(c===u&&a.isCollapsed||!u||n)&&(u=t),c!==e&&(c=e)}if(void 0===c&&void 0===u)return void ap(n,!1);if(c===u)t(c);else{const t=[...o(c),c],n=[...o(u),u],r=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,n);e(t[r],n[r])}}function s(){l.addEventListener("selectionchange",a),i.addEventListener("mouseup",a)}function c(){l.removeEventListener("selectionchange",a),i.removeEventListener("mouseup",a)}function u(){c(),s()}return s(),n.addEventListener("focusin",u),()=>{c(),n.removeEventListener("focusin",u)}}),[e,t,n,o])}function cp(){const{selectBlock:e}=(0,f.useDispatch)(Go),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:o}=(0,f.useSelect)(Go);return(0,p.useRefEffect)((r=>{function l(l){if(!t()||0!==l.button)return;const i=n(),a=pd(l.target);l.shiftKey?i!==a&&(r.contentEditable=!0,r.focus()):o()&&e(a)}return r.addEventListener("mousedown",l),()=>{r.removeEventListener("mousedown",l)}}),[e,t,n,o])}function up(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,__unstableIsSelectionMergeable:n,hasMultiSelection:o}=(0,f.useSelect)(Go),{replaceBlocks:r,__unstableSplitSelection:l,removeBlocks:i,__unstableDeleteSelection:s,__unstableExpandSelection:c}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((u=>{function d(e){"true"===u.contentEditable&&e.preventDefault()}function p(d){d.defaultPrevented||o()&&(d.keyCode===yd.ENTER?(u.contentEditable=!1,d.preventDefault(),e()?r(t(),(0,a.createBlock)((0,a.getDefaultBlockName)())):l()):d.keyCode===yd.BACKSPACE||d.keyCode===yd.DELETE?(u.contentEditable=!1,d.preventDefault(),e()?i(t()):n()?s(d.keyCode===yd.DELETE):c()):1!==d.key.length||d.metaKey||d.ctrlKey||(u.contentEditable=!1,n()?s(d.keyCode===yd.DELETE):(d.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges())))}function m(e){o()&&(u.contentEditable=!1,n()?s():(e.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges()))}return u.addEventListener("beforeinput",d),u.addEventListener("keydown",p),u.addEventListener("compositionstart",m),()=>{u.removeEventListener("beforeinput",d),u.removeEventListener("keydown",p),u.removeEventListener("compositionstart",m)}}),[])}function dp(){const[e,t,n]=function(){const e=(0,c.useRef)(),t=(0,c.useRef)(),n=(0,c.useRef)(),o=(0,c.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:l,getBlockCount:i}=(0,f.useSelect)(Go),{setNavigationMode:a}=(0,f.useDispatch)(Go),s=(0,f.useSelect)((e=>e(Go).isNavigationMode()),[])?void 0:"0",u=(0,c.useRef)();function d(t){if(u.current)u.current=null;else if(r())e.current.focus();else if(l())o.current.focus();else{a(!0);const n=e.current.ownerDocument===t.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement,o=t.target.compareDocumentPosition(n)&t.target.DOCUMENT_POSITION_FOLLOWING,r=ea.focus.tabbable.find(e.current);r.length&&(o?r[0]:r[r.length-1]).focus()}}const m=(0,c.createElement)("div",{ref:t,tabIndex:s,onFocus:d}),g=(0,c.createElement)("div",{ref:n,tabIndex:s,onFocus:d}),h=(0,p.useRefEffect)((s=>{function c(e){if(e.defaultPrevented)return;if(e.keyCode===yd.ESCAPE&&!r())return e.preventDefault(),void a(!0);if(e.keyCode!==yd.TAB)return;const o=e.shiftKey,i=o?"findPrevious":"findNext";if(!r()&&!l())return void(e.target===s&&a(!0));const c=ea.focus.tabbable[i](e.target);if((0,ea.isFormElement)(c)&&((e,t)=>{const n=t.closest("[data-block]")?.getAttribute("data-block"),o=n===l(),r=e.contains(t);return o||r})(e.target.closest("[data-block]"),c))return;const d=o?t:n;u.current=!0,d.current.focus({preventScroll:!0})}function d(e){o.current=e.target;const{ownerDocument:t}=s;e.relatedTarget||t.activeElement!==t.body||0!==i()||s.focus()}function p(o){if(o.keyCode!==yd.TAB)return;if("region"===o.target?.getAttribute("role"))return;if(e.current===o.target)return;const r=o.shiftKey?"findPrevious":"findNext",l=ea.focus.tabbable[r](o.target);l!==t.current&&l!==n.current||(o.preventDefault(),l.focus({preventScroll:!0}))}const{ownerDocument:m}=s,{defaultView:f}=m;return f.addEventListener("keydown",p),s.addEventListener("keydown",c),s.addEventListener("focusout",d),()=>{f.removeEventListener("keydown",p),s.removeEventListener("keydown",c),s.removeEventListener("focusout",d)}}),[]);return[m,(0,p.useMergeRefs)([e,h]),g]}(),o=(0,f.useSelect)((e=>e(Go).hasMultiSelection()),[]);return[e,(0,p.useMergeRefs)([t,up(),ip(),sp(),cp(),ep(),rp(),np(),(0,p.useRefEffect)((e=>{if(e.tabIndex=0,e.contentEditable=o,o)return e.classList.add("has-multi-selection"),e.setAttribute("aria-label",(0,v.__)("Multiple selected blocks")),()=>{e.classList.remove("has-multi-selection"),e.removeAttribute("aria-label")}}),[o])]),n]}var pp=(0,c.forwardRef)((function({children:e,...t},n){const[o,r,l]=dp();return(0,c.createElement)(c.Fragment,null,o,(0,c.createElement)("div",{...t,ref:(0,p.useMergeRefs)([r,n]),className:d()(t.className,"block-editor-writing-flow")},e),l)}));function mp({contentRef:e,children:t,tabIndex:n=0,scale:o=1,frameSize:r=0,expand:l=!1,readonly:i,forwardedRef:a,...s}){const{resolvedAssets:u,isPreviewMode:g}=(0,f.useSelect)((e=>{const t=e(Go).getSettings();return{resolvedAssets:t.__unstableResolvedAssets,isPreviewMode:t.__unstableIsPreviewMode}}),[]),{styles:h="",scripts:b=""}=u,[_,k]=(0,c.useState)(),[y,E]=(0,c.useState)([]),w=(0,c.useMemo)((()=>Array.from(document.styleSheets).reduce(((e,t)=>{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:o}=t;if(null===n)return e;if(!o)return e;if("wp-reset-editor-styles-css"===n.id)return e;if(!n.id)return e;if(function e(t){return Array.from(t).find((({selectorText:t,conditionText:n,cssRules:o})=>n?e(o):t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block"))))}(o)){const t="STYLE"===n.tagName;if(t){const t=n.id.replace("-inline-css","-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}if(e.push(n.cloneNode(!0)),!t){const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}}return e}),[])),[]),S=Xd(),[C,x,B]=dp(),[I,{height:T}]=(0,p.useResizeObserver)(),M=(0,p.useRefEffect)((e=>{let t;function n(e){e.preventDefault()}function o(){const{contentDocument:o,ownerDocument:r}=e,{documentElement:l}=o;t=o,function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],l={};for(const t in e)l[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();l.clientX+=e.left,l.clientY+=e.top}const i=new r(e.type,l);!n.dispatchEvent(i)&&e.preventDefault()}const r=["dragover","mousemove"];for(const t of r)e.addEventListener(t,o)}(o),S(l),E(Array.from(r.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),o.dir=r.dir;for(const e of w)o.getElementById(e.id)||(o.head.appendChild(e.cloneNode(!0)),g||console.warn(`${e.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,e));t.addEventListener("dragover",n,!1),t.addEventListener("drop",n,!1)}return e._load=()=>{k(e.contentDocument)},e.addEventListener("load",o),()=>{e.removeEventListener("load",o),t?.removeEventListener("dragover",n),t?.removeEventListener("drop",n)}}),[]),P=(0,p.useDisabled)({isDisabled:!i}),N=(0,p.useMergeRefs)([e,S,x,P]),L=`<!doctype html>\n<html>\n\t<head>\n\t\t<script>window.frameElement._load()<\/script>\n\t\t<style>html{height:auto!important;min-height:100%;}body{margin:0}</style>\n\t\t${h}\n\t\t${b}\n\t</head>\n\t<body>\n\t\t<script>document.currentScript.parentElement.remove()<\/script>\n\t</body>\n</html>`,[R,A]=(0,c.useMemo)((()=>{const e=URL.createObjectURL(new window.Blob([L],{type:"text/html"}));return[e,()=>URL.revokeObjectURL(e)]}),[L]);(0,c.useEffect)((()=>A),[A]);const D=T*(1-o)/2;return(0,c.createElement)(c.Fragment,null,n>=0&&C,(0,c.createElement)("iframe",{...s,style:{...s.style,height:l?T:s.style?.height,marginTop:1!==o?-D+r:s.style?.marginTop,marginBottom:1!==o?-D+r:s.style?.marginBottom,transform:1!==o?`scale( ${o} )`:s.style?.transform,transition:"all .3s"},ref:(0,p.useMergeRefs)([a,M]),tabIndex:n,src:R,title:(0,v.__)("Editor canvas")},_&&(0,c.createPortal)((0,c.createElement)("body",{ref:N,className:d()("block-editor-iframe__body","editor-styles-wrapper",...y)},I,(0,c.createElement)(m.__experimentalStyleProvider,{document:_},t)),_.documentElement)),n>=0&&B)}var fp=(0,c.forwardRef)((function(e,t){return(0,f.useSelect)((e=>e(Go).getSettings().__internalIsInitialized),[])?(0,c.createElement)(mp,{...e,forwardedRef:t}):null})),gp={grad:.9,turn:360,rad:360/(2*Math.PI)},hp=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},bp=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},vp=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},_p=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},kp=function(e){return{r:vp(e.r,0,255),g:vp(e.g,0,255),b:vp(e.b,0,255),a:vp(e.a)}},yp=function(e){return{r:bp(e.r),g:bp(e.g),b:bp(e.b),a:bp(e.a,3)}},Ep=/^#([0-9a-f]{3,8})$/i,wp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Sp=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=Math.max(t,n,o),i=l-Math.min(t,n,o),a=i?l===t?(n-o)/i:l===n?2+(o-t)/i:4+(t-n)/i:0;return{h:60*(a<0?a+6:a),s:l?i/l*100:0,v:l/255*100,a:r}},Cp=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var l=Math.floor(t),i=o*(1-n),a=o*(1-(t-l)*n),s=o*(1-(1-t+l)*n),c=l%6;return{r:255*[o,a,i,i,s,o][c],g:255*[s,o,o,a,i,i][c],b:255*[i,i,s,o,o,a][c],a:r}},xp=function(e){return{h:_p(e.h),s:vp(e.s,0,100),l:vp(e.l,0,100),a:vp(e.a)}},Bp=function(e){return{h:bp(e.h),s:bp(e.s),l:bp(e.l),a:bp(e.a,3)}},Ip=function(e){return Cp((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},Tp=function(e){return{h:(t=Sp(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},Mp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Np=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Lp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rp={string:[[function(e){var t=Ep.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?bp(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?bp(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Np.exec(e)||Lp.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:kp({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Mp.exec(e)||Pp.exec(e);if(!t)return null;var n,o,r=xp({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(gp[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Ip(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=void 0===r?1:r;return hp(t)&&hp(n)&&hp(o)?kp({r:Number(t),g:Number(n),b:Number(o),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,l=void 0===r?1:r;if(!hp(t)||!hp(n)||!hp(o))return null;var i=xp({h:Number(t),s:Number(n),l:Number(o),a:Number(l)});return Ip(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,l=void 0===r?1:r;if(!hp(t)||!hp(n)||!hp(o))return null;var i=function(e){return{h:_p(e.h),s:vp(e.s,0,100),v:vp(e.v,0,100),a:vp(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(l)});return Cp(i)},"hsv"]]},Ap=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},Dp=function(e){return"string"==typeof e?Ap(e.trim(),Rp.string):"object"==typeof e&&null!==e?Ap(e,Rp.object):[null,void 0]},Op=function(e,t){var n=Tp(e);return{h:n.h,s:vp(n.s+100*t,0,100),l:n.l,a:n.a}},zp=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Vp=function(e,t){var n=Tp(e);return{h:n.h,s:n.s,l:vp(n.l+100*t,0,100),a:n.a}},Fp=function(){function e(e){this.parsed=Dp(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return bp(zp(this.rgba),2)},e.prototype.isDark=function(){return zp(this.rgba)<.5},e.prototype.isLight=function(){return zp(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=yp(this.rgba)).r,n=e.g,o=e.b,l=(r=e.a)<1?wp(bp(255*r)):"","#"+wp(t)+wp(n)+wp(o)+l;var e,t,n,o,r,l},e.prototype.toRgb=function(){return yp(this.rgba)},e.prototype.toRgbString=function(){return t=(e=yp(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return Bp(Tp(this.rgba))},e.prototype.toHslString=function(){return t=(e=Bp(Tp(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=Sp(this.rgba),{h:bp(e.h),s:bp(e.s),v:bp(e.v),a:bp(e.a,3)};var e},e.prototype.invert=function(){return Hp({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Hp(Op(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Hp(Op(this.rgba,-e))},e.prototype.grayscale=function(){return Hp(Op(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Hp(Vp(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Hp(Vp(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Hp({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):bp(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Tp(this.rgba);return"number"==typeof e?Hp({h:e,s:t.s,l:t.l,a:t.a}):bp(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Hp(e).toHex()},e}(),Hp=function(e){return e instanceof Fp?e:new Fp(e)},Gp=[],Up=function(e){e.forEach((function(e){Gp.indexOf(e)<0&&(e(Fp,Rp),Gp.push(e))}))};function $p(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var l={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,i,a=o[this.toHex()];if(a)return a;if(null==t?void 0:t.closest){var s=this.toRgb(),c=1/0,u="black";if(!l.length)for(var d in n)l[d]=new e(n[d]).toRgb();for(var p in n){var m=(r=s,i=l[p],Math.pow(r.r-i.r,2)+Math.pow(r.g-i.g,2)+Math.pow(r.b-i.b,2));m<c&&(c=m,u=p)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}var jp=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Wp=function(e){return.2126*jp(e.r)+.7152*jp(e.g)+.0722*jp(e.b)};function Kp(e){e.prototype.luminance=function(){return e=Wp(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,o,r,l,i,a,s,c=t instanceof e?t:new e(t);return l=this.rgba,i=c.toRgb(),n=(a=Wp(l))>(s=Wp(i))?(a+.05)/(s+.05):(s+.05)/(a+.05),void 0===(o=2)&&(o=0),void 0===r&&(r=Math.pow(10,o)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(l=(n=t).size)?"normal":l,"AAA"===(r=void 0===(o=n.level)?"AA":o)&&"normal"===i?7:"AA"===r&&"large"===i?3:4.5);var n,o,r,l,i}}var qp=n(3124),Zp=n.n(qp);const Yp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Xp(e,t){t=t||{};let n=1,o=1;function r(e){const t=e.match(/\n/g);t&&(n+=t.length);const r=e.lastIndexOf("\n");o=~r?e.length-r:o+e.length}function l(){const e={line:n,column:o};return function(t){return t.position=new i(e),m(),t}}function i(e){this.start=e,this.end={line:n,column:o},this.source=t.source}i.prototype.content=e;const a=[];function s(r){const l=new Error(t.source+":"+n+":"+o+": "+r);if(l.reason=r,l.filename=t.source,l.line=n,l.column=o,l.source=e,!t.silent)throw l;a.push(l)}function c(){return p(/^{\s*/)}function u(){return p(/^}/)}function d(){let t;const n=[];for(m(),f(n);e.length&&"}"!==e.charAt(0)&&(t=S()||C());)!1!==t&&(n.push(t),f(n));return n}function p(t){const n=t.exec(e);if(!n)return;const o=n[0];return r(o),e=e.slice(o.length),n}function m(){p(/^\s*/)}function f(e){let t;for(e=e||[];t=g();)!1!==t&&e.push(t);return e}function g(){const t=l();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return s("End of comment missing");const i=e.slice(2,n-2);return o+=2,r(i),e=e.slice(n),o+=2,t({type:"comment",comment:i})}function h(){const e=p(/^([^{]+)/);if(e)return Qp(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function b(){const e=l();let t=p(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;if(t=Qp(t[0]),!p(/^:\s*/))return s("property missing ':'");const n=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:t.replace(Yp,""),value:n?Qp(n[0]).replace(Yp,""):""});return p(/^[;\s]*/),o}function v(){const e=[];if(!c())return s("missing '{'");let t;for(f(e);t=b();)!1!==t&&(e.push(t),f(e));return u()?e:s("missing '}'")}function _(){let e;const t=[],n=l();for(;e=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),p(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:v()})}const k=w("import"),y=w("charset"),E=w("namespace");function w(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){const n=l(),o=p(t);if(!o)return;const r={type:e};return r[e]=o[1].trim(),n(r)}}function S(){if("@"===e[0])return function(){const e=l();let t=p(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=p(/^([-\w]+)\s*/),!t)return s("@keyframes missing name");const o=t[1];if(!c())return s("@keyframes missing '{'");let r,i=f();for(;r=_();)i.push(r),i=i.concat(f());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):s("@keyframes missing '}'")}()||function(){const e=l(),t=p(/^@media *([^{]+)/);if(!t)return;const n=Qp(t[1]);if(!c())return s("@media missing '{'");const o=f().concat(d());return u()?e({type:"media",media:n,rules:o}):s("@media missing '}'")}()||function(){const e=l(),t=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Qp(t[1]),media:Qp(t[2])})}()||function(){const e=l(),t=p(/^@supports *([^{]+)/);if(!t)return;const n=Qp(t[1]);if(!c())return s("@supports missing '{'");const o=f().concat(d());return u()?e({type:"supports",supports:n,rules:o}):s("@supports missing '}'")}()||k()||y()||E()||function(){const e=l(),t=p(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=Qp(t[1]),o=Qp(t[2]);if(!c())return s("@document missing '{'");const r=f().concat(d());return u()?e({type:"document",document:o,vendor:n,rules:r}):s("@document missing '}'")}()||function(){const e=l();if(!p(/^@page */))return;const t=h()||[];if(!c())return s("@page missing '{'");let n,o=f();for(;n=b();)o.push(n),o=o.concat(f());return u()?e({type:"page",selectors:t,declarations:o}):s("@page missing '}'")}()||function(){const e=l();if(!p(/^@host\s*/))return;if(!c())return s("@host missing '{'");const t=f().concat(d());return u()?e({type:"host",rules:t}):s("@host missing '}'")}()||function(){const e=l();if(!p(/^@font-face\s*/))return;if(!c())return s("@font-face missing '{'");let t,n=f();for(;t=b();)n.push(t),n=n.concat(f());return u()?e({type:"font-face",declarations:n}):s("@font-face missing '}'")}()}function C(){const e=l(),t=h();return t?(f(),e({type:"rule",selectors:t,declarations:v()})):s("selector missing")}return Jp(function(){const e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}())}function Qp(e){return e?e.replace(/^\s+|\s+$/g,""):""}function Jp(e,t){const n=e&&"string"==typeof e.type,o=n?e:t;for(const t in e){const n=e[t];Array.isArray(n)?n.forEach((function(e){Jp(e,o)})):n&&"object"==typeof n&&Jp(n,o)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var em=n(8575),tm=n.n(em),nm=om;function om(e){this.options=e||{}}om.prototype.emit=function(e){return e},om.prototype.visit=function(e){return this[e.type](e)},om.prototype.mapVisit=function(e,t){let n="";t=t||"";for(let o=0,r=e.length;o<r;o++)n+=this.visit(e[o]),t&&o<r-1&&(n+=this.emit(t));return n};var rm=lm;function lm(e){nm.call(this,e)}tm()(lm,nm),lm.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},lm.prototype.comment=function(e){return this.emit("",e.position)},lm.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},lm.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},lm.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},lm.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},lm.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},lm.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},lm.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},lm.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},lm.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},lm.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},lm.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},lm.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},lm.prototype.rule=function(e){const t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},lm.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var im=am;function am(e){e=e||{},nm.call(this,e),this.indentation=e.indent}tm()(am,nm),am.prototype.compile=function(e){return this.stylesheet(e)},am.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},am.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},am.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},am.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},am.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},am.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},am.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},am.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},am.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},am.prototype.keyframe=function(e){const t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},am.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},am.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},am.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},am.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},am.prototype.rule=function(e){const t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},am.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},am.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var sm=function(e,t){try{const n=Xp(e),o=Zp().map(n,(function(e){if(!e)return e;const n=t(e);return this.update(n)}));return function(e,t){return((t=t||{}).compress?new rm(t):new im(t)).compile(e)}(o)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}};function cm(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function um(e,t){return new URL(e,t).toString()}var dm=e=>t=>{if("declaration"===t.type){const l=function(e){const t=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let n;const o=[];for(;null!==(n=t.exec(e));){const e={source:n[0],before:n[1],quote:n[2],value:n[3],after:n[4]};cm(e)&&o.push(e)}return o}(t.value).map((r=e,e=>({...e,newUrl:"url("+e.before+e.quote+um(e.value,r)+e.quote+e.after+")"})));return{...t,value:(n=t.value,o=l,o.forEach((e=>{n=n.replace(e.source,e.newUrl)})),n)}}var n,o,r;return t};const pm=/^(body|html|:root).*$/;var mm=(e,t=[])=>n=>{const o=n=>t.includes(n.trim())?n:n.match(pm)?n.replace(/^(body|html|:root)/,e):e+" "+n;return"rule"===n.type?{...n,selectors:n.selectors.map(o)}:n};var fm=(e,t="")=>Object.values(null!=e?e:[]).map((({css:e,baseURL:n})=>{const o=[];return t&&o.push(mm(t)),n&&o.push(dm(n)),o.length?sm(e,(0,p.compose)(o)):e}));const gm=".editor-styles-wrapper";function hm(e){return(0,c.useCallback)((e=>{if(!e)return;const{ownerDocument:t}=e,{defaultView:n,body:o}=t,r=t.querySelector(gm);let l;if(r)l=n?.getComputedStyle(r,null).getPropertyValue("background-color");else{const e=t.createElement("div");e.classList.add("editor-styles-wrapper"),o.appendChild(e),l=n?.getComputedStyle(e,null).getPropertyValue("background-color"),o.removeChild(e)}const i=Hp(l);i.luminance()>.5||0===i.alpha()?o.classList.remove("is-dark-theme"):o.classList.add("is-dark-theme")}),[e])}function bm({styles:e}){const t=(0,c.useMemo)((()=>Object.values(null!=e?e:[])),[e]),n=(0,c.useMemo)((()=>fm(t.filter((e=>e?.css)),gm)),[t]),o=(0,c.useMemo)((()=>t.filter((e=>"svgs"===e.__unstableType)).map((e=>e.assets)).join("")),[t]);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("style",{ref:hm(t)}),n.map(((e,t)=>(0,c.createElement)("style",{key:t},e))),(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:o}}))}let vm;Up([$p,Kp]);const _m=2e3;function km({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:o=[]}){e||(e=t);const[r,{height:l}]=(0,p.useResizeObserver)(),{styles:i}=(0,f.useSelect)((e=>({styles:e(Go).getSettings().styles})),[]),a=(0,c.useMemo)((()=>i?[...i,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...o]:i),[i,o]);vm=vm||(0,p.pure)(Jg);const s=t/e;return(0,c.createElement)(m.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${s})`,height:l*s,maxHeight:l>_m?_m*s:void 0,minHeight:n}},(0,c.createElement)(fp,{contentRef:(0,p.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:l,pointerEvents:"none",maxHeight:_m,minHeight:0!==s&&s<1&&n?n/s:n}},(0,c.createElement)(bm,{styles:a}),r,(0,c.createElement)(vm,{renderAppender:!1})))}function ym(e){const[t,{width:n}]=(0,p.useResizeObserver)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,c.createElement)("div",{className:"block-editor-block-preview__container"},!!n&&(0,c.createElement)(km,{...e,containerWidth:n})))}var Em=(0,c.memo)((function({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=[],__experimentalMinHeight:r,__experimentalPadding:l}){r&&(n=r,$()("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),l&&(o=[...o,{css:`body { padding: ${l}px; }`}],$()("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const i=(0,f.useSelect)((e=>e(Go).getSettings()),[]),a=(0,c.useMemo)((()=>({...i,__unstableIsPreviewMode:!0})),[i]),s=(0,c.useMemo)((()=>Array.isArray(e)?e:[e]),[e]);return e&&0!==e.length?(0,c.createElement)(Zd,{value:s,settings:a},(0,c.createElement)(ym,{viewportWidth:t,minHeight:n,additionalStyles:o})):null}));function wm({blocks:e,props:t={},layout:n}){const o=(0,f.useSelect)((e=>e(Go).getSettings()),[]),r=(0,c.useMemo)((()=>({...o,__unstableIsPreviewMode:!0})),[o]),l=(0,p.useDisabled)(),i=(0,p.useMergeRefs)([t.ref,l]),a=(0,c.useMemo)((()=>Array.isArray(e)?e:[e]),[e]),s=(0,c.createElement)(Zd,{value:a,settings:r},(0,c.createElement)(th,{renderAppender:!1,layout:n}));return{...t,ref:i,className:d()(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?s:null}}var Sm=function({item:e}){var t;const{name:n,title:o,icon:r,description:l,initialAttributes:i,example:s}=e,u=(0,a.isReusableBlock)(e);return(0,c.createElement)("div",{className:"block-editor-inserter__preview-container"},(0,c.createElement)("div",{className:"block-editor-inserter__preview"},u||s?(0,c.createElement)("div",{className:"block-editor-inserter__preview-content"},(0,c.createElement)(Em,{blocks:s?(0,a.getBlockFromExample)(n,{attributes:{...s.attributes,...i},innerBlocks:s.innerBlocks}):(0,a.createBlock)(n,i),viewportWidth:null!==(t=s?.viewportWidth)&&void 0!==t?t:500,additionalStyles:[{css:"body { padding: 16px; }"}]})):(0,c.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},(0,v.__)("No Preview Available."))),!u&&(0,c.createElement)(jd,{title:o,icon:r,description:l}))};var Cm=(0,c.createContext)();var xm=(0,c.forwardRef)((function({isFirst:e,as:t,children:n,...o},r){const l=(0,c.useContext)(Cm);return(0,c.createElement)(m.__unstableCompositeItem,{ref:r,state:l,role:"option",focusable:!0,...o},(o=>{const r={...o,tabIndex:e?0:o.tabIndex};return t?(0,c.createElement)(t,{...r},n):"function"==typeof n?n(r):(0,c.createElement)(m.Button,{...r},n)}))}));var Bm=(0,c.createElement)(F.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"}));function Im({count:e,icon:t,isPattern:n}){const o=n&&(0,v.__)("Pattern");return(0,c.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},(0,c.createElement)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip"},(0,c.createElement)(m.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},(0,c.createElement)(m.FlexItem,null,t?(0,c.createElement)($d,{icon:t}):o||(0,v.sprintf)((0,v._n)("%d block","%d blocks",e),e)),(0,c.createElement)(m.FlexItem,null,(0,c.createElement)($d,{icon:Bm})))))}var Tm=({isEnabled:e,blocks:t,icon:n,children:o,isPattern:r})=>{const l={type:"inserter",blocks:t};return(0,c.createElement)(m.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:l,onDragStart:e=>{e.dataTransfer.setData("text/html",(0,a.serialize)(t))},__experimentalDragComponent:(0,c.createElement)(Im,{count:t.length,icon:n,isPattern:r})},(({onDraggableStart:t,onDraggableEnd:n})=>o({draggable:e,onDragStart:e?t:void 0,onDragEnd:e?n:void 0})))};var Mm=(0,c.memo)((function({className:e,isFirst:t,item:n,onSelect:o,onHover:r,isDraggable:l,...i}){const s=(0,c.useRef)(!1),u=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},p=(0,c.useMemo)((()=>[(0,a.createBlock)(n.name,n.initialAttributes,(0,a.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))]),[n.name,n.initialAttributes,n.initialAttributes]),f=(0,a.isReusableBlock)(n)&&"unsynced"!==n.syncStatus||(0,a.isTemplatePart)(n);return(0,c.createElement)(Tm,{isEnabled:l&&!n.disabled,blocks:p,icon:n.icon},(({draggable:l,onDragStart:a,onDragEnd:p})=>(0,c.createElement)("div",{className:d()("block-editor-block-types-list__list-item",{"is-synced":f}),draggable:l,onDragStart:e=>{s.current=!0,a&&(r(null),a(e))},onDragEnd:e=>{s.current=!1,p&&p(e)}},(0,c.createElement)(xm,{isFirst:t,className:d()("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),o(n,(0,yd.isAppleOS)()?e.metaKey:e.ctrlKey),r(null)},onKeyDown:e=>{const{keyCode:t}=e;t===yd.ENTER&&(e.preventDefault(),o(n,(0,yd.isAppleOS)()?e.metaKey:e.ctrlKey),r(null))},onMouseEnter:()=>{s.current||r(n)},onMouseLeave:()=>r(null),...i},(0,c.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:u},(0,c.createElement)($d,{icon:n.icon,showColors:!0})),(0,c.createElement)("span",{className:"block-editor-block-types-list__item-title"},(0,c.createElement)(m.__experimentalTruncate,{numberOfLines:3},n.title))))))}));var Pm=(0,c.forwardRef)((function(e,t){const[n,o]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{n&&(0,Cn.speak)((0,v.__)("Use left and right arrow keys to move through blocks"))}),[n]),(0,c.createElement)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{o(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&o(!1)},...e})}));var Nm=(0,c.forwardRef)((function(e,t){const n=(0,c.useContext)(Cm);return(0,c.createElement)(m.__unstableCompositeGroup,{state:n,role:"presentation",ref:t,...e})}));var Lm=function({items:e=[],onSelect:t,onHover:n=(()=>{}),children:o,label:r,isDraggable:l=!0}){return(0,c.createElement)(Pm,{className:"block-editor-block-types-list","aria-label":r},function(e,t){const n=[];for(let o=0,r=e.length;o<r;o+=t)n.push(e.slice(o,o+t));return n}(e,3).map(((e,o)=>(0,c.createElement)(Nm,{key:o},e.map(((e,r)=>(0,c.createElement)(Mm,{key:e.id,item:e,className:(0,a.getBlockMenuDefaultClassName)(e.id),onSelect:t,onHover:n,isDraggable:l&&!e.isDisabled,isFirst:0===o&&0===r})))))),o)};var Rm=function({title:e,icon:t,children:n}){return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-inserter__panel-header"},(0,c.createElement)("h2",{className:"block-editor-inserter__panel-title"},e),(0,c.createElement)(m.Icon,{icon:t})),(0,c.createElement)("div",{className:"block-editor-inserter__panel-content"},n))};var Am=(e,t)=>{const{categories:n,collections:o,items:r}=(0,f.useSelect)((t=>{const{getInserterItems:n}=t(Go),{getCategories:o,getCollections:r}=t(a.store);return{categories:o(),collections:r(),items:n(e)}}),[e]);return[r,n,o,(0,c.useCallback)((({name:e,initialAttributes:n,innerBlocks:o,syncStatus:r,content:l},i)=>{const s="unsynced"===r?(0,a.parse)(l,{__unstableSkipMigrationLogs:!0}):(0,a.createBlock)(e,n,(0,a.createBlocksFromInnerBlocksTemplate)(o));t(s,void 0,i)}),[t])]};var Dm=function({children:e}){const t=(0,m.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return(0,c.createElement)(Cm.Provider,{value:t},e)};const Om=[];var zm=function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:o}){const[r,l,i,a]=Am(e,t),s=(0,c.useMemo)((()=>K(r,"frecency","desc").slice(0,6)),[r]),u=(0,c.useMemo)((()=>r.filter((e=>!e.category))),[r]),d=(0,c.useMemo)((()=>(0,p.pipe)((e=>e.filter((e=>e.category&&"reusable"!==e.category))),(e=>e.reduce(((e,t)=>{const{category:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{})))(r)),[r]),m=(0,c.useMemo)((()=>{const e={...i};return Object.keys(i).forEach((t=>{e[t]=r.filter((e=>(e=>e.name.split("/")[0])(e)===t)),0===e[t].length&&delete e[t]})),e}),[r,i]);(0,c.useEffect)((()=>()=>n(null)),[]);const f=(0,p.useAsyncList)(l),g=l.length===f.length,h=(0,c.useMemo)((()=>Object.entries(i)),[i]),b=(0,p.useAsyncList)(g?h:Om);return(0,c.createElement)(Dm,null,(0,c.createElement)("div",null,o&&!!s.length&&(0,c.createElement)(Rm,{title:(0,v._x)("Most used","blocks")},(0,c.createElement)(Lm,{items:s,onSelect:a,onHover:n,label:(0,v._x)("Most used","blocks")})),f.map((e=>{const t=d[e.slug];return t&&t.length?(0,c.createElement)(Rm,{key:e.slug,title:e.title,icon:e.icon},(0,c.createElement)(Lm,{items:t,onSelect:a,onHover:n,label:e.title})):null})),g&&u.length>0&&(0,c.createElement)(Rm,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,v.__)("Uncategorized")},(0,c.createElement)(Lm,{items:u,onSelect:a,onHover:n,label:(0,v.__)("Uncategorized")})),b.map((([e,t])=>{const o=m[e];return o&&o.length?(0,c.createElement)(Rm,{key:e,title:t.title,icon:t.icon},(0,c.createElement)(Lm,{items:o,onSelect:a,onHover:n,label:t.title})):null}))))},Vm=window.wp.notices;const Fm={name:"custom",label:(0,v.__)("My patterns"),description:(0,v.__)("Custom patterns add by site users")};var Hm=(e,t)=>{const{patternCategories:n,patterns:o}=(0,f.useSelect)((e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(Go);return{patterns:n(t),patternCategories:o().__experimentalBlockPatternCategories}}),[t]),r=(0,c.useMemo)((()=>[...n,Fm]),[n]),{createSuccessNotice:l}=(0,f.useDispatch)(Vm.store),i=(0,c.useCallback)(((t,n)=>{e((null!=n?n:[]).map((e=>(0,a.cloneBlock)(e))),t.name),l((0,v.sprintf)((0,v.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar",id:"block-pattern-inserted-notice"})}),[l,e]);return[o,r,i]};const Gm=({showTooltip:e,title:t,children:n})=>e?(0,c.createElement)(m.Tooltip,{text:t},n):(0,c.createElement)(c.Fragment,null,n);function Um({isDraggable:e,pattern:t,onClick:n,onHover:o,composite:r,showTooltip:l}){const[i,a]=(0,c.useState)(!1),{blocks:s,viewportWidth:u}=t,d=`block-editor-block-patterns-list__item-description-${(0,p.useInstanceId)(Um)}`;return(0,c.createElement)(Tm,{isEnabled:e,blocks:s,isPattern:!!t},(({draggable:e,onDragStart:p,onDragEnd:f})=>(0,c.createElement)("div",{className:"block-editor-block-patterns-list__list-item",draggable:e,onDragStart:e=>{a(!0),p&&(o?.(null),p(e))},onDragEnd:e=>{a(!1),f&&f(e)}},(0,c.createElement)(Gm,{showTooltip:l,title:t.title},(0,c.createElement)(m.__unstableCompositeItem,{role:"option",as:"div",...r,className:"block-editor-block-patterns-list__item",onClick:()=>{n(t,s),o?.(null)},onMouseEnter:()=>{i||o?.(t)},onMouseLeave:()=>o?.(null),"aria-label":t.title,"aria-describedby":t.description?d:void 0},(0,c.createElement)(Em,{blocks:s,viewportWidth:u}),!l&&(0,c.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title),!!t.description&&(0,c.createElement)(m.VisuallyHidden,{id:d},t.description))))))}function $m(){return(0,c.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var jm=function({isDraggable:e,blockPatterns:t,shownPatterns:n,onHover:o,onClickPattern:r,orientation:l,label:i=(0,v.__)("Block Patterns"),showTitlesAsTooltip:a}){const s=(0,m.__unstableUseCompositeState)({orientation:l});return(0,c.createElement)(m.__unstableComposite,{...s,role:"listbox",className:"block-editor-block-patterns-list","aria-label":i},t.map((t=>n.includes(t)?(0,c.createElement)(Um,{key:t.name,pattern:t,onClick:r,onHover:o,isDraggable:e,composite:s,showTooltip:a}):(0,c.createElement)($m,{key:t.name}))))};function Wm({selectedCategory:e,patternCategories:t,onClickCategory:n}){const o="block-editor-block-patterns-explorer__sidebar";return(0,c.createElement)("div",{className:`${o}__categories-list`},t.map((({name:t,label:r})=>(0,c.createElement)(m.Button,{key:t,label:r,className:`${o}__categories-list__item`,isPressed:e===t,onClick:()=>{n(t)}},r))))}function Km({filterValue:e,setFilterValue:t}){return(0,c.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},(0,c.createElement)(m.SearchControl,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:(0,v.__)("Search for patterns"),placeholder:(0,v.__)("Search")}))}var qm=function({selectedCategory:e,patternCategories:t,onClickCategory:n,filterValue:o,setFilterValue:r}){return(0,c.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},(0,c.createElement)(Km,{filterValue:o,setFilterValue:r}),!o&&(0,c.createElement)(Wm,{selectedCategory:e,patternCategories:t,onClickCategory:n}))};var Zm=function(){return(0,c.createElement)("div",{className:"block-editor-inserter__no-results"},(0,c.createElement)(Xl,{className:"block-editor-inserter__no-results-icon",icon:Ud}),(0,c.createElement)("p",null,(0,v.__)("No results found.")))};var Ym=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:o,onSelect:r,shouldFocusBlock:l=!0,selectBlockOnInsert:i=!0}){const{getSelectedBlock:s}=(0,f.useSelect)(Go),{destinationRootClientId:u,destinationIndex:d}=(0,f.useSelect)((r=>{const{getSelectedBlockClientId:l,getBlockRootClientId:i,getBlockIndex:a,getBlockOrder:s}=r(Go),c=l();let u,d=e;return void 0!==t?u=t:n?u=a(n):!o&&c?(d=i(c),u=a(c)+1):u=s(d).length,{destinationRootClientId:d,destinationIndex:u}}),[e,t,n,o]),{replaceBlocks:p,insertBlocks:m,showInsertionPoint:g,hideInsertionPoint:h}=(0,f.useDispatch)(Go),b=(0,c.useCallback)(((e,t,n=!1)=>{const c=s();!o&&c&&(0,a.isUnmodifiedDefaultBlock)(c)?p(c.clientId,e,null,l||n?0:null,t):m(e,d,u,i,l||n?0:null,t);const f=Array.isArray(e)?e.length:1,g=(0,v.sprintf)((0,v._n)("%d block added.","%d blocks added.",f),f);(0,Cn.speak)(g),r&&r(e)}),[o,s,p,m,u,d,r,l,i]),_=(0,c.useCallback)((e=>{e?g(u,d):h()}),[g,h,u,d]);return[u,b,_]},Xm=n(4793),Qm=n.n(Xm);const Jm=e=>e.name||"",ef=e=>e.title,tf=e=>e.description||"",nf=e=>e.keywords||[],of=e=>e.category,rf=()=>null;function lf(e=""){return Ml(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function af(e=""){return e=(e=(e=Qm()(e)).replace(/^\//,"")).toLowerCase()}const sf=(e="")=>lf(af(e)),cf=(e,t,n,o)=>{if(0===sf(o).length)return e;return uf(e,o,{getCategory:e=>t.find((({slug:t})=>t===e.category))?.title,getCollection:e=>n[e.name.split("/")[0]]?.title})},uf=(e=[],t="",n={})=>{if(0===sf(t).length)return e;const o=e.map((e=>[e,df(e,t,n)])).filter((([,e])=>e>0));return o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))};function df(e,t,n={}){const{getName:o=Jm,getTitle:r=ef,getDescription:l=tf,getKeywords:i=nf,getCategory:a=of,getCollection:s=rf}=n,c=o(e),u=r(e),d=l(e),p=i(e),m=a(e),f=s(e),g=af(t),h=af(u);let b=0;if(g===h)b+=30;else if(h.startsWith(g))b+=20;else{const e=[c,u,d,...p,m,f].join(" ");0===((e,t)=>e.filter((e=>!sf(t).some((t=>t.includes(e))))))(lf(g),e).length&&(b+=10)}if(0!==b&&c.startsWith("core/")){b+=c!==e.id?1:2}return b}function pf({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,c.createElement)(m.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},(0,v.sprintf)((0,v._n)('%1$d pattern found for "%2$s"','%1$d patterns found for "%2$s"',t),t,e)):null}var mf=function({filterValue:e,selectedCategory:t,patternCategories:n}){const o=(0,p.useDebounce)(Cn.speak,500),[r,l]=Ym({shouldFocusBlock:!0}),[i,,a]=Hm(l,r),s=(0,c.useMemo)((()=>n.map((e=>e.name))),[n]),u=(0,c.useMemo)((()=>e?uf(i,e):i.filter((e=>"uncategorized"===t?!e.categories?.length||e.categories.every((e=>!s.includes(e))):e.categories?.includes(t)))),[e,i,t,s]);(0,c.useEffect)((()=>{if(!e)return;const t=u.length,n=(0,v.sprintf)((0,v._n)("%d result found.","%d results found.",t),t);o(n)}),[e,o,u.length]);const d=(0,p.useAsyncList)(u,{step:2}),m=!!u?.length;return(0,c.createElement)("div",{className:"block-editor-block-patterns-explorer__list"},m&&(0,c.createElement)(pf,{filterValue:e,filteredBlockPatternsLength:u.length}),(0,c.createElement)(Dm,null,!m&&(0,c.createElement)(Zm,null),m&&(0,c.createElement)(jm,{shownPatterns:d,blockPatterns:u,onClickPattern:a,isDraggable:!1})))};function ff({initialCategory:e,patternCategories:t}){const[n,o]=(0,c.useState)(""),[r,l]=(0,c.useState)(e?.name);return(0,c.createElement)("div",{className:"block-editor-block-patterns-explorer"},(0,c.createElement)(qm,{selectedCategory:r,patternCategories:t,onClickCategory:l,filterValue:n,setFilterValue:o}),(0,c.createElement)(mf,{filterValue:n,selectedCategory:r,patternCategories:t}))}var gf=function({onModalClose:e,...t}){return(0,c.createElement)(m.Modal,{title:(0,v.__)("Patterns"),onRequestClose:e,isFullScreen:!0},(0,c.createElement)(ff,{...t}))};function hf({title:e}){return(0,c.createElement)(m.__experimentalVStack,{spacing:0},(0,c.createElement)(m.__experimentalView,null,(0,c.createElement)(m.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3},(0,c.createElement)(m.__experimentalHStack,{spacing:2},(0,c.createElement)(m.__experimentalNavigatorBackButton,{style:{minWidth:24,padding:0},icon:(0,v.isRTL)()?Hd:Gd,isSmall:!0,"aria-label":(0,v.__)("Navigate to the previous view")}),(0,c.createElement)(m.__experimentalSpacer,null,(0,c.createElement)(m.__experimentalHeading,{level:5},e))))))}function bf({categories:e,children:t}){return(0,c.createElement)(m.__experimentalNavigatorProvider,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation"},(0,c.createElement)(m.__experimentalNavigatorScreen,{path:"/"},(0,c.createElement)(m.__experimentalItemGroup,null,e.map((e=>(0,c.createElement)(m.__experimentalNavigatorButton,{key:e.name,path:`/category/${e.name}`,as:m.__experimentalItem,isAction:!0},(0,c.createElement)(m.__experimentalHStack,null,(0,c.createElement)(m.FlexBlock,null,e.label),(0,c.createElement)(Xl,{icon:(0,v.isRTL)()?Gd:Hd}))))))),e.map((e=>(0,c.createElement)(m.__experimentalNavigatorScreen,{key:e.name,path:`/category/${e.name}`},(0,c.createElement)(hf,{title:(0,v.__)("Back")}),t(e)))))}const vf=()=>{},_f=["custom","featured","posts","text","gallery","call-to-action","banner","header","footer"];function kf(e){const[t,n]=Hm(void 0,e),o=(0,c.useCallback)((e=>!(!e.categories||!e.categories.length)&&e.categories.some((e=>n.some((t=>t.name===e))))),[n]),r=(0,c.useMemo)((()=>{const e=n.filter((e=>t.some((t=>t.categories?.includes(e.name))))).sort((({name:e},{name:t})=>{let n=_f.indexOf(e),o=_f.indexOf(t);return n<0&&(n=_f.length),o<0&&(o=_f.length),n-o}));return t.some((e=>!o(e)))&&!e.find((e=>"uncategorized"===e.name))&&e.push({name:"uncategorized",label:(0,v._x)("Uncategorized")}),e}),[n,t,o]);return r}function yf({rootClientId:e,onInsert:t,onHover:n,category:o,showTitlesAsTooltip:r}){const l=(0,c.useRef)();return(0,c.useEffect)((()=>{const e=setTimeout((()=>{const[e]=ea.focus.tabbable.find(l.current);e?.focus()}));return()=>clearTimeout(e)}),[o]),(0,c.createElement)("div",{ref:l,className:"block-editor-inserter__patterns-category-dialog"},(0,c.createElement)(Ef,{rootClientId:e,onInsert:t,onHover:n,category:o,showTitlesAsTooltip:r}))}function Ef({rootClientId:e,onInsert:t,onHover:n=vf,category:o,showTitlesAsTooltip:r}){const[l,,i]=Hm(t,e),a=kf(e),s=(0,c.useMemo)((()=>l.filter((e=>{var t;if("uncategorized"!==o.name)return e.categories?.includes(o.name);return 0===(null!==(t=e.categories?.filter((e=>a.find((t=>t.name===e)))))&&void 0!==t?t:[]).length}))),[l,a,o.name]),u=(0,p.useAsyncList)(s);return(0,c.useEffect)((()=>()=>n(null)),[]),s.length?(0,c.createElement)("div",{className:"block-editor-inserter__patterns-category-panel"},(0,c.createElement)("div",{className:"block-editor-inserter__patterns-category-panel-title"},o.label),(0,c.createElement)("p",null,o.description),(0,c.createElement)(jm,{shownPatterns:u,blockPatterns:s,onClickPattern:i,onHover:n,label:o.label,orientation:"vertical",category:o.label,isDraggable:!0,showTitlesAsTooltip:r})):null}var wf=function({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:o}){const[r,l]=(0,c.useState)(!1),i=kf(o),a=t||i[0],s=(0,p.useViewportMatch)("medium","<");return(0,c.createElement)(c.Fragment,null,!s&&(0,c.createElement)("div",{className:"block-editor-inserter__block-patterns-tabs-container"},(0,c.createElement)("nav",{"aria-label":(0,v.__)("Block pattern categories")},(0,c.createElement)(m.__experimentalItemGroup,{role:"list",className:"block-editor-inserter__block-patterns-tabs"},i.map((n=>(0,c.createElement)(m.__experimentalItem,{role:"listitem",key:n.name,onClick:()=>e(n),className:n===t?"block-editor-inserter__patterns-category block-editor-inserter__patterns-selected-category":"block-editor-inserter__patterns-category","aria-label":n.label,"aria-current":n===t?"true":void 0},(0,c.createElement)(m.__experimentalHStack,null,(0,c.createElement)(m.FlexBlock,null,n.label),(0,c.createElement)(Xl,{icon:(0,v.isRTL)()?Gd:Hd}))))),(0,c.createElement)("div",{role:"listitem"},(0,c.createElement)(m.Button,{className:"block-editor-inserter__patterns-explore-button",onClick:()=>l(!0),variant:"secondary"},(0,v.__)("Explore all patterns")))))),s&&(0,c.createElement)(bf,{categories:i},(e=>(0,c.createElement)(Ef,{onInsert:n,rootClientId:o,category:e,showTitlesAsTooltip:!1}))),r&&(0,c.createElement)(gf,{initialCategory:a,patternCategories:i,onModalClose:()=>l(!1)}))},Sf=window.wp.url;var Cf=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),xf=window.wp.preferences;const Bf="isResuableBlocksrRenameHintVisible";function If(){const e=(0,f.useSelect)((e=>{var t;return null===(t=e(xf.store).get("core",Bf))||void 0===t||t}),[]),t=(0,c.useRef)(),{set:n}=(0,f.useDispatch)(xf.store);return e?(0,c.createElement)("div",{ref:t,className:"reusable-blocks-menu-items__rename-hint"},(0,c.createElement)("div",{className:"reusable-blocks-menu-items__rename-hint-content"},(0,v.__)("Reusable blocks are now synced patterns. A synced pattern will behave in exactly the same way as a reusable block.")),(0,c.createElement)(m.Button,{className:"reusable-blocks-menu-items__rename-hint-dismiss",icon:Cf,iconSize:"16",label:(0,v.__)("Dismiss hint"),onClick:()=>{const e=ea.focus.tabbable.findPrevious(t.current);e?.focus(),n("core",Bf,!1)},showTooltip:!1})):null}function Tf({onHover:e,onInsert:t,rootClientId:n}){const[o,,,r]=Am(n,t),l=(0,c.useMemo)((()=>o.filter((({category:e})=>"reusable"===e))),[o]);return 0===l.length?(0,c.createElement)(Zm,null):(0,c.createElement)(Rm,{title:(0,v.__)("Synced patterns")},(0,c.createElement)(Lm,{items:l,onSelect:r,onHover:e,label:(0,v.__)("Synced patterns")}))}var Mf=function({rootClientId:e,onInsert:t,onHover:n}){return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-inserter__hint"},(0,c.createElement)(If,null)),(0,c.createElement)(Tf,{onHover:n,onInsert:t,rootClientId:e}),(0,c.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},(0,c.createElement)(m.Button,{className:"block-editor-inserter__manage-reusable-blocks",variant:"secondary",href:(0,Sf.addQueryArgs)("edit.php",{post_type:"wp_block"})},(0,v.__)("Manage my patterns"))))};function Pf(e){const[t,n]=(0,c.useState)([]),{canInsertImage:o,canInsertVideo:r,canInsertAudio:l}=(0,f.useSelect)((t=>{const{canInsertBlockType:n}=t(Go);return{canInsertImage:n("core/image",e),canInsertVideo:n("core/video",e),canInsertAudio:n("core/audio",e)}}),[e]),i=function(){const{inserterMediaCategories:e,allowedMimeTypes:t,enableOpenverseMediaCategory:n}=(0,f.useSelect)((e=>{const t=e(Go).getSettings();return{inserterMediaCategories:t.inserterMediaCategories,allowedMimeTypes:t.allowedMimeTypes,enableOpenverseMediaCategory:t.enableOpenverseMediaCategory}}),[]),o=(0,c.useMemo)((()=>{if(e&&t)return e.filter((e=>!(!n&&"openverse"===e.name)&&Object.values(t).some((t=>t.startsWith(`${e.mediaType}/`)))))}),[e,t,n]);return o}();return(0,c.useEffect)((()=>{(async()=>{const e=[];if(!i)return;const t=new Map(await Promise.all(i.map((async e=>{if(e.isExternalResource)return[e.name,!0];let t=[];try{t=await e.fetch({per_page:1})}catch(e){}return[e.name,!!t.length]})))),a={image:o,video:r,audio:l};i.forEach((n=>{a[n.mediaType]&&t.get(n.name)&&e.push(n)})),e.length&&n(e)})()}),[o,r,l,i]),t}var Nf=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));var Lf=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),Rf=window.wp.blob;const Af={image:"img",video:"video",audio:"audio"};function Df(e,t){const n={id:e.id||void 0,caption:e.caption||void 0},o=e.url,r=e.alt||void 0;"image"===t?(n.url=o,n.alt=r):["video","audio"].includes(t)&&(n.src=o);const l=Af[t],i=(0,c.createElement)(l,{src:e.previewUrl||o,alt:r,controls:"audio"===t||void 0,inert:"true",onError:({currentTarget:t})=>{t.src===e.previewUrl&&(t.src=o)}});return[(0,a.createBlock)(`core/${t}`,n),i]}const Of=["image"],zf=25,Vf={position:"bottom left",className:"block-editor-inserter__media-list__item-preview-options__popover"};function Ff({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return(0,c.createElement)(m.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,v.__)("Options"),popoverProps:Vf,icon:Nf},(()=>(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(m.MenuItem,{onClick:()=>window.open(n,"_blank").focus(),icon:Lf},(0,v.sprintf)((0,v.__)("Report %s"),e.mediaType)))))}function Hf({onClose:e,onSubmit:t}){return(0,c.createElement)(m.Modal,{title:(0,v.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal"},(0,c.createElement)(m.__experimentalVStack,{spacing:3},(0,c.createElement)("p",null,(0,v.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")),(0,c.createElement)("p",null,(0,v.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation."))),(0,c.createElement)(m.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(m.Button,{variant:"tertiary",onClick:e},(0,v.__)("Cancel"))),(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(m.Button,{variant:"primary",onClick:t},(0,v.__)("Insert")))))}function Gf({media:e,onClick:t,composite:n,category:o}){const[r,l]=(0,c.useState)(!1),[i,s]=(0,c.useState)(!1),[u,p]=(0,c.useState)(!1),[g,h]=(0,c.useMemo)((()=>Df(e,o.mediaType)),[e,o.mediaType]),{createErrorNotice:b,createSuccessNotice:_}=(0,f.useDispatch)(Vm.store),k=(0,f.useSelect)((e=>e(Go).getSettings().mediaUpload),[]),y=(0,c.useCallback)((e=>{if(u)return;const n=(0,a.cloneBlock)(e),{id:o,url:r,caption:i}=n.attributes;o?t(n):(p(!0),window.fetch(r).then((e=>e.blob())).then((e=>{k({filesList:[e],additionalData:{caption:i},onFileChange([e]){(0,Rf.isBlobURL)(e.url)||(t({...n,attributes:{...n.attributes,id:e.id,url:e.url}}),_((0,v.__)("Image uploaded and inserted."),{type:"snackbar"}),p(!1))},allowedTypes:Of,onError(e){b(e,{type:"snackbar"}),p(!1)}})})).catch((()=>{l(!0),p(!1)})))}),[u,t,k,b,_]),E=e.title?.rendered||e.title;let w;if(E.length>zf){const e="...";w=E.slice(0,zf-e.length)+e}const S=(0,c.useCallback)((()=>s(!0)),[]),C=(0,c.useCallback)((()=>s(!1)),[]);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Tm,{isEnabled:!0,blocks:[g]},(({draggable:t,onDragStart:r,onDragEnd:l})=>(0,c.createElement)("div",{className:d()("block-editor-inserter__media-list__list-item",{"is-hovered":i}),draggable:t,onDragStart:r,onDragEnd:l},(0,c.createElement)(m.Tooltip,{text:w||E},(0,c.createElement)("div",{onMouseEnter:S,onMouseLeave:C},(0,c.createElement)(m.__unstableCompositeItem,{role:"option",as:"div",...n,className:"block-editor-inserter__media-list__item",onClick:()=>y(g),"aria-label":E},(0,c.createElement)("div",{className:"block-editor-inserter__media-list__item-preview"},h,u&&(0,c.createElement)("div",{className:"block-editor-inserter__media-list__item-preview-spinner"},(0,c.createElement)(m.Spinner,null)))),!u&&(0,c.createElement)(Ff,{category:o,media:e})))))),r&&(0,c.createElement)(Hf,{onClose:()=>l(!1),onSubmit:()=>{t((0,a.cloneBlock)(g)),_((0,v.__)("Image inserted."),{type:"snackbar"}),l(!1)}}))}var Uf=function({mediaList:e,category:t,onClick:n,label:o=(0,v.__)("Media List")}){const r=(0,m.__unstableUseCompositeState)();return(0,c.createElement)(m.__unstableComposite,{...r,role:"listbox",className:"block-editor-inserter__media-list","aria-label":o},e.map(((e,o)=>(0,c.createElement)(Gf,{key:e.id||e.sourceId||o,media:e,category:t,onClick:n,composite:r}))))};function $f(e=""){const[t,n]=(0,c.useState)(e),[o,r]=(0,c.useState)(e),l=(0,p.useDebounce)(r,250);return(0,c.useEffect)((()=>{o!==t&&l(t)}),[o,t]),[t,n,o]}const jf=10;function Wf({rootClientId:e,onInsert:t,category:n}){const o=(0,c.useRef)();return(0,c.useEffect)((()=>{const e=setTimeout((()=>{const[e]=ea.focus.tabbable.find(o.current);e?.focus()}));return()=>clearTimeout(e)}),[n]),(0,c.createElement)("div",{ref:o,className:"block-editor-inserter__media-dialog"},(0,c.createElement)(Kf,{rootClientId:e,onInsert:t,category:n}))}function Kf({rootClientId:e,onInsert:t,category:n}){const[o,r,l]=$f(),{mediaList:i,isLoading:a}=function(e,t={}){const[n,o]=(0,c.useState)(),[r,l]=(0,c.useState)(!1),i=(0,c.useRef)();return(0,c.useEffect)((()=>{(async()=>{const n=JSON.stringify({category:e.name,...t});i.current=n,l(!0),o([]);const r=await(e.fetch?.(t));n===i.current&&(o(r),l(!1))})()}),[e.name,...Object.values(t)]),{mediaList:n,isLoading:r}}(n,{per_page:l?20:jf,search:l}),s="block-editor-inserter__media-panel",u=n.labels.search_items||(0,v.__)("Search");return(0,c.createElement)("div",{className:s},(0,c.createElement)(m.SearchControl,{className:`${s}-search`,onChange:r,value:o,label:u,placeholder:u}),a&&(0,c.createElement)("div",{className:`${s}-spinner`},(0,c.createElement)(m.Spinner,null)),!a&&!i?.length&&(0,c.createElement)(Zm,null),!a&&!!i?.length&&(0,c.createElement)(Uf,{rootClientId:e,onClick:t,mediaList:i,category:n}))}var qf=function({fallback:e=null,children:t}){const n=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return!!t().mediaUpload}),[]);return n?t:e};var Zf=(0,m.withFilters)("editor.MediaUpload")((()=>null));const Yf=["image","video","audio"];var Xf=function({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:o}){const r=Pf(e),l=(0,p.useViewportMatch)("medium","<"),i="block-editor-inserter__media-tabs",a=(0,c.useCallback)((e=>{if(!e?.url)return;const[t]=Df(e,e.type);o(t)}),[o]),s=(0,c.useMemo)((()=>r.map((e=>({...e,label:e.labels.name})))),[r]);return(0,c.createElement)(c.Fragment,null,!l&&(0,c.createElement)("div",{className:`${i}-container`},(0,c.createElement)("nav",{"aria-label":(0,v.__)("Media categories")},(0,c.createElement)(m.__experimentalItemGroup,{role:"list",className:i},r.map((e=>(0,c.createElement)(m.__experimentalItem,{role:"listitem",key:e.name,onClick:()=>n(e),className:d()(`${i}__media-category`,{"is-selected":t===e}),"aria-label":e.labels.name,"aria-current":e===t?"true":void 0},(0,c.createElement)(m.__experimentalHStack,null,(0,c.createElement)(m.FlexBlock,null,e.labels.name),(0,c.createElement)(Xl,{icon:(0,v.isRTL)()?Gd:Hd}))))),(0,c.createElement)("div",{role:"listitem"},(0,c.createElement)(qf,null,(0,c.createElement)(Zf,{multiple:!1,onSelect:a,allowedTypes:Yf,render:({open:e})=>(0,c.createElement)(m.Button,{onClick:t=>{t.target.focus(),e()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal"},(0,v.__)("Open Media Library"))})))))),l&&(0,c.createElement)(bf,{categories:s},(t=>(0,c.createElement)(Kf,{onInsert:o,rootClientId:e,category:t}))))};const{Fill:Qf,Slot:Jf}=(0,m.createSlotFill)("__unstableInserterMenuExtension");Qf.Slot=Jf;var eg=Qf;const tg=(e,t)=>t?(e.sort((({id:e},{id:n})=>{let o=t.indexOf(e),r=t.indexOf(n);return o<0&&(o=t.length),r<0&&(r=t.length),o-r})),e):e,ng=[];var og=function({filterValue:e,onSelect:t,onHover:n,rootClientId:o,clientId:r,isAppender:l,__experimentalInsertionIndex:i,maxBlockPatterns:a,maxBlockTypes:s,showBlockDirectory:u=!1,isDraggable:d=!0,shouldFocusBlock:g=!0,prioritizePatterns:h,selectBlockOnInsert:b}){const _=(0,p.useDebounce)(Cn.speak,500),{prioritizedBlocks:k}=(0,f.useSelect)((e=>{const t=e(Go).getBlockListSettings(o);return{prioritizedBlocks:t?.prioritizedInserterBlocks||ng}}),[o]),[y,E]=Ym({onSelect:t,rootClientId:o,clientId:r,isAppender:l,insertionIndex:i,shouldFocusBlock:g,selectBlockOnInsert:b}),[w,S,C,x]=Am(y,E),[B,,I]=Hm(E,y),T=(0,c.useMemo)((()=>{if(0===a)return[];const t=uf(B,e);return void 0!==a?t.slice(0,a):t}),[e,B,a]);let M=s;h&&T.length>2&&(M=0);const P=(0,c.useMemo)((()=>{if(0===M)return[];let t=K(w,"frecency","desc");!e&&k.length&&(t=tg(t,k));const n=cf(t,S,C,e);return void 0!==M?n.slice(0,M):n}),[e,w,S,C,M,k]);(0,c.useEffect)((()=>{if(!e)return;const t=P.length+T.length,n=(0,v.sprintf)((0,v._n)("%d result found.","%d results found.",t),t);_(n)}),[e,_,P,T]);const N=(0,p.useAsyncList)(P,{step:9}),L=(0,p.useAsyncList)(N.length===P.length?T:ng),R=P.length>0||T.length>0,A=!!P.length&&(0,c.createElement)(Rm,{title:(0,c.createElement)(m.VisuallyHidden,null,(0,v.__)("Blocks"))},(0,c.createElement)(Lm,{items:N,onSelect:x,onHover:n,label:(0,v.__)("Blocks"),isDraggable:d})),D=!!T.length&&(0,c.createElement)(Rm,{title:(0,c.createElement)(m.VisuallyHidden,null,(0,v.__)("Block Patterns"))},(0,c.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},(0,c.createElement)(jm,{shownPatterns:L,blockPatterns:T,onClickPattern:I,onHover:n,isDraggable:d})));return(0,c.createElement)(Dm,null,!u&&!R&&(0,c.createElement)(Zm,null),h?D:A,!!P.length&&!!T.length&&(0,c.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),h?A:D,u&&(0,c.createElement)(eg.Slot,{fillProps:{onSelect:x,onHover:n,filterValue:e,hasItems:R,rootClientId:y}},(e=>e.length?e:R?null:(0,c.createElement)(Zm,null))))};const rg={name:"blocks",title:(0,v.__)("Blocks")},lg={name:"patterns",title:(0,v.__)("Patterns")},ig={name:"reusable",title:(0,v.__)("Synced patterns"),icon:H},ag={name:"media",title:(0,v.__)("Media")};var sg=function({children:e,showPatterns:t=!1,showReusableBlocks:n=!1,showMedia:o=!1,onSelect:r,prioritizePatterns:l}){const i=(0,c.useMemo)((()=>{const e=[];return l&&t&&e.push(lg),e.push(rg),!l&&t&&e.push(lg),o&&e.push(ag),n&&e.push(ig),e}),[l,t,n,o]);return(0,c.createElement)(m.TabPanel,{className:"block-editor-inserter__tabs",tabs:i,onSelect:r},e)};var cg=(0,c.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,onSelect:r,showInserterHelpPanel:l,showMostUsedBlocks:i,__experimentalFilterValue:a="",shouldFocusBlock:s=!0,prioritizePatterns:u},p){const[g,h,b]=$f(a),[_,k]=(0,c.useState)(null),[y,E]=(0,c.useState)(null),[w,S]=(0,c.useState)(null),[C,x]=(0,c.useState)(null),[B,I,T]=Ym({rootClientId:e,clientId:t,isAppender:n,insertionIndex:o,shouldFocusBlock:s}),{showPatterns:M,inserterItems:P}=(0,f.useSelect)((e=>{const{__experimentalGetAllowedPatterns:t,getInserterItems:n}=e(Go);return{showPatterns:!!t(B).length,inserterItems:n(B)}}),[B]),N=(0,c.useMemo)((()=>P.some((({category:e})=>"reusable"===e))),[P]),L=!!Pf(B).length,R=(0,c.useCallback)(((e,t,n)=>{I(e,t,n),r()}),[I,r]),A=(0,c.useCallback)(((e,t)=>{I(e,{patternName:t}),r()}),[I,r]),D=(0,c.useCallback)((e=>{T(!!e),k(e)}),[T,k]),O=(0,c.useCallback)((e=>{T(!!e)}),[T]),z=(0,c.useCallback)((e=>{E(e)}),[E]),V=(0,c.useMemo)((()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-inserter__block-list"},(0,c.createElement)(zm,{rootClientId:B,onInsert:R,onHover:D,showMostUsedBlocks:i})),l&&(0,c.createElement)("div",{className:"block-editor-inserter__tips"},(0,c.createElement)(m.VisuallyHidden,{as:"h2"},(0,v.__)("A tip for using the block editor")),(0,c.createElement)(Fd,null)))),[B,R,D,i,l]),F=(0,c.useMemo)((()=>(0,c.createElement)(wf,{rootClientId:B,onInsert:A,onSelectCategory:z,selectedCategory:y})),[B,A,z,y]),H=(0,c.useMemo)((()=>(0,c.createElement)(Mf,{rootClientId:B,onInsert:R,onHover:D})),[B,R,D]),G=(0,c.useMemo)((()=>(0,c.createElement)(Xf,{rootClientId:B,selectedCategory:w,onSelectCategory:S,onInsert:R})),[B,R,w,S]),U=(0,c.useCallback)((e=>"blocks"===e.name?V:"patterns"===e.name?F:"reusable"===e.name?H:"media"===e.name?G:void 0),[V,F,H,G]),$=(0,c.useRef)();(0,c.useImperativeHandle)(p,(()=>({focusSearch:()=>{$.current.focus()}})));const j="patterns"===C&&!b&&y,W=!b&&(M||N||L),K="media"===C&&!b&&w;return(0,c.createElement)("div",{className:"block-editor-inserter__menu"},(0,c.createElement)("div",{className:d()("block-editor-inserter__main-area",{"show-as-tabs":W})},(0,c.createElement)(m.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",onChange:e=>{_&&k(null),h(e)},value:g,label:(0,v.__)("Search for blocks and patterns"),placeholder:(0,v.__)("Search"),ref:$}),!!b&&(0,c.createElement)("div",{className:"block-editor-inserter__no-tab-container"},(0,c.createElement)(og,{filterValue:b,onSelect:r,onHover:D,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,showBlockDirectory:!0,shouldFocusBlock:s})),W&&(0,c.createElement)(sg,{showPatterns:M,showReusableBlocks:N,showMedia:L,prioritizePatterns:u,onSelect:x},U),!b&&!W&&(0,c.createElement)("div",{className:"block-editor-inserter__no-tab-container"},V)),K&&(0,c.createElement)(Wf,{rootClientId:B,onInsert:R,category:w}),l&&_&&(0,c.createElement)(Sm,{item:_}),j&&(0,c.createElement)(yf,{rootClientId:B,onInsert:A,onHover:O,category:y,showTitlesAsTooltip:!0}))}));function ug({onSelect:e,rootClientId:t,clientId:n,isAppender:o,prioritizePatterns:r,selectBlockOnInsert:l}){const[i,a]=(0,c.useState)(""),[s,u]=Ym({onSelect:e,rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:l}),[p]=Am(s,u),[g]=Hm(u,s),{setInserterIsOpened:h,insertionIndex:b}=(0,f.useSelect)((e=>{const{getSettings:t,getBlockIndex:o,getBlockCount:r}=e(Go),l=t(),i=o(n),a=r();return{setInserterIsOpened:l.__experimentalSetIsInserterOpened,insertionIndex:-1===i?a:i}}),[n]),_=g.length&&(!!i||r),k=_&&g.length>6||p.length>6;(0,c.useEffect)((()=>{h&&h(!1)}),[h]);let y=0;return _&&(y=r?4:2),(0,c.createElement)("div",{className:d()("block-editor-inserter__quick-inserter",{"has-search":k,"has-expand":h})},k&&(0,c.createElement)(m.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:i,onChange:e=>{a(e)},label:(0,v.__)("Search for blocks and patterns"),placeholder:(0,v.__)("Search")}),(0,c.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},(0,c.createElement)(og,{filterValue:i,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:y,maxBlockTypes:6,isDraggable:!1,prioritizePatterns:r,selectBlockOnInsert:l})),h&&(0,c.createElement)(m.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{h({rootClientId:t,insertionIndex:b,filterValue:i})},"aria-label":(0,v.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},(0,v.__)("Browse all")))}const dg=({onToggle:e,disabled:t,isOpen:n,blockTitle:o,hasSingleBlockType:r,toggleProps:l={},prioritizePatterns:i})=>{const{as:a=m.Button,label:s,onClick:u,...d}=l;let p=s;return!p&&r?p=(0,v.sprintf)((0,v._x)("Add %s","directly add the only allowed block"),o):!p&&i?p=(0,v.__)("Add pattern"):p||(p=(0,v._x)("Add block","Generic label for block inserter button")),(0,c.createElement)(a,{icon:zd,label:p,tooltipPosition:"bottom",onClick:function(t){e&&e(t),u&&u(t)},className:"block-editor-inserter__toggle","aria-haspopup":!r&&"true","aria-expanded":!r&&n,disabled:t,...d})};class pg extends c.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:o,hasSingleBlockType:r,directInsertBlock:l,toggleProps:i,hasItems:a,renderToggle:s=dg,prioritizePatterns:c}=this.props;return s({onToggle:e,isOpen:t,disabled:n||!a,blockTitle:o,hasSingleBlockType:r,directInsertBlock:l,toggleProps:i,prioritizePatterns:c})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,__experimentalIsQuick:l,prioritizePatterns:i,onSelectOrClose:a,selectBlockOnInsert:s}=this.props;return l?(0,c.createElement)(ug,{onSelect:t=>{const n=Array.isArray(t)&&t?.length?t[0]:t;a&&"function"==typeof a&&a(n),e()},rootClientId:t,clientId:n,isAppender:o,prioritizePatterns:i,selectBlockOnInsert:s}):(0,c.createElement)(cg,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,prioritizePatterns:i})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:o,__experimentalIsQuick:r,onSelectOrClose:l}=this.props;return t||n?this.renderToggle({onToggle:o}):(0,c.createElement)(m.Dropdown,{className:"block-editor-inserter",contentClassName:d()("block-editor-inserter__popover",{"is-quick":r}),popoverProps:{position:e,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,v.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:l})}}const mg=(0,p.compose)([(0,f.withSelect)(((e,{clientId:t,rootClientId:n,shouldDirectInsert:o=!0})=>{const{getBlockRootClientId:r,hasInserterItems:l,getAllowedBlocks:i,__experimentalGetDirectInsertBlock:s,getSettings:c}=e(Go),{getBlockVariations:u}=e(a.store),d=i(n=n||r(t)||void 0),p=o&&s(n),m=c(),f=1===d?.length&&0===u(d[0].name,"inserter")?.length;let g=!1;return f&&(g=d[0]),{hasItems:l(n),hasSingleBlockType:f,blockTitle:g?g.title:"",allowedBlockType:g,directInsertBlock:p,rootClientId:n,prioritizePatterns:m.__experimentalPreferPatternsOnRoot&&!n}})),(0,f.withDispatch)(((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:l,hasSingleBlockType:i,allowedBlockType:s,directInsertBlock:c,onSelectOrClose:u,selectBlockOnInsert:d}=t;if(!i&&!c)return;const{insertBlock:p}=e(Go);let m;if(c){const e=function(e){const{getBlock:t,getPreviousBlockClientId:l}=n(Go);if(!e||!r&&!o)return{};const i={};let a={};if(r){const e=t(r),n=t(l(r));e?.name===n?.name&&(a=n?.attributes||{})}else{const e=t(o);if(e?.innerBlocks?.length){const t=e.innerBlocks[e.innerBlocks.length-1];c&&c?.name===t.name&&(a=t.attributes)}}return e.forEach((e=>{a.hasOwnProperty(e)&&(i[e]=a[e])})),i}(c.attributesToCopy);m=(0,a.createBlock)(c.name,{...c.attributes||{},...e})}else m=(0,a.createBlock)(s.name);p(m,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:i,getBlockRootClientId:a}=n(Go);if(r)return e(r);const s=t();return!l&&s&&a(s)===o?e(s)+1:i(o).length}(),o,d),u&&u({clientId:m?.clientId});const f=(0,v.sprintf)((0,v.__)("%s block added"),s.title);(0,Cn.speak)(f)}}))),(0,p.ifCondition)((({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o))])(pg);var fg=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(mg,{ref:t,...e})));var gg=(0,p.compose)((0,f.withSelect)(((e,t)=>{const{getBlockCount:n,getSettings:o,getTemplateLock:r}=e(Go),l=!n(t.rootClientId),{bodyPlaceholder:i}=o();return{showPrompt:l,isLocked:!!r(t.rootClientId),placeholder:i}})),(0,f.withDispatch)(((e,t)=>{const{insertDefaultBlock:n,startTyping:o}=e(Go);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),o()}}})))((function({isLocked:e,onAppend:t,showPrompt:n,placeholder:o,rootClientId:r}){if(e)return null;const l=(0,Od.decodeEntities)(o)||(0,v.__)("Type / to choose a block");return(0,c.createElement)("div",{"data-root-client-id":r||"",className:d()("block-editor-default-block-appender",{"has-visible-prompt":n})},(0,c.createElement)("p",{tabIndex:"0",role:"button","aria-label":(0,v.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{yd.ENTER!==e.keyCode&&yd.SPACE!==e.keyCode||t()},onClick:()=>t(),onFocus:()=>{n&&t()}},n?l:"\ufeff"),(0,c.createElement)(fg,{rootClientId:r,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));function hg({rootClientId:e,className:t,onFocus:n,tabIndex:o},r){return(0,c.createElement)(fg,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:l,isOpen:i,blockTitle:a,hasSingleBlockType:s})=>{let u;u=s?(0,v.sprintf)((0,v._x)("Add %s","directly add the only allowed block"),a):(0,v._x)("Add block","Generic label for block inserter button");const p=!s;let f=(0,c.createElement)(m.Button,{ref:r,onFocus:n,tabIndex:o,className:d()(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":p?"true":void 0,"aria-expanded":p?i:void 0,disabled:l,label:u},!s&&(0,c.createElement)(m.VisuallyHidden,{as:"span"},u),(0,c.createElement)(Xl,{icon:zd}));return(p||s)&&(f=(0,c.createElement)(m.Tooltip,{text:u},f)),f},isAppender:!0})}const bg=(0,c.forwardRef)(((e,t)=>($()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),hg(e,t))));var vg=(0,c.forwardRef)(hg);function _g({rootClientId:e}){return(0,f.useSelect)((t=>t(Go).canInsertBlockType((0,a.getDefaultBlockName)(),e)))?(0,c.createElement)(gg,{rootClientId:e}):(0,c.createElement)(vg,{rootClientId:e,className:"block-list-appender__toggle"})}var kg=function({rootClientId:e,renderAppender:t,className:n,tagName:o="div"}){const r=function(e,t){const n=(0,f.useSelect)((n=>{const{getTemplateLock:o,getSelectedBlockClientId:r,__unstableGetEditorMode:l,getBlockEditingMode:i}=Fo(n(Go));if(!1===t)return!1;if(!t){const t=r();if(e!==t&&(e||t))return!1}return!o(e)&&"disabled"!==i(e)&&"zoom-out"!==l()}),[e,t]);return n?t?(0,c.createElement)(t,null):(0,c.createElement)(_g,{rootClientId:e}):null}(e,t),l=(0,f.useSelect)((t=>{const{getBlockInsertionPoint:n,isBlockInsertionPointVisible:o,getBlockCount:r}=t(Go),l=n();return o()&&e===l?.rootClientId&&0===r(e)}),[e]);return r?(0,c.createElement)(o,{tabIndex:-1,className:d()("block-list-appender wp-block",n,{"is-drag-over":l}),contentEditable:!1,"data-block":!0},r):null};var yg=function(e){return(0,p.useRefEffect)((t=>{if(!e)return;function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}}),[e])};const Eg=Number.MAX_SAFE_INTEGER;(0,c.createContext)();var wg=function({previousClientId:e,nextClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,...l}){const[i,a]=(0,c.useReducer)((e=>(e+1)%Eg),0),{orientation:s,rootClientId:u,isVisible:p}=(0,f.useSelect)((n=>{const{getBlockListSettings:o,getBlockRootClientId:r,isBlockVisible:l}=n(Go),i=r(null!=e?e:t);return{orientation:o(i)?.orientation||"vertical",rootClientId:i,isVisible:l(e)&&l(t)}}),[e,t]),g=Id(e),h=Id(t),b="vertical"===s,_=(0,c.useMemo)((()=>{if(i<0||!g&&!h||!p)return;const{ownerDocument:e}=g||h;return{ownerDocument:e,getBoundingClientRect(){const e=g?g.getBoundingClientRect():null,t=h?h.getBoundingClientRect():null;let n=0,o=0,r=0,l=0;return b?(o=e?e.bottom:t.top,r=e?e.width:t.width,l=t&&e?t.top-e.bottom:0,n=e?e.left:t.left):(o=e?e.top:t.top,l=e?e.height:t.height,(0,v.isRTL)()?(n=t?t.right:e.left,r=e&&t?e.left-t.right:0):(n=e?e.right:t.left,r=e&&t?t.left-e.right:0)),new window.DOMRect(n,o,r,l)}}}),[g,h,i,b,p]),k=yg(r);return(0,c.useLayoutEffect)((()=>{if(!g)return;const e=new window.MutationObserver(a);return e.observe(g,{attributes:!0}),()=>{e.disconnect()}}),[g]),(0,c.useLayoutEffect)((()=>{if(!h)return;const e=new window.MutationObserver(a);return e.observe(h,{attributes:!0}),()=>{e.disconnect()}}),[h]),(0,c.useLayoutEffect)((()=>{if(g)return g.ownerDocument.defaultView.addEventListener("resize",a),()=>{g.ownerDocument.defaultView?.removeEventListener("resize",a)}}),[g]),(g||h)&&p?(0,c.createElement)(m.Popover,{ref:k,animate:!1,anchor:_,focusOnMount:!1,__unstableSlotName:o||null,key:t+"--"+u,...l,className:d()("block-editor-block-popover","block-editor-block-popover__inbetween",l.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled"},(0,c.createElement)("div",{className:"block-editor-block-popover__inbetween-container"},n)):null};const Sg=Number.MAX_SAFE_INTEGER;var Cg=(0,c.forwardRef)((function({clientId:e,bottomClientId:t,children:n,__unstableRefreshSize:o,__unstableCoverTarget:r=!1,__unstablePopoverSlot:l,__unstableContentRef:i,shift:a=!0,...s},u){const f=Id(e),g=Id(null!=t?t:e),h=(0,p.useMergeRefs)([u,yg(i)]),[b,v]=(0,c.useReducer)((e=>(e+1)%Sg),0);(0,c.useLayoutEffect)((()=>{if(!f)return;const e=new window.MutationObserver(v);return e.observe(f,{attributes:!0}),()=>{e.disconnect()}}),[f]);const _=(0,c.useMemo)((()=>b<0||!f||g!==f?{}:{position:"absolute",width:f.offsetWidth,height:f.offsetHeight}),[f,g,o,b]),k=(0,c.useMemo)((()=>{if(!(b<0||!f||t&&!g))return{getBoundingClientRect(){var e,t,n,o;const r=f.getBoundingClientRect(),l=g?.getBoundingClientRect(),i=Math.min(r.left,null!==(e=l?.left)&&void 0!==e?e:1/0),a=Math.min(r.top,null!==(t=l?.top)&&void 0!==t?t:1/0),s=Math.max(r.right,null!==(n=l.right)&&void 0!==n?n:-1/0)-i,c=Math.max(r.bottom,null!==(o=l.bottom)&&void 0!==o?o:-1/0)-a;return new window.DOMRect(i,a,s,c)},ownerDocument:f.ownerDocument}}),[t,g,f,b]);return!f||t&&!g?null:(0,c.createElement)(m.Popover,{ref:h,animate:!1,focusOnMount:!1,anchor:k,__unstableSlotName:l||null,placement:"top-start",resize:!1,flip:!1,shift:a,...s,className:d()("block-editor-block-popover",s.className),variant:"unstyled"},r&&(0,c.createElement)("div",{style:_},n),!r&&n)}));const xg={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};var Bg=function({__unstablePopoverSlot:e,__unstableContentRef:t}){const{clientId:n}=(0,f.useSelect)((e=>{const{getBlockOrder:t,getBlockInsertionPoint:n}=e(Go),o=n(),r=t(o.rootClientId);return r.length?{clientId:r[o.index]}:{}}),[]),o=(0,p.useReducedMotion)();return(0,c.createElement)(Cg,{clientId:n,__unstableCoverTarget:!0,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone"},(0,c.createElement)(m.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:o?xg.show:xg.hide,animate:xg.show,exit:o?xg.show:xg.exit,className:"block-editor-block-popover__drop-zone-foreground"}))};const Ig=(0,c.createContext)();function Tg({__unstablePopoverSlot:e,__unstableContentRef:t}){const{selectBlock:n,hideInsertionPoint:o}=(0,f.useDispatch)(Go),r=(0,c.useContext)(Ig),l=(0,c.useRef)(),{orientation:i,previousClientId:a,nextClientId:s,rootClientId:u,isInserterShown:g,isDistractionFree:h,isNavigationMode:b}=(0,f.useSelect)((e=>{const{getBlockOrder:t,getBlockListSettings:n,getBlockInsertionPoint:o,isBlockBeingDragged:r,getPreviousBlockClientId:l,getNextBlockClientId:i,getSettings:a,isNavigationMode:s}=e(Go),c=o(),u=t(c.rootClientId);if(!u.length)return{};let d=u[c.index-1],p=u[c.index];for(;r(d);)d=l(d);for(;r(p);)p=i(p);const m=a();return{previousClientId:d,nextClientId:p,orientation:n(c.rootClientId)?.orientation||"vertical",rootClientId:c.rootClientId,isNavigationMode:s(),isDistractionFree:m.isDistractionFree,isInserterShown:c?.__unstableWithInserter}}),[]),v=(0,p.useReducedMotion)();const _={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:g?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},k={start:{scale:v?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(h&&!b)return null;const y=d()("block-editor-block-list__insertion-point","is-"+i);return(0,c.createElement)(wg,{previousClientId:a,nextClientId:s,__unstablePopoverSlot:e,__unstableContentRef:t},(0,c.createElement)(m.__unstableMotion.div,{layout:!v,initial:v?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:l,tabIndex:-1,onClick:function(e){e.target===l.current&&s&&n(s,-1)},onFocus:function(e){e.target!==l.current&&(r.current=!0)},className:d()(y,{"is-with-inserter":g}),onHoverEnd:function(e){e.target!==l.current||r.current||o()}},(0,c.createElement)(m.__unstableMotion.div,{variants:_,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),g&&(0,c.createElement)(m.__unstableMotion.div,{variants:k,className:d()("block-editor-block-list__insertion-point-inserter")},(0,c.createElement)(fg,{position:"bottom center",clientId:s,rootClientId:u,__experimentalIsQuick:!0,onToggle:e=>{r.current=e},onSelectOrClose:()=>{r.current=!1}}))))}function Mg(e){const{insertionPoint:t,isVisible:n,isBlockListEmpty:o}=(0,f.useSelect)((e=>{const{getBlockInsertionPoint:t,isBlockInsertionPointVisible:n,getBlockCount:o}=e(Go),r=t();return{insertionPoint:r,isVisible:n(),isBlockListEmpty:0===o(r?.rootClientId)}}),[]);return!n||o?null:"replace"===t.operation?(0,c.createElement)(Bg,{key:`${t.rootClientId}-${t.index}`,...e}):(0,c.createElement)(Tg,{...e})}function Pg(){const e=(0,c.useContext)(Ig),t=(0,f.useSelect)((e=>e(Go).getSettings().isDistractionFree||"zoom-out"===e(Go).__unstableGetEditorMode()),[]),{getBlockListSettings:n,getBlockIndex:o,isMultiSelecting:r,getSelectedBlockClientIds:l,getTemplateLock:i,__unstableIsWithinBlockOverlay:a,getBlockEditingMode:s}=Fo((0,f.useSelect)(Go)),{showInsertionPoint:u,hideInsertionPoint:d}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((c=>{if(!t)return c.addEventListener("mousemove",p),()=>{c.removeEventListener("mousemove",p)};function p(t){if(e.current)return;if(t.target.nodeType===t.target.TEXT_NODE)return;if(r())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void d();let c;if(!t.target.classList.contains("is-root-container")){c=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")}if(i(c)||"disabled"===s(c))return;const p=n(c)?.orientation||"vertical",m=t.clientY,f=t.clientX;let g=Array.from(t.target.children).find((e=>{const t=e.getBoundingClientRect();return e.classList.contains("wp-block")&&"vertical"===p&&t.top>m||e.classList.contains("wp-block")&&"horizontal"===p&&((0,v.isRTL)()?t.right<f:t.left>f)}));if(!g)return void d();if(!g.id&&(g=g.firstElementChild,!g))return void d();const h=g.id.slice(6);if(!h||a(h))return;if(l().includes(h))return;const b=g.getBoundingClientRect();if("horizontal"===p&&(t.clientY>b.bottom||t.clientY<b.top)||"vertical"===p&&(t.clientX>b.right||t.clientX<b.left))return void d();const _=o(h);0!==_?u(c,_,{__unstableWithInserter:!0}):d()}}),[e,n,o,r,u,d,l,t])}const Ng="undefined"==typeof window?e=>{setTimeout((()=>e(Date.now())),0)}:window.requestIdleCallback||window.requestAnimationFrame,Lg="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;var Rg=(0,p.createHigherOrderComponent)((e=>t=>{const{clientId:n}=Ko();return(0,c.createElement)(e,{...t,clientId:n})}),"withClientId");var Ag=Rg((({clientId:e,showSeparator:t,isFloating:n,onAddBlock:o,isToggle:r})=>(0,c.createElement)(vg,{className:d()({"block-list-appender__toggle":r}),rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:o})));var Dg=(0,p.compose)([Rg,(0,f.withSelect)(((e,{clientId:t})=>{const{getBlockOrder:n}=e(Go),o=n(t);return{lastBlockClientId:o[o.length-1]}}))])((({clientId:e})=>(0,c.createElement)(gg,{rootClientId:e})));const Og=new WeakMap;function zg(e,t,n,o,r,l,i){return s=>{const{srcRootClientId:c,srcClientIds:u,type:d,blocks:p}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(s);if("inserter"===d){i();const e=p.map((e=>(0,a.cloneBlock)(e)));l(e,!0,null)}if("block"===d){const l=n(u[0]);if(c===e&&l===t)return;if(u.includes(e)||o(u).some((t=>t===e)))return;const i=c===e,a=u.length;r(u,c,i&&l<t?t-a:t)}}}function Vg(e,t,n={}){const{operation:o="insert"}=n,r=(0,f.useSelect)((e=>e(Go).getSettings().mediaUpload),[]),{canInsertBlockType:l,getBlockIndex:i,getClientIdsOfDescendants:s,getBlockOrder:u,getBlocksByClientId:d}=(0,f.useSelect)(Go),{insertBlocks:p,moveBlocksToPosition:m,updateBlockAttributes:g,clearSelectedBlock:h,replaceBlocks:b,removeBlocks:v}=(0,f.useDispatch)(Go),_=(0,f.useRegistry)(),k=(0,c.useCallback)(((n,r=!0,l=0)=>{if("replace"===o){const o=u(e)[t];b(o,n,void 0,l)}else p(n,t,e,r,l)}),[o,u,p,b,t,e]),y=(0,c.useCallback)(((n,r,l)=>{if("replace"===o){const o=d(n),r=u(e)[t];_.batch((()=>{v(n,!1),b(r,o,void 0,0)}))}else m(n,r,e,l)}),[o,u,d,p,m,v,t,e]),E=zg(e,t,i,s,y,k,h),w=function(e,t,n,o,r,l){return t=>{if(!n)return;const i=(0,a.findTransform)((0,a.getBlockTransforms)("from"),(n=>"files"===n.type&&r(n.blockName,e)&&n.isMatch(t)));if(i){const e=i.transform(t,o);l(e)}}}(e,0,r,g,l,k),S=function(e,t,n){return e=>{const t=(0,a.pasteHandler)({HTML:e,mode:"BLOCKS"});t.length&&n(t)}}(0,0,k);return e=>{const t=(0,ea.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?S(n):t.length?w(t):E(e)}}function Fg(e,t,n=["top","bottom","left","right"]){let o,r;return n.forEach((n=>{const l=function(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:l}=e,i=o?r:l,a=o?l:r,s=o?t.left:t.top,c=o?t.right:t.bottom,u=t[n];let d;return d=i>=s&&i<=c?i:i<c?s:c,Math.sqrt((i-d)**2+(a-u)**2)}(e,t,n);(void 0===o||l<o)&&(o=l,r=n)})),[o,r]}function Hg(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}function Gg({rootClientId:e=""}={}){const t=(0,f.useRegistry)(),[n,o]=(0,c.useState)({index:null,operation:"insert"}),r=(0,f.useSelect)((t=>{const{__unstableIsWithinBlockOverlay:n,__unstableHasActiveBlockOverlayActive:o,getBlockEditingMode:r}=Fo(t(Go));return"default"!==r(e)||o(e)||n(e)}),[e]),{getBlockListSettings:l,getBlocks:i,getBlockIndex:s}=(0,f.useSelect)(Go),{showInsertionPoint:u,hideInsertionPoint:d}=(0,f.useDispatch)(Go),m=Vg(e,n.index,{operation:n.operation}),g=(0,p.useThrottle)((0,c.useCallback)(((n,r)=>{const c=i(e);if(0===c.length)return void t.batch((()=>{o({index:0,operation:"insert"}),u(e,0,{operation:"insert"})}));const d=c.map((e=>{const t=e.clientId;return{isUnmodifiedDefaultBlock:(0,a.isUnmodifiedDefaultBlock)(e),getBoundingClientRect:()=>r.getElementById(`block-${t}`).getBoundingClientRect(),blockIndex:s(t)}})),[p,m]=function(e,t,n="vertical"){const o="horizontal"===n?["left","right"]:["top","bottom"],r=(0,v.isRTL)();let l=0,i="before",a=1/0;e.forEach((({isUnmodifiedDefaultBlock:e,getBoundingClientRect:n,blockIndex:s})=>{const c=n();let[u,d]=Fg(t,c,o);e&&Hg(t,c)&&(u=0),u<a&&(i="bottom"===d||!r&&"right"===d||r&&"left"===d?"after":"before",a=u,l=s)}));const s=l+("after"===i?1:-1),c=!!e[l]?.isUnmodifiedDefaultBlock,u=!!e[s]?.isUnmodifiedDefaultBlock;if(!c&&!u)return["after"===i?l+1:l,"insert"];return[c?l:s,"replace"]}(d,{x:n.clientX,y:n.clientY},l(e)?.orientation);t.batch((()=>{o({index:p,operation:m}),u(e,p,{operation:m})}))}),[i,e,l,t,u,s]),200);return(0,p.__experimentalUseDropZone)({isDisabled:r,onDrop:m,onDragOver(e){g(e,e.currentTarget.ownerDocument)},onDragLeave(){g.cancel(),d()},onDragEnd(){g.cancel(),d()}})}const Ug={};function $g(e){const{clientId:t,allowedBlocks:n,prioritizedInserterBlocks:o,__experimentalDefaultBlock:r,__experimentalDirectInsert:l,template:i,templateLock:s,wrapperRef:u,templateInsertUpdatesSelection:d,__experimentalCaptureToolbars:p,__experimentalAppenderTagName:m,renderAppender:g,orientation:h,placeholder:v,layout:_}=e;!function(e,t,n,o,r,l,i,a,s){const{updateBlockListSettings:u}=(0,f.useDispatch)(Go),d=(0,f.useRegistry)(),{parentLock:p}=(0,f.useSelect)((t=>{const n=t(Go).getBlockRootClientId(e);return{parentLock:t(Go).getTemplateLock(n)}}),[e]),m=(0,c.useMemo)((()=>t),t),g=(0,c.useMemo)((()=>n),n),h=void 0===l||"contentOnly"===p?p:l;(0,c.useLayoutEffect)((()=>{const t={allowedBlocks:m,prioritizedInserterBlocks:g,templateLock:h};if(void 0!==i&&(t.__experimentalCaptureToolbars=i),void 0!==a)t.orientation=a;else{const e=ai(s?.type);t.orientation=e.getOrientation(s)}void 0!==o&&(t.__experimentalDefaultBlock=o),void 0!==r&&(t.__experimentalDirectInsert=r),Og.get(d)||Og.set(d,[]),Og.get(d).push([e,t]),window.queueMicrotask((()=>{Og.get(d)?.length&&d.batch((()=>{Og.get(d).forEach((e=>{u(...e)})),Og.set(d,[])}))}))}),[e,m,g,h,o,r,i,a,u,s,d])}(t,n,o,r,l,s,p,h,_),function(e,t,n,o){const{getBlocks:r,getSelectedBlocksInitialCaretPosition:l,isBlockSelected:i}=(0,f.useSelect)(Go),{replaceInnerBlocks:s,__unstableMarkNextChangeAsNotPersistent:u}=(0,f.useDispatch)(Go),{innerBlocks:d}=(0,f.useSelect)((t=>({innerBlocks:t(Go).getBlocks(e)})),[e]),p=(0,c.useRef)(null);(0,c.useLayoutEffect)((()=>{let c=!1;return window.queueMicrotask((()=>{if(c)return;const d=r(e),m=0===d.length||"all"===n||"contentOnly"===n,f=!b()(t,p.current);if(!m||!f)return;p.current=t;const g=(0,a.synchronizeBlocksWithTemplate)(d,t);b()(g,d)||(u(),s(e,g,0===d.length&&o&&0!==g.length&&i(e),l()))})),()=>{c=!0}}),[d,t,n,e])}(t,i,s,d);const k=function(e){return(0,f.useSelect)((t=>{const n=t(Go).getBlock(e);if(!n)return;const o=t(a.store).getBlockType(n.name);return o&&0!==Object.keys(o.providesContext).length?Object.fromEntries(Object.entries(o.providesContext).map((([e,t])=>[e,n.attributes[t]]))):void 0}),[e])}(t),y=(0,f.useSelect)((e=>e(Go).getBlock(t)?.name),[t]),E=(0,a.getBlockSupport)(y,"layout")||(0,a.getBlockSupport)(y,"__experimentalLayout")||Ug,{allowSizingOnChildren:w=!1}=E,S=Xr("layout")||Ug,C=_||E,x=(0,c.useMemo)((()=>({...S,...C,...w&&{allowSizingOnChildren:!0}})),[S,C,w]);return(0,c.createElement)(na,{value:k},(0,c.createElement)(th,{rootClientId:t,renderAppender:g,__experimentalAppenderTagName:m,layout:x,wrapperRef:u,placeholder:v}))}function jg(e){return qd(e),(0,c.createElement)($g,{...e})}const Wg=(0,c.forwardRef)(((e,t)=>{const n=Kg({ref:t},e);return(0,c.createElement)("div",{className:"block-editor-inner-blocks"},(0,c.createElement)("div",{...n}))}));function Kg(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:o}=t,{clientId:r,layout:l=null,__unstableLayoutClassNames:i=""}=Ko(),s=(0,p.useViewportMatch)("medium","<"),{__experimentalCaptureToolbars:u,hasOverlay:m}=(0,f.useSelect)((e=>{if(!r)return{};const{getBlockName:t,isBlockSelected:n,hasSelectedInnerBlock:o,__unstableGetEditorMode:l}=e(Go),i=t(r),c="navigation"===l()||s;return{__experimentalCaptureToolbars:e(a.store).hasBlockSupport(i,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==i&&!n(r)&&!o(r,!0)&&c}}),[r,s]),g=Gg({rootClientId:r}),h=(0,p.useMergeRefs)([e.ref,o?null:g]),b={__experimentalCaptureToolbars:u,layout:l,...t},v=b.value&&b.onChange?jg:$g;return{...e,ref:h,className:d()(e.className,"block-editor-block-list__layout",n?"":i,{"has-overlay":m}),children:r?(0,c.createElement)(v,{...b,clientId:r}):(0,c.createElement)(th,{...t})}}Kg.save=a.__unstableGetInnerBlocksProps,Wg.DefaultBlockAppender=Dg,Wg.ButtonBlockAppender=Ag,Wg.Content=()=>Kg.save().children;var qg=Wg;const Zg=(0,c.createContext)(),Yg=(0,c.createContext)(),Xg=new WeakMap;function Qg({className:e,...t}){const[n,o]=(0,c.useState)(),r=(0,p.useViewportMatch)("medium"),{isOutlineMode:l,isFocusMode:i,editorMode:a}=(0,f.useSelect)((e=>{const{getSettings:t,__unstableGetEditorMode:n}=e(Go),{outlineMode:o,focusMode:r}=t();return{isOutlineMode:o,isFocusMode:r,editorMode:n()}}),[]),s=(0,f.useRegistry)(),{setBlockVisibility:u}=(0,f.useDispatch)(Go),m=(0,p.useDebounce)((0,c.useCallback)((()=>{const e={};Xg.get(s).forEach((([t,n])=>{e[t]=n})),u(e)}),[s]),300,{trailing:!0}),g=(0,c.useMemo)((()=>{const{IntersectionObserver:e}=window;if(e)return new e((e=>{Xg.get(s)||Xg.set(s,[]);for(const t of e){const e=t.target.getAttribute("data-block");Xg.get(s).push([e,t.isIntersecting])}m()}))}),[]),h=Kg({ref:(0,p.useMergeRefs)([Xd(),Pg(),o]),className:d()("is-root-container",e,{"is-outline-mode":l,"is-focus-mode":i&&r,"is-navigate-mode":"navigation"===a})},t);return(0,c.createElement)(Zg.Provider,{value:n},(0,c.createElement)(Yg.Provider,{value:g},(0,c.createElement)("div",{...h})))}function Jg(e){return function(){const{patterns:e,isPreviewMode:t}=(0,f.useSelect)((e=>{const{__experimentalBlockPatterns:t,__unstableIsPreviewMode:n}=e(Go).getSettings();return{patterns:t,isPreviewMode:n}}),[]);(0,c.useEffect)((()=>{if(t)return;if(!e?.length)return;let n,o=-1;const r=()=>{o++,o>=e.length||((0,f.select)(Go).__experimentalGetParsedPattern(e[o].name),n=Ng(r))};return n=Ng(r),()=>Lg(n)}),[e,t])}(),(0,c.createElement)(Wo,{value:$o},(0,c.createElement)(Qg,{...e}))}function eh({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:o,layout:r=si}){const{order:l,selectedBlocks:i,visibleBlocks:a}=(0,f.useSelect)((e=>{const{getBlockOrder:n,getSelectedBlockClientIds:o,__unstableGetVisibleBlocks:r}=e(Go);return{order:n(t),selectedBlocks:o(),visibleBlocks:r()}}),[t]);return(0,c.createElement)(ui,{value:r},l.map((e=>(0,c.createElement)(f.AsyncModeProvider,{key:e,value:!a.has(e)&&!i.includes(e)},(0,c.createElement)(Dd,{rootClientId:t,clientId:e})))),l.length<1&&e,(0,c.createElement)(kg,{tagName:o,rootClientId:t,renderAppender:n}))}function th(e){return(0,c.createElement)(f.AsyncModeProvider,{value:!1},(0,c.createElement)(eh,{...e}))}Jg.__unstableElementContext=Zg,Up([$p,Kp]);const nh=(e,t,n)=>{if(t){const n=e?.find((e=>e.slug===t));if(n)return n}return{color:n}},oh=(e,t)=>e?.find((e=>e.color===t));function rh(e,t){if(e&&t)return`has-${Ll(t)}-${e}`}function lh(){const e={disableCustomColors:!Xr("color.custom"),disableCustomGradients:!Xr("color.customGradient")},t=Xr("color.palette.custom"),n=Xr("color.palette.theme"),o=Xr("color.palette.default"),r=Xr("color.defaultPalette");e.colors=(0,c.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,v._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&e.push({name:(0,v._x)("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&e.push({name:(0,v._x)("Custom","Indicates this palette comes from the theme."),colors:t}),e}),[o,n,t,r]);const l=Xr("color.gradients.custom"),i=Xr("color.gradients.theme"),a=Xr("color.gradients.default"),s=Xr("color.defaultGradients");return e.gradients=(0,c.useMemo)((()=>{const e=[];return i&&i.length&&e.push({name:(0,v._x)("Theme","Indicates this palette comes from the theme."),gradients:i}),s&&a&&a.length&&e.push({name:(0,v._x)("Default","Indicates this palette comes from WordPress."),gradients:a}),l&&l.length&&e.push({name:(0,v._x)("Custom","Indicates this palette is created by the user."),gradients:l}),e}),[l,i,a,s]),e.hasColorsOrGradients=!!e.colors.length||!!e.gradients.length,e}function ih(e){return[...e].sort(((t,n)=>e.filter((e=>e===n)).length-e.filter((e=>e===t)).length)).shift()}function ah(e={}){const{flat:t,...n}=e;return t||ih(Object.values(n).filter(Boolean))||"px"}function sh(e={}){if("string"==typeof e)return e;const t=Object.values(e).map((e=>(0,m.__experimentalParseQuantityAndUnitFromRawValue)(e))),n=t.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),o=t.map((e=>e[1])),r=n.every((e=>e===n[0]))?n[0]:"",l=ih(o);return 0===r||r?`${r}${l}`:void 0}function ch(e={}){const t=sh(e);return"string"!=typeof e&&isNaN(parseFloat(t))}function uh(e){if(!e)return!1;if("string"==typeof e)return!0;return!!Object.values(e).filter((e=>!!e||0===e)).length}function dh({onChange:e,selectedUnits:t,setSelectedUnits:n,values:o,...r}){let l=sh(o);void 0===l&&(l=ah(t));const i=uh(o)&&ch(o),a=i?(0,v.__)("Mixed"):null;return(0,c.createElement)(m.__experimentalUnitControl,{...r,"aria-label":(0,v.__)("Border radius"),disableUnits:i,isOnly:!0,value:l,onChange:t=>{const n=!isNaN(parseFloat(t));e(n?t:void 0)},onUnitChange:e=>{n({topLeft:e,topRight:e,bottomLeft:e,bottomRight:e})},placeholder:a,size:"__unstable-large"})}const ph={topLeft:(0,v.__)("Top left"),topRight:(0,v.__)("Top right"),bottomLeft:(0,v.__)("Bottom left"),bottomRight:(0,v.__)("Bottom right")};function mh({onChange:e,selectedUnits:t,setSelectedUnits:n,values:o,...r}){const l=t=>n=>{if(!e)return;const o=!isNaN(parseFloat(n))?n:void 0;e({...i,[t]:o})},i="string"!=typeof o?o:{topLeft:o,topRight:o,bottomLeft:o,bottomRight:o};return(0,c.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(ph).map((([e,o])=>{const[a,s]=(0,m.__experimentalParseQuantityAndUnitFromRawValue)(i[e]),u=i[e]?s:t[e]||t.flat;return(0,c.createElement)(m.Tooltip,{text:o,position:"top",key:e},(0,c.createElement)("div",{className:"components-border-radius-control__tooltip-wrapper"},(0,c.createElement)(m.__experimentalUnitControl,{...r,"aria-label":o,value:[a,u].join(""),onChange:l(e),onUnitChange:(d=e,e=>{const o={...t};o[d]=e,n(o)}),size:"__unstable-large"})));var d})))}var fh=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var gh=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));function hh({isLinked:e,...t}){const n=e?(0,v.__)("Unlink radii"):(0,v.__)("Link radii");return(0,c.createElement)(m.Tooltip,{text:n},(0,c.createElement)("span",null,(0,c.createElement)(m.Button,{...t,className:"component-border-radius-control__linked-button",isSmall:!0,icon:e?fh:gh,iconSize:24,"aria-label":n})))}const bh={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},vh=0,_h={px:100,em:20,rem:20};function kh({onChange:e,values:t}){const[n,o]=(0,c.useState)(!uh(t)||!ch(t)),[r,l]=(0,c.useState)({flat:"string"==typeof t?(0,m.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,m.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,m.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,m.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,m.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),i=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["px","em","rem"]}),a=ah(r),s=i&&i.find((e=>e.value===a)),u=s?.step||1,[d]=(0,m.__experimentalParseQuantityAndUnitFromRawValue)(sh(t));return(0,c.createElement)("fieldset",{className:"components-border-radius-control"},(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend"},(0,v.__)("Radius")),(0,c.createElement)("div",{className:"components-border-radius-control__wrapper"},n?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(dh,{className:"components-border-radius-control__unit-control",values:t,min:vh,onChange:e,selectedUnits:r,setSelectedUnits:l,units:i}),(0,c.createElement)(m.RangeControl,{label:(0,v.__)("Border radius"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:null!=d?d:"",min:vh,max:_h[a],initialPosition:0,withInputField:!1,onChange:t=>{e(void 0!==t?`${t}${a}`:void 0)},step:u,__nextHasNoMarginBottom:!0})):(0,c.createElement)(mh,{min:vh,onChange:e,selectedUnits:r,setSelectedUnits:l,values:t||bh,units:i}),(0,c.createElement)(hh,{onClick:()=>o(!n),isLinked:n})))}function yh(e){return[Eh(e),wh(e),Sh(e),Ch(e)].some(Boolean)}function Eh(e){return e?.border?.color}function wh(e){return e?.border?.radius}function Sh(e){return e?.border?.style}function Ch(e){return e?.border?.width}function xh({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,c.createElement)(m.__experimentalToolsPanel,{label:(0,v.__)("Border"),resetAll:()=>{const o=e(n);t(o)},panelId:o},r)}const Bh={radius:!0,color:!0,width:!0};function Ih({as:e=xh,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=Bh}){const a=Sl(r),s=e=>{const t=a.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},u=(0,c.useCallback)((e=>{const t=a.flatMap((({colors:e})=>e)).find((({slug:t})=>e==="var:preset|color|"+t));return t?t.color:e}),[a]),d=(0,c.useMemo)((()=>{if((0,m.__experimentalHasSplitBorders)(o?.border)){const e={...o?.border};return["top","right","bottom","left"].forEach((t=>{e[t]={...e[t],color:u(e[t]?.color)}})),e}return{...o?.border,color:o?.border?.color?u(o?.border?.color):void 0}}),[o?.border,u]),p=e=>n({...t,border:e}),f=Eh(r),g=Sh(r),h=Ch(r),b=wh(r),_=(k=d?.radius,fl({settings:r},"",k));var k;const y=e=>p({...d,radius:e}),E=()=>{const e=t?.border?.radius;return"object"==typeof e?Object.entries(e).some(Boolean):!!e},w=(0,c.useCallback)((e=>({...e,border:void 0})),[]),S=i?.color||i?.width;return(0,c.createElement)(e,{resetAllFilter:w,value:t,onChange:n,panelId:l},(h||f)&&(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>(0,m.__experimentalIsDefinedBorder)(t?.border),label:(0,v.__)("Border"),onDeselect:()=>(()=>{if(E())return p({radius:t?.border?.radius});p(void 0)})(),isShownByDefault:S,panelId:l},(0,c.createElement)(m.__experimentalBorderBoxControl,{colors:a,enableAlpha:!0,enableStyle:g,onChange:e=>{const t={...e};(0,m.__experimentalHasSplitBorders)(t)?["top","right","bottom","left"].forEach((e=>{t[e]&&(t[e]={...t[e],color:s(t[e]?.color)})})):t&&(t.color=s(t.color)),p({radius:d?.radius,...t})},popoverOffset:40,popoverPlacement:"left-start",value:d,__experimentalIsRenderedInSidebar:!0,size:"__unstable-large"})),b&&(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:E,label:(0,v.__)("Radius"),onDeselect:()=>y(void 0),isShownByDefault:i.radius,panelId:l},(0,c.createElement)(kh,{values:_,onChange:e=>{y(e||void 0)}})))}const Th="__experimentalBorder",Mh=(e,t,n)=>{let o;return e.some((e=>e.colors.some((e=>e[t]===n&&(o=e,!0))))),o},Ph=({colors:e,namedColor:t,customColor:n})=>{if(t){const n=Mh(e,"slug",t);if(n)return n}if(!n)return{color:void 0};const o=Mh(e,"color",n);return o||{color:n}};function Nh(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function Lh(e){if((0,m.__experimentalHasSplitBorders)(e?.border))return{style:e,borderColor:void 0};const t=e?.border?.color,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o={...e};return o.border={...o.border,color:n?void 0:t},{style:Dl(o),borderColor:n}}function Rh(e){return(0,m.__experimentalHasSplitBorders)(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function Ah({children:e,resetAllFilter:t}){const n=(0,c.useCallback)((e=>{const n=Rh(e),o=t(n);return{...e,...Lh(o)}}),[t]);return(0,c.createElement)(qi,{group:"border",resetAllFilter:n},e)}function Dh(e){const{clientId:t,name:n,attributes:o,setAttributes:r}=e,l=Vl(n),i=yh(l),s=(0,c.useMemo)((()=>Rh({style:o.style,borderColor:o.borderColor})),[o.style,o.borderColor]);if(!i)return null;const u=(0,a.getBlockSupport)(e.name,[Th,"__experimentalDefaultControls"]);return(0,c.createElement)(Ih,{as:Ah,panelId:t,settings:l,value:s,onChange:e=>{r(Lh(e))},defaultControls:u})}function Oh(e,t="any"){if("web"!==c.Platform.OS)return!1;const n=(0,a.getBlockSupport)(e,Th);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}function zh(e,t,n){if(!Oh(t,"color")||zl(t,Th,"color"))return e;const o=Vh(n),r=d()(e.className,o);return e.className=r||void 0,e}function Vh(e){const{borderColor:t,style:n}=e,o=rh("border-color",t);return d()({"has-border-color":t||n?.border?.color,[o]:!!o})}const Fh=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,{borderColor:r,style:l}=o,{colors:i}=lh();if(!Oh(n,"color")||zl(n,Th,"color"))return(0,c.createElement)(e,{...t});const{color:a}=Ph({colors:i,namedColor:r}),{color:s}=Ph({colors:i,namedColor:Nh(l?.border?.top?.color)}),{color:u}=Ph({colors:i,namedColor:Nh(l?.border?.right?.color)}),{color:d}=Ph({colors:i,namedColor:Nh(l?.border?.bottom?.color)}),{color:p}=Ph({colors:i,namedColor:Nh(l?.border?.left?.color)}),m={borderTopColor:s||a,borderRightColor:u||a,borderBottomColor:d||a,borderLeftColor:p||a};let f=t.wrapperProps;return f={...t.wrapperProps,style:{...t.wrapperProps?.style,...m}},(0,c.createElement)(e,{...t,wrapperProps:f})}),"withBorderColorPaletteStyles");function Hh(e){if(e)return`has-${e}-gradient-background`}function Gh(e,t){const n=e?.find((e=>e.slug===t));return n&&n.gradient}function Uh(e,t){const n=e?.find((e=>e.gradient===t));return n}function $h(e,t){const n=Uh(e,t);return n&&n.slug}function jh({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=Ko(),o=Xr("color.gradients.custom"),r=Xr("color.gradients.theme"),l=Xr("color.gradients.default"),i=(0,c.useMemo)((()=>[...o||[],...r||[],...l||[]]),[o,r,l]),{gradient:a,customGradient:s}=(0,f.useSelect)((o=>{const{getBlockAttributes:r}=o(Go),l=r(n)||{};return{customGradient:l[t],gradient:l[e]}}),[n,e,t]),{updateBlockAttributes:u}=(0,f.useDispatch)(Go),d=(0,c.useCallback)((o=>{const r=$h(i,o);u(n,r?{[e]:r,[t]:void 0}:{[e]:void 0,[t]:o})}),[i,n,u]),p=Hh(a);let m;return m=a?Gh(i,a):s,{gradientClass:p,gradientValue:m,setGradient:d}}(0,s.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return Oh(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",zh),(0,s.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!Oh(e,"color")||zl(e,Th,"color"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),zh(o,e,n)},e})),(0,s.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",Fh);const Wh=["colors","disableCustomColors","gradients","disableCustomGradients"],Kh={name:"color",title:(0,v.__)("Solid"),value:"color"},qh={name:"gradient",title:(0,v.__)("Gradient"),value:"gradient"},Zh=[Kh,qh];function Yh({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,className:l,label:i,onColorChange:a,onGradientChange:s,colorValue:u,gradientValue:p,clearable:f,showTitle:g=!0,enableAlpha:h,headingLevel:b}){const v=a&&(e&&e.length>0||!n),_=s&&(t&&t.length>0||!o);if(!v&&!_)return null;const k={[Kh.value]:(0,c.createElement)(m.ColorPalette,{value:u,onChange:_?e=>{a(e),s()}:a,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:r,clearable:f,enableAlpha:h,headingLevel:b}),[qh.value]:(0,c.createElement)(m.GradientPicker,{__nextHasNoMargin:!0,value:p,onChange:v?e=>{s(e),a()}:s,gradients:t,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,clearable:f,headingLevel:b})},y=e=>(0,c.createElement)("div",{className:"block-editor-color-gradient-control__panel"},k[e]);return(0,c.createElement)(m.BaseControl,{__nextHasNoMarginBottom:!0,className:d()("block-editor-color-gradient-control",l)},(0,c.createElement)("fieldset",{className:"block-editor-color-gradient-control__fieldset"},(0,c.createElement)(m.__experimentalVStack,{spacing:1},g&&(0,c.createElement)("legend",null,(0,c.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},(0,c.createElement)(m.BaseControl.VisualLabel,null,i))),v&&_&&(0,c.createElement)(m.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:Zh,initialTabName:p?qh.value:!!v&&Kh.value},(e=>y(e.value))),!_&&y(Kh.value),!v&&y(qh.value))))}function Xh(e){const t={};return t.colors=Xr("color.palette"),t.gradients=Xr("color.gradients"),t.disableCustomColors=!Xr("color.custom"),t.disableCustomGradients=!Xr("color.customGradient"),(0,c.createElement)(Yh,{...t,...e})}var Qh=function(e){return Wh.every((t=>e.hasOwnProperty(t)))?(0,c.createElement)(Yh,{...e}):(0,c.createElement)(Xh,{...e})};function Jh(e){const t=eb(e),n=lb(e),o=tb(e),r=ob(e),l=ob(e),i=nb(e);return t||n||o||r||l||i}function eb(e){const t=Sl(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function tb(e){const t=Sl(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function nb(e){const t=Sl(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function ob(e){const t=Sl(e),n=Cl(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function rb(e){const t=Sl(e),n=Cl(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function lb(e){const t=Sl(e),n=Cl(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function ib({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,c.createElement)(m.__experimentalToolsPanel,{label:(0,v.__)("Color"),resetAll:()=>{const o=e(n);t(o)},panelId:o,hasInnerWrapper:!0,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},(0,c.createElement)("div",{className:"color-block-support-panel__inner-wrapper"},r))}const ab={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},sb={placement:"left-start",offset:36,shift:!0},cb=({indicators:e,label:t})=>(0,c.createElement)(m.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(m.__experimentalZStack,{isLayered:!1,offset:-8},e.map(((e,t)=>(0,c.createElement)(m.Flex,{key:t,expanded:!1},(0,c.createElement)(m.ColorIndicator,{colorValue:e}))))),(0,c.createElement)(m.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t},t));function ub({isGradient:e,inheritedValue:t,userValue:n,setValue:o,colorGradientControlSettings:r}){return(0,c.createElement)(Qh,{...r,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:t,gradientValue:e?t:void 0,onColorChange:e?void 0:o,onGradientChange:e?o:void 0,clearable:t===n,headingLevel:3})}function db({label:e,hasValue:t,resetValue:n,isShownByDefault:o,indicators:r,tabs:l,colorGradientControlSettings:i,panelId:a}){const s=l.map((({key:e,label:t})=>({name:e,title:t})));return(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:o,panelId:a},(0,c.createElement)(m.Dropdown,{popoverProps:sb,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:t,isOpen:n})=>{const o={onClick:t,className:d()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n,"aria-label":(0,v.sprintf)((0,v.__)("Color %s styles"),e)};return(0,c.createElement)(m.Button,{...o},(0,c.createElement)(cb,{indicators:r,label:e}))},renderContent:()=>(0,c.createElement)(m.__experimentalDropdownContentWrapper,{paddingSize:"none"},(0,c.createElement)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content"},1===l.length&&(0,c.createElement)(ub,{...l[0],colorGradientControlSettings:i}),l.length>1&&(0,c.createElement)(m.TabPanel,{tabs:s},(e=>{const t=l.find((t=>t.key===e.name));return t?(0,c.createElement)(ub,{...t,colorGradientControlSettings:i}):null}))))}))}function pb({as:e=ib,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=ab,children:a}){const s=Sl(r),u=Cl(r),d=r?.color?.custom,p=r?.color?.customGradient,m=s.length>0||d,f=u.length>0||p,g=e=>fl({settings:r},"",e),h=e=>{const t=s.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},b=e=>{const t=u.flatMap((({gradients:e})=>e)).find((({gradient:t})=>t===e));return t?"var:preset|gradient|"+t.slug:e},_=eb(r),k=g(o?.color?.text),y=g(t?.color?.text),E=e=>{n(Al(t,["color","text"],h(e)))},w=lb(r),S=g(o?.color?.background),C=g(t?.color?.background),x=g(o?.color?.gradient),B=g(t?.color?.gradient),I=tb(r),T=g(o?.elements?.link?.color?.text),M=g(t?.elements?.link?.color?.text),P=g(o?.elements?.link?.[":hover"]?.color?.text),N=g(t?.elements?.link?.[":hover"]?.color?.text),L=[{name:"caption",label:(0,v.__)("Captions"),showPanel:nb(r)},{name:"button",label:(0,v.__)("Button"),showPanel:rb(r)},{name:"heading",label:(0,v.__)("Heading"),showPanel:ob(r)},{name:"h1",label:(0,v.__)("H1"),showPanel:ob(r)},{name:"h2",label:(0,v.__)("H2"),showPanel:ob(r)},{name:"h3",label:(0,v.__)("H3"),showPanel:ob(r)},{name:"h4",label:(0,v.__)("H4"),showPanel:ob(r)},{name:"h5",label:(0,v.__)("H5"),showPanel:ob(r)},{name:"h6",label:(0,v.__)("H6"),showPanel:ob(r)}],R=(0,c.useCallback)((e=>({...e,color:void 0,elements:{...e?.elements,link:{...e?.elements?.link,color:void 0,":hover":{color:void 0}},...L.reduce(((t,n)=>({...t,[n.name]:{...e?.elements?.[n.name],color:void 0}})),{})}})),[]),A=[_&&{key:"text",label:(0,v.__)("Text"),hasValue:()=>!!y,resetValue:()=>E(void 0),isShownByDefault:i.text,indicators:[k],tabs:[{key:"text",label:(0,v.__)("Text"),inheritedValue:k,setValue:E,userValue:y}]},w&&{key:"background",label:(0,v.__)("Background"),hasValue:()=>!!C||!!B,resetValue:()=>{const e=Al(t,["color","background"],void 0);e.color.gradient=void 0,n(e)},isShownByDefault:i.background,indicators:[null!=x?x:S],tabs:[m&&{key:"background",label:(0,v.__)("Solid"),inheritedValue:S,setValue:e=>{const o=Al(t,["color","background"],h(e));o.color.gradient=void 0,n(o)},userValue:C},f&&{key:"gradient",label:(0,v.__)("Gradient"),inheritedValue:x,setValue:e=>{const o=Al(t,["color","gradient"],b(e));o.color.background=void 0,n(o)},userValue:B,isGradient:!0}].filter(Boolean)},I&&{key:"link",label:(0,v.__)("Link"),hasValue:()=>!!M||!!N,resetValue:()=>{let e=Al(t,["elements","link",":hover","color","text"],void 0);e=Al(e,["elements","link","color","text"],void 0),n(e)},isShownByDefault:i.link,indicators:[T,P],tabs:[{key:"link",label:(0,v.__)("Default"),inheritedValue:T,setValue:e=>{n(Al(t,["elements","link","color","text"],h(e)))},userValue:M},{key:"hover",label:(0,v.__)("Hover"),inheritedValue:P,setValue:e=>{n(Al(t,["elements","link",":hover","color","text"],h(e)))},userValue:N}]}].filter(Boolean);return L.forEach((({name:e,label:r,showPanel:l})=>{if(!l)return;const a=g(o?.elements?.[e]?.color?.background),s=g(o?.elements?.[e]?.color?.gradient),c=g(o?.elements?.[e]?.color?.text),u=g(t?.elements?.[e]?.color?.background),d=g(t?.elements?.[e]?.color?.gradient),p=g(t?.elements?.[e]?.color?.text),_="caption"!==e;A.push({key:e,label:r,hasValue:()=>!!(p||u||d),resetValue:()=>{const o=Al(t,["elements",e,"color","background"],void 0);o.elements[e].color.gradient=void 0,o.elements[e].color.text=void 0,n(o)},isShownByDefault:i[e],indicators:_?[c,null!=s?s:a]:[c],tabs:[m&&{key:"text",label:(0,v.__)("Text"),inheritedValue:c,setValue:o=>{n(Al(t,["elements",e,"color","text"],h(o)))},userValue:p},m&&_&&{key:"background",label:(0,v.__)("Background"),inheritedValue:a,setValue:o=>{const r=Al(t,["elements",e,"color","background"],h(o));r.elements[e].color.gradient=void 0,n(r)},userValue:u},f&&_&&{key:"gradient",label:(0,v.__)("Gradient"),inheritedValue:s,setValue:o=>{const r=Al(t,["elements",e,"color","gradient"],b(o));r.elements[e].color.background=void 0,n(r)},userValue:d,isGradient:!0}].filter(Boolean)})})),(0,c.createElement)(e,{resetAllFilter:R,value:t,onChange:n,panelId:l},A.map((e=>(0,c.createElement)(db,{key:e.key,...e,colorGradientControlSettings:{colors:s,disableCustomColors:!d,gradients:u,disableCustomGradients:!p},panelId:l}))),a)}Up([$p,Kp]);var mb=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fallbackLinkColor:o,fontSize:r,isLargeText:l,textColor:i,linkColor:a,enableAlphaChecker:s=!1}){const u=e||t;if(!u)return null;const d=i||n,p=a||o;if(!d&&!p)return null;const f=[{color:d,description:(0,v.__)("text color")},{color:p,description:(0,v.__)("link color")}],g=Hp(u),h=g.alpha()<1,b=g.brightness(),_={level:"AA",size:l||!1!==l&&r>=24?"large":"small"};let k="",y="";for(const e of f){if(!e.color)continue;const t=Hp(e.color),n=t.isReadable(g,_),o=t.alpha()<1;if(!n){if(h||o)continue;k=b<t.brightness()?(0,v.sprintf)((0,v.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),e.description):(0,v.sprintf)((0,v.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),e.description),y=(0,v.__)("This color combination may be hard for people to read.");break}o&&s&&(k=(0,v.__)("Transparent text may be hard for people to read."),y=(0,v.__)("Transparent text may be hard for people to read."))}return k?((0,Cn.speak)(y),(0,c.createElement)("div",{className:"block-editor-contrast-checker"},(0,c.createElement)(m.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},k))):null};function fb(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function gb({clientId:e}){const[t,n]=(0,c.useState)(),[o,r]=(0,c.useState)(),[l,i]=(0,c.useState)(),a=Bd(e);return(0,c.useEffect)((()=>{if(!a.current)return;r(fb(a.current).color);const e=a.current?.querySelector("a");e&&e.innerText&&i(fb(e).color);let t=a.current,o=fb(t).backgroundColor;for(;"rgba(0, 0, 0, 0)"===o&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)t=t.parentNode,o=fb(t).backgroundColor;n(o)})),(0,c.createElement)(mb,{backgroundColor:t,textColor:o,enableAlphaChecker:!0,linkColor:l})}const hb="color",bb=e=>{const t=(0,a.getBlockSupport)(e,hb);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},vb=e=>{if("web"!==c.Platform.OS)return!1;const t=(0,a.getBlockSupport)(e,hb);return null!==t&&"object"==typeof t&&!!t.link},_b=e=>{const t=(0,a.getBlockSupport)(e,hb);return null!==t&&"object"==typeof t&&!!t.gradients},kb=e=>{const t=(0,a.getBlockSupport)(e,hb);return t&&!1!==t.background},yb=e=>{const t=(0,a.getBlockSupport)(e,hb);return t&&!1!==t.text};function Eb(e,t,n){if(!bb(t)||zl(t,hb))return e;const o=_b(t),{backgroundColor:r,textColor:l,gradient:i,style:a}=n,s=e=>!zl(t,hb,e),c=s("text")?rh("color",l):void 0,u=s("gradients")?Hh(i):void 0,p=s("background")?rh("background-color",r):void 0,m=s("background")||s("gradients"),f=r||a?.color?.background||o&&(i||a?.color?.gradient),g=d()(e.className,c,u,{[p]:!(o&&a?.color?.gradient||!p),"has-text-color":s("text")&&(l||a?.color?.text),"has-background":m&&f,"has-link-color":s("link")&&a?.elements?.link?.color});return e.className=g||void 0,e}function wb(e){const t=e?.color?.text,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o=e?.color?.background,r=o?.startsWith("var:preset|color|")?o.substring(17):void 0,l=e?.color?.gradient,i=l?.startsWith("var:preset|gradient|")?l.substring(20):void 0,a={...e};return a.color={...a.color,text:n?void 0:t,background:r?void 0:o,gradient:i?void 0:l},{style:Dl(a),textColor:n,backgroundColor:r,gradient:i}}function Sb(e){return{...e.style,color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text,background:e.backgroundColor?"var:preset|color|"+e.backgroundColor:e.style?.color?.background,gradient:e.gradient?"var:preset|gradient|"+e.gradient:e.style?.color?.gradient}}}function Cb({children:e,resetAllFilter:t}){const n=(0,c.useCallback)((e=>{const n=Sb(e),o=t(n);return{...e,...wb(o)}}),[t]);return(0,c.createElement)(qi,{group:"color",resetAllFilter:n},e)}function xb(e){const{clientId:t,name:n,attributes:o,setAttributes:r}=e,l=Vl(n),i=Jh(l),s=(0,c.useMemo)((()=>Sb({style:o.style,textColor:o.textColor,backgroundColor:o.backgroundColor,gradient:o.gradient})),[o.style,o.textColor,o.backgroundColor,o.gradient]);if(!i)return null;const u=(0,a.getBlockSupport)(e.name,[hb,"__experimentalDefaultControls"]),d="web"===c.Platform.OS&&!s?.color?.gradient&&(l?.color?.text||l?.color?.link)&&!1!==(0,a.getBlockSupport)(e.name,[hb,"enableContrastChecker"]);return(0,c.createElement)(pb,{as:Cb,panelId:t,settings:l,value:s,onChange:e=>{r(wb(e))},defaultControls:u,enableContrastChecker:!1!==(0,a.getBlockSupport)(e.name,[hb,"enableContrastChecker"])},d&&(0,c.createElement)(gb,{clientId:t}))}const Bb=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,{backgroundColor:r,textColor:l}=o,i=Xr("color.palette.custom"),a=Xr("color.palette.theme"),s=Xr("color.palette.default"),u=(0,c.useMemo)((()=>[...i||[],...a||[],...s||[]]),[i,a,s]);if(!bb(n)||zl(n,hb))return(0,c.createElement)(e,{...t});const d={};l&&!zl(n,hb,"text")&&(d.color=nh(u,l)?.color),r&&!zl(n,hb,"background")&&(d.backgroundColor=nh(u,r)?.color);let p=t.wrapperProps;return p={...t.wrapperProps,style:{...d,...t.wrapperProps?.style}},(0,c.createElement)(e,{...t,wrapperProps:p})}),"withColorPaletteStyles"),Ib={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function Tb({value:e="",onChange:t,fontFamilies:n,...o}){const r=Xr("typography.fontFamilies");if(n||(n=r),!n||0===n.length)return null;const l=[{value:"",label:(0,v.__)("Default")},...n.map((({fontFamily:e,name:t})=>({value:e,label:t||e})))];return(0,c.createElement)(m.SelectControl,{label:(0,v.__)("Font"),options:l,value:e,onChange:t,labelPosition:"top",...o})}(0,s.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return bb(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),_b(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",Eb),(0,s.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!bb(e)||zl(e,hb))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),Eb(o,e,n)},e})),(0,s.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",Bb),(0,s.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){const r=e.name;return Ol({linkColor:vb(r),textColor:yb(r),backgroundColor:kb(r),gradient:_b(r)},Ib,e,t,n,o)}));const Mb=[{name:(0,v._x)("Regular","font style"),value:"normal"},{name:(0,v._x)("Italic","font style"),value:"italic"}],Pb=[{name:(0,v._x)("Thin","font weight"),value:"100"},{name:(0,v._x)("Extra Light","font weight"),value:"200"},{name:(0,v._x)("Light","font weight"),value:"300"},{name:(0,v._x)("Regular","font weight"),value:"400"},{name:(0,v._x)("Medium","font weight"),value:"500"},{name:(0,v._x)("Semi Bold","font weight"),value:"600"},{name:(0,v._x)("Bold","font weight"),value:"700"},{name:(0,v._x)("Extra Bold","font weight"),value:"800"},{name:(0,v._x)("Black","font weight"),value:"900"}],Nb=(e,t)=>e?t?(0,v.__)("Appearance"):(0,v.__)("Font style"):(0,v.__)("Font weight");function Lb(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:o=!0,value:{fontStyle:r,fontWeight:l},...i}=e,a=n||o,s=Nb(n,o),u={key:"default",name:(0,v.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},d=(0,c.useMemo)((()=>n&&o?(()=>{const e=[u];return Mb.forEach((({name:t,value:n})=>{Pb.forEach((({name:o,value:r})=>{const l="normal"===n?o:(0,v.sprintf)((0,v.__)("%1$s %2$s"),o,t);e.push({key:`${n}-${r}`,name:l,style:{fontStyle:n,fontWeight:r}})}))})),e})():n?(()=>{const e=[u];return Mb.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})})),e})():(()=>{const e=[u];return Pb.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})})),e})()),[e.options]),p=d.find((e=>e.style.fontStyle===r&&e.style.fontWeight===l))||d[0];return a&&(0,c.createElement)(m.CustomSelectControl,{...i,className:"components-font-appearance-control",label:s,describedBy:p?n?o?(0,v.sprintf)((0,v.__)("Currently selected font appearance: %s"),p.name):(0,v.sprintf)((0,v.__)("Currently selected font style: %s"),p.name):(0,v.sprintf)((0,v.__)("Currently selected font weight: %s"),p.name):(0,v.__)("No selected font appearance"),options:d,value:p,onChange:({selectedItem:e})=>t(e.style),__nextUnconstrainedWidth:!0})}const Rb=1.5,Ab=.1;var Db=({value:e,onChange:t,__nextHasNoMarginBottom:n=!1,__unstableInputWidth:o="60px",...r})=>{const l=function(e){return void 0!==e&&""!==e}(e),i=(e,t)=>{if(l)return e;switch(`${e}`){case"0.1":return 1.6;case"0":return t?e:1.4;case"":return Rb;default:return e}},a=l?e:"";n||$()("Bottom margin styles for wp.blockEditor.LineHeightControl",{since:"6.0",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"});const s=n?void 0:{marginBottom:24};return(0,c.createElement)("div",{className:"block-editor-line-height-control",style:s},(0,c.createElement)(m.__experimentalNumberControl,{...r,__unstableInputWidth:o,__unstableStateReducer:(e,t)=>{const n=["insertText","insertFromPaste"].includes(t.payload.event.nativeEvent?.inputType),o=i(e.value,n);return{...e,value:o}},onChange:(e,{event:n})=>{""!==e?"click"!==n.type?t(`${e}`):t(i(`${e}`,!1)):t()},label:(0,v.__)("Line height"),placeholder:Rb,step:Ab,value:a,min:0,spinControls:"custom"}))};function Ob({value:e,onChange:t,__unstableInputWidth:n="60px",...o}){const r=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,c.createElement)(m.__experimentalUnitControl,{...o,label:(0,v.__)("Letter spacing"),value:e,__unstableInputWidth:n,units:r,onChange:t})}var zb=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7 11.5h10V13H7z"}));var Vb=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"}));var Fb=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"}));var Hb=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"}));const Gb=[{name:(0,v.__)("None"),value:"none",icon:zb},{name:(0,v.__)("Uppercase"),value:"uppercase",icon:Vb},{name:(0,v.__)("Lowercase"),value:"lowercase",icon:Fb},{name:(0,v.__)("Capitalize"),value:"capitalize",icon:Hb}];function Ub({className:e,value:t,onChange:n}){return(0,c.createElement)("fieldset",{className:d()("block-editor-text-transform-control",e)},(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend"},(0,v.__)("Letter case")),(0,c.createElement)("div",{className:"block-editor-text-transform-control__buttons"},Gb.map((e=>(0,c.createElement)(m.Button,{key:e.value,icon:e.icon,label:e.name,isPressed:e.value===t,onClick:()=>{n(e.value===t?void 0:e.value)}})))))}var $b=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"}));var jb=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));const Wb=[{name:(0,v.__)("None"),value:"none",icon:zb},{name:(0,v.__)("Underline"),value:"underline",icon:$b},{name:(0,v.__)("Strikethrough"),value:"line-through",icon:jb}];function Kb({value:e,onChange:t,className:n}){return(0,c.createElement)("fieldset",{className:d()("block-editor-text-decoration-control",n)},(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend"},(0,v.__)("Decoration")),(0,c.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},Wb.map((n=>(0,c.createElement)(m.Button,{key:n.value,icon:n.icon,label:n.name,isPressed:n.value===e,onClick:()=>{t(n.value===e?void 0:n.value)}})))))}const qb=1,Zb=6;function Yb(e){const t=Qb(e),n=Jb(e),o=ev(e),r=tv(e),l=nv(e),i=ov(e),a=rv(e),s=Xb(e);return t||n||o||r||l||s||i||a}function Xb(e){var t,n,o,r;const l=!e?.typography?.customFontSize,i=null!==(t=e?.typography?.fontSizes)&&void 0!==t?t:{},a=[].concat(null!==(n=i?.custom)&&void 0!==n?n:[]).concat(null!==(o=i?.theme)&&void 0!==o?o:[]).concat(null!==(r=i.default)&&void 0!==r?r:[]);return!!a?.length||!l}function Qb(e){var t,n,o;const r=e?.typography?.fontFamilies,l=[].concat(null!==(t=r?.custom)&&void 0!==t?t:[]).concat(null!==(n=r?.theme)&&void 0!==n?n:[]).concat(null!==(o=r?.default)&&void 0!==o?o:[]).sort(((e,t)=>(e?.name||e?.slug).localeCompare(t?.name||e?.slug)));return!!l?.length}function Jb(e){return e?.typography?.lineHeight}function ev(e){const t=e?.typography?.fontStyle,n=e?.typography?.fontWeight;return t||n}function tv(e){return e?.typography?.letterSpacing}function nv(e){return e?.typography?.textTransform}function ov(e){return e?.typography?.textDecoration}function rv(e){return e?.typography?.textColumns}function lv({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,c.createElement)(m.__experimentalToolsPanel,{label:(0,v.__)("Typography"),resetAll:()=>{const o=e(n);t(o)},panelId:o},r)}const iv={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textTransform:!0,textDecoration:!0,textColumns:!0};function av({as:e=lv,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=iv}){var a,s,u,d,p,f,g;const h=e=>fl({settings:r},"",e),b=Qb(r),_=r?.typography?.fontFamilies,k=[].concat(null!==(a=_?.custom)&&void 0!==a?a:[]).concat(null!==(s=_?.theme)&&void 0!==s?s:[]).concat(null!==(u=_?.default)&&void 0!==u?u:[]),y=h(o?.typography?.fontFamily),E=e=>{const o=k?.find((({fontFamily:t})=>t===e))?.slug;n(Al(t,["typography","fontFamily"],o?`var:preset|font-family|${o}`:e||void 0))},w=Xb(r),S=!r?.typography?.customFontSize,C=null!==(d=r?.typography?.fontSizes)&&void 0!==d?d:{},x=[].concat(null!==(p=C?.custom)&&void 0!==p?p:[]).concat(null!==(f=C?.theme)&&void 0!==f?f:[]).concat(null!==(g=C.default)&&void 0!==g?g:[]),B=h(o?.typography?.fontSize),I=(e,o)=>{n(Al(t,["typography","fontSize"],(o?.slug?`var:preset|font-size|${o?.slug}`:e)||void 0))},T=ev(r),M=function(e){const t=e?.typography?.fontStyle,n=e?.typography?.fontWeight;return t?n?(0,v.__)("Appearance"):(0,v.__)("Font style"):(0,v.__)("Font weight")}(r),P=r?.typography?.fontStyle,N=r?.typography?.fontWeight,L=h(o?.typography?.fontStyle),R=h(o?.typography?.fontWeight),A=({fontStyle:e,fontWeight:o})=>{n({...t,typography:{...t?.typography,fontStyle:e||void 0,fontWeight:o||void 0}})},D=Jb(r),O=h(o?.typography?.lineHeight),z=e=>{n(Al(t,["typography","lineHeight"],e||void 0))},V=tv(r),F=h(o?.typography?.letterSpacing),H=e=>{n(Al(t,["typography","letterSpacing"],e||void 0))},G=rv(r),U=h(o?.typography?.textColumns),$=e=>{n(Al(t,["typography","textColumns"],e||void 0))},j=nv(r),W=h(o?.typography?.textTransform),K=e=>{n(Al(t,["typography","textTransform"],e||void 0))},q=ov(r),Z=h(o?.typography?.textDecoration),Y=e=>{n(Al(t,["typography","textDecoration"],e||void 0))},X=(0,c.useCallback)((e=>({...e,typography:{}})),[]);return(0,c.createElement)(e,{resetAllFilter:X,value:t,onChange:n,panelId:l},b&&(0,c.createElement)(m.__experimentalToolsPanelItem,{label:(0,v.__)("Font family"),hasValue:()=>!!t?.typography?.fontFamily,onDeselect:()=>E(void 0),isShownByDefault:i.fontFamily,panelId:l},(0,c.createElement)(Tb,{fontFamilies:k,value:y,onChange:E,size:"__unstable-large",__nextHasNoMarginBottom:!0})),w&&(0,c.createElement)(m.__experimentalToolsPanelItem,{label:(0,v.__)("Font size"),hasValue:()=>!!t?.typography?.fontSize,onDeselect:()=>I(void 0),isShownByDefault:i.fontSize,panelId:l},(0,c.createElement)(m.FontSizePicker,{value:B,onChange:I,fontSizes:x,disableCustomFontSizes:S,withReset:!1,withSlider:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})),T&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:M,hasValue:()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,onDeselect:()=>{A({})},isShownByDefault:i.fontAppearance,panelId:l},(0,c.createElement)(Lb,{value:{fontStyle:L,fontWeight:R},onChange:A,hasFontStyles:P,hasFontWeights:N,size:"__unstable-large",__nextHasNoMarginBottom:!0})),D&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:(0,v.__)("Line height"),hasValue:()=>void 0!==t?.typography?.lineHeight,onDeselect:()=>z(void 0),isShownByDefault:i.lineHeight,panelId:l},(0,c.createElement)(Db,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",value:O,onChange:z,size:"__unstable-large"})),V&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:(0,v.__)("Letter spacing"),hasValue:()=>!!t?.typography?.letterSpacing,onDeselect:()=>H(void 0),isShownByDefault:i.letterSpacing,panelId:l},(0,c.createElement)(Ob,{value:F,onChange:H,size:"__unstable-large",__unstableInputWidth:"auto"})),G&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:(0,v.__)("Text columns"),hasValue:()=>!!t?.typography?.textColumns,onDeselect:()=>$(void 0),isShownByDefault:i.textColumns,panelId:l},(0,c.createElement)(m.__experimentalNumberControl,{label:(0,v.__)("Text columns"),max:Zb,min:qb,onChange:$,size:"__unstable-large",spinControls:"custom",value:U,initialPosition:1})),q&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:(0,v.__)("Text decoration"),hasValue:()=>!!t?.typography?.textDecoration,onDeselect:()=>Y(void 0),isShownByDefault:i.textDecoration,panelId:l},(0,c.createElement)(Kb,{value:Z,onChange:Y,size:"__unstable-large",__unstableInputWidth:"auto"})),j&&(0,c.createElement)(m.__experimentalToolsPanelItem,{label:(0,v.__)("Letter case"),hasValue:()=>!!t?.typography?.textTransform,onDeselect:()=>K(void 0),isShownByDefault:i.textTransform,panelId:l},(0,c.createElement)(Ub,{value:W,onChange:K,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})))}const sv="typography.lineHeight";var cv=window.wp.tokenList,uv=n.n(cv);const dv="typography.__experimentalFontFamily";function pv(e,t,n){if(!(0,a.hasBlockSupport)(t,dv))return e;if(zl(t,yv,"fontFamily"))return e;if(!n?.fontFamily)return e;const o=new(uv())(e.className);o.add(`has-${Ll(n?.fontFamily)}-font-family`);const r=o.value;return e.className=r||void 0,e}(0,s.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return(0,a.hasBlockSupport)(e,dv)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/fontFamily/addSaveProps",pv),(0,s.addFilter)("blocks.registerBlockType","core/fontFamily/addEditProps",(function(e){if(!(0,a.hasBlockSupport)(e,dv))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),pv(o,e,n)},e}));const mv=(e,t,n)=>{if(t){const n=e?.find((({slug:e})=>e===t));if(n)return n}return{size:n}};function fv(e,t){const n=e?.find((({size:e})=>e===t));return n||{size:t}}function gv(e){if(e)return`has-${Ll(e)}-font-size`}const hv="typography.fontSize";function bv(e,t,n){if(!(0,a.hasBlockSupport)(t,hv))return e;if(zl(t,yv,"fontSize"))return e;const o=new(uv())(e.className);o.add(gv(n.fontSize));const r=o.value;return e.className=r||void 0,e}const vv=(0,p.createHigherOrderComponent)((e=>t=>{const n=Xr("typography.fontSizes"),{name:o,attributes:{fontSize:r,style:l},wrapperProps:i}=t;if(!(0,a.hasBlockSupport)(o,hv)||zl(o,yv,"fontSize")||!r||l?.typography?.fontSize)return(0,c.createElement)(e,{...t});const s=mv(n,r,l?.typography?.fontSize).size,u={...t,wrapperProps:{...i,style:{fontSize:s,...i?.style}}};return(0,c.createElement)(e,{...u})}),"withFontSizeInlineStyles"),_v={fontSize:[["fontSize"],["style","typography","fontSize"]]};function kv(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}(0,s.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return(0,a.hasBlockSupport)(e,hv)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",bv),(0,s.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!(0,a.hasBlockSupport)(e,hv))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),bv(o,e,n)},e})),(0,s.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",vv),(0,s.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",(function(e,t,n,o){const r=e.name;return Ol({fontSize:(0,a.hasBlockSupport)(r,hv)},_v,e,t,n,o)})),(0,s.addFilter)("blocks.registerBlockType","core/font-size/addEditPropsForFluidCustomFontSizes",(function(e){if(!(0,a.hasBlockSupport)(e,hv)||zl(e,yv,"fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=e=>{const n=t?t(e):{},o=n?.style?.fontSize,r=cl((0,f.select)(Go).getSettings().__experimentalFeatures),l=o?al({size:o},r):null;return null===l?n:{...n,style:{...n?.style,fontSize:l}}},e}),11);const yv="typography",Ev=[sv,hv,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",dv,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"];function wv(e){const t={...kv(e,["fontFamily"])},n=e?.typography?.fontSize,o=e?.typography?.fontFamily,r=n?.startsWith("var:preset|font-size|")?n.substring(21):void 0,l=o?.startsWith("var:preset|font-family|")?o.substring(23):void 0;return t.typography={...kv(t.typography,["fontFamily"]),fontSize:r?void 0:n},{style:Dl(t),fontFamily:l,fontSize:r}}function Sv(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?"var:preset|font-family|"+e.fontFamily:void 0,fontSize:e.fontSize?"var:preset|font-size|"+e.fontSize:e.style?.typography?.fontSize}}}function Cv({children:e,resetAllFilter:t}){const n=(0,c.useCallback)((e=>{const n=Sv(e),o=t(n);return{...e,...wv(o)}}),[t]);return(0,c.createElement)(qi,{group:"typography",resetAllFilter:n},e)}function xv({clientId:e,name:t,attributes:n,setAttributes:o,__unstableParentLayout:r}){const l=Vl(t,r),i=Yb(l),s=(0,c.useMemo)((()=>Sv({style:n.style,fontFamily:n.fontFamily,fontSize:n.fontSize})),[n.style,n.fontSize,n.fontFamily]);if(!i)return null;const u=(0,a.getBlockSupport)(t,[yv,"__experimentalDefaultControls"]);return(0,c.createElement)(av,{as:Cv,panelId:e,settings:l,value:s,onChange:e=>{o(wv(e))},defaultControls:u})}var Bv=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const Iv={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1}};function Tv({icon:e,isMixed:t=!1,minimumCustomValue:n,onChange:o,onMouseOut:r,onMouseOver:l,showSideInLabel:i=!0,side:a,spacingSizes:s,type:u,value:d}){var g,h;d=Br(d,s);let b=s;const _=s.length<=8,k=(0,f.useSelect)((e=>{const t=e(Go).getSettings();return t?.disableCustomSpacingSizes})),[y,E]=(0,c.useState)(!k&&void 0!==d&&!Cr(d)),w=(0,p.usePrevious)(d);d&&w!==d&&!Cr(d)&&!0!==y&&E(!0);const S=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["px","em","rem"]});let C=null;!_&&!y&&void 0!==d&&(!Cr(d)||Cr(d)&&t)?(b=[...s,{name:t?(0,v.__)("Mixed"):(0,v.sprintf)((0,v.__)("Custom (%s)"),d),slug:"custom",size:d}],C=b.length-1):t||(C=y?xr(d,s):function(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?"0":Tr(e),o=t.findIndex((e=>String(e.slug)===n));return-1!==o?o:NaN}(d,s));const x=(0,c.useMemo)((()=>(0,m.__experimentalParseQuantityAndUnitFromRawValue)(C)),[C])[1]||S[0].value,B=parseFloat(C,10),I=(e,t)=>{const n=parseInt(e,10);if("selectList"===t){if(0===n)return;if(1===n)return"0"}else if(0===n)return"0";return`var:preset|spacing|${s[e]?.slug}`},T=t?(0,v.__)("Mixed"):null,M=b.map(((e,t)=>({key:t,name:e.name}))),P=s.map(((e,t)=>({value:t,label:void 0}))),N=kr.includes(a)&&i?wr[a]:"",L=i?u?.toLowerCase():u,R=(0,v.sprintf)((0,v.__)("%1$s %2$s"),N,L).trim();return(0,c.createElement)(m.__experimentalHStack,{className:"spacing-sizes-control__wrapper"},e&&(0,c.createElement)(m.Icon,{className:"spacing-sizes-control__icon",icon:e,size:24}),y&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalUnitControl,{onMouseOver:l,onMouseOut:r,onFocus:l,onBlur:r,onChange:e=>o((e=>isNaN(parseFloat(e))?void 0:e)(e)),value:C,units:S,min:n,placeholder:T,disableUnits:t,label:R,hideLabelFromVision:!0,className:"spacing-sizes-control__custom-value-input",size:"__unstable-large"}),(0,c.createElement)(m.RangeControl,{onMouseOver:l,onMouseOut:r,onFocus:l,onBlur:r,value:B,min:0,max:null!==(g=Iv[x]?.max)&&void 0!==g?g:10,step:null!==(h=Iv[x]?.steps)&&void 0!==h?h:.1,withInputField:!1,onChange:e=>{o([e,x].join(""))},className:"spacing-sizes-control__custom-value-range",__nextHasNoMarginBottom:!0})),_&&!y&&(0,c.createElement)(m.RangeControl,{onMouseOver:l,onMouseOut:r,className:"spacing-sizes-control__range-control",value:C,onChange:e=>o(I(e)),onMouseDown:e=>{e?.nativeEvent?.offsetX<35&&void 0===d&&o("0")},withInputField:!1,"aria-valuenow":C,"aria-valuetext":s[C]?.name,renderTooltipContent:e=>void 0===d?void 0:s[e]?.name,min:0,max:s.length-1,marks:P,label:R,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:l,onBlur:r}),!_&&!y&&(0,c.createElement)(m.CustomSelectControl,{className:"spacing-sizes-control__custom-select-control",value:M.find((e=>e.key===C))||"",onChange:e=>{o(I(e.selectedItem.key,"selectList"))},options:M,label:R,hideLabelFromVision:!0,__nextUnconstrainedWidth:!0,size:"__unstable-large",onMouseOver:l,onMouseOut:r,onFocus:l,onBlur:r}),!k&&(0,c.createElement)(m.Button,{label:y?(0,v.__)("Use size preset"):(0,v.__)("Set custom size"),icon:Bv,onClick:()=>{E(!y)},isPressed:y,isSmall:!0,className:"spacing-sizes-control__custom-toggle",iconSize:24}))}const Mv=["vertical","horizontal"];function Pv({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:l,type:i,values:a}){const s=e=>n=>{if(!t)return;const o={...Object.keys(a).reduce(((e,t)=>(e[t]=Br(a[t],l),e)),{})};"vertical"===e&&(o.top=n,o.bottom=n),"horizontal"===e&&(o.left=n,o.right=n),t(o)},u=r?.length?Mv.filter((e=>Mr(r,e))):Mv;return(0,c.createElement)(c.Fragment,null,u.map((t=>{const r="vertical"===t?a.top:a.left;return(0,c.createElement)(Tv,{key:`spacing-sizes-control-${t}`,icon:Er[t],label:wr[t],minimumCustomValue:e,onChange:s(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:l,type:i,value:r,withInputField:!1})})))}function Nv({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:l,type:i,values:a}){const s=r?.length?kr.filter((e=>r.includes(e))):kr,u=e=>n=>{const o={...Object.keys(a).reduce(((e,t)=>(e[t]=Br(a[t],l),e)),{})};o[e]=n,t(o)};return(0,c.createElement)(c.Fragment,null,s.map((t=>(0,c.createElement)(Tv,{key:`spacing-sizes-control-${t}`,icon:Er[t],label:wr[t],minimumCustomValue:e,onChange:u(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:l,type:i,value:a[t],withInputField:!1}))))}function Lv({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:l,spacingSizes:i,type:a,values:s}){return(0,c.createElement)(Tv,{label:wr[l],minimumCustomValue:e,onChange:(u=l,e=>{const n={...Object.keys(s).reduce(((e,t)=>(e[t]=Br(s[t],i),e)),{})};n[u]=e,t(n)}),onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:l,spacingSizes:i,type:a,value:s[l],withInputField:!1});var u}var Rv=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));const Av=(0,c.createElement)(m.Icon,{icon:Rv,size:24});function Dv({label:e,onChange:t,sides:n,value:o}){if(!n||!n.length)return;const r=function(e){if(!e||!e.length)return{};const t={},n=Mr(e,"horizontal"),o=Mr(e,"vertical");n&&o?t.axial={label:wr.axial,icon:Er.axial}:n?t.axial={label:wr.horizontal,icon:Er.horizontal}:o&&(t.axial={label:wr.vertical,icon:Er.vertical});let r=0;return kr.forEach((n=>{e.includes(n)&&(r+=1,t[n]={label:wr[n],icon:Er[n]})})),r>1&&(t.custom={label:wr.custom,icon:Er.custom}),t}(n),l=r[o].icon,{custom:i,...a}=r;return(0,c.createElement)(m.DropdownMenu,{icon:l,label:e,className:"spacing-sizes-control__dropdown",toggleProps:{isSmall:!0}},(({onClose:e})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuGroup,null,Object.entries(a).map((([n,{label:r,icon:l}])=>{const i=o===n;return(0,c.createElement)(m.MenuItem,{key:n,icon:l,iconPosition:"left",isSelected:i,role:"menuitemradio",onClick:()=>{t(n),e()},suffix:i?Av:void 0},r)}))),!!i&&(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(m.MenuItem,{icon:i.icon,iconPosition:"left",isSelected:o===Sr.custom,role:"menuitemradio",onClick:()=>{t(Sr.custom),e()},suffix:o===Sr.custom?Av:void 0},i.label)))))}function Ov({inputProps:e,label:t,minimumCustomValue:n=0,onChange:o,onMouseOut:r,onMouseOver:l,showSideInLabel:i=!0,sides:a=kr,useSelect:s,values:u}){const d=function(){const e=[{name:0,slug:"0",size:0},...Xr("spacing.spacingSizes")||[]];return e.length>8&&e.unshift({name:(0,v.__)("Default"),slug:"default",size:void 0}),e}(),p=u||yr,f=1===a?.length,g=a?.includes("horizontal")&&a?.includes("vertical")&&2===a?.length,[h,b]=(0,c.useState)(function(e={},t){const{top:n,right:o,bottom:r,left:l}=e,i=[n,o,r,l].filter(Boolean),a=!(n!==r||l!==o||!n&&!l),s=!i.length&&function(e=[]){const t={top:0,right:0,bottom:0,left:0};return e.forEach((e=>t[e]+=1)),(t.top+t.bottom)%2==0&&(t.left+t.right)%2==0}(t);if(Mr(t)&&(a||s))return Sr.axial;if(1===i.length){let t;return Object.entries(e).some((([e,n])=>(t=e,void 0!==n))),t}return 1!==t?.length||i.length?Sr.custom:t[0]}(p,a)),_={...e,minimumCustomValue:n,onChange:e=>{const t={...u,...e};o(t)},onMouseOut:r,onMouseOver:l,sides:a,spacingSizes:d,type:t,useSelect:s,values:p},k=kr.includes(h)&&i?wr[h]:"",y=(0,v.sprintf)((0,v.__)("%1$s %2$s"),t,k).trim(),E=(0,v.sprintf)((0,v._x)("%s options","Button label to reveal side configuration options"),t);return(0,c.createElement)("fieldset",{className:"spacing-sizes-control"},(0,c.createElement)(m.__experimentalHStack,{className:"spacing-sizes-control__header"},(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label"},y),!f&&!g&&(0,c.createElement)(Dv,{label:E,onChange:b,sides:a,value:h})),h===Sr.axial?(0,c.createElement)(Pv,{..._}):h===Sr.custom?(0,c.createElement)(Nv,{..._}):(0,c.createElement)(Lv,{side:h,..._,showSideInLabel:i}))}const zv={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1}};function Vv({label:e=(0,v.__)("Height"),onChange:t,value:n}){var o,r;const l=parseFloat(n),i=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["%","px","em","rem","vh","vw"]}),a=(0,c.useMemo)((()=>(0,m.__experimentalParseQuantityAndUnitFromRawValue)(n)),[n])[1]||i[0]?.value||"px";return(0,c.createElement)("fieldset",{className:"block-editor-height-control"},(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend"},e),(0,c.createElement)(m.Flex,null,(0,c.createElement)(m.FlexItem,{isBlock:!0},(0,c.createElement)(m.__experimentalUnitControl,{value:n,units:i,onChange:t,onUnitChange:e=>{const[o,r]=(0,m.__experimentalParseQuantityAndUnitFromRawValue)(n);["em","rem"].includes(e)&&"px"===r?t((o/16).toFixed(2)+e):["em","rem"].includes(r)&&"px"===e?t(Math.round(16*o)+e):["vh","vw","%"].includes(e)&&o>100&&t(100+e)},min:0,size:"__unstable-large"})),(0,c.createElement)(m.FlexItem,{isBlock:!0},(0,c.createElement)(m.__experimentalSpacer,{marginX:2,marginBottom:0},(0,c.createElement)(m.RangeControl,{value:l,min:0,max:null!==(o=zv[a]?.max)&&void 0!==o?o:100,step:null!==(r=zv[a]?.step)&&void 0!==r?r:.1,withInputField:!1,onChange:e=>{t([e,a].join(""))},__nextHasNoMarginBottom:!0})))))}function Fv(e,t){const{orientation:n="horizontal"}=t;return"fill"===e?(0,v.__)("Stretch to fill available space."):"fixed"===e&&"horizontal"===n?(0,v.__)("Specify a fixed width."):"fixed"===e?(0,v.__)("Specify a fixed height."):(0,v.__)("Fit contents.")}function Hv({value:e={},onChange:t,parentLayout:n}){const{selfStretch:o,flexSize:r}=e;return(0,c.useEffect)((()=>{"fixed"!==o||r||t({...e,selfStretch:"fit"})}),[]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:Gv(n),value:o||"fit",help:Fv(o,n),onChange:n=>{const o="fixed"!==n?null:r;t({...e,selfStretch:n,flexSize:o})},isBlock:!0},(0,c.createElement)(m.__experimentalToggleGroupControlOption,{key:"fit",value:"fit",label:(0,v.__)("Fit")}),(0,c.createElement)(m.__experimentalToggleGroupControlOption,{key:"fill",value:"fill",label:(0,v.__)("Fill")}),(0,c.createElement)(m.__experimentalToggleGroupControlOption,{key:"fixed",value:"fixed",label:(0,v.__)("Fixed")})),"fixed"===o&&(0,c.createElement)(m.__experimentalUnitControl,{size:"__unstable-large",onChange:n=>{t({...e,flexSize:n})},value:r}))}function Gv(e){const{orientation:t="horizontal"}=e;return"horizontal"===t?(0,v.__)("Width"):(0,v.__)("Height")}const Uv=["horizontal","vertical"];function $v(e){const t=jv(e),n=Wv(e),o=Kv(e),r=qv(e),l=Zv(e),i=Yv(e),a=Xv(e);return"web"===c.Platform.OS&&(t||n||o||r||l||i||a)}function jv(e){return e?.layout?.contentSize}function Wv(e){return e?.layout?.wideSize}function Kv(e){return e?.spacing?.padding}function qv(e){return e?.spacing?.margin}function Zv(e){return e?.spacing?.blockGap}function Yv(e){return e?.dimensions?.minHeight}function Xv(e){var t;const{type:n="default",default:{type:o="default"}={},allowSizingOnChildren:r=!1}=null!==(t=e?.parentLayout)&&void 0!==t?t:{},l=("flex"===o||"flex"===n)&&r;return!!e?.layout&&l}function Qv(e,t){if(!t||!e)return e;const n={};return t.forEach((t=>{"vertical"===t&&(n.top=e.top,n.bottom=e.bottom),"horizontal"===t&&(n.left=e.left,n.right=e.right),n[t]=e?.[t]})),n}function Jv(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function e_({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,c.createElement)(m.__experimentalToolsPanel,{label:(0,v.__)("Dimensions"),resetAll:()=>{const o=e(n);t(o)},panelId:o},r)}const t_={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,childLayout:!0};function n_({as:e=e_,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=t_,onVisualize:a=(()=>{}),includeLayoutControls:s=!1}){var u,p,f,g,h,b,_,k;const{dimensions:y,spacing:E}=r,w=e=>e&&"object"==typeof e?Object.keys(e).reduce(((t,n)=>(t[n]=fl({settings:{dimensions:y,spacing:E}},"",e[n]),t)),{}):fl({settings:{dimensions:y,spacing:E}},"",e),S=function(e){var t,n;const{custom:o,theme:r,default:l}=e?.spacing?.spacingSizes||{};return(null!==(t=null!==(n=null!=o?o:r)&&void 0!==n?n:l)&&void 0!==t?t:[]).length>0}(r),C=(0,m.__experimentalUseCustomUnits)({availableUnits:r?.spacing?.units||["%","px","em","rem","vw"]}),x=jv(r)&&s,B=w(o?.layout?.contentSize),I=e=>{n(Al(t,["layout","contentSize"],e||void 0))},T=Wv(r)&&s,M=w(o?.layout?.wideSize),P=e=>{n(Al(t,["layout","wideSize"],e||void 0))},N=Kv(r),L=Jv(w(o?.spacing?.padding)),R=Array.isArray(r?.spacing?.padding)?r?.spacing?.padding:r?.spacing?.padding?.sides,A=R&&R.some((e=>Uv.includes(e))),D=e=>{const o=Qv(e,R);n(Al(t,["spacing","padding"],o))},O=()=>a("padding"),z=qv(r),V=Jv(w(o?.spacing?.margin)),F=Array.isArray(r?.spacing?.margin)?r?.spacing?.margin:r?.spacing?.margin?.sides,H=F&&F.some((e=>Uv.includes(e))),G=e=>{const o=Qv(e,F);n(Al(t,["spacing","margin"],o))},U=()=>a("margin"),$=Zv(r),j=w(o?.spacing?.blockGap),W=function(e){return e&&"string"==typeof e?{top:e}:e?{...e,right:e?.left,bottom:e?.top}:e}(j),K=Array.isArray(r?.spacing?.blockGap)?r?.spacing?.blockGap:r?.spacing?.blockGap?.sides,q=K&&K.some((e=>Uv.includes(e))),Z=e=>{n(Al(t,["spacing","blockGap"],e))},Y=e=>{e||Z(null),!q&&e?.hasOwnProperty("top")?Z(e.top):Z({top:e?.top,left:e?.left})},X=Yv(r),Q=w(o?.dimensions?.minHeight),J=e=>{n(Al(t,["dimensions","minHeight"],e))},ee=Xv(r),te=o?.layout,{orientation:ne="horizontal"}=null!==(u=r?.parentLayout)&&void 0!==u?u:{},oe="horizontal"===ne?(0,v.__)("Width"):(0,v.__)("Height"),re=e=>{n({...t,layout:{...t?.layout,...e}})},le=(0,c.useCallback)((e=>({...e,layout:Dl({...e?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0}),spacing:{...e?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...e?.dimensions,minHeight:void 0}})),[]),ie=()=>a(!1);return(0,c.createElement)(e,{resetAllFilter:le,value:t,onChange:n,panelId:l},(x||T)&&(0,c.createElement)("span",{className:"span-columns"},(0,v.__)("Set the width of the main content area.")),x&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:(0,v.__)("Content size"),hasValue:()=>!!t?.layout?.contentSize,onDeselect:()=>I(void 0),isShownByDefault:null!==(p=i.contentSize)&&void 0!==p?p:t_.contentSize,panelId:l},(0,c.createElement)(m.__experimentalHStack,{alignment:"flex-end",justify:"flex-start"},(0,c.createElement)(m.__experimentalUnitControl,{label:(0,v.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:B||"",onChange:e=>{I(e)},units:C}),(0,c.createElement)(m.__experimentalView,null,(0,c.createElement)(Xl,{icon:Ql})))),T&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:(0,v.__)("Wide size"),hasValue:()=>!!t?.layout?.wideSize,onDeselect:()=>P(void 0),isShownByDefault:null!==(f=i.wideSize)&&void 0!==f?f:t_.wideSize,panelId:l},(0,c.createElement)(m.__experimentalHStack,{alignment:"flex-end",justify:"flex-start"},(0,c.createElement)(m.__experimentalUnitControl,{label:(0,v.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:M||"",onChange:e=>{P(e)},units:C}),(0,c.createElement)(m.__experimentalView,null,(0,c.createElement)(Xl,{icon:Jl})))),N&&(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,label:(0,v.__)("Padding"),onDeselect:()=>D(void 0),isShownByDefault:null!==(g=i.padding)&&void 0!==g?g:t_.padding,className:d()({"tools-panel-item-spacing":S}),panelId:l},!S&&(0,c.createElement)(m.__experimentalBoxControl,{values:L,onChange:D,label:(0,v.__)("Padding"),sides:R,units:C,allowReset:!1,splitOnAxis:A,onMouseOver:O,onMouseOut:ie}),S&&(0,c.createElement)(Ov,{values:L,onChange:D,label:(0,v.__)("Padding"),sides:R,units:C,allowReset:!1,onMouseOver:O,onMouseOut:ie})),z&&(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,label:(0,v.__)("Margin"),onDeselect:()=>G(void 0),isShownByDefault:null!==(h=i.margin)&&void 0!==h?h:t_.margin,className:d()({"tools-panel-item-spacing":S}),panelId:l},!S&&(0,c.createElement)(m.__experimentalBoxControl,{values:V,onChange:G,label:(0,v.__)("Margin"),sides:F,units:C,allowReset:!1,splitOnAxis:H,onMouseOver:U,onMouseOut:ie}),S&&(0,c.createElement)(Ov,{values:V,onChange:G,label:(0,v.__)("Margin"),sides:F,units:C,allowReset:!1,onMouseOver:U,onMouseOut:ie})),$&&(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.blockGap,label:(0,v.__)("Block spacing"),onDeselect:()=>Z(void 0),isShownByDefault:null!==(b=i.blockGap)&&void 0!==b?b:t_.blockGap,className:d()({"tools-panel-item-spacing":S}),panelId:l},!S&&(q?(0,c.createElement)(m.__experimentalBoxControl,{label:(0,v.__)("Block spacing"),min:0,onChange:Y,units:C,sides:K,values:W,allowReset:!1,splitOnAxis:q}):(0,c.createElement)(m.__experimentalUnitControl,{label:(0,v.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:Z,units:C,value:j})),S&&(0,c.createElement)(Ov,{label:(0,v.__)("Block spacing"),min:0,onChange:Y,showSideInLabel:!1,sides:q?K:["top"],values:W,allowReset:!1})),X&&(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>!!t?.dimensions?.minHeight,label:(0,v.__)("Min. height"),onDeselect:()=>{J(void 0)},isShownByDefault:null!==(_=i.minHeight)&&void 0!==_?_:t_.minHeight,panelId:l},(0,c.createElement)(Vv,{label:(0,v.__)("Min. height"),value:Q,onChange:J})),ee&&(0,c.createElement)(m.__experimentalVStack,{as:m.__experimentalToolsPanelItem,spacing:2,hasValue:()=>!!t?.layout,label:oe,onDeselect:()=>{re({selfStretch:void 0,flexSize:void 0})},isShownByDefault:null!==(k=i.childLayout)&&void 0!==k?k:t_.childLayout,panelId:l},(0,c.createElement)(Hv,{value:te,onChange:re,parentLayout:r?.parentLayout})))}var o_=window.wp.isShallowEqual,r_=n.n(o_);function l_(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function i_({clientId:e,attributes:t,forceShow:n}){const o=Id(e),[r,l]=(0,c.useState)(),i=t?.style?.spacing?.margin;(0,c.useEffect)((()=>{if(!o||null===o.ownerDocument.defaultView)return;const e=l_(o,"margin-top"),t=l_(o,"margin-right"),n=l_(o,"margin-bottom"),r=l_(o,"margin-left");l({borderTopWidth:e,borderRightWidth:t,borderBottomWidth:n,borderLeftWidth:r,top:e?`-${e}`:0,right:t?`-${t}`:0,bottom:n?`-${n}`:0,left:r?`-${r}`:0})}),[o,i]);const[a,s]=(0,c.useState)(!1),u=(0,c.useRef)(i),d=(0,c.useRef)();return(0,c.useEffect)((()=>(r_()(i,u.current)||n||(s(!0),u.current=i,d.current=setTimeout((()=>{s(!1)}),400)),()=>{s(!1),d.current&&window.clearTimeout(d.current)})),[i,n]),a||n?(0,c.createElement)(Cg,{clientId:e,__unstableCoverTarget:!0,__unstableRefreshSize:i,__unstablePopoverSlot:"block-toolbar",shift:!1},(0,c.createElement)("div",{className:"block-editor__padding-visualizer",style:r})):null}function a_(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function s_({clientId:e,attributes:t,forceShow:n}){const o=Id(e),[r,l]=(0,c.useState)(),i=t?.style?.spacing?.padding;(0,c.useEffect)((()=>{o&&null!==o.ownerDocument.defaultView&&l({borderTopWidth:a_(o,"padding-top"),borderRightWidth:a_(o,"padding-right"),borderBottomWidth:a_(o,"padding-bottom"),borderLeftWidth:a_(o,"padding-left")})}),[o,i]);const[a,s]=(0,c.useState)(!1),u=(0,c.useRef)(i),d=(0,c.useRef)();return(0,c.useEffect)((()=>(r_()(i,u.current)||n||(s(!0),u.current=i,d.current=setTimeout((()=>{s(!1)}),400)),()=>{s(!1),d.current&&window.clearTimeout(d.current)})),[i,n]),a||n?(0,c.createElement)(Cg,{clientId:e,__unstableCoverTarget:!0,__unstableRefreshSize:i,__unstablePopoverSlot:"block-toolbar",shift:!1},(0,c.createElement)("div",{className:"block-editor__padding-visualizer",style:r})):null}const c_="dimensions",u_="spacing";function d_({children:e,resetAllFilter:t}){const n=(0,c.useCallback)((e=>{const n=e.style,o=t(n);return{...e,style:o}}),[t]);return(0,c.createElement)(qi,{group:"dimensions",resetAllFilter:n},e)}function p_(e){const{clientId:t,name:n,attributes:o,setAttributes:r,__unstableParentLayout:l}=e,i=Vl(n,l),s=$v(i),u=o.style,[d,p]=function(){const[e,t]=(0,c.useState)(!1),{hideBlockInterface:n,showBlockInterface:o}=Fo((0,f.useDispatch)(Go));return(0,c.useEffect)((()=>{e?n():o()}),[e,o,n]),[e,t]}();if(!s)return null;const m={...(0,a.getBlockSupport)(e.name,[c_,"__experimentalDefaultControls"]),...(0,a.getBlockSupport)(e.name,[u_,"__experimentalDefaultControls"])};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(n_,{as:d_,panelId:t,settings:i,value:u,onChange:e=>{r({style:Dl(e)})},defaultControls:m,onVisualize:p}),!!i?.spacing?.padding&&(0,c.createElement)(s_,{forceShow:"padding"===d,...e}),!!i?.spacing?.margin&&(0,c.createElement)(i_,{forceShow:"margin"===d,...e}))}function m_(){$()("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}const f_=[...Ev,Th,hb,c_,u_],g_=e=>f_.some((t=>(0,a.hasBlockSupport)(e,t)));function h_(e={}){const t={};return(0,ei.getCSSRules)(e).forEach((e=>{t[e.key]=e.value})),t}const b_={[`${Th}.__experimentalSkipSerialization`]:["border"],[`${hb}.__experimentalSkipSerialization`]:[hb],[`${yv}.__experimentalSkipSerialization`]:[yv],[`${c_}.__experimentalSkipSerialization`]:[c_],[`${u_}.__experimentalSkipSerialization`]:[u_]},v_={...b_,[`${u_}`]:["spacing.blockGap"]},__={gradients:"gradient"};function k_(e,t,n=!1){if(!e)return e;let o=e;return n||(o=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach((e=>{if(Array.isArray(e)||(e=e.split(".")),e.length>1){const[t,...n]=e;k_(o[t],[n],!0)}else 1===e.length&&delete o[e[0]]})),o}function y_(e,t,n,o=v_){if(!g_(t))return e;let{style:r}=n;return Object.entries(o).forEach((([e,n])=>{const o=(0,a.getBlockSupport)(t,e);!0===o&&(r=k_(r,n)),Array.isArray(o)&&o.forEach((e=>{const t=__[e]||e;r=k_(r,[[...n,t]])}))})),e.style={...h_(r),...e.style},e}const E_=(0,p.createHigherOrderComponent)((e=>t=>{const n=qo(),o=xi();return(0,c.createElement)(c.Fragment,null,n&&"default"===o&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(xb,{...t}),(0,c.createElement)(xv,{...t}),(0,c.createElement)(Dh,{...t}),(0,c.createElement)(p_,{...t})),(0,c.createElement)(e,{...t}))}),"withToolbarControls"),w_=(0,p.createHigherOrderComponent)((e=>t=>{const n=`wp-elements-${(0,p.useInstanceId)(e)}`,o=zl(t.name,hb,"link"),r=(0,c.useMemo)((()=>{const e=[{styles:o?void 0:t.attributes.style?.elements?.link,selector:`.editor-styles-wrapper .${n} ${a.__EXPERIMENTAL_ELEMENTS.link}`},{styles:o?void 0:t.attributes.style?.elements?.link?.[":hover"],selector:`.editor-styles-wrapper .${n} ${a.__EXPERIMENTAL_ELEMENTS.link}:hover`}],r=[];for(const{styles:t,selector:n}of e)if(t){const e=(0,ei.compileCSS)(t,{selector:n});r.push(e)}return r.length>0?r.join(""):void 0}),[t.attributes.style?.elements,n,o]),l=(0,c.useContext)(Jg.__unstableElementContext);return(0,c.createElement)(c.Fragment,null,r&&l&&(0,c.createPortal)((0,c.createElement)("style",{dangerouslySetInnerHTML:{__html:r}}),l),(0,c.createElement)(e,{...t,className:t.attributes.style?.elements?d()(t.className,n):t.className}))}),"withElementsStyles");(0,s.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return g_(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",y_),(0,s.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!g_(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),y_(o,e,n,b_)},e})),(0,s.addFilter)("editor.BlockEdit","core/style/with-block-controls",E_),(0,s.addFilter)("editor.BlockListBlock","core/editor/with-elements-styles",w_);(0,s.addFilter)("blocks.registerBlockType","core/settings/addAttribute",(function(e){return t=e,(0,a.hasBlockSupport)(t,"__experimentalSettings",!1)?(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}}),e):e;var t}));var S_=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"}));var C_=function({colorPalette:e,duotonePalette:t,disableCustomColors:n,disableCustomDuotone:o,value:r,onChange:l}){let i;return i="unset"===r?(0,c.createElement)(m.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):r?(0,c.createElement)(m.DuotoneSwatch,{values:r}):(0,c.createElement)(Xl,{icon:S_}),(0,c.createElement)(m.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,v.__)("Duotone")},renderToggle:({isOpen:e,onToggle:t})=>(0,c.createElement)(m.ToolbarButton,{showTooltip:!0,onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==yd.DOWN||(n.preventDefault(),t())},label:(0,v.__)("Apply duotone filter"),icon:i}),renderContent:()=>(0,c.createElement)(m.MenuGroup,{label:(0,v.__)("Duotone")},(0,c.createElement)("div",{className:"block-editor-duotone-control__description"},(0,v.__)("Create a two-tone color effect without losing your original image.")),(0,c.createElement)(m.DuotonePicker,{colorPalette:e,duotonePalette:t,disableCustomColors:n,disableCustomDuotone:o,value:r,onChange:l}))})};function x_(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach((e=>{const n=Hp(e).toRgb();t.r.push(n.r/255),t.g.push(n.g/255),t.b.push(n.b/255),t.a.push(n.a)})),t}function B_({selector:e,id:t}){const n=`\n${e} {\n\tfilter: url( #${t} );\n}\n`;return(0,c.createElement)("style",null,n)}function I_({selector:e}){const t=`\n${e} {\n\tfilter: none;\n}\n`;return(0,c.createElement)("style",null,t)}function T_({id:e,colors:t}){const n=x_(t);return(0,c.createElement)(m.SVG,{xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 0 0",width:"0",height:"0",focusable:"false",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"}},(0,c.createElement)("defs",null,(0,c.createElement)("filter",{id:e},(0,c.createElement)("feColorMatrix",{colorInterpolationFilters:"sRGB",type:"matrix",values:" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "}),(0,c.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},(0,c.createElement)("feFuncR",{type:"table",tableValues:n.r.join(" ")}),(0,c.createElement)("feFuncG",{type:"table",tableValues:n.g.join(" ")}),(0,c.createElement)("feFuncB",{type:"table",tableValues:n.b.join(" ")}),(0,c.createElement)("feFuncA",{type:"table",tableValues:n.a.join(" ")})),(0,c.createElement)("feComposite",{in2:"SourceGraphic",operator:"in"}))))}function M_({preset:e}){return(0,c.createElement)(T_,{id:`wp-duotone-${e.slug}`,colors:e.colors})}function P_(e,t="root",n={}){if(!t)return null;const{fallback:o=!1}=n,{name:r,selectors:l,supports:i}=e,a=l&&Object.keys(l).length>0,s=Array.isArray(t)?t.join("."):t;let c=null;if(c=a&&l.root?l?.root:i?.__experimentalSelector?i.__experimentalSelector:".wp-block-"+r.replace("core/","").replace("/","-"),"root"===s)return c;const u=Array.isArray(t)?t:t.split(".");if(1===u.length){const e=o?c:null;if(a){return(0,Wr.get)(l,`${s}.root`,null)||(0,Wr.get)(l,s,null)||e}const t=(0,Wr.get)(i,`${s}.__experimentalSelector`,null);return t?gl(c,t):e}let d;return a&&(d=(0,Wr.get)(l,s,null)),d||(o?P_(e,u[0],n):null)}const N_=[];function L_(e,{presetSetting:t,defaultSetting:n}){const o=!e?.color?.[n],r=e?.color?.[t]?.custom||N_,l=e?.color?.[t]?.theme||N_,i=e?.color?.[t]?.default||N_;return(0,c.useMemo)((()=>[...r,...l,...o?N_:i]),[o,r,l,i])}function R_(e){return A_(e)}function A_(e){return e.color.customDuotone||e.color.defaultDuotone}function D_({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,c.createElement)(m.__experimentalToolsPanel,{label:(0,v._x)("Filters","Name for applying graphical effects"),resetAll:()=>{const o=e(n);t(o)},panelId:o},r)}const O_={duotone:!0},z_={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:(0,v.__)("Duotone")},V_=({indicator:e,label:t})=>(0,c.createElement)(m.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(m.__experimentalZStack,{isLayered:!1,offset:-8},(0,c.createElement)(m.Flex,{expanded:!1},"unset"!==e&&e?(0,c.createElement)(m.DuotoneSwatch,{values:e}):(0,c.createElement)(m.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}))),(0,c.createElement)(m.FlexItem,{title:t},t));function F_({as:e=D_,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=O_}){const a=A_(r),s=L_(r,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),u=L_(r,{presetSetting:"palette",defaultSetting:"defaultPalette"}),p=(f=o?.filter?.duotone,fl({settings:r},"",f));var f;const g=e=>{const o=s.find((({colors:t})=>t===e)),r=o?`var:preset|duotone|${o.slug}`:e;n(Al(t,["filter","duotone"],r))},h=!r?.color?.custom,b=!r?.color?.customDuotone||0===u?.length&&h,_=(0,c.useCallback)((e=>({...e,filter:{...e.filter,duotone:void 0}})),[]);return(0,c.createElement)(e,{resetAllFilter:_,value:t,onChange:n,panelId:l},a&&(0,c.createElement)(m.__experimentalToolsPanelItem,{label:(0,v.__)("Duotone"),hasValue:()=>!!t?.filter?.duotone,onDeselect:()=>g(void 0),isShownByDefault:i.duotone,panelId:l},(0,c.createElement)(m.Dropdown,{popoverProps:z_,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:d()({"is-open":t}),"aria-expanded":t};return(0,c.createElement)(m.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,c.createElement)(m.Button,{...n},(0,c.createElement)(V_,{indicator:p,label:(0,v.__)("Duotone")})))},renderContent:()=>(0,c.createElement)(m.__experimentalDropdownContentWrapper,{paddingSize:"medium"},(0,c.createElement)(m.__experimentalVStack,null,(0,c.createElement)("p",null,(0,v.__)("Create a two-tone color effect without losing your original image.")),(0,c.createElement)(m.DuotonePicker,{colorPalette:u,duotonePalette:s,disableCustomColors:h,disableCustomDuotone:b,value:p,onChange:g})))})))}const H_=[];function G_({selector:e,id:t,colors:n}){return"unset"===n?(0,c.createElement)(I_,{selector:e}):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(T_,{id:t,colors:n}),(0,c.createElement)(B_,{id:t,selector:e}))}function U_({presetSetting:e,defaultSetting:t}){const n=!Xr(t),o=Xr(`${e}.custom`)||H_,r=Xr(`${e}.theme`)||H_,l=Xr(`${e}.default`)||H_;return(0,c.useMemo)((()=>[...o,...r,...n?H_:l]),[n,o,r,l])}function $_(e,t){if(!e)return;const n=t?.find((({slug:t})=>e===`var:preset|duotone|${t}`));return n?n.colors:void 0}function j_({attributes:e,setAttributes:t,name:n}){const o=e?.style,r=o?.color?.duotone,l=Vl(n),i=U_({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),a=U_({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),s=!Xr("color.custom"),u=!Xr("color.customDuotone")||0===a?.length&&s;if(0===i?.length&&u)return null;const d=Array.isArray(r)?r:$_(r,i);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(qi,{group:"filter"},(0,c.createElement)(F_,{value:{filter:{duotone:d}},onChange:e=>{const n={...o,color:{...e?.filter}};t({style:n})},settings:l})),(0,c.createElement)(er,{group:"block",__experimentalShareWithChildBlocks:!0},(0,c.createElement)(C_,{duotonePalette:i,colorPalette:a,disableCustomDuotone:u,disableCustomColors:s,value:d,onChange:e=>{const n=function(e,t){if(!e||!Array.isArray(e))return;const n=t?.find((t=>t?.colors?.every(((t,n)=>t===e[n]))));return n?`var:preset|duotone|${n.slug}`:void 0}(e,i),r={...o,color:{...o?.color,duotone:null!=n?n:e}};t({style:r})},settings:l})))}Up([$p]);const W_=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,a.hasBlockSupport)(t.name,"filter.duotone"),o=xi();return(0,c.createElement)(c.Fragment,null,n&&"default"===o&&(0,c.createElement)(j_,{...t}),(0,c.createElement)(e,{...t}))}),"withDuotoneControls");function K_({id:e,selector:t,attribute:n}){const o=(0,c.useContext)(Jg.__unstableElementContext),r=U_({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),l=Array.isArray(n),i=l?void 0:$_(n,r),a="string"==typeof n&&i;let s=null;a?s=i:("string"==typeof n&&!a||l)&&(s=n);const u=t.split(",").map((t=>`.editor-styles-wrapper .${e}${t.trim()}`)).join(", "),d=Array.isArray(s)||"unset"===s;return o&&d&&(0,c.createPortal)((0,c.createElement)(G_,{selector:u,id:e,colors:s}),o)}const q_=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,p.useInstanceId)(e),o=(0,c.useMemo)((()=>{const e=(0,a.getBlockType)(t.name);if(e){if(!(0,a.getBlockSupport)(e,"filter.duotone",!1))return null;const t=(0,a.getBlockSupport)(e,"color.__experimentalDuotone",!1);if(t){const n=P_(e);return"string"==typeof t?gl(n,t):n}return P_(e,"filter.duotone",{fallback:!0})}}),[t.name]),r=t?.attributes?.style?.color?.duotone,l=`wp-duotone-${n}`,i=o&&r,s=i?d()(t?.className,l):t?.className;return(0,c.createElement)(c.Fragment,null,i&&(0,c.createElement)(K_,{id:l,selector:o,attribute:r}),(0,c.createElement)(e,{...t,className:s}))}),"withDuotoneStyles");function Z_(e){return(0,f.useSelect)((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=t(Go),{getBlockType:l,getActiveBlockVariation:i}=t(a.store),s=n(e),c=l(s);if(!c)return null;const u=o(e),d=i(s,u),p=(0,a.isReusableBlock)(c),m=(p?r(u.ref):void 0)||c.title,f=p||(0,a.isTemplatePart)(c),g=function(e){const t=e?.style?.position?.type;return"sticky"===t?(0,v.__)("Sticky"):"fixed"===t?(0,v.__)("Fixed"):null}(u),h={isSynced:f,title:m,icon:c.icon,description:c.description,anchor:u?.anchor,positionLabel:g,positionType:u?.style?.position?.type};return d?{isSynced:f,title:d.title||c.title,icon:d.icon||c.icon,description:d.description||c.description,anchor:u?.anchor,positionLabel:g,positionType:u?.style?.position?.type}:h}),[e])}(0,s.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return(0,a.hasBlockSupport)(e,"filter.duotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),(0,s.addFilter)("editor.BlockEdit","core/editor/duotone/with-editor-controls",W_),(0,s.addFilter)("editor.BlockListBlock","core/editor/duotone/with-styles",q_);const{CustomSelectControl:Y_}=Fo(m.privateApis),X_="position",Q_="block-editor-hooks__position-selection__select-control__option",J_={key:"default",value:"",name:(0,v.__)("Default"),className:Q_},ek={key:"sticky",value:"sticky",name:(0,v._x)("Sticky","Name for the value of the CSS position property"),className:Q_,__experimentalHint:(0,v.__)("The block will stick to the top of the window instead of scrolling.")},tk={key:"fixed",value:"fixed",name:(0,v._x)("Fixed","Name for the value of the CSS position property"),className:Q_,__experimentalHint:(0,v.__)("The block will not move when the page is scrolled.")},nk=["top","right","bottom","left"],ok=["sticky","fixed"];function rk(e){const t=e.style?.position?.type;return"sticky"===t||"fixed"===t}function lk({name:e}={}){const t=Xr("position.fixed"),n=Xr("position.sticky"),o=!t&&!n;return r=e,!(0,a.getBlockSupport)(r,X_)||o;var r}function ik(e){const{attributes:{style:t={}},clientId:n,name:o,setAttributes:r}=e,l=function(e){const t=(0,a.getBlockSupport)(e,X_);return!(!0!==t&&!t?.fixed)}(o),i=function(e){const t=(0,a.getBlockSupport)(e,X_);return!(!0!==t&&!t?.sticky)}(o),s=t?.position?.type,{firstParentClientId:u}=(0,f.useSelect)((e=>{const{getBlockParents:t}=e(Go),o=t(n);return{firstParentClientId:o[o.length-1]}}),[n]),d=Z_(u),p=i&&s===ek.value&&d?(0,v.sprintf)((0,v.__)("The block will stick to the scrollable area of the parent %s block."),d.title):null,g=(0,c.useMemo)((()=>{const e=[J_];return(i||s===ek.value)&&e.push(ek),(l||s===tk.value)&&e.push(tk),e}),[l,i,s]),h=s&&g.find((e=>e.value===s))||J_;return c.Platform.select({web:g.length>1?(0,c.createElement)(qi,{group:"position"},(0,c.createElement)(m.BaseControl,{className:"block-editor-hooks__position-selection",__nextHasNoMarginBottom:!0,help:p},(0,c.createElement)(Y_,{__nextUnconstrainedWidth:!0,__next36pxDefaultSize:!0,className:"block-editor-hooks__position-selection__select-control",label:(0,v.__)("Position"),hideLabelFromVision:!0,describedBy:(0,v.sprintf)((0,v.__)("Currently selected position: %s"),h.name),options:g,value:h,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{(e=>{const n={...t,position:{...t?.position,type:e,top:"sticky"===e||"fixed"===e?"0px":void 0}};r({style:Dl(n)})})(e.value)},size:"__unstable-large"}))):null,native:null})}const ak=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n}=t;return[(0,a.hasBlockSupport)(n,X_)&&!lk(t)&&(0,c.createElement)(ik,{key:"position",...t}),(0,c.createElement)(e,{key:"edit",...t})]}),"withInspectorControls"),sk=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,r=(0,a.hasBlockSupport)(n,X_)&&!lk(t),l=(0,p.useInstanceId)(e),i=(0,c.useContext)(Jg.__unstableElementContext);let s;r&&(s=function({selector:e,style:t}){let n="";const{type:o}=t?.position||{};return ok.includes(o)?(n+=`${e} {`,n+=`position: ${o};`,nk.forEach((e=>{void 0!==t?.position?.[e]&&(n+=`${e}: ${t.position[e]};`)})),"sticky"!==o&&"fixed"!==o||(n+="z-index: 10"),n+="}",n):n}({selector:`.wp-container-${l}.wp-container-${l}`,style:o?.style})||"");const u=d()(t?.className,{[`wp-container-${l}`]:r&&!!s,[`is-position-${o?.style?.position?.type}`]:r&&!!s&&!!o?.style?.position?.type});return(0,c.createElement)(c.Fragment,null,r&&i&&!!s&&(0,c.createPortal)((0,c.createElement)("style",null,s),i),(0,c.createElement)(e,{...t,className:u}))}),"withPositionStyles");(0,s.addFilter)("editor.BlockListBlock","core/editor/position/with-position-styles",sk),(0,s.addFilter)("editor.BlockEdit","core/editor/position/with-inspector-controls",ak);const ck="layout";function uk(e){return(0,a.hasBlockSupport)(e,"layout")||(0,a.hasBlockSupport)(e,"__experimentalLayout")}function dk(e={},t=""){const n=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return t().__experimentalFeatures?.useRootPaddingAwareAlignments}),[]),{layout:o}=e,{default:r}=(0,a.getBlockSupport)(t,ck)||{},l=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||r||{},i=[];if(sr[l?.type||"default"]?.className){const e=sr[l?.type||"default"]?.className,n=`wp-block-${t.split("/").pop()}-${e}`;i.push(e,n)}return(l?.inherit||l?.contentSize||"constrained"===l?.type)&&n&&i.push("has-global-padding"),l?.orientation&&i.push(`is-${Ll(l.orientation)}`),l?.justifyContent&&i.push(`is-content-justification-${Ll(l.justifyContent)}`),l?.flexWrap&&"nowrap"===l.flexWrap&&i.push("is-nowrap"),i}function pk({setAttributes:e,attributes:t,name:n}){const{layout:o}=t,r=Xr("layout"),{themeSupportsLayout:l}=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return{themeSupportsLayout:t().supportsLayout}}),[]),i=xi(),s=(0,a.getBlockSupport)(n,ck,{}),{allowSwitching:u,allowEditing:d=!0,allowInheriting:p=!0,default:g}=s;if(!d)return null;const h=!(!p||!r||o?.type&&"default"!==o?.type&&"constrained"!==o?.type&&!o?.inherit),b=o||g||{},{inherit:_=!1,type:k="default",contentSize:y=null}=b;if(("default"===k||"constrained"===k)&&!l)return null;const E=ai(k),w=ai("constrained"),S=!b.type&&(y||_),C=!!_||!!y,x=t=>e({layout:t});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(qi,null,(0,c.createElement)(m.PanelBody,{title:(0,v.__)("Layout")},h&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__toggle-control",label:(0,v.__)("Inner blocks use content width"),checked:"constrained"===E?.name||C,onChange:()=>e({layout:{type:"constrained"===E?.name||C?"default":"constrained"}}),help:"constrained"===E?.name||C?(0,v.__)("Nested blocks use content width with options for full and wide widths."):(0,v.__)("Nested blocks will fill the width of this container. Toggle to constrain.")})),!_&&u&&(0,c.createElement)(mk,{type:k,onChange:t=>e({layout:{type:t}})}),E&&"default"!==E.name&&(0,c.createElement)(E.inspectorControls,{layout:b,onChange:x,layoutBlockSupport:s}),w&&S&&(0,c.createElement)(w.inspectorControls,{layout:b,onChange:x,layoutBlockSupport:s}))),!_&&"default"===i&&E&&(0,c.createElement)(E.toolBarControls,{layout:b,onChange:x,layoutBlockSupport:s}))}function mk({type:e,onChange:t}){return(0,c.createElement)(m.ButtonGroup,null,ii.map((({name:n,label:o})=>(0,c.createElement)(m.Button,{key:n,isPressed:e===n,onClick:()=>t(n)},o))))}const fk=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n}=t,o=uk(n),r=xi();return[o&&"default"===r&&(0,c.createElement)(pk,{key:"layout",...t}),(0,c.createElement)(e,{key:"edit",...t})]}),"withInspectorControls"),gk=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,r=uk(n),l=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return!!t().disableLayoutStyles})),i=r&&!l,s=(0,p.useInstanceId)(e),u=(0,c.useContext)(Jg.__unstableElementContext),{layout:m}=o,{default:g}=(0,a.getBlockSupport)(n,ck)||{},h=m?.inherit||m?.contentSize||m?.wideSize?{...m,type:"constrained"}:m||g||{},b=r?dk(o,n):null,v=`.wp-container-${s}.wp-container-${s}`,_=null!==Xr("spacing.blockGap");let k;if(i){const e=ai(h?.type||"default");k=e?.getLayoutStyle?.({blockName:n,selector:v,layout:h,style:o?.style,hasBlockGapSupport:_})}const y=d()({[`wp-container-${s}`]:i&&!!k},b);return(0,c.createElement)(c.Fragment,null,i&&u&&!!k&&(0,c.createPortal)((0,c.createElement)(pi,{blockName:n,selector:v,css:k,layout:h,style:o?.style}),u),(0,c.createElement)(e,{...t,__unstableLayoutClassNames:y}))}),"withLayoutStyles"),hk=(0,p.createHigherOrderComponent)((e=>t=>{const{attributes:n}=t,{style:{layout:o={}}={}}=n,{selfStretch:r,flexSize:l}=o,i=r||l,a=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return!!t().disableLayoutStyles})),s=i&&!a,u=(0,c.useContext)(Jg.__unstableElementContext),m=(0,p.useInstanceId)(e),g=`.wp-container-content-${m}`;let h="";"fixed"===r&&l?h+=`${g} {\n\t\t\t\tflex-basis: ${l};\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}`:"fill"===r&&(h+=`${g} {\n\t\t\t\tflex-grow: 1;\n\t\t\t}`);const b=d()(t?.className,{[`wp-container-content-${m}`]:s&&!!h});return(0,c.createElement)(c.Fragment,null,s&&u&&!!h&&(0,c.createPortal)((0,c.createElement)("style",null,h),u),(0,c.createElement)(e,{...t,className:b}))}),"withChildLayoutStyles");function bk(e){return(0,f.useSelect)((t=>{const{getBlockRootClientId:n,getBlocksByClientId:o,canInsertBlockType:r,getSelectedBlockClientIds:l}=t(Go),{getGroupingBlockName:i,getBlockType:s}=t(a.store),c=e?.length?e:l(),u=i(),d=r(u,c?.length?n(c[0]):void 0),p=o(c),m=1===p.length,[f]=p,g=m&&(f.name===u||s(f.name)?.transforms?.ungroup)&&!!f.innerBlocks.length;return{clientIds:c,isGroupable:d&&p.length,isUngroupable:g,blocksSelection:p,groupingBlockName:u,onUngroup:g&&s(f.name)?.transforms?.ungroup}}),[e])}function vk({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:o,blocksSelection:r,groupingBlockName:l,onClose:i=(()=>{})}){const{replaceBlocks:s}=(0,f.useDispatch)(Go);return t||n?(0,c.createElement)(c.Fragment,null,t&&(0,c.createElement)(m.MenuItem,{onClick:()=>{(()=>{const t=(0,a.switchToBlockType)(r,l);t&&s(e,t)})(),i()}},(0,v._x)("Group","verb")),n&&(0,c.createElement)(m.MenuItem,{onClick:()=>{(()=>{let t=r[0].innerBlocks;t.length&&(o&&(t=o(r[0].attributes,r[0].innerBlocks)),s(e,t))})(),i()}},(0,v._x)("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor "))):null}function _k(e){return(0,f.useSelect)((t=>{const{canEditBlock:n,canMoveBlock:o,canRemoveBlock:r,canLockBlockType:l,getBlockName:i,getBlockRootClientId:a,getTemplateLock:s}=t(Go),c=a(e),u=n(e),d=o(e,c),p=r(e,c);return{canEdit:u,canMove:d,canRemove:p,canLock:l(i(e)),isContentLocked:"contentOnly"===s(e),isLocked:!u||!d||!p}}),[e])}(0,s.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.layout)&&void 0!==t?t:{})||uk(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),(0,s.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",gk),(0,s.addFilter)("editor.BlockListBlock","core/editor/layout/with-child-layout-styles",hk),(0,s.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",fk);var kk=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"}));var yk=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"}));var Ek=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"}));const wk=["core/block","core/navigation"];function Sk(e){return e.remove&&e.move?"all":!(!e.remove||e.move)&&"insert"}function Ck({clientId:e,onClose:t}){const[n,o]=(0,c.useState)({move:!1,remove:!1}),{canEdit:r,canMove:l,canRemove:i}=_k(e),{allowsEditLocking:s,templateLock:u,hasTemplateLock:d}=(0,f.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(Go),r=n(e),l=(0,a.getBlockType)(r);return{allowsEditLocking:wk.includes(r),templateLock:o(e)?.templateLock,hasTemplateLock:!!l?.attributes?.templateLock}}),[e]),[g,h]=(0,c.useState)(!!u),{updateBlockAttributes:b}=(0,f.useDispatch)(Go),_=Z_(e),k=(0,p.useInstanceId)(Ck,"block-editor-block-lock-modal__options-title");(0,c.useEffect)((()=>{o({move:!l,remove:!i,...s?{edit:!r}:{}})}),[r,l,i,s]);const y=Object.values(n).every(Boolean),E=Object.values(n).some(Boolean)&&!y;return(0,c.createElement)(m.Modal,{title:(0,v.sprintf)((0,v.__)("Lock %s"),_.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t},(0,c.createElement)("p",null,(0,v.__)("Choose specific attributes to restrict or lock all available options.")),(0,c.createElement)("form",{onSubmit:o=>{o.preventDefault(),b([e],{lock:n,templateLock:g?Sk(n):void 0}),t()}},(0,c.createElement)("div",{role:"group","aria-labelledby":k,className:"block-editor-block-lock-modal__options"},(0,c.createElement)(m.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-title",label:(0,c.createElement)("span",{id:k},(0,v.__)("Lock all")),checked:y,indeterminate:E,onChange:e=>o({move:e,remove:e,...s?{edit:e}:{}})}),(0,c.createElement)("ul",{className:"block-editor-block-lock-modal__checklist"},s&&(0,c.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,c.createElement)(m.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Restrict editing"),checked:!!n.edit,onChange:e=>o((t=>({...t,edit:e})))}),(0,c.createElement)(m.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?Ek:kk})),(0,c.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,c.createElement)(m.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Disable movement"),checked:n.move,onChange:e=>o((t=>({...t,move:e})))}),(0,c.createElement)(m.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?Ek:kk})),(0,c.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,c.createElement)(m.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Prevent removal"),checked:n.remove,onChange:e=>o((t=>({...t,remove:e})))}),(0,c.createElement)(m.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?Ek:kk}))),d&&(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__template-lock",label:(0,v.__)("Apply to all blocks inside"),checked:g,disabled:n.move&&!n.remove,onChange:()=>h(!g)})),(0,c.createElement)(m.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(m.Button,{variant:"tertiary",onClick:t},(0,v.__)("Cancel"))),(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(m.Button,{variant:"primary",type:"submit"},(0,v.__)("Apply"))))))}function xk({clientId:e}){const{canLock:t,isLocked:n}=_k(e),[o,r]=(0,c.useReducer)((e=>!e),!1);if(!t)return null;const l=n?(0,v.__)("Unlock"):(0,v.__)("Lock");return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuItem,{icon:n?kk:yk,onClick:r},l),o&&(0,c.createElement)(Ck,{clientId:e,onClose:r}))}const Bk=()=>{};var Ik=(0,p.compose)([(0,f.withSelect)(((e,{clientId:t})=>{const{getBlock:n,getBlockMode:o,getSettings:r}=e(Go),l=n(t),i=r().codeEditingEnabled;return{mode:o(t),blockType:l?(0,a.getBlockType)(l.name):null,isCodeEditingEnabled:i}})),(0,f.withDispatch)(((e,{onToggle:t=Bk,clientId:n})=>({onToggleMode(){e(Go).toggleBlockMode(n),t()}})))])((function({blockType:e,mode:t,onToggleMode:n,small:o=!1,isCodeEditingEnabled:r=!0}){if(!e||!(0,a.hasBlockSupport)(e,"html",!0)||!r)return null;const l="visual"===t?(0,v.__)("Edit as HTML"):(0,v.__)("Edit visually");return(0,c.createElement)(m.MenuItem,{onClick:n},!o&&l)}));const{Fill:Tk,Slot:Mk}=(0,m.createSlotFill)("BlockSettingsMenuControls");function Pk({...e}){return(0,c.createElement)(m.__experimentalStyleProvider,{document:document},(0,c.createElement)(Tk,{...e}))}Pk.Slot=({fillProps:e,clientIds:t=null,__unstableDisplayLocation:n})=>{const{selectedBlocks:o,selectedClientIds:r,canRemove:l}=(0,f.useSelect)((e=>{const{getBlockNamesByClientId:n,getSelectedBlockClientIds:o,canRemoveBlocks:r}=e(Go),l=null!==t?t:o();return{selectedBlocks:n(l),selectedClientIds:l,canRemove:r(l)}}),[t]),{canLock:i}=_k(r[0]),a=1===r.length&&i,s=bk(r),{isGroupable:u,isUngroupable:d}=s,g=(u||d)&&l;return(0,c.createElement)(Mk,{fillProps:{...e,__unstableDisplayLocation:n,selectedBlocks:o,selectedClientIds:r}},(t=>!t?.length>0&&!g&&!a?null:(0,c.createElement)(m.MenuGroup,null,g&&(0,c.createElement)(vk,{...s,onClose:e?.onClose}),a&&(0,c.createElement)(xk,{clientId:r[0]}),t,e?.canMove&&!e?.onlyBlock&&(0,c.createElement)(m.MenuItem,{onClick:(0,p.pipe)(e?.onClose,e?.onMoveTo)},(0,v.__)("Move to")),1===e?.count&&(0,c.createElement)(Ik,{clientId:e?.firstBlockClientId,onToggle:e?.onClose}))))};var Nk=Pk;function Lk({clientId:e,stopEditingAsBlock:t}){const n=(0,f.useSelect)((t=>{const{isBlockSelected:n,hasSelectedInnerBlock:o}=t(Go);return n(e)||o(e,!0)}),[e]);return(0,c.useEffect)((()=>{n||t()}),[n,t]),null}const Rk=(0,p.createHigherOrderComponent)((e=>t=>{const{getBlockListSettings:n,getSettings:o}=(0,f.useSelect)(Go),r=(0,c.useRef)(),{templateLock:l,isLockedByParent:i,isEditingAsBlocks:a}=(0,f.useSelect)((e=>{const{__unstableGetContentLockingParent:n,getTemplateLock:o,__unstableGetTemporarilyEditingAsBlocks:r}=e(Go);return{templateLock:o(t.clientId),isLockedByParent:!!n(t.clientId),isEditingAsBlocks:r()===t.clientId}}),[t.clientId]),{updateSettings:s,updateBlockListSettings:u,__unstableSetTemporarilyEditingAsBlocks:d}=(0,f.useDispatch)(Go),p=!i&&"contentOnly"===l,{__unstableMarkNextChangeAsNotPersistent:g,updateBlockAttributes:h}=(0,f.useDispatch)(Go),b=(0,c.useCallback)((()=>{g(),h(t.clientId,{templateLock:"contentOnly"}),u(t.clientId,{...n(t.clientId),templateLock:"contentOnly"}),s({focusMode:r.current}),d()}),[t.clientId,s,u,n,g,h,d]);if(!p&&!a)return(0,c.createElement)(e,{key:"edit",...t});const _=a&&!p,k=!a&&p&&t.isSelected;return(0,c.createElement)(c.Fragment,null,_&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Lk,{clientId:t.clientId,stopEditingAsBlock:b}),(0,c.createElement)(er,{group:"other"},(0,c.createElement)(m.ToolbarButton,{onClick:()=>{b()}},(0,v.__)("Done")))),k&&(0,c.createElement)(Nk,null,(({onClose:e})=>(0,c.createElement)(m.MenuItem,{onClick:()=>{g(),h(t.clientId,{templateLock:void 0}),u(t.clientId,{...n(t.clientId),templateLock:!1}),r.current=o().focusMode,s({focusMode:!0}),d(t.clientId),e()}},(0,v.__)("Modify")))),(0,c.createElement)(e,{key:"edit",...t}))}),"withToolbarControls");(0,s.addFilter)("editor.BlockEdit","core/content-lock-ui/with-block-controls",Rk);const Ak="metadata";function Dk(e,t=""){if(!e.name.startsWith("core/"))return!1;const n=(0,a.getBlockSupport)(e,"__experimentalMetadata");return!(!0!==n&&!n?.[t])}function Ok({blockName:e,blockBehaviors:t,onChangeBehavior:n,onChangeAnimation:o,disabled:r=!1}){const{settings:l,themeBehaviors:i}=(0,f.useSelect)((t=>{const{getBehaviors:n,getSettings:o}=t(Go);return{settings:o()?.__experimentalFeatures?.blocks?.[e]?.behaviors,themeBehaviors:n()?.blocks?.[e]}}),[e]),s={default:{value:"default",label:(0,v.__)("Default")},noBehaviors:{value:"",label:(0,v.__)("No behaviors")}},u=Object.entries(l).filter((([t,n])=>(0,a.hasBlockSupport)(e,`behaviors.${t}`)&&n)).map((([e])=>({value:e,label:`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()}`}))),d=[...Object.values(s),...u];if(0===u.length)return null;const p={...i,...t||{}},g=r?(0,v.__)("The lightbox behavior is disabled for linked images."):"";return(0,c.createElement)(qi,{group:"advanced"},(0,c.createElement)("div",null,(0,c.createElement)(m.SelectControl,{label:(0,v.__)("Behaviors"),value:void 0===t?"default":p?.lightbox.enabled?"lightbox":"",options:d,onChange:n,hideCancelButton:!0,help:g,size:"__unstable-large",disabled:r}),p?.lightbox.enabled&&(0,c.createElement)(m.SelectControl,{label:(0,v.__)("Animation"),value:p?.lightbox.animation?p?.lightbox.animation:"",options:[{value:"zoom",label:(0,v.__)("Zoom")},{value:"fade",label:"Fade"}],onChange:o,hideCancelButton:!1,size:"__unstable-large",disabled:r})))}(0,s.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",(function(e){return e?.attributes?.[Ak]?.type||Dk(e,"name")&&(e.attributes={...e.attributes,[Ak]:{type:"object"}}),e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/metadata/save-props",(function(e,t,n){return Dk(t)&&(e[Ak]=n[Ak]),e})),(0,s.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",(function(e){return e.__experimentalLabel||Dk(e,"name")&&(e.__experimentalLabel=(e,{context:t})=>{const{metadata:n}=e;if("list-view"===t&&n?.name)return n.name}),e}));const zk=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,c.createElement)(e,{key:"edit",...t});if(!(0,a.hasBlockSupport)(t.name,"behaviors"))return n;const o=void 0!==t.attributes?.linkDestination&&"none"!==t.attributes?.linkDestination;return(0,c.createElement)(c.Fragment,null,n,(0,c.createElement)(Ok,{blockName:t.name,blockBehaviors:t.attributes.behaviors,onChangeBehavior:e=>{"default"===e?t.setAttributes({behaviors:void 0}):t.setAttributes({behaviors:{lightbox:{enabled:"lightbox"===e,animation:"lightbox"===e?"zoom":""}}})},onChangeAnimation:e=>{t.setAttributes({behaviors:{lightbox:{enabled:t.attributes.behaviors.lightbox.enabled,animation:e}}})},disabled:o}))}),"withBehaviors");function Vk(e){const t=e.style?.border||{};return{className:Vh(e)||void 0,style:h_({border:t})}}function Fk(e){const{colors:t}=lh(),n=Vk(e),{borderColor:o}=e;if(o){const e=Ph({colors:t,namedColor:o});n.style.borderColor=e.color}return n}function Hk(e){const{backgroundColor:t,textColor:n,gradient:o,style:r}=e,l=rh("background-color",t),i=rh("color",n),a=Hh(o),s=a||r?.color?.gradient;return{className:d()(i,a,{[l]:!s&&!!l,"has-text-color":n||r?.color?.text,"has-background":t||r?.color?.background||o||r?.color?.gradient,"has-link-color":r?.elements?.link?.color})||void 0,style:h_({color:r?.color||{}})}}window?.__experimentalInteractivityAPI&&(0,s.addFilter)("editor.BlockEdit","core/behaviors/with-inspector-control",zk);const Gk={};function Uk(e){const{backgroundColor:t,textColor:n,gradient:o}=e,r=Xr("color.palette.custom"),l=Xr("color.palette.theme"),i=Xr("color.palette.default"),a=Xr("color.gradients")||Gk,s=(0,c.useMemo)((()=>[...r||[],...l||[],...i||[]]),[r,l,i]),u=(0,c.useMemo)((()=>[...a?.custom||[],...a?.theme||[],...a?.default||[]]),[a]),d=Hk(e);if(t){const e=nh(s,t);d.style.backgroundColor=e.color}if(o&&(d.style.background=Gh(u,o)),n){const e=nh(s,n);d.style.color=e.color}return d}function $k(e){const{style:t}=e;return{style:h_({spacing:t?.spacing||{}})}}function jk(e,t){let n=e?.style?.typography||{};const o=cl(t);n={...n,fontSize:al({size:e?.style?.typography?.fontSize},o)};const r=h_({typography:n}),l=e?.fontFamily?`has-${Ll(e.fontFamily)}-font-family`:"";return{className:d()(l,gv(e?.fontSize)),style:r}}function Wk(e){const[t,n]=(0,c.useState)(e);return(0,c.useEffect)((()=>{e&&n(e)}),[e]),t}const Kk=([e,...t])=>e.toUpperCase()+t.join(""),qk=e=>(0,p.createHigherOrderComponent)((t=>n=>(0,c.createElement)(t,{...n,colors:e})),"withCustomColorPalette"),Zk=()=>(0,p.createHigherOrderComponent)((e=>t=>{const n=Xr("color.palette.custom"),o=Xr("color.palette.theme"),r=Xr("color.palette.default"),l=(0,c.useMemo)((()=>[...n||[],...o||[],...r||[]]),[n,o,r]);return(0,c.createElement)(e,{...t,colors:l})}),"withEditorColorPalette");function Yk(e,t){const n=e.reduce(((e,t)=>({...e,..."string"==typeof t?{[t]:Ll(t)}:t})),{});return(0,p.compose)([t,e=>class extends c.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return function(e,t){const n=Hp(t),o=({color:e})=>n.contrast(e),r=Math.max(...e.map(o));return e.find((e=>o(e)===r)).color}(t,e)}createSetters(){return Object.keys(n).reduce(((e,t)=>{const n=Kk(t),o=`custom${n}`;return e[`set${n}`]=this.createSetColor(t,o),e}),{})}createSetColor(e,t){return n=>{const o=oh(this.props.colors,n);this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},o){return Object.entries(n).reduce(((n,[r,l])=>{const i=nh(t,e[r],e[`custom${Kk(r)}`]),a=o[r],s=a?.color;return s===i.color&&a?n[r]=a:n[r]={...i,class:rh(l,i.slug)},n}),{})}render(){return(0,c.createElement)(e,{...this.props,colors:void 0,...this.state,...this.setters,colorUtils:this.colorUtils})}}])}function Xk(e){return(...t)=>{const n=qk(e);return(0,p.createHigherOrderComponent)(Yk(t,n),"withCustomColors")}}function Qk(...e){const t=Zk();return(0,p.createHigherOrderComponent)(Yk(e,t),"withColors")}var Jk=function(e){const t=Xr("typography.fontSizes"),n=!Xr("typography.customFontSize");return(0,c.createElement)(m.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:n})};const ey=[],ty=([e,...t])=>e.toUpperCase()+t.join("");var ny=(...e)=>{const t=e.reduce(((e,t)=>(e[t]=`custom${ty(t)}`,e)),{});return(0,p.createHigherOrderComponent)((0,p.compose)([(0,p.createHigherOrderComponent)((e=>t=>{const n=Xr("typography.fontSizes")||ey;return(0,c.createElement)(e,{...t,fontSizes:n})}),"withFontSizes"),e=>class extends c.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce(((e,[t,n])=>(e[`set${ty(t)}`]=this.createSetFontSize(t,n),e)),{})}createSetFontSize(e,t){return n=>{const o=this.props.fontSizes?.find((({size:e})=>e===Number(n)));this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},o){const r=(t,n)=>!o[n]||(e[n]?e[n]!==o[n].slug:o[n].size!==e[t]);if(!Object.values(t).some(r))return null;const l=Object.entries(t).filter((([e,t])=>r(t,e))).reduce(((t,[o,r])=>{const l=e[o],i=mv(n,l,e[r]);return t[o]={...i,class:gv(l)},t}),{});return{...o,...l}}render(){return(0,c.createElement)(e,{...this.props,fontSizes:void 0,...this.state,...this.setters})}}]),"withFontSizes")};var oy=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"}));var ry=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"}));var ly=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"}));const iy=[{icon:oy,title:(0,v.__)("Align text left"),align:"left"},{icon:ry,title:(0,v.__)("Align text center"),align:"center"},{icon:ly,title:(0,v.__)("Align text right"),align:"right"}],ay={placement:"bottom-start"};var sy=function({value:e,onChange:t,alignmentControls:n=iy,label:o=(0,v.__)("Align text"),describedBy:r=(0,v.__)("Change text alignment"),isCollapsed:l=!0,isToolbar:i}){function a(n){return()=>t(e===n?void 0:n)}const s=n.find((t=>t.align===e)),u=i?m.ToolbarGroup:m.ToolbarDropdownMenu,d=i?{isCollapsed:l}:{toggleProps:{describedBy:r},popoverProps:ay};return(0,c.createElement)(u,{icon:s?s.icon:(0,v.isRTL)()?ly:oy,label:o,controls:n.map((t=>{const{align:n}=t,o=e===n;return{...t,isActive:o,role:l?"menuitemradio":void 0,onClick:a(n)}})),...d})};const cy=e=>(0,c.createElement)(sy,{...e,isToolbar:!1}),uy=e=>(0,c.createElement)(sy,{...e,isToolbar:!0}),dy=()=>{};var py={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n,prioritizedBlocks:o}=(0,f.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockListSettings:o,getBlockRootClientId:r}=e(Go),l=t(),i=r(l);return{selectedBlockName:l?n(l):null,rootClientId:i,prioritizedBlocks:o(i)?.prioritizedInserterBlocks}}),[]),[r,l,i]=Am(t,dy),a=(0,c.useMemo)((()=>(e.trim()?cf(r,l,i,e):tg(K(r,"frecency","desc"),o)).filter((e=>e.name!==n)).slice(0,9)),[e,n,r,l,i,o]),s=(0,c.useMemo)((()=>a.map((e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:`block-${e.id}`,value:e,label:(0,c.createElement)(c.Fragment,null,(0,c.createElement)($d,{key:"icon",icon:n,showColors:!0}),t),isDisabled:o}}))),[a]);return[s]},allowContext(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o}=e;return{action:"replace",value:(0,a.createBlock)(t,n,(0,a.createBlocksFromInnerBlocksTemplate)(o))}}},my=window.wp.apiFetch,fy=n.n(my);var gy=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var hy=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));var by={name:"links",className:"block-editor-autocompleters__link",triggerPrefix:"[[",options:async e=>{let t=await fy()({path:(0,Sf.addQueryArgs)("/wp/v2/search",{per_page:10,search:e,type:"post",order_by:"menu_order"})});return t=t.filter((e=>""!==e.title)),t},getOptionKeywords(e){return[...e.title.split(/\s+/)]},getOptionLabel(e){return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Xl,{key:"icon",icon:"page"===e.subtype?gy:hy}),e.title)},getOptionCompletion(e){return(0,c.createElement)("a",{href:e.url},e.title)}};const vy=[];function _y({completers:e=vy}){const{name:t}=Ko();return(0,c.useMemo)((()=>{let n=[...e,by];return(t===(0,a.getDefaultBlockName)()||(0,a.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(n=[...n,py]),(0,s.hasFilter)("editor.Autocomplete.completers")&&(n===e&&(n=n.map((e=>({...e})))),n=(0,s.applyFilters)("editor.Autocomplete.completers",n,t)),n}),[e,t])}var ky=function(e){return(0,c.createElement)(m.Autocomplete,{...e,completers:_y(e)})};var yy=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"}));var Ey=function({isActive:e,label:t=(0,v.__)("Toggle full height"),onToggle:n,isDisabled:o}){return(0,c.createElement)(m.ToolbarButton,{isActive:e,icon:yy,label:t,onClick:()=>n(!e),disabled:o})};const wy=()=>{};var Sy=function(e){const{label:t=(0,v.__)("Change matrix alignment"),onChange:n=wy,value:o="center",isDisabled:r}=e,l=(0,c.createElement)(m.__experimentalAlignmentMatrixControl.Icon,{value:o});return(0,c.createElement)(m.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:e,isOpen:n})=>(0,c.createElement)(m.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==yd.DOWN||(t.preventDefault(),e())},label:t,icon:l,showTooltip:!0,disabled:r}),renderContent:()=>(0,c.createElement)(m.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})};var Cy=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));function xy({clientId:e,maximumLength:t,context:n}){const{attributes:o,name:r,reusableBlockTitle:l}=(0,f.useSelect)((t=>{if(!e)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=t(Go),l=n(e);if(!l)return{};const i=(0,a.isReusableBlock)((0,a.getBlockType)(l));return{attributes:o(e),name:l,reusableBlockTitle:i&&r(o(e).ref)}}),[e]),i=Z_(e);if(!r||!i)return null;const s=(0,a.getBlockType)(r),c=s?(0,a.__experimentalGetBlockLabel)(s,o,n):null,u=l||c,d=u&&u!==s.title?u:i.title;if(t&&t>0&&d.length>t){const e="...";return d.slice(0,t-e.length)+e}return d}function By({clientId:e,maximumLength:t,context:n}){return xy({clientId:e,maximumLength:t,context:n})}var Iy=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=(0,f.useDispatch)(Go),{clientId:o,parents:r,hasSelection:l}=(0,f.useSelect)((e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getEnabledBlockParents:o}=Fo(e(Go)),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}}),[]),i=e||(0,v.__)("Document");return(0,c.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,v.__)("Block breadcrumb")},(0,c.createElement)("li",{className:l?void 0:"block-editor-block-breadcrumb__current","aria-current":l?void 0:"true"},l&&(0,c.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:n},i),!l&&i,!!o&&(0,c.createElement)(Xl,{icon:Cy,className:"block-editor-block-breadcrumb__separator"})),r.map((e=>(0,c.createElement)("li",{key:e},(0,c.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>t(e)},(0,c.createElement)(By,{clientId:e,maximumLength:35})),(0,c.createElement)(Xl,{icon:Cy,className:"block-editor-block-breadcrumb__separator"})))),!!o&&(0,c.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},(0,c.createElement)(By,{clientId:o,maximumLength:35})))};const Ty=()=>(0,c.createElement)(m.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,c.createElement)(m.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"})),My=({style:e,className:t})=>(0,c.createElement)("div",{className:"block-library-colors-selector__icon-container"},(0,c.createElement)("div",{className:`${t} block-library-colors-selector__state-selection`,style:e},(0,c.createElement)(Ty,null))),Py=({TextColor:e,BackgroundColor:t})=>({onToggle:n,isOpen:o})=>(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(m.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,v.__)("Open Colors Selector"),onClick:n,onKeyDown:e=>{o||e.keyCode!==yd.DOWN||(e.preventDefault(),n())},icon:(0,c.createElement)(t,null,(0,c.createElement)(e,null,(0,c.createElement)(My,null)))}));var Ny=({children:e,...t})=>($()("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),(0,c.createElement)(m.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:Py(t),renderContent:()=>e}));var Ly=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));const Ry=(0,c.createContext)({}),Ay=()=>(0,c.useContext)(Ry);function Dy({children:e,...t}){const n=(0,c.useRef)();return(0,c.useEffect)((()=>{n.current&&(n.current.textContent=n.current.textContent)}),[e]),(0,c.createElement)("div",{hidden:!0,...t,ref:n},e)}const Oy=(0,c.forwardRef)((({nestingLevel:e,blockCount:t,clientId:n,...o},r)=>{const{insertedBlock:l,setInsertedBlock:i}=Ay(),a=(0,p.useInstanceId)(Oy),{hideInserter:s}=(0,f.useSelect)((e=>{const{getTemplateLock:t,__unstableGetEditorMode:o}=e(Go);return{hideInserter:!!t(n)||"zoom-out"===o()}}),[n]),u=xy({clientId:n,context:"list-view"}),d=xy({clientId:l?.clientId,context:"list-view"});if((0,c.useEffect)((()=>{d?.length&&(0,Cn.speak)((0,v.sprintf)((0,v.__)("%s block inserted"),d),"assertive")}),[d]),s)return null;const m=`list-view-appender__${a}`,g=(0,v.sprintf)((0,v.__)("Append to %1$s block at position %2$d, Level %3$d"),u,t+1,e);return(0,c.createElement)("div",{className:"list-view-appender"},(0,c.createElement)(fg,{ref:r,rootClientId:n,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:!1,__experimentalIsQuick:!0,...o,toggleProps:{"aria-describedby":m},onSelectOrClose:e=>{e?.clientId&&i(e)}}),(0,c.createElement)(Dy,{id:m},g))})),zy=rd(m.__experimentalTreeGridRow),Vy=(0,c.forwardRef)((({isSelected:e,position:t,level:n,rowCount:o,children:r,className:l,path:i,...a},s)=>{const u=ad({isSelected:e,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:i}),m=(0,p.useMergeRefs)([s,u]);return(0,c.createElement)(zy,{ref:m,className:d()("block-editor-list-view-leaf",l),level:n,positionInSet:t,setSize:o,isExpanded:void 0,...a},r)}));var Fy=Vy;var Hy=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));var Gy=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const Uy=(e,t)=>"up"===e?"horizontal"===t?(0,v.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===t?(0,v.isRTL)()?"left":"right":"down":null;function $y(e,t,n,o,r,l,i){const a=n+1;if(e>1)return function(e,t,n,o,r,l){const i=t+1;if(n&&o)return(0,v.__)("All blocks are selected, and cannot be moved");if(r>0&&!o){const t=Uy("down",l);if("down"===t)return(0,v.sprintf)((0,v.__)("Move %1$d blocks from position %2$d down by one place"),e,i);if("left"===t)return(0,v.sprintf)((0,v.__)("Move %1$d blocks from position %2$d left by one place"),e,i);if("right"===t)return(0,v.sprintf)((0,v.__)("Move %1$d blocks from position %2$d right by one place"),e,i)}if(r>0&&o){const e=Uy("down",l);if("down"===e)return(0,v.__)("Blocks cannot be moved down as they are already at the bottom");if("left"===e)return(0,v.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,v.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(r<0&&!n){const t=Uy("up",l);if("up"===t)return(0,v.sprintf)((0,v.__)("Move %1$d blocks from position %2$d up by one place"),e,i);if("left"===t)return(0,v.sprintf)((0,v.__)("Move %1$d blocks from position %2$d left by one place"),e,i);if("right"===t)return(0,v.sprintf)((0,v.__)("Move %1$d blocks from position %2$d right by one place"),e,i)}if(r<0&&n){const e=Uy("up",l);if("up"===e)return(0,v.__)("Blocks cannot be moved up as they are already at the top");if("left"===e)return(0,v.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,v.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}(e,n,o,r,l,i);if(o&&r)return(0,v.sprintf)((0,v.__)("Block %s is the only block, and cannot be moved"),t);if(l>0&&!r){const e=Uy("down",i);if("down"===e)return(0,v.sprintf)((0,v.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if("left"===e)return(0,v.sprintf)((0,v.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if("right"===e)return(0,v.sprintf)((0,v.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(l>0&&r){const e=Uy("down",i);if("down"===e)return(0,v.sprintf)((0,v.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===e)return(0,v.sprintf)((0,v.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===e)return(0,v.sprintf)((0,v.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(l<0&&!o){const e=Uy("up",i);if("up"===e)return(0,v.sprintf)((0,v.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if("left"===e)return(0,v.sprintf)((0,v.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if("right"===e)return(0,v.sprintf)((0,v.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(l<0&&o){const e=Uy("up",i);if("up"===e)return(0,v.sprintf)((0,v.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return(0,v.sprintf)((0,v.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return(0,v.sprintf)((0,v.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}const jy=(e,t)=>"up"===e?"horizontal"===t?(0,v.isRTL)()?Hd:Gd:Hy:"down"===e?"horizontal"===t?(0,v.isRTL)()?Gd:Hd:Gy:null,Wy=(e,t)=>"up"===e?"horizontal"===t?(0,v.isRTL)()?(0,v.__)("Move right"):(0,v.__)("Move left"):(0,v.__)("Move up"):"down"===e?"horizontal"===t?(0,v.isRTL)()?(0,v.__)("Move left"):(0,v.__)("Move right"):(0,v.__)("Move down"):null,Ky=(0,c.forwardRef)((({clientIds:e,direction:t,orientation:n,...o},r)=>{const l=(0,p.useInstanceId)(Ky),i=Array.isArray(e)?e:[e],s=i.length,{blockType:u,isDisabled:g,rootClientId:h,isFirst:b,isLast:v,firstIndex:_,orientation:k="vertical"}=(0,f.useSelect)((e=>{const{getBlockIndex:o,getBlockRootClientId:r,getBlockOrder:l,getBlock:s,getBlockListSettings:c}=e(Go),u=i[0],d=r(u),p=o(u),m=o(i[i.length-1]),f=l(d),g=s(u),h=0===p,b=m===f.length-1,{orientation:v}=c(d)||{};return{blockType:g?(0,a.getBlockType)(g.name):null,isDisabled:"up"===t?h:b,rootClientId:d,firstIndex:p,isFirst:h,isLast:b,orientation:n||v}}),[e,t]),{moveBlocksDown:y,moveBlocksUp:E}=(0,f.useDispatch)(Go),w="up"===t?E:y,S=`block-editor-block-mover-button__description-${l}`;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.Button,{ref:r,className:d()("block-editor-block-mover-button",`is-${t}-button`),icon:jy(t,k),label:Wy(t,k),"aria-describedby":S,...o,onClick:g?null:t=>{w(e,h),o.onClick&&o.onClick(t)},disabled:g,__experimentalIsFocusable:!0}),(0,c.createElement)(m.VisuallyHidden,{id:S},$y(s,u&&u.title,_,b,v,"up"===t?-1:1,k)))})),qy=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(Ky,{direction:"up",ref:t,...e}))),Zy=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(Ky,{direction:"down",ref:t,...e})));var Yy=(0,c.createElement)(F.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"}));var Xy=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"}));var Qy=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));function Jy({onClick:e}){return(0,c.createElement)("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true","data-testid":"list-view-expander"},(0,c.createElement)(Xl,{icon:(0,v.isRTL)()?Qy:Cy}))}var eE=(0,c.forwardRef)((function({className:e,block:{clientId:t},onClick:n,onToggleExpanded:o,tabIndex:r,onFocus:l,onDragStart:i,onDragEnd:a,draggable:s,isExpanded:u,ariaLabel:p,ariaDescribedBy:g,updateFocusAndSelection:h},b){const _=Z_(t),k=xy({clientId:t,context:"list-view"}),{isLocked:y}=_k(t),{getSelectedBlockClientIds:E,getPreviousBlockClientId:w,getBlockRootClientId:S,getBlockOrder:C,canRemoveBlocks:x}=(0,f.useSelect)(Go),{removeBlocks:B}=(0,f.useDispatch)(Go),I=(0,op.__unstableUseShortcutEventMatch)(),T="sticky"===_?.positionType,M=_?.positionLabel?(0,v.sprintf)((0,v.__)("Position: %1$s"),_.positionLabel):"";return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.Button,{className:d()("block-editor-list-view-block-select-button",e),onClick:n,onKeyDown:function(e){if(e.keyCode===yd.ENTER||e.keyCode===yd.SPACE)n(e);else if(e.keyCode===yd.BACKSPACE||e.keyCode===yd.DELETE||I("core/block-editor/remove",e)){var o;const e=E(),n=e.includes(t),r=n?e[0]:t,l=S(r),i=n?e:[t];if(!x(i,l))return;let a=null!==(o=w(r))&&void 0!==o?o:l;B(i,!1);const s=e.length>0&&0===E().length;a||(a=C()[0]),h(a,s)}},ref:b,tabIndex:r,onFocus:l,onDragStart:e=>{e.dataTransfer.clearData(),i?.(e)},onDragEnd:a,draggable:s,href:`#block-${t}`,"aria-label":p,"aria-describedby":g,"aria-expanded":u},(0,c.createElement)(Jy,{onClick:o}),(0,c.createElement)($d,{icon:_?.icon,showColors:!0,context:"list-view"}),(0,c.createElement)(m.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1},(0,c.createElement)("span",{className:"block-editor-list-view-block-select-button__title"},(0,c.createElement)(m.__experimentalTruncate,{ellipsizeMode:"auto"},k)),_?.anchor&&(0,c.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper"},(0,c.createElement)(m.__experimentalTruncate,{className:"block-editor-list-view-block-select-button__anchor",ellipsizeMode:"auto"},_.anchor)),M&&T&&(0,c.createElement)(m.Tooltip,{text:M},(0,c.createElement)("span",{className:"block-editor-list-view-block-select-button__sticky"},(0,c.createElement)(Xl,{icon:Yy}))),y&&(0,c.createElement)("span",{className:"block-editor-list-view-block-select-button__lock"},(0,c.createElement)(Xl,{icon:Xy})))))}));var tE=({children:e,clientIds:t,cloneClassname:n,onDragStart:o,onDragEnd:r})=>{const{srcRootClientId:l,isDraggable:i,icon:s}=(0,f.useSelect)((e=>{const{canMoveBlocks:n,getBlockRootClientId:o,getBlockName:r,getBlockAttributes:l}=e(Go),{getBlockType:i,getActiveBlockVariation:s}=e(a.store),c=o(t[0]),u=r(t[0]),d=s(u,l(t[0]));return{srcRootClientId:c,isDraggable:n(t,c),icon:d?.icon||i(u)?.icon}}),[t]),u=(0,c.useRef)(!1),[d,p,g]=function(){const e=(0,c.useRef)(null),t=(0,c.useRef)(null),n=(0,c.useRef)(null),o=(0,c.useRef)(null);return(0,c.useEffect)((()=>()=>{o.current&&(clearInterval(o.current),o.current=null)}),[]),[(0,c.useCallback)((r=>{e.current=r.clientY,n.current=(0,ea.getScrollContainer)(r.target),o.current=setInterval((()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}}),25)}),[]),(0,c.useCallback)((o=>{if(!n.current)return;const r=n.current.offsetHeight,l=e.current-n.current.offsetTop,i=o.clientY-n.current.offsetTop;if(o.clientY>l){const e=Math.max(r-l-50,0),n=Math.max(i-l-50,0),o=0===e||0===n?0:n/e;t.current=25*o}else if(o.clientY<l){const e=Math.max(l-50,0),n=Math.max(l-i-50,0),o=0===e||0===n?0:n/e;t.current=-25*o}else t.current=0}),[]),()=>{e.current=null,n.current=null,o.current&&(clearInterval(o.current),o.current=null)}]}(),{startDraggingBlocks:h,stopDraggingBlocks:b}=(0,f.useDispatch)(Go);if((0,c.useEffect)((()=>()=>{u.current&&b()}),[]),!i)return e({draggable:!1});const v={type:"block",srcClientIds:t,srcRootClientId:l};return(0,c.createElement)(m.Draggable,{cloneClassname:n,__experimentalTransferDataType:"wp-blocks",transferData:v,onDragStart:e=>{window.requestAnimationFrame((()=>{h(t),u.current=!0,d(e),o&&o()}))},onDragOver:p,onDragEnd:()=>{b(),u.current=!1,g(),r&&r()},__experimentalDragComponent:(0,c.createElement)(Im,{count:t.length,icon:s})},(({onDraggableStart:t,onDraggableEnd:n})=>e({draggable:!0,onDragStart:t,onDragEnd:n})))};const nE=(0,c.forwardRef)((({onClick:e,onToggleExpanded:t,block:n,isSelected:o,position:r,siblingBlockCount:l,level:i,isExpanded:a,selectedClientIds:s,...u},p)=>{const{clientId:m}=n,{blockMovingClientId:g,selectedBlockInBlockEditor:h}=(0,f.useSelect)((e=>{const{hasBlockMovingClientId:t,getSelectedBlockClientId:n}=e(Go);return{blockMovingClientId:t(),selectedBlockInBlockEditor:n()}}),[]),{AdditionalBlockContent:b,insertedBlock:v,setInsertedBlock:_}=Ay(),k=g&&h===m,y=d()("block-editor-list-view-block-contents",{"is-dropping-before":k}),E=s.includes(m)?s:[m];return(0,c.createElement)(c.Fragment,null,b&&(0,c.createElement)(b,{block:n,insertedBlock:v,setInsertedBlock:_}),(0,c.createElement)(tE,{clientIds:E},(({draggable:s,onDragStart:d,onDragEnd:m})=>(0,c.createElement)(eE,{ref:p,className:y,block:n,onClick:e,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:l,level:i,draggable:s,onDragStart:d,onDragEnd:m,isExpanded:a,...u}))))}));var oE=nE;var rE=(0,c.memo)((function e({block:{clientId:t},isDragged:n,isSelected:o,isBranchSelected:r,selectBlock:l,position:i,level:s,rowCount:u,siblingBlockCount:g,showBlockMovers:h,path:b,isExpanded:_,selectedClientIds:k,isSyncedBranch:y}){const E=(0,c.useRef)(null),w=(0,c.useRef)(null),[S,C]=(0,c.useState)(!1),{isLocked:x,canEdit:B}=_k(t),I=o&&k[0]===t,T=o&&k[k.length-1]===t,{toggleBlockHighlight:M}=(0,f.useDispatch)(Go),P=Z_(t),N=P?.title||(0,v.__)("Untitled"),L=(0,f.useSelect)((e=>e(Go).getBlock(t)),[t]),R=(0,f.useSelect)((e=>e(Go).getBlockName(t)),[t]),A=(0,f.useSelect)((e=>Fo(e(Go)).getBlockEditingMode(t)),[t]),D=(0,a.hasBlockSupport)(R,"__experimentalToolbar",!0)&&"default"===A,O=`list-view-block-select-button__${(0,p.useInstanceId)(e)}`,z=((e,t,n)=>(0,v.sprintf)((0,v.__)("Block %1$d of %2$d, Level %3$d"),e,t,n))(i,g,s),V=x?(0,v.sprintf)((0,v.__)("%s (locked)"),N):N,F=(0,v.sprintf)((0,v.__)("Options for %s"),N),{isTreeGridMounted:H,expand:G,collapse:U,BlockSettingsMenu:$,listViewInstanceId:j,expandedState:W,setInsertedBlock:K,treeGridElementRef:q}=Ay(),Z=h&&g>0,Y=d()("block-editor-list-view-block__mover-cell",{"is-visible":S||o}),X=d()("block-editor-list-view-block__menu-cell",{"is-visible":S||I});(0,c.useEffect)((()=>{!H&&o&&E.current.focus()}),[]);const Q=(0,c.useCallback)((()=>{C(!0),M(t,!0)}),[t,C,M]),J=(0,c.useCallback)((()=>{C(!1),M(t,!1)}),[t,C,M]),ee=(0,c.useCallback)((e=>{l(e,t),e.preventDefault()}),[t,l]),te=(0,c.useCallback)(((e,t)=>{t&&l(void 0,e,null,null);const n=()=>{const t=q.current?.querySelector(`[role=row][data-block="${e}"]`);return t?ea.focus.focusable.find(t)[0]:null};let o=n();o?o.focus():window.requestAnimationFrame((()=>{o=n(),o&&o.focus()}))}),[l,q]),ne=(0,c.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),!0===_?U(t):!1===_&&G(t)}),[t,G,U,_]);let oe;Z?oe=2:D||(oe=3);const re=d()({"is-selected":o,"is-first-selected":I,"is-last-selected":T,"is-branch-selected":r,"is-synced-branch":y,"is-dragging":n,"has-single-cell":!D,"is-synced":P?.isSynced}),le=k.includes(t)?k:[t];!function({isSelected:e,selectedClientIds:t,rowItemRef:n}){const o=1===t.length;(0,c.useLayoutEffect)((()=>{if(!e||!o||!n.current)return;const t=(0,ea.getScrollContainer)(n.current),{ownerDocument:r}=n.current;if(t===r.body||t===r.documentElement||!t)return;const l=n.current.getBoundingClientRect(),i=t.getBoundingClientRect();(l.top<i.top||l.bottom>i.bottom)&&n.current.scrollIntoView()}),[e,o,n])}({isSelected:o,rowItemRef:w,selectedClientIds:k});const ie=o&&1===k.length;return(0,c.createElement)(Fy,{className:re,onMouseEnter:Q,onMouseLeave:J,onFocus:Q,onBlur:J,level:s,position:i,rowCount:u,path:b,id:`list-view-${j}-block-${t}`,"data-block":t,"data-expanded":B?_:void 0,ref:w},(0,c.createElement)(m.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:oe,ref:E,"aria-selected":!!o},(({ref:e,tabIndex:t,onFocus:n})=>(0,c.createElement)("div",{className:"block-editor-list-view-block__contents-container"},(0,c.createElement)(oE,{block:L,onClick:ee,onToggleExpanded:ne,isSelected:o,position:i,siblingBlockCount:g,level:s,ref:e,tabIndex:ie?0:t,onFocus:n,isExpanded:B?_:void 0,selectedClientIds:k,ariaLabel:V,ariaDescribedBy:O,updateFocusAndSelection:te}),(0,c.createElement)(Dy,{id:O},z)))),Z&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalTreeGridCell,{className:Y,withoutGridItem:!0},(0,c.createElement)(m.__experimentalTreeGridItem,null,(({ref:e,tabIndex:n,onFocus:o})=>(0,c.createElement)(qy,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:o}))),(0,c.createElement)(m.__experimentalTreeGridItem,null,(({ref:e,tabIndex:n,onFocus:o})=>(0,c.createElement)(Zy,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:o}))))),D&&$&&(0,c.createElement)(m.__experimentalTreeGridCell,{className:X,"aria-selected":!!o},(({ref:e,tabIndex:t,onFocus:n})=>(0,c.createElement)($,{clientIds:le,block:L,icon:Nf,label:F,toggleProps:{ref:e,className:"block-editor-list-view-block__menu",tabIndex:t,onFocus:n},disableOpenOnArrowDown:!0,expand:G,expandedState:W,setInsertedBlock:K,__experimentalSelectBlock:te}))))}));function lE(e,t,n,o){var r;const l=n?.includes(e.clientId);if(l)return 0;return(null!==(r=t[e.clientId])&&void 0!==r?r:o)?1+e.innerBlocks.reduce(iE(t,n,o),0):1}const iE=(e,t,n)=>(o,r)=>{var l;const i=t?.includes(r.clientId);if(i)return o;return(null!==(l=e[r.clientId])&&void 0!==l?l:n)&&r.innerBlocks.length>0?o+lE(r,e,t,n):o+1},aE=()=>{};var sE=(0,c.memo)((function e(t){const{blocks:n,selectBlock:o=aE,showBlockMovers:r,selectedClientIds:l,level:i=1,path:a="",isBranchDragged:s=!1,isBranchSelected:u=!1,listPosition:d=0,fixedListWindow:p,isExpanded:g,parentId:h,shouldShowInnerBlocks:b=!0,isSyncedBranch:v=!1,showAppender:_=!0}=t,k=Z_(h),y=v||!!k?.isSynced,E=(0,f.useSelect)((e=>!h||e(Go).canEditBlock(h)),[h]),{expandedState:w,draggedClientIds:S}=Ay();if(!E)return null;const C=_&&1===i,x=n.filter(Boolean),B=x.length,I=C?B+1:B;let T=d;return(0,c.createElement)(c.Fragment,null,x.map(((t,n)=>{var d;const{clientId:m,innerBlocks:h}=t;n>0&&(T+=lE(x[n-1],w,S,g));const{itemInView:v}=p,_=v(T),k=n+1,E=a.length>0?`${a}_${k}`:`${k}`,C=!!h?.length,M=C&&b?null!==(d=w[m])&&void 0!==d?d:g:void 0,P=!!S?.includes(m),N=((e,t)=>Array.isArray(t)&&t.length?-1!==t.indexOf(e):t===e)(m,l),L=u||N&&C,R=P||_||N||s;return(0,c.createElement)(f.AsyncModeProvider,{key:m,value:!N},R&&(0,c.createElement)(rE,{block:t,selectBlock:o,isSelected:N,isBranchSelected:L,isDragged:P||s,level:i,position:k,rowCount:I,siblingBlockCount:B,showBlockMovers:r,path:E,isExpanded:M,listPosition:T,selectedClientIds:l,isSyncedBranch:y}),!R&&(0,c.createElement)("tr",null,(0,c.createElement)("td",{className:"block-editor-list-view-placeholder"})),C&&M&&(0,c.createElement)(e,{parentId:m,blocks:h,selectBlock:o,showBlockMovers:r,level:i+1,path:E,listPosition:T+1,fixedListWindow:p,isBranchSelected:L,isBranchDragged:P||s,selectedClientIds:l,isExpanded:g,isSyncedBranch:y}))})),C&&(0,c.createElement)(m.__experimentalTreeGridRow,{level:i,setSize:I,positionInSet:I,isExpanded:!0},(0,c.createElement)(m.__experimentalTreeGridCell,null,(e=>(0,c.createElement)(Oy,{clientId:h,nestingLevel:i,blockCount:B,...e})))))}));function cE({listViewRef:e,blockDropTarget:t}){const{rootClientId:n,clientId:o,dropPosition:r}=t||{},[l,i]=(0,c.useMemo)((()=>{if(!e.current)return[];return[n?e.current.querySelector(`[data-block="${n}"]`):void 0,o?e.current.querySelector(`[data-block="${o}"]`):void 0]}),[n,o]),a=i||l,s=(0,v.isRTL)(),u=(0,c.useCallback)((e=>{if(!l)return 0;const t=l.querySelector(".block-editor-block-icon").getBoundingClientRect();return s?e.right-t.left:t.right-e.left}),[l,s]),d=(0,c.useCallback)(((e,t)=>{if(!a)return 0;let n=a.offsetWidth;const o=(0,ea.getScrollContainer)(a,"horizontal"),r=a.ownerDocument,l=o===r.body||o===r.documentElement;if(o&&!l){const r=o.getBoundingClientRect(),l=(0,v.isRTL)()?r.right-e.right:e.left-r.left,i=o.clientWidth;if(i<n+l&&(n=i-l),!s&&e.left+t<r.left)return n-=r.left-e.left,n;if(s&&e.right-t>r.right)return n-=e.right-r.right,n}return n-t}),[s,a]),p=(0,c.useMemo)((()=>{if(!a)return{};const e=a.getBoundingClientRect(),t=u(e);return{width:d(e,t)}}),[u,d,a]),f=(0,c.useMemo)((()=>{if(!a||!("top"===r||"bottom"===r||"inside"===r))return;const e=a.ownerDocument;return{ownerDocument:e,getBoundingClientRect(){const t=a.getBoundingClientRect(),n=u(t);let o=s?t.left:t.left+n,l=0,i=0;const c=(0,ea.getScrollContainer)(a,"horizontal"),p=c===e.body||c===e.documentElement;if(c&&!p){const e=c.getBoundingClientRect(),t=s?c.offsetWidth-c.clientWidth:0;o<e.left+t&&(o=e.left+t)}"top"===r?(l=t.top,i=t.top):(l=t.bottom,i=t.bottom);const m=d(t,n),f=i-l;return new window.DOMRect(o,l,m,f)}}}),[a,r,u,d,s]);return a?(0,c.createElement)(m.Popover,{animate:!1,anchor:f,focusOnMount:!1,className:"block-editor-list-view-drop-indicator",variant:"unstyled"},(0,c.createElement)("div",{style:p,className:"block-editor-list-view-drop-indicator__line"})):null}function uE(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=(0,f.useDispatch)(Go),{getBlockName:o,getBlockParents:r,getBlockSelectionStart:l,getSelectedBlockClientIds:i,hasMultiSelection:s,hasSelectedBlock:u}=(0,f.useSelect)(Go),{getBlockType:d}=(0,f.useSelect)(a.store),p=(0,c.useCallback)((async(a,c,p,m)=>{if(!a?.shiftKey)return void n(c,m);a.preventDefault();const f="keydown"===a.type&&(a.keyCode===yd.UP||a.keyCode===yd.DOWN||a.keyCode===yd.HOME||a.keyCode===yd.END);if(!f&&!u()&&!s())return void n(c,null);const g=i(),h=[...r(c),c];f&&!g.some((e=>h.includes(e)))&&await e();let b=l(),_=c;f&&(u()||s()||(b=c),p&&(_=p));const k=r(b),y=r(_),{start:E,end:w}=function(e,t,n,o){const r=[...n,e],l=[...o,t],i=Math.min(r.length,l.length)-1;return{start:r[i],end:l[i]}}(b,_,k,y);await t(E,w,null);const S=i();if((a.keyCode===yd.HOME||a.keyCode===yd.END)&&S.length>1)return;const C=g.filter((e=>!S.includes(e)));let x;if(1===C.length){const e=d(o(C[0]))?.title;e&&(x=(0,v.sprintf)((0,v.__)("%s deselected."),e))}else C.length>1&&(x=(0,v.sprintf)((0,v.__)("%s blocks deselected."),C.length));x&&(0,Cn.speak)(x,"assertive")}),[e,o,d,r,l,i,s,u,t,n]);return{updateBlockSelection:p}}const dE=28;function pE(e,t){const n=e[t+1];return n&&n.isDraggedBlock?pE(e,t+1):n}const mE=["top","bottom"];function fE(e,t,n=!1){let o,r,l,i,a;for(let n=0;n<e.length;n++){const s=e[n];if(s.isDraggedBlock)continue;const c=s.element.getBoundingClientRect(),[u,d]=Fg(t,c,mE),p=Hg(t,c);if(void 0===l||u<l||p){l=u;const t=e.indexOf(s),n=e[t-1];if("top"===d&&n&&n.rootClientId===s.rootClientId&&!n.isDraggedBlock?(r=n,o="bottom",i=n.element.getBoundingClientRect(),a=t-1):(r=s,o=d,i=c,a=t),p)break}}if(!r)return;const s=function(e,t){const n=[];let o=e;for(;o;)n.push({...o}),o=t.find((e=>e.clientId===o.rootClientId));return n}(r,e),c="bottom"===o;if(c&&r.canInsertDraggedBlocksAsChild&&(r.innerBlockCount>0&&r.isExpanded||function(e,t,n=1,o=!1){const r=o?t.right-n*dE:t.left+n*dE;return(o?e.x<r-dE:e.x>r+dE)&&e.y<t.bottom}(t,i,s.length,n))){const e=r.isExpanded?0:r.innerBlockCount||0;return{rootClientId:r.clientId,blockIndex:e,dropPosition:"inside"}}if(c&&r.rootClientId&&function(e,t,n=1,o=!1){const r=o?t.right-n*dE:t.left+n*dE;return o?e.x>r:e.x<r}(t,i,s.length,n)){const l=pE(e,a),c=r.nestingLevel,u=l?l.nestingLevel:1;if(c&&u){const d=function(e,t,n=1,o=!1){const r=o?t.right-n*dE:t.left+n*dE,l=o?r-e.x:e.x-r,i=Math.round(l/dE);return Math.abs(i)}(t,i,s.length,n),p=Math.max(Math.min(d,c-u),0);if(s[p]){let t=r.blockIndex;if(s[p].nestingLevel===l?.nestingLevel)t=l?.blockIndex;else for(let n=a;n>=0;n--){const o=e[n];if(o.rootClientId===s[p].rootClientId){t=o.blockIndex+1;break}}return{rootClientId:s[p].rootClientId,clientId:r.clientId,blockIndex:t,dropPosition:o}}}}if(!r.canInsertDraggedBlocksAsSibling)return;const u=c?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+u,dropPosition:o}}function gE(e,t){if(t&&1===e?.length&&0===e[0].type.indexOf("image/")){const e=/<\s*img\b/gi;if(1!==t.match(e)?.length)return!0;const n=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(n))return!0}return!1}function hE(){const{getBlockName:e}=(0,f.useSelect)(Go),{getBlockType:t}=(0,f.useSelect)(a.store),{createSuccessNotice:n}=(0,f.useDispatch)(Vm.store);return(0,c.useCallback)(((o,r)=>{let l="";if(1===r.length){const n=r[0],i=t(e(n))?.title;l="copy"===o?(0,v.sprintf)((0,v.__)('Copied "%s" to clipboard.'),i):(0,v.sprintf)((0,v.__)('Moved "%s" to clipboard.'),i)}else l="copy"===o?(0,v.sprintf)((0,v._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):(0,v.sprintf)((0,v._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(l,{type:"snackbar"})}),[])}function bE(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:o,__unstableIsFullySelected:r,__unstableIsSelectionCollapsed:l,__unstableIsSelectionMergeable:i,__unstableGetSelectedBlocksWithPartialSelection:s,canInsertBlockType:c}=(0,f.useSelect)(Go),{flashBlock:u,removeBlocks:d,replaceBlocks:m,__unstableDeleteSelection:g,__unstableExpandSelection:h,insertBlocks:b}=(0,f.useDispatch)(Go),v=hE();return(0,p.useRefEffect)((p=>{function f(f){if(f.defaultPrevented)return;const _=t();if(0===_.length)return;if(!n()){const{target:e}=f,{ownerDocument:t}=e;if("copy"===f.type||"cut"===f.type?(0,ea.documentHasUncollapsedSelection)(t):(0,ea.documentHasSelection)(t))return}if(!p.contains(f.target.ownerDocument.activeElement))return;f.preventDefault();const k=i(),y=l()||r(),E=!y&&!k;if("copy"===f.type||"cut"===f.type)if(1===_.length&&u(_[0]),E)h();else{let t;if(v(f.type,_),y)t=e(_);else{const[n,o]=s();t=[n,...e(_.slice(1,_.length-1)),o]}const n=f.clipboardData.getData("__unstableWrapperBlockName");n&&(t=(0,a.createBlock)(n,JSON.parse(f.clipboardData.getData("__unstableWrapperBlockAttributes")),t));const o=(0,a.serialize)(t);f.clipboardData.setData("text/plain",function(e){e=e.replace(/<br>/g,"\n");return(0,ea.__unstableStripHTML)(e).trim().replace(/\n\n+/g,"\n\n")}(o)),f.clipboardData.setData("text/html",o)}if("cut"===f.type)y&&!E?d(_):(f.target.ownerDocument.activeElement.contentEditable=!1,g());else if("paste"===f.type){const{__experimentalCanUserUseUnfilteredHTML:e}=o(),{plainText:t,html:n,files:r}=function({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(t){try{n=e.getData("Text")}catch(e){return}}const o=(0,ea.getFilesFromDataTransfer)(e);return o.length&&!gE(o,n)?{files:o}:{html:n,plainText:t,files:[]}}(f);let l=[];if(r.length){const e=(0,a.getBlockTransforms)("from");l=r.reduce(((t,n)=>{const o=(0,a.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat()}else l=(0,a.pasteHandler)({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});if(1===_.length){const[e]=_;if(l.every((t=>c(t.name,e))))return void b(l,void 0,e)}m(_,l,l.length-1,-1)}}return p.ownerDocument.addEventListener("copy",f),p.ownerDocument.addEventListener("cut",f),p.ownerDocument.addEventListener("paste",f),()=>{p.ownerDocument.removeEventListener("copy",f),p.ownerDocument.removeEventListener("cut",f),p.ownerDocument.removeEventListener("paste",f)}}),[])}var vE=function({children:e}){return(0,c.createElement)("div",{ref:bE()},e)};const _E="align",kE="__experimentalBorder",yE="color",EE="customClassName",wE="typography.__experimentalFontFamily",SE="typography.fontSize",CE="layout",xE=[...["typography.lineHeight",SE,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",wE,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"],kE,yE,"spacing"];const BE={align:e=>(0,a.hasBlockSupport)(e,_E),borderColor:e=>function(e,t="any"){if("web"!==c.Platform.OS)return!1;const n=(0,a.getBlockSupport)(e,kE);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}(e,"color"),backgroundColor:e=>{const t=(0,a.getBlockSupport)(e,yE);return t&&!1!==t.background},textColor:e=>{const t=(0,a.getBlockSupport)(e,yE);return t&&!1!==t.text},gradient:e=>{const t=(0,a.getBlockSupport)(e,yE);return null!==t&&"object"==typeof t&&!!t.gradients},className:e=>(0,a.hasBlockSupport)(e,EE,!0),fontFamily:e=>(0,a.hasBlockSupport)(e,wE),fontSize:e=>(0,a.hasBlockSupport)(e,SE),layout:e=>(0,a.hasBlockSupport)(e,CE),style:e=>xE.some((t=>(0,a.hasBlockSupport)(e,t)))};function IE(e,t){return Object.entries(BE).reduce(((n,[o,r])=>(r(e.name)&&r(t.name)&&(n[o]=e.attributes[o]),n)),{})}function TE(e,t,n){for(let o=0;o<Math.min(t.length,e.length);o+=1)n(e[o].clientId,IE(t[o],e[o])),TE(e[o].innerBlocks,t[o].innerBlocks,n)}function ME(){const e=(0,f.useRegistry)(),{updateBlockAttributes:t}=(0,f.useDispatch)(Go),{createSuccessNotice:n,createWarningNotice:o,createErrorNotice:r}=(0,f.useDispatch)(Vm.store);return(0,c.useCallback)((async l=>{let i="";try{if(!window.navigator.clipboard)return void r((0,v.__)("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});i=await window.navigator.clipboard.readText()}catch(e){return void r((0,v.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"})}if(!i||!function(e){try{const t=(0,a.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return 1!==t.length||"core/freeform"!==t[0].name}catch(e){return!1}}(i))return void o((0,v.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});const s=(0,a.parse)(i);if(1===s.length?e.batch((()=>{TE(l,l.map((()=>s[0])),t)})):e.batch((()=>{TE(l,s,t)})),1===l.length){const e=(0,a.getBlockType)(l[0].name)?.title;n((0,v.sprintf)((0,v.__)("Pasted styles to %s."),e),{type:"snackbar"})}else n((0,v.sprintf)((0,v.__)("Pasted styles to %d blocks."),l.length),{type:"snackbar"})}),[e.batch,t,n,o,r])}function PE({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:l,canMoveBlocks:i,canRemoveBlocks:s}=(0,f.useSelect)(Go),{getDefaultBlockName:c,getGroupingBlockName:u}=(0,f.useSelect)(a.store),d=l(e),p=r(e[0]),m=d.every((e=>!!e&&((0,a.hasBlockSupport)(e.name,"color")||(0,a.hasBlockSupport)(e.name,"typography")))),g=d.every((e=>!!e&&(0,a.hasBlockSupport)(e.name,"multiple",!0)&&o(e.name,p))),h=o(c(),p),b=i(e,p),v=s(e,p),{removeBlocks:_,replaceBlocks:k,duplicateBlocks:y,insertAfterBlock:E,insertBeforeBlock:w,flashBlock:S,setBlockMovingClientId:C,setNavigationMode:x,selectBlock:B}=(0,f.useDispatch)(Go),I=hE(),T=ME();return t({canCopyStyles:m,canDuplicate:g,canInsertDefaultBlock:h,canMove:b,canRemove:v,rootClientId:p,blocks:d,onDuplicate(){return y(e,n)},onRemove(){return _(e,n)},onInsertBefore(){const t=Array.isArray(e)?e[0]:t;w(t)},onInsertAfter(){const t=Array.isArray(e)?e[e.length-1]:t;E(t)},onMoveTo(){x(!0),B(e[0]),C(e[0])},onGroup(){if(!d.length)return;const t=u(),n=(0,a.switchToBlockType)(d,t);n&&k(e,n)},onUngroup(){if(!d.length)return;const t=d[0].innerBlocks;t.length&&k(e,t)},onCopy(){const e=d.map((({clientId:e})=>e));1===d.length&&S(e[0]),I("copy",e)},async onPasteStyles(){await T(d)}})}var NE=(0,p.compose)((0,f.withSelect)(((e,{clientId:t})=>{const n=e(Go).getBlock(t);return{block:n,shouldRender:n&&"core/html"===n.name}})),(0,f.withDispatch)(((e,{block:t})=>({onClick:()=>e(Go).replaceBlocks(t.clientId,(0,a.rawHandler)({HTML:(0,a.getBlockContent)(t)}))}))))((function({shouldRender:e,onClick:t,small:n}){if(!e)return null;const o=(0,v.__)("Convert to Blocks");return(0,c.createElement)(m.MenuItem,{onClick:t},!n&&o)}));const{Fill:LE,Slot:RE}=(0,m.createSlotFill)("__unstableBlockSettingsMenuFirstItem");LE.Slot=RE;var AE=LE;const{clearTimeout:DE,setTimeout:OE}=window,zE=()=>{},VE=200;function FE({ref:e,isFocused:t,debounceTimeout:n=VE,onChange:o=zE}){const[r,l]=(0,c.useState)(!1),i=(0,c.useRef)(),a=t=>{e?.current&&l(t),o(t)},s=()=>{const n=e?.current&&e.current.matches(":hover");return!t&&!n},u=()=>{const e=i.current;e&&DE&&DE(e)};return(0,c.useEffect)((()=>()=>{a(!1),u()}),[]),{showMovers:r,debouncedShowMovers:e=>{e&&e.stopPropagation(),u(),r||a(!0)},debouncedHideMovers:e=>{e&&e.stopPropagation(),u(),i.current=OE((()=>{s()&&a(!1)}),n)}}}function HE({ref:e,debounceTimeout:t=VE,onChange:n=zE}){const[o,r]=(0,c.useState)(!1),{showMovers:l,debouncedShowMovers:i,debouncedHideMovers:a}=FE({ref:e,debounceTimeout:t,isFocused:o,onChange:n}),s=(0,c.useRef)(!1),u=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,c.useEffect)((()=>{const t=e.current,n=()=>{u()&&(r(!0),i())},o=()=>{u()||(r(!1),a())};return t&&!s.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",o,!0),s.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",o))}}),[e,s,r,i,a]),{showMovers:l,gestures:{onMouseMove:i,onMouseLeave:a}}}const GE={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function UE({blocks:e,onCopy:t,label:n}){const o=(0,p.useCopyToClipboard)((()=>(0,a.serialize)(e)),t),r=e.length>1?(0,v.__)("Copy blocks"):(0,v.__)("Copy"),l=n||r;return(0,c.createElement)(m.MenuItem,{ref:o},l)}function $E({clientIds:e,__experimentalSelectBlock:t,children:n,__unstableDisplayLocation:o,...r}){const l=Array.isArray(e)?e:[e],i=l.length,s=l[0],{firstParentClientId:u,isDistractionFree:d,onlyBlock:g,parentBlockType:h,previousBlockClientId:b,selectedBlockClientIds:_}=(0,f.useSelect)((e=>{const{getBlockCount:t,getBlockName:n,getBlockRootClientId:o,getPreviousBlockClientId:r,getSelectedBlockClientIds:l,getSettings:i,getBlockAttributes:c}=e(Go),{getActiveBlockVariation:u}=e(a.store),d=o(s),p=d&&n(d);return{firstParentClientId:d,isDistractionFree:i().isDistractionFree,onlyBlock:1===t(d),parentBlockType:d&&(u(p,c(d))||(0,a.getBlockType)(p)),previousBlockClientId:r(s),selectedBlockClientIds:l()}}),[s]),{getBlockOrder:k,getSelectedBlockClientIds:y}=(0,f.useSelect)(Go),E=(0,f.useSelect)((e=>{const{getShortcutRepresentation:t}=e(op.store);return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),w=(0,op.__unstableUseShortcutEventMatch)(),{selectBlock:S,toggleBlockHighlight:C}=(0,f.useDispatch)(Go),x=_.length>0,B=(0,c.useCallback)((async e=>{if(t){const n=await e;n&&n[0]&&t(n[0],!1)}}),[t]),I=(0,c.useCallback)((()=>{if(t){let e=b||u;e||(e=k()[0]);const n=x&&0===y().length;t(e,n)}}),[t,b,u,k,x,y]),T=1===i?(0,v.__)("Delete"):(0,v.__)("Delete blocks"),M=(0,c.useRef)(),{gestures:P}=HE({ref:M,onChange(e){e&&d||C(u,e)}}),N=_?.includes(u);return(0,c.createElement)(PE,{clientIds:e,__experimentalUpdateSelection:!t},(({canCopyStyles:t,canDuplicate:l,canInsertDefaultBlock:a,canMove:d,canRemove:f,onDuplicate:b,onInsertAfter:_,onInsertBefore:k,onRemove:y,onCopy:C,onPasteStyles:x,onMoveTo:L,blocks:R})=>(0,c.createElement)(m.DropdownMenu,{icon:Nf,label:(0,v.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:GE,noIcons:!0,menuProps:{onKeyDown(e){e.defaultPrevented||(w("core/block-editor/remove",e)&&f?(e.preventDefault(),I(y())):w("core/block-editor/duplicate",e)&&l?(e.preventDefault(),B(b())):w("core/block-editor/insert-after",e)&&a?(e.preventDefault(),_()):w("core/block-editor/insert-before",e)&&a&&(e.preventDefault(),k()))}},...r},(({onClose:r})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(AE.Slot,{fillProps:{onClose:r}}),!N&&!!u&&(0,c.createElement)(m.MenuItem,{...P,ref:M,icon:(0,c.createElement)($d,{icon:h.icon}),onClick:()=>S(u)},(0,v.sprintf)((0,v.__)("Select parent block (%s)"),h.title)),1===i&&(0,c.createElement)(NE,{clientId:s}),(0,c.createElement)(UE,{blocks:R,onCopy:C}),l&&(0,c.createElement)(m.MenuItem,{onClick:(0,p.pipe)(r,b,B),shortcut:E.duplicate},(0,v.__)("Duplicate")),a&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuItem,{onClick:(0,p.pipe)(r,k),shortcut:E.insertBefore},(0,v.__)("Add before")),(0,c.createElement)(m.MenuItem,{onClick:(0,p.pipe)(r,_),shortcut:E.insertAfter},(0,v.__)("Add after")))),t&&(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(UE,{blocks:R,onCopy:C,label:(0,v.__)("Copy styles")}),(0,c.createElement)(m.MenuItem,{onClick:x},(0,v.__)("Paste styles"))),(0,c.createElement)(Nk.Slot,{fillProps:{onClose:r,canMove:d,onMoveTo:L,onlyBlock:g,count:i,firstBlockClientId:s},clientIds:e,__unstableDisplayLocation:o}),"function"==typeof n?n({onClose:r}):c.Children.map((e=>(0,c.cloneElement)(e,{onClose:r}))),f&&(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(m.MenuItem,{onClick:(0,p.pipe)(r,y,I),shortcut:E.remove},T)))))))}var jE=$E;const WE=(e,t)=>Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce(((e,n)=>({...e,[n]:"expand"===t.type})),{})}:e;const KE=(0,c.forwardRef)((function e({id:t,blocks:n,dropZoneElement:o,showBlockMovers:r=!1,isExpanded:l=!1,showAppender:i=!1,blockSettingsMenu:a=$E,rootClientId:s,description:u,onSelect:d,additionalBlockContent:g},h){n&&$()("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});const b=(0,p.useInstanceId)(e),{clientIdsTree:_,draggedClientIds:k,selectedClientIds:y}=function({blocks:e,rootClientId:t}){return(0,f.useSelect)((n=>{const{getDraggedBlockClientIds:o,getSelectedBlockClientIds:r,getEnabledClientIdsTree:l}=Fo(n(Go));return{selectedClientIds:r(),draggedClientIds:o(),clientIdsTree:null!=e?e:l(t)}}),[e,t])}({blocks:n,rootClientId:s}),{getBlock:E}=(0,f.useSelect)(Go),{visibleBlockCount:w,shouldShowInnerBlocks:S}=(0,f.useSelect)((e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n,__unstableGetEditorMode:o}=e(Go),r=k?.length>0?n(k).length+1:0;return{visibleBlockCount:t()-r,shouldShowInnerBlocks:"zoom-out"!==o()}}),[k]),{updateBlockSelection:C}=uE(),[x,B]=(0,c.useReducer)(WE,{}),{ref:I,target:T}=function({dropZoneElement:e}){const{getBlockRootClientId:t,getBlockIndex:n,getBlockCount:o,getDraggedBlockClientIds:r,canInsertBlocks:l}=(0,f.useSelect)(Go),[i,a]=(0,c.useState)(),{rootClientId:s,blockIndex:u}=i||{},d=Vg(s,u),m=(0,v.isRTL)(),g=r(),h=(0,p.useThrottle)((0,c.useCallback)(((e,r)=>{const i={x:e.clientX,y:e.clientY},s=!!g?.length,c=fE(Array.from(r.querySelectorAll("[data-block]")).map((e=>{const r=e.dataset.block,i="true"===e.dataset.expanded,a=e.classList.contains("is-dragging"),c=parseInt(e.getAttribute("aria-level"),10),u=t(r);return{clientId:r,isExpanded:i,rootClientId:u,blockIndex:n(r),element:e,nestingLevel:c||void 0,isDraggedBlock:!!s&&a,innerBlockCount:o(r),canInsertDraggedBlocksAsSibling:!s||l(g,u),canInsertDraggedBlocksAsChild:!s||l(g,r)}})),i,m);c&&a(c)}),[l,g,o,n,t,m]),200);return{ref:(0,p.__experimentalUseDropZone)({dropZoneElement:e,onDrop(e){i&&d(e)},onDragLeave(){h.cancel(),a(null)},onDragOver(e){h(e,e.currentTarget)},onDragEnd(){h.cancel(),a(null)}}),target:i}}({dropZoneElement:o}),M=(0,c.useRef)(),P=(0,p.useMergeRefs)([M,I,h]),N=(0,c.useRef)(!1),[L,R]=(0,c.useState)(null),{setSelectedTreeId:A}=function({firstSelectedBlockClientId:e,setExpandedState:t}){const[n,o]=(0,c.useState)(null),{selectedBlockParentClientIds:r}=(0,f.useSelect)((t=>{const{getBlockParents:n}=t(Go);return{selectedBlockParentClientIds:n(e,!1)}}),[e]),l=Array.isArray(r)&&r.length?r:null;return(0,c.useEffect)((()=>{n!==e&&l&&t({type:"expand",clientIds:r})}),[e]),{setSelectedTreeId:o}}({firstSelectedBlockClientId:y[0],setExpandedState:B}),D=(0,c.useCallback)(((e,t,n)=>{C(e,t,null,n),A(t),d&&d(E(t))}),[A,C,d,E]);(0,c.useEffect)((()=>{N.current=!0}),[]);const[O]=(0,p.__experimentalUseFixedWindowList)(M,36,w,{useWindowing:!0,windowOverscan:40}),z=(0,c.useCallback)((e=>{e&&B({type:"expand",clientIds:[e]})}),[B]),V=(0,c.useCallback)((e=>{e&&B({type:"collapse",clientIds:[e]})}),[B]),F=(0,c.useCallback)((e=>{z(e?.dataset?.block)}),[z]),H=(0,c.useCallback)((e=>{V(e?.dataset?.block)}),[V]),G=(0,c.useCallback)(((e,t,n)=>{e.shiftKey&&C(e,t?.dataset?.block,n?.dataset?.block)}),[C]),U=(0,c.useMemo)((()=>({isTreeGridMounted:N.current,draggedClientIds:k,expandedState:x,expand:z,collapse:V,BlockSettingsMenu:a,listViewInstanceId:b,AdditionalBlockContent:g,insertedBlock:L,setInsertedBlock:R,treeGridElementRef:M})),[k,x,z,V,a,b,g,L,R]);return _.length||i?(0,c.createElement)(f.AsyncModeProvider,{value:!0},(0,c.createElement)(cE,{listViewRef:M,blockDropTarget:T}),(0,c.createElement)(m.__experimentalTreeGrid,{id:t,className:"block-editor-list-view-tree","aria-label":(0,v.__)("Block navigation structure"),ref:P,onCollapseRow:H,onExpandRow:F,onFocusRow:G,applicationAriaLabel:(0,v.__)("Block navigation structure"),"aria-description":u},(0,c.createElement)(Ry.Provider,{value:U},(0,c.createElement)(sE,{blocks:_,parentId:s,selectBlock:D,showBlockMovers:r,fixedListWindow:O,selectedClientIds:y,isExpanded:l,shouldShowInnerBlocks:S,showAppender:i})))):null}));var qE=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(KE,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0})));function ZE({isEnabled:e,onToggle:t,isOpen:n,innerRef:o,...r}){return(0,c.createElement)(m.Button,{...r,ref:o,icon:Ly,"aria-expanded":n,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,v.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e})}var YE=(0,c.forwardRef)((function({isDisabled:e,...t},n){$()("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});const o=(0,f.useSelect)((e=>!!e(Go).getBlockCount()),[])&&!e;return(0,c.createElement)(m.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:r})=>(0,c.createElement)(ZE,{...t,innerRef:n,isOpen:e,onToggle:r,isEnabled:o}),renderContent:()=>(0,c.createElement)("div",{className:"block-editor-block-navigation__container"},(0,c.createElement)("p",{className:"block-editor-block-navigation__label"},(0,v.__)("List view")),(0,c.createElement)(qE,null))})}));function XE(e,t,n){const o=new(uv())(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}function QE(e){return e?.find((e=>e.isDefault))}function JE({genericPreviewBlock:e,style:t,className:n,activeStyle:o}){const r=(0,a.getBlockType)(e.name)?.example,l=XE(n,o,t),i=(0,c.useMemo)((()=>({...e,title:t.label||t.name,description:t.description,initialAttributes:{...e.attributes,className:l+" block-editor-block-styles__block-preview-container"},example:r})),[e,l]);return(0,c.createElement)(Sm,{item:i})}function ew({clientId:e,onSwitch:t}){const{styles:n,block:o,blockType:r,className:l}=(0,f.useSelect)((t=>{const{getBlock:n}=t(Go),o=n(e);if(!o)return{};const r=(0,a.getBlockType)(o.name),{getBlockStyles:l}=t(a.store);return{block:o,blockType:r,styles:l(o.name),className:o.attributes.className||""}}),[e]),{updateBlockAttributes:i}=(0,f.useDispatch)(Go),s=function(e){return e&&0!==e.length?QE(e)?e:[{name:"default",label:(0,v._x)("Default","block style"),isDefault:!0},...e]:[]}(n),u=function(e,t){for(const n of new(uv())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=e?.find((({name:e})=>e===t));if(o)return o}return QE(e)}(s,l),d=function(e,t){return(0,c.useMemo)((()=>{const n=t?.example,o=t?.name;return n&&o?(0,a.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?(0,a.cloneBlock)(e):void 0}),[t?.example?e?.name:e,t])}(o,r);return{onSelect:n=>{const o=XE(l,u,n);i(e,{className:o}),t()},stylesToRender:s,activeStyle:u,genericPreviewBlock:d,className:l}}const tw=()=>{};function nw({clientId:e,onSwitch:t=tw,onHoverClassName:n=tw}){const{onSelect:o,stylesToRender:r,activeStyle:l,genericPreviewBlock:i,className:a}=ew({clientId:e,onSwitch:t}),[s,u]=(0,c.useState)(null),f=(0,p.useViewportMatch)("medium","<");if(!r||0===r.length)return null;const g=(0,p.debounce)(u,250),h=e=>{var t;s!==e?(g(e),n(null!==(t=e?.name)&&void 0!==t?t:null)):g.cancel()};return(0,c.createElement)("div",{className:"block-editor-block-styles"},(0,c.createElement)("div",{className:"block-editor-block-styles__variants"},r.map((e=>{const t=e.isDefault?(0,v.__)("Default"):e.label||e.name;return(0,c.createElement)(m.Button,{className:d()("block-editor-block-styles__item",{"is-active":l.name===e.name}),key:e.name,variant:"secondary",label:t,onMouseEnter:()=>h(e),onFocus:()=>h(e),onMouseLeave:()=>h(null),onBlur:()=>h(null),onClick:()=>(e=>{o(e),n(null),u(null),g.cancel()})(e),"aria-current":l.name===e.name},(0,c.createElement)(m.__experimentalTruncate,{numberOfLines:1,className:"block-editor-block-styles__item-text"},t))}))),s&&!f&&(0,c.createElement)(m.Popover,{placement:"left-start",offset:20,focusOnMount:!1},(0,c.createElement)("div",{className:"block-editor-block-styles__preview-panel",onMouseLeave:()=>h(null)},(0,c.createElement)(JE,{activeStyle:l,className:a,genericPreviewBlock:i,style:s}))))}var ow=nw;nw.Slot=()=>($()("BlockStyles.Slot",{version:"6.4",since:"6.2"}),null);const rw={0:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})),1:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})),2:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})),3:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})),4:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})),5:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})),6:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"}))};function lw({level:e}){var t;return null!==(t=rw[e])&&void 0!==t?t:null}const iw=[1,2,3,4,5,6],aw={className:"block-library-heading-level-dropdown"};function sw({options:e=iw,value:t,onChange:n}){return(0,c.createElement)(m.ToolbarDropdownMenu,{popoverProps:aw,icon:(0,c.createElement)(lw,{level:t}),label:(0,v.__)("Change level"),controls:e.map((e=>{{const o=e===t;return{icon:(0,c.createElement)(lw,{level:e,isPressed:o}),label:0===e?(0,v.__)("Paragraph"):(0,v.sprintf)((0,v.__)("Heading %d"),e),isActive:o,onClick(){n(e)},role:"menuitemradio"}}}))})}var cw=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var uw=function({icon:e=cw,label:t=(0,v.__)("Choose variation"),instructions:n=(0,v.__)("Select a variation to start with."),variations:o,onSelect:r,allowSkip:l}){const i=d()("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return(0,c.createElement)(m.Placeholder,{icon:e,label:t,instructions:n,className:i},(0,c.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,v.__)("Block variations")},o.map((e=>(0,c.createElement)("li",{key:e.name},(0,c.createElement)(m.Button,{variant:"secondary",icon:e.icon&&e.icon.src?e.icon.src:e.icon,iconSize:48,onClick:()=>r(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),(0,c.createElement)("span",{className:"block-editor-block-variation-picker__variation-label"},e.title))))),l&&(0,c.createElement)("div",{className:"block-editor-block-variation-picker__skip"},(0,c.createElement)(m.Button,{variant:"link",onClick:()=>r()},(0,v.__)("Skip"))))};var dw=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"}));const pw="carousel",mw="grid",fw=({onBlockPatternSelect:e})=>(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},(0,c.createElement)(m.Button,{variant:"primary",onClick:e},(0,v.__)("Choose"))),gw=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:o})=>(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},(0,c.createElement)(m.Button,{icon:Gd,label:(0,v.__)("Previous pattern"),onClick:e,disabled:0===n}),(0,c.createElement)(m.Button,{icon:Hd,label:(0,v.__)("Next pattern"),onClick:t,disabled:n===o-1}));var hw=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:l,onBlockPatternSelect:i})=>{const a=e===pw,s=(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},(0,c.createElement)(m.Button,{icon:ki,label:(0,v.__)("Carousel view"),onClick:()=>t(pw),isPressed:a}),(0,c.createElement)(m.Button,{icon:dw,label:(0,v.__)("Grid view"),onClick:()=>t(mw),isPressed:e===mw}));return(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},a&&(0,c.createElement)(gw,{handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:l}),s,a&&(0,c.createElement)(fw,{onBlockPatternSelect:i}))};var bw=function(e,t,n){return(0,f.useSelect)((o=>{const{getBlockRootClientId:r,getPatternsByBlockTypes:l,__experimentalGetAllowedPatterns:i}=o(Go),a=r(e);return n?i(a).filter(n):l(t,a)}),[e,t,n])};const vw=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:o,showTitles:r})=>{const l=(0,m.__unstableUseCompositeState)(),i="block-editor-block-pattern-setup__container";if(e===pw){const e=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__carousel"},(0,c.createElement)("div",{className:i},(0,c.createElement)("ul",{className:"carousel-container"},n.map(((t,n)=>(0,c.createElement)(kw,{className:e.get(n)||"",key:t.name,pattern:t}))))))}return(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__grid"},(0,c.createElement)(m.__unstableComposite,{...l,role:"listbox",className:i,"aria-label":(0,v.__)("Patterns list")},n.map((e=>(0,c.createElement)(_w,{key:e.name,pattern:e,onSelect:o,composite:l,showTitles:r})))))};function _w({pattern:e,onSelect:t,composite:n,showTitles:o}){const r="block-editor-block-pattern-setup-list",{blocks:l,description:i,viewportWidth:a=700}=e,s=(0,p.useInstanceId)(_w,`${r}__item-description`);return(0,c.createElement)("div",{className:`${r}__list-item`,"aria-label":e.title,"aria-describedby":e.description?s:void 0},(0,c.createElement)(m.__unstableCompositeItem,{role:"option",as:"div",...n,className:`${r}__item`,onClick:()=>t(l)},(0,c.createElement)(Em,{blocks:l,viewportWidth:a}),o&&(0,c.createElement)("div",{className:`${r}__item-title`},e.title),!!i&&(0,c.createElement)(m.VisuallyHidden,{id:s},i)))}function kw({className:e,pattern:t,minHeight:n}){const{blocks:o,title:r,description:l}=t,i=(0,p.useInstanceId)(kw,"block-editor-block-pattern-setup-list__item-description");return(0,c.createElement)("li",{className:`pattern-slide ${e}`,"aria-label":r,"aria-describedby":l?i:void 0},(0,c.createElement)(Em,{blocks:o,minHeight:n}),!!l&&(0,c.createElement)(m.VisuallyHidden,{id:i},l))}var yw=({clientId:e,blockName:t,filterPatternsFn:n,onBlockPatternSelect:o,initialViewMode:r=pw,showTitles:l=!1})=>{const[i,s]=(0,c.useState)(r),[u,d]=(0,c.useState)(0),{replaceBlock:p}=(0,f.useDispatch)(Go),m=bw(e,t,n);if(!m?.length)return null;const g=o||(t=>{const n=t.map((e=>(0,a.cloneBlock)(e)));p(e,n)});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:`block-editor-block-pattern-setup view-mode-${i}`},(0,c.createElement)(vw,{viewMode:i,activeSlide:u,patterns:m,onBlockPatternSelect:g,showTitles:l}),(0,c.createElement)(hw,{viewMode:i,setViewMode:s,activeSlide:u,totalSlides:m.length,handleNext:()=>{d((e=>e+1))},handlePrevious:()=>{d((e=>e-1))},onBlockPatternSelect:()=>{g(m[u].blocks)}})))};function Ew({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return(0,c.createElement)("fieldset",{className:e},(0,c.createElement)(m.VisuallyHidden,{as:"legend"},(0,v.__)("Transform to variation")),o.map((e=>(0,c.createElement)(m.Button,{key:e.name,icon:(0,c.createElement)($d,{icon:e.icon,showColors:!0}),isPressed:n===e.name,label:n===e.name?e.title:(0,v.sprintf)((0,v.__)("Transform to %s"),e.title),onClick:()=>t(e.name),"aria-label":e.title,showTooltip:!0}))))}function ww({className:e,onSelectVariation:t,selectedValue:n,variations:o}){const r=o.map((({name:e,title:t,description:n})=>({value:e,label:t,info:n})));return(0,c.createElement)(m.DropdownMenu,{className:e,label:(0,v.__)("Transform to variation"),text:(0,v.__)("Transform to variation"),popoverProps:{position:"bottom center",className:`${e}__popover`},icon:Gy,toggleProps:{iconPosition:"right"}},(()=>(0,c.createElement)("div",{className:`${e}__container`},(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(m.MenuItemsChoice,{choices:r,value:n,onSelect:t})))))}var Sw=function({blockClientId:e}){const{updateBlockAttributes:t}=(0,f.useDispatch)(Go),{activeBlockVariation:n,variations:o}=(0,f.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockVariations:o}=t(a.store),{getBlockName:r,getBlockAttributes:l}=t(Go),i=e&&r(e);return{activeBlockVariation:n(i,l(e)),variations:i&&o(i,"transform")}}),[e]),r=n?.name,l=(0,c.useMemo)((()=>{const e=new Set;return!!o&&(o.forEach((t=>{t.icon&&e.add(t.icon?.src||t.icon)})),e.size===o.length)}),[o]);if(!o?.length)return null;const i=l?Ew:ww;return(0,c.createElement)(i,{className:"block-editor-block-variation-transforms",onSelectVariation:n=>{t(e,{...o.find((({name:e})=>e===n)).attributes})},selectedValue:r,variations:o})},Cw=(0,p.createHigherOrderComponent)((e=>t=>{const n=Xr("color.palette"),o=!Xr("color.custom"),r=void 0===t.colors?n:t.colors,l=void 0===t.disableCustomColors?o:t.disableCustomColors,i=r&&r.length>0||!l;return(0,c.createElement)(e,{...t,colors:r,disableCustomColors:l,hasColorsToChoose:i})}),"withColorContext"),xw=Cw(m.ColorPalette);function Bw({onChange:e,value:t,...n}){return(0,c.createElement)(Qh,{...n,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}var Iw=window.wp.date;const Tw=new Date(2022,0,25);function Mw({format:e,defaultFormat:t,onChange:n}){return(0,c.createElement)("fieldset",{className:"block-editor-date-format-picker"},(0,c.createElement)(m.VisuallyHidden,{as:"legend"},(0,v.__)("Date format")),(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Default format"),help:`${(0,v.__)("Example:")} ${(0,Iw.dateI18n)(t,Tw)}`,checked:!e,onChange:e=>n(e?null:t)}),e&&(0,c.createElement)(Pw,{format:e,onChange:n}))}function Pw({format:e,onChange:t}){var n;const o=[...new Set(["Y-m-d",(0,v._x)("n/j/Y","short date format"),(0,v._x)("n/j/Y g:i A","short date format with time"),(0,v._x)("M j, Y","medium date format"),(0,v._x)("M j, Y g:i A","medium date format with time"),(0,v._x)("F j, Y","long date format"),(0,v._x)("M j","short date format without the year")])],r=o.map(((e,t)=>({key:`suggested-${t}`,name:(0,Iw.dateI18n)(e,Tw),format:e}))),l={key:"custom",name:(0,v.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",__experimentalHint:(0,v.__)("Enter your own date format")},[i,a]=(0,c.useState)((()=>!!e&&!o.includes(e)));return(0,c.createElement)(m.__experimentalVStack,null,(0,c.createElement)(m.CustomSelectControl,{__nextUnconstrainedWidth:!0,label:(0,v.__)("Choose a format"),options:[...r,l],value:i?l:null!==(n=r.find((t=>t.format===e)))&&void 0!==n?n:l,onChange:({selectedItem:e})=>{e===l?a(!0):(a(!1),t(e.format))}}),i&&(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Custom format"),hideLabelFromVision:!0,help:(0,c.createInterpolateElement)((0,v.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,c.createElement)(m.ExternalLink,{href:(0,v.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:e=>t(e)}))}const Nw=({setting:e,children:t,panelId:n,...o})=>(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()},isShownByDefault:void 0===e.isShownByDefault||e.isShownByDefault,...o,className:"block-editor-tools-panel-color-gradient-settings__item",panelId:n,resetAllFilter:e.resetAllFilter},t),Lw=({colorValue:e,label:t})=>(0,c.createElement)(m.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(m.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,c.createElement)(m.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t},t)),Rw=e=>({onToggle:t,isOpen:n})=>{const{colorValue:o,label:r}=e,l={onClick:t,className:d()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n};return(0,c.createElement)(m.Button,{...l},(0,c.createElement)(Lw,{colorValue:o,label:r}))};function Aw({colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradients:r,settings:l,__experimentalIsRenderedInSidebar:i,...a}){let s;return i&&(s={placement:"left-start",offset:36,shift:!0}),(0,c.createElement)(c.Fragment,null,l.map(((l,u)=>{var d;const p={clearable:!1,colorValue:l.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradientValue:l.gradientValue,gradients:r,label:l.label,onColorChange:l.onColorChange,onGradientChange:l.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:i,...l},f={colorValue:null!==(d=l.gradientValue)&&void 0!==d?d:l.colorValue,label:l.label};return l&&(0,c.createElement)(Nw,{key:u,setting:l,...a},(0,c.createElement)(m.Dropdown,{popoverProps:s,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:Rw(f),renderContent:()=>(0,c.createElement)(m.__experimentalDropdownContentWrapper,{paddingSize:"none"},(0,c.createElement)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content"},(0,c.createElement)(Qh,{...p})))}))})))}const Dw=["colors","disableCustomColors","gradients","disableCustomGradients"],Ow=({className:e,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,children:l,settings:i,title:a,showTitle:s=!0,__experimentalIsRenderedInSidebar:u,enableAlpha:g})=>{const h=(0,p.useInstanceId)(Ow),{batch:b}=(0,f.useRegistry)();return t&&0!==t.length||n&&0!==n.length||!o||!r||!i?.every((e=>(!e.colors||0===e.colors.length)&&(!e.gradients||0===e.gradients.length)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))?(0,c.createElement)(m.__experimentalToolsPanel,{className:d()("block-editor-panel-color-gradient-settings",e),label:s?a:void 0,resetAll:()=>{b((()=>{i.forEach((({colorValue:e,gradientValue:t,onColorChange:n,onGradientChange:o})=>{e?n():t&&o()}))}))},panelId:h,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},(0,c.createElement)(Aw,{settings:i,panelId:h,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,__experimentalIsRenderedInSidebar:u,enableAlpha:g}),!!l&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalSpacer,{marginY:4})," ",l)):null},zw=e=>{const t=lh();return(0,c.createElement)(Ow,{...t,...e})};var Vw=e=>Dw.every((t=>e.hasOwnProperty(t)))?(0,c.createElement)(Ow,{...e}):(0,c.createElement)(zw,{...e});const Fw=(0,c.createContext)({}),Hw=()=>(0,c.useContext)(Fw);function Gw({id:e,url:t,naturalWidth:n,naturalHeight:o,onFinishEditing:r,onSaveImage:l,children:i}){const a=function({url:e,naturalWidth:t,naturalHeight:n}){const[o,r]=(0,c.useState)(),[l,i]=(0,c.useState)(),[a,u]=(0,c.useState)({x:0,y:0}),[d,p]=(0,c.useState)(100),[m,f]=(0,c.useState)(0),g=t/n,[h,b]=(0,c.useState)(g),v=(0,c.useCallback)((()=>{const t=(m+90)%360;let n=g;if(m%180==90&&(n=1/g),0===t)return r(),f(t),b(g),void u({x:-a.y*n,y:a.x*n});const o=new window.Image;o.src=e,o.onload=function(e){const o=document.createElement("canvas");let l=0,i=0;t%180?(o.width=e.target.height,o.height=e.target.width):(o.width=e.target.width,o.height=e.target.height),90!==t&&180!==t||(l=o.width),270!==t&&180!==t||(i=o.height);const s=o.getContext("2d");s.translate(l,i),s.rotate(t*Math.PI/180),s.drawImage(e.target,0,0),o.toBlob((e=>{r(URL.createObjectURL(e)),f(t),b(o.width/o.height),u({x:-a.y*n,y:a.x*n})}))};const l=(0,s.applyFilters)("media.crossOrigin",void 0,e);"string"==typeof l&&(o.crossOrigin=l)}),[m,g]);return(0,c.useMemo)((()=>({editedUrl:o,setEditedUrl:r,crop:l,setCrop:i,position:a,setPosition:u,zoom:d,setZoom:p,rotation:m,setRotation:f,rotateClockwise:v,aspect:h,setAspect:b,defaultAspect:g})),[o,l,a,d,m,v,h,g])}({url:t,naturalWidth:n,naturalHeight:o}),u=function({crop:e,rotation:t,height:n,width:o,aspect:r,url:l,id:i,onSaveImage:a,onFinishEditing:s}){const{createErrorNotice:u}=(0,f.useDispatch)(Vm.store),[d,p]=(0,c.useState)(!1),m=(0,c.useCallback)((()=>{p(!1),s()}),[p,s]),g=(0,c.useCallback)((()=>{p(!0);const n=[];t>0&&n.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&n.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),fy()({path:`/wp/v2/media/${i}/edit`,method:"POST",data:{src:l,modifiers:n}}).then((e=>{a({id:e.id,url:e.source_url})})).catch((e=>{u((0,v.sprintf)((0,v.__)("Could not edit image. %s"),(0,ea.__unstableStripHTML)(e.message)),{id:"image-editing-error",type:"snackbar"})})).finally((()=>{p(!1),s()}))}),[p,e,t,n,o,r,l,a,u,p,s]);return(0,c.useMemo)((()=>({isInProgress:d,apply:g,cancel:m})),[d,g,m])}({id:e,url:t,onSaveImage:l,onFinishEditing:r,...a}),d=(0,c.useMemo)((()=>({...a,...u})),[a,u]);return(0,c.createElement)(Fw.Provider,{value:d},i)}
+ */,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,l=n in document;if(!l){var i=document.createElement("div");i.setAttribute(n,"return;"),l="function"==typeof i[n]}return!l&&o&&"wheel"===e&&(l=document.implementation.hasFeature("Events.wheel","3.0")),l}},195:function(e,t,n){"use strict";var o=n(3812),r=n(7939);function l(e){var t=0,n=0,o=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),o=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||r)&&e.deltaMode&&(1==e.deltaMode?(o*=40,r*=40):(o*=800,r*=800)),o&&!t&&(t=o<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:o,pixelY:r}}l.getEventType=function(){return o.firefox()?"DOMMouseScroll":r("wheel")?"wheel":"mousewheel"},e.exports=l},5372:function(e,t,n){"use strict";var o=n(9567);function r(){}function l(){}l.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,l,i){if(i!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:r};return n.PropTypes=n,n}},2652:function(e,t,n){e.exports=n(5372)()},9567:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5438:function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i=this&&this.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&(n[o[r]]=e[o[r]])}return n};t.__esModule=!0;var a=n(9196),s=n(2652),c=n(6411),u=n(9894),d="autosize:resized",p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,o=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||o?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),o=(t.onChange,t.style),r=(t.innerRef,t.children),s=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return a.createElement("textarea",l({},s,{onChange:this.onChange,style:u?l({},o,{maxHeight:u}):o,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:s.number,maxRows:s.number,onResize:s.func,innerRef:s.any,async:s.bool},t}(a.Component);t.TextareaAutosize=a.forwardRef((function(e,t){return a.createElement(p,l({},e,{innerRef:t}))}))},773:function(e,t,n){"use strict";var o=n(5438);t.Z=o.TextareaAutosize},4793:function(e){var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","ß":"ss","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),r=new RegExp(n,"");function l(e){return t[e]}var i=function(e){return e.replace(o,l)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i},3124:function(e){"use strict";function t(e){return Object.prototype.toString.call(e)}var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)}var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},l=Object.prototype.hasOwnProperty||function(e,t){return t in e};function i(e){if("object"==typeof e&&null!==e){var l;if(n(e))l=[];else if("[object Date]"===t(e))l=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===t(e)}(e))l=new RegExp(e);else if(function(e){return"[object Error]"===t(e)}(e))l={message:e.message};else if(function(e){return"[object Boolean]"===t(e)}(e)||function(e){return"[object Number]"===t(e)}(e)||function(e){return"[object String]"===t(e)}(e))l=Object(e);else if(Object.create&&Object.getPrototypeOf)l=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)l={};else{var i=e.constructor&&e.constructor.prototype||e.__proto__||{},a=function(){};a.prototype=i,l=new a}return o(r(e),(function(t){l[t]=e[t]})),l}return e}function a(e,t,a){var s=[],c=[],u=!0;return function e(d){var p=a?i(d):d,m={},f=!0,g={node:p,node_:d,path:[].concat(s),parent:c[c.length-1],parents:c,key:s[s.length-1],isRoot:0===s.length,level:s.length,circular:null,update:function(e,t){g.isRoot||(g.parent.node[g.key]=e),g.node=e,t&&(f=!1)},delete:function(e){delete g.parent.node[g.key],e&&(f=!1)},remove:function(e){n(g.parent.node)?g.parent.node.splice(g.key,1):delete g.parent.node[g.key],e&&(f=!1)},keys:null,before:function(e){m.before=e},after:function(e){m.after=e},pre:function(e){m.pre=e},post:function(e){m.post=e},stop:function(){u=!1},block:function(){f=!1}};if(!u)return g;function h(){if("object"==typeof g.node&&null!==g.node){g.keys&&g.node_===g.node||(g.keys=r(g.node)),g.isLeaf=0===g.keys.length;for(var e=0;e<c.length;e++)if(c[e].node_===d){g.circular=c[e];break}}else g.isLeaf=!0,g.keys=null;g.notLeaf=!g.isLeaf,g.notRoot=!g.isRoot}h();var b=t.call(g,g.node);return void 0!==b&&g.update&&g.update(b),m.before&&m.before.call(g,g.node),f?("object"!=typeof g.node||null===g.node||g.circular||(c.push(g),h(),o(g.keys,(function(t,n){s.push(t),m.pre&&m.pre.call(g,g.node[t],t);var o=e(g.node[t]);a&&l.call(g.node,t)&&(g.node[t]=o.node),o.isLast=n===g.keys.length-1,o.isFirst=0===n,m.post&&m.post.call(g,o),s.pop()})),c.pop()),m.after&&m.after.call(g,g.node),g):g}(e).node}function s(e){this.value=e}function c(e){return new s(e)}s.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!l.call(t,o))return;t=t[o]}return t},s.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var o=e[n];if(!t||!l.call(t,o))return!1;t=t[o]}return!0},s.prototype.set=function(e,t){for(var n=this.value,o=0;o<e.length-1;o++){var r=e[o];l.call(n,r)||(n[r]={}),n=n[r]}return n[e[o]]=t,t},s.prototype.map=function(e){return a(this.value,e,!0)},s.prototype.forEach=function(e){return this.value=a(this.value,e,!1),this.value},s.prototype.reduce=function(e,t){var n=1===arguments.length,o=n?this.value:t;return this.forEach((function(t){this.isRoot&&n||(o=e.call(this,o,t))})),o},s.prototype.paths=function(){var e=[];return this.forEach((function(){e.push(this.path)})),e},s.prototype.nodes=function(){var e=[];return this.forEach((function(){e.push(this.node)})),e},s.prototype.clone=function(){var e=[],t=[];return function n(l){for(var a=0;a<e.length;a++)if(e[a]===l)return t[a];if("object"==typeof l&&null!==l){var s=i(l);return e.push(l),t.push(s),o(r(l),(function(e){s[e]=n(l[e])})),e.pop(),t.pop(),s}return l}(this.value)},o(r(s.prototype),(function(e){c[e]=function(t){var n=[].slice.call(arguments,1),o=new s(t);return o[e].apply(o,n)}})),e.exports=c},9196:function(e){"use strict";e.exports=window.React}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var l=t[o]={exports:{}};return e[o].call(l.exports,l,l.exports,n),l.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){"use strict";n.r(o),n.d(o,{AlignmentControl:function(){return cy},AlignmentToolbar:function(){return uy},Autocomplete:function(){return ky},BlockAlignmentControl:function(){return wi},BlockAlignmentToolbar:function(){return Si},BlockBreadcrumb:function(){return Iy},BlockColorsStyleSelector:function(){return Ny},BlockContextProvider:function(){return na},BlockControls:function(){return er},BlockEdit:function(){return aa},BlockEditorKeyboardShortcuts:function(){return kI},BlockEditorProvider:function(){return Yd},BlockFormatControls:function(){return Jo},BlockIcon:function(){return $d},BlockInspector:function(){return wB},BlockList:function(){return Jg},BlockMover:function(){return SB},BlockNavigationDropdown:function(){return YE},BlockPreview:function(){return Em},BlockSelectionClearer:function(){return Qd},BlockSettingsMenu:function(){return CB},BlockSettingsMenuControls:function(){return Nk},BlockStyles:function(){return ow},BlockTitle:function(){return By},BlockToolbar:function(){return JB},BlockTools:function(){return hI},BlockVerticalAlignmentControl:function(){return Fr},BlockVerticalAlignmentToolbar:function(){return Hr},ButtonBlockAppender:function(){return vg},ButtonBlockerAppender:function(){return bg},ColorPalette:function(){return xw},ColorPaletteControl:function(){return Bw},ContrastChecker:function(){return mb},CopyHandler:function(){return vE},DefaultBlockAppender:function(){return gg},FontSizePicker:function(){return Jk},HeadingLevelDropdown:function(){return sw},HeightControl:function(){return Vv},InnerBlocks:function(){return qg},Inserter:function(){return fg},InspectorAdvancedControls:function(){return Ki},InspectorControls:function(){return qi},JustifyContentControl:function(){return $r},JustifyToolbar:function(){return jr},LineHeightControl:function(){return Db},MediaPlaceholder:function(){return xC},MediaReplaceFlow:function(){return bC},MediaUpload:function(){return Zf},MediaUploadCheck:function(){return qf},MultiSelectScrollIntoView:function(){return yI},NavigableToolbar:function(){return NC},ObserveTyping:function(){return CI},PanelColorSettings:function(){return BC},PlainText:function(){return hx},RichText:function(){return mx},RichTextShortcut:function(){return _x},RichTextToolbarButton:function(){return kx},SETTINGS_DEFAULTS:function(){return k},SkipToSelectedBlock:function(){return $x},ToolSelector:function(){return wx},Typewriter:function(){return MI},URLInput:function(){return CS},URLInputButton:function(){return Bx},URLPopover:function(){return EC},Warning:function(){return ca},WritingFlow:function(){return pp},__experimentalBlockAlignmentMatrixControl:function(){return Sy},__experimentalBlockFullHeightAligmentControl:function(){return Ey},__experimentalBlockPatternSetup:function(){return yw},__experimentalBlockPatternsList:function(){return jm},__experimentalBlockVariationPicker:function(){return uw},__experimentalBlockVariationTransforms:function(){return Sw},__experimentalBorderRadiusControl:function(){return kh},__experimentalColorGradientControl:function(){return Qh},__experimentalColorGradientSettingsDropdown:function(){return Aw},__experimentalDateFormatPicker:function(){return Mw},__experimentalDuotoneControl:function(){return C_},__experimentalFontAppearanceControl:function(){return Lb},__experimentalFontFamilyControl:function(){return Tb},__experimentalGetBorderClassesAndStyles:function(){return Vk},__experimentalGetColorClassesAndStyles:function(){return Hk},__experimentalGetElementClassName:function(){return zI},__experimentalGetGapCSSValue:function(){return Pr},__experimentalGetGradientClass:function(){return Hh},__experimentalGetGradientObjectByGradientValue:function(){return Uh},__experimentalGetMatchingVariation:function(){return FI},__experimentalGetSpacingClassesAndStyles:function(){return $k},__experimentalImageEditor:function(){return hS},__experimentalImageSizeControl:function(){return _S},__experimentalImageURLInputUI:function(){return Rx},__experimentalInspectorPopoverHeader:function(){return AI},__experimentalLetterSpacingControl:function(){return Ob},__experimentalLibrary:function(){return vI},__experimentalLinkControl:function(){return dC},__experimentalLinkControlSearchInput:function(){return YS},__experimentalLinkControlSearchItem:function(){return AS},__experimentalLinkControlSearchResults:function(){return GS},__experimentalListView:function(){return qE},__experimentalPanelColorGradientSettings:function(){return Vw},__experimentalPreviewOptions:function(){return Gx},__experimentalPublishDateTimePicker:function(){return DI},__experimentalRecursionProvider:function(){return NI},__experimentalResponsiveBlockControl:function(){return vx},__experimentalSpacingSizesControl:function(){return Ov},__experimentalTextDecorationControl:function(){return Kb},__experimentalTextTransformControl:function(){return Ub},__experimentalUnitControl:function(){return Sx},__experimentalUseBlockOverlayActive:function(){return Md},__experimentalUseBlockPreview:function(){return wm},__experimentalUseBorderProps:function(){return Fk},__experimentalUseColorProps:function(){return Uk},__experimentalUseCustomSides:function(){return m_},__experimentalUseGradient:function(){return jh},__experimentalUseHasRecursion:function(){return LI},__experimentalUseMultipleOriginColorsAndGradients:function(){return lh},__experimentalUseResizeCanvas:function(){return Ux},__unstableBlockNameContext:function(){return zx},__unstableBlockSettingsMenuFirstItem:function(){return AE},__unstableBlockToolbarLastItem:function(){return Ox},__unstableDuotoneFilter:function(){return T_},__unstableDuotoneStylesheet:function(){return B_},__unstableDuotoneUnsetStylesheet:function(){return I_},__unstableEditorStyles:function(){return bm},__unstableGetValuesFromColors:function(){return x_},__unstableIframe:function(){return fp},__unstableInserterMenuExtension:function(){return eg},__unstablePresetDuotoneFilter:function(){return M_},__unstableRichTextInputEvent:function(){return yx},__unstableUseBlockSelectionClearer:function(){return Xd},__unstableUseClipboardHandler:function(){return bE},__unstableUseMouseMoveTypingReset:function(){return wI},__unstableUseTypewriter:function(){return TI},__unstableUseTypingObserver:function(){return SI},createCustomColorsHOC:function(){return Xk},getColorClassName:function(){return rh},getColorObjectByAttributeValues:function(){return nh},getColorObjectByColorValue:function(){return oh},getComputedFluidTypographyValue:function(){return rl},getCustomValueFromPreset:function(){return xr},getFontSize:function(){return mv},getFontSizeClass:function(){return gv},getFontSizeObjectByValue:function(){return fv},getGradientSlugByValue:function(){return $h},getGradientValueBySlug:function(){return Gh},getPxFromCssUnit:function(){return qI},getSpacingPresetCssVar:function(){return Ir},getTypographyClassesAndStyles:function(){return jk},isValueSpacingPreset:function(){return Cr},privateApis:function(){return sP},store:function(){return Go},storeConfig:function(){return Ho},transformStyles:function(){return fm},useBlockDisplayInformation:function(){return Z_},useBlockEditContext:function(){return Ko},useBlockProps:function(){return Nd},useCachedTruthy:function(){return Wk},useInnerBlocksProps:function(){return Kg},useSetting:function(){return Xr},withColorContext:function(){return Cw},withColors:function(){return Qk},withFontSizes:function(){return ny}});var e={};n.r(e),n.d(e,{getBlockEditingMode:function(){return Y},getBlockRemovalRules:function(){return te},getEnabledBlockParents:function(){return J},getEnabledClientIdsTree:function(){return Q},getLastInsertedBlocksClientIds:function(){return Z},getRemovalPromptData:function(){return ee},isBlockInterfaceHidden:function(){return q},isBlockSubtreeDisabled:function(){return X}});var t={};n.r(t),n.d(t,{__experimentalGetActiveBlockIdByBlockNames:function(){return an},__experimentalGetAllowedBlocks:function(){return Dt},__experimentalGetAllowedPatterns:function(){return Ht},__experimentalGetBlockListSettingsForBlocks:function(){return Zt},__experimentalGetDirectInsertBlock:function(){return Ot},__experimentalGetGlobalBlocksByName:function(){return ge},__experimentalGetLastBlockAttributeChanges:function(){return Qt},__experimentalGetParsedPattern:function(){return Vt},__experimentalGetPatternTransformItems:function(){return $t},__experimentalGetPatternsByBlockTypes:function(){return Ut},__experimentalGetReusableBlockTitle:function(){return Yt},__unstableGetBlockWithoutInnerBlocks:function(){return se},__unstableGetClientIdWithClientIdsTree:function(){return ue},__unstableGetClientIdsTree:function(){return de},__unstableGetContentLockingParent:function(){return dn},__unstableGetEditorMode:function(){return tn},__unstableGetSelectedBlocksWithPartialSelection:function(){return Ye},__unstableGetTemporarilyEditingAsBlocks:function(){return pn},__unstableGetVisibleBlocks:function(){return un},__unstableHasActiveBlockOverlayActive:function(){return mn},__unstableIsFullySelected:function(){return We},__unstableIsLastBlockChangeIgnored:function(){return Xt},__unstableIsSelectionCollapsed:function(){return Ke},__unstableIsSelectionMergeable:function(){return Ze},__unstableIsWithinBlockOverlay:function(){return fn},__unstableSelectionHasUnmergeableBlock:function(){return qe},areInnerBlocksControlled:function(){return ln},canEditBlock:function(){return xt},canInsertBlockType:function(){return kt},canInsertBlocks:function(){return yt},canLockBlockType:function(){return Bt},canMoveBlock:function(){return St},canMoveBlocks:function(){return Ct},canRemoveBlock:function(){return Et},canRemoveBlocks:function(){return wt},didAutomaticChange:function(){return on},getAdjacentBlockClientId:function(){return Ne},getAllowedBlocks:function(){return At},getBehaviors:function(){return Kt},getBlock:function(){return ae},getBlockAttributes:function(){return ie},getBlockCount:function(){return ve},getBlockHierarchyRootClientId:function(){return Me},getBlockIndex:function(){return Qe},getBlockInsertionPoint:function(){return mt},getBlockListSettings:function(){return jt},getBlockMode:function(){return it},getBlockName:function(){return re},getBlockNamesByClientId:function(){return be},getBlockOrder:function(){return Xe},getBlockParents:function(){return Ie},getBlockParentsByBlockName:function(){return Te},getBlockRootClientId:function(){return Be},getBlockSelectionEnd:function(){return Ee},getBlockSelectionStart:function(){return ye},getBlockTransformItems:function(){return Lt},getBlocks:function(){return ce},getBlocksByClientId:function(){return he},getClientIdsOfDescendants:function(){return pe},getClientIdsWithDescendants:function(){return me},getDraggedBlockClientIds:function(){return ct},getFirstMultiSelectedBlockClientId:function(){return Ve},getGlobalBlockCount:function(){return fe},getInserterItems:function(){return Nt},getLastMultiSelectedBlockClientId:function(){return Fe},getLowestCommonAncestorWithSelectedBlock:function(){return Pe},getMultiSelectedBlockClientIds:function(){return Oe},getMultiSelectedBlocks:function(){return ze},getMultiSelectedBlocksEndClientId:function(){return je},getMultiSelectedBlocksStartClientId:function(){return $e},getNextBlockClientId:function(){return Re},getPatternsByBlockTypes:function(){return Gt},getPreviousBlockClientId:function(){return Le},getSelectedBlock:function(){return xe},getSelectedBlockClientId:function(){return Ce},getSelectedBlockClientIds:function(){return De},getSelectedBlockCount:function(){return we},getSelectedBlocksInitialCaretPosition:function(){return Ae},getSelectionEnd:function(){return ke},getSelectionStart:function(){return _e},getSettings:function(){return Wt},getTemplate:function(){return ht},getTemplateLock:function(){return bt},hasBlockMovingClientId:function(){return nn},hasDraggedInnerBlock:function(){return tt},hasInserterItems:function(){return Rt},hasMultiSelection:function(){return ot},hasSelectedBlock:function(){return Se},hasSelectedInnerBlock:function(){return et},isAncestorBeingDragged:function(){return dt},isAncestorMultiSelected:function(){return Ue},isBlockBeingDragged:function(){return ut},isBlockHighlighted:function(){return rn},isBlockInsertionPointVisible:function(){return ft},isBlockMultiSelected:function(){return Ge},isBlockSelected:function(){return Je},isBlockValid:function(){return le},isBlockVisible:function(){return cn},isBlockWithinSelection:function(){return nt},isCaretWithinFormattedText:function(){return pt},isDraggingBlocks:function(){return st},isFirstMultiSelectedBlock:function(){return He},isLastBlockChangePersistent:function(){return qt},isMultiSelecting:function(){return rt},isNavigationMode:function(){return en},isSelectionEnabled:function(){return lt},isTyping:function(){return at},isValidTemplate:function(){return gt},wasBlockJustInserted:function(){return sn}});var r={};n.r(r),n.d(r,{__experimentalUpdateSettings:function(){return hn},clearBlockRemovalPrompt:function(){return wn},ensureDefaultBlock:function(){return En},hideBlockInterface:function(){return bn},privateRemoveBlocks:function(){return yn},setBlockEditingMode:function(){return _n},setBlockRemovalRules:function(){return Sn},showBlockInterface:function(){return vn},unsetBlockEditingMode:function(){return kn}});var l={};n.r(l),n.d(l,{__unstableDeleteSelection:function(){return oo},__unstableExpandSelection:function(){return lo},__unstableMarkAutomaticChange:function(){return Co},__unstableMarkLastChangeAsPersistent:function(){return wo},__unstableMarkNextChangeAsNotPersistent:function(){return So},__unstableSaveReusableBlock:function(){return Eo},__unstableSetEditorMode:function(){return Bo},__unstableSetTemporarilyEditingAsBlocks:function(){return Do},__unstableSplitSelection:function(){return ro},clearSelectedBlock:function(){return Hn},duplicateBlocks:function(){return To},enterFormattedText:function(){return ho},exitFormattedText:function(){return bo},flashBlock:function(){return Lo},hideInsertionPoint:function(){return eo},insertAfterBlock:function(){return Po},insertBeforeBlock:function(){return Mo},insertBlock:function(){return Xn},insertBlocks:function(){return Qn},insertDefaultBlock:function(){return _o},mergeBlocks:function(){return io},moveBlockToPosition:function(){return Yn},moveBlocksDown:function(){return Kn},moveBlocksToPosition:function(){return Zn},moveBlocksUp:function(){return qn},multiSelect:function(){return Fn},receiveBlocks:function(){return Nn},removeBlock:function(){return so},removeBlocks:function(){return ao},replaceBlock:function(){return jn},replaceBlocks:function(){return $n},replaceInnerBlocks:function(){return co},resetBlocks:function(){return Tn},resetSelection:function(){return Pn},selectBlock:function(){return An},selectNextBlock:function(){return On},selectPreviousBlock:function(){return Dn},selectionChange:function(){return vo},setBlockMovingClientId:function(){return Io},setBlockVisibility:function(){return Ao},setHasControlledInnerBlocks:function(){return Ro},setNavigationMode:function(){return xo},setTemplateValidity:function(){return to},showInsertionPoint:function(){return Jn},startDraggingBlocks:function(){return fo},startMultiSelect:function(){return zn},startTyping:function(){return po},stopDraggingBlocks:function(){return go},stopMultiSelect:function(){return Vn},stopTyping:function(){return mo},synchronizeTemplate:function(){return no},toggleBlockHighlight:function(){return No},toggleBlockMode:function(){return uo},toggleSelection:function(){return Gn},updateBlock:function(){return Rn},updateBlockAttributes:function(){return Ln},updateBlockListSettings:function(){return ko},updateSettings:function(){return yo},validateBlocksToTemplate:function(){return Mn}});var i={};n.r(i),n.d(i,{AdvancedPanel:function(){return yT},BorderPanel:function(){return Ih},ColorPanel:function(){return pb},DimensionsPanel:function(){return n_},EffectsPanel:function(){return hT},FiltersPanel:function(){return F_},GlobalStylesContext:function(){return bl},TypographyPanel:function(){return av},areGlobalStyleConfigsEqual:function(){return hl},getBlockCSSSelector:function(){return P_},getLayoutStyles:function(){return eT},useGlobalSetting:function(){return yl},useGlobalStyle:function(){return El},useGlobalStylesOutput:function(){return uT},useGlobalStylesOutputWithConfig:function(){return cT},useGlobalStylesReset:function(){return kl},useHasBorderPanel:function(){return yh},useHasColorPanel:function(){return Jh},useHasDimensionsPanel:function(){return $v},useHasEffectsPanel:function(){return pT},useHasFiltersPanel:function(){return R_},useHasTypographyPanel:function(){return Yb},useSettingsForBlockElement:function(){return wl}});var a=window.wp.blocks,s=window.wp.hooks;(0,s.addFilter)("blocks.registerBlockType","core/compat/migrateLightBlockWrapper",(function(e){const{apiVersion:t=1}=e;return t<2&&(0,a.hasBlockSupport)(e,"lightBlockWrapper",!1)&&(e.apiVersion=2),e}));var c=window.wp.element,u=n(4403),d=n.n(u),p=window.wp.compose,m=window.wp.components,f=window.wp.data;var g={default:(0,m.createSlotFill)("BlockControls"),block:(0,m.createSlotFill)("BlockControlsBlock"),inline:(0,m.createSlotFill)("BlockFormatControls"),other:(0,m.createSlotFill)("BlockControlsOther"),parent:(0,m.createSlotFill)("BlockControlsParent")},h=n(5619),b=n.n(h),v=window.wp.i18n;const _={insertUsage:{}},k={alignWide:!1,supportsLayout:!0,colors:[{name:(0,v.__)("Black"),slug:"black",color:"#000000"},{name:(0,v.__)("Cyan bluish gray"),slug:"cyan-bluish-gray",color:"#abb8c3"},{name:(0,v.__)("White"),slug:"white",color:"#ffffff"},{name:(0,v.__)("Pale pink"),slug:"pale-pink",color:"#f78da7"},{name:(0,v.__)("Vivid red"),slug:"vivid-red",color:"#cf2e2e"},{name:(0,v.__)("Luminous vivid orange"),slug:"luminous-vivid-orange",color:"#ff6900"},{name:(0,v.__)("Luminous vivid amber"),slug:"luminous-vivid-amber",color:"#fcb900"},{name:(0,v.__)("Light green cyan"),slug:"light-green-cyan",color:"#7bdcb5"},{name:(0,v.__)("Vivid green cyan"),slug:"vivid-green-cyan",color:"#00d084"},{name:(0,v.__)("Pale cyan blue"),slug:"pale-cyan-blue",color:"#8ed1fc"},{name:(0,v.__)("Vivid cyan blue"),slug:"vivid-cyan-blue",color:"#0693e3"},{name:(0,v.__)("Vivid purple"),slug:"vivid-purple",color:"#9b51e0"}],fontSizes:[{name:(0,v._x)("Small","font size name"),size:13,slug:"small"},{name:(0,v._x)("Normal","font size name"),size:16,slug:"normal"},{name:(0,v._x)("Medium","font size name"),size:20,slug:"medium"},{name:(0,v._x)("Large","font size name"),size:36,slug:"large"},{name:(0,v._x)("Huge","font size name"),size:42,slug:"huge"}],imageDefaultSize:"large",imageSizes:[{slug:"thumbnail",name:(0,v.__)("Thumbnail")},{slug:"medium",name:(0,v.__)("Medium")},{slug:"large",name:(0,v.__)("Large")},{slug:"full",name:(0,v.__)("Full Size")}],imageEditing:!0,maxWidth:580,allowedBlockTypes:!0,maxUploadFileSize:0,allowedMimeTypes:null,canLockBlocks:!0,enableOpenverseMediaCategory:!0,clearBlockSelection:!0,__experimentalCanUserUseUnfilteredHTML:!1,__experimentalBlockDirectory:!1,__mobileEnablePageTemplates:!1,__experimentalBlockPatterns:[],__experimentalBlockPatternCategories:[],__unstableGalleryWithImageBlocks:!1,__unstableIsPreviewMode:!1,blockInspectorAnimation:{animationParent:"core/navigation","core/navigation":{enterDirection:"leftToRight"},"core/navigation-submenu":{enterDirection:"rightToLeft"},"core/navigation-link":{enterDirection:"rightToLeft"},"core/search":{enterDirection:"rightToLeft"},"core/social-links":{enterDirection:"rightToLeft"},"core/page-list":{enterDirection:"rightToLeft"},"core/spacer":{enterDirection:"rightToLeft"},"core/home-link":{enterDirection:"rightToLeft"},"core/site-title":{enterDirection:"rightToLeft"},"core/site-logo":{enterDirection:"rightToLeft"}},generateAnchors:!1,gradients:[{name:(0,v.__)("Vivid cyan blue to vivid purple"),gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)",slug:"vivid-cyan-blue-to-vivid-purple"},{name:(0,v.__)("Light green cyan to vivid green cyan"),gradient:"linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%)",slug:"light-green-cyan-to-vivid-green-cyan"},{name:(0,v.__)("Luminous vivid amber to luminous vivid orange"),gradient:"linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%)",slug:"luminous-vivid-amber-to-luminous-vivid-orange"},{name:(0,v.__)("Luminous vivid orange to vivid red"),gradient:"linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%)",slug:"luminous-vivid-orange-to-vivid-red"},{name:(0,v.__)("Very light gray to cyan bluish gray"),gradient:"linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%)",slug:"very-light-gray-to-cyan-bluish-gray"},{name:(0,v.__)("Cool to warm spectrum"),gradient:"linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%)",slug:"cool-to-warm-spectrum"},{name:(0,v.__)("Blush light purple"),gradient:"linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%)",slug:"blush-light-purple"},{name:(0,v.__)("Blush bordeaux"),gradient:"linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%)",slug:"blush-bordeaux"},{name:(0,v.__)("Luminous dusk"),gradient:"linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%)",slug:"luminous-dusk"},{name:(0,v.__)("Pale ocean"),gradient:"linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%)",slug:"pale-ocean"},{name:(0,v.__)("Electric grass"),gradient:"linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%)",slug:"electric-grass"},{name:(0,v.__)("Midnight"),gradient:"linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)",slug:"midnight"}],__unstableResolvedAssets:{styles:[],scripts:[]}};function y(e,t,n){return[...e.slice(0,n),...Array.isArray(t)?t:[t],...e.slice(n)]}function E(e,t,n,o=1){const r=[...e];return r.splice(t,o),y(r,e.slice(t,t+o),n)}const w=e=>e;function S(e,t=""){const n=new Map,o=[];return n.set(t,o),e.forEach((e=>{const{clientId:t,innerBlocks:r}=e;o.push(t),S(r,t).forEach(((e,t)=>{n.set(t,e)}))})),n}function C(e,t=""){const n=[],o=[[t,e]];for(;o.length;){const[e,t]=o.shift();t.forEach((({innerBlocks:t,...r})=>{n.push([r.clientId,e]),t?.length&&o.push([r.clientId,t])}))}return n}function x(e,t=w){const n=[],o=[...e];for(;o.length;){const{innerBlocks:e,...r}=o.shift();o.push(...e),n.push([r.clientId,t(r)])}return n}function B(e){return x(e,(e=>{const{attributes:t,...n}=e;return n}))}function I(e){return x(e,(e=>e.attributes))}function T(e,t){return"UPDATE_BLOCK_ATTRIBUTES"===e.type&&void 0!==t&&"UPDATE_BLOCK_ATTRIBUTES"===t.type&&b()(e.clientIds,t.clientIds)&&function(e,t){return b()(Object.keys(e),Object.keys(t))}(e.attributes,t.attributes)}function M(e,t){const n=e.tree,o=[...t],r=[...t];for(;o.length;){const e=o.shift();o.push(...e.innerBlocks),r.push(...e.innerBlocks)}for(const e of r)n.set(e.clientId,{});for(const t of r)n.set(t.clientId,Object.assign(n.get(t.clientId),{...e.byClientId.get(t.clientId),attributes:e.attributes.get(t.clientId),innerBlocks:t.innerBlocks.map((e=>n.get(e.clientId)))}))}function P(e,t,n=!1){const o=e.tree,r=new Set([]),l=new Set;for(const o of t){let t=n?o:e.parents.get(o);do{if(e.controlledInnerBlocks[t]){l.add(t);break}r.add(t),t=e.parents.get(t)}while(void 0!==t)}for(const e of r)o.set(e,{...o.get(e)});for(const t of r)o.get(t).innerBlocks=(e.order.get(t)||[]).map((e=>o.get(e)));for(const t of l)o.set("controlled||"+t,{innerBlocks:(e.order.get(t)||[]).map((e=>o.get(e)))})}const N=(0,p.pipe)(f.combineReducers,(e=>(t,n)=>{if(t&&"SAVE_REUSABLE_BLOCK_SUCCESS"===n.type){const{id:e,updatedId:o}=n;if(e===o)return t;(t={...t}).attributes=new Map(t.attributes),t.attributes.forEach(((n,r)=>{const{name:l}=t.byClientId.get(r);"core/block"===l&&n.ref===e&&t.attributes.set(r,{...n,ref:o})}))}return e(t,n)}),(e=>(t={},n)=>{const o=e(t,n);if(o===t)return t;switch(o.tree=t.tree?t.tree:new Map,n.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":o.tree=new Map(o.tree),M(o,n.blocks),P(o,n.rootClientId?[n.rootClientId]:[""],!0);break;case"UPDATE_BLOCK":o.tree=new Map(o.tree),o.tree.set(n.clientId,{...o.tree.get(n.clientId),...o.byClientId.get(n.clientId),attributes:o.attributes.get(n.clientId)}),P(o,[n.clientId],!1);break;case"UPDATE_BLOCK_ATTRIBUTES":o.tree=new Map(o.tree),n.clientIds.forEach((e=>{o.tree.set(e,{...o.tree.get(e),attributes:o.attributes.get(e)})})),P(o,n.clientIds,!1);break;case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const e=function(e){const t={},n=[...e];for(;n.length;){const{innerBlocks:e,...o}=n.shift();n.push(...e),t[o.clientId]=!0}return t}(n.blocks);o.tree=new Map(o.tree),n.replacedClientIds.concat(n.replacedClientIds.filter((t=>!e[t])).map((e=>"controlled||"+e))).forEach((e=>{o.tree.delete(e)})),M(o,n.blocks),P(o,n.blocks.map((e=>e.clientId)),!1);const r=[];for(const e of n.clientIds)void 0===t.parents.get(e)||""!==t.parents.get(e)&&!o.byClientId.get(t.parents.get(e))||r.push(t.parents.get(e));P(o,r,!0);break}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":const e=[];for(const r of n.clientIds)void 0===t.parents.get(r)||""!==t.parents.get(r)&&!o.byClientId.get(t.parents.get(r))||e.push(t.parents.get(r));o.tree=new Map(o.tree),n.removedClientIds.concat(n.removedClientIds.map((e=>"controlled||"+e))).forEach((e=>{o.tree.delete(e)})),P(o,e,!0);break;case"MOVE_BLOCKS_TO_POSITION":{const e=[];n.fromRootClientId?e.push(n.fromRootClientId):e.push(""),n.toRootClientId&&e.push(n.toRootClientId),o.tree=new Map(o.tree),P(o,e,!0);break}case"MOVE_BLOCKS_UP":case"MOVE_BLOCKS_DOWN":{const e=[n.rootClientId?n.rootClientId:""];o.tree=new Map(o.tree),P(o,e,!0);break}case"SAVE_REUSABLE_BLOCK_SUCCESS":{const e=[];o.attributes.forEach(((t,r)=>{"core/block"===o.byClientId.get(r).name&&t.ref===n.updatedId&&e.push(r)})),o.tree=new Map(o.tree),e.forEach((e=>{o.tree.set(e,{...o.byClientId.get(e),attributes:o.attributes.get(e),innerBlocks:o.tree.get(e).innerBlocks})})),P(o,e,!1)}}return o}),(e=>(t,n)=>{const o=e=>{let o=e;for(let r=0;r<o.length;r++)!t.order.get(o[r])||n.keepControlledInnerBlocks&&n.keepControlledInnerBlocks[o[r]]||(o===e&&(o=[...o]),o.push(...t.order.get(o[r])));return o};if(t)switch(n.type){case"REMOVE_BLOCKS":n={...n,type:"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN",removedClientIds:o(n.clientIds)};break;case"REPLACE_BLOCKS":n={...n,type:"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN",replacedClientIds:o(n.clientIds)}}return e(t,n)}),(e=>(t,n)=>{if("REPLACE_INNER_BLOCKS"!==n.type)return e(t,n);const o={};if(Object.keys(t.controlledInnerBlocks).length){const e=[...n.blocks];for(;e.length;){const{innerBlocks:n,...r}=e.shift();e.push(...n),t.controlledInnerBlocks[r.clientId]&&(o[r.clientId]=!0)}}let r=t;t.order.get(n.rootClientId)&&(r=e(r,{type:"REMOVE_BLOCKS",keepControlledInnerBlocks:o,clientIds:t.order.get(n.rootClientId)}));let l=r;if(n.blocks.length){l=e(l,{...n,type:"INSERT_BLOCKS",index:0});const r=new Map(l.order);Object.keys(o).forEach((e=>{t.order.get(e)&&r.set(e,t.order.get(e))})),l.order=r,l.tree=new Map(l.tree),Object.keys(o).forEach((e=>{const n=`controlled||${e}`;t.tree.has(n)&&l.tree.set(n,t.tree.get(n))}))}return l}),(e=>(t,n)=>{if("RESET_BLOCKS"===n.type){const e={...t,byClientId:new Map(B(n.blocks)),attributes:new Map(I(n.blocks)),order:S(n.blocks),parents:new Map(C(n.blocks)),controlledInnerBlocks:{}};return e.tree=new Map(t?.tree),M(e,n.blocks),e.tree.set("",{innerBlocks:n.blocks.map((t=>e.tree.get(t.clientId)))}),e}return e(t,n)}),(function(e){let t,n=!1;return(o,r)=>{let l=e(o,r);const i="MARK_LAST_CHANGE_AS_PERSISTENT"===r.type||n;if(o===l&&!i){var a;n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type;const e=null===(a=o?.isPersistentChange)||void 0===a||a;return o.isPersistentChange===e?o:{...l,isPersistentChange:e}}return l={...l,isPersistentChange:i?!n:!T(r,t)},t=r,n="MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"===r.type,l}}),(function(e){const t=new Set(["RECEIVE_BLOCKS"]);return(n,o)=>{const r=e(n,o);return r!==n&&(r.isIgnoredChange=t.has(o.type)),r}}),(e=>(t,n)=>{if("SET_HAS_CONTROLLED_INNER_BLOCKS"===n.type){const o=e(t,{type:"REPLACE_INNER_BLOCKS",rootClientId:n.clientId,blocks:[]});return e(o,n)}return e(t,n)}))({byClientId(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return B(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.has(t.clientId))return e;const{attributes:n,...o}=t.updates;if(0===Object.values(o).length)return e;const r=new Map(e);return r.set(t.clientId,{...e.get(t.clientId),...o}),r}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),B(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},attributes(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":case"INSERT_BLOCKS":{const n=new Map(e);return I(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"UPDATE_BLOCK":{if(!e.get(t.clientId)||!t.updates.attributes)return e;const n=new Map(e);return n.set(t.clientId,{...e.get(t.clientId),...t.updates.attributes}),n}case"UPDATE_BLOCK_ATTRIBUTES":{if(t.clientIds.every((t=>!e.get(t))))return e;let o=!1;const r=new Map(e);for(const l of t.clientIds){var n;const i=Object.entries(t.uniqueByBlock?t.attributes[l]:null!==(n=t.attributes)&&void 0!==n?n:{});if(0===i.length)continue;let a=!1;const s=e.get(l),c={};i.forEach((([e,t])=>{s[e]!==t&&(a=!0,c[e]=t)})),o=o||a,a&&r.set(l,{...s,...c})}return o?r:e}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{if(!t.blocks)return e;const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),I(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},order(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{var n;const o=S(t.blocks),r=new Map(e);return o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.set("",(null!==(n=e.get(""))&&void 0!==n?n:[]).concat(o[""])),r}case"INSERT_BLOCKS":{const{rootClientId:n=""}=t,o=e.get(n)||[],r=S(t.blocks,n),{index:l=o.length}=t,i=new Map(e);return r.forEach(((e,t)=>{i.set(t,e)})),i.set(n,y(o,r.get(n),l)),i}case"MOVE_BLOCKS_TO_POSITION":{var o;const{fromRootClientId:n="",toRootClientId:r="",clientIds:l}=t,{index:i=e.get(r).length}=t;if(n===r){const t=e.get(r).indexOf(l[0]),n=new Map(e);return n.set(r,E(e.get(r),t,i,l.length)),n}const a=new Map(e);return a.set(n,null!==(o=e.get(n)?.filter((e=>!l.includes(e))))&&void 0!==o?o:[]),a.set(r,y(e.get(r),l,i)),a}case"MOVE_BLOCKS_UP":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],l=e.get(o);if(!l.length||r===l[0])return e;const i=l.indexOf(r),a=new Map(e);return a.set(o,E(l,i,i-1,n.length)),a}case"MOVE_BLOCKS_DOWN":{const{clientIds:n,rootClientId:o=""}=t,r=n[0],l=n[n.length-1],i=e.get(o);if(!i.length||l===i[i.length-1])return e;const a=i.indexOf(r),s=new Map(e);return s.set(o,E(i,a,a+1,n.length)),s}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const{clientIds:n}=t;if(!t.blocks)return e;const o=S(t.blocks),r=new Map(e);return t.replacedClientIds.forEach((e=>{r.delete(e)})),o.forEach(((e,t)=>{""!==t&&r.set(t,e)})),r.forEach(((e,t)=>{const l=Object.values(e).reduce(((e,t)=>t===n[0]?[...e,...o.get("")]:(-1===n.indexOf(t)&&e.push(t),e)),[]);r.set(t,l)})),r}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n.forEach(((e,o)=>{var r;const l=null!==(r=e?.filter((e=>!t.removedClientIds.includes(e))))&&void 0!==r?r:[];l.length!==e.length&&n.set(o,l)})),n}}return e},parents(e=new Map,t){switch(t.type){case"RECEIVE_BLOCKS":{const n=new Map(e);return C(t.blocks).forEach((([e,t])=>{n.set(e,t)})),n}case"INSERT_BLOCKS":{const n=new Map(e);return C(t.blocks,t.rootClientId||"").forEach((([e,t])=>{n.set(e,t)})),n}case"MOVE_BLOCKS_TO_POSITION":{const n=new Map(e);return t.clientIds.forEach((e=>{n.set(e,t.toRootClientId||"")})),n}case"REPLACE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.replacedClientIds.forEach((e=>{n.delete(e)})),C(t.blocks,e.get(t.clientIds[0])).forEach((([e,t])=>{n.set(e,t)})),n}case"REMOVE_BLOCKS_AUGMENTED_WITH_CHILDREN":{const n=new Map(e);return t.removedClientIds.forEach((e=>{n.delete(e)})),n}}return e},controlledInnerBlocks(e={},{type:t,clientId:n,hasControlledInnerBlocks:o}){return"SET_HAS_CONTROLLED_INNER_BLOCKS"===t?{...e,[n]:o}:e}});function L(e={},t){switch(t.type){case"CLEAR_SELECTED_BLOCK":return e.clientId?{}:e;case"SELECT_BLOCK":return t.clientId===e.clientId?e:{clientId:t.clientId};case"REPLACE_INNER_BLOCKS":case"INSERT_BLOCKS":return t.updateSelection&&t.blocks.length?{clientId:t.blocks[0].clientId}:e;case"REMOVE_BLOCKS":return t.clientIds&&t.clientIds.length&&-1!==t.clientIds.indexOf(e.clientId)?{}:e;case"REPLACE_BLOCKS":{if(-1===t.clientIds.indexOf(e.clientId))return e;const n=t.blocks[t.indexToSelect]||t.blocks[t.blocks.length-1];return n?n.clientId===e.clientId?e:{clientId:n.clientId}:{}}}return e}const R=(0,f.combineReducers)({blocks:N,isTyping:function(e=!1,t){switch(t.type){case"START_TYPING":return!0;case"STOP_TYPING":return!1}return e},isBlockInterfaceHidden:function(e=!1,t){switch(t.type){case"HIDE_BLOCK_INTERFACE":return!0;case"SHOW_BLOCK_INTERFACE":return!1}return e},draggedBlocks:function(e=[],t){switch(t.type){case"START_DRAGGING_BLOCKS":return t.clientIds;case"STOP_DRAGGING_BLOCKS":return[]}return e},selection:function(e={},t){switch(t.type){case"SELECTION_CHANGE":return t.clientId?{selectionStart:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.startOffset},selectionEnd:{clientId:t.clientId,attributeKey:t.attributeKey,offset:t.endOffset}}:{selectionStart:t.start||e.selectionStart,selectionEnd:t.end||e.selectionEnd};case"RESET_SELECTION":const{selectionStart:n,selectionEnd:o}=t;return{selectionStart:n,selectionEnd:o};case"MULTI_SELECT":const{start:r,end:l}=t;return r===e.selectionStart?.clientId&&l===e.selectionEnd?.clientId?e:{selectionStart:{clientId:r},selectionEnd:{clientId:l}};case"RESET_BLOCKS":const i=e?.selectionStart?.clientId,a=e?.selectionEnd?.clientId;if(!i&&!a)return e;if(!t.blocks.some((e=>e.clientId===i)))return{selectionStart:{},selectionEnd:{}};if(!t.blocks.some((e=>e.clientId===a)))return{...e,selectionEnd:e.selectionStart}}const n=L(e.selectionStart,t),o=L(e.selectionEnd,t);return n===e.selectionStart&&o===e.selectionEnd?e:{selectionStart:n,selectionEnd:o}},isMultiSelecting:function(e=!1,t){switch(t.type){case"START_MULTI_SELECT":return!0;case"STOP_MULTI_SELECT":return!1}return e},isSelectionEnabled:function(e=!0,t){return"TOGGLE_SELECTION"===t.type?t.isSelectionEnabled:e},initialPosition:function(e=null,t){return"REPLACE_BLOCKS"===t.type&&void 0!==t.initialPosition||["MULTI_SELECT","SELECT_BLOCK","RESET_SELECTION","INSERT_BLOCKS","REPLACE_INNER_BLOCKS"].includes(t.type)?t.initialPosition:e},blocksMode:function(e={},t){if("TOGGLE_BLOCK_MODE"===t.type){const{clientId:n}=t;return{...e,[n]:e[n]&&"html"===e[n]?"visual":"html"}}return e},blockListSettings:(e={},t)=>{switch(t.type){case"REPLACE_BLOCKS":case"REMOVE_BLOCKS":return Object.fromEntries(Object.entries(e).filter((([e])=>!t.clientIds.includes(e))));case"UPDATE_BLOCK_LIST_SETTINGS":{const{clientId:n}=t;if(!t.settings){if(e.hasOwnProperty(n)){const{[n]:t,...o}=e;return o}return e}return b()(e[n],t.settings)?e:{...e,[n]:t.settings}}}return e},insertionPoint:function(e=null,t){switch(t.type){case"SHOW_INSERTION_POINT":{const{rootClientId:n,index:o,__unstableWithInserter:r,operation:l}=t,i={rootClientId:n,index:o,__unstableWithInserter:r,operation:l};return b()(e,i)?e:i}case"HIDE_INSERTION_POINT":return null}return e},template:function(e={isValid:!0},t){return"SET_TEMPLATE_VALIDITY"===t.type?{...e,isValid:t.isValid}:e},settings:function(e=k,t){return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},preferences:function(e=_,t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":return t.blocks.reduce(((e,n)=>{const{attributes:o,name:r}=n;let l=r;const i=(0,f.select)(a.store).getActiveBlockVariation(r,o);return i?.name&&(l+="/"+i.name),"core/block"===r&&(l+="/"+o.ref),{...e,insertUsage:{...e.insertUsage,[l]:{time:t.time,count:e.insertUsage[l]?e.insertUsage[l].count+1:1}}}}),e)}return e},lastBlockAttributesChange:function(e=null,t){switch(t.type){case"UPDATE_BLOCK":if(!t.updates.attributes)break;return{[t.clientId]:t.updates.attributes};case"UPDATE_BLOCK_ATTRIBUTES":return t.clientIds.reduce(((e,n)=>({...e,[n]:t.uniqueByBlock?t.attributes[n]:t.attributes})),{})}return e},editorMode:function(e="edit",t){return"INSERT_BLOCKS"===t.type&&"navigation"===e?"edit":"SET_EDITOR_MODE"===t.type?t.mode:e},hasBlockMovingClientId:function(e=null,t){return"SET_BLOCK_MOVING_MODE"===t.type?t.hasBlockMovingClientId:"SET_EDITOR_MODE"===t.type?null:e},highlightedBlock:function(e,t){switch(t.type){case"TOGGLE_BLOCK_HIGHLIGHT":const{clientId:n,isHighlighted:o}=t;return o?n:e===n?null:e;case"SELECT_BLOCK":if(t.clientId!==e)return null}return e},lastBlockInserted:function(e={},t){switch(t.type){case"INSERT_BLOCKS":case"REPLACE_BLOCKS":case"REPLACE_INNER_BLOCKS":if(!t.blocks.length)return e;const n=t.blocks.map((e=>e.clientId)),o=t.meta?.source;return{clientIds:n,source:o};case"RESET_BLOCKS":return{}}return e},temporarilyEditingAsBlocks:function(e="",t){return"SET_TEMPORARILY_EDITING_AS_BLOCKS"===t.type?t.temporarilyEditingAsBlocks:e},blockVisibility:function(e={},t){return"SET_BLOCK_VISIBILITY"===t.type?{...e,...t.updates}:e},blockEditingModes:function(e=new Map,t){switch(t.type){case"SET_BLOCK_EDITING_MODE":return new Map(e).set(t.clientId,t.mode);case"UNSET_BLOCK_EDITING_MODE":{const n=new Map(e);return n.delete(t.clientId),n}case"RESET_BLOCKS":return e.has("")?(new Map).set("",e.get("")):e}return e},removalPromptData:function(e=!1,t){switch(t.type){case"DISPLAY_BLOCK_REMOVAL_PROMPT":const{clientIds:e,selectPrevious:n,blockNamesForPrompt:o}=t;return{clientIds:e,selectPrevious:n,blockNamesForPrompt:o};case"CLEAR_BLOCK_REMOVAL_PROMPT":return!1}return e},blockRemovalRules:function(e=!1,t){return"SET_BLOCK_REMOVAL_RULES"===t.type?t.rules:e}});var A=function(e){return(t,n)=>{const o=e(t,n);return t?(o.automaticChangeStatus=t.automaticChangeStatus,"MARK_AUTOMATIC_CHANGE"===n.type?{...o,automaticChangeStatus:"pending"}:"MARK_AUTOMATIC_CHANGE_FINAL"===n.type&&"pending"===t.automaticChangeStatus?{...o,automaticChangeStatus:"final"}:o.blocks===t.blocks&&o.selection===t.selection||"final"!==o.automaticChangeStatus&&o.selection!==t.selection?o:{...o,automaticChangeStatus:void 0}):o}}(R),D={};function O(e){return[e]}function z(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function V(e,t){var n,o=t||O;function r(){n=new WeakMap}function l(){var t,r,l,i,a,s=arguments.length;for(i=new Array(s),l=0;l<s;l++)i[l]=arguments[l];for(t=function(e){var t,o,r,l,i,a=n,s=!0;for(t=0;t<e.length;t++){if(!(i=o=e[t])||"object"!=typeof i){s=!1;break}a.has(o)?a=a.get(o):(r=new WeakMap,a.set(o,r),a=r)}return a.has(D)||((l=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=s,a.set(D,l)),a.get(D)}(a=o.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!z(a,t.lastDependants,0)&&t.clear(),t.lastDependants=a),r=t.head;r;){if(z(r.args,i,1))return r!==t.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=t.head,r.prev=null,t.head.prev=r,t.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,t.head&&(t.head.prev=r,r.next=t.head),t.head=r,r.val}return l.getDependants=o,l.clear=r,r(),l}var F=window.wp.primitives;var H=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),G=window.wp.richText,U=window.wp.deprecated,$=n.n(U);function j(e){const{multiline:t,__unstableMultilineWrapperTags:n,__unstablePreserveWhiteSpace:o}=e;return{multilineTag:t,multilineWrapperTags:n,preserveWhiteSpace:o}}const W=(e,t,n)=>(o,r)=>{let l,i;if("function"==typeof e?(l=e(o),i=e(r)):(l=o[e],i=r[e]),l>i)return"asc"===n?1:-1;if(i>l)return"asc"===n?-1:1;const a=t.findIndex((e=>e===o)),s=t.findIndex((e=>e===r));return a>s?1:s>a?-1:0};function K(e,t,n="asc"){return e.concat().sort(W(t,e,n))}function q(e){return e.isBlockInterfaceHidden}function Z(e){return e?.lastBlockInserted?.clientIds}function Y(e,t=""){if(e.blockEditingModes.has(t))return e.blockEditingModes.get(t);if(!t)return"default";const n=Be(e,t);if("contentOnly"===bt(e,n)){const n=re(e,t);return(0,f.select)(a.store).__experimentalHasContentRoleAttribute(n)?"contentOnly":"disabled"}const o=Y(e,n);return"contentOnly"===o?"default":o}const X=V(((e,t)=>{const n=t=>{const o=e.blockEditingModes.get(t);return(void 0===o||"disabled"===o)&&Xe(e,t).every(n)};return"disabled"===Y(e,t)&&Xe(e,t).every(n)}),(e=>[e.blockEditingModes,e.blocks.parents])),Q=V(((e,t="")=>Xe(e,t).flatMap((t=>"disabled"!==Y(e,t)?[{clientId:t,innerBlocks:Q(e,t)}]:Q(e,t)))),(e=>[e.blocks.order,e.blockEditingModes,e.settings.templateLock,e.blockListSettings])),J=V(((e,t,n=!1)=>Ie(e,t,n).filter((t=>"disabled"!==Y(e,t)))),(e=>[e.blocks.parents,e.blockEditingModes,e.settings.templateLock,e.blockListSettings]));function ee(e){return e.removalPromptData}function te(e){return e.blockRemovalRules}const ne=[],oe=new Set;function re(e,t){const n=e.blocks.byClientId.get(t),o="core/social-link";if("web"!==c.Platform.OS&&n?.name===o){const n=e.blocks.attributes.get(t),{service:r}=null!=n?n:{};return r?`${o}-${r}`:o}return n?n.name:null}function le(e,t){const n=e.blocks.byClientId.get(t);return!!n&&n.isValid}function ie(e,t){return e.blocks.byClientId.get(t)?e.blocks.attributes.get(t):null}function ae(e,t){return e.blocks.byClientId.has(t)?e.blocks.tree.get(t):null}const se=V(((e,t)=>e.blocks.byClientId.has(t)?{...e.blocks.byClientId.get(t),attributes:ie(e,t)}:null),((e,t)=>[e.blocks.byClientId.get(t),e.blocks.attributes.get(t)]));function ce(e,t){const n=t&&ln(e,t)?"controlled||"+t:t||"";return e.blocks.tree.get(n)?.innerBlocks||ne}const ue=V(((e,t)=>($()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdWithClientIdsTree",{since:"6.3",version:"6.5"}),{clientId:t,innerBlocks:de(e,t)})),(e=>[e.blocks.order])),de=V(((e,t="")=>($()("wp.data.select( 'core/block-editor' ).__unstableGetClientIdsTree",{since:"6.3",version:"6.5"}),Xe(e,t).map((t=>ue(e,t))))),(e=>[e.blocks.order])),pe=V(((e,t)=>{const n=[];for(const o of t)for(const t of Xe(e,o))n.push(t,...pe(e,[t]));return n}),(e=>[e.blocks.order])),me=V((e=>{const t=[];for(const n of Xe(e))t.push(n,...pe(e,[n]));return t}),(e=>[e.blocks.order])),fe=V(((e,t)=>{const n=me(e);return t?n.reduce(((n,o)=>e.blocks.byClientId.get(o).name===t?n+1:n),0):n.length}),(e=>[e.blocks.order,e.blocks.byClientId])),ge=V(((e,t)=>{if(!t)return ne;const n=Array.isArray(t)?t:[t],o=me(e).filter((t=>{const o=e.blocks.byClientId.get(t);return n.includes(o.name)}));return o.length>0?o:ne}),(e=>[e.blocks.order,e.blocks.byClientId])),he=V(((e,t)=>(Array.isArray(t)?t:[t]).map((t=>ae(e,t)))),((e,t)=>(Array.isArray(t)?t:[t]).map((t=>e.blocks.tree.get(t))))),be=V(((e,t)=>he(e,t).filter(Boolean).map((e=>e.name))),((e,t)=>he(e,t)));function ve(e,t){return Xe(e,t).length}function _e(e){return e.selection.selectionStart}function ke(e){return e.selection.selectionEnd}function ye(e){return e.selection.selectionStart.clientId}function Ee(e){return e.selection.selectionEnd.clientId}function we(e){const t=Oe(e).length;return t||(e.selection.selectionStart.clientId?1:0)}function Se(e){const{selectionStart:t,selectionEnd:n}=e.selection;return!!t.clientId&&t.clientId===n.clientId}function Ce(e){const{selectionStart:t,selectionEnd:n}=e.selection,{clientId:o}=t;return o&&o===n.clientId?o:null}function xe(e){const t=Ce(e);return t?ae(e,t):null}function Be(e,t){return e.blocks.parents.has(t)?e.blocks.parents.get(t):null}const Ie=V(((e,t,n=!1)=>{const o=[];let r=t;for(;e.blocks.parents.get(r);)r=e.blocks.parents.get(r),o.push(r);return o.length?n?o:o.reverse():ne}),(e=>[e.blocks.parents])),Te=V(((e,t,n,o=!1)=>{const r=Ie(e,t,o),l=Array.isArray(n)?e=>n.includes(e):e=>n===e;return r.filter((t=>l(re(e,t))))}),(e=>[e.blocks.parents]));function Me(e,t){let n,o=t;do{n=o,o=e.blocks.parents.get(o)}while(o);return n}function Pe(e,t){const n=Ce(e),o=[...Ie(e,t),t],r=[...Ie(e,n),n];let l;const i=Math.min(o.length,r.length);for(let e=0;e<i&&o[e]===r[e];e++)l=o[e];return l}function Ne(e,t,n=1){if(void 0===t&&(t=Ce(e)),void 0===t&&(t=n<0?Ve(e):Fe(e)),!t)return null;const o=Be(e,t);if(null===o)return null;const{order:r}=e.blocks,l=r.get(o),i=l.indexOf(t)+1*n;return i<0||i===l.length?null:l[i]}function Le(e,t){return Ne(e,t,-1)}function Re(e,t){return Ne(e,t,1)}function Ae(e){return e.initialPosition}const De=V((e=>{const{selectionStart:t,selectionEnd:n}=e.selection;if(!t.clientId||!n.clientId)return ne;if(t.clientId===n.clientId)return[t.clientId];const o=Be(e,t.clientId);if(null===o)return ne;const r=Xe(e,o),l=r.indexOf(t.clientId),i=r.indexOf(n.clientId);return l>i?r.slice(i,l+1):r.slice(l,i+1)}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function Oe(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?ne:De(e)}const ze=V((e=>{const t=Oe(e);return t.length?t.map((t=>ae(e,t))):ne}),(e=>[...De.getDependants(e),e.blocks.byClientId,e.blocks.order,e.blocks.attributes]));function Ve(e){return Oe(e)[0]||null}function Fe(e){const t=Oe(e);return t[t.length-1]||null}function He(e,t){return Ve(e)===t}function Ge(e,t){return-1!==Oe(e).indexOf(t)}const Ue=V(((e,t)=>{let n=t,o=!1;for(;n&&!o;)n=Be(e,n),o=Ge(e,n);return o}),(e=>[e.blocks.order,e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId]));function $e(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:t.clientId||null}function je(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId===n.clientId?null:n.clientId||null}function We(e){const t=_e(e),n=ke(e);return!t.attributeKey&&!n.attributeKey&&void 0===t.offset&&void 0===n.offset}function Ke(e){const t=_e(e),n=ke(e);return!!t&&!!n&&t.clientId===n.clientId&&t.attributeKey===n.attributeKey&&t.offset===n.offset}function qe(e){return De(e).some((t=>{const n=re(e,t);return!(0,a.getBlockType)(n).merge}))}function Ze(e,t){const n=_e(e),o=ke(e);if(n.clientId===o.clientId)return!1;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return!1;const r=Be(e,n.clientId);if(r!==Be(e,o.clientId))return!1;const l=Xe(e,r);let i,s;l.indexOf(n.clientId)>l.indexOf(o.clientId)?(i=o,s=n):(i=n,s=o);const c=t?s.clientId:i.clientId,u=t?i.clientId:s.clientId,d=re(e,c);if(!(0,a.getBlockType)(d).merge)return!1;const p=ae(e,u);if(p.name===d)return!0;const m=(0,a.switchToBlockType)(p,d);return m&&m.length}const Ye=e=>{const t=_e(e),n=ke(e);if(t.clientId===n.clientId)return ne;if(!t.attributeKey||!n.attributeKey||void 0===t.offset||void 0===n.offset)return ne;const o=Be(e,t.clientId);if(o!==Be(e,n.clientId))return ne;const r=Xe(e,o),l=r.indexOf(t.clientId),i=r.indexOf(n.clientId),[s,c]=l>i?[n,t]:[t,n],u=ae(e,s.clientId),d=(0,a.getBlockType)(u.name),p=ae(e,c.clientId),m=(0,a.getBlockType)(p.name),f=u.attributes[s.attributeKey],g=p.attributes[c.attributeKey],h=d.attributes[s.attributeKey],b=m.attributes[c.attributeKey];let v=(0,G.create)({html:f,...j(h)}),_=(0,G.create)({html:g,...j(b)});return v=(0,G.remove)(v,0,s.offset),_=(0,G.remove)(_,c.offset,_.text.length),[{...u,attributes:{...u.attributes,[s.attributeKey]:(0,G.toHTMLString)({value:v,...j(h)})}},{...p,attributes:{...p.attributes,[c.attributeKey]:(0,G.toHTMLString)({value:_,...j(b)})}}]};function Xe(e,t){return e.blocks.order.get(t||"")||ne}function Qe(e,t){return Xe(e,Be(e,t)).indexOf(t)}function Je(e,t){const{selectionStart:n,selectionEnd:o}=e.selection;return n.clientId===o.clientId&&n.clientId===t}function et(e,t,n=!1){return Xe(e,t).some((t=>Je(e,t)||Ge(e,t)||n&&et(e,t,n)))}function tt(e,t,n=!1){return Xe(e,t).some((t=>ut(e,t)||n&&tt(e,t,n)))}function nt(e,t){if(!t)return!1;const n=Oe(e),o=n.indexOf(t);return o>-1&&o<n.length-1}function ot(e){const{selectionStart:t,selectionEnd:n}=e.selection;return t.clientId!==n.clientId}function rt(e){return e.isMultiSelecting}function lt(e){return e.isSelectionEnabled}function it(e,t){return e.blocksMode[t]||"visual"}function at(e){return e.isTyping}function st(e){return!!e.draggedBlocks.length}function ct(e){return e.draggedBlocks}function ut(e,t){return e.draggedBlocks.includes(t)}function dt(e,t){if(!st(e))return!1;return Ie(e,t).some((t=>ut(e,t)))}function pt(){return $()('wp.data.select( "core/block-editor" ).isCaretWithinFormattedText',{since:"6.1",version:"6.3"}),!1}const mt=V((e=>{let t,n;const{insertionPoint:o,selection:{selectionEnd:r}}=e;if(null!==o)return o;const{clientId:l}=r;return l?(t=Be(e,l)||void 0,n=Qe(e,r.clientId)+1):n=Xe(e).length,{rootClientId:t,index:n}}),(e=>[e.insertionPoint,e.selection.selectionEnd.clientId,e.blocks.parents,e.blocks.order]));function ft(e){return null!==e.insertionPoint}function gt(e){return e.template.isValid}function ht(e){return e.settings.template}function bt(e,t){var n,o;return t?null!==(n=jt(e,t)?.templateLock)&&void 0!==n&&n:null!==(o=e.settings.templateLock)&&void 0!==o&&o}const vt=(e,t,n=null)=>"boolean"==typeof e?e:Array.isArray(e)?!(!e.includes("core/post-content")||null!==t)||e.includes(t):n,_t=(e,t,n=null)=>{let o;if(t&&"object"==typeof t?(o=t,t=o.name):o=(0,a.getBlockType)(t),!o)return!1;const{allowedBlockTypes:r}=Wt(e);if(!vt(r,t,!0))return!1;if(!!bt(e,n))return!1;if("disabled"===Y(e,null!=n?n:""))return!1;const l=jt(e,n);if(n&&void 0===l)return!1;const i=l?.allowedBlocks,c=vt(i,t),u=o.parent,d=re(e,n),p=vt(u,d);let m=!0;const f=o.ancestor;if(f){m=[n,...Ie(e,n)].some((t=>vt(f,re(e,t))))}const g=m&&(null===c&&null===p||!0===c||!0===p);return g?(0,s.applyFilters)("blockEditor.__unstableCanInsertBlockType",g,o,n,{getBlock:ae.bind(null,e),getBlockParentsByBlockName:Te.bind(null,e)}):g},kt=V(_t,((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId.get(n),e.settings.allowedBlockTypes,e.settings.templateLock,e.blockEditingModes]));function yt(e,t,n=null){return t.every((t=>kt(e,re(e,t),n)))}function Et(e,t,n=null){const o=ie(e,t);return null===o||(void 0!==o.lock?.remove?!o.lock.remove:!bt(e,n)&&"disabled"!==Y(e,n))}function wt(e,t,n=null){return t.every((t=>Et(e,t,n)))}function St(e,t,n=null){const o=ie(e,t);return null===o||(void 0!==o.lock?.move?!o.lock.move:"all"!==bt(e,n)&&"disabled"!==Y(e,n))}function Ct(e,t,n=null){return t.every((t=>St(e,t,n)))}function xt(e,t){const n=ie(e,t);if(null===n)return!0;const{lock:o}=n;return!o?.edit}function Bt(e,t){return!!(0,a.hasBlockSupport)(t,"lock",!0)&&!!e.settings?.canLockBlocks}function It(e,t){var n;return null!==(n=e.preferences.insertUsage?.[t])&&void 0!==n?n:null}const Tt=(e,t,n)=>!!(0,a.hasBlockSupport)(t,"inserter",!0)&&_t(e,t.name,n),Mt=(e,t)=>{if(!e)return t;const n=Date.now()-e;switch(!0){case n<36e5:return 4*t;case n<864e5:return 2*t;case n<6048e5:return t/2;default:return t/4}},Pt=(e,{buildScope:t="inserter"})=>n=>{const o=n.name;let r=!1;(0,a.hasBlockSupport)(n.name,"multiple",!0)||(r=he(e,me(e)).some((({name:e})=>e===n.name)));const{time:l,count:i=0}=It(e,o)||{},s={id:o,name:n.name,title:n.title,icon:n.icon,isDisabled:r,frecency:Mt(l,i)};if("transform"===t)return s;const c=(0,a.getBlockVariations)(n.name,"inserter");return{...s,initialAttributes:{},description:n.description,category:n.category,keywords:n.keywords,variations:c,example:n.example,utility:1}},Nt=V(((e,t=null)=>{const n=/^\s*<!--\s+(\/)?wp:([a-z][a-z0-9_-]*\/)?([a-z][a-z0-9_-]*)\s+({(?:(?=([^}]+|}+(?=})|(?!}\s+\/?-->)[^])*)\5|[^]*?)}\s+)?(\/)?-->/,o=_t(e,"core/block",t)?Jt(e).filter((e=>"fully"===e.wp_pattern_sync_status||""===e.wp_pattern_sync_status||!e.wp_pattern_sync_status)).map((t=>{let o=H;if("web"===c.Platform.OS){const e=("string"==typeof t.content.raw?t.content.raw:t.content).match(n);if(e){const[,,t="core/",n]=e,r=(0,a.getBlockType)(t+n);r&&(o=r.icon)}}const r=`core/block/${t.id}`,{time:l,count:i=0}=It(e,r)||{},s=Mt(l,i);return{id:r,name:"core/block",initialAttributes:{ref:t.id},title:t.title.raw,icon:o,category:"reusable",keywords:["reusable"],isDisabled:!1,utility:1,frecency:s,content:t.content.raw}})):[],r=Pt(e,{buildScope:"inserter"}),l=(0,a.getBlockTypes)().filter((n=>Tt(e,n,t))).map(r).reduce(((t,n)=>{const{variations:o=[]}=n;if(o.some((({isDefault:e})=>e))||t.push(n),o.length){const r=((e,t)=>n=>{const o=`${t.id}/${n.name}`,{time:r,count:l=0}=It(e,o)||{};return{...t,id:o,icon:n.icon||t.icon,title:n.title||t.title,description:n.description||t.description,category:n.category||t.category,example:n.hasOwnProperty("example")?n.example:t.example,initialAttributes:{...t.initialAttributes,...n.attributes},innerBlocks:n.innerBlocks,keywords:n.keywords||t.keywords,frecency:Mt(r,l)}})(e,n);t.push(...o.map(r))}return t}),[]),{core:i,noncore:s}=l.reduce(((e,t)=>{const{core:n,noncore:o}=e;return(t.name.startsWith("core/")?n:o).push(t),e}),{core:[],noncore:[]});return[...[...i,...s],...o]}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.blocks.order,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,Jt(e),(0,a.getBlockTypes)()])),Lt=V(((e,t,n=null)=>{const o=Array.isArray(t)?t:[t],r=Pt(e,{buildScope:"transform"}),l=(0,a.getBlockTypes)().filter((t=>Tt(e,t,n))).map(r),i=Object.fromEntries(Object.entries(l).map((([,e])=>[e.name,e]))),s=(0,a.getPossibleBlockTransformations)(o).reduce(((e,t)=>(i[t?.name]&&e.push(i[t.name]),e)),[]);return K(s,(e=>i[e.name].frecency),"desc")}),((e,t,n)=>[e.blockListSettings[n],e.blocks.byClientId,e.preferences.insertUsage,e.settings.allowedBlockTypes,e.settings.templateLock,(0,a.getBlockTypes)()])),Rt=V(((e,t=null)=>{if((0,a.getBlockTypes)().some((n=>Tt(e,n,t))))return!0;return _t(e,"core/block",t)&&Jt(e).length>0}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,Jt(e),(0,a.getBlockTypes)()])),At=V(((e,t=null)=>{if(t)return(0,a.getBlockTypes)().filter((n=>Tt(e,n,t)))}),((e,t)=>[e.blockListSettings[t],e.blocks.byClientId,e.settings.allowedBlockTypes,e.settings.templateLock,(0,a.getBlockTypes)()])),Dt=V(((e,t=null)=>($()('wp.data.select( "core/block-editor" ).__experimentalGetAllowedBlocks',{alternative:'wp.data.select( "core/block-editor" ).getAllowedBlocks',since:"6.2",version:"6.4"}),At(e,t))),((e,t)=>[...At.getDependants(e,t)])),Ot=V(((e,t=null)=>{if(!t)return;const n=e.blockListSettings[t]?.__experimentalDefaultBlock,o=e.blockListSettings[t]?.__experimentalDirectInsert;return n&&o?"function"==typeof o?o(ae(e,t))?n:null:n:void 0}),((e,t)=>[e.blockListSettings[t],e.blocks.tree.get(t)]));function zt(e){var t;return(null!==(t=e?.settings?.__experimentalReusableBlocks)&&void 0!==t?t:ne).filter((e=>"unsynced"===e.wp_pattern_sync_status)).map((e=>({name:`core/block/${e.id}`,title:e.title.raw,categories:["custom"],content:e.content.raw})))}const Vt=V(((e,t)=>{const n=[...e.settings.__experimentalBlockPatterns,...zt(e)].find((({name:e})=>e===t));return n?{...n,blocks:(0,a.parse)(n.content,{__unstableSkipMigrationLogs:!0})}:null}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks])),Ft=V((e=>{const t=e.settings.__experimentalBlockPatterns,n=zt(e),{allowedBlockTypes:o}=Wt(e),r=[...t,...n].filter((({inserter:e=!0})=>!!e)).map((({name:t})=>Vt(e,t))),l=r.filter((({blocks:e})=>((e,t)=>{if("boolean"==typeof t)return t;const n=[...e];for(;n.length>0;){const e=n.shift();if(!vt(t,e.name||e.blockName,!0))return!1;e.innerBlocks?.forEach((e=>{n.push(e)}))}return!0})(e,o)));return l}),(e=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks,e.settings.allowedBlockTypes])),Ht=V(((e,t=null)=>{const n=Ft(e).filter((({blocks:n})=>n.every((({name:n})=>kt(e,n,t)))));return n}),((e,t)=>[e.settings.__experimentalBlockPatterns,e.settings.__experimentalReusableBlocks,e.settings.allowedBlockTypes,e.settings.templateLock,e.blockListSettings[t],e.blocks.byClientId.get(t)])),Gt=V(((e,t,n=null)=>{if(!t)return ne;const o=Ht(e,n),r=Array.isArray(t)?t:[t],l=o.filter((e=>e?.blockTypes?.some?.((e=>r.includes(e)))));return 0===l.length?ne:l}),((e,t,n)=>[...Ht.getDependants(e,n)])),Ut=V(((e,t,n=null)=>($()('wp.data.select( "core/block-editor" ).__experimentalGetPatternsByBlockTypes',{alternative:'wp.data.select( "core/block-editor" ).getPatternsByBlockTypes',since:"6.2",version:"6.4"}),Gt(e,t,n))),((e,t,n)=>[...Ht.getDependants(e,n)])),$t=V(((e,t,n=null)=>{if(!t)return ne;if(t.some((({clientId:t,innerBlocks:n})=>n.length||ln(e,t))))return ne;const o=Array.from(new Set(t.map((({name:e})=>e))));return Gt(e,o,n)}),((e,t,n)=>[...Gt.getDependants(e,n)]));function jt(e,t){return e.blockListSettings[t]}function Wt(e){return e.settings}function Kt(e){return e.settings.behaviors}function qt(e){return e.blocks.isPersistentChange}const Zt=V(((e,t=[])=>t.reduce(((t,n)=>e.blockListSettings[n]?{...t,[n]:e.blockListSettings[n]}:t),{})),(e=>[e.blockListSettings])),Yt=V(((e,t)=>{const n=Jt(e).find((e=>e.id===t));return n?n.title?.raw:null}),(e=>[Jt(e)]));function Xt(e){return e.blocks.isIgnoredChange}function Qt(e){return e.lastBlockAttributesChange}function Jt(e){var t;return null!==(t=e?.settings?.__experimentalReusableBlocks)&&void 0!==t?t:ne}function en(e){return"navigation"===e.editorMode}function tn(e){return e.editorMode}function nn(e){return e.hasBlockMovingClientId}function on(e){return!!e.automaticChangeStatus}function rn(e,t){return e.highlightedBlock===t}function ln(e,t){return!!e.blocks.controlledInnerBlocks[t]}const an=V(((e,t)=>{if(!t.length)return null;const n=Ce(e);if(t.includes(re(e,n)))return n;const o=Oe(e),r=Te(e,n||o[0],t);return r?r[r.length-1]:null}),((e,t)=>[e.selection.selectionStart.clientId,e.selection.selectionEnd.clientId,t]));function sn(e,t,n){const{lastBlockInserted:o}=e;return o.clientIds?.includes(t)&&o.source===n}function cn(e,t){var n;return null===(n=e.blockVisibility?.[t])||void 0===n||n}const un=V((e=>{const t=new Set(Object.keys(e.blockVisibility).filter((t=>e.blockVisibility[t])));return 0===t.size?oe:t}),(e=>[e.blockVisibility])),dn=V(((e,t)=>{let n,o=t;for(;e.blocks.parents.has(o);)o=e.blocks.parents.get(o),o&&"contentOnly"===bt(e,o)&&(n=o);return n}),(e=>[e.blocks.parents,e.blockListSettings]));function pn(e){return e.temporarilyEditingAsBlocks}function mn(e,t){if("default"!==Y(e,t))return!1;if(!xt(e,t))return!0;const n=tn(e);if("zoom-out"===n&&t&&!Be(e,t))return!0;const o=(0,a.hasBlockSupport)(re(e,t),"__experimentalDisableBlockOverlay",!1);return("navigation"===n||!o&&ln(e,t))&&!Je(e,t)&&!et(e,t,!0)}function fn(e,t){let n=e.blocks.parents.get(t);for(;n;){if(mn(e,n))return!0;n=e.blocks.parents.get(n)}return!1}const gn=["inserterMediaCategories","blockInspectorAnimation"];function hn(e,t=!1){let n=e;if(t&&"web"===c.Platform.OS){n={};for(const t in e)gn.includes(t)||(n[t]=e[t])}return{type:"UPDATE_SETTINGS",settings:n}}function bn(){return{type:"HIDE_BLOCK_INTERFACE"}}function vn(){return{type:"SHOW_BLOCK_INTERFACE"}}function _n(e="",t){return{type:"SET_BLOCK_EDITING_MODE",clientId:e,mode:t}}function kn(e=""){return{type:"UNSET_BLOCK_EDITING_MODE",clientId:e}}const yn=(e,t=!0,n=!1)=>({select:o,dispatch:r})=>{if(!e||!e.length)return;var l;l=e,e=Array.isArray(l)?l:[l];const i=o.getBlockRootClientId(e[0]);if(!o.canRemoveBlocks(e,i))return;const a=!n&&o.getBlockRemovalRules();if(a){const n=new Set,l=[...e];for(;l.length;){const e=l.shift(),t=o.getBlockName(e);a[t]&&n.add(t);const r=o.getBlockOrder(e);l.push(...r)}if(n.size)return void r(function(e,t,n){return{type:"DISPLAY_BLOCK_REMOVAL_PROMPT",clientIds:e,selectPrevious:t,blockNamesForPrompt:n}}(e,t,Array.from(n)))}t&&r.selectPreviousBlock(e[0],t),r({type:"REMOVE_BLOCKS",clientIds:e}),r(En())},En=()=>({select:e,dispatch:t})=>{if(e.getBlockCount()>0)return;const{__unstableHasCustomAppender:n}=e.getSettings();n||t.insertDefaultBlock()};function wn(){return{type:"CLEAR_BLOCK_REMOVAL_PROMPT"}}function Sn(e=!1){return{type:"SET_BLOCK_REMOVAL_RULES",rules:e}}var Cn=window.wp.a11y;const xn="\86";function Bn(e){if(e)return Object.keys(e).find((t=>{const n=e[t];return"string"==typeof n&&-1!==n.indexOf(xn)}))}const In=e=>Array.isArray(e)?e:[e],Tn=e=>({dispatch:t})=>{t({type:"RESET_BLOCKS",blocks:e}),t(Mn(e))},Mn=e=>({select:t,dispatch:n})=>{const o=t.getTemplate(),r=t.getTemplateLock(),l=!o||"all"!==r||(0,a.doBlocksMatchTemplate)(e,o);if(l!==t.isValidTemplate())return n.setTemplateValidity(l),l};function Pn(e,t,n){return{type:"RESET_SELECTION",selectionStart:e,selectionEnd:t,initialPosition:n}}function Nn(e){return $()('wp.data.dispatch( "core/block-editor" ).receiveBlocks',{since:"5.9",alternative:"resetBlocks or insertBlocks"}),{type:"RECEIVE_BLOCKS",blocks:e}}function Ln(e,t,n=!1){return{type:"UPDATE_BLOCK_ATTRIBUTES",clientIds:In(e),attributes:t,uniqueByBlock:n}}function Rn(e,t){return{type:"UPDATE_BLOCK",clientId:e,updates:t}}function An(e,t=0){return{type:"SELECT_BLOCK",initialPosition:t,clientId:e}}const Dn=(e,t=!1)=>({select:n,dispatch:o})=>{const r=n.getPreviousBlockClientId(e);if(r)o.selectBlock(r,-1);else if(t){const t=n.getBlockRootClientId(e);t&&o.selectBlock(t,-1)}},On=e=>({select:t,dispatch:n})=>{const o=t.getNextBlockClientId(e);o&&n.selectBlock(o)};function zn(){return{type:"START_MULTI_SELECT"}}function Vn(){return{type:"STOP_MULTI_SELECT"}}const Fn=(e,t,n=0)=>({select:o,dispatch:r})=>{if(o.getBlockRootClientId(e)!==o.getBlockRootClientId(t))return;r({type:"MULTI_SELECT",start:e,end:t,initialPosition:n});const l=o.getSelectedBlockCount();(0,Cn.speak)((0,v.sprintf)((0,v._n)("%s block selected.","%s blocks selected.",l),l),"assertive")};function Hn(){return{type:"CLEAR_SELECTED_BLOCK"}}function Gn(e=!0){return{type:"TOGGLE_SELECTION",isSelectionEnabled:e}}function Un(e,t){var n;const o=null!==(n=t?.__experimentalPreferredStyleVariations?.value)&&void 0!==n?n:{};return e.map((e=>{const t=e.name;if(!(0,a.hasBlockSupport)(t,"defaultStylePicker",!0))return e;if(!o[t])return e;const n=e.attributes?.className;if(n?.includes("is-style-"))return e;const{attributes:r={}}=e,l=o[t];return{...e,attributes:{...r,className:`${n||""} is-style-${l}`.trim()}}}))}const $n=(e,t,n,o=0,r)=>({select:l,dispatch:i})=>{e=In(e),t=Un(In(t),l.getSettings());const a=l.getBlockRootClientId(e[0]);for(let e=0;e<t.length;e++){const n=t[e];if(!l.canInsertBlockType(n.name,a))return}i({type:"REPLACE_BLOCKS",clientIds:e,blocks:t,time:Date.now(),indexToSelect:n,initialPosition:o,meta:r}),i(En())};function jn(e,t){return $n(e,t)}const Wn=e=>(t,n)=>({select:o,dispatch:r})=>{o.canMoveBlocks(t,n)&&r({type:e,clientIds:In(t),rootClientId:n})},Kn=Wn("MOVE_BLOCKS_DOWN"),qn=Wn("MOVE_BLOCKS_UP"),Zn=(e,t="",n="",o)=>({select:r,dispatch:l})=>{if(r.canMoveBlocks(e,t)){if(t!==n){if(!r.canRemoveBlocks(e,t))return;if(!r.canInsertBlocks(e,n))return}l({type:"MOVE_BLOCKS_TO_POSITION",fromRootClientId:t,toRootClientId:n,clientIds:e,index:o})}};function Yn(e,t="",n="",o){return Zn([e],t,n,o)}function Xn(e,t,n,o,r){return Qn([e],t,n,o,0,r)}const Qn=(e,t,n,o=!0,r=0,l)=>({select:i,dispatch:a})=>{null!==r&&"object"==typeof r&&(l=r,r=0,$()("meta argument in wp.data.dispatch('core/block-editor')",{since:"5.8",hint:"The meta argument is now the 6th argument of the function"})),e=Un(In(e),i.getSettings());const s=[];for(const t of e){i.canInsertBlockType(t.name,n)&&s.push(t)}s.length&&a({type:"INSERT_BLOCKS",blocks:s,index:t,rootClientId:n,time:Date.now(),updateSelection:o,initialPosition:o?r:null,meta:l})};function Jn(e,t,n={}){const{__unstableWithInserter:o,operation:r}=n;return{type:"SHOW_INSERTION_POINT",rootClientId:e,index:t,__unstableWithInserter:o,operation:r}}const eo=()=>({select:e,dispatch:t})=>{e.isBlockInsertionPointVisible()&&t({type:"HIDE_INSERTION_POINT"})};function to(e){return{type:"SET_TEMPLATE_VALIDITY",isValid:e}}const no=()=>({select:e,dispatch:t})=>{t({type:"SYNCHRONIZE_TEMPLATE"});const n=e.getBlocks(),o=e.getTemplate(),r=(0,a.synchronizeBlocksWithTemplate)(n,o);t.resetBlocks(r)},oo=e=>({registry:t,select:n,dispatch:o})=>{const r=n.getSelectionStart(),l=n.getSelectionEnd();if(r.clientId===l.clientId)return;if(!r.attributeKey||!l.attributeKey||void 0===r.offset||void 0===l.offset)return!1;const i=n.getBlockRootClientId(r.clientId);if(i!==n.getBlockRootClientId(l.clientId))return;const s=n.getBlockOrder(i);let c,u;s.indexOf(r.clientId)>s.indexOf(l.clientId)?(c=l,u=r):(c=r,u=l);const d=e?u:c,p=n.getBlock(d.clientId),m=(0,a.getBlockType)(p.name);if(!m.merge)return;const f=c,g=u,h=n.getBlock(f.clientId),b=(0,a.getBlockType)(h.name),v=n.getBlock(g.clientId),_=(0,a.getBlockType)(v.name),k=h.attributes[f.attributeKey],y=v.attributes[g.attributeKey],E=b.attributes[f.attributeKey],w=_.attributes[g.attributeKey];let S=(0,G.create)({html:k,...j(E)}),C=(0,G.create)({html:y,...j(w)});S=(0,G.remove)(S,f.offset,S.text.length),C=(0,G.insert)(C,xn,0,g.offset);const x=(0,a.cloneBlock)(h,{[f.attributeKey]:(0,G.toHTMLString)({value:S,...j(E)})}),B=(0,a.cloneBlock)(v,{[g.attributeKey]:(0,G.toHTMLString)({value:C,...j(w)})}),I=e?x:B,T=h.name===v.name?[I]:(0,a.switchToBlockType)(I,m.name);if(!T||!T.length)return;let M;if(e){const e=T.pop();M=m.merge(e.attributes,B.attributes)}else{const e=T.shift();M=m.merge(x.attributes,e.attributes)}const P=Bn(M),N=M[P],L=(0,G.create)({html:N,...j(m.attributes[P])}),R=L.text.indexOf(xn),A=(0,G.remove)(L,R,R+1),D=(0,G.toHTMLString)({value:A,...j(m.attributes[P])});M[P]=D;const O=n.getSelectedBlockClientIds(),z=[...e?T:[],{...p,attributes:{...p.attributes,...M}},...e?[]:T];t.batch((()=>{o.selectionChange(p.clientId,P,R,R),o.replaceBlocks(O,z,0,n.getSelectedBlocksInitialCaretPosition())}))},ro=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();if(n.clientId===o.clientId)return;if(!n.attributeKey||!o.attributeKey||void 0===n.offset||void 0===o.offset)return;const r=e.getBlockRootClientId(n.clientId);if(r!==e.getBlockRootClientId(o.clientId))return;const l=e.getBlockOrder(r);let i,s;l.indexOf(n.clientId)>l.indexOf(o.clientId)?(i=o,s=n):(i=n,s=o);const c=i,u=s,d=e.getBlock(c.clientId),p=(0,a.getBlockType)(d.name),m=e.getBlock(u.clientId),f=(0,a.getBlockType)(m.name),g=d.attributes[c.attributeKey],h=m.attributes[u.attributeKey],b=p.attributes[c.attributeKey],v=f.attributes[u.attributeKey];let _=(0,G.create)({html:g,...j(b)}),k=(0,G.create)({html:h,...j(v)});_=(0,G.remove)(_,c.offset,_.text.length),k=(0,G.remove)(k,0,u.offset),t.replaceBlocks(e.getSelectedBlockClientIds(),[{...d,attributes:{...d.attributes,[c.attributeKey]:(0,G.toHTMLString)({value:_,...j(b)})}},(0,a.createBlock)((0,a.getDefaultBlockName)()),{...m,attributes:{...m.attributes,[u.attributeKey]:(0,G.toHTMLString)({value:k,...j(v)})}}],1,e.getSelectedBlocksInitialCaretPosition())},lo=()=>({select:e,dispatch:t})=>{const n=e.getSelectionStart(),o=e.getSelectionEnd();t.selectionChange({start:{clientId:n.clientId},end:{clientId:o.clientId}})},io=(e,t)=>({registry:n,select:o,dispatch:r})=>{const l=[e,t];r({type:"MERGE_BLOCKS",blocks:l});const[i,s]=l,c=o.getBlock(i),u=(0,a.getBlockType)(c.name);if(!u)return;const d=o.getBlock(s);if(u&&!u.merge){const e=(0,a.switchToBlockType)(d,u.name);if(1!==e?.length)return void r.selectBlock(c.clientId);const[t]=e;return t.innerBlocks.length<1?void r.selectBlock(c.clientId):void n.batch((()=>{r.insertBlocks(t.innerBlocks,void 0,i),r.removeBlock(s),r.selectBlock(t.innerBlocks[0].clientId)}))}const p=(0,a.getBlockType)(d.name),{clientId:m,attributeKey:f,offset:g}=o.getSelectionStart(),h=(m===i?u:p).attributes[f],b=(m===i||m===s)&&void 0!==f&&void 0!==g&&!!h;h||("number"==typeof f?window.console.error("RichText needs an identifier prop that is the block attribute key of the attribute it controls. Its type is expected to be a string, but was "+typeof f):window.console.error("The RichText identifier prop does not match any attributes defined by the block."));const v=(0,a.cloneBlock)(c),_=(0,a.cloneBlock)(d);if(b){const e=m===i?v:_,t=e.attributes[f],n=(0,G.insert)((0,G.create)({html:t,...j(h)}),xn,g,g);e.attributes[f]=(0,G.toHTMLString)({value:n,...j(h)})}const k=c.name===d.name?[_]:(0,a.switchToBlockType)(_,c.name);if(!k||!k.length)return;const y=u.merge(v.attributes,k[0].attributes);if(b){const e=Bn(y),t=y[e],n=(0,G.create)({html:t,...j(u.attributes[e])}),o=n.text.indexOf(xn),l=(0,G.remove)(n,o,o+1),i=(0,G.toHTMLString)({value:l,...j(u.attributes[e])});y[e]=i,r.selectionChange(c.clientId,e,o,o)}r.replaceBlocks([c.clientId,d.clientId],[{...c,attributes:{...c.attributes,...y}},...k.slice(1)],0)},ao=(e,t=!0)=>yn(e,t);function so(e,t){return ao([e],t)}function co(e,t,n=!1,o=0){return{type:"REPLACE_INNER_BLOCKS",rootClientId:e,blocks:t,updateSelection:n,initialPosition:n?o:null,time:Date.now()}}function uo(e){return{type:"TOGGLE_BLOCK_MODE",clientId:e}}function po(){return{type:"START_TYPING"}}function mo(){return{type:"STOP_TYPING"}}function fo(e=[]){return{type:"START_DRAGGING_BLOCKS",clientIds:e}}function go(){return{type:"STOP_DRAGGING_BLOCKS"}}function ho(){return $()('wp.data.dispatch( "core/block-editor" ).enterFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function bo(){return $()('wp.data.dispatch( "core/block-editor" ).exitFormattedText',{since:"6.1",version:"6.3"}),{type:"DO_NOTHING"}}function vo(e,t,n,o){return"string"==typeof e?{type:"SELECTION_CHANGE",clientId:e,attributeKey:t,startOffset:n,endOffset:o}:{type:"SELECTION_CHANGE",...e}}const _o=(e,t,n)=>({dispatch:o})=>{const r=(0,a.getDefaultBlockName)();if(!r)return;const l=(0,a.createBlock)(r,e);return o.insertBlock(l,n,t)};function ko(e,t){return{type:"UPDATE_BLOCK_LIST_SETTINGS",clientId:e,settings:t}}function yo(e){return hn(e,!0)}function Eo(e,t){return{type:"SAVE_REUSABLE_BLOCK_SUCCESS",id:e,updatedId:t}}function wo(){return{type:"MARK_LAST_CHANGE_AS_PERSISTENT"}}function So(){return{type:"MARK_NEXT_CHANGE_AS_NOT_PERSISTENT"}}const Co=()=>({dispatch:e})=>{e({type:"MARK_AUTOMATIC_CHANGE"});const{requestIdleCallback:t=(e=>setTimeout(e,100))}=window;t((()=>{e({type:"MARK_AUTOMATIC_CHANGE_FINAL"})}))},xo=(e=!0)=>({dispatch:t})=>{t.__unstableSetEditorMode(e?"navigation":"edit")},Bo=e=>({dispatch:t,select:n})=>{if("zoom-out"===e){const e=n.getBlockSelectionStart();e&&t.selectBlock(n.getBlockHierarchyRootClientId(e))}t({type:"SET_EDITOR_MODE",mode:e}),"navigation"===e?(0,Cn.speak)((0,v.__)("You are currently in navigation mode. Navigate blocks using the Tab key and Arrow keys. Use Left and Right Arrow keys to move between nesting levels. To exit navigation mode and edit the selected block, press Enter.")):"edit"===e?(0,Cn.speak)((0,v.__)("You are currently in edit mode. To return to the navigation mode, press Escape.")):"zoom-out"===e&&(0,Cn.speak)((0,v.__)("You are currently in zoom-out mode."))},Io=(e=null)=>({dispatch:t})=>{t({type:"SET_BLOCK_MOVING_MODE",hasBlockMovingClientId:e}),e&&(0,Cn.speak)((0,v.__)("Use the Tab key and Arrow keys to choose new block location. Use Left and Right Arrow keys to move between nesting levels. Once location is selected press Enter or Space to move the block."))},To=(e,t=!0)=>({select:n,dispatch:o})=>{if(!e||!e.length)return;const r=n.getBlocksByClientId(e);if(r.some((e=>!e)))return;const l=r.map((e=>e.name));if(l.some((e=>!(0,a.hasBlockSupport)(e,"multiple",!0))))return;const i=n.getBlockRootClientId(e[0]),s=In(e),c=n.getBlockIndex(s[s.length-1]),u=r.map((e=>(0,a.__experimentalCloneSanitizedBlock)(e)));return o.insertBlocks(u,c+1,i,t),u.length>1&&t&&o.multiSelect(u[0].clientId,u[u.length-1].clientId),u.map((e=>e.clientId))},Mo=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e);return n.insertDefaultBlock({},o,r)},Po=e=>({select:t,dispatch:n})=>{if(!e)return;const o=t.getBlockRootClientId(e);if(t.getTemplateLock(o))return;const r=t.getBlockIndex(e);return n.insertDefaultBlock({},o,r+1)};function No(e,t){return{type:"TOGGLE_BLOCK_HIGHLIGHT",clientId:e,isHighlighted:t}}const Lo=e=>async({dispatch:t})=>{t(No(e,!0)),await new Promise((e=>setTimeout(e,150))),t(No(e,!1))};function Ro(e,t){return{type:"SET_HAS_CONTROLLED_INNER_BLOCKS",hasControlledInnerBlocks:t,clientId:e}}function Ao(e){return{type:"SET_BLOCK_VISIBILITY",updates:e}}function Do(e){return{type:"SET_TEMPORARILY_EDITING_AS_BLOCKS",temporarilyEditingAsBlocks:e}}const Oo="core/block-editor";var zo=window.wp.privateApis;const{lock:Vo,unlock:Fo}=(0,zo.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/block-editor"),Ho={reducer:A,selectors:t,actions:l},Go=(0,f.createReduxStore)(Oo,{...Ho,persist:["preferences"]}),Uo=(0,f.registerStore)(Oo,{...Ho,persist:["preferences"]});Fo(Uo).registerPrivateActions(r),Fo(Uo).registerPrivateSelectors(e),Fo(Go).registerPrivateActions(r),Fo(Go).registerPrivateSelectors(e);const $o={name:"",isSelected:!1},jo=(0,c.createContext)($o),{Provider:Wo}=jo;function Ko(){return(0,c.useContext)(jo)}function qo(){const{isSelected:e,clientId:t,name:n}=Ko();return(0,f.useSelect)((o=>{if(e)return!0;const{getBlockName:r,isFirstMultiSelectedBlock:l,getMultiSelectedBlockClientIds:i}=o(Go);return!!l(t)&&i().every((e=>r(e)===n))}),[t,e,n])}function Zo({group:e="default",controls:t,children:n,__experimentalShareWithChildBlocks:o=!1}){const r=function(e,t){const n=qo(),{clientId:o}=Ko(),r=(0,f.useSelect)((e=>{const{getBlockName:n,hasSelectedInnerBlock:r}=e(Go),{hasBlockSupport:l}=e(a.store);return t&&l(n(o),"__experimentalExposeControlsToChildren",!1)&&r(o)}),[t,o]);return n?g[e]?.Fill:r?g.parent.Fill:null}(e,o);if(!r)return null;const l=(0,c.createElement)(c.Fragment,null,"default"===e&&(0,c.createElement)(m.ToolbarGroup,{controls:t}),n);return(0,c.createElement)(m.__experimentalStyleProvider,{document:document},(0,c.createElement)(r,null,(e=>{const{forwardedContext:t=[]}=e;return t.reduce(((e,[t,n])=>(0,c.createElement)(t,{...n},e)),l)})))}window.wp.warning;const{ComponentsContext:Yo}=Fo(m.privateApis);function Xo({group:e="default",...t}){const n=(0,c.useContext)(m.__experimentalToolbarContext),o=(0,c.useContext)(Yo),r=(0,c.useMemo)((()=>({forwardedContext:[[m.__experimentalToolbarContext.Provider,{value:n}],[Yo.Provider,{value:o}]]})),[n,o]),l=g[e]?.Slot,i=(0,m.__experimentalUseSlotFills)(l?.__unstableName);if(!l)return"undefined"!=typeof process&&process.env,null;if(!i?.length)return null;const a=(0,c.createElement)(l,{...t,bubblesVirtually:!0,fillProps:r});return"default"===e?a:(0,c.createElement)(m.ToolbarGroup,null,a)}const Qo=Zo;Qo.Slot=Xo;const Jo=e=>(0,c.createElement)(Zo,{group:"inline",...e});Jo.Slot=e=>(0,c.createElement)(Xo,{group:"inline",...e});var er=Qo;var tr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9 9v6h11V9H9zM4 20h1.5V4H4v16z"}));var nr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M12.5 15v5H11v-5H4V9h7V4h1.5v5h7v6h-7Z"}));var or=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M4 15h11V9H4v6zM18.5 4v16H20V4h-1.5z"}));var rr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9 15h6V9H9v6zm-5 5h1.5V4H4v16zM18.5 4v16H20V4h-1.5z"}));var lr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M4 4H5.5V20H4V4ZM7 10L17 10V14L7 14V10ZM20 4H18.5V20H20V4Z"}));var ir=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}));var ar=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m16.5 13.5-3.7 3.7V4h-1.5v13.2l-3.8-3.7-1 1 5.5 5.6 5.5-5.6z"}));const sr={default:{name:"default",slug:"flow",className:"is-layout-flow",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}}],spacingStyles:[{selector:" > :first-child:first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child:last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},constrained:{name:"constrained",slug:"constrained",className:"is-layout-constrained",baseStyles:[{selector:" > .alignleft",rules:{float:"left","margin-inline-start":"0","margin-inline-end":"2em"}},{selector:" > .alignright",rules:{float:"right","margin-inline-start":"2em","margin-inline-end":"0"}},{selector:" > .aligncenter",rules:{"margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > :where(:not(.alignleft):not(.alignright):not(.alignfull))",rules:{"max-width":"var(--wp--style--global--content-size)","margin-left":"auto !important","margin-right":"auto !important"}},{selector:" > .alignwide",rules:{"max-width":"var(--wp--style--global--wide-size)"}}],spacingStyles:[{selector:" > :first-child:first-child",rules:{"margin-block-start":"0"}},{selector:" > :last-child:last-child",rules:{"margin-block-end":"0"}},{selector:" > *",rules:{"margin-block-start":null,"margin-block-end":"0"}}]},flex:{name:"flex",slug:"flex",className:"is-layout-flex",displayMode:"flex",baseStyles:[{selector:"",rules:{"flex-wrap":"wrap","align-items":"center"}},{selector:" > *",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]},grid:{name:"grid",slug:"grid",className:"is-layout-grid",displayMode:"grid",baseStyles:[{selector:" > *",rules:{margin:"0"}}],spacingStyles:[{selector:"",rules:{gap:null}}]}};function cr(e,t=""){return e.split(",").map((e=>`.editor-styles-wrapper ${e}${t?` ${t}`:""}`)).join(",")}function ur(e,t=sr,n,o){let r="";return t?.[n]?.spacingStyles?.length&&o&&t[n].spacingStyles.forEach((t=>{r+=`${cr(e,t.selector.trim())} { `,r+=Object.entries(t.rules).map((([e,t])=>`${e}: ${t||o}`)).join("; "),r+="; }"})),r}function dr(e){const{contentSize:t,wideSize:n,type:o="default"}=e,r={},l=/^(?!0)\d+(px|em|rem|vw|vh|%)?$/i;return l.test(t)&&"constrained"===o&&(r.none=(0,v.sprintf)((0,v.__)("Max %s wide"),t)),l.test(n)&&(r.wide=(0,v.sprintf)((0,v.__)("Max %s wide"),n)),r}var pr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM7 20.5h10V19H7v1.5zM19 7v10h1.5V7H19zM7 5h10V3.5H7V5z",style:{fill:"#1e1e1e"}}));var mr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M8.2 5.3h8V3.8h-8v1.5zm0 14.5h8v-1.5h-8v1.5zm3.5-6.5h1v-1h-1v1zm1-6.5h-1v.5h1v-.5zm-1 4.5h1v-1h-1v1zm0-2h1v-1h-1v1zm0 7.5h1v-.5h-1v.5zm1-2.5h-1v1h1v-1zm-8.5 1.5h1.5v-8H4.2v8zm14.5-8v8h1.5v-8h-1.5zm-5 4.5v-1h-1v1h1zm-6.5 0h.5v-1h-.5v1zm3.5-1v1h1v-1h-1zm6 1h.5v-1h-.5v1zm-8-1v1h1v-1h-1zm6 0v1h1v-1h-1z",style:{fill:"#1e1e1e",fillRule:"evenodd",clipRule:"evenodd"}}));var fr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM19 7v10h1.5V7H19z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(F.Path,{d:"M7 20.5h10V19H7v1.5zm0-17V5h10V3.5H7z",style:{fill:"#1e1e1e",opacity:.1}}));var gr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM19 7v10h1.5V7H19z",style:{fill:"#1e1e1e",opacity:.1}}),(0,c.createElement)(F.Path,{d:"M7 20.5h10V19H7v1.5zm0-17V5h10V3.5H7z",style:{fill:"#1e1e1e"}}));var hr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM7 20.5h10V19H7v1.5zM19 7v10h1.5V7H19z",style:{fill:"#1e1e1e",opacity:.1}}),(0,c.createElement)(F.Path,{d:"M7 5h10V3.5H7V5z",style:{fill:"#1e1e1e"}}));var br=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20.5 7H19v10h1.5V7z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM7 20.5h10V19H7v1.5zm0-17V5h10V3.5H7z",style:{fill:"#1e1e1e",opacity:.1}}));var vr=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7 20.5h10V19H7v1.5z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(F.Path,{d:"M3.5 17H5V7H3.5v10zM19 7v10h1.5V7H19zM7 5h10V3.5H7V5z",style:{fill:"#1e1e1e",opacity:.1}}));const _r=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M5 17H3.5V7H5v10z",style:{fill:"#1e1e1e"}}),(0,c.createElement)(F.Path,{d:"M7 20.5h10V19H7v1.5zM19 7v10h1.5V7H19zM7 5h10V3.5H7V5z",style:{fill:"#1e1e1e",opacity:.1}}));const kr=["top","right","bottom","left"],yr={top:void 0,right:void 0,bottom:void 0,left:void 0},Er={custom:pr,axial:mr,horizontal:fr,vertical:gr,top:hr,right:br,bottom:vr,left:_r},wr={default:(0,v.__)("Spacing control"),top:(0,v.__)("Top"),bottom:(0,v.__)("Bottom"),left:(0,v.__)("Left"),right:(0,v.__)("Right"),mixed:(0,v.__)("Mixed"),vertical:(0,v.__)("Vertical"),horizontal:(0,v.__)("Horizontal"),axial:(0,v.__)("Horizontal & vertical"),custom:(0,v.__)("Custom")},Sr={axial:"axial",top:"top",right:"right",bottom:"bottom",left:"left",custom:"custom"};function Cr(e){return!!e?.includes&&("0"===e||e.includes("var:preset|spacing|"))}function xr(e,t){if(!Cr(e))return e;const n=Tr(e),o=t.find((e=>String(e.slug)===n));return o?.size}function Br(e,t){if(!e||Cr(e)||"0"===e)return e;const n=t.find((t=>String(t.size)===String(e)));return n?.slug?`var:preset|spacing|${n.slug}`:e}function Ir(e){if(!e)return;const t=e.match(/var:preset\|spacing\|(.+)/);return t?`var(--wp--preset--spacing--${t[1]})`:e}function Tr(e){if(!e)return;if("0"===e||"default"===e)return e;const t=e.match(/var:preset\|spacing\|(.+)/);return t?t[1]:void 0}function Mr(e,t){if(!e||!e.length)return!1;const n=e.includes("horizontal")||e.includes("left")&&e.includes("right"),o=e.includes("vertical")||e.includes("top")&&e.includes("bottom");return"horizontal"===t?n:"vertical"===t?o:n||o}function Pr(e,t="0"){const n=function(e){if(!e)return null;const t="string"==typeof e;return{top:t?e:e?.top,left:t?e:e?.left}}(e);if(!n)return null;const o=Ir(n?.top)||t,r=Ir(n?.left)||t;return o===r?o:`${o} ${r}`}const Nr=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M15 4H9v11h6V4zM4 18.5V20h16v-1.5H4z"})),Lr=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M20 11h-5V4H9v7H4v1.5h5V20h6v-7.5h5z"})),Rr=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M9 20h6V9H9v11zM4 4v1.5h16V4H4z"})),Ar=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M4 4L20 4L20 5.5L4 5.5L4 4ZM10 7L14 7L14 17L10 17L10 7ZM20 18.5L4 18.5L4 20L20 20L20 18.5Z"})),Dr=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M7 4H17V8L7 8V4ZM7 16L17 16V20L7 20V16ZM20 11.25H4V12.75H20V11.25Z"})),Or={top:{icon:Rr,title:(0,v._x)("Align top","Block vertical alignment setting")},center:{icon:Lr,title:(0,v._x)("Align middle","Block vertical alignment setting")},bottom:{icon:Nr,title:(0,v._x)("Align bottom","Block vertical alignment setting")},stretch:{icon:Ar,title:(0,v._x)("Stretch to fill","Block vertical alignment setting")},"space-between":{icon:Dr,title:(0,v._x)("Space between","Block vertical alignment setting")}},zr=["top","center","bottom"];var Vr=function({value:e,onChange:t,controls:n=zr,isCollapsed:o=!0,isToolbar:r}){const l=Or[e],i=Or.top,a=r?m.ToolbarGroup:m.ToolbarDropdownMenu,s=r?{isCollapsed:o}:{};return(0,c.createElement)(a,{icon:l?l.icon:i.icon,label:(0,v._x)("Change vertical alignment","Block vertical alignment setting label"),controls:n.map((n=>{return{...Or[n],isActive:e===n,role:o?"menuitemradio":void 0,onClick:(r=n,()=>t(e===r?void 0:r))};var r})),...s})};const Fr=e=>(0,c.createElement)(Vr,{...e,isToolbar:!1}),Hr=e=>(0,c.createElement)(Vr,{...e,isToolbar:!0}),Gr={left:tr,center:nr,right:or,"space-between":rr,stretch:lr};var Ur=function({allowedControls:e=["left","center","right","space-between"],isCollapsed:t=!0,onChange:n,value:o,popoverProps:r,isToolbar:l}){const i=e=>{n(e===o?void 0:e)},a=o?Gr[o]:Gr.left,s=[{name:"left",icon:tr,title:(0,v.__)("Justify items left"),isActive:"left"===o,onClick:()=>i("left")},{name:"center",icon:nr,title:(0,v.__)("Justify items center"),isActive:"center"===o,onClick:()=>i("center")},{name:"right",icon:or,title:(0,v.__)("Justify items right"),isActive:"right"===o,onClick:()=>i("right")},{name:"space-between",icon:rr,title:(0,v.__)("Space between items"),isActive:"space-between"===o,onClick:()=>i("space-between")},{name:"stretch",icon:lr,title:(0,v.__)("Stretch items"),isActive:"stretch"===o,onClick:()=>i("stretch")}],u=l?m.ToolbarGroup:m.ToolbarDropdownMenu,d=l?{isCollapsed:t}:{};return(0,c.createElement)(u,{icon:a,popoverProps:r,label:(0,v.__)("Change items justification"),controls:s.filter((t=>e.includes(t.name))),...d})};const $r=e=>(0,c.createElement)(Ur,{...e,isToolbar:!1}),jr=e=>(0,c.createElement)(Ur,{...e,isToolbar:!0});var Wr=window.lodash;const Kr=["color","border","dimensions","typography","spacing"],qr={"color.palette":e=>e.colors,"color.gradients":e=>e.gradients,"color.custom":e=>void 0===e.disableCustomColors?void 0:!e.disableCustomColors,"color.customGradient":e=>void 0===e.disableCustomGradients?void 0:!e.disableCustomGradients,"typography.fontSizes":e=>e.fontSizes,"typography.customFontSize":e=>void 0===e.disableCustomFontSizes?void 0:!e.disableCustomFontSizes,"typography.lineHeight":e=>e.enableCustomLineHeight,"spacing.units":e=>{if(void 0!==e.enableCustomUnits)return!0===e.enableCustomUnits?["px","em","rem","vh","vw","%"]:e.enableCustomUnits},"spacing.padding":e=>e.enableCustomSpacing},Zr={"border.customColor":"border.color","border.customStyle":"border.style","border.customWidth":"border.width","typography.customFontStyle":"typography.fontStyle","typography.customFontWeight":"typography.fontWeight","typography.customLetterSpacing":"typography.letterSpacing","typography.customTextDecorations":"typography.textDecoration","typography.customTextTransforms":"typography.textTransform","border.customRadius":"border.radius","spacing.customMargin":"spacing.margin","spacing.customPadding":"spacing.padding","typography.customLineHeight":"typography.lineHeight"},Yr=e=>Zr[e]||e;function Xr(e){const{name:t,clientId:n}=Ko();return(0,f.useSelect)((o=>{if(Kr.includes(e))return void console.warn("Top level useSetting paths are disabled. Please use a subpath to query the information needed.");let r=(0,s.applyFilters)("blockEditor.useSetting.before",void 0,e,n,t);if(void 0!==r)return r;const l=Yr(e),i=[n,...o(Go).getBlockParents(n,!0)];for(const e of i){const n=o(Go).getBlockName(e);if((0,a.hasBlockSupport)(n,"__experimentalSettings",!1)){var c;const n=o(Go).getBlockAttributes(e);if(r=null!==(c=(0,Wr.get)(n,`settings.blocks.${t}.${l}`))&&void 0!==c?c:(0,Wr.get)(n,`settings.${l}`),void 0!==r)break}}const u=o(Go).getSettings();if(void 0===r){var d;const e=`__experimentalFeatures.${l}`,n=`__experimentalFeatures.blocks.${t}.${l}`;r=null!==(d=(0,Wr.get)(u,n))&&void 0!==d?d:(0,Wr.get)(u,e)}var p,m;if(void 0!==r)return a.__EXPERIMENTAL_PATHS_WITH_MERGE[l]?null!==(p=null!==(m=r.custom)&&void 0!==m?m:r.theme)&&void 0!==p?p:r.default:r;const f=qr[l]?qr[l](u):void 0;return void 0!==f?f:"typography.dropCap"===l||void 0}),[t,n,e])}const Qr="1600px",Jr="320px",el=1,tl=.25,nl=.75,ol="14px";function rl({minimumFontSize:e,maximumFontSize:t,fontSize:n,minimumViewPortWidth:o=Jr,maximumViewPortWidth:r=Qr,scaleFactor:l=el,minimumFontSizeLimit:i}){if(i=ll(i)?i:ol,n){const o=ll(n);if(!o?.unit)return null;const r=ll(i,{coerceTo:o.unit});if(r?.value&&!e&&!t&&o?.value<=r?.value)return null;if(t||(t=`${o.value}${o.unit}`),!e){const t="px"===o.unit?o.value:16*o.value,n=Math.min(Math.max(1-.075*Math.log2(t),tl),nl),l=il(o.value*n,3);e=r?.value&&l<r?.value?`${r.value}${r.unit}`:`${l}${o.unit}`}}const a=ll(e),s=a?.unit||"rem",c=ll(t,{coerceTo:s});if(!a||!c)return null;const u=ll(e,{coerceTo:"rem"}),d=ll(r,{coerceTo:s}),p=ll(o,{coerceTo:s});if(!d||!p||!u)return null;const m=il(p.value/100,3),f=il(m,3)+s,g=il(((c.value-a.value)/(d.value-p.value)*100||1)*l,3);return`clamp(${e}, ${`${u.value}${u.unit} + ((1vw - ${f}) * ${g})`}, ${t})`}function ll(e,t={}){if("string"!=typeof e&&"number"!=typeof e)return null;isFinite(e)&&(e=`${e}px`);const{coerceTo:n,rootSizeValue:o,acceptableUnits:r}={coerceTo:"",rootSizeValue:16,acceptableUnits:["rem","px","em"],...t},l=r?.join("|"),i=new RegExp(`^(\\d*\\.?\\d+)(${l}){1,1}$`),a=e.match(i);if(!a||a.length<3)return null;let[,s,c]=a,u=parseFloat(s);return"px"!==n||"em"!==c&&"rem"!==c||(u*=o,c=n),"px"!==c||"em"!==n&&"rem"!==n||(u/=o,c=n),"em"!==n&&"rem"!==n||"em"!==c&&"rem"!==c||(c=n),{value:il(u,3),unit:c}}function il(e,t=3){const n=Math.pow(10,t);return Number.isFinite(e)?parseFloat(Math.round(e*n)/n):void 0}function al(e,t){const{size:n}=e;if(!sl(t))return n;if(!n||"0"===n||!1===e?.fluid)return n;const o="object"==typeof t?.fluid?t?.fluid:{},r=rl({minimumFontSize:e?.fluid?.min,maximumFontSize:e?.fluid?.max,fontSize:n,minimumFontSizeLimit:o?.minFontSize,maximumViewPortWidth:o?.maxViewPortWidth});return r||n}function sl(e){const t=e?.fluid;return!0===t||t&&"object"==typeof t&&Object.keys(t).length>0}function cl(e){const t=e?.typography,n=e?.layout,o=ll(n?.wideSize)?n?.wideSize:null;return sl(t)&&o?{fluid:{maxViewPortWidth:o,...t.fluid}}:{fluid:t?.fluid}}const ul="body",dl=[{path:["color","palette"],valueKey:"color",cssVarInfix:"color",classes:[{classSuffix:"color",propertyName:"color"},{classSuffix:"background-color",propertyName:"background-color"},{classSuffix:"border-color",propertyName:"border-color"}]},{path:["color","gradients"],valueKey:"gradient",cssVarInfix:"gradient",classes:[{classSuffix:"gradient-background",propertyName:"background"}]},{path:["color","duotone"],valueKey:"colors",cssVarInfix:"duotone",valueFunc:({slug:e})=>`url( '#wp-duotone-${e}' )`,classes:[]},{path:["shadow","presets"],valueKey:"shadow",cssVarInfix:"shadow",classes:[]},{path:["typography","fontSizes"],valueFunc:(e,t)=>al(e,cl(t)),valueKey:"size",cssVarInfix:"font-size",classes:[{classSuffix:"font-size",propertyName:"font-size"}]},{path:["typography","fontFamilies"],valueKey:"fontFamily",cssVarInfix:"font-family",classes:[{classSuffix:"font-family",propertyName:"font-family"}]},{path:["spacing","spacingSizes"],valueKey:"size",cssVarInfix:"spacing",valueFunc:({size:e})=>e,classes:[]}],pl={"color.background":"color","color.text":"color","filter.duotone":"duotone","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.caption.color.text":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",shadow:"shadow","typography.fontSize":"font-size","typography.fontFamily":"font-family"};function ml(e,t,n,o,r){const l=[(0,Wr.get)(e,["blocks",t,...n]),(0,Wr.get)(e,n)];for(const i of l)if(i){const l=["custom","theme","default"];for(const a of l){const l=i[a];if(l){const i=l.find((e=>e[o]===r));if(i){if("slug"===o)return i;return ml(e,t,n,"slug",i.slug)[o]===i[o]?i:void 0}}}}}function fl(e,t,n){if(!n||"string"!=typeof n){if(!n?.ref||"string"!=typeof n?.ref)return n;{const t=n.ref.split(".");if(!(n=(0,Wr.get)(e,t))||n?.ref)return n}}const o="var:",r="var(--wp--";let l;if(n.startsWith(o))l=n.slice(4).split("|");else{if(!n.startsWith(r)||!n.endsWith(")"))return n;l=n.slice(10,-1).split("--")}const[i,...a]=l;return"preset"===i?function(e,t,n,[o,r]){const l=dl.find((e=>e.cssVarInfix===o));if(!l)return n;const i=ml(e.settings,t,l.path,"slug",r);if(i){const{valueKey:n}=l;return fl(e,t,i[n])}return n}(e,t,n,a):"custom"===i?function(e,t,n,o){var r;const l=null!==(r=(0,Wr.get)(e.settings,["blocks",t,"custom",...o]))&&void 0!==r?r:(0,Wr.get)(e.settings,["custom",...o]);return l?fl(e,t,l):n}(e,t,n,a):n}function gl(e,t){const n=e.split(","),o=t.split(","),r=[];return n.forEach((e=>{o.forEach((t=>{r.push(`${e.trim()} ${t.trim()}`)}))})),r.join(", ")}function hl(e,t){return"object"!=typeof e||"object"!=typeof t?e===t:b()(e?.styles,t?.styles)&&b()(e?.settings,t?.settings)}const bl=(0,c.createContext)({user:{},base:{},merged:{},setUserConfig:()=>{}}),vl={settings:{},styles:{}},_l=["appearanceTools","useRootPaddingAwareAlignments","border.color","border.radius","border.style","border.width","shadow.presets","shadow.defaultPresets","color.background","color.button","color.caption","color.custom","color.customDuotone","color.customGradient","color.defaultDuotone","color.defaultGradients","color.defaultPalette","color.duotone","color.gradients","color.heading","color.link","color.palette","color.text","custom","dimensions.minHeight","layout.contentSize","layout.definitions","layout.wideSize","position.fixed","position.sticky","spacing.customSpacingSize","spacing.spacingSizes","spacing.spacingScale","spacing.blockGap","spacing.margin","spacing.padding","spacing.units","typography.fluid","typography.customFontSize","typography.dropCap","typography.fontFamilies","typography.fontSizes","typography.fontStyle","typography.fontWeight","typography.letterSpacing","typography.lineHeight","typography.textColumns","typography.textDecoration","typography.textTransform"],kl=()=>{const{user:e,setUserConfig:t}=(0,c.useContext)(bl);return[!!e&&!b()(e,vl),(0,c.useCallback)((()=>t((()=>vl))),[t])]};function yl(e,t,n="all"){const{setUserConfig:o,...r}=(0,c.useContext)(bl),l=t?".blocks."+t:"",i=e?"."+e:"",a=`settings${l}${i}`,s=`settings${i}`,u="all"===n?"merged":n;return[(0,c.useMemo)((()=>{const t=r[u];if(!t)throw"Unsupported source";var n;if(e)return null!==(n=(0,Wr.get)(t,a))&&void 0!==n?n:(0,Wr.get)(t,s);const o={};return _l.forEach((e=>{var n;const r=null!==(n=(0,Wr.get)(t,`settings${l}.${e}`))&&void 0!==n?n:(0,Wr.get)(t,`settings.${e}`);r&&(0,Wr.set)(o,e,r)})),o}),[r,u,e,a,s,l]),e=>{o((t=>{const n=JSON.parse(JSON.stringify(t));return(0,Wr.set)(n,a,e),n}))}]}function El(e,t,n="all",{shouldDecodeEncode:o=!0}={}){const{merged:r,base:l,user:i,setUserConfig:a}=(0,c.useContext)(bl),s=e?"."+e:"",u=t?`styles.blocks.${t}${s}`:`styles${s}`;let d,p;switch(n){case"all":d=(0,Wr.get)(r,u),p=o?fl(r,t,d):d;break;case"user":d=(0,Wr.get)(i,u),p=o?fl(r,t,d):d;break;case"base":d=(0,Wr.get)(l,u),p=o?fl(l,t,d):d;break;default:throw"Unsupported source"}return[p,n=>{a((l=>{const i=JSON.parse(JSON.stringify(l));return(0,Wr.set)(i,u,o?function(e,t,n,o){if(!o)return o;const r=pl[n],l=dl.find((e=>e.cssVarInfix===r));if(!l)return o;const{valueKey:i,path:a}=l,s=ml(e,t,a,i,o);return s?`var:preset|${r}|${s.slug}`:o}(r.settings,t,e,n):n),i}))}]}function wl(e,t,n){const{supportedStyles:o,supports:r}=(0,f.useSelect)((e=>({supportedStyles:Fo(e(a.store)).getSupportedStyles(t,n),supports:e(a.store).getBlockType(t)?.supports})),[t,n]);return(0,c.useMemo)((()=>{const t={...e};return o.includes("fontSize")||(t.typography={...t.typography,fontSizes:{},customFontSize:!1}),o.includes("fontFamily")||(t.typography={...t.typography,fontFamilies:{}}),t.color={...t.color,text:t.color?.text&&o.includes("color"),background:t.color?.background&&(o.includes("background")||o.includes("backgroundColor")),button:t.color?.button&&o.includes("buttonColor"),heading:t.color?.heading&&o.includes("headingColor"),link:t.color?.link&&o.includes("linkColor"),caption:t.color?.caption&&o.includes("captionColor")},o.includes("background")||(t.color.gradients=[],t.color.customGradient=!1),o.includes("filter")||(t.color.defaultDuotone=!1,t.color.customDuotone=!1),["lineHeight","fontStyle","fontWeight","letterSpacing","textTransform","textDecoration"].forEach((e=>{o.includes(e)||(t.typography={...t.typography,[e]:!1})})),o.includes("columnCount")||(t.typography={...t.typography,textColumns:!1}),["contentSize","wideSize"].forEach((e=>{o.includes(e)||(t.layout={...t.layout,[e]:!1})})),["padding","margin","blockGap"].forEach((e=>{o.includes(e)||(t.spacing={...t.spacing,[e]:!1});const n=Array.isArray(r?.spacing?.[e])?r?.spacing?.[e]:r?.spacing?.[e]?.sides;n?.length&&t.spacing?.[e]&&(t.spacing={...t.spacing,[e]:{...t.spacing?.[e],sides:n}})})),o.includes("minHeight")||(t.dimensions={...t.dimensions,minHeight:!1}),["radius","color","style","width"].forEach((e=>{o.includes("border"+e.charAt(0).toUpperCase()+e.slice(1))||(t.border={...t.border,[e]:!1})})),t.shadow=!!o.includes("shadow")&&t.shadow,t}),[e,o,r])}function Sl(e){const t=e?.color?.palette?.custom,n=e?.color?.palette?.theme,o=e?.color?.palette?.default,r=e?.color?.defaultPalette;return(0,c.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,v._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&e.push({name:(0,v._x)("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&e.push({name:(0,v._x)("Custom","Indicates this palette is created by the user."),colors:t}),e}),[t,n,o,r])}function Cl(e){const t=e?.color?.gradients?.custom,n=e?.color?.gradients?.theme,o=e?.color?.gradients?.default,r=e?.color?.defaultGradients;return(0,c.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,v._x)("Theme","Indicates this palette comes from the theme."),gradients:n}),r&&o&&o.length&&e.push({name:(0,v._x)("Default","Indicates this palette comes from WordPress."),gradients:o}),t&&t.length&&e.push({name:(0,v._x)("Custom","Indicates this palette is created by the user."),gradients:t}),e}),[t,n,o,r])}var xl=function(){return xl=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},xl.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function Bl(e){return e.toLowerCase()}var Il=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Tl=/[^A-Z0-9]+/gi;function Ml(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?Il:n,r=t.stripRegexp,l=void 0===r?Tl:r,i=t.transform,a=void 0===i?Bl:i,s=t.delimiter,c=void 0===s?" ":s,u=Pl(Pl(e,o,"$1\0$2"),l,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(a).join(c)}function Pl(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function Nl(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),Ml(e,xl({delimiter:"."},t))}(e,xl({delimiter:"-"},t))}function Ll(e){let t=e;var n;"string"!=typeof e&&(t=null!==(n=e?.toString?.())&&void 0!==n?n:"");return t=t.replace(/['\u2019]/,""),Nl(t,{splitRegexp:[/(?!(?:1ST|2ND|3RD|[4-9]TH)(?![a-z]))([a-z0-9])([A-Z])/g,/(?!(?:1st|2nd|3rd|[4-9]th)(?![a-z]))([0-9])([a-z])/g,/([A-Za-z])([0-9])/g,/([A-Z])([A-Z][a-z])/g]})}function Rl(e){return e&&"object"==typeof e?{...Object.fromEntries(Object.entries(e).map((([e,t])=>[e,Rl(t)])))}:e}function Al(e,t,n){const o=function(e){return Array.isArray(e)?e:"number"==typeof e?[e.toString()]:[e]}(t),r=e?Rl(e):{};return o.reduce(((e,t,r)=>(void 0===e[t]&&(e[t]={}),r===o.length-1&&(e[t]=n),e[t])),r),r}const Dl=e=>{if(null===e||"object"!=typeof e||Array.isArray(e))return e;const t=Object.entries(e).map((([e,t])=>[e,Dl(t)])).filter((([,e])=>void 0!==e));return t.length?Object.fromEntries(t):void 0};function Ol(e,t,n,o,r,l){if(Object.values(null!=e?e:{}).every((e=>!e)))return n;if(1===l.length&&n.innerBlocks.length===o.length)return n;let i=o[0]?.attributes;if(l.length>1&&o.length>1){if(!o[r])return n;i=o[r]?.attributes}let a=n;return Object.entries(e).forEach((([e,n])=>{n&&t[e].forEach((e=>{const t=(0,Wr.get)(i,e);t&&(a={...a,attributes:Al(a.attributes,e,t)})}))})),a}function zl(e,t,n){const o=(0,a.getBlockSupport)(e,t),r=o?.__experimentalSkipSerialization;return Array.isArray(r)?r.includes(n):r}function Vl(e,t){const n=Xr("typography.fontFamilies"),o=Xr("typography.fontSizes"),r=Xr("typography.customFontSize"),l=Xr("typography.fontStyle"),i=Xr("typography.fontWeight"),a=Xr("typography.lineHeight"),s=Xr("typography.textColumns"),u=Xr("typography.textDecoration"),d=Xr("typography.textTransform"),p=Xr("typography.letterSpacing"),m=Xr("spacing.padding"),f=Xr("spacing.margin"),g=Xr("spacing.blockGap"),h=Xr("spacing.spacingSizes"),b=Xr("spacing.units"),v=Xr("dimensions.minHeight"),_=Xr("layout"),k=Xr("border.color"),y=Xr("border.radius"),E=Xr("border.style"),w=Xr("border.width"),S=Xr("color.custom"),C=Xr("color.palette.custom"),x=Xr("color.customDuotone"),B=Xr("color.palette.theme"),I=Xr("color.palette.default"),T=Xr("color.defaultPalette"),M=Xr("color.defaultDuotone"),P=Xr("color.duotone.custom"),N=Xr("color.duotone.theme"),L=Xr("color.duotone.default"),R=Xr("color.gradients.custom"),A=Xr("color.gradients.theme"),D=Xr("color.gradients.default"),O=Xr("color.defaultGradients"),z=Xr("color.customGradient"),V=Xr("color.background"),F=Xr("color.link"),H=Xr("color.text");return wl((0,c.useMemo)((()=>({color:{palette:{custom:C,theme:B,default:I},gradients:{custom:R,theme:A,default:D},duotone:{custom:P,theme:N,default:L},defaultGradients:O,defaultPalette:T,defaultDuotone:M,custom:S,customGradient:z,customDuotone:x,background:V,link:F,text:H},typography:{fontFamilies:{custom:n},fontSizes:{custom:o},customFontSize:r,fontStyle:l,fontWeight:i,lineHeight:a,textColumns:s,textDecoration:u,textTransform:d,letterSpacing:p},spacing:{spacingSizes:{custom:h},padding:m,margin:f,blockGap:g,units:b},border:{color:k,radius:y,style:E,width:w},dimensions:{minHeight:v},layout:_,parentLayout:t})),[n,o,r,l,i,a,s,u,d,p,m,f,g,h,b,v,_,t,k,y,E,w,S,C,x,B,I,T,M,P,N,L,R,A,D,O,z,V,F,H]),e)}const Fl={left:"flex-start",right:"flex-end",center:"center","space-between":"space-between"},Hl={left:"flex-start",right:"flex-end",center:"center",stretch:"stretch"},Gl={top:"flex-start",center:"center",bottom:"flex-end",stretch:"stretch","space-between":"space-between"},Ul=["wrap","nowrap"];var $l={name:"flex",label:(0,v.__)("Flex"),inspectorControls:function({layout:e={},onChange:t,layoutBlockSupport:n={}}){const{allowOrientation:o=!0}=n;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.Flex,null,(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(Kl,{layout:e,onChange:t})),(0,c.createElement)(m.FlexItem,null,o&&(0,c.createElement)(Zl,{layout:e,onChange:t}))),(0,c.createElement)(ql,{layout:e,onChange:t}))},toolBarControls:function({layout:e={},onChange:t,layoutBlockSupport:n}){if(n?.allowSwitching)return null;const{allowVerticalAlignment:o=!0}=n;return(0,c.createElement)(er,{group:"block",__experimentalShareWithChildBlocks:!0},(0,c.createElement)(Kl,{layout:e,onChange:t,isToolbar:!0}),o&&(0,c.createElement)(jl,{layout:e,onChange:t,isToolbar:!0}))},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:l=sr}){const{orientation:i="horizontal"}=t,a=n?.spacing?.blockGap&&!zl(o,"spacing","blockGap")?Pr(n?.spacing?.blockGap,"0.5em"):void 0,s=Fl[t.justifyContent],c=Ul.includes(t.flexWrap)?t.flexWrap:"wrap",u=Gl[t.verticalAlignment],d=Hl[t.justifyContent]||Hl.left;let p="";const m=[];return c&&"wrap"!==c&&m.push(`flex-wrap: ${c}`),"horizontal"===i?(u&&m.push(`align-items: ${u}`),s&&m.push(`justify-content: ${s}`)):(u&&m.push(`justify-content: ${u}`),m.push("flex-direction: column"),m.push(`align-items: ${d}`)),m.length&&(p=`${cr(e)} {\n\t\t\t\t${m.join("; ")};\n\t\t\t}`),r&&a&&(p+=ur(e,l,"flex",a)),p},getOrientation(e){const{orientation:t="horizontal"}=e;return t},getAlignments(){return[]}};function jl({layout:e,onChange:t,isToolbar:n=!1}){const{orientation:o="horizontal"}=e,r="horizontal"===o?Gl.center:Gl.top,{verticalAlignment:l=r}=e,i=n=>{t({...e,verticalAlignment:n})};if(n)return(0,c.createElement)(Fr,{onChange:i,value:l,controls:"horizontal"===o?["top","center","bottom","stretch"]:["top","center","bottom","space-between"]});const a=[{value:"flex-start",label:(0,v.__)("Align items top")},{value:"center",label:(0,v.__)("Align items center")},{value:"flex-end",label:(0,v.__)("Align items bottom")}];return(0,c.createElement)("fieldset",{className:"block-editor-hooks__flex-layout-vertical-alignment-control"},(0,c.createElement)("legend",null,(0,v.__)("Vertical alignment")),(0,c.createElement)("div",null,a.map(((e,t,n)=>(0,c.createElement)(m.Button,{key:e,label:n,icon:t,isPressed:l===e,onClick:()=>i(e)})))))}const Wl={placement:"bottom-start"};function Kl({layout:e,onChange:t,isToolbar:n=!1}){const{justifyContent:o="left",orientation:r="horizontal"}=e,l=n=>{t({...e,justifyContent:n})},i=["left","center","right"];if("horizontal"===r?i.push("space-between"):i.push("stretch"),n)return(0,c.createElement)($r,{allowedControls:i,value:o,onChange:l,popoverProps:Wl});const a=[{value:"left",icon:tr,label:(0,v.__)("Justify items left")},{value:"center",icon:nr,label:(0,v.__)("Justify items center")},{value:"right",icon:or,label:(0,v.__)("Justify items right")}];return"horizontal"===r?a.push({value:"space-between",icon:rr,label:(0,v.__)("Space between items")}):a.push({value:"stretch",icon:lr,label:(0,v.__)("Stretch items")}),(0,c.createElement)(m.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Justification"),value:o,onChange:l,className:"block-editor-hooks__flex-layout-justification-controls"},a.map((({value:e,icon:t,label:n})=>(0,c.createElement)(m.__experimentalToggleGroupControlOptionIcon,{key:e,value:e,icon:t,label:n}))))}function ql({layout:e,onChange:t}){const{flexWrap:n="wrap"}=e;return(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Allow to wrap to multiple lines"),onChange:n=>{t({...e,flexWrap:n?"wrap":"nowrap"})},checked:"wrap"===n})}function Zl({layout:e,onChange:t}){const{orientation:n="horizontal",verticalAlignment:o,justifyContent:r}=e;return(0,c.createElement)(m.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__flex-layout-orientation-controls",label:(0,v.__)("Orientation"),value:n,onChange:n=>{let l=o,i=r;return"horizontal"===n?("space-between"===o&&(l="center"),"stretch"===r&&(i="left")):("stretch"===o&&(l="top"),"space-between"===r&&(i="left")),t({...e,orientation:n,verticalAlignment:l,justifyContent:i})}},(0,c.createElement)(m.__experimentalToggleGroupControlOptionIcon,{icon:ir,value:"horizontal",label:(0,v.__)("Horizontal")}),(0,c.createElement)(m.__experimentalToggleGroupControlOptionIcon,{icon:ar,value:"vertical",label:(0,v.__)("Vertical")}))}var Yl={name:"default",label:(0,v.__)("Flow"),inspectorControls:function(){return null},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,style:t,blockName:n,hasBlockGapSupport:o,layoutDefinitions:r=sr}){const l=Pr(t?.spacing?.blockGap);let i="";zl(n,"spacing","blockGap")||(l?.top?i=Pr(l?.top):"string"==typeof l&&(i=Pr(l)));let a="";return o&&i&&(a+=ur(e,r,"default",i)),a},getOrientation(){return"vertical"},getAlignments(e,t){const n=dr(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:n[e]})));const o=[{name:"left"},{name:"center"},{name:"right"}];if(!t){const{contentSize:t,wideSize:r}=e;t&&o.unshift({name:"full"}),r&&o.unshift({name:"wide",info:n.wide})}return o.unshift({name:"none",info:n.none}),o}};var Xl=function({icon:e,size:t=24,...n}){return(0,c.cloneElement)(e,{width:t,height:t,...n})};var Ql=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM7 9h10v6H7V9Z"}));var Jl=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M16 5.5H8V4h8v1.5ZM16 20H8v-1.5h8V20ZM5 9h14v6H5V9Z"})),ei=window.wp.styleEngine,ti={name:"constrained",label:(0,v.__)("Constrained"),inspectorControls:function({layout:e,onChange:t,layoutBlockSupport:n={}}){const{wideSize:o,contentSize:r,justifyContent:l="center"}=e,{allowJustification:i=!0}=n,a=[{value:"left",icon:tr,label:(0,v.__)("Justify items left")},{value:"center",icon:nr,label:(0,v.__)("Justify items center")},{value:"right",icon:or,label:(0,v.__)("Justify items right")}],s=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["%","px","em","rem","vw"]});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-hooks__layout-controls"},(0,c.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,c.createElement)(m.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:(0,v.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:r||o||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,contentSize:n})},units:s}),(0,c.createElement)(Xl,{icon:Ql})),(0,c.createElement)("div",{className:"block-editor-hooks__layout-controls-unit"},(0,c.createElement)(m.__experimentalUnitControl,{className:"block-editor-hooks__layout-controls-unit-input",label:(0,v.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:o||r||"",onChange:n=>{n=0>parseFloat(n)?"0":n,t({...e,wideSize:n})},units:s}),(0,c.createElement)(Xl,{icon:Jl}))),(0,c.createElement)("p",{className:"block-editor-hooks__layout-controls-helptext"},(0,v.__)("Customize the width for all elements that are assigned to the center or wide columns.")),i&&(0,c.createElement)(m.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Justification"),value:l,onChange:n=>{t({...e,justifyContent:n})}},a.map((({value:e,icon:t,label:n})=>(0,c.createElement)(m.__experimentalToggleGroupControlOptionIcon,{key:e,value:e,icon:t,label:n})))))},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t={},style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:l=sr}){const{contentSize:i,wideSize:a,justifyContent:s}=t,c=Pr(n?.spacing?.blockGap);let u="";zl(o,"spacing","blockGap")||(c?.top?u=Pr(c?.top):"string"==typeof c&&(u=Pr(c)));const d="left"===s?"0 !important":"auto !important",p="right"===s?"0 !important":"auto !important";let m=i||a?`\n\t\t\t\t\t${cr(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")} {\n\t\t\t\t\t\tmax-width: ${null!=i?i:a};\n\t\t\t\t\t\tmargin-left: ${d};\n\t\t\t\t\t\tmargin-right: ${p};\n\t\t\t\t\t}\n\t\t\t\t\t${cr(e,"> .alignwide")} {\n\t\t\t\t\t\tmax-width: ${null!=a?a:i};\n\t\t\t\t\t}\n\t\t\t\t\t${cr(e,"> .alignfull")} {\n\t\t\t\t\t\tmax-width: none;\n\t\t\t\t\t}\n\t\t\t\t`:"";if("left"===s?m+=`${cr(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-left: ${d}; }`:"right"===s&&(m+=`${cr(e,"> :where(:not(.alignleft):not(.alignright):not(.alignfull))")}\n\t\t\t{ margin-right: ${p}; }`),n?.spacing?.padding){(0,ei.getCSSRules)(n).forEach((t=>{"paddingRight"===t.key?m+=`\n\t\t\t\t\t${cr(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-right: calc(${t.value} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`:"paddingLeft"===t.key&&(m+=`\n\t\t\t\t\t${cr(e,"> .alignfull")} {\n\t\t\t\t\t\tmargin-left: calc(${t.value} * -1);\n\t\t\t\t\t}\n\t\t\t\t\t`)}))}return r&&u&&(m+=ur(e,l,"constrained",u)),m},getOrientation(){return"vertical"},getAlignments(e){const t=dr(e);if(void 0!==e.alignments)return e.alignments.includes("none")||e.alignments.unshift("none"),e.alignments.map((e=>({name:e,info:t[e]})));const{contentSize:n,wideSize:o}=e,r=[{name:"left"},{name:"center"},{name:"right"}];return n&&r.unshift({name:"full"}),o&&r.unshift({name:"wide",info:t.wide}),r.unshift({name:"none",info:t.none}),r}};const ni={px:600,"%":100,vw:100,vh:100,em:38,rem:38};var oi={name:"grid",label:(0,v.__)("Grid"),inspectorControls:function({layout:e={},onChange:t}){return e?.columnCount?(0,c.createElement)(li,{layout:e,onChange:t}):(0,c.createElement)(ri,{layout:e,onChange:t})},toolBarControls:function(){return null},getLayoutStyle:function({selector:e,layout:t,style:n,blockName:o,hasBlockGapSupport:r,layoutDefinitions:l=sr}){const{minimumColumnWidth:i="12rem",columnCount:a=null}=t,s=n?.spacing?.blockGap&&!zl(o,"spacing","blockGap")?Pr(n?.spacing?.blockGap,"0.5em"):void 0;let c="";const u=[];return a?u.push(`grid-template-columns: repeat(${a}, minmax(0, 1fr))`):i&&u.push(`grid-template-columns: repeat(auto-fill, minmax(min(${i}, 100%), 1fr))`),u.length&&(c=`${cr(e)} { ${u.join("; ")}; }`),r&&s&&(c+=ur(e,l,"grid",s)),c},getOrientation(){return"horizontal"},getAlignments(){return[]}};function ri({layout:e,onChange:t}){const{minimumColumnWidth:n="12rem"}=e,[o,r]=(0,m.__experimentalParseQuantityAndUnitFromRawValue)(n);return(0,c.createElement)("fieldset",null,(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend"},(0,v.__)("Minimum column width")),(0,c.createElement)(m.Flex,{gap:4},(0,c.createElement)(m.FlexItem,{isBlock:!0},(0,c.createElement)(m.__experimentalUnitControl,{size:"__unstable-large",onChange:n=>{t({...e,minimumColumnWidth:n})},onUnitChange:n=>{let l;["em","rem"].includes(n)&&"px"===r?l=(o/16).toFixed(2)+n:["em","rem"].includes(r)&&"px"===n?l=Math.round(16*o)+n:["vh","vw","%"].includes(n)&&o>100&&(l=100+n),t({...e,minimumColumnWidth:l})},value:n,min:0})),(0,c.createElement)(m.FlexItem,{isBlock:!0},(0,c.createElement)(m.RangeControl,{onChange:n=>{t({...e,minimumColumnWidth:[n,r].join("")})},value:o,min:0,max:ni[r]||600,withInputField:!1}))))}function li({layout:e,onChange:t}){const{columnCount:n=3}=e;return(0,c.createElement)(m.RangeControl,{label:(0,v.__)("Columns"),value:n,onChange:n=>t({...e,columnCount:n}),min:1,max:6})}const ii=[Yl,$l,ti,oi];function ai(e="default"){return ii.find((t=>t.name===e))}const si={type:"default"},ci=(0,c.createContext)(si),ui=ci.Provider;function di(){return(0,c.useContext)(ci)}function pi({layout:e={},css:t,...n}){const o=ai(e.type),r=null!==Xr("spacing.blockGap");if(o){if(t)return(0,c.createElement)("style",null,t);const l=o.getLayoutStyle?.({hasBlockGapSupport:r,layout:e,...n});if(l)return(0,c.createElement)("style",null,l)}return null}const mi=[],fi=["none","left","center","right","wide","full"],gi=["wide","full"];function hi(e=fi){e.includes("none")||(e=["none",...e]);const{wideControlsEnabled:t=!1,themeSupportsLayout:n,isBlockBasedTheme:o}=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go),n=t();return{wideControlsEnabled:n.alignWide,themeSupportsLayout:n.supportsLayout,isBlockBasedTheme:n.__unstableIsBlockBasedTheme}}),[]),r=di(),l=ai(r?.type),i=l.getAlignments(r,o);if(n){const t=i.filter((({name:t})=>e.includes(t)));return 1===t.length&&"none"===t[0].name?mi:t}if("default"!==l.name&&"constrained"!==l.name)return mi;const{alignments:a=fi}=r,s=e.filter((e=>(r.alignments||t||!gi.includes(e))&&a.includes(e))).map((e=>({name:e})));return 1===s.length&&"none"===s[0].name?mi:s}var bi=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 5.5H5V4h14v1.5ZM19 20H5v-1.5h14V20ZM5 9h14v6H5V9Z"}));var vi=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M5 5.5h8V4H5v1.5ZM5 20h8v-1.5H5V20ZM19 9H5v6h14V9Z"}));var _i=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 5.5h-8V4h8v1.5ZM19 20h-8v-1.5h8V20ZM5 9h14v6H5V9Z"}));var ki=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M5 4h14v11H5V4Zm11 16H8v-1.5h8V20Z"}));const yi={none:{icon:bi,title:(0,v._x)("None","Alignment option")},left:{icon:vi,title:(0,v.__)("Align left")},center:{icon:Ql,title:(0,v.__)("Align center")},right:{icon:_i,title:(0,v.__)("Align right")},wide:{icon:Jl,title:(0,v.__)("Wide width")},full:{icon:ki,title:(0,v.__)("Full width")}};var Ei=function({value:e,onChange:t,controls:n,isToolbar:o,isCollapsed:r=!0}){const l=hi(n);if(!!!l.length)return null;function i(n){t([e,"none"].includes(n)?void 0:n)}const a=yi[e],s=yi.none,u=o?m.ToolbarGroup:m.ToolbarDropdownMenu,p={icon:a?a.icon:s.icon,label:(0,v.__)("Align")},f=o?{isCollapsed:r,controls:l.map((({name:t})=>({...yi[t],isActive:e===t||!e&&"none"===t,role:r?"menuitemradio":void 0,onClick:()=>i(t)})))}:{toggleProps:{describedBy:(0,v.__)("Change alignment")},children:({onClose:t})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuGroup,{className:"block-editor-block-alignment-control__menu-group"},l.map((({name:n,info:o})=>{const{icon:r,title:l}=yi[n],a=n===e||!e&&"none"===n;return(0,c.createElement)(m.MenuItem,{key:n,icon:r,iconPosition:"left",className:d()("components-dropdown-menu__menu-item",{"is-active":a}),isSelected:a,onClick:()=>{i(n),t()},role:"menuitemradio",info:o},l)}))))};return(0,c.createElement)(u,{...p,...f})};const wi=e=>(0,c.createElement)(Ei,{...e,isToolbar:!1}),Si=e=>(0,c.createElement)(Ei,{...e,isToolbar:!0}),Ci=(0,c.createContext)(null);function xi(e){var t;const{clientId:n=""}=null!==(t=(0,c.useContext)(Ci))&&void 0!==t?t:{},o=(0,f.useSelect)((e=>Fo(e(Go)).getBlockEditingMode(n)),[n]),{setBlockEditingMode:r,unsetBlockEditingMode:l}=Fo((0,f.useDispatch)(Go));return(0,c.useEffect)((()=>(e&&r(n,e),()=>{e&&l(n)})),[n,e]),o}const Bi=["left","center","right","wide","full"],Ii=["wide","full"];function Ti(e,t=!0,n=!0){let o;return o=Array.isArray(e)?Bi.filter((t=>e.includes(t))):!0===e?[...Bi]:[],!n||!0===e&&!t?o.filter((e=>!Ii.includes(e))):o}const Mi=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,c.createElement)(e,{key:"edit",...t}),{name:o}=t,r=hi(Ti((0,a.getBlockSupport)(o,"align"),(0,a.hasBlockSupport)(o,"alignWide",!0))).map((({name:e})=>e)),l=xi();if(!r.length||"default"!==l)return n;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(er,{group:"block",__experimentalShareWithChildBlocks:!0},(0,c.createElement)(wi,{value:t.attributes.align,onChange:e=>{if(!e){const n=(0,a.getBlockType)(t.name),o=n?.attributes?.align?.default;o&&(e="")}t.setAttributes({align:e})},controls:r})),n)}),"withToolbarControls"),Pi=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,{align:r}=o,l=hi(Ti((0,a.getBlockSupport)(n,"align"),(0,a.hasBlockSupport)(n,"alignWide",!0)));if(void 0===r)return(0,c.createElement)(e,{...t});let i=t.wrapperProps;return l.some((e=>e.name===r))&&(i={...i,"data-align":r}),(0,c.createElement)(e,{...t,wrapperProps:i})}),"withDataAlign");(0,s.addFilter)("blocks.registerBlockType","core/align/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.align)&&void 0!==t?t:{})||(0,a.hasBlockSupport)(e,"align")&&(e.attributes={...e.attributes,align:{type:"string",enum:[...Bi,""]}}),e})),(0,s.addFilter)("editor.BlockListBlock","core/editor/align/with-data-align",Pi),(0,s.addFilter)("editor.BlockEdit","core/editor/align/with-toolbar-controls",Mi),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/align/addAssignedAlign",(function(e,t,n){const{align:o}=n;return Ti((0,a.getBlockSupport)(t,"align"),(0,a.hasBlockSupport)(t,"alignWide",!0)).includes(o)&&(e.className=d()(`align${o}`,e.className)),e})),(0,s.addFilter)("blocks.registerBlockType","core/lock/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.lock)&&void 0!==t?t:{})||(e.attributes={...e.attributes,lock:{type:"object"}}),e}));const Ni=(0,m.createSlotFill)("InspectorControls"),Li=(0,m.createSlotFill)("InspectorAdvancedControls"),Ri=(0,m.createSlotFill)("InspectorControlsBorder"),Ai=(0,m.createSlotFill)("InspectorControlsColor"),Di=(0,m.createSlotFill)("InspectorControlsFilter"),Oi=(0,m.createSlotFill)("InspectorControlsDimensions"),zi=(0,m.createSlotFill)("InspectorControlsPosition"),Vi=(0,m.createSlotFill)("InspectorControlsTypography");var Fi={default:Ni,advanced:Li,border:Ri,color:Ai,filter:Di,dimensions:Oi,list:(0,m.createSlotFill)("InspectorControlsListView"),settings:Ni,styles:(0,m.createSlotFill)("InspectorControlsStyles"),typography:Vi,position:zi};function Hi({children:e,group:t="default",__experimentalGroup:n,resetAllFilter:o}){n&&($()("`__experimentalGroup` property in `InspectorControlsFill`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=n);const r=qo(),l=Fi[t]?.Fill;return l?r?(0,c.createElement)(m.__experimentalStyleProvider,{document:document},(0,c.createElement)(l,null,(t=>(0,c.createElement)(Gi,{fillProps:t,children:e,resetAllFilter:o})))):null:("undefined"!=typeof process&&process.env,null)}function Gi({children:e,resetAllFilter:t,fillProps:n}){const{registerResetAllFilter:o,deregisterResetAllFilter:r}=n;(0,c.useEffect)((()=>(t&&o&&o(t),()=>{t&&r&&r(t)})),[t,o,r]);const l=n&&Object.keys(n).length>0?n:null;return(0,c.createElement)(m.__experimentalToolsPanelContext.Provider,{value:l},e)}function Ui({children:e,group:t,label:n}){const{updateBlockAttributes:o}=(0,f.useDispatch)(Go),{getBlockAttributes:r,getMultiSelectedBlockClientIds:l,getSelectedBlockClientId:i,hasMultiSelection:a}=(0,f.useSelect)(Go),s=i(),u=(0,c.useCallback)(((e=[])=>{const t={},n=a()?l():[s];n.forEach((n=>{const{style:o}=r(n);let l={style:o};e.forEach((e=>{l={...l,...e(l)}})),l={...l,style:Dl(l.style)},t[n]=l})),o(n,t,!0)}),[r,l,a,s,o]);return(0,c.createElement)(m.__experimentalToolsPanel,{className:`${t}-block-support-panel`,label:n,resetAll:u,key:s,panelId:s,hasInnerWrapper:!0,shouldRenderPlaceholderItems:!0,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},e)}function $i({Slot:e,...t}){const n=(0,c.useContext)(m.__experimentalToolsPanelContext);return(0,c.createElement)(e,{...t,fillProps:n,bubblesVirtually:!0})}function ji({__experimentalGroup:e,group:t="default",label:n,...o}){e&&($()("`__experimentalGroup` property in `InspectorControlsSlot`",{since:"6.2",version:"6.4",alternative:"`group`"}),t=e);const r=Fi[t]?.Slot,l=(0,m.__experimentalUseSlotFills)(r?.__unstableName);return r?l?.length?n?(0,c.createElement)(Ui,{group:t,label:n},(0,c.createElement)($i,{...o,Slot:r})):(0,c.createElement)(r,{...o,bubblesVirtually:!0}):null:("undefined"!=typeof process&&process.env,null)}const Wi=Hi;Wi.Slot=ji;const Ki=e=>(0,c.createElement)(Hi,{...e,group:"advanced"});Ki.Slot=e=>(0,c.createElement)(ji,{...e,group:"advanced"}),Ki.slotName="InspectorAdvancedControls";var qi=Wi;const Zi=/[\s#]/g,Yi={type:"string",source:"attribute",attribute:"id",selector:"*"};const Xi=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,a.hasBlockSupport)(t.name,"anchor"),o=xi();if(n&&t.isSelected){const n="web"===c.Platform.OS,r=(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,className:"html-anchor-control",label:(0,v.__)("HTML anchor"),help:(0,c.createElement)(c.Fragment,null,(0,v.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page."),n&&(0,c.createElement)(m.ExternalLink,{href:(0,v.__)("https://wordpress.org/documentation/article/page-jumps/")},(0,v.__)("Learn more about anchors"))),value:t.attributes.anchor||"",placeholder:n?null:(0,v.__)("Add an anchor"),onChange:e=>{e=e.replace(Zi,"-"),t.setAttributes({anchor:e})},autoCapitalize:"none",autoComplete:"off"});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(e,{...t}),n&&"default"===o&&(0,c.createElement)(qi,{group:"advanced"},r),!n&&"core/heading"===t.name&&(0,c.createElement)(qi,null,(0,c.createElement)(m.PanelBody,{title:(0,v.__)("Heading settings")},r)))}return(0,c.createElement)(e,{...t})}),"withInspectorControl");(0,s.addFilter)("blocks.registerBlockType","core/anchor/attribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.anchor)&&void 0!==t?t:{})||(0,a.hasBlockSupport)(e,"anchor")&&(e.attributes={...e.attributes,anchor:Yi}),e})),(0,s.addFilter)("editor.BlockEdit","core/editor/anchor/with-inspector-control",Xi),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/anchor/save-props",(function(e,t,n){return(0,a.hasBlockSupport)(t,"anchor")&&(e.id=""===n.anchor?null:n.anchor),e}));const Qi={type:"string",source:"attribute",attribute:"aria-label",selector:"*"};(0,s.addFilter)("blocks.registerBlockType","core/ariaLabel/attribute",(function(e){return e?.attributes?.ariaLabel?.type||(0,a.hasBlockSupport)(e,"ariaLabel")&&(e.attributes={...e.attributes,ariaLabel:Qi}),e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/ariaLabel/save-props",(function(e,t,n){return(0,a.hasBlockSupport)(t,"ariaLabel")&&(e["aria-label"]=""===n.ariaLabel?null:n.ariaLabel),e}));const Ji=(0,p.createHigherOrderComponent)((e=>t=>{const n=xi();return(0,a.hasBlockSupport)(t.name,"customClassName",!0)&&t.isSelected?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(e,{...t}),"default"===n&&(0,c.createElement)(qi,{group:"advanced"},(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,v.__)("Additional CSS class(es)"),value:t.attributes.className||"",onChange:e=>{t.setAttributes({className:""!==e?e:void 0})},help:(0,v.__)("Separate multiple classes with spaces.")}))):(0,c.createElement)(e,{...t})}),"withInspectorControl");(0,s.addFilter)("blocks.registerBlockType","core/custom-class-name/attribute",(function(e){return(0,a.hasBlockSupport)(e,"customClassName",!0)&&(e.attributes={...e.attributes,className:{type:"string"}}),e})),(0,s.addFilter)("editor.BlockEdit","core/editor/custom-class-name/with-inspector-control",Ji),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/custom-class-name/save-props",(function(e,t,n){return(0,a.hasBlockSupport)(t,"customClassName",!0)&&n.className&&(e.className=d()(e.className,n.className)),e})),(0,s.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){if(!(0,a.hasBlockSupport)(e.name,"customClassName",!0))return e;if(1===o.length&&e.innerBlocks.length===t.length)return e;if(1===o.length&&t.length>1||o.length>1&&1===t.length)return e;if(t[n]){const o=t[n]?.attributes.className;if(o)return{...e,attributes:{...e.attributes,className:o}}}return e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/generated-class-name/save-props",(function(e,t){return(0,a.hasBlockSupport)(t,"className",!0)&&("string"==typeof e.className?e.className=[...new Set([(0,a.getBlockDefaultClassName)(t.name),...e.className.split(" ")])].join(" ").trim():e.className=(0,a.getBlockDefaultClassName)(t.name)),e}));var ea=window.wp.dom;const ta=(0,c.createContext)({});function na({value:e,children:t}){const n=(0,c.useContext)(ta),o=(0,c.useMemo)((()=>({...n,...e})),[n,e]);return(0,c.createElement)(ta.Provider,{value:o,children:t})}var oa=ta;const ra={},la=(0,m.withFilters)("editor.BlockEdit")((e=>{const{name:t}=e,n=(0,a.getBlockType)(t);if(!n)return null;const o=n.edit||n.save;return(0,c.createElement)(o,{...e})}));var ia=e=>{const{attributes:t={},name:n}=e,o=(0,a.getBlockType)(n),r=(0,c.useContext)(oa),l=(0,c.useMemo)((()=>o&&o.usesContext?Object.fromEntries(Object.entries(r).filter((([e])=>o.usesContext.includes(e)))):ra),[o,r]);if(!o)return null;if(o.apiVersion>1)return(0,c.createElement)(la,{...e,context:l});const i=(0,a.hasBlockSupport)(o,"className",!0)?(0,a.getBlockDefaultClassName)(n):null,s=d()(i,t.className,e.className);return(0,c.createElement)(la,{...e,context:l,className:s})};function aa(e){const{name:t,isSelected:n,clientId:o,attributes:r={},__unstableLayoutClassNames:l}=e,{layout:i=null}=r,s={name:t,isSelected:n,clientId:o,layout:(0,a.hasBlockSupport)(t,"layout",!1)||(0,a.hasBlockSupport)(t,"__experimentalLayout",!1)?i:null,__unstableLayoutClassNames:l};return(0,c.createElement)(Wo,{value:(0,c.useMemo)((()=>s),Object.values(s))},(0,c.createElement)(ia,{...e}))}var sa=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));var ca=function({className:e,actions:t,children:n,secondaryActions:o}){return(0,c.createElement)("div",{style:{display:"contents",all:"initial"}},(0,c.createElement)("div",{className:d()(e,"block-editor-warning")},(0,c.createElement)("div",{className:"block-editor-warning__contents"},(0,c.createElement)("p",{className:"block-editor-warning__message"},n),(c.Children.count(t)>0||o)&&(0,c.createElement)("div",{className:"block-editor-warning__actions"},c.Children.count(t)>0&&c.Children.map(t,((e,t)=>(0,c.createElement)("span",{key:t,className:"block-editor-warning__action"},e))),o&&(0,c.createElement)(m.DropdownMenu,{className:"block-editor-warning__secondary",icon:sa,label:(0,v.__)("More options"),popoverProps:{position:"bottom left",className:"block-editor-warning__dropdown"},noIcons:!0},(()=>(0,c.createElement)(m.MenuGroup,null,o.map(((e,t)=>(0,c.createElement)(m.MenuItem,{onClick:e.onClick,key:t},e.title))))))))))},ua=n(1973);function da({title:e,rawContent:t,renderedContent:n,action:o,actionText:r,className:l}){return(0,c.createElement)("div",{className:l},(0,c.createElement)("div",{className:"block-editor-block-compare__content"},(0,c.createElement)("h2",{className:"block-editor-block-compare__heading"},e),(0,c.createElement)("div",{className:"block-editor-block-compare__html"},t),(0,c.createElement)("div",{className:"block-editor-block-compare__preview edit-post-visual-editor"},(0,c.createElement)(c.RawHTML,null,(0,ea.safeHTML)(n)))),(0,c.createElement)("div",{className:"block-editor-block-compare__action"},(0,c.createElement)(m.Button,{variant:"secondary",tabIndex:"0",onClick:o},r)))}var pa=function({block:e,onKeep:t,onConvert:n,convertor:o,convertButtonText:r}){const l=(i=o(e),(Array.isArray(i)?i:[i]).map((e=>(0,a.getSaveContent)(e.name,e.attributes,e.innerBlocks))).join(""));var i;const s=(u=e.originalContent,p=l,(0,ua.Kx)(u,p).map(((e,t)=>{const n=d()({"block-editor-block-compare__added":e.added,"block-editor-block-compare__removed":e.removed});return(0,c.createElement)("span",{key:t,className:n},e.value)})));var u,p;return(0,c.createElement)("div",{className:"block-editor-block-compare__wrapper"},(0,c.createElement)(da,{title:(0,v.__)("Current"),className:"block-editor-block-compare__current",action:t,actionText:(0,v.__)("Convert to HTML"),rawContent:e.originalContent,renderedContent:e.originalContent}),(0,c.createElement)(da,{title:(0,v.__)("After Conversion"),className:"block-editor-block-compare__converted",action:n,actionText:r,rawContent:s,renderedContent:l}))};const ma=e=>(0,a.rawHandler)({HTML:e.originalContent});function fa({clientId:e}){const{block:t,canInsertHTMLBlock:n,canInsertClassicBlock:o}=(0,f.useSelect)((t=>{const{canInsertBlockType:n,getBlock:o,getBlockRootClientId:r}=t(Go),l=r(e);return{block:o(e),canInsertHTMLBlock:n("core/html",l),canInsertClassicBlock:n("core/freeform",l)}}),[e]),{replaceBlock:r}=(0,f.useDispatch)(Go),[l,i]=(0,c.useState)(!1),s=(0,c.useCallback)((()=>i(!1)),[]),u=(0,c.useMemo)((()=>({toClassic(){const e=(0,a.createBlock)("core/freeform",{content:t.originalContent});return r(t.clientId,e)},toHTML(){const e=(0,a.createBlock)("core/html",{content:t.originalContent});return r(t.clientId,e)},toBlocks(){const e=ma(t);return r(t.clientId,e)},toRecoveredBlock(){const e=(0,a.createBlock)(t.name,t.attributes,t.innerBlocks);return r(t.clientId,e)}})),[t,r]),d=(0,c.useMemo)((()=>[{title:(0,v._x)("Resolve","imperative verb"),onClick:()=>i(!0)},n&&{title:(0,v.__)("Convert to HTML"),onClick:u.toHTML},o&&{title:(0,v.__)("Convert to Classic Block"),onClick:u.toClassic}].filter(Boolean)),[n,o,u]);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(ca,{actions:[(0,c.createElement)(m.Button,{key:"recover",onClick:u.toRecoveredBlock,variant:"primary"},(0,v.__)("Attempt Block Recovery"))],secondaryActions:d},(0,v.__)("This block contains unexpected or invalid content.")),l&&(0,c.createElement)(m.Modal,{title:(0,v.__)("Resolve Block"),onRequestClose:s,className:"block-editor-block-compare"},(0,c.createElement)(pa,{block:t,onKeep:u.toHTML,onConvert:u.toBlocks,convertor:ma,convertButtonText:(0,v.__)("Convert to Blocks")})))}const ga=(0,c.createElement)(ca,{className:"block-editor-block-list__block-crash-warning"},(0,v.__)("This block has encountered an error and cannot be previewed."));var ha=()=>ga;class ba extends c.Component{constructor(){super(...arguments),this.state={hasError:!1}}componentDidCatch(){this.setState({hasError:!0})}render(){return this.state.hasError?this.props.fallback:this.props.children}}var va=ba,_a=n(773);var ka=function({clientId:e}){const[t,n]=(0,c.useState)(""),o=(0,f.useSelect)((t=>t(Go).getBlock(e)),[e]),{updateBlock:r}=(0,f.useDispatch)(Go);return(0,c.useEffect)((()=>{n((0,a.getBlockContent)(o))}),[o]),(0,c.createElement)(_a.Z,{className:"block-editor-block-list__block-html-textarea",value:t,onBlur:()=>{const l=(0,a.getBlockType)(o.name);if(!l)return;const i=(0,a.getBlockAttributes)(l,t,o.attributes),s=t||(0,a.getSaveContent)(l,i),[c]=t?(0,a.validateBlock)({...o,attributes:i,originalContent:s}):[!0];r(e,{attributes:i,originalContent:s,isValid:c}),t||n(s)},onChange:e=>n(e.target.value)})},ya=n(9196),Ea=n.n(ya),wa=Object.defineProperty,Sa={};((e,t)=>{for(var n in t)wa(e,n,{get:t[n],enumerable:!0})})(Sa,{assign:()=>os,colors:()=>es,createStringInterpolator:()=>Ya,skipAnimation:()=>ts,to:()=>Xa,willAdvance:()=>ns});var Ca=Ha(),xa=e=>Oa(e,Ca),Ba=Ha();xa.write=e=>Oa(e,Ba);var Ia=Ha();xa.onStart=e=>Oa(e,Ia);var Ta=Ha();xa.onFrame=e=>Oa(e,Ta);var Ma=Ha();xa.onFinish=e=>Oa(e,Ma);var Pa=[];xa.setTimeout=(e,t)=>{const n=xa.now()+t,o=()=>{const e=Pa.findIndex((e=>e.cancel==o));~e&&Pa.splice(e,1),Aa-=~e?1:0},r={time:n,handler:e,cancel:o};return Pa.splice(Na(n),0,r),Aa+=1,za(),r};var Na=e=>~(~Pa.findIndex((t=>t.time>e))||~Pa.length);xa.cancel=e=>{Ia.delete(e),Ta.delete(e),Ma.delete(e),Ca.delete(e),Ba.delete(e)},xa.sync=e=>{Da=!0,xa.batchedUpdates(e),Da=!1},xa.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function o(...e){t=e,xa.onStart(n)}return o.handler=e,o.cancel=()=>{Ia.delete(n),t=null},o};var La="undefined"!=typeof window?window.requestAnimationFrame:()=>{};xa.use=e=>La=e,xa.now="undefined"!=typeof performance?()=>performance.now():Date.now,xa.batchedUpdates=e=>e(),xa.catch=console.error,xa.frameLoop="always",xa.advance=()=>{"demand"!==xa.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Fa()};var Ra=-1,Aa=0,Da=!1;function Oa(e,t){Da?(t.delete(e),e(0)):(t.add(e),za())}function za(){Ra<0&&(Ra=0,"demand"!==xa.frameLoop&&La(Va))}function Va(){~Ra&&(La(Va),xa.batchedUpdates(Fa))}function Fa(){const e=Ra;Ra=xa.now();const t=Na(Ra);t&&(Ga(Pa.splice(0,t),(e=>e.handler())),Aa-=t),Aa?(Ia.flush(),Ca.flush(e?Math.min(64,Ra-e):16.667),Ta.flush(),Ba.flush(),Ma.flush()):Ra=-1}function Ha(){let e=new Set,t=e;return{add(n){Aa+=t!=e||e.has(n)?0:1,e.add(n)},delete(n){return Aa-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,Aa-=t.size,Ga(t,(t=>t(n)&&e.add(t))),Aa+=e.size,t=e)}}}function Ga(e,t){e.forEach((e=>{try{t(e)}catch(e){xa.catch(e)}}))}function Ua(){}var $a={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function ja(e,t){if($a.arr(e)){if(!$a.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var Wa=(e,t)=>e.forEach(t);function Ka(e,t,n){if($a.arr(e))for(let o=0;o<e.length;o++)t.call(n,e[o],`${o}`);else for(const o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o)}var qa=e=>$a.und(e)?[]:$a.arr(e)?e:[e];function Za(e,t){if(e.size){const n=Array.from(e);e.clear(),Wa(n,t)}}var Ya,Xa,Qa=(e,...t)=>Za(e,(e=>e(...t))),Ja=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),es=null,ts=!1,ns=Ua,os=e=>{e.to&&(Xa=e.to),e.now&&(xa.now=e.now),void 0!==e.colors&&(es=e.colors),null!=e.skipAnimation&&(ts=e.skipAnimation),e.createStringInterpolator&&(Ya=e.createStringInterpolator),e.requestAnimationFrame&&xa.use(e.requestAnimationFrame),e.batchedUpdates&&(xa.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ns=e.willAdvance),e.frameLoop&&(xa.frameLoop=e.frameLoop)},rs=new Set,ls=[],is=[],as=0,ss={get idle(){return!rs.size&&!ls.length},start(e){as>e.priority?(rs.add(e),xa.onStart(cs)):(us(e),xa(ps))},advance:ps,sort(e){if(as)xa.onFrame((()=>ss.sort(e)));else{const t=ls.indexOf(e);~t&&(ls.splice(t,1),ds(e))}},clear(){ls=[],rs.clear()}};function cs(){rs.forEach(us),rs.clear(),xa(ps)}function us(e){ls.includes(e)||ds(e)}function ds(e){ls.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(ls,(t=>t.priority>e.priority)),0,e)}function ps(e){const t=is;for(let n=0;n<ls.length;n++){const o=ls[n];as=o.priority,o.idle||(ns(o),o.advance(e),o.idle||t.push(o))}return as=0,(is=ls).length=0,(ls=t).length>0}var ms="[-+]?\\d*\\.?\\d+",fs=ms+"%";function gs(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var hs=new RegExp("rgb"+gs(ms,ms,ms)),bs=new RegExp("rgba"+gs(ms,ms,ms,ms)),vs=new RegExp("hsl"+gs(ms,fs,fs)),_s=new RegExp("hsla"+gs(ms,fs,fs,ms)),ks=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ys=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Es=/^#([0-9a-fA-F]{6})$/,ws=/^#([0-9a-fA-F]{8})$/;function Ss(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Cs(e,t,n){const o=n<.5?n*(1+t):n+t-n*t,r=2*n-o,l=Ss(r,o,e+1/3),i=Ss(r,o,e),a=Ss(r,o,e-1/3);return Math.round(255*l)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function xs(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Bs(e){return(parseFloat(e)%360+360)%360/360}function Is(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ts(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ms(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Es.exec(e))?parseInt(t[1]+"ff",16)>>>0:es&&void 0!==es[e]?es[e]:(t=hs.exec(e))?(xs(t[1])<<24|xs(t[2])<<16|xs(t[3])<<8|255)>>>0:(t=bs.exec(e))?(xs(t[1])<<24|xs(t[2])<<16|xs(t[3])<<8|Is(t[4]))>>>0:(t=ks.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ws.exec(e))?parseInt(t[1],16)>>>0:(t=ys.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=vs.exec(e))?(255|Cs(Bs(t[1]),Ts(t[2]),Ts(t[3])))>>>0:(t=_s.exec(e))?(Cs(Bs(t[1]),Ts(t[2]),Ts(t[3]))|Is(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var Ps=(e,t,n)=>{if($a.fun(e))return e;if($a.arr(e))return Ps({range:e,output:t,extrapolate:n});if($a.str(e.output[0]))return Ya(e);const o=e,r=o.output,l=o.range||[0,1],i=o.extrapolateLeft||o.extrapolate||"extend",a=o.extrapolateRight||o.extrapolate||"extend",s=o.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,l);return function(e,t,n,o,r,l,i,a,s){let c=s?s(e):e;if(c<t){if("identity"===i)return c;"clamp"===i&&(c=t)}if(c>n){if("identity"===a)return c;"clamp"===a&&(c=n)}if(o===r)return o;if(t===n)return e<=t?o:r;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=l(c),o===-1/0?c=-c:r===1/0?c+=o:c=c*(r-o)+o;return c}(e,l[t],l[t+1],r[t],r[t+1],s,i,a,o.map)}};var Ns=1.70158,Ls=1.525*Ns,Rs=Ns+1,As=2*Math.PI/3,Ds=2*Math.PI/4.5,Os=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},zs={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Rs*e*e*e-Ns*e*e,easeOutBack:e=>1+Rs*Math.pow(e-1,3)+Ns*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ls)/2:(Math.pow(2*e-2,2)*((Ls+1)*(2*e-2)+Ls)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*As),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*As)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Ds)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Ds)/2+1,easeInBounce:e=>1-Os(1-e),easeOutBounce:Os,easeInOutBounce:e=>e<.5?(1-Os(1-2*e))/2:(1+Os(2*e-1))/2,steps:(e,t="end")=>n=>{const o=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e;return((e,t,n)=>Math.min(Math.max(n,e),t))(0,1,("end"===t?Math.floor(o):Math.ceil(o))/e)}},Vs=Symbol.for("FluidValue.get"),Fs=Symbol.for("FluidValue.observers"),Hs=e=>Boolean(e&&e[Vs]),Gs=e=>e&&e[Vs]?e[Vs]():e,Us=e=>e[Fs]||null;function $s(e,t){const n=e[Fs];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var js=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ws(this,e)}},Ws=(e,t)=>Ys(e,Vs,t);function Ks(e,t){if(e[Vs]){let n=e[Fs];n||Ys(e,Fs,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function qs(e,t){const n=e[Fs];if(n&&n.has(t)){const o=n.size-1;o?n.delete(t):e[Fs]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var Zs,Ys=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Xs=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Qs=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Js=new RegExp(`(${Xs.source})(%|[a-z]+)`,"i"),ec=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,tc=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,nc=e=>{const[t,n]=oc(e);if(!t||Ja())return e;const o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&tc.test(n)?nc(n):n||e},oc=e=>{const t=tc.exec(e);if(!t)return[,];const[,n,o]=t;return[n,o]},rc=(e,t,n,o,r)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(o)}, ${r})`,lc=e=>{Zs||(Zs=es?new RegExp(`(${Object.keys(es).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Gs(e).replace(tc,nc).replace(Qs,Ms).replace(Zs,Ms))),n=t.map((e=>e.match(Xs).map(Number))),o=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))),r=o.map((t=>Ps({...e,output:t})));return e=>{const n=!Js.test(t[0])&&t.find((e=>Js.test(e)))?.replace(Xs,"");let o=0;return t[0].replace(Xs,(()=>`${r[o++](e)}${n||""}`)).replace(ec,rc)}},ic="react-spring: ",ac=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${ic}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},sc=ac(console.warn);var cc=ac(console.warn);function uc(e){return $a.str(e)&&("#"==e[0]||/\d/.test(e)||!Ja()&&tc.test(e)||e in(es||{}))}var dc=Ja()?ya.useEffect:ya.useLayoutEffect,pc=()=>{const e=(0,ya.useRef)(!1);return dc((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function mc(){const e=(0,ya.useState)()[1],t=pc();return()=>{t.current&&e(Math.random())}}var fc=e=>(0,ya.useEffect)(e,gc),gc=[];function hc(e){const t=(0,ya.useRef)();return(0,ya.useEffect)((()=>{t.current=e})),t.current}var bc=Symbol.for("Animated:node"),vc=e=>e&&e[bc],_c=(e,t)=>{return n=e,o=bc,r=t,Object.defineProperty(n,o,{value:r,writable:!0,configurable:!0});var n,o,r},kc=e=>e&&e[bc]&&e[bc].getPayload(),yc=class{constructor(){_c(this,this)}getPayload(){return this.payload||[]}},Ec=class extends yc{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,$a.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ec(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return $a.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,$a.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},wc=class extends Ec{constructor(e){super(0),this._string=null,this._toString=Ps({output:[e,e]})}static create(e){return new wc(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if($a.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Ps({output:[this.getValue(),e]})),this._value=0,super.reset()}},Sc={dependencies:null},Cc=class extends yc{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ka(this.source,((n,o)=>{var r;(r=n)&&r[bc]===r?t[o]=n.getValue(e):Hs(n)?t[o]=Gs(n):e||(t[o]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Wa(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Ka(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Sc.dependencies&&Hs(e)&&Sc.dependencies.add(e);const t=kc(e);t&&Wa(t,(e=>this.add(e)))}},xc=class extends Cc{constructor(e){super(e)}static create(e){return new xc(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Bc)),!0)}};function Bc(e){return(uc(e)?wc:Ec).create(e)}function Ic(e){const t=vc(e);return t?t.constructor:$a.arr(e)?xc:uc(e)?wc:Ec}var Tc=(e,t)=>{const n=!$a.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,ya.forwardRef)(((o,r)=>{const l=(0,ya.useRef)(null),i=n&&(0,ya.useCallback)((e=>{l.current=function(e,t){e&&($a.fun(e)?e(t):e.current=t);return t}(r,e)}),[r]),[a,s]=function(e,t){const n=new Set;Sc.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new Cc(e),Sc.dependencies=null,[e,n]}(o,t),c=mc(),u=()=>{const e=l.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,a.getValue(!0)))&&c()},d=new Mc(u,s),p=(0,ya.useRef)();dc((()=>(p.current=d,Wa(s,(e=>Ks(e,d))),()=>{p.current&&(Wa(p.current.deps,(e=>qs(e,p.current))),xa.cancel(p.current.update))}))),(0,ya.useEffect)(u,[]),fc((()=>()=>{const e=p.current;Wa(e.deps,(t=>qs(t,e)))}));const m=t.getComponentProps(a.getValue());return ya.createElement(e,{...m,ref:i})}))},Mc=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&xa.write(this.update)}};var Pc=Symbol.for("AnimatedComponent"),Nc=e=>$a.str(e)?e:e&&$a.str(e.displayName)?e.displayName:$a.fun(e)&&e.name||null;function Lc(e,...t){return $a.fun(e)?e(...t):e}var Rc=(e,t)=>!0===e||!!(t&&e&&($a.fun(e)?e(t):qa(e).includes(t))),Ac=(e,t)=>$a.obj(e)?t&&e[t]:e,Dc=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Oc=e=>e,zc=(e,t=Oc)=>{let n=Vc;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const o={};for(const r of n){const n=t(e[r],r);$a.und(n)||(o[r]=n)}return o},Vc=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Fc={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Hc(e){const t=function(e){const t={};let n=0;if(Ka(e,((e,o)=>{Fc[o]||(t[o]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Ka(e,((e,o)=>o in t||(n[o]=e))),n}return{...e}}function Gc(e){return e=Gs(e),$a.arr(e)?e.map(Gc):uc(e)?Sa.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Uc(e){for(const t in e)return!0;return!1}function $c(e){return $a.fun(e)||$a.arr(e)&&$a.obj(e[0])}function jc(e,t){e.ref?.delete(e),t?.delete(e)}function Wc(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Kc={tension:170,friction:26,mass:1,damping:1,easing:zs.linear,clamp:!1};function qc(e,t){if($a.und(t.decay)){const n=!$a.und(t.tension)||!$a.und(t.friction);!n&&$a.und(t.frequency)&&$a.und(t.damping)&&$a.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var Zc=[];function Yc(e,{key:t,props:n,defaultProps:o,state:r,actions:l}){return new Promise(((i,a)=>{let s,c,u=Rc(n.cancel??o?.cancel,t);if(u)m();else{$a.und(n.pause)||(r.paused=Rc(n.pause,t));let e=o?.pause;!0!==e&&(e=r.paused||Rc(e,t)),s=Lc(n.delay||0,t),e?(r.resumeQueue.add(p),l.pause()):(l.resume(),p())}function d(){r.resumeQueue.add(p),r.timeouts.delete(c),c.cancel(),s=c.time-xa.now()}function p(){s>0&&!Sa.skipAnimation?(r.delayed=!0,c=xa.setTimeout(m,s),r.pauseQueue.add(d),r.timeouts.add(c)):m()}function m(){r.delayed&&(r.delayed=!1),r.pauseQueue.delete(d),r.timeouts.delete(c),e<=(r.cancelId||0)&&(u=!0);try{l.start({...n,callId:e,cancel:u},i)}catch(e){a(e)}}}))}var Xc=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?eu(e.get()):t.every((e=>e.noop))?Qc(e.get()):Jc(e.get(),t.every((e=>e.finished))),Qc=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Jc=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),eu=e=>({value:e,cancelled:!0,finished:!1});function tu(e,t,n,o){const{callId:r,parentId:l,onRest:i}=t,{asyncTo:a,promise:s}=n;return l||e!==a||t.reset?n.promise=(async()=>{n.asyncId=r,n.asyncTo=e;const c=zc(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),m=e=>{const t=r<=(n.cancelId||0)&&eu(o)||r!==n.asyncId&&Jc(o,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const l=new ou,i=new ru;return(async()=>{if(Sa.skipAnimation)throw nu(n),i.result=Jc(o,!1),d(i),i;m(l);const a=$a.obj(e)?{...e}:{...t,to:e};a.parentId=r,Ka(c,((e,t)=>{$a.und(a[t])&&(a[t]=e)}));const s=await o.start(a);return m(l),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),s})()};let g;if(Sa.skipAnimation)return nu(n),Jc(o,!1);try{let t;t=$a.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,o.stop.bind(o))),await Promise.all([t.then(u),p]),g=Jc(o.get(),!0,!1)}catch(e){if(e instanceof ou)g=e.result;else{if(!(e instanceof ru))throw e;g=e.result}}finally{r==n.asyncId&&(n.asyncId=l,n.asyncTo=l?a:void 0,n.promise=l?s:void 0)}return $a.fun(i)&&xa.batchedUpdates((()=>{i(g,o,o.item)})),g})():s}function nu(e,t){Za(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var ou=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},ru=class extends Error{constructor(){super("SkipAnimationSignal")}},lu=e=>e instanceof au,iu=1,au=class extends js{constructor(){super(...arguments),this.id=iu++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=vc(this);return e&&e.getValue()}to(...e){return Sa.to(this,e)}interpolate(...e){return sc(`${ic}The "interpolate" function is deprecated in v9 (use "to" instead)`),Sa.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){$s(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ss.sort(this),$s(this,{type:"priority",parent:this,priority:e})}},su=Symbol.for("SpringPhase"),cu=e=>(1&e[su])>0,uu=e=>(2&e[su])>0,du=e=>(4&e[su])>0,pu=(e,t)=>t?e[su]|=3:e[su]&=-3,mu=(e,t)=>t?e[su]|=4:e[su]&=-5,fu=class extends au{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=Zc,this.toValues=null,this.fromValues=Zc,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Kc)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!$a.und(e)||!$a.und(t)){const n=$a.obj(e)?{...e}:{...t,from:e};$a.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(uu(this)||this._state.asyncTo)||du(this)}get goal(){return Gs(this.animation.to)}get velocity(){const e=vc(this);return e instanceof Ec?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return cu(this)}get isAnimating(){return uu(this)}get isPaused(){return du(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const o=this.animation;let{toValues:r}=o;const{config:l}=o,i=kc(o.to);!i&&Hs(o.to)&&(r=qa(Gs(o.to))),o.values.forEach(((a,s)=>{if(a.done)return;const c=a.constructor==wc?1:i?i[s].lastPosition:r[s];let u=o.immediate,d=c;if(!u){if(d=a.lastPosition,l.tension<=0)return void(a.done=!0);let t=a.elapsedTime+=e;const n=o.fromValues[s],r=null!=a.v0?a.v0:a.v0=$a.arr(l.velocity)?l.velocity[s]:l.velocity;let i;const p=l.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if($a.und(l.duration))if(l.decay){const e=!0===l.decay?.998:l.decay,o=Math.exp(-(1-e)*t);d=n+r/(1-e)*(1-o),u=Math.abs(a.lastPosition-d)<=p,i=r*o}else{i=null==a.lastVelocity?r:a.lastVelocity;const t=l.restVelocity||p/10,o=l.clamp?0:l.bounce,s=!$a.und(o),m=n==c?a.v0>0:n<c;let f,g=!1;const h=1,b=Math.ceil(e/h);for(let e=0;e<b&&(f=Math.abs(i)>t,f||(u=Math.abs(c-d)<=p,!u));++e){s&&(g=d==c||d>c==m,g&&(i=-i*o,d=c));i+=(1e-6*-l.tension*(d-c)+.001*-l.friction*i)/l.mass*h,d+=i*h}}else{let o=1;l.duration>0&&(this._memoizedDuration!==l.duration&&(this._memoizedDuration=l.duration,a.durationProgress>0&&(a.elapsedTime=l.duration*a.durationProgress,t=a.elapsedTime+=e)),o=(l.progress||0)+t/this._memoizedDuration,o=o>1?1:o<0?0:o,a.durationProgress=o),d=n+l.easing(o)*(c-n),i=(d-a.lastPosition)/e,u=1==o}a.lastVelocity=i,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}i&&!i[s].done&&(u=!1),u?a.done=!0:t=!1,a.setValue(d,l.round)&&(n=!0)}));const a=vc(this),s=a.getValue();if(t){const e=Gs(o.to);s===e&&!n||l.decay?n&&l.decay&&this._onChange(s):(a.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(s)}set(e){return xa.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(uu(this)){const{to:e,config:t}=this.animation;xa.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return $a.und(e)?(n=this.queue||[],this.queue=[]):n=[$a.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Xc(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),nu(this._state,e&&this._lastCallId),xa.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:o}=e;n=$a.obj(n)?n[t]:n,(null==n||$c(n))&&(n=void 0),o=$a.obj(o)?o[t]:o,null==o&&(o=void 0);const r={to:n,from:o};return cu(this)||(e.reverse&&([n,o]=[o,n]),o=Gs(o),$a.und(o)?vc(this)||this._set(n):this._set(o)),r}_update({...e},t){const{key:n,defaultProps:o}=this;e.default&&Object.assign(o,zc(e,((e,t)=>/^on/.test(t)?Ac(e,n):e))),yu(this,e,"onProps"),Eu(this,"onProps",e,this);const r=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const l=this._state;return Yc(++this._lastCallId,{key:n,props:e,defaultProps:o,state:l,actions:{pause:()=>{du(this)||(mu(this,!0),Qa(l.pauseQueue),Eu(this,"onPause",Jc(this,gu(this,this.animation.to)),this))},resume:()=>{du(this)&&(mu(this,!1),uu(this)&&this._resume(),Qa(l.resumeQueue),Eu(this,"onResume",Jc(this,gu(this,this.animation.to)),this))},start:this._merge.bind(this,r)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=hu(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(eu(this));const o=!$a.und(e.to),r=!$a.und(e.from);if(o||r){if(!(t.callId>this._lastToId))return n(eu(this));this._lastToId=t.callId}const{key:l,defaultProps:i,animation:a}=this,{to:s,from:c}=a;let{to:u=s,from:d=c}=e;!r||o||t.default&&!$a.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!ja(d,c);p&&(a.from=d),d=Gs(d);const m=!ja(u,s);m&&this._focus(u);const f=$c(t.to),{config:g}=a,{decay:h,velocity:b}=g;(o||r)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(qc(n={...n},t),t={...n,...t}),qc(e,t),Object.assign(e,t);for(const t in Kc)null==e[t]&&(e[t]=Kc[t]);let{frequency:o,damping:r}=e;const{mass:l}=e;$a.und(o)||(o<.01&&(o=.01),r<0&&(r=0),e.tension=Math.pow(2*Math.PI/o,2)*l,e.friction=4*Math.PI*r*l/o)}(g,Lc(t.config,l),t.config!==i.config?Lc(i.config,l):void 0);let v=vc(this);if(!v||$a.und(u))return n(Jc(this,!0));const _=$a.und(t.reset)?r&&!t.default:!$a.und(d)&&Rc(t.reset,l),k=_?d:this.get(),y=Gc(u),E=$a.num(y)||$a.arr(y)||uc(y),w=!f&&(!E||Rc(i.immediate||t.immediate,l));if(m){const e=Ic(u);if(e!==v.constructor){if(!w)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(y)}}const S=v.constructor;let C=Hs(u),x=!1;if(!C){const e=_||!cu(this)&&p;(m||e)&&(x=ja(Gc(k),y),C=!x),(ja(a.immediate,w)||w)&&ja(g.decay,h)&&ja(g.velocity,b)||(C=!0)}if(x&&uu(this)&&(a.changed&&!_?C=!0:C||this._stop(s)),!f&&((C||Hs(s))&&(a.values=v.getPayload(),a.toValues=Hs(u)?null:S==wc?[1]:qa(y)),a.immediate!=w&&(a.immediate=w,w||_||this._set(s)),C)){const{onRest:e}=a;Wa(ku,(e=>yu(this,t,e)));const o=Jc(this,gu(this,s));Qa(this._pendingCalls,o),this._pendingCalls.add(n),a.changed&&xa.batchedUpdates((()=>{a.changed=!_,e?.(o,this),_?Lc(i.onRest,o):a.onStart?.(o,this)}))}_&&this._set(k),f?n(tu(t.to,t,this._state,this)):C?this._start():uu(this)&&!m?this._pendingCalls.add(n):n(Qc(k))}_focus(e){const t=this.animation;e!==t.to&&(Us(this)&&this._detach(),t.to=e,Us(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Hs(t)&&(Ks(t,this),lu(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Hs(e)&&qs(e,this)}_set(e,t=!0){const n=Gs(e);if(!$a.und(n)){const e=vc(this);if(!e||!ja(n,e.getValue())){const o=Ic(n);e&&e.constructor==o?e.setValue(n):_c(this,o.create(n)),e&&xa.batchedUpdates((()=>{this._onChange(n,t)}))}}return vc(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Eu(this,"onStart",Jc(this,gu(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Lc(this.animation.onChange,e,this)),Lc(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;vc(this).reset(Gs(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),uu(this)||(pu(this,!0),du(this)||this._resume())}_resume(){Sa.skipAnimation?this.finish():ss.start(this)}_stop(e,t){if(uu(this)){pu(this,!1);const n=this.animation;Wa(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),$s(this,{type:"idle",parent:this});const o=t?eu(this.get()):Jc(this.get(),gu(this,e??n.to));Qa(this._pendingCalls,o),n.changed&&(n.changed=!1,Eu(this,"onRest",o,this))}}};function gu(e,t){const n=Gc(t);return ja(Gc(e.get()),n)}function hu(e,t=e.loop,n=e.to){const o=Lc(t);if(o){const r=!0!==o&&Hc(o),l=(r||e).reverse,i=!r||r.reset;return bu({...e,loop:t,default:!1,pause:void 0,to:!l||$c(n)?n:void 0,from:i?e.from:void 0,reset:i,...r})}}function bu(e){const{to:t,from:n}=e=Hc(e),o=new Set;return $a.obj(t)&&_u(t,o),$a.obj(n)&&_u(n,o),e.keys=o.size?Array.from(o):null,e}function vu(e){const t=bu(e);return $a.und(t.default)&&(t.default=zc(t)),t}function _u(e,t){Ka(e,((e,n)=>null!=e&&t.add(n)))}var ku=["onStart","onRest","onChange","onPause","onResume"];function yu(e,t,n){e.animation[n]=t[n]!==Dc(t,n)?Ac(t[n],e.key):void 0}function Eu(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var wu=["onStart","onChange","onRest"],Su=1,Cu=class{constructor(e,t){this.id=Su++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];$a.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(bu(e)),this}start(e){let{queue:t}=this;return e?t=qa(e).map(bu):this.queue=[],this._flush?this._flush(this,t):(Nu(this,t),xu(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Wa(qa(t),(t=>n[t].stop(!!e)))}else nu(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if($a.und(e))this.start({pause:!0});else{const t=this.springs;Wa(qa(e),(e=>t[e].pause()))}return this}resume(e){if($a.und(e))this.start({pause:!1});else{const t=this.springs;Wa(qa(e),(e=>t[e].resume()))}return this}each(e){Ka(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,o=this._active.size>0,r=this._changed.size>0;(o&&!this._started||r&&!this._started)&&(this._started=!0,Za(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const l=!o&&this._started,i=r||l&&n.size?this.get():null;r&&t.size&&Za(t,(([e,t])=>{t.value=i,e(t,this,this._item)})),l&&(this._started=!1,Za(n,(([e,t])=>{t.value=i,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}xa.onFrame(this._onFrame)}};function xu(e,t){return Promise.all(t.map((t=>Bu(e,t)))).then((t=>Xc(e,t)))}async function Bu(e,t,n){const{keys:o,to:r,from:l,loop:i,onRest:a,onResolve:s}=t,c=$a.obj(t.default)&&t.default;i&&(t.loop=!1),!1===r&&(t.to=null),!1===l&&(t.from=null);const u=$a.arr(r)||$a.fun(r)?r:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Wa(wu,(n=>{const o=t[n];if($a.fun(o)){const r=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=r.get(o);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):r.set(o,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Qa(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(o||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),m=!0===t.cancel||!0===Dc(t,"cancel");(u||m&&d.asyncId)&&p.push(Yc(++e._lastAsyncId,{props:t,state:d,actions:{pause:Ua,resume:Ua,start(t,n){m?(nu(d,e._lastAsyncId),n(eu(e))):(t.onRest=a,n(tu(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Xc(e,await Promise.all(p));if(i&&f.finished&&(!n||!f.noop)){const n=hu(t,i,r);if(n)return Nu(e,[n]),Bu(e,n,!0)}return s&&xa.batchedUpdates((()=>s(f,e,e.item))),f}function Iu(e,t){const n={...e.springs};return t&&Wa(qa(t),(e=>{$a.und(e.keys)&&(e=bu(e)),$a.obj(e.to)||(e={...e,to:void 0}),Pu(n,e,(e=>Mu(e)))})),Tu(e,n),n}function Tu(e,t){Ka(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Ks(t,e))}))}function Mu(e,t){const n=new fu;return n.key=e,t&&Ks(n,t),n}function Pu(e,t,n){t.keys&&Wa(t.keys,(o=>{(e[o]||(e[o]=n(o)))._prepareNode(t)}))}function Nu(e,t){Wa(t,(t=>{Pu(e.springs,t,(t=>Mu(t,e)))}))}var Lu,Ru,Au=({children:e,...t})=>{const n=(0,ya.useContext)(Du),o=t.pause||!!n.pause,r=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,ya.useState)((()=>({inputs:t,result:e()}))),o=(0,ya.useRef)(),r=o.current;let l=r;if(l){const n=Boolean(t&&l.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,l.inputs));n||(l={inputs:t,result:e()})}else l=n;return(0,ya.useEffect)((()=>{o.current=l,r==n&&(n.inputs=n.result=void 0)}),[l]),l.result}((()=>({pause:o,immediate:r})),[o,r]);const{Provider:l}=Du;return ya.createElement(l,{value:t},e)},Du=(Lu=Au,Ru={},Object.assign(Lu,ya.createContext(Ru)),Lu.Provider._context=Lu,Lu.Consumer._context=Lu,Lu);Au.Provider=Du.Provider,Au.Consumer=Du.Consumer;var Ou=()=>{const e=[],t=function(t){cc(`${ic}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const o=[];return Wa(e,((e,r)=>{if($a.und(t))o.push(e.start());else{const l=n(t,e,r);l&&o.push(e.start(l))}})),o};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Wa(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Wa(e,(e=>e.resume(...arguments))),this},t.set=function(t){Wa(e,((e,n)=>{const o=$a.fun(t)?t(n,e):t;o&&e.set(o)}))},t.start=function(t){const n=[];return Wa(e,((e,o)=>{if($a.und(t))n.push(e.start());else{const r=this._getProps(t,e,o);r&&n.push(e.start(r))}})),n},t.stop=function(){return Wa(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Wa(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return $a.fun(e)?e(n,t):e};return t._getProps=n,t};function zu(e,t,n){const o=$a.fun(t)&&t;o&&!n&&(n=[]);const r=(0,ya.useMemo)((()=>o||3==arguments.length?Ou():void 0),[]),l=(0,ya.useRef)(0),i=mc(),a=(0,ya.useMemo)((()=>({ctrls:[],queue:[],flush(e,t){const n=Iu(e,t);return l.current>0&&!a.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?xu(e,t):new Promise((o=>{Tu(e,n),a.queue.push((()=>{o(xu(e,t))})),i()}))}})),[]),s=(0,ya.useRef)([...a.ctrls]),c=[],u=hc(e)||0;function d(e,n){for(let r=e;r<n;r++){const e=s.current[r]||(s.current[r]=new Cu(null,a.flush)),n=o?o(r,e):t[r];n&&(c[r]=vu(n))}}(0,ya.useMemo)((()=>{Wa(s.current.slice(e,u),(e=>{jc(e,r),e.stop(!0)})),s.current.length=e,d(u,e)}),[e]),(0,ya.useMemo)((()=>{d(0,Math.min(u,e))}),n);const p=s.current.map(((e,t)=>Iu(e,c[t]))),m=(0,ya.useContext)(Au),f=hc(m),g=m!==f&&Uc(m);dc((()=>{l.current++,a.ctrls=s.current;const{queue:e}=a;e.length&&(a.queue=[],Wa(e,(e=>e()))),Wa(s.current,((e,t)=>{r?.add(e),g&&e.start({default:m});const n=c[t];n&&(Wc(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),fc((()=>()=>{Wa(a.ctrls,(e=>e.stop(!0)))}));const h=p.map((e=>({...e})));return r?[h,r]:h}function Vu(e,t){const n=$a.fun(e),[[o],r]=zu(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[o,r]:o}var Fu=class extends au{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Ps(...t);const n=this._get(),o=Ic(n);_c(this,o.create(n))}advance(e){const t=this._get();ja(t,this.get())||(vc(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Gu(this._active)&&Uu(this)}_get(){const e=$a.arr(this.source)?this.source.map(Gs):qa(Gs(this.source));return this.calc(...e)}_start(){this.idle&&!Gu(this._active)&&(this.idle=!1,Wa(kc(this),(e=>{e.done=!1})),Sa.skipAnimation?(xa.batchedUpdates((()=>this.advance())),Uu(this)):ss.start(this))}_attach(){let e=1;Wa(qa(this.source),(t=>{Hs(t)&&Ks(t,this),lu(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Wa(qa(this.source),(e=>{Hs(e)&&qs(e,this)})),this._active.clear(),Uu(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=qa(this.source).reduce(((e,t)=>Math.max(e,(lu(t)?t.priority:0)+1)),0))}};function Hu(e){return!1!==e.idle}function Gu(e){return!e.size||Array.from(e).every(Hu)}function Uu(e){e.idle||(e.idle=!0,Wa(kc(e),(e=>{e.done=!0})),$s(e,{type:"idle",parent:e}))}Sa.assign({createStringInterpolator:lc,to:(e,t)=>new Fu(e,t)});ss.advance;var $u=window.ReactDOM,ju=/^--/;function Wu(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||ju.test(e)||qu.hasOwnProperty(e)&&qu[e]?(""+t).trim():t+"px"}var Ku={};var qu={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zu=["Webkit","Ms","Moz","O"];qu=Object.keys(qu).reduce(((e,t)=>(Zu.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),qu);var Yu=/^(matrix|translate|scale|rotate|skew)/,Xu=/^(translate)/,Qu=/^(rotate|skew)/,Ju=(e,t)=>$a.num(e)&&0!==e?e+t:e,ed=(e,t)=>$a.arr(e)?e.every((e=>ed(e,t))):$a.num(e)?e===t:parseFloat(e)===t,td=class extends Cc{constructor({x:e,y:t,z:n,...o}){const r=[],l=[];(e||t||n)&&(r.push([e||0,t||0,n||0]),l.push((e=>[`translate3d(${e.map((e=>Ju(e,"px"))).join(",")})`,ed(e,0)]))),Ka(o,((e,t)=>{if("transform"===t)r.push([e||""]),l.push((e=>[e,""===e]));else if(Yu.test(t)){if(delete o[t],$a.und(e))return;const n=Xu.test(t)?"px":Qu.test(t)?"deg":"";r.push(qa(e)),l.push("rotate3d"===t?([e,t,o,r])=>[`rotate3d(${e},${t},${o},${Ju(r,n)})`,ed(r,0)]:e=>[`${t}(${e.map((e=>Ju(e,n))).join(",")})`,ed(e,t.startsWith("scale")?1:0)])}})),r.length&&(o.transform=new nd(r,l)),super(o)}},nd=class extends js{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Wa(this.inputs,((n,o)=>{const r=Gs(n[0]),[l,i]=this.transforms[o]($a.arr(r)?r:n.map(Gs));e+=" "+l,t=t&&i})),t?"none":e}observerAdded(e){1==e&&Wa(this.inputs,(e=>Wa(e,(e=>Hs(e)&&Ks(e,this)))))}observerRemoved(e){0==e&&Wa(this.inputs,(e=>Wa(e,(e=>Hs(e)&&qs(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),$s(this,e)}};Sa.assign({batchedUpdates:$u.unstable_batchedUpdates,createStringInterpolator:lc,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var od=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Cc(e)),getComponentProps:o=(e=>e)}={})=>{const r={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:o},l=e=>{const t=Nc(e)||"Anonymous";return(e=$a.str(e)?l[e]||(l[e]=Tc(e,r)):e[Pc]||(e[Pc]=Tc(e,r))).displayName=`Animated(${t})`,e};return Ka(e,((t,n)=>{$a.arr(e)&&(n=Nc(t)),l[n]=l(t)})),{animated:l}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:o,children:r,scrollTop:l,scrollLeft:i,viewBox:a,...s}=t,c=Object.values(s),u=Object.keys(s).map((t=>n||e.hasAttribute(t)?t:Ku[t]||(Ku[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==r&&(e.textContent=r);for(const t in o)if(o.hasOwnProperty(t)){const n=Wu(t,o[t]);ju.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==l&&(e.scrollTop=l),void 0!==i&&(e.scrollLeft=i),void 0!==a&&e.setAttribute("viewBox",a)},createAnimatedStyle:e=>new td(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),rd=od.animated;const ld=e=>e+1,id=e=>({top:e.offsetTop,left:e.offsetLeft});var ad=function({isSelected:e,adjustScrolling:t,enableAnimation:n,triggerAnimationOnChange:o}){const r=(0,c.useRef)(),l=(0,p.useReducedMotion)()||!n,[i,a]=(0,c.useReducer)(ld,0),[s,u]=(0,c.useReducer)(ld,0),[d,m]=(0,c.useState)({x:0,y:0}),f=(0,c.useMemo)((()=>r.current?id(r.current):null),[o]),g=(0,c.useMemo)((()=>{if(!t||!r.current)return()=>{};const e=(0,ea.getScrollContainer)(r.current);if(!e)return()=>{};const n=r.current.getBoundingClientRect();return()=>{const t=r.current.getBoundingClientRect().top-n.top;t&&(e.scrollTop+=t)}}),[o,t]);return(0,c.useLayoutEffect)((()=>{i&&u()}),[i]),(0,c.useLayoutEffect)((()=>{if(!f)return;if(l)return void g();r.current.style.transform=void 0;const e=id(r.current);a(),m({x:Math.round(f.left-e.left),y:Math.round(f.top-e.top)})}),[o]),Vu({from:{x:d.x,y:d.y},to:{x:0,y:0},reset:i!==s,config:{mass:5,tension:2e3,friction:200},immediate:l,onChange:function({value:t}){if(!r.current)return;let{x:n,y:o}=t;n=Math.round(n),o=Math.round(o);const l=0===n&&0===o;r.current.style.transformOrigin="center center",r.current.style.transform=l?void 0:`translate3d(${n}px,${o}px,0)`,r.current.style.zIndex=e?"1":"",g()}}),r};const sd=".block-editor-block-list__block",cd=".block-list-appender",ud=".block-editor-button-block-appender";function dd(e,t){return t.closest([sd,cd,ud].join(","))===e}function pd(e){for(;e&&e.nodeType!==e.ELEMENT_NODE;)e=e.parentNode;if(!e)return;const t=e.closest(sd);return t?t.id.slice(6):void 0}function md(e){const t=(0,c.useRef)(),n=function(e){return(0,f.useSelect)((t=>{const{getSelectedBlocksInitialCaretPosition:n,__unstableGetEditorMode:o,isBlockSelected:r}=t(Go);if(r(e)&&"edit"===o())return n()}),[e])}(e),{isBlockSelected:o,isMultiSelecting:r}=(0,f.useSelect)(Go);return(0,c.useEffect)((()=>{if(!o(e)||r())return;if(null==n)return;if(!t.current)return;const{ownerDocument:l}=t.current;if(dd(t.current,l.activeElement))return;const i=ea.focus.tabbable.find(t.current).filter((e=>(0,ea.isTextField)(e))),a=-1===n,s=i[a?i.length-1:0]||t.current;if(dd(t.current,s)){if(!t.current.getAttribute("contenteditable")){const e=ea.focus.tabbable.findNext(t.current);if(e&&dd(t.current,e)&&(0,ea.isFormElement)(e))return void e.focus()}(0,ea.placeCaretAtHorizontalEdge)(s,a)}else t.current.focus()}),[n,e]),t}function fd(e){if(e.defaultPrevented)return;const t="mouseover"===e.type?"add":"remove";e.preventDefault(),e.currentTarget.classList[t]("is-hovered")}function gd(){const e=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return t().outlineMode}),[]);return(0,p.useRefEffect)((t=>{if(e)return t.addEventListener("mouseout",fd),t.addEventListener("mouseover",fd),()=>{t.removeEventListener("mouseout",fd),t.removeEventListener("mouseover",fd),t.classList.remove("is-hovered")}}),[e])}function hd(e){return(0,f.useSelect)((t=>{const{isBlockBeingDragged:n,isBlockHighlighted:o,isBlockSelected:r,isBlockMultiSelected:l,getBlockName:i,getSettings:s,hasSelectedInnerBlock:c,isTyping:u,__unstableIsFullySelected:p,__unstableSelectionHasUnmergeableBlock:m}=t(Go),{outlineMode:f}=s(),g=n(e),h=r(e),b=i(e),v=c(e,!0),_=l(e);return d()({"is-selected":h,"is-highlighted":o(e),"is-multi-selected":_,"is-partially-selected":_&&!p()&&!m(),"is-reusable":(0,a.isReusableBlock)((0,a.getBlockType)(b)),"is-dragging":g,"has-child-selected":v,"remove-outline":h&&f&&u()})}),[e])}function bd(e){return(0,f.useSelect)((t=>{const n=t(Go).getBlockName(e),o=(0,a.getBlockType)(n);if(o?.apiVersion>1)return(0,a.getBlockDefaultClassName)(n)}),[e])}function vd(e){return(0,f.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(Go),r=o(e);if(!r?.className)return;const l=(0,a.getBlockType)(n(e));return l?.apiVersion>1?r.className:void 0}),[e])}function _d(e){return(0,f.useSelect)((t=>{const{hasBlockMovingClientId:n,canInsertBlockType:o,getBlockName:r,getBlockRootClientId:l,isBlockSelected:i}=t(Go);if(!i(e))return;const a=n();return a?d()("is-block-moving-mode",{"can-insert-moving-block":o(r(a),l(e))}):void 0}),[e])}function kd(e){const{isBlockSelected:t}=(0,f.useSelect)(Go),{selectBlock:n,selectionChange:o}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((r=>{function l(l){r.parentElement.closest('[contenteditable="true"]')||(t(e)?l.target.isContentEditable||o(e):dd(r,l.target)&&n(e))}return r.addEventListener("focusin",l),()=>{r.removeEventListener("focusin",l)}}),[t,n])}var yd=window.wp.keycodes;function Ed(e){const t=(0,f.useSelect)((t=>t(Go).isBlockSelected(e)),[e]),{getBlockRootClientId:n,getBlockIndex:o}=(0,f.useSelect)(Go),{insertDefaultBlock:r,removeBlock:l}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((i=>{if(t)return i.addEventListener("keydown",a),i.addEventListener("dragstart",s),()=>{i.removeEventListener("keydown",a),i.removeEventListener("dragstart",s)};function a(t){const{keyCode:a,target:s}=t;a!==yd.ENTER&&a!==yd.BACKSPACE&&a!==yd.DELETE||s!==i||(0,ea.isTextField)(s)||(t.preventDefault(),a===yd.ENTER?r({},n(e),o(e)+1):l(e))}function s(e){e.preventDefault()}}),[e,t,n,o,r,l])}function wd(e){const{isNavigationMode:t,isBlockSelected:n}=(0,f.useSelect)(Go),{setNavigationMode:o,selectBlock:r}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((l=>{function i(l){t()&&!l.defaultPrevented&&(l.preventDefault(),n(e)?o(!1):r(e))}return l.addEventListener("mousedown",i),()=>{l.addEventListener("mousedown",i)}}),[e,t,n,o])}const Sd=(0,c.createContext)({refs:new Map,callbacks:new Map});function Cd({children:e}){const t=(0,c.useMemo)((()=>({refs:new Map,callbacks:new Map})),[]);return(0,c.createElement)(Sd.Provider,{value:t},e)}function xd(e){const{refs:t,callbacks:n}=(0,c.useContext)(Sd),o=(0,c.useRef)();return(0,c.useLayoutEffect)((()=>(t.set(o,e),()=>{t.delete(o)})),[e]),(0,p.useRefEffect)((t=>{o.current=t,n.forEach(((n,o)=>{e===n&&o(t)}))}),[e])}function Bd(e){const{refs:t}=(0,c.useContext)(Sd),n=(0,c.useRef)();return n.current=e,(0,c.useMemo)((()=>({get current(){let e=null;for(const[o,r]of t.entries())r===n.current&&o.current&&(e=o.current);return e}})),[])}function Id(e){const{callbacks:t}=(0,c.useContext)(Sd),n=Bd(e),[o,r]=(0,c.useState)(null);return(0,c.useLayoutEffect)((()=>{if(e)return t.set(r,e),()=>{t.delete(r)}}),[e]),n.current||o}function Td(){const e=(0,c.useContext)(Yg);return(0,p.useRefEffect)((t=>{if(e)return e.observe(t),()=>{e.unobserve(t)}}),[e])}function Md(e){return(0,f.useSelect)((t=>{const{__unstableHasActiveBlockOverlayActive:n}=t(Go);return n(e)}),[e])}const Pd=200;function Nd(e={},{__unstableIsHtml:t}={}){const{clientId:n,className:o,wrapperProps:r={},isAligned:l}=(0,c.useContext)(Ci),{index:i,mode:s,name:u,blockApiVersion:m,blockTitle:g,isPartOfSelection:h,adjustScrolling:b,enableAnimation:_,isSubtreeDisabled:k}=(0,f.useSelect)((e=>{const{getBlockAttributes:t,getBlockIndex:o,getBlockMode:r,getBlockName:l,isTyping:i,getGlobalBlockCount:s,isBlockSelected:c,isBlockMultiSelected:u,isAncestorMultiSelected:d,isFirstMultiSelectedBlock:p,isBlockSubtreeDisabled:m}=Fo(e(Go)),{getActiveBlockVariation:f}=e(a.store),g=c(n),h=u(n)||d(n),b=l(n),v=(0,a.getBlockType)(b),_=f(b,t(n));return{index:o(n),mode:r(n),name:b,blockApiVersion:v?.apiVersion||1,blockTitle:_?.title||v?.title,isPartOfSelection:g||h,adjustScrolling:g||p(n),enableAnimation:!i()&&s()<=Pd,isSubtreeDisabled:m(n)}}),[n]),y=Md(n),E=(0,v.sprintf)((0,v.__)("Block: %s"),g),w="html"!==s||t?"":"-visual",S=(0,p.useMergeRefs)([e.ref,md(n),xd(n),kd(n),Ed(n),wd(n),gd(),Td(),ad({isSelected:h,adjustScrolling:b,enableAnimation:_,triggerAnimationOnChange:i}),(0,p.useDisabled)({isDisabled:!y})]),C=Ko();return m<2&&n===C.clientId&&"undefined"!=typeof process&&process.env,{tabIndex:0,...r,...e,ref:S,id:`block-${n}${w}`,role:"document","aria-label":E,"data-block":n,"data-type":u,"data-title":g,inert:k?"true":void 0,className:d()(d()("block-editor-block-list__block",{"wp-block":!l,"has-block-overlay":y}),o,e.className,r.className,hd(n),bd(n),vd(n),_d(n)),style:{...r.style,...e.style}}}function Ld({children:e,isHtml:t,...n}){return(0,c.createElement)("div",{...Nd(n,{__unstableIsHtml:t})},e)}Nd.save=a.__unstableGetBlockProps;const Rd=(0,f.withSelect)(((e,{clientId:t,rootClientId:n})=>{const{isBlockSelected:o,getBlockMode:r,isSelectionEnabled:l,getTemplateLock:i,__unstableGetBlockWithoutInnerBlocks:a,canRemoveBlock:s,canMoveBlock:c}=e(Go),u=a(t),d=o(t),p=i(n),m=s(t,n),f=c(t,n),{name:g,attributes:h,isValid:b}=u||{};return{mode:r(t),isSelectionEnabled:l(),isLocked:!!p,canRemove:m,canMove:f,block:u,name:g,attributes:h,isValid:b,isSelected:d}})),Ad=(0,f.withDispatch)(((e,t,n)=>{const{updateBlockAttributes:o,insertBlocks:r,mergeBlocks:l,replaceBlocks:i,toggleSelection:s,__unstableMarkLastChangeAsPersistent:c,moveBlocksToPosition:u,removeBlock:d}=e(Go);return{setAttributes(e){const{getMultiSelectedBlockClientIds:r}=n.select(Go),l=r(),{clientId:i}=t,a=l.length?l:[i];o(a,e)},onInsertBlocks(e,n){const{rootClientId:o}=t;r(e,n,o)},onInsertBlocksAfter(e){const{clientId:o,rootClientId:l}=t,{getBlockIndex:i}=n.select(Go),a=i(o);r(e,a+1,l)},onMerge(e){const{clientId:o,rootClientId:i}=t,{getPreviousBlockClientId:s,getNextBlockClientId:c,getBlock:p,getBlockAttributes:m,getBlockName:f,getBlockOrder:g,getBlockIndex:h,getBlockRootClientId:b,canInsertBlockType:v}=n.select(Go);function _(e,t=!0){const o=b(e),l=g(e),[i]=l;1===l.length&&(0,a.isUnmodifiedBlock)(p(i))?d(e):n.batch((()=>{if(v(f(i),o))u([i],e,o,h(e));else{const n=(0,a.switchToBlockType)(p(i),(0,a.getDefaultBlockName)());n&&n.length&&(r(n,h(e),o,t),d(i,!1))}!g(e).length&&(0,a.isUnmodifiedBlock)(p(e))&&d(e,!1)}))}if(e){if(i){const e=c(i);if(e){if(f(i)!==f(e))return void l(i,e);{const t=m(i),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{u(g(e),e,i),d(e,!1)}))}}}const e=c(o);if(!e)return;g(e).length?_(e,!1):l(o,e)}else{const e=s(o);if(e)l(e,o);else if(i){const e=s(i);if(e&&f(i)===f(e)){const t=m(i),o=m(e);if(Object.keys(t).every((e=>t[e]===o[e])))return void n.batch((()=>{u(g(i),i,e),d(i,!1)}))}_(i)}}},onReplace(e,n,o){e.length&&!(0,a.isUnmodifiedDefaultBlock)(e[e.length-1])&&c(),i([t.clientId],e,n,o)},toggleSelection(e){s(e)}}}));var Dd=(0,p.compose)(p.pure,Rd,Ad,(0,p.ifCondition)((({block:e})=>!!e)),(0,m.withFilters)("editor.BlockListBlock"))((function({block:{__unstableBlockSource:e},mode:t,isLocked:n,canRemove:o,clientId:r,isSelected:l,isSelectionEnabled:i,className:s,__unstableLayoutClassNames:u,name:p,isValid:m,attributes:g,wrapperProps:h,setAttributes:b,onReplace:v,onInsertBlocksAfter:_,onMerge:k,toggleSelection:y}){var E;const{themeSupportsLayout:w,isTemporarilyEditingAsBlocks:S,blockEditingMode:C}=(0,f.useSelect)((e=>{const{getSettings:t,__unstableGetTemporarilyEditingAsBlocks:n,getBlockEditingMode:o}=Fo(e(Go));return{themeSupportsLayout:t().supportsLayout,isTemporarilyEditingAsBlocks:n()===r,blockEditingMode:o(r)}}),[r]),{removeBlock:x}=(0,f.useDispatch)(Go),B=(0,c.useCallback)((()=>x(r)),[r]),I=di()||{};let T=(0,c.createElement)(aa,{name:p,isSelected:l,attributes:g,setAttributes:b,insertBlocksAfter:n?void 0:_,onReplace:o?v:void 0,onRemove:o?B:void 0,mergeBlocks:o?k:void 0,clientId:r,isSelectionEnabled:i,toggleSelection:y,__unstableLayoutClassNames:u,__unstableParentLayout:Object.keys(I).length?I:void 0});const M=(0,a.getBlockType)(p);"disabled"===C&&(h={...h,tabIndex:-1}),M?.getEditWrapperProps&&(h=function(e,t){const n={...e,...t};return e?.className&&t?.className&&(n.className=d()(e.className,t.className)),e?.style&&t?.style&&(n.style={...e.style,...t.style}),n}(h,M.getEditWrapperProps(g)));const P=h&&!!h["data-align"]&&!w;let N;if(P&&(T=(0,c.createElement)("div",{className:"wp-block","data-align":h["data-align"]},T)),m)N="html"===t?(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{style:{display:"none"}},T),(0,c.createElement)(Ld,{isHtml:!0},(0,c.createElement)(ka,{clientId:r}))):M?.apiVersion>1?T:(0,c.createElement)(Ld,{...h},T);else{const t=e?(0,a.serializeRawBlock)(e):(0,a.getSaveContent)(M,g);N=(0,c.createElement)(Ld,{className:"has-warning"},(0,c.createElement)(fa,{clientId:r}),(0,c.createElement)(c.RawHTML,null,(0,ea.safeHTML)(t)))}const{"data-align":L,...R}=null!==(E=h)&&void 0!==E?E:{},A={clientId:r,className:d()({"is-editing-disabled":"disabled"===C,"is-content-locked-temporarily-editing-as-blocks":S},L&&w&&`align${L}`,s),wrapperProps:R,isAligned:P},D=(0,c.useMemo)((()=>A),Object.values(A));return(0,c.createElement)(Ci.Provider,{value:D},(0,c.createElement)(va,{fallback:(0,c.createElement)(Ld,{className:"has-warning"},(0,c.createElement)(ha,null))},N))})),Od=window.wp.htmlEntities;var zd=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const Vd=[(0,c.createInterpolateElement)((0,v.__)("While writing, you can press <kbd>/</kbd> to quickly insert new blocks."),{kbd:(0,c.createElement)("kbd",null)}),(0,c.createInterpolateElement)((0,v.__)("Indent a list by pressing <kbd>space</kbd> at the beginning of a line."),{kbd:(0,c.createElement)("kbd",null)}),(0,c.createInterpolateElement)((0,v.__)("Outdent a list by pressing <kbd>backspace</kbd> at the beginning of a line."),{kbd:(0,c.createElement)("kbd",null)}),(0,v.__)("Drag files into the editor to automatically insert media blocks."),(0,v.__)("Change a block's type by pressing the block icon on the toolbar.")];var Fd=function(){const[e]=(0,c.useState)(Math.floor(Math.random()*Vd.length));return(0,c.createElement)(m.Tip,null,Vd[e])};var Hd=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var Gd=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var Ud=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));var $d=(0,c.memo)((function({icon:e,showColors:t=!1,className:n,context:o}){"block-default"===e?.src&&(e={src:Ud});const r=(0,c.createElement)(m.Icon,{icon:e&&e.src?e.src:e,context:o}),l=t?{backgroundColor:e&&e.background,color:e&&e.foreground}:{};return(0,c.createElement)("span",{style:l,className:d()("block-editor-block-icon",n,{"has-colors":t})},r)}));var jd=function({title:e,icon:t,description:n,blockType:o,className:r}){o&&($()("`blockType` property in `BlockCard component`",{since:"5.7",alternative:"`title, icon and description` properties"}),({title:e,icon:t,description:n}=o));const{parentNavBlockClientId:l}=(0,f.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(Go);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[]),{selectBlock:i}=(0,f.useDispatch)(Go);return(0,c.createElement)("div",{className:d()("block-editor-block-card",r)},l&&(0,c.createElement)(m.Button,{onClick:()=>i(l),label:(0,v.__)("Go to parent Navigation block"),style:{minWidth:24,padding:0},icon:(0,v.isRTL)()?Hd:Gd,isSmall:!0}),(0,c.createElement)($d,{icon:t,showColors:!0}),(0,c.createElement)("div",{className:"block-editor-block-card__content"},(0,c.createElement)("h2",{className:"block-editor-block-card__title"},e),(0,c.createElement)("span",{className:"block-editor-block-card__description"},n)))};const Wd=(0,p.createHigherOrderComponent)((e=>(0,f.withRegistry)((({useSubRegistry:t=!0,registry:n,...o})=>{if(!t)return(0,c.createElement)(e,{registry:n,...o});const[r,l]=(0,c.useState)(null);return(0,c.useEffect)((()=>{const e=(0,f.createRegistry)({},n);e.registerStore(Oo,Ho),l(e)}),[n]),r?(0,c.createElement)(f.RegistryProvider,{value:r},(0,c.createElement)(e,{registry:r,...o})):null}))),"withRegistryProvider");const Kd=()=>{};function qd({clientId:e=null,value:t,selection:n,onChange:o=Kd,onInput:r=Kd}){const l=(0,f.useRegistry)(),{resetBlocks:i,resetSelection:s,replaceInnerBlocks:u,selectBlock:d,setHasControlledInnerBlocks:p,__unstableMarkNextChangeAsNotPersistent:m}=l.dispatch(Go),{hasSelectedBlock:g,getBlockName:h,getBlocks:b,getSelectionStart:v,getSelectionEnd:_,getBlock:k}=l.select(Go),y=(0,f.useSelect)((t=>!e||t(Go).areInnerBlocksControlled(e)),[e]),E=(0,c.useRef)({incoming:null,outgoing:[]}),w=(0,c.useRef)(!1),S=()=>{t&&(m(),e?l.batch((()=>{p(e,!0);const n=t.map((e=>(0,a.cloneBlock)(e)));w.current&&(E.current.incoming=n),m(),u(e,n)})):(w.current&&(E.current.incoming=t),i(t)))},C=(0,c.useRef)(r),x=(0,c.useRef)(o);(0,c.useEffect)((()=>{C.current=r,x.current=o}),[r,o]),(0,c.useEffect)((()=>{if(E.current.outgoing.includes(t))E.current.outgoing[E.current.outgoing.length-1]===t&&(E.current.outgoing=[]);else if(b(e)!==t){E.current.outgoing=[];const t=g(),o=v(),r=_();if(S(),n)s(n.selectionStart,n.selectionEnd,n.initialPosition);else{const n=k(o.clientId);t&&!n?d(e):s(o,r)}}}),[t,e]),(0,c.useEffect)((()=>{y||(E.current.outgoing=[],S())}),[y]),(0,c.useEffect)((()=>{const{getSelectedBlocksInitialCaretPosition:t,isLastBlockChangePersistent:n,__unstableIsLastBlockChangeIgnored:o,areInnerBlocksControlled:r}=l.select(Go);let i=b(e),a=n(),s=!1;w.current=!0;const c=l.subscribe((()=>{if(null!==e&&null===h(e))return;if(!(!e||r(e)))return;const l=n(),c=b(e),u=c!==i;if(i=c,u&&(E.current.incoming||o()))return E.current.incoming=null,void(a=l);if(u||s&&!u&&l&&!a){a=l,E.current.outgoing.push(i);(a?x.current:C.current)(i,{selection:{selectionStart:v(),selectionEnd:_(),initialPosition:t()}})}s=u}));return()=>{w.current=!1,c()}}),[l,e]),(0,c.useEffect)((()=>()=>{m(),e?(p(e,!1),m(),u(e,[])):i([])}),[])}const Zd=Wd((e=>{const{children:t,settings:n,stripExperimentalSettings:o=!1}=e,{__experimentalUpdateSettings:r}=Fo((0,f.useDispatch)(Go));return(0,c.useEffect)((()=>{r({...n,__internalIsInitialized:!0},o)}),[n]),qd(e),(0,c.createElement)(Cd,null,t)}));var Yd=e=>(0,c.createElement)(Zd,{...e,stripExperimentalSettings:!0},e.children);function Xd(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=(0,f.useSelect)(Go),{clearSelectedBlock:o}=(0,f.useDispatch)(Go),{clearBlockSelection:r}=e();return(0,p.useRefEffect)((e=>{if(r)return e.addEventListener("mousedown",l),()=>{e.removeEventListener("mousedown",l)};function l(r){(t()||n())&&r.target===e&&o()}}),[t,n,o,r])}function Qd(e){return(0,c.createElement)("div",{ref:Xd(),...e})}function Jd(e){const{isMultiSelecting:t,getMultiSelectedBlockClientIds:n,hasMultiSelection:o,getSelectedBlockClientId:r,getSelectedBlocksInitialCaretPosition:l,__unstableIsFullySelected:i}=e(Go);return{isMultiSelecting:t(),multiSelectedBlockClientIds:n(),hasMultiSelection:o(),selectedBlockClientId:r(),initialPosition:l(),isFullSelection:i()}}function ep(){const{initialPosition:e,isMultiSelecting:t,multiSelectedBlockClientIds:n,hasMultiSelection:o,selectedBlockClientId:r,isFullSelection:l}=(0,f.useSelect)(Jd,[]);return(0,p.useRefEffect)((r=>{const{ownerDocument:i}=r,{defaultView:a}=i;if(null==e)return;if(!o||t)return;const{length:s}=n;s<2||l&&(r.contentEditable=!0,r.focus(),a.getSelection().removeAllRanges())}),[o,t,n,r,e,l])}function tp(e,t,n,o){let r,l=ea.focus.focusable.find(n);return t&&l.reverse(),l=l.slice(l.indexOf(e)+1),o&&(r=e.getBoundingClientRect()),l.find((function(e){if(1!==e.children.length||!function(e,t){return e.closest(sd)===t.closest(sd)}(e,e.firstElementChild)||"true"!==e.firstElementChild.getAttribute("contenteditable")){if(!ea.focus.tabbable.isTabbableIndex(e))return!1;if(e.isContentEditable&&"true"!==e.contentEditable)return!1;if(o){const t=e.getBoundingClientRect();if(t.left>=r.right||t.right<=r.left)return!1}return!0}}))}function np(){const{getMultiSelectedBlocksStartClientId:e,getMultiSelectedBlocksEndClientId:t,getSettings:n,hasMultiSelection:o,__unstableIsFullySelected:r}=(0,f.useSelect)(Go),{selectBlock:l}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((i=>{let a;function s(){a=null}function c(s){if(s.defaultPrevented)return;const{keyCode:c,target:u,shiftKey:d,ctrlKey:p,altKey:m,metaKey:f}=s,g=c===yd.UP,h=c===yd.DOWN,b=c===yd.LEFT,v=c===yd.RIGHT,_=g||b,k=b||v,y=g||h,E=k||y,w=d||p||m||f,S=y?ea.isVerticalEdge:ea.isHorizontalEdge,{ownerDocument:C}=i,{defaultView:x}=C;if(!E)return;if(o()){if(d)return;if(!r())return;return s.preventDefault(),void(_?l(e()):l(t(),-1))}if(!function(e,t,n){const o=t===yd.UP||t===yd.DOWN,{tagName:r}=e,l=e.getAttribute("type");if(o&&!n)return"INPUT"!==r||!["date","datetime-local","month","number","range","time","week"].includes(l);if("INPUT"===r)return["button","checkbox","number","color","file","image","radio","reset","submit"].includes(l);return"TEXTAREA"!==r}(u,c,w))return;y?a||(a=(0,ea.computeCaretRect)(x)):a=null;const B=(0,ea.isRTL)(u)?!_:_,{keepCaretInsideBlock:I}=n();if(d)(function(e,t){const n=tp(e,t,i);return n&&pd(n)})(u,_)&&S(u,_)&&(i.contentEditable=!0,i.focus());else if(!y||!(0,ea.isVerticalEdge)(u,_)||m&&!(0,ea.isHorizontalEdge)(u,B)||I){if(k&&x.getSelection().isCollapsed&&(0,ea.isHorizontalEdge)(u,B)&&!I){const e=tp(u,B,i);(0,ea.placeCaretAtHorizontalEdge)(e,_),s.preventDefault()}}else{const e=tp(u,_,i,!0);e&&((0,ea.placeCaretAtVerticalEdge)(e,m?!_:_,m?void 0:a),s.preventDefault())}}return i.addEventListener("mousedown",s),i.addEventListener("keydown",c),()=>{i.removeEventListener("mousedown",s),i.removeEventListener("keydown",c)}}),[])}var op=window.wp.keyboardShortcuts;function rp(){const{getBlockOrder:e,getSelectedBlockClientIds:t,getBlockRootClientId:n}=(0,f.useSelect)(Go),{multiSelect:o,selectBlock:r}=(0,f.useDispatch)(Go),l=(0,op.__unstableUseShortcutEventMatch)();return(0,p.useRefEffect)((i=>{function a(a){if(!l("core/block-editor/select-all",a))return;const s=t();if(s.length<2&&!(0,ea.isEntirelySelected)(a.target))return;a.preventDefault();const[c]=s,u=n(c),d=e(u);s.length!==d.length?o(d[0],d[d.length-1]):u&&(i.ownerDocument.defaultView.getSelection().removeAllRanges(),r(u))}return i.addEventListener("keydown",a),()=>{i.removeEventListener("keydown",a)}}),[])}function lp(e,t){e.contentEditable=t,t&&e.focus()}function ip(){const{startMultiSelect:e,stopMultiSelect:t}=(0,f.useDispatch)(Go),{isSelectionEnabled:n,hasMultiSelection:o,isDraggingBlocks:r}=(0,f.useSelect)(Go);return(0,p.useRefEffect)((l=>{const{ownerDocument:i}=l,{defaultView:a}=i;let s,c;function u(){t(),a.removeEventListener("mouseup",u),c=a.requestAnimationFrame((()=>{if(o())return;lp(l,!1);const e=a.getSelection();if(e.rangeCount){const{commonAncestorContainer:t}=e.getRangeAt(0);s.contains(t)&&s.focus()}}))}function d({buttons:t,target:o}){r()||1===t&&"true"===o.getAttribute("contenteditable")&&n()&&(s=i.activeElement,e(),a.addEventListener("mouseup",u),lp(l,!0))}return l.addEventListener("mouseout",d),()=>{l.removeEventListener("mouseout",d),a.removeEventListener("mouseup",u),a.cancelAnimationFrame(c)}}),[e,t,n,o])}function ap(e,t){e.contentEditable!==String(t)&&(e.contentEditable=t),t&&e.focus()}function sp(){const{multiSelect:e,selectBlock:t,selectionChange:n}=(0,f.useDispatch)(Go),{getBlockParents:o,getBlockSelectionStart:r}=(0,f.useSelect)(Go);return(0,p.useRefEffect)((n=>{const{ownerDocument:l}=n,{defaultView:i}=l;function a(l){const a=i.getSelection();if(!a.rangeCount)return;const s=l.shiftKey&&"mouseup"===l.type;if(a.isCollapsed&&!s)return void ap(n,!1);let c=pd(function(e){const{anchorNode:t,anchorOffset:n}=e;return t.nodeType===t.TEXT_NODE||0===n?t:t.childNodes[n-1]}(a)),u=pd(function(e){const{focusNode:t,focusOffset:n}=e;return t.nodeType===t.TEXT_NODE||n===t.childNodes.length?t:t.childNodes[n]}(a));if(s){const e=r(),t=pd(l.target),n=t!==u;(c===u&&a.isCollapsed||!u||n)&&(u=t),c!==e&&(c=e)}if(void 0===c&&void 0===u)return void ap(n,!1);if(c===u)t(c);else{const t=[...o(c),c],n=[...o(u),u],r=function(e,t){let n=0;for(;e[n]===t[n];)n++;return n}(t,n);e(t[r],n[r])}}function s(){l.addEventListener("selectionchange",a),i.addEventListener("mouseup",a)}function c(){l.removeEventListener("selectionchange",a),i.removeEventListener("mouseup",a)}function u(){c(),s()}return s(),n.addEventListener("focusin",u),()=>{c(),n.removeEventListener("focusin",u)}}),[e,t,n,o])}function cp(){const{selectBlock:e}=(0,f.useDispatch)(Go),{isSelectionEnabled:t,getBlockSelectionStart:n,hasMultiSelection:o}=(0,f.useSelect)(Go);return(0,p.useRefEffect)((r=>{function l(l){if(!t()||0!==l.button)return;const i=n(),a=pd(l.target);l.shiftKey?i!==a&&(r.contentEditable=!0,r.focus()):o()&&e(a)}return r.addEventListener("mousedown",l),()=>{r.removeEventListener("mousedown",l)}}),[e,t,n,o])}function up(){const{__unstableIsFullySelected:e,getSelectedBlockClientIds:t,__unstableIsSelectionMergeable:n,hasMultiSelection:o}=(0,f.useSelect)(Go),{replaceBlocks:r,__unstableSplitSelection:l,removeBlocks:i,__unstableDeleteSelection:s,__unstableExpandSelection:c}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((u=>{function d(e){"true"===u.contentEditable&&e.preventDefault()}function p(d){d.defaultPrevented||o()&&(d.keyCode===yd.ENTER?(u.contentEditable=!1,d.preventDefault(),e()?r(t(),(0,a.createBlock)((0,a.getDefaultBlockName)())):l()):d.keyCode===yd.BACKSPACE||d.keyCode===yd.DELETE?(u.contentEditable=!1,d.preventDefault(),e()?i(t()):n()?s(d.keyCode===yd.DELETE):c()):1!==d.key.length||d.metaKey||d.ctrlKey||(u.contentEditable=!1,n()?s(d.keyCode===yd.DELETE):(d.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges())))}function m(e){o()&&(u.contentEditable=!1,n()?s():(e.preventDefault(),u.ownerDocument.defaultView.getSelection().removeAllRanges()))}return u.addEventListener("beforeinput",d),u.addEventListener("keydown",p),u.addEventListener("compositionstart",m),()=>{u.removeEventListener("beforeinput",d),u.removeEventListener("keydown",p),u.removeEventListener("compositionstart",m)}}),[])}function dp(){const[e,t,n]=function(){const e=(0,c.useRef)(),t=(0,c.useRef)(),n=(0,c.useRef)(),o=(0,c.useRef)(),{hasMultiSelection:r,getSelectedBlockClientId:l,getBlockCount:i}=(0,f.useSelect)(Go),{setNavigationMode:a}=(0,f.useDispatch)(Go),s=(0,f.useSelect)((e=>e(Go).isNavigationMode()),[])?void 0:"0",u=(0,c.useRef)();function d(t){if(u.current)u.current=null;else if(r())e.current.focus();else if(l())o.current.focus();else{a(!0);const n=e.current.ownerDocument===t.target.ownerDocument?e.current:e.current.ownerDocument.defaultView.frameElement,o=t.target.compareDocumentPosition(n)&t.target.DOCUMENT_POSITION_FOLLOWING,r=ea.focus.tabbable.find(e.current);r.length&&(o?r[0]:r[r.length-1]).focus()}}const m=(0,c.createElement)("div",{ref:t,tabIndex:s,onFocus:d}),g=(0,c.createElement)("div",{ref:n,tabIndex:s,onFocus:d}),h=(0,p.useRefEffect)((s=>{function c(e){if(e.defaultPrevented)return;if(e.keyCode===yd.ESCAPE&&!r())return e.preventDefault(),void a(!0);if(e.keyCode!==yd.TAB)return;const o=e.shiftKey,i=o?"findPrevious":"findNext";if(!r()&&!l())return void(e.target===s&&a(!0));const c=ea.focus.tabbable[i](e.target);if((0,ea.isFormElement)(c)&&((e,t)=>{const n=t.closest("[data-block]")?.getAttribute("data-block"),o=n===l(),r=e.contains(t);return o||r})(e.target.closest("[data-block]"),c))return;const d=o?t:n;u.current=!0,d.current.focus({preventScroll:!0})}function d(e){o.current=e.target;const{ownerDocument:t}=s;e.relatedTarget||t.activeElement!==t.body||0!==i()||s.focus()}function p(o){if(o.keyCode!==yd.TAB)return;if("region"===o.target?.getAttribute("role"))return;if(e.current===o.target)return;const r=o.shiftKey?"findPrevious":"findNext",l=ea.focus.tabbable[r](o.target);l!==t.current&&l!==n.current||(o.preventDefault(),l.focus({preventScroll:!0}))}const{ownerDocument:m}=s,{defaultView:f}=m;return f.addEventListener("keydown",p),s.addEventListener("keydown",c),s.addEventListener("focusout",d),()=>{f.removeEventListener("keydown",p),s.removeEventListener("keydown",c),s.removeEventListener("focusout",d)}}),[]);return[m,(0,p.useMergeRefs)([e,h]),g]}(),o=(0,f.useSelect)((e=>e(Go).hasMultiSelection()),[]);return[e,(0,p.useMergeRefs)([t,up(),ip(),sp(),cp(),ep(),rp(),np(),(0,p.useRefEffect)((e=>{if(e.tabIndex=0,e.contentEditable=o,o)return e.classList.add("has-multi-selection"),e.setAttribute("aria-label",(0,v.__)("Multiple selected blocks")),()=>{e.classList.remove("has-multi-selection"),e.removeAttribute("aria-label")}}),[o])]),n]}var pp=(0,c.forwardRef)((function({children:e,...t},n){const[o,r,l]=dp();return(0,c.createElement)(c.Fragment,null,o,(0,c.createElement)("div",{...t,ref:(0,p.useMergeRefs)([r,n]),className:d()(t.className,"block-editor-writing-flow")},e),l)}));function mp({contentRef:e,children:t,tabIndex:n=0,scale:o=1,frameSize:r=0,expand:l=!1,readonly:i,forwardedRef:a,...s}){const{resolvedAssets:u,isPreviewMode:g}=(0,f.useSelect)((e=>{const t=e(Go).getSettings();return{resolvedAssets:t.__unstableResolvedAssets,isPreviewMode:t.__unstableIsPreviewMode}}),[]),{styles:h="",scripts:b=""}=u,[_,k]=(0,c.useState)(),[y,E]=(0,c.useState)([]),w=(0,c.useMemo)((()=>Array.from(document.styleSheets).reduce(((e,t)=>{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:o}=t;if(null===n)return e;if(!o)return e;if("wp-reset-editor-styles-css"===n.id)return e;if(!n.id)return e;if(function e(t){return Array.from(t).find((({selectorText:t,conditionText:n,cssRules:o})=>n?e(o):t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block"))))}(o)){const t="STYLE"===n.tagName;if(t){const t=n.id.replace("-inline-css","-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}if(e.push(n.cloneNode(!0)),!t){const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}}return e}),[])),[]),S=Xd(),[C,x,B]=dp(),[I,{height:T}]=(0,p.useResizeObserver)(),M=(0,p.useRefEffect)((e=>{let t;function n(e){e.preventDefault()}function o(){const{contentDocument:o,ownerDocument:r}=e,{documentElement:l}=o;t=o,function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],l={};for(const t in e)l[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();l.clientX+=e.left,l.clientY+=e.top}const i=new r(e.type,l);!n.dispatchEvent(i)&&e.preventDefault()}const r=["dragover","mousemove"];for(const t of r)e.addEventListener(t,o)}(o),S(l),E(Array.from(r.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),o.dir=r.dir;for(const e of w)o.getElementById(e.id)||(o.head.appendChild(e.cloneNode(!0)),g||console.warn(`${e.id} was added to the iframe incorrectly. Please use block.json or enqueue_block_assets to add styles to the iframe.`,e));t.addEventListener("dragover",n,!1),t.addEventListener("drop",n,!1)}return e._load=()=>{k(e.contentDocument)},e.addEventListener("load",o),()=>{e.removeEventListener("load",o),t?.removeEventListener("dragover",n),t?.removeEventListener("drop",n)}}),[]),P=(0,p.useDisabled)({isDisabled:!i}),N=(0,p.useMergeRefs)([e,S,x,P]),L=`<!doctype html>\n<html>\n\t<head>\n\t\t<script>window.frameElement._load()<\/script>\n\t\t<style>html{height:auto!important;min-height:100%;}body{margin:0}</style>\n\t\t${h}\n\t\t${b}\n\t</head>\n\t<body>\n\t\t<script>document.currentScript.parentElement.remove()<\/script>\n\t</body>\n</html>`,[R,A]=(0,c.useMemo)((()=>{const e=URL.createObjectURL(new window.Blob([L],{type:"text/html"}));return[e,()=>URL.revokeObjectURL(e)]}),[L]);(0,c.useEffect)((()=>A),[A]);const D=T*(1-o)/2;return(0,c.createElement)(c.Fragment,null,n>=0&&C,(0,c.createElement)("iframe",{...s,style:{...s.style,height:l?T:s.style?.height,marginTop:1!==o?-D+r:s.style?.marginTop,marginBottom:1!==o?-D+r:s.style?.marginBottom,transform:1!==o?`scale( ${o} )`:s.style?.transform,transition:"all .3s"},ref:(0,p.useMergeRefs)([a,M]),tabIndex:n,src:R,title:(0,v.__)("Editor canvas")},_&&(0,c.createPortal)((0,c.createElement)("body",{ref:N,className:d()("block-editor-iframe__body","editor-styles-wrapper",...y)},I,(0,c.createElement)(m.__experimentalStyleProvider,{document:_},t)),_.documentElement)),n>=0&&B)}var fp=(0,c.forwardRef)((function(e,t){return(0,f.useSelect)((e=>e(Go).getSettings().__internalIsInitialized),[])?(0,c.createElement)(mp,{...e,forwardedRef:t}):null})),gp={grad:.9,turn:360,rad:360/(2*Math.PI)},hp=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},bp=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},vp=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},_p=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},kp=function(e){return{r:vp(e.r,0,255),g:vp(e.g,0,255),b:vp(e.b,0,255),a:vp(e.a)}},yp=function(e){return{r:bp(e.r),g:bp(e.g),b:bp(e.b),a:bp(e.a,3)}},Ep=/^#([0-9a-f]{3,8})$/i,wp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Sp=function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=Math.max(t,n,o),i=l-Math.min(t,n,o),a=i?l===t?(n-o)/i:l===n?2+(o-t)/i:4+(t-n)/i:0;return{h:60*(a<0?a+6:a),s:l?i/l*100:0,v:l/255*100,a:r}},Cp=function(e){var t=e.h,n=e.s,o=e.v,r=e.a;t=t/360*6,n/=100,o/=100;var l=Math.floor(t),i=o*(1-n),a=o*(1-(t-l)*n),s=o*(1-(1-t+l)*n),c=l%6;return{r:255*[o,a,i,i,s,o][c],g:255*[s,o,o,a,i,i][c],b:255*[i,i,s,o,o,a][c],a:r}},xp=function(e){return{h:_p(e.h),s:vp(e.s,0,100),l:vp(e.l,0,100),a:vp(e.a)}},Bp=function(e){return{h:bp(e.h),s:bp(e.s),l:bp(e.l),a:bp(e.a,3)}},Ip=function(e){return Cp((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},Tp=function(e){return{h:(t=Sp(e)).h,s:(r=(200-(n=t.s))*(o=t.v)/100)>0&&r<200?n*o/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,o,r},Mp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Pp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Np=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Lp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Rp={string:[[function(e){var t=Ep.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?bp(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?bp(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Np.exec(e)||Lp.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:kp({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Mp.exec(e)||Pp.exec(e);if(!t)return null;var n,o,r=xp({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(gp[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Ip(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,r=e.a,l=void 0===r?1:r;return hp(t)&&hp(n)&&hp(o)?kp({r:Number(t),g:Number(n),b:Number(o),a:Number(l)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,r=e.a,l=void 0===r?1:r;if(!hp(t)||!hp(n)||!hp(o))return null;var i=xp({h:Number(t),s:Number(n),l:Number(o),a:Number(l)});return Ip(i)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,r=e.a,l=void 0===r?1:r;if(!hp(t)||!hp(n)||!hp(o))return null;var i=function(e){return{h:_p(e.h),s:vp(e.s,0,100),v:vp(e.v,0,100),a:vp(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(l)});return Cp(i)},"hsv"]]},Ap=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},Dp=function(e){return"string"==typeof e?Ap(e.trim(),Rp.string):"object"==typeof e&&null!==e?Ap(e,Rp.object):[null,void 0]},Op=function(e,t){var n=Tp(e);return{h:n.h,s:vp(n.s+100*t,0,100),l:n.l,a:n.a}},zp=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Vp=function(e,t){var n=Tp(e);return{h:n.h,s:n.s,l:vp(n.l+100*t,0,100),a:n.a}},Fp=function(){function e(e){this.parsed=Dp(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return bp(zp(this.rgba),2)},e.prototype.isDark=function(){return zp(this.rgba)<.5},e.prototype.isLight=function(){return zp(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=yp(this.rgba)).r,n=e.g,o=e.b,l=(r=e.a)<1?wp(bp(255*r)):"","#"+wp(t)+wp(n)+wp(o)+l;var e,t,n,o,r,l},e.prototype.toRgb=function(){return yp(this.rgba)},e.prototype.toRgbString=function(){return t=(e=yp(this.rgba)).r,n=e.g,o=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+o+", "+r+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,r},e.prototype.toHsl=function(){return Bp(Tp(this.rgba))},e.prototype.toHslString=function(){return t=(e=Bp(Tp(this.rgba))).h,n=e.s,o=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+r+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,r},e.prototype.toHsv=function(){return e=Sp(this.rgba),{h:bp(e.h),s:bp(e.s),v:bp(e.v),a:bp(e.a,3)};var e},e.prototype.invert=function(){return Hp({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Hp(Op(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Hp(Op(this.rgba,-e))},e.prototype.grayscale=function(){return Hp(Op(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Hp(Vp(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Hp(Vp(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Hp({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):bp(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Tp(this.rgba);return"number"==typeof e?Hp({h:e,s:t.s,l:t.l,a:t.a}):bp(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Hp(e).toHex()},e}(),Hp=function(e){return e instanceof Fp?e:new Fp(e)},Gp=[],Up=function(e){e.forEach((function(e){Gp.indexOf(e)<0&&(e(Fp,Rp),Gp.push(e))}))};function $p(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var r in n)o[n[r]]=r;var l={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var r,i,a=o[this.toHex()];if(a)return a;if(null==t?void 0:t.closest){var s=this.toRgb(),c=1/0,u="black";if(!l.length)for(var d in n)l[d]=new e(n[d]).toRgb();for(var p in n){var m=(r=s,i=l[p],Math.pow(r.r-i.r,2)+Math.pow(r.g-i.g,2)+Math.pow(r.b-i.b,2));m<c&&(c=m,u=p)}return u}},t.string.push([function(t){var o=t.toLowerCase(),r="transparent"===o?"#0000":n[o];return r?new e(r).toRgb():null},"name"])}var jp=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Wp=function(e){return.2126*jp(e.r)+.7152*jp(e.g)+.0722*jp(e.b)};function Kp(e){e.prototype.luminance=function(){return e=Wp(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,o,r,l,i,a,s,c=t instanceof e?t:new e(t);return l=this.rgba,i=c.toRgb(),n=(a=Wp(l))>(s=Wp(i))?(a+.05)/(s+.05):(s+.05)/(a+.05),void 0===(o=2)&&(o=0),void 0===r&&(r=Math.pow(10,o)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(l=(n=t).size)?"normal":l,"AAA"===(r=void 0===(o=n.level)?"AA":o)&&"normal"===i?7:"AA"===r&&"large"===i?3:4.5);var n,o,r,l,i}}var qp=n(3124),Zp=n.n(qp);const Yp=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function Xp(e,t){t=t||{};let n=1,o=1;function r(e){const t=e.match(/\n/g);t&&(n+=t.length);const r=e.lastIndexOf("\n");o=~r?e.length-r:o+e.length}function l(){const e={line:n,column:o};return function(t){return t.position=new i(e),m(),t}}function i(e){this.start=e,this.end={line:n,column:o},this.source=t.source}i.prototype.content=e;const a=[];function s(r){const l=new Error(t.source+":"+n+":"+o+": "+r);if(l.reason=r,l.filename=t.source,l.line=n,l.column=o,l.source=e,!t.silent)throw l;a.push(l)}function c(){return p(/^{\s*/)}function u(){return p(/^}/)}function d(){let t;const n=[];for(m(),f(n);e.length&&"}"!==e.charAt(0)&&(t=S()||C());)!1!==t&&(n.push(t),f(n));return n}function p(t){const n=t.exec(e);if(!n)return;const o=n[0];return r(o),e=e.slice(o.length),n}function m(){p(/^\s*/)}function f(e){let t;for(e=e||[];t=g();)!1!==t&&e.push(t);return e}function g(){const t=l();if("/"!==e.charAt(0)||"*"!==e.charAt(1))return;let n=2;for(;""!==e.charAt(n)&&("*"!==e.charAt(n)||"/"!==e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return s("End of comment missing");const i=e.slice(2,n-2);return o+=2,r(i),e=e.slice(n),o+=2,t({type:"comment",comment:i})}function h(){const e=p(/^([^{]+)/);if(e)return Qp(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function b(){const e=l();let t=p(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!t)return;if(t=Qp(t[0]),!p(/^:\s*/))return s("property missing ':'");const n=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),o=e({type:"declaration",property:t.replace(Yp,""),value:n?Qp(n[0]).replace(Yp,""):""});return p(/^[;\s]*/),o}function v(){const e=[];if(!c())return s("missing '{'");let t;for(f(e);t=b();)!1!==t&&(e.push(t),f(e));return u()?e:s("missing '}'")}function _(){let e;const t=[],n=l();for(;e=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),p(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:v()})}const k=w("import"),y=w("charset"),E=w("namespace");function w(e){const t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){const n=l(),o=p(t);if(!o)return;const r={type:e};return r[e]=o[1].trim(),n(r)}}function S(){if("@"===e[0])return function(){const e=l();let t=p(/^@([-\w]+)?keyframes\s*/);if(!t)return;const n=t[1];if(t=p(/^([-\w]+)\s*/),!t)return s("@keyframes missing name");const o=t[1];if(!c())return s("@keyframes missing '{'");let r,i=f();for(;r=_();)i.push(r),i=i.concat(f());return u()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):s("@keyframes missing '}'")}()||function(){const e=l(),t=p(/^@media *([^{]+)/);if(!t)return;const n=Qp(t[1]);if(!c())return s("@media missing '{'");const o=f().concat(d());return u()?e({type:"media",media:n,rules:o}):s("@media missing '}'")}()||function(){const e=l(),t=p(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(t)return e({type:"custom-media",name:Qp(t[1]),media:Qp(t[2])})}()||function(){const e=l(),t=p(/^@supports *([^{]+)/);if(!t)return;const n=Qp(t[1]);if(!c())return s("@supports missing '{'");const o=f().concat(d());return u()?e({type:"supports",supports:n,rules:o}):s("@supports missing '}'")}()||k()||y()||E()||function(){const e=l(),t=p(/^@([-\w]+)?document *([^{]+)/);if(!t)return;const n=Qp(t[1]),o=Qp(t[2]);if(!c())return s("@document missing '{'");const r=f().concat(d());return u()?e({type:"document",document:o,vendor:n,rules:r}):s("@document missing '}'")}()||function(){const e=l();if(!p(/^@page */))return;const t=h()||[];if(!c())return s("@page missing '{'");let n,o=f();for(;n=b();)o.push(n),o=o.concat(f());return u()?e({type:"page",selectors:t,declarations:o}):s("@page missing '}'")}()||function(){const e=l();if(!p(/^@host\s*/))return;if(!c())return s("@host missing '{'");const t=f().concat(d());return u()?e({type:"host",rules:t}):s("@host missing '}'")}()||function(){const e=l();if(!p(/^@font-face\s*/))return;if(!c())return s("@font-face missing '{'");let t,n=f();for(;t=b();)n.push(t),n=n.concat(f());return u()?e({type:"font-face",declarations:n}):s("@font-face missing '}'")}()}function C(){const e=l(),t=h();return t?(f(),e({type:"rule",selectors:t,declarations:v()})):s("selector missing")}return Jp(function(){const e=d();return{type:"stylesheet",stylesheet:{source:t.source,rules:e,parsingErrors:a}}}())}function Qp(e){return e?e.replace(/^\s+|\s+$/g,""):""}function Jp(e,t){const n=e&&"string"==typeof e.type,o=n?e:t;for(const t in e){const n=e[t];Array.isArray(n)?n.forEach((function(e){Jp(e,o)})):n&&"object"==typeof n&&Jp(n,o)}return n&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var em=n(8575),tm=n.n(em),nm=om;function om(e){this.options=e||{}}om.prototype.emit=function(e){return e},om.prototype.visit=function(e){return this[e.type](e)},om.prototype.mapVisit=function(e,t){let n="";t=t||"";for(let o=0,r=e.length;o<r;o++)n+=this.visit(e[o]),t&&o<r-1&&(n+=this.emit(t));return n};var rm=lm;function lm(e){nm.call(this,e)}tm()(lm,nm),lm.prototype.compile=function(e){return e.stylesheet.rules.map(this.visit,this).join("")},lm.prototype.comment=function(e){return this.emit("",e.position)},lm.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},lm.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},lm.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},lm.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},lm.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},lm.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},lm.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit("{")+this.mapVisit(e.keyframes)+this.emit("}")},lm.prototype.keyframe=function(e){const t=e.declarations;return this.emit(e.values.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}")},lm.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", "):"";return this.emit("@page "+t,e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},lm.prototype["font-face"]=function(e){return this.emit("@font-face",e.position)+this.emit("{")+this.mapVisit(e.declarations)+this.emit("}")},lm.prototype.host=function(e){return this.emit("@host",e.position)+this.emit("{")+this.mapVisit(e.rules)+this.emit("}")},lm.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},lm.prototype.rule=function(e){const t=e.declarations;return t.length?this.emit(e.selectors.join(","),e.position)+this.emit("{")+this.mapVisit(t)+this.emit("}"):""},lm.prototype.declaration=function(e){return this.emit(e.property+":"+e.value,e.position)+this.emit(";")};var im=am;function am(e){e=e||{},nm.call(this,e),this.indentation=e.indent}tm()(am,nm),am.prototype.compile=function(e){return this.stylesheet(e)},am.prototype.stylesheet=function(e){return this.mapVisit(e.stylesheet.rules,"\n\n")},am.prototype.comment=function(e){return this.emit(this.indent()+"/*"+e.comment+"*/",e.position)},am.prototype.import=function(e){return this.emit("@import "+e.import+";",e.position)},am.prototype.media=function(e){return this.emit("@media "+e.media,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},am.prototype.document=function(e){const t="@"+(e.vendor||"")+"document "+e.document;return this.emit(t,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},am.prototype.charset=function(e){return this.emit("@charset "+e.charset+";",e.position)},am.prototype.namespace=function(e){return this.emit("@namespace "+e.namespace+";",e.position)},am.prototype.supports=function(e){return this.emit("@supports "+e.supports,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},am.prototype.keyframes=function(e){return this.emit("@"+(e.vendor||"")+"keyframes "+e.name,e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.keyframes,"\n")+this.emit(this.indent(-1)+"}")},am.prototype.keyframe=function(e){const t=e.declarations;return this.emit(this.indent())+this.emit(e.values.join(", "),e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(t,"\n")+this.emit(this.indent(-1)+"\n"+this.indent()+"}\n")},am.prototype.page=function(e){const t=e.selectors.length?e.selectors.join(", ")+" ":"";return this.emit("@page "+t,e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},am.prototype["font-face"]=function(e){return this.emit("@font-face ",e.position)+this.emit("{\n")+this.emit(this.indent(1))+this.mapVisit(e.declarations,"\n")+this.emit(this.indent(-1))+this.emit("\n}")},am.prototype.host=function(e){return this.emit("@host",e.position)+this.emit(" {\n"+this.indent(1))+this.mapVisit(e.rules,"\n\n")+this.emit(this.indent(-1)+"\n}")},am.prototype["custom-media"]=function(e){return this.emit("@custom-media "+e.name+" "+e.media+";",e.position)},am.prototype.rule=function(e){const t=this.indent(),n=e.declarations;return n.length?this.emit(e.selectors.map((function(e){return t+e})).join(",\n"),e.position)+this.emit(" {\n")+this.emit(this.indent(1))+this.mapVisit(n,"\n")+this.emit(this.indent(-1))+this.emit("\n"+this.indent()+"}"):""},am.prototype.declaration=function(e){return this.emit(this.indent())+this.emit(e.property+": "+e.value,e.position)+this.emit(";")},am.prototype.indent=function(e){return this.level=this.level||1,null!==e?(this.level+=e,""):Array(this.level).join(this.indentation||" ")};var sm=function(e,t){try{const n=Xp(e),o=Zp().map(n,(function(e){if(!e)return e;const n=t(e);return this.update(n)}));return function(e,t){return((t=t||{}).compress?new rm(t):new im(t)).compile(e)}(o)}catch(e){return console.warn("Error while traversing the CSS: "+e),null}};function cm(e){return 0!==e.value.indexOf("data:")&&0!==e.value.indexOf("#")&&(t=e.value,!/^\/(?!\/)/.test(t)&&!function(e){return/^(?:https?:)?\/\//.test(e)}(e.value));var t}function um(e,t){return new URL(e,t).toString()}var dm=e=>t=>{if("declaration"===t.type){const l=function(e){const t=/url\((\s*)(['"]?)(.+?)\2(\s*)\)/g;let n;const o=[];for(;null!==(n=t.exec(e));){const e={source:n[0],before:n[1],quote:n[2],value:n[3],after:n[4]};cm(e)&&o.push(e)}return o}(t.value).map((r=e,e=>({...e,newUrl:"url("+e.before+e.quote+um(e.value,r)+e.quote+e.after+")"})));return{...t,value:(n=t.value,o=l,o.forEach((e=>{n=n.replace(e.source,e.newUrl)})),n)}}var n,o,r;return t};const pm=/^(body|html|:root).*$/;var mm=(e,t=[])=>n=>{const o=n=>t.includes(n.trim())?n:n.match(pm)?n.replace(/^(body|html|:root)/,e):e+" "+n;return"rule"===n.type?{...n,selectors:n.selectors.map(o)}:n};var fm=(e,t="")=>Object.values(null!=e?e:[]).map((({css:e,baseURL:n})=>{const o=[];return t&&o.push(mm(t)),n&&o.push(dm(n)),o.length?sm(e,(0,p.compose)(o)):e}));const gm=".editor-styles-wrapper";function hm(e){return(0,c.useCallback)((e=>{if(!e)return;const{ownerDocument:t}=e,{defaultView:n,body:o}=t,r=t.querySelector(gm);let l;if(r)l=n?.getComputedStyle(r,null).getPropertyValue("background-color");else{const e=t.createElement("div");e.classList.add("editor-styles-wrapper"),o.appendChild(e),l=n?.getComputedStyle(e,null).getPropertyValue("background-color"),o.removeChild(e)}const i=Hp(l);i.luminance()>.5||0===i.alpha()?o.classList.remove("is-dark-theme"):o.classList.add("is-dark-theme")}),[e])}function bm({styles:e}){const t=(0,c.useMemo)((()=>Object.values(null!=e?e:[])),[e]),n=(0,c.useMemo)((()=>fm(t.filter((e=>e?.css)),gm)),[t]),o=(0,c.useMemo)((()=>t.filter((e=>"svgs"===e.__unstableType)).map((e=>e.assets)).join("")),[t]);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("style",{ref:hm(t)}),n.map(((e,t)=>(0,c.createElement)("style",{key:t},e))),(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 0 0",width:"0",height:"0",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"},dangerouslySetInnerHTML:{__html:o}}))}let vm;Up([$p,Kp]);const _m=2e3;function km({viewportWidth:e,containerWidth:t,minHeight:n,additionalStyles:o=[]}){e||(e=t);const[r,{height:l}]=(0,p.useResizeObserver)(),{styles:i}=(0,f.useSelect)((e=>({styles:e(Go).getSettings().styles})),[]),a=(0,c.useMemo)((()=>i?[...i,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}",__unstableType:"presets"},...o]:i),[i,o]);vm=vm||(0,p.pure)(Jg);const s=t/e;return(0,c.createElement)(m.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${s})`,height:l*s,maxHeight:l>_m?_m*s:void 0,minHeight:n}},(0,c.createElement)(fp,{contentRef:(0,p.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:l,pointerEvents:"none",maxHeight:_m,minHeight:0!==s&&s<1&&n?n/s:n}},(0,c.createElement)(bm,{styles:a}),r,(0,c.createElement)(vm,{renderAppender:!1})))}function ym(e){const[t,{width:n}]=(0,p.useResizeObserver)();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,c.createElement)("div",{className:"block-editor-block-preview__container"},!!n&&(0,c.createElement)(km,{...e,containerWidth:n})))}var Em=(0,c.memo)((function({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=[],__experimentalMinHeight:r,__experimentalPadding:l}){r&&(n=r,$()("The __experimentalMinHeight prop",{since:"6.2",version:"6.4",alternative:"minHeight"})),l&&(o=[...o,{css:`body { padding: ${l}px; }`}],$()("The __experimentalPadding prop of BlockPreview",{since:"6.2",version:"6.4",alternative:"additionalStyles"}));const i=(0,f.useSelect)((e=>e(Go).getSettings()),[]),a=(0,c.useMemo)((()=>({...i,__unstableIsPreviewMode:!0})),[i]),s=(0,c.useMemo)((()=>Array.isArray(e)?e:[e]),[e]);return e&&0!==e.length?(0,c.createElement)(Zd,{value:s,settings:a},(0,c.createElement)(ym,{viewportWidth:t,minHeight:n,additionalStyles:o})):null}));function wm({blocks:e,props:t={},layout:n}){const o=(0,f.useSelect)((e=>e(Go).getSettings()),[]),r=(0,c.useMemo)((()=>({...o,__unstableIsPreviewMode:!0})),[o]),l=(0,p.useDisabled)(),i=(0,p.useMergeRefs)([t.ref,l]),a=(0,c.useMemo)((()=>Array.isArray(e)?e:[e]),[e]),s=(0,c.createElement)(Zd,{value:a,settings:r},(0,c.createElement)(th,{renderAppender:!1,layout:n}));return{...t,ref:i,className:d()(t.className,"block-editor-block-preview__live-content","components-disabled"),children:e?.length?s:null}}var Sm=function({item:e}){var t;const{name:n,title:o,icon:r,description:l,initialAttributes:i,example:s}=e,u=(0,a.isReusableBlock)(e);return(0,c.createElement)("div",{className:"block-editor-inserter__preview-container"},(0,c.createElement)("div",{className:"block-editor-inserter__preview"},u||s?(0,c.createElement)("div",{className:"block-editor-inserter__preview-content"},(0,c.createElement)(Em,{blocks:s?(0,a.getBlockFromExample)(n,{attributes:{...s.attributes,...i},innerBlocks:s.innerBlocks}):(0,a.createBlock)(n,i),viewportWidth:null!==(t=s?.viewportWidth)&&void 0!==t?t:500,additionalStyles:[{css:"body { padding: 16px; }"}]})):(0,c.createElement)("div",{className:"block-editor-inserter__preview-content-missing"},(0,v.__)("No Preview Available."))),!u&&(0,c.createElement)(jd,{title:o,icon:r,description:l}))};var Cm=(0,c.createContext)();var xm=(0,c.forwardRef)((function({isFirst:e,as:t,children:n,...o},r){const l=(0,c.useContext)(Cm);return(0,c.createElement)(m.__unstableCompositeItem,{ref:r,state:l,role:"option",focusable:!0,...o},(o=>{const r={...o,tabIndex:e?0:o.tabIndex};return t?(0,c.createElement)(t,{...r},n):"function"==typeof n?n(r):(0,c.createElement)(m.Button,{...r},n)}))}));var Bm=(0,c.createElement)(F.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M8 7h2V5H8v2zm0 6h2v-2H8v2zm0 6h2v-2H8v2zm6-14v2h2V5h-2zm0 8h2v-2h-2v2zm0 6h2v-2h-2v2z"}));function Im({count:e,icon:t,isPattern:n}){const o=n&&(0,v.__)("Pattern");return(0,c.createElement)("div",{className:"block-editor-block-draggable-chip-wrapper"},(0,c.createElement)("div",{className:"block-editor-block-draggable-chip","data-testid":"block-draggable-chip"},(0,c.createElement)(m.Flex,{justify:"center",className:"block-editor-block-draggable-chip__content"},(0,c.createElement)(m.FlexItem,null,t?(0,c.createElement)($d,{icon:t}):o||(0,v.sprintf)((0,v._n)("%d block","%d blocks",e),e)),(0,c.createElement)(m.FlexItem,null,(0,c.createElement)($d,{icon:Bm})))))}var Tm=({isEnabled:e,blocks:t,icon:n,children:o,isPattern:r})=>{const l={type:"inserter",blocks:t};return(0,c.createElement)(m.Draggable,{__experimentalTransferDataType:"wp-blocks",transferData:l,onDragStart:e=>{e.dataTransfer.setData("text/html",(0,a.serialize)(t))},__experimentalDragComponent:(0,c.createElement)(Im,{count:t.length,icon:n,isPattern:r})},(({onDraggableStart:t,onDraggableEnd:n})=>o({draggable:e,onDragStart:e?t:void 0,onDragEnd:e?n:void 0})))};var Mm=(0,c.memo)((function({className:e,isFirst:t,item:n,onSelect:o,onHover:r,isDraggable:l,...i}){const s=(0,c.useRef)(!1),u=n.icon?{backgroundColor:n.icon.background,color:n.icon.foreground}:{},p=(0,c.useMemo)((()=>[(0,a.createBlock)(n.name,n.initialAttributes,(0,a.createBlocksFromInnerBlocksTemplate)(n.innerBlocks))]),[n.name,n.initialAttributes,n.initialAttributes]),f=(0,a.isReusableBlock)(n)&&"unsynced"!==n.syncStatus||(0,a.isTemplatePart)(n);return(0,c.createElement)(Tm,{isEnabled:l&&!n.disabled,blocks:p,icon:n.icon},(({draggable:l,onDragStart:a,onDragEnd:p})=>(0,c.createElement)("div",{className:d()("block-editor-block-types-list__list-item",{"is-synced":f}),draggable:l,onDragStart:e=>{s.current=!0,a&&(r(null),a(e))},onDragEnd:e=>{s.current=!1,p&&p(e)}},(0,c.createElement)(xm,{isFirst:t,className:d()("block-editor-block-types-list__item",e),disabled:n.isDisabled,onClick:e=>{e.preventDefault(),o(n,(0,yd.isAppleOS)()?e.metaKey:e.ctrlKey),r(null)},onKeyDown:e=>{const{keyCode:t}=e;t===yd.ENTER&&(e.preventDefault(),o(n,(0,yd.isAppleOS)()?e.metaKey:e.ctrlKey),r(null))},onMouseEnter:()=>{s.current||r(n)},onMouseLeave:()=>r(null),...i},(0,c.createElement)("span",{className:"block-editor-block-types-list__item-icon",style:u},(0,c.createElement)($d,{icon:n.icon,showColors:!0})),(0,c.createElement)("span",{className:"block-editor-block-types-list__item-title"},(0,c.createElement)(m.__experimentalTruncate,{numberOfLines:3},n.title))))))}));var Pm=(0,c.forwardRef)((function(e,t){const[n,o]=(0,c.useState)(!1);return(0,c.useEffect)((()=>{n&&(0,Cn.speak)((0,v.__)("Use left and right arrow keys to move through blocks"))}),[n]),(0,c.createElement)("div",{ref:t,role:"listbox","aria-orientation":"horizontal",onFocus:()=>{o(!0)},onBlur:e=>{!e.currentTarget.contains(e.relatedTarget)&&o(!1)},...e})}));var Nm=(0,c.forwardRef)((function(e,t){const n=(0,c.useContext)(Cm);return(0,c.createElement)(m.__unstableCompositeGroup,{state:n,role:"presentation",ref:t,...e})}));var Lm=function({items:e=[],onSelect:t,onHover:n=(()=>{}),children:o,label:r,isDraggable:l=!0}){return(0,c.createElement)(Pm,{className:"block-editor-block-types-list","aria-label":r},function(e,t){const n=[];for(let o=0,r=e.length;o<r;o+=t)n.push(e.slice(o,o+t));return n}(e,3).map(((e,o)=>(0,c.createElement)(Nm,{key:o},e.map(((e,r)=>(0,c.createElement)(Mm,{key:e.id,item:e,className:(0,a.getBlockMenuDefaultClassName)(e.id),onSelect:t,onHover:n,isDraggable:l&&!e.isDisabled,isFirst:0===o&&0===r})))))),o)};var Rm=function({title:e,icon:t,children:n}){return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-inserter__panel-header"},(0,c.createElement)("h2",{className:"block-editor-inserter__panel-title"},e),(0,c.createElement)(m.Icon,{icon:t})),(0,c.createElement)("div",{className:"block-editor-inserter__panel-content"},n))};var Am=(e,t)=>{const{categories:n,collections:o,items:r}=(0,f.useSelect)((t=>{const{getInserterItems:n}=t(Go),{getCategories:o,getCollections:r}=t(a.store);return{categories:o(),collections:r(),items:n(e)}}),[e]);return[r,n,o,(0,c.useCallback)((({name:e,initialAttributes:n,innerBlocks:o,syncStatus:r,content:l},i)=>{const s="unsynced"===r?(0,a.parse)(l,{__unstableSkipMigrationLogs:!0}):(0,a.createBlock)(e,n,(0,a.createBlocksFromInnerBlocksTemplate)(o));t(s,void 0,i)}),[t])]};var Dm=function({children:e}){const t=(0,m.__unstableUseCompositeState)({shift:!0,wrap:"horizontal"});return(0,c.createElement)(Cm.Provider,{value:t},e)};const Om=[];var zm=function({rootClientId:e,onInsert:t,onHover:n,showMostUsedBlocks:o}){const[r,l,i,a]=Am(e,t),s=(0,c.useMemo)((()=>K(r,"frecency","desc").slice(0,6)),[r]),u=(0,c.useMemo)((()=>r.filter((e=>!e.category))),[r]),d=(0,c.useMemo)((()=>(0,p.pipe)((e=>e.filter((e=>e.category&&"reusable"!==e.category))),(e=>e.reduce(((e,t)=>{const{category:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{})))(r)),[r]),m=(0,c.useMemo)((()=>{const e={...i};return Object.keys(i).forEach((t=>{e[t]=r.filter((e=>(e=>e.name.split("/")[0])(e)===t)),0===e[t].length&&delete e[t]})),e}),[r,i]);(0,c.useEffect)((()=>()=>n(null)),[]);const f=(0,p.useAsyncList)(l),g=l.length===f.length,h=(0,c.useMemo)((()=>Object.entries(i)),[i]),b=(0,p.useAsyncList)(g?h:Om);return(0,c.createElement)(Dm,null,(0,c.createElement)("div",null,o&&!!s.length&&(0,c.createElement)(Rm,{title:(0,v._x)("Most used","blocks")},(0,c.createElement)(Lm,{items:s,onSelect:a,onHover:n,label:(0,v._x)("Most used","blocks")})),f.map((e=>{const t=d[e.slug];return t&&t.length?(0,c.createElement)(Rm,{key:e.slug,title:e.title,icon:e.icon},(0,c.createElement)(Lm,{items:t,onSelect:a,onHover:n,label:e.title})):null})),g&&u.length>0&&(0,c.createElement)(Rm,{className:"block-editor-inserter__uncategorized-blocks-panel",title:(0,v.__)("Uncategorized")},(0,c.createElement)(Lm,{items:u,onSelect:a,onHover:n,label:(0,v.__)("Uncategorized")})),b.map((([e,t])=>{const o=m[e];return o&&o.length?(0,c.createElement)(Rm,{key:e,title:t.title,icon:t.icon},(0,c.createElement)(Lm,{items:o,onSelect:a,onHover:n,label:t.title})):null}))))},Vm=window.wp.notices;const Fm={name:"custom",label:(0,v.__)("My patterns"),description:(0,v.__)("Custom patterns add by site users")};var Hm=(e,t)=>{const{patternCategories:n,patterns:o}=(0,f.useSelect)((e=>{const{__experimentalGetAllowedPatterns:n,getSettings:o}=e(Go);return{patterns:n(t),patternCategories:o().__experimentalBlockPatternCategories}}),[t]),r=(0,c.useMemo)((()=>[...n,Fm]),[n]),{createSuccessNotice:l}=(0,f.useDispatch)(Vm.store),i=(0,c.useCallback)(((t,n)=>{e((null!=n?n:[]).map((e=>(0,a.cloneBlock)(e))),t.name),l((0,v.sprintf)((0,v.__)('Block pattern "%s" inserted.'),t.title),{type:"snackbar",id:"block-pattern-inserted-notice"})}),[l,e]);return[o,r,i]};const Gm=({showTooltip:e,title:t,children:n})=>e?(0,c.createElement)(m.Tooltip,{text:t},n):(0,c.createElement)(c.Fragment,null,n);function Um({isDraggable:e,pattern:t,onClick:n,onHover:o,composite:r,showTooltip:l}){const[i,a]=(0,c.useState)(!1),{blocks:s,viewportWidth:u}=t,d=`block-editor-block-patterns-list__item-description-${(0,p.useInstanceId)(Um)}`;return(0,c.createElement)(Tm,{isEnabled:e,blocks:s,isPattern:!!t},(({draggable:e,onDragStart:p,onDragEnd:f})=>(0,c.createElement)("div",{className:"block-editor-block-patterns-list__list-item",draggable:e,onDragStart:e=>{a(!0),p&&(o?.(null),p(e))},onDragEnd:e=>{a(!1),f&&f(e)}},(0,c.createElement)(Gm,{showTooltip:l,title:t.title},(0,c.createElement)(m.__unstableCompositeItem,{role:"option",as:"div",...r,className:"block-editor-block-patterns-list__item",onClick:()=>{n(t,s),o?.(null)},onMouseEnter:()=>{i||o?.(t)},onMouseLeave:()=>o?.(null),"aria-label":t.title,"aria-describedby":t.description?d:void 0},(0,c.createElement)(Em,{blocks:s,viewportWidth:u}),!l&&(0,c.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},t.title),!!t.description&&(0,c.createElement)(m.VisuallyHidden,{id:d},t.description))))))}function $m(){return(0,c.createElement)("div",{className:"block-editor-block-patterns-list__item is-placeholder"})}var jm=function({isDraggable:e,blockPatterns:t,shownPatterns:n,onHover:o,onClickPattern:r,orientation:l,label:i=(0,v.__)("Block Patterns"),showTitlesAsTooltip:a}){const s=(0,m.__unstableUseCompositeState)({orientation:l});return(0,c.createElement)(m.__unstableComposite,{...s,role:"listbox",className:"block-editor-block-patterns-list","aria-label":i},t.map((t=>n.includes(t)?(0,c.createElement)(Um,{key:t.name,pattern:t,onClick:r,onHover:o,isDraggable:e,composite:s,showTooltip:a}):(0,c.createElement)($m,{key:t.name}))))};function Wm({selectedCategory:e,patternCategories:t,onClickCategory:n}){const o="block-editor-block-patterns-explorer__sidebar";return(0,c.createElement)("div",{className:`${o}__categories-list`},t.map((({name:t,label:r})=>(0,c.createElement)(m.Button,{key:t,label:r,className:`${o}__categories-list__item`,isPressed:e===t,onClick:()=>{n(t)}},r))))}function Km({filterValue:e,setFilterValue:t}){return(0,c.createElement)("div",{className:"block-editor-block-patterns-explorer__search"},(0,c.createElement)(m.SearchControl,{__nextHasNoMarginBottom:!0,onChange:t,value:e,label:(0,v.__)("Search for patterns"),placeholder:(0,v.__)("Search")}))}var qm=function({selectedCategory:e,patternCategories:t,onClickCategory:n,filterValue:o,setFilterValue:r}){return(0,c.createElement)("div",{className:"block-editor-block-patterns-explorer__sidebar"},(0,c.createElement)(Km,{filterValue:o,setFilterValue:r}),!o&&(0,c.createElement)(Wm,{selectedCategory:e,patternCategories:t,onClickCategory:n}))};var Zm=function(){return(0,c.createElement)("div",{className:"block-editor-inserter__no-results"},(0,c.createElement)(Xl,{className:"block-editor-inserter__no-results-icon",icon:Ud}),(0,c.createElement)("p",null,(0,v.__)("No results found.")))};var Ym=function({rootClientId:e="",insertionIndex:t,clientId:n,isAppender:o,onSelect:r,shouldFocusBlock:l=!0,selectBlockOnInsert:i=!0}){const{getSelectedBlock:s}=(0,f.useSelect)(Go),{destinationRootClientId:u,destinationIndex:d}=(0,f.useSelect)((r=>{const{getSelectedBlockClientId:l,getBlockRootClientId:i,getBlockIndex:a,getBlockOrder:s}=r(Go),c=l();let u,d=e;return void 0!==t?u=t:n?u=a(n):!o&&c?(d=i(c),u=a(c)+1):u=s(d).length,{destinationRootClientId:d,destinationIndex:u}}),[e,t,n,o]),{replaceBlocks:p,insertBlocks:m,showInsertionPoint:g,hideInsertionPoint:h}=(0,f.useDispatch)(Go),b=(0,c.useCallback)(((e,t,n=!1)=>{const c=s();!o&&c&&(0,a.isUnmodifiedDefaultBlock)(c)?p(c.clientId,e,null,l||n?0:null,t):m(e,d,u,i,l||n?0:null,t);const f=Array.isArray(e)?e.length:1,g=(0,v.sprintf)((0,v._n)("%d block added.","%d blocks added.",f),f);(0,Cn.speak)(g),r&&r(e)}),[o,s,p,m,u,d,r,l,i]),_=(0,c.useCallback)((e=>{e?g(u,d):h()}),[g,h,u,d]);return[u,b,_]},Xm=n(4793),Qm=n.n(Xm);const Jm=e=>e.name||"",ef=e=>e.title,tf=e=>e.description||"",nf=e=>e.keywords||[],of=e=>e.category,rf=()=>null;function lf(e=""){return Ml(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function af(e=""){return e=(e=(e=Qm()(e)).replace(/^\//,"")).toLowerCase()}const sf=(e="")=>lf(af(e)),cf=(e,t,n,o)=>{if(0===sf(o).length)return e;return uf(e,o,{getCategory:e=>t.find((({slug:t})=>t===e.category))?.title,getCollection:e=>n[e.name.split("/")[0]]?.title})},uf=(e=[],t="",n={})=>{if(0===sf(t).length)return e;const o=e.map((e=>[e,df(e,t,n)])).filter((([,e])=>e>0));return o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))};function df(e,t,n={}){const{getName:o=Jm,getTitle:r=ef,getDescription:l=tf,getKeywords:i=nf,getCategory:a=of,getCollection:s=rf}=n,c=o(e),u=r(e),d=l(e),p=i(e),m=a(e),f=s(e),g=af(t),h=af(u);let b=0;if(g===h)b+=30;else if(h.startsWith(g))b+=20;else{const e=[c,u,d,...p,m,f].join(" ");0===((e,t)=>e.filter((e=>!sf(t).some((t=>t.includes(e))))))(lf(g),e).length&&(b+=10)}if(0!==b&&c.startsWith("core/")){b+=c!==e.id?1:2}return b}function pf({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,c.createElement)(m.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},(0,v.sprintf)((0,v._n)('%1$d pattern found for "%2$s"','%1$d patterns found for "%2$s"',t),t,e)):null}var mf=function({filterValue:e,selectedCategory:t,patternCategories:n}){const o=(0,p.useDebounce)(Cn.speak,500),[r,l]=Ym({shouldFocusBlock:!0}),[i,,a]=Hm(l,r),s=(0,c.useMemo)((()=>n.map((e=>e.name))),[n]),u=(0,c.useMemo)((()=>e?uf(i,e):i.filter((e=>"uncategorized"===t?!e.categories?.length||e.categories.every((e=>!s.includes(e))):e.categories?.includes(t)))),[e,i,t,s]);(0,c.useEffect)((()=>{if(!e)return;const t=u.length,n=(0,v.sprintf)((0,v._n)("%d result found.","%d results found.",t),t);o(n)}),[e,o,u.length]);const d=(0,p.useAsyncList)(u,{step:2}),m=!!u?.length;return(0,c.createElement)("div",{className:"block-editor-block-patterns-explorer__list"},m&&(0,c.createElement)(pf,{filterValue:e,filteredBlockPatternsLength:u.length}),(0,c.createElement)(Dm,null,!m&&(0,c.createElement)(Zm,null),m&&(0,c.createElement)(jm,{shownPatterns:d,blockPatterns:u,onClickPattern:a,isDraggable:!1})))};function ff({initialCategory:e,patternCategories:t}){const[n,o]=(0,c.useState)(""),[r,l]=(0,c.useState)(e?.name);return(0,c.createElement)("div",{className:"block-editor-block-patterns-explorer"},(0,c.createElement)(qm,{selectedCategory:r,patternCategories:t,onClickCategory:l,filterValue:n,setFilterValue:o}),(0,c.createElement)(mf,{filterValue:n,selectedCategory:r,patternCategories:t}))}var gf=function({onModalClose:e,...t}){return(0,c.createElement)(m.Modal,{title:(0,v.__)("Patterns"),onRequestClose:e,isFullScreen:!0},(0,c.createElement)(ff,{...t}))};function hf({title:e}){return(0,c.createElement)(m.__experimentalVStack,{spacing:0},(0,c.createElement)(m.__experimentalView,null,(0,c.createElement)(m.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3},(0,c.createElement)(m.__experimentalHStack,{spacing:2},(0,c.createElement)(m.__experimentalNavigatorBackButton,{style:{minWidth:24,padding:0},icon:(0,v.isRTL)()?Hd:Gd,isSmall:!0,"aria-label":(0,v.__)("Navigate to the previous view")}),(0,c.createElement)(m.__experimentalSpacer,null,(0,c.createElement)(m.__experimentalHeading,{level:5},e))))))}function bf({categories:e,children:t}){return(0,c.createElement)(m.__experimentalNavigatorProvider,{initialPath:"/",className:"block-editor-inserter__mobile-tab-navigation"},(0,c.createElement)(m.__experimentalNavigatorScreen,{path:"/"},(0,c.createElement)(m.__experimentalItemGroup,null,e.map((e=>(0,c.createElement)(m.__experimentalNavigatorButton,{key:e.name,path:`/category/${e.name}`,as:m.__experimentalItem,isAction:!0},(0,c.createElement)(m.__experimentalHStack,null,(0,c.createElement)(m.FlexBlock,null,e.label),(0,c.createElement)(Xl,{icon:(0,v.isRTL)()?Gd:Hd}))))))),e.map((e=>(0,c.createElement)(m.__experimentalNavigatorScreen,{key:e.name,path:`/category/${e.name}`},(0,c.createElement)(hf,{title:(0,v.__)("Back")}),t(e)))))}const vf=()=>{},_f=["custom","featured","posts","text","gallery","call-to-action","banner","header","footer"];function kf(e){const[t,n]=Hm(void 0,e),o=(0,c.useCallback)((e=>!(!e.categories||!e.categories.length)&&e.categories.some((e=>n.some((t=>t.name===e))))),[n]),r=(0,c.useMemo)((()=>{const e=n.filter((e=>t.some((t=>t.categories?.includes(e.name))))).sort((({name:e},{name:t})=>{let n=_f.indexOf(e),o=_f.indexOf(t);return n<0&&(n=_f.length),o<0&&(o=_f.length),n-o}));return t.some((e=>!o(e)))&&!e.find((e=>"uncategorized"===e.name))&&e.push({name:"uncategorized",label:(0,v._x)("Uncategorized")}),e}),[n,t,o]);return r}function yf({rootClientId:e,onInsert:t,onHover:n,category:o,showTitlesAsTooltip:r}){const l=(0,c.useRef)();return(0,c.useEffect)((()=>{const e=setTimeout((()=>{const[e]=ea.focus.tabbable.find(l.current);e?.focus()}));return()=>clearTimeout(e)}),[o]),(0,c.createElement)("div",{ref:l,className:"block-editor-inserter__patterns-category-dialog"},(0,c.createElement)(Ef,{rootClientId:e,onInsert:t,onHover:n,category:o,showTitlesAsTooltip:r}))}function Ef({rootClientId:e,onInsert:t,onHover:n=vf,category:o,showTitlesAsTooltip:r}){const[l,,i]=Hm(t,e),a=kf(e),s=(0,c.useMemo)((()=>l.filter((e=>{var t;if("uncategorized"!==o.name)return e.categories?.includes(o.name);return 0===(null!==(t=e.categories?.filter((e=>a.find((t=>t.name===e)))))&&void 0!==t?t:[]).length}))),[l,a,o.name]),u=(0,p.useAsyncList)(s);return(0,c.useEffect)((()=>()=>n(null)),[]),s.length?(0,c.createElement)("div",{className:"block-editor-inserter__patterns-category-panel"},(0,c.createElement)("div",{className:"block-editor-inserter__patterns-category-panel-title"},o.label),(0,c.createElement)("p",null,o.description),(0,c.createElement)(jm,{shownPatterns:u,blockPatterns:s,onClickPattern:i,onHover:n,label:o.label,orientation:"vertical",category:o.label,isDraggable:!0,showTitlesAsTooltip:r})):null}var wf=function({onSelectCategory:e,selectedCategory:t,onInsert:n,rootClientId:o}){const[r,l]=(0,c.useState)(!1),i=kf(o),a=t||i[0],s=(0,p.useViewportMatch)("medium","<");return(0,c.createElement)(c.Fragment,null,!s&&(0,c.createElement)("div",{className:"block-editor-inserter__block-patterns-tabs-container"},(0,c.createElement)("nav",{"aria-label":(0,v.__)("Block pattern categories")},(0,c.createElement)(m.__experimentalItemGroup,{role:"list",className:"block-editor-inserter__block-patterns-tabs"},i.map((n=>(0,c.createElement)(m.__experimentalItem,{role:"listitem",key:n.name,onClick:()=>e(n),className:n===t?"block-editor-inserter__patterns-category block-editor-inserter__patterns-selected-category":"block-editor-inserter__patterns-category","aria-label":n.label,"aria-current":n===t?"true":void 0},(0,c.createElement)(m.__experimentalHStack,null,(0,c.createElement)(m.FlexBlock,null,n.label),(0,c.createElement)(Xl,{icon:(0,v.isRTL)()?Gd:Hd}))))),(0,c.createElement)("div",{role:"listitem"},(0,c.createElement)(m.Button,{className:"block-editor-inserter__patterns-explore-button",onClick:()=>l(!0),variant:"secondary"},(0,v.__)("Explore all patterns")))))),s&&(0,c.createElement)(bf,{categories:i},(e=>(0,c.createElement)(Ef,{onInsert:n,rootClientId:o,category:e,showTitlesAsTooltip:!1}))),r&&(0,c.createElement)(gf,{initialCategory:a,patternCategories:i,onModalClose:()=>l(!1)}))},Sf=window.wp.url;var Cf=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),xf=window.wp.preferences;const Bf="isResuableBlocksrRenameHintVisible";function If(){const e=(0,f.useSelect)((e=>{var t;return null===(t=e(xf.store).get("core",Bf))||void 0===t||t}),[]),t=(0,c.useRef)(),{set:n}=(0,f.useDispatch)(xf.store);return e?(0,c.createElement)("div",{ref:t,className:"reusable-blocks-menu-items__rename-hint"},(0,c.createElement)("div",{className:"reusable-blocks-menu-items__rename-hint-content"},(0,v.__)("Reusable blocks are now synced patterns. A synced pattern will behave in exactly the same way as a reusable block.")),(0,c.createElement)(m.Button,{className:"reusable-blocks-menu-items__rename-hint-dismiss",icon:Cf,iconSize:"16",label:(0,v.__)("Dismiss hint"),onClick:()=>{const e=ea.focus.tabbable.findPrevious(t.current);e?.focus(),n("core",Bf,!1)},showTooltip:!1})):null}function Tf({onHover:e,onInsert:t,rootClientId:n}){const[o,,,r]=Am(n,t),l=(0,c.useMemo)((()=>o.filter((({category:e})=>"reusable"===e))),[o]);return 0===l.length?(0,c.createElement)(Zm,null):(0,c.createElement)(Rm,{title:(0,v.__)("Synced patterns")},(0,c.createElement)(Lm,{items:l,onSelect:r,onHover:e,label:(0,v.__)("Synced patterns")}))}var Mf=function({rootClientId:e,onInsert:t,onHover:n}){return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-inserter__hint"},(0,c.createElement)(If,null)),(0,c.createElement)(Tf,{onHover:n,onInsert:t,rootClientId:e}),(0,c.createElement)("div",{className:"block-editor-inserter__manage-reusable-blocks-container"},(0,c.createElement)(m.Button,{className:"block-editor-inserter__manage-reusable-blocks",variant:"secondary",href:(0,Sf.addQueryArgs)("edit.php",{post_type:"wp_block"})},(0,v.__)("Manage my patterns"))))};function Pf(e){const[t,n]=(0,c.useState)([]),{canInsertImage:o,canInsertVideo:r,canInsertAudio:l}=(0,f.useSelect)((t=>{const{canInsertBlockType:n}=t(Go);return{canInsertImage:n("core/image",e),canInsertVideo:n("core/video",e),canInsertAudio:n("core/audio",e)}}),[e]),i=function(){const{inserterMediaCategories:e,allowedMimeTypes:t,enableOpenverseMediaCategory:n}=(0,f.useSelect)((e=>{const t=e(Go).getSettings();return{inserterMediaCategories:t.inserterMediaCategories,allowedMimeTypes:t.allowedMimeTypes,enableOpenverseMediaCategory:t.enableOpenverseMediaCategory}}),[]),o=(0,c.useMemo)((()=>{if(e&&t)return e.filter((e=>!(!n&&"openverse"===e.name)&&Object.values(t).some((t=>t.startsWith(`${e.mediaType}/`)))))}),[e,t,n]);return o}();return(0,c.useEffect)((()=>{(async()=>{const e=[];if(!i)return;const t=new Map(await Promise.all(i.map((async e=>{if(e.isExternalResource)return[e.name,!0];let t=[];try{t=await e.fetch({per_page:1})}catch(e){}return[e.name,!!t.length]})))),a={image:o,video:r,audio:l};i.forEach((n=>{a[n.mediaType]&&t.get(n.name)&&e.push(n)})),e.length&&n(e)})()}),[o,r,l,i]),t}var Nf=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));var Lf=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),Rf=window.wp.blob;const Af={image:"img",video:"video",audio:"audio"};function Df(e,t){const n={id:e.id||void 0,caption:e.caption||void 0},o=e.url,r=e.alt||void 0;"image"===t?(n.url=o,n.alt=r):["video","audio"].includes(t)&&(n.src=o);const l=Af[t],i=(0,c.createElement)(l,{src:e.previewUrl||o,alt:r,controls:"audio"===t||void 0,inert:"true",onError:({currentTarget:t})=>{t.src===e.previewUrl&&(t.src=o)}});return[(0,a.createBlock)(`core/${t}`,n),i]}const Of=["image"],zf=25,Vf={position:"bottom left",className:"block-editor-inserter__media-list__item-preview-options__popover"};function Ff({category:e,media:t}){if(!e.getReportUrl)return null;const n=e.getReportUrl(t);return(0,c.createElement)(m.DropdownMenu,{className:"block-editor-inserter__media-list__item-preview-options",label:(0,v.__)("Options"),popoverProps:Vf,icon:Nf},(()=>(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(m.MenuItem,{onClick:()=>window.open(n,"_blank").focus(),icon:Lf},(0,v.sprintf)((0,v.__)("Report %s"),e.mediaType)))))}function Hf({onClose:e,onSubmit:t}){return(0,c.createElement)(m.Modal,{title:(0,v.__)("Insert external image"),onRequestClose:e,className:"block-editor-inserter-media-tab-media-preview-inserter-external-image-modal"},(0,c.createElement)(m.__experimentalVStack,{spacing:3},(0,c.createElement)("p",null,(0,v.__)("This image cannot be uploaded to your Media Library, but it can still be inserted as an external image.")),(0,c.createElement)("p",null,(0,v.__)("External images can be removed by the external provider without warning and could even have legal compliance issues related to privacy legislation."))),(0,c.createElement)(m.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(m.Button,{variant:"tertiary",onClick:e},(0,v.__)("Cancel"))),(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(m.Button,{variant:"primary",onClick:t},(0,v.__)("Insert")))))}function Gf({media:e,onClick:t,composite:n,category:o}){const[r,l]=(0,c.useState)(!1),[i,s]=(0,c.useState)(!1),[u,p]=(0,c.useState)(!1),[g,h]=(0,c.useMemo)((()=>Df(e,o.mediaType)),[e,o.mediaType]),{createErrorNotice:b,createSuccessNotice:_}=(0,f.useDispatch)(Vm.store),k=(0,f.useSelect)((e=>e(Go).getSettings().mediaUpload),[]),y=(0,c.useCallback)((e=>{if(u)return;const n=(0,a.cloneBlock)(e),{id:o,url:r,caption:i}=n.attributes;o?t(n):(p(!0),window.fetch(r).then((e=>e.blob())).then((e=>{k({filesList:[e],additionalData:{caption:i},onFileChange([e]){(0,Rf.isBlobURL)(e.url)||(t({...n,attributes:{...n.attributes,id:e.id,url:e.url}}),_((0,v.__)("Image uploaded and inserted."),{type:"snackbar"}),p(!1))},allowedTypes:Of,onError(e){b(e,{type:"snackbar"}),p(!1)}})})).catch((()=>{l(!0),p(!1)})))}),[u,t,k,b,_]),E=e.title?.rendered||e.title;let w;if(E.length>zf){const e="...";w=E.slice(0,zf-e.length)+e}const S=(0,c.useCallback)((()=>s(!0)),[]),C=(0,c.useCallback)((()=>s(!1)),[]);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Tm,{isEnabled:!0,blocks:[g]},(({draggable:t,onDragStart:r,onDragEnd:l})=>(0,c.createElement)("div",{className:d()("block-editor-inserter__media-list__list-item",{"is-hovered":i}),draggable:t,onDragStart:r,onDragEnd:l},(0,c.createElement)(m.Tooltip,{text:w||E},(0,c.createElement)("div",{onMouseEnter:S,onMouseLeave:C},(0,c.createElement)(m.__unstableCompositeItem,{role:"option",as:"div",...n,className:"block-editor-inserter__media-list__item",onClick:()=>y(g),"aria-label":E},(0,c.createElement)("div",{className:"block-editor-inserter__media-list__item-preview"},h,u&&(0,c.createElement)("div",{className:"block-editor-inserter__media-list__item-preview-spinner"},(0,c.createElement)(m.Spinner,null)))),!u&&(0,c.createElement)(Ff,{category:o,media:e})))))),r&&(0,c.createElement)(Hf,{onClose:()=>l(!1),onSubmit:()=>{t((0,a.cloneBlock)(g)),_((0,v.__)("Image inserted."),{type:"snackbar"}),l(!1)}}))}var Uf=function({mediaList:e,category:t,onClick:n,label:o=(0,v.__)("Media List")}){const r=(0,m.__unstableUseCompositeState)();return(0,c.createElement)(m.__unstableComposite,{...r,role:"listbox",className:"block-editor-inserter__media-list","aria-label":o},e.map(((e,o)=>(0,c.createElement)(Gf,{key:e.id||e.sourceId||o,media:e,category:t,onClick:n,composite:r}))))};function $f(e=""){const[t,n]=(0,c.useState)(e),[o,r]=(0,c.useState)(e),l=(0,p.useDebounce)(r,250);return(0,c.useEffect)((()=>{o!==t&&l(t)}),[o,t]),[t,n,o]}const jf=10;function Wf({rootClientId:e,onInsert:t,category:n}){const o=(0,c.useRef)();return(0,c.useEffect)((()=>{const e=setTimeout((()=>{const[e]=ea.focus.tabbable.find(o.current);e?.focus()}));return()=>clearTimeout(e)}),[n]),(0,c.createElement)("div",{ref:o,className:"block-editor-inserter__media-dialog"},(0,c.createElement)(Kf,{rootClientId:e,onInsert:t,category:n}))}function Kf({rootClientId:e,onInsert:t,category:n}){const[o,r,l]=$f(),{mediaList:i,isLoading:a}=function(e,t={}){const[n,o]=(0,c.useState)(),[r,l]=(0,c.useState)(!1),i=(0,c.useRef)();return(0,c.useEffect)((()=>{(async()=>{const n=JSON.stringify({category:e.name,...t});i.current=n,l(!0),o([]);const r=await(e.fetch?.(t));n===i.current&&(o(r),l(!1))})()}),[e.name,...Object.values(t)]),{mediaList:n,isLoading:r}}(n,{per_page:l?20:jf,search:l}),s="block-editor-inserter__media-panel",u=n.labels.search_items||(0,v.__)("Search");return(0,c.createElement)("div",{className:s},(0,c.createElement)(m.SearchControl,{className:`${s}-search`,onChange:r,value:o,label:u,placeholder:u}),a&&(0,c.createElement)("div",{className:`${s}-spinner`},(0,c.createElement)(m.Spinner,null)),!a&&!i?.length&&(0,c.createElement)(Zm,null),!a&&!!i?.length&&(0,c.createElement)(Uf,{rootClientId:e,onClick:t,mediaList:i,category:n}))}var qf=function({fallback:e=null,children:t}){const n=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return!!t().mediaUpload}),[]);return n?t:e};var Zf=(0,m.withFilters)("editor.MediaUpload")((()=>null));const Yf=["image","video","audio"];var Xf=function({rootClientId:e,selectedCategory:t,onSelectCategory:n,onInsert:o}){const r=Pf(e),l=(0,p.useViewportMatch)("medium","<"),i="block-editor-inserter__media-tabs",a=(0,c.useCallback)((e=>{if(!e?.url)return;const[t]=Df(e,e.type);o(t)}),[o]),s=(0,c.useMemo)((()=>r.map((e=>({...e,label:e.labels.name})))),[r]);return(0,c.createElement)(c.Fragment,null,!l&&(0,c.createElement)("div",{className:`${i}-container`},(0,c.createElement)("nav",{"aria-label":(0,v.__)("Media categories")},(0,c.createElement)(m.__experimentalItemGroup,{role:"list",className:i},r.map((e=>(0,c.createElement)(m.__experimentalItem,{role:"listitem",key:e.name,onClick:()=>n(e),className:d()(`${i}__media-category`,{"is-selected":t===e}),"aria-label":e.labels.name,"aria-current":e===t?"true":void 0},(0,c.createElement)(m.__experimentalHStack,null,(0,c.createElement)(m.FlexBlock,null,e.labels.name),(0,c.createElement)(Xl,{icon:(0,v.isRTL)()?Gd:Hd}))))),(0,c.createElement)("div",{role:"listitem"},(0,c.createElement)(qf,null,(0,c.createElement)(Zf,{multiple:!1,onSelect:a,allowedTypes:Yf,render:({open:e})=>(0,c.createElement)(m.Button,{onClick:t=>{t.target.focus(),e()},className:"block-editor-inserter__media-library-button",variant:"secondary","data-unstable-ignore-focus-outside-for-relatedtarget":".media-modal"},(0,v.__)("Open Media Library"))})))))),l&&(0,c.createElement)(bf,{categories:s},(t=>(0,c.createElement)(Kf,{onInsert:o,rootClientId:e,category:t}))))};const{Fill:Qf,Slot:Jf}=(0,m.createSlotFill)("__unstableInserterMenuExtension");Qf.Slot=Jf;var eg=Qf;const tg=(e,t)=>t?(e.sort((({id:e},{id:n})=>{let o=t.indexOf(e),r=t.indexOf(n);return o<0&&(o=t.length),r<0&&(r=t.length),o-r})),e):e,ng=[];var og=function({filterValue:e,onSelect:t,onHover:n,rootClientId:o,clientId:r,isAppender:l,__experimentalInsertionIndex:i,maxBlockPatterns:a,maxBlockTypes:s,showBlockDirectory:u=!1,isDraggable:d=!0,shouldFocusBlock:g=!0,prioritizePatterns:h,selectBlockOnInsert:b}){const _=(0,p.useDebounce)(Cn.speak,500),{prioritizedBlocks:k}=(0,f.useSelect)((e=>{const t=e(Go).getBlockListSettings(o);return{prioritizedBlocks:t?.prioritizedInserterBlocks||ng}}),[o]),[y,E]=Ym({onSelect:t,rootClientId:o,clientId:r,isAppender:l,insertionIndex:i,shouldFocusBlock:g,selectBlockOnInsert:b}),[w,S,C,x]=Am(y,E),[B,,I]=Hm(E,y),T=(0,c.useMemo)((()=>{if(0===a)return[];const t=uf(B,e);return void 0!==a?t.slice(0,a):t}),[e,B,a]);let M=s;h&&T.length>2&&(M=0);const P=(0,c.useMemo)((()=>{if(0===M)return[];let t=K(w,"frecency","desc");!e&&k.length&&(t=tg(t,k));const n=cf(t,S,C,e);return void 0!==M?n.slice(0,M):n}),[e,w,S,C,M,k]);(0,c.useEffect)((()=>{if(!e)return;const t=P.length+T.length,n=(0,v.sprintf)((0,v._n)("%d result found.","%d results found.",t),t);_(n)}),[e,_,P,T]);const N=(0,p.useAsyncList)(P,{step:9}),L=(0,p.useAsyncList)(N.length===P.length?T:ng),R=P.length>0||T.length>0,A=!!P.length&&(0,c.createElement)(Rm,{title:(0,c.createElement)(m.VisuallyHidden,null,(0,v.__)("Blocks"))},(0,c.createElement)(Lm,{items:N,onSelect:x,onHover:n,label:(0,v.__)("Blocks"),isDraggable:d})),D=!!T.length&&(0,c.createElement)(Rm,{title:(0,c.createElement)(m.VisuallyHidden,null,(0,v.__)("Block Patterns"))},(0,c.createElement)("div",{className:"block-editor-inserter__quick-inserter-patterns"},(0,c.createElement)(jm,{shownPatterns:L,blockPatterns:T,onClickPattern:I,onHover:n,isDraggable:d})));return(0,c.createElement)(Dm,null,!u&&!R&&(0,c.createElement)(Zm,null),h?D:A,!!P.length&&!!T.length&&(0,c.createElement)("div",{className:"block-editor-inserter__quick-inserter-separator"}),h?A:D,u&&(0,c.createElement)(eg.Slot,{fillProps:{onSelect:x,onHover:n,filterValue:e,hasItems:R,rootClientId:y}},(e=>e.length?e:R?null:(0,c.createElement)(Zm,null))))};const rg={name:"blocks",title:(0,v.__)("Blocks")},lg={name:"patterns",title:(0,v.__)("Patterns")},ig={name:"reusable",title:(0,v.__)("Synced patterns"),icon:H},ag={name:"media",title:(0,v.__)("Media")};var sg=function({children:e,showPatterns:t=!1,showReusableBlocks:n=!1,showMedia:o=!1,onSelect:r,prioritizePatterns:l}){const i=(0,c.useMemo)((()=>{const e=[];return l&&t&&e.push(lg),e.push(rg),!l&&t&&e.push(lg),o&&e.push(ag),n&&e.push(ig),e}),[l,t,n,o]);return(0,c.createElement)(m.TabPanel,{className:"block-editor-inserter__tabs",tabs:i,onSelect:r},e)};var cg=(0,c.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,onSelect:r,showInserterHelpPanel:l,showMostUsedBlocks:i,__experimentalFilterValue:a="",shouldFocusBlock:s=!0,prioritizePatterns:u},p){const[g,h,b]=$f(a),[_,k]=(0,c.useState)(null),[y,E]=(0,c.useState)(null),[w,S]=(0,c.useState)(null),[C,x]=(0,c.useState)(null),[B,I,T]=Ym({rootClientId:e,clientId:t,isAppender:n,insertionIndex:o,shouldFocusBlock:s}),{showPatterns:M,inserterItems:P}=(0,f.useSelect)((e=>{const{__experimentalGetAllowedPatterns:t,getInserterItems:n}=e(Go);return{showPatterns:!!t(B).length,inserterItems:n(B)}}),[B]),N=(0,c.useMemo)((()=>P.some((({category:e})=>"reusable"===e))),[P]),L=!!Pf(B).length,R=(0,c.useCallback)(((e,t,n)=>{I(e,t,n),r()}),[I,r]),A=(0,c.useCallback)(((e,t)=>{I(e,{patternName:t}),r()}),[I,r]),D=(0,c.useCallback)((e=>{T(!!e),k(e)}),[T,k]),O=(0,c.useCallback)((e=>{T(!!e)}),[T]),z=(0,c.useCallback)((e=>{E(e)}),[E]),V=(0,c.useMemo)((()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:"block-editor-inserter__block-list"},(0,c.createElement)(zm,{rootClientId:B,onInsert:R,onHover:D,showMostUsedBlocks:i})),l&&(0,c.createElement)("div",{className:"block-editor-inserter__tips"},(0,c.createElement)(m.VisuallyHidden,{as:"h2"},(0,v.__)("A tip for using the block editor")),(0,c.createElement)(Fd,null)))),[B,R,D,i,l]),F=(0,c.useMemo)((()=>(0,c.createElement)(wf,{rootClientId:B,onInsert:A,onSelectCategory:z,selectedCategory:y})),[B,A,z,y]),H=(0,c.useMemo)((()=>(0,c.createElement)(Mf,{rootClientId:B,onInsert:R,onHover:D})),[B,R,D]),G=(0,c.useMemo)((()=>(0,c.createElement)(Xf,{rootClientId:B,selectedCategory:w,onSelectCategory:S,onInsert:R})),[B,R,w,S]),U=(0,c.useCallback)((e=>"blocks"===e.name?V:"patterns"===e.name?F:"reusable"===e.name?H:"media"===e.name?G:void 0),[V,F,H,G]),$=(0,c.useRef)();(0,c.useImperativeHandle)(p,(()=>({focusSearch:()=>{$.current.focus()}})));const j="patterns"===C&&!b&&y,W=!b&&(M||N||L),K="media"===C&&!b&&w;return(0,c.createElement)("div",{className:"block-editor-inserter__menu"},(0,c.createElement)("div",{className:d()("block-editor-inserter__main-area",{"show-as-tabs":W})},(0,c.createElement)(m.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",onChange:e=>{_&&k(null),h(e)},value:g,label:(0,v.__)("Search for blocks and patterns"),placeholder:(0,v.__)("Search"),ref:$}),!!b&&(0,c.createElement)("div",{className:"block-editor-inserter__no-tab-container"},(0,c.createElement)(og,{filterValue:b,onSelect:r,onHover:D,rootClientId:e,clientId:t,isAppender:n,__experimentalInsertionIndex:o,showBlockDirectory:!0,shouldFocusBlock:s})),W&&(0,c.createElement)(sg,{showPatterns:M,showReusableBlocks:N,showMedia:L,prioritizePatterns:u,onSelect:x},U),!b&&!W&&(0,c.createElement)("div",{className:"block-editor-inserter__no-tab-container"},V)),K&&(0,c.createElement)(Wf,{rootClientId:B,onInsert:R,category:w}),l&&_&&(0,c.createElement)(Sm,{item:_}),j&&(0,c.createElement)(yf,{rootClientId:B,onInsert:A,onHover:O,category:y,showTitlesAsTooltip:!0}))}));function ug({onSelect:e,rootClientId:t,clientId:n,isAppender:o,prioritizePatterns:r,selectBlockOnInsert:l}){const[i,a]=(0,c.useState)(""),[s,u]=Ym({onSelect:e,rootClientId:t,clientId:n,isAppender:o,selectBlockOnInsert:l}),[p]=Am(s,u),[g]=Hm(u,s),{setInserterIsOpened:h,insertionIndex:b}=(0,f.useSelect)((e=>{const{getSettings:t,getBlockIndex:o,getBlockCount:r}=e(Go),l=t(),i=o(n),a=r();return{setInserterIsOpened:l.__experimentalSetIsInserterOpened,insertionIndex:-1===i?a:i}}),[n]),_=g.length&&(!!i||r),k=_&&g.length>6||p.length>6;(0,c.useEffect)((()=>{h&&h(!1)}),[h]);let y=0;return _&&(y=r?4:2),(0,c.createElement)("div",{className:d()("block-editor-inserter__quick-inserter",{"has-search":k,"has-expand":h})},k&&(0,c.createElement)(m.SearchControl,{__nextHasNoMarginBottom:!0,className:"block-editor-inserter__search",value:i,onChange:e=>{a(e)},label:(0,v.__)("Search for blocks and patterns"),placeholder:(0,v.__)("Search")}),(0,c.createElement)("div",{className:"block-editor-inserter__quick-inserter-results"},(0,c.createElement)(og,{filterValue:i,onSelect:e,rootClientId:t,clientId:n,isAppender:o,maxBlockPatterns:y,maxBlockTypes:6,isDraggable:!1,prioritizePatterns:r,selectBlockOnInsert:l})),h&&(0,c.createElement)(m.Button,{className:"block-editor-inserter__quick-inserter-expand",onClick:()=>{h({rootClientId:t,insertionIndex:b,filterValue:i})},"aria-label":(0,v.__)("Browse all. This will open the main inserter panel in the editor toolbar.")},(0,v.__)("Browse all")))}const dg=({onToggle:e,disabled:t,isOpen:n,blockTitle:o,hasSingleBlockType:r,toggleProps:l={},prioritizePatterns:i})=>{const{as:a=m.Button,label:s,onClick:u,...d}=l;let p=s;return!p&&r?p=(0,v.sprintf)((0,v._x)("Add %s","directly add the only allowed block"),o):!p&&i?p=(0,v.__)("Add pattern"):p||(p=(0,v._x)("Add block","Generic label for block inserter button")),(0,c.createElement)(a,{icon:zd,label:p,tooltipPosition:"bottom",onClick:function(t){e&&e(t),u&&u(t)},className:"block-editor-inserter__toggle","aria-haspopup":!r&&"true","aria-expanded":!r&&n,disabled:t,...d})};class pg extends c.Component{constructor(){super(...arguments),this.onToggle=this.onToggle.bind(this),this.renderToggle=this.renderToggle.bind(this),this.renderContent=this.renderContent.bind(this)}onToggle(e){const{onToggle:t}=this.props;t&&t(e)}renderToggle({onToggle:e,isOpen:t}){const{disabled:n,blockTitle:o,hasSingleBlockType:r,directInsertBlock:l,toggleProps:i,hasItems:a,renderToggle:s=dg,prioritizePatterns:c}=this.props;return s({onToggle:e,isOpen:t,disabled:n||!a,blockTitle:o,hasSingleBlockType:r,directInsertBlock:l,toggleProps:i,prioritizePatterns:c})}renderContent({onClose:e}){const{rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,__experimentalIsQuick:l,prioritizePatterns:i,onSelectOrClose:a,selectBlockOnInsert:s}=this.props;return l?(0,c.createElement)(ug,{onSelect:t=>{const n=Array.isArray(t)&&t?.length?t[0]:t;a&&"function"==typeof a&&a(n),e()},rootClientId:t,clientId:n,isAppender:o,prioritizePatterns:i,selectBlockOnInsert:s}):(0,c.createElement)(cg,{onSelect:()=>{e()},rootClientId:t,clientId:n,isAppender:o,showInserterHelpPanel:r,prioritizePatterns:i})}render(){const{position:e,hasSingleBlockType:t,directInsertBlock:n,insertOnlyAllowedBlock:o,__experimentalIsQuick:r,onSelectOrClose:l}=this.props;return t||n?this.renderToggle({onToggle:o}):(0,c.createElement)(m.Dropdown,{className:"block-editor-inserter",contentClassName:d()("block-editor-inserter__popover",{"is-quick":r}),popoverProps:{position:e,shift:!0},onToggle:this.onToggle,expandOnMobile:!0,headerTitle:(0,v.__)("Add a block"),renderToggle:this.renderToggle,renderContent:this.renderContent,onClose:l})}}const mg=(0,p.compose)([(0,f.withSelect)(((e,{clientId:t,rootClientId:n,shouldDirectInsert:o=!0})=>{const{getBlockRootClientId:r,hasInserterItems:l,getAllowedBlocks:i,__experimentalGetDirectInsertBlock:s,getSettings:c}=e(Go),{getBlockVariations:u}=e(a.store),d=i(n=n||r(t)||void 0),p=o&&s(n),m=c(),f=1===d?.length&&0===u(d[0].name,"inserter")?.length;let g=!1;return f&&(g=d[0]),{hasItems:l(n),hasSingleBlockType:f,blockTitle:g?g.title:"",allowedBlockType:g,directInsertBlock:p,rootClientId:n,prioritizePatterns:m.__experimentalPreferPatternsOnRoot&&!n}})),(0,f.withDispatch)(((e,t,{select:n})=>({insertOnlyAllowedBlock(){const{rootClientId:o,clientId:r,isAppender:l,hasSingleBlockType:i,allowedBlockType:s,directInsertBlock:c,onSelectOrClose:u,selectBlockOnInsert:d}=t;if(!i&&!c)return;const{insertBlock:p}=e(Go);let m;if(c){const e=function(e){const{getBlock:t,getPreviousBlockClientId:l}=n(Go);if(!e||!r&&!o)return{};const i={};let a={};if(r){const e=t(r),n=t(l(r));e?.name===n?.name&&(a=n?.attributes||{})}else{const e=t(o);if(e?.innerBlocks?.length){const t=e.innerBlocks[e.innerBlocks.length-1];c&&c?.name===t.name&&(a=t.attributes)}}return e.forEach((e=>{a.hasOwnProperty(e)&&(i[e]=a[e])})),i}(c.attributesToCopy);m=(0,a.createBlock)(c.name,{...c.attributes||{},...e})}else m=(0,a.createBlock)(s.name);p(m,function(){const{getBlockIndex:e,getBlockSelectionEnd:t,getBlockOrder:i,getBlockRootClientId:a}=n(Go);if(r)return e(r);const s=t();return!l&&s&&a(s)===o?e(s)+1:i(o).length}(),o,d),u&&u({clientId:m?.clientId});const f=(0,v.sprintf)((0,v.__)("%s block added"),s.title);(0,Cn.speak)(f)}}))),(0,p.ifCondition)((({hasItems:e,isAppender:t,rootClientId:n,clientId:o})=>e||!t&&!n&&!o))])(pg);var fg=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(mg,{ref:t,...e})));var gg=(0,p.compose)((0,f.withSelect)(((e,t)=>{const{getBlockCount:n,getSettings:o,getTemplateLock:r}=e(Go),l=!n(t.rootClientId),{bodyPlaceholder:i}=o();return{showPrompt:l,isLocked:!!r(t.rootClientId),placeholder:i}})),(0,f.withDispatch)(((e,t)=>{const{insertDefaultBlock:n,startTyping:o}=e(Go);return{onAppend(){const{rootClientId:e}=t;n(void 0,e),o()}}})))((function({isLocked:e,onAppend:t,showPrompt:n,placeholder:o,rootClientId:r}){if(e)return null;const l=(0,Od.decodeEntities)(o)||(0,v.__)("Type / to choose a block");return(0,c.createElement)("div",{"data-root-client-id":r||"",className:d()("block-editor-default-block-appender",{"has-visible-prompt":n})},(0,c.createElement)("p",{tabIndex:"0",role:"button","aria-label":(0,v.__)("Add default block"),className:"block-editor-default-block-appender__content",onKeyDown:e=>{yd.ENTER!==e.keyCode&&yd.SPACE!==e.keyCode||t()},onClick:()=>t(),onFocus:()=>{n&&t()}},n?l:"\ufeff"),(0,c.createElement)(fg,{rootClientId:r,position:"bottom right",isAppender:!0,__experimentalIsQuick:!0}))}));function hg({rootClientId:e,className:t,onFocus:n,tabIndex:o},r){return(0,c.createElement)(fg,{position:"bottom center",rootClientId:e,__experimentalIsQuick:!0,renderToggle:({onToggle:e,disabled:l,isOpen:i,blockTitle:a,hasSingleBlockType:s})=>{let u;u=s?(0,v.sprintf)((0,v._x)("Add %s","directly add the only allowed block"),a):(0,v._x)("Add block","Generic label for block inserter button");const p=!s;let f=(0,c.createElement)(m.Button,{ref:r,onFocus:n,tabIndex:o,className:d()(t,"block-editor-button-block-appender"),onClick:e,"aria-haspopup":p?"true":void 0,"aria-expanded":p?i:void 0,disabled:l,label:u},!s&&(0,c.createElement)(m.VisuallyHidden,{as:"span"},u),(0,c.createElement)(Xl,{icon:zd}));return(p||s)&&(f=(0,c.createElement)(m.Tooltip,{text:u},f)),f},isAppender:!0})}const bg=(0,c.forwardRef)(((e,t)=>($()("wp.blockEditor.ButtonBlockerAppender",{alternative:"wp.blockEditor.ButtonBlockAppender",since:"5.9"}),hg(e,t))));var vg=(0,c.forwardRef)(hg);function _g({rootClientId:e}){return(0,f.useSelect)((t=>t(Go).canInsertBlockType((0,a.getDefaultBlockName)(),e)))?(0,c.createElement)(gg,{rootClientId:e}):(0,c.createElement)(vg,{rootClientId:e,className:"block-list-appender__toggle"})}var kg=function({rootClientId:e,renderAppender:t,className:n,tagName:o="div"}){const r=function(e,t){const n=(0,f.useSelect)((n=>{const{getTemplateLock:o,getSelectedBlockClientId:r,__unstableGetEditorMode:l,getBlockEditingMode:i}=Fo(n(Go));if(!1===t)return!1;if(!t){const t=r();if(e!==t&&(e||t))return!1}return!o(e)&&"disabled"!==i(e)&&"zoom-out"!==l()}),[e,t]);return n?t?(0,c.createElement)(t,null):(0,c.createElement)(_g,{rootClientId:e}):null}(e,t),l=(0,f.useSelect)((t=>{const{getBlockInsertionPoint:n,isBlockInsertionPointVisible:o,getBlockCount:r}=t(Go),l=n();return o()&&e===l?.rootClientId&&0===r(e)}),[e]);return r?(0,c.createElement)(o,{tabIndex:-1,className:d()("block-list-appender wp-block",n,{"is-drag-over":l}),contentEditable:!1,"data-block":!0},r):null};var yg=function(e){return(0,p.useRefEffect)((t=>{if(!e)return;function n(t){const{deltaX:n,deltaY:o}=t;e.current.scrollBy(n,o)}const o={passive:!0};return t.addEventListener("wheel",n,o),()=>{t.removeEventListener("wheel",n,o)}}),[e])};const Eg=Number.MAX_SAFE_INTEGER;(0,c.createContext)();var wg=function({previousClientId:e,nextClientId:t,children:n,__unstablePopoverSlot:o,__unstableContentRef:r,...l}){const[i,a]=(0,c.useReducer)((e=>(e+1)%Eg),0),{orientation:s,rootClientId:u,isVisible:p}=(0,f.useSelect)((n=>{const{getBlockListSettings:o,getBlockRootClientId:r,isBlockVisible:l}=n(Go),i=r(null!=e?e:t);return{orientation:o(i)?.orientation||"vertical",rootClientId:i,isVisible:l(e)&&l(t)}}),[e,t]),g=Id(e),h=Id(t),b="vertical"===s,_=(0,c.useMemo)((()=>{if(i<0||!g&&!h||!p)return;const{ownerDocument:e}=g||h;return{ownerDocument:e,getBoundingClientRect(){const e=g?g.getBoundingClientRect():null,t=h?h.getBoundingClientRect():null;let n=0,o=0,r=0,l=0;return b?(o=e?e.bottom:t.top,r=e?e.width:t.width,l=t&&e?t.top-e.bottom:0,n=e?e.left:t.left):(o=e?e.top:t.top,l=e?e.height:t.height,(0,v.isRTL)()?(n=t?t.right:e.left,r=e&&t?e.left-t.right:0):(n=e?e.right:t.left,r=e&&t?t.left-e.right:0)),new window.DOMRect(n,o,r,l)}}}),[g,h,i,b,p]),k=yg(r);return(0,c.useLayoutEffect)((()=>{if(!g)return;const e=new window.MutationObserver(a);return e.observe(g,{attributes:!0}),()=>{e.disconnect()}}),[g]),(0,c.useLayoutEffect)((()=>{if(!h)return;const e=new window.MutationObserver(a);return e.observe(h,{attributes:!0}),()=>{e.disconnect()}}),[h]),(0,c.useLayoutEffect)((()=>{if(g)return g.ownerDocument.defaultView.addEventListener("resize",a),()=>{g.ownerDocument.defaultView?.removeEventListener("resize",a)}}),[g]),(g||h)&&p?(0,c.createElement)(m.Popover,{ref:k,animate:!1,anchor:_,focusOnMount:!1,__unstableSlotName:o||null,key:t+"--"+u,...l,className:d()("block-editor-block-popover","block-editor-block-popover__inbetween",l.className),resize:!1,flip:!1,placement:"overlay",variant:"unstyled"},(0,c.createElement)("div",{className:"block-editor-block-popover__inbetween-container"},n)):null};const Sg=Number.MAX_SAFE_INTEGER;var Cg=(0,c.forwardRef)((function({clientId:e,bottomClientId:t,children:n,__unstableRefreshSize:o,__unstableCoverTarget:r=!1,__unstablePopoverSlot:l,__unstableContentRef:i,shift:a=!0,...s},u){const f=Id(e),g=Id(null!=t?t:e),h=(0,p.useMergeRefs)([u,yg(i)]),[b,v]=(0,c.useReducer)((e=>(e+1)%Sg),0);(0,c.useLayoutEffect)((()=>{if(!f)return;const e=new window.MutationObserver(v);return e.observe(f,{attributes:!0}),()=>{e.disconnect()}}),[f]);const _=(0,c.useMemo)((()=>b<0||!f||g!==f?{}:{position:"absolute",width:f.offsetWidth,height:f.offsetHeight}),[f,g,o,b]),k=(0,c.useMemo)((()=>{if(!(b<0||!f||t&&!g))return{getBoundingClientRect(){var e,t,n,o;const r=f.getBoundingClientRect(),l=g?.getBoundingClientRect(),i=Math.min(r.left,null!==(e=l?.left)&&void 0!==e?e:1/0),a=Math.min(r.top,null!==(t=l?.top)&&void 0!==t?t:1/0),s=Math.max(r.right,null!==(n=l.right)&&void 0!==n?n:-1/0)-i,c=Math.max(r.bottom,null!==(o=l.bottom)&&void 0!==o?o:-1/0)-a;return new window.DOMRect(i,a,s,c)},ownerDocument:f.ownerDocument}}),[t,g,f,b]);return!f||t&&!g?null:(0,c.createElement)(m.Popover,{ref:h,animate:!1,focusOnMount:!1,anchor:k,__unstableSlotName:l||null,placement:"top-start",resize:!1,flip:!1,shift:a,...s,className:d()("block-editor-block-popover",s.className),variant:"unstyled"},r&&(0,c.createElement)("div",{style:_},n),!r&&n)}));const xg={hide:{opacity:0,scaleY:.75},show:{opacity:1,scaleY:1},exit:{opacity:0,scaleY:.9}};var Bg=function({__unstablePopoverSlot:e,__unstableContentRef:t}){const{clientId:n}=(0,f.useSelect)((e=>{const{getBlockOrder:t,getBlockInsertionPoint:n}=e(Go),o=n(),r=t(o.rootClientId);return r.length?{clientId:r[o.index]}:{}}),[]),o=(0,p.useReducedMotion)();return(0,c.createElement)(Cg,{clientId:n,__unstableCoverTarget:!0,__unstablePopoverSlot:e,__unstableContentRef:t,className:"block-editor-block-popover__drop-zone"},(0,c.createElement)(m.__unstableMotion.div,{"data-testid":"block-popover-drop-zone",initial:o?xg.show:xg.hide,animate:xg.show,exit:o?xg.show:xg.exit,className:"block-editor-block-popover__drop-zone-foreground"}))};const Ig=(0,c.createContext)();function Tg({__unstablePopoverSlot:e,__unstableContentRef:t}){const{selectBlock:n,hideInsertionPoint:o}=(0,f.useDispatch)(Go),r=(0,c.useContext)(Ig),l=(0,c.useRef)(),{orientation:i,previousClientId:a,nextClientId:s,rootClientId:u,isInserterShown:g,isDistractionFree:h,isNavigationMode:b}=(0,f.useSelect)((e=>{const{getBlockOrder:t,getBlockListSettings:n,getBlockInsertionPoint:o,isBlockBeingDragged:r,getPreviousBlockClientId:l,getNextBlockClientId:i,getSettings:a,isNavigationMode:s}=e(Go),c=o(),u=t(c.rootClientId);if(!u.length)return{};let d=u[c.index-1],p=u[c.index];for(;r(d);)d=l(d);for(;r(p);)p=i(p);const m=a();return{previousClientId:d,nextClientId:p,orientation:n(c.rootClientId)?.orientation||"vertical",rootClientId:c.rootClientId,isNavigationMode:s(),isDistractionFree:m.isDistractionFree,isInserterShown:c?.__unstableWithInserter}}),[]),v=(0,p.useReducedMotion)();const _={start:{opacity:0,scale:0},rest:{opacity:1,scale:1,transition:{delay:g?.5:0,type:"tween"}},hover:{opacity:1,scale:1,transition:{delay:.5,type:"tween"}}},k={start:{scale:v?1:0},rest:{scale:1,transition:{delay:.4,type:"tween"}}};if(h&&!b)return null;const y=d()("block-editor-block-list__insertion-point","is-"+i);return(0,c.createElement)(wg,{previousClientId:a,nextClientId:s,__unstablePopoverSlot:e,__unstableContentRef:t},(0,c.createElement)(m.__unstableMotion.div,{layout:!v,initial:v?"rest":"start",animate:"rest",whileHover:"hover",whileTap:"pressed",exit:"start",ref:l,tabIndex:-1,onClick:function(e){e.target===l.current&&s&&n(s,-1)},onFocus:function(e){e.target!==l.current&&(r.current=!0)},className:d()(y,{"is-with-inserter":g}),onHoverEnd:function(e){e.target!==l.current||r.current||o()}},(0,c.createElement)(m.__unstableMotion.div,{variants:_,className:"block-editor-block-list__insertion-point-indicator","data-testid":"block-list-insertion-point-indicator"}),g&&(0,c.createElement)(m.__unstableMotion.div,{variants:k,className:d()("block-editor-block-list__insertion-point-inserter")},(0,c.createElement)(fg,{position:"bottom center",clientId:s,rootClientId:u,__experimentalIsQuick:!0,onToggle:e=>{r.current=e},onSelectOrClose:()=>{r.current=!1}}))))}function Mg(e){const{insertionPoint:t,isVisible:n,isBlockListEmpty:o}=(0,f.useSelect)((e=>{const{getBlockInsertionPoint:t,isBlockInsertionPointVisible:n,getBlockCount:o}=e(Go),r=t();return{insertionPoint:r,isVisible:n(),isBlockListEmpty:0===o(r?.rootClientId)}}),[]);return!n||o?null:"replace"===t.operation?(0,c.createElement)(Bg,{key:`${t.rootClientId}-${t.index}`,...e}):(0,c.createElement)(Tg,{...e})}function Pg(){const e=(0,c.useContext)(Ig),t=(0,f.useSelect)((e=>e(Go).getSettings().isDistractionFree||"zoom-out"===e(Go).__unstableGetEditorMode()),[]),{getBlockListSettings:n,getBlockIndex:o,isMultiSelecting:r,getSelectedBlockClientIds:l,getTemplateLock:i,__unstableIsWithinBlockOverlay:a,getBlockEditingMode:s}=Fo((0,f.useSelect)(Go)),{showInsertionPoint:u,hideInsertionPoint:d}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((c=>{if(!t)return c.addEventListener("mousemove",p),()=>{c.removeEventListener("mousemove",p)};function p(t){if(e.current)return;if(t.target.nodeType===t.target.TEXT_NODE)return;if(r())return;if(!t.target.classList.contains("block-editor-block-list__layout"))return void d();let c;if(!t.target.classList.contains("is-root-container")){c=(t.target.getAttribute("data-block")?t.target:t.target.closest("[data-block]")).getAttribute("data-block")}if(i(c)||"disabled"===s(c))return;const p=n(c)?.orientation||"vertical",m=t.clientY,f=t.clientX;let g=Array.from(t.target.children).find((e=>{const t=e.getBoundingClientRect();return e.classList.contains("wp-block")&&"vertical"===p&&t.top>m||e.classList.contains("wp-block")&&"horizontal"===p&&((0,v.isRTL)()?t.right<f:t.left>f)}));if(!g)return void d();if(!g.id&&(g=g.firstElementChild,!g))return void d();const h=g.id.slice(6);if(!h||a(h))return;if(l().includes(h))return;const b=g.getBoundingClientRect();if("horizontal"===p&&(t.clientY>b.bottom||t.clientY<b.top)||"vertical"===p&&(t.clientX>b.right||t.clientX<b.left))return void d();const _=o(h);0!==_?u(c,_,{__unstableWithInserter:!0}):d()}}),[e,n,o,r,u,d,l,t])}const Ng="undefined"==typeof window?e=>{setTimeout((()=>e(Date.now())),0)}:window.requestIdleCallback||window.requestAnimationFrame,Lg="undefined"==typeof window?clearTimeout:window.cancelIdleCallback||window.cancelAnimationFrame;var Rg=(0,p.createHigherOrderComponent)((e=>t=>{const{clientId:n}=Ko();return(0,c.createElement)(e,{...t,clientId:n})}),"withClientId");var Ag=Rg((({clientId:e,showSeparator:t,isFloating:n,onAddBlock:o,isToggle:r})=>(0,c.createElement)(vg,{className:d()({"block-list-appender__toggle":r}),rootClientId:e,showSeparator:t,isFloating:n,onAddBlock:o})));var Dg=(0,p.compose)([Rg,(0,f.withSelect)(((e,{clientId:t})=>{const{getBlockOrder:n}=e(Go),o=n(t);return{lastBlockClientId:o[o.length-1]}}))])((({clientId:e})=>(0,c.createElement)(gg,{rootClientId:e})));const Og=new WeakMap;function zg(e,t,n,o,r,l,i){return s=>{const{srcRootClientId:c,srcClientIds:u,type:d,blocks:p}=function(e){let t={srcRootClientId:null,srcClientIds:null,srcIndex:null,type:null,blocks:null};if(!e.dataTransfer)return t;try{t=Object.assign(t,JSON.parse(e.dataTransfer.getData("wp-blocks")))}catch(e){return t}return t}(s);if("inserter"===d){i();const e=p.map((e=>(0,a.cloneBlock)(e)));l(e,!0,null)}if("block"===d){const l=n(u[0]);if(c===e&&l===t)return;if(u.includes(e)||o(u).some((t=>t===e)))return;const i=c===e,a=u.length;r(u,c,i&&l<t?t-a:t)}}}function Vg(e,t,n={}){const{operation:o="insert"}=n,r=(0,f.useSelect)((e=>e(Go).getSettings().mediaUpload),[]),{canInsertBlockType:l,getBlockIndex:i,getClientIdsOfDescendants:s,getBlockOrder:u,getBlocksByClientId:d}=(0,f.useSelect)(Go),{insertBlocks:p,moveBlocksToPosition:m,updateBlockAttributes:g,clearSelectedBlock:h,replaceBlocks:b,removeBlocks:v}=(0,f.useDispatch)(Go),_=(0,f.useRegistry)(),k=(0,c.useCallback)(((n,r=!0,l=0)=>{if("replace"===o){const o=u(e)[t];b(o,n,void 0,l)}else p(n,t,e,r,l)}),[o,u,p,b,t,e]),y=(0,c.useCallback)(((n,r,l)=>{if("replace"===o){const o=d(n),r=u(e)[t];_.batch((()=>{v(n,!1),b(r,o,void 0,0)}))}else m(n,r,e,l)}),[o,u,d,p,m,v,t,e]),E=zg(e,t,i,s,y,k,h),w=function(e,t,n,o,r,l){return t=>{if(!n)return;const i=(0,a.findTransform)((0,a.getBlockTransforms)("from"),(n=>"files"===n.type&&r(n.blockName,e)&&n.isMatch(t)));if(i){const e=i.transform(t,o);l(e)}}}(e,0,r,g,l,k),S=function(e,t,n){return e=>{const t=(0,a.pasteHandler)({HTML:e,mode:"BLOCKS"});t.length&&n(t)}}(0,0,k);return e=>{const t=(0,ea.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");n?S(n):t.length?w(t):E(e)}}function Fg(e,t,n=["top","bottom","left","right"]){let o,r;return n.forEach((n=>{const l=function(e,t,n){const o="top"===n||"bottom"===n,{x:r,y:l}=e,i=o?r:l,a=o?l:r,s=o?t.left:t.top,c=o?t.right:t.bottom,u=t[n];let d;return d=i>=s&&i<=c?i:i<c?s:c,Math.sqrt((i-d)**2+(a-u)**2)}(e,t,n);(void 0===o||l<o)&&(o=l,r=n)})),[o,r]}function Hg(e,t){return t.left<=e.x&&t.right>=e.x&&t.top<=e.y&&t.bottom>=e.y}function Gg({rootClientId:e=""}={}){const t=(0,f.useRegistry)(),[n,o]=(0,c.useState)({index:null,operation:"insert"}),r=(0,f.useSelect)((t=>{const{__unstableIsWithinBlockOverlay:n,__unstableHasActiveBlockOverlayActive:o,getBlockEditingMode:r}=Fo(t(Go));return"default"!==r(e)||o(e)||n(e)}),[e]),{getBlockListSettings:l,getBlocks:i,getBlockIndex:s}=(0,f.useSelect)(Go),{showInsertionPoint:u,hideInsertionPoint:d}=(0,f.useDispatch)(Go),m=Vg(e,n.index,{operation:n.operation}),g=(0,p.useThrottle)((0,c.useCallback)(((n,r)=>{const c=i(e);if(0===c.length)return void t.batch((()=>{o({index:0,operation:"insert"}),u(e,0,{operation:"insert"})}));const d=c.map((e=>{const t=e.clientId;return{isUnmodifiedDefaultBlock:(0,a.isUnmodifiedDefaultBlock)(e),getBoundingClientRect:()=>r.getElementById(`block-${t}`).getBoundingClientRect(),blockIndex:s(t)}})),[p,m]=function(e,t,n="vertical"){const o="horizontal"===n?["left","right"]:["top","bottom"],r=(0,v.isRTL)();let l=0,i="before",a=1/0;e.forEach((({isUnmodifiedDefaultBlock:e,getBoundingClientRect:n,blockIndex:s})=>{const c=n();let[u,d]=Fg(t,c,o);e&&Hg(t,c)&&(u=0),u<a&&(i="bottom"===d||!r&&"right"===d||r&&"left"===d?"after":"before",a=u,l=s)}));const s=l+("after"===i?1:-1),c=!!e[l]?.isUnmodifiedDefaultBlock,u=!!e[s]?.isUnmodifiedDefaultBlock;if(!c&&!u)return["after"===i?l+1:l,"insert"];return[c?l:s,"replace"]}(d,{x:n.clientX,y:n.clientY},l(e)?.orientation);t.batch((()=>{o({index:p,operation:m}),u(e,p,{operation:m})}))}),[i,e,l,t,u,s]),200);return(0,p.__experimentalUseDropZone)({isDisabled:r,onDrop:m,onDragOver(e){g(e,e.currentTarget.ownerDocument)},onDragLeave(){g.cancel(),d()},onDragEnd(){g.cancel(),d()}})}const Ug={};function $g(e){const{clientId:t,allowedBlocks:n,prioritizedInserterBlocks:o,__experimentalDefaultBlock:r,__experimentalDirectInsert:l,template:i,templateLock:s,wrapperRef:u,templateInsertUpdatesSelection:d,__experimentalCaptureToolbars:p,__experimentalAppenderTagName:m,renderAppender:g,orientation:h,placeholder:v,layout:_}=e;!function(e,t,n,o,r,l,i,a,s){const{updateBlockListSettings:u}=(0,f.useDispatch)(Go),d=(0,f.useRegistry)(),{parentLock:p}=(0,f.useSelect)((t=>{const n=t(Go).getBlockRootClientId(e);return{parentLock:t(Go).getTemplateLock(n)}}),[e]),m=(0,c.useMemo)((()=>t),t),g=(0,c.useMemo)((()=>n),n),h=void 0===l||"contentOnly"===p?p:l;(0,c.useLayoutEffect)((()=>{const t={allowedBlocks:m,prioritizedInserterBlocks:g,templateLock:h};if(void 0!==i&&(t.__experimentalCaptureToolbars=i),void 0!==a)t.orientation=a;else{const e=ai(s?.type);t.orientation=e.getOrientation(s)}void 0!==o&&(t.__experimentalDefaultBlock=o),void 0!==r&&(t.__experimentalDirectInsert=r),Og.get(d)||Og.set(d,[]),Og.get(d).push([e,t]),window.queueMicrotask((()=>{Og.get(d)?.length&&d.batch((()=>{Og.get(d).forEach((e=>{u(...e)})),Og.set(d,[])}))}))}),[e,m,g,h,o,r,i,a,u,s,d])}(t,n,o,r,l,s,p,h,_),function(e,t,n,o){const{getBlocks:r,getSelectedBlocksInitialCaretPosition:l,isBlockSelected:i}=(0,f.useSelect)(Go),{replaceInnerBlocks:s,__unstableMarkNextChangeAsNotPersistent:u}=(0,f.useDispatch)(Go),{innerBlocks:d}=(0,f.useSelect)((t=>({innerBlocks:t(Go).getBlocks(e)})),[e]),p=(0,c.useRef)(null);(0,c.useLayoutEffect)((()=>{let c=!1;return window.queueMicrotask((()=>{if(c)return;const d=r(e),m=0===d.length||"all"===n||"contentOnly"===n,f=!b()(t,p.current);if(!m||!f)return;p.current=t;const g=(0,a.synchronizeBlocksWithTemplate)(d,t);b()(g,d)||(u(),s(e,g,0===d.length&&o&&0!==g.length&&i(e),l()))})),()=>{c=!0}}),[d,t,n,e])}(t,i,s,d);const k=function(e){return(0,f.useSelect)((t=>{const n=t(Go).getBlock(e);if(!n)return;const o=t(a.store).getBlockType(n.name);return o&&0!==Object.keys(o.providesContext).length?Object.fromEntries(Object.entries(o.providesContext).map((([e,t])=>[e,n.attributes[t]]))):void 0}),[e])}(t),y=(0,f.useSelect)((e=>e(Go).getBlock(t)?.name),[t]),E=(0,a.getBlockSupport)(y,"layout")||(0,a.getBlockSupport)(y,"__experimentalLayout")||Ug,{allowSizingOnChildren:w=!1}=E,S=Xr("layout")||Ug,C=_||E,x=(0,c.useMemo)((()=>({...S,...C,...w&&{allowSizingOnChildren:!0}})),[S,C,w]);return(0,c.createElement)(na,{value:k},(0,c.createElement)(th,{rootClientId:t,renderAppender:g,__experimentalAppenderTagName:m,layout:x,wrapperRef:u,placeholder:v}))}function jg(e){return qd(e),(0,c.createElement)($g,{...e})}const Wg=(0,c.forwardRef)(((e,t)=>{const n=Kg({ref:t},e);return(0,c.createElement)("div",{className:"block-editor-inner-blocks"},(0,c.createElement)("div",{...n}))}));function Kg(e={},t={}){const{__unstableDisableLayoutClassNames:n,__unstableDisableDropZone:o}=t,{clientId:r,layout:l=null,__unstableLayoutClassNames:i=""}=Ko(),s=(0,p.useViewportMatch)("medium","<"),{__experimentalCaptureToolbars:u,hasOverlay:m}=(0,f.useSelect)((e=>{if(!r)return{};const{getBlockName:t,isBlockSelected:n,hasSelectedInnerBlock:o,__unstableGetEditorMode:l}=e(Go),i=t(r),c="navigation"===l()||s;return{__experimentalCaptureToolbars:e(a.store).hasBlockSupport(i,"__experimentalExposeControlsToChildren",!1),hasOverlay:"core/template"!==i&&!n(r)&&!o(r,!0)&&c}}),[r,s]),g=Gg({rootClientId:r}),h=(0,p.useMergeRefs)([e.ref,o?null:g]),b={__experimentalCaptureToolbars:u,layout:l,...t},v=b.value&&b.onChange?jg:$g;return{...e,ref:h,className:d()(e.className,"block-editor-block-list__layout",n?"":i,{"has-overlay":m}),children:r?(0,c.createElement)(v,{...b,clientId:r}):(0,c.createElement)(th,{...t})}}Kg.save=a.__unstableGetInnerBlocksProps,Wg.DefaultBlockAppender=Dg,Wg.ButtonBlockAppender=Ag,Wg.Content=()=>Kg.save().children;var qg=Wg;const Zg=(0,c.createContext)(),Yg=(0,c.createContext)(),Xg=new WeakMap;function Qg({className:e,...t}){const[n,o]=(0,c.useState)(),r=(0,p.useViewportMatch)("medium"),{isOutlineMode:l,isFocusMode:i,editorMode:a}=(0,f.useSelect)((e=>{const{getSettings:t,__unstableGetEditorMode:n}=e(Go),{outlineMode:o,focusMode:r}=t();return{isOutlineMode:o,isFocusMode:r,editorMode:n()}}),[]),s=(0,f.useRegistry)(),{setBlockVisibility:u}=(0,f.useDispatch)(Go),m=(0,p.useDebounce)((0,c.useCallback)((()=>{const e={};Xg.get(s).forEach((([t,n])=>{e[t]=n})),u(e)}),[s]),300,{trailing:!0}),g=(0,c.useMemo)((()=>{const{IntersectionObserver:e}=window;if(e)return new e((e=>{Xg.get(s)||Xg.set(s,[]);for(const t of e){const e=t.target.getAttribute("data-block");Xg.get(s).push([e,t.isIntersecting])}m()}))}),[]),h=Kg({ref:(0,p.useMergeRefs)([Xd(),Pg(),o]),className:d()("is-root-container",e,{"is-outline-mode":l,"is-focus-mode":i&&r,"is-navigate-mode":"navigation"===a})},t);return(0,c.createElement)(Zg.Provider,{value:n},(0,c.createElement)(Yg.Provider,{value:g},(0,c.createElement)("div",{...h})))}function Jg(e){return function(){const{patterns:e,isPreviewMode:t}=(0,f.useSelect)((e=>{const{__experimentalBlockPatterns:t,__unstableIsPreviewMode:n}=e(Go).getSettings();return{patterns:t,isPreviewMode:n}}),[]);(0,c.useEffect)((()=>{if(t)return;if(!e?.length)return;let n,o=-1;const r=()=>{o++,o>=e.length||((0,f.select)(Go).__experimentalGetParsedPattern(e[o].name),n=Ng(r))};return n=Ng(r),()=>Lg(n)}),[e,t])}(),(0,c.createElement)(Wo,{value:$o},(0,c.createElement)(Qg,{...e}))}function eh({placeholder:e,rootClientId:t,renderAppender:n,__experimentalAppenderTagName:o,layout:r=si}){const{order:l,selectedBlocks:i,visibleBlocks:a}=(0,f.useSelect)((e=>{const{getBlockOrder:n,getSelectedBlockClientIds:o,__unstableGetVisibleBlocks:r}=e(Go);return{order:n(t),selectedBlocks:o(),visibleBlocks:r()}}),[t]);return(0,c.createElement)(ui,{value:r},l.map((e=>(0,c.createElement)(f.AsyncModeProvider,{key:e,value:!a.has(e)&&!i.includes(e)},(0,c.createElement)(Dd,{rootClientId:t,clientId:e})))),l.length<1&&e,(0,c.createElement)(kg,{tagName:o,rootClientId:t,renderAppender:n}))}function th(e){return(0,c.createElement)(f.AsyncModeProvider,{value:!1},(0,c.createElement)(eh,{...e}))}Jg.__unstableElementContext=Zg,Up([$p,Kp]);const nh=(e,t,n)=>{if(t){const n=e?.find((e=>e.slug===t));if(n)return n}return{color:n}},oh=(e,t)=>e?.find((e=>e.color===t));function rh(e,t){if(e&&t)return`has-${Ll(t)}-${e}`}function lh(){const e={disableCustomColors:!Xr("color.custom"),disableCustomGradients:!Xr("color.customGradient")},t=Xr("color.palette.custom"),n=Xr("color.palette.theme"),o=Xr("color.palette.default"),r=Xr("color.defaultPalette");e.colors=(0,c.useMemo)((()=>{const e=[];return n&&n.length&&e.push({name:(0,v._x)("Theme","Indicates this palette comes from the theme."),colors:n}),r&&o&&o.length&&e.push({name:(0,v._x)("Default","Indicates this palette comes from WordPress."),colors:o}),t&&t.length&&e.push({name:(0,v._x)("Custom","Indicates this palette comes from the theme."),colors:t}),e}),[o,n,t,r]);const l=Xr("color.gradients.custom"),i=Xr("color.gradients.theme"),a=Xr("color.gradients.default"),s=Xr("color.defaultGradients");return e.gradients=(0,c.useMemo)((()=>{const e=[];return i&&i.length&&e.push({name:(0,v._x)("Theme","Indicates this palette comes from the theme."),gradients:i}),s&&a&&a.length&&e.push({name:(0,v._x)("Default","Indicates this palette comes from WordPress."),gradients:a}),l&&l.length&&e.push({name:(0,v._x)("Custom","Indicates this palette is created by the user."),gradients:l}),e}),[l,i,a,s]),e.hasColorsOrGradients=!!e.colors.length||!!e.gradients.length,e}function ih(e){return[...e].sort(((t,n)=>e.filter((e=>e===n)).length-e.filter((e=>e===t)).length)).shift()}function ah(e={}){const{flat:t,...n}=e;return t||ih(Object.values(n).filter(Boolean))||"px"}function sh(e={}){if("string"==typeof e)return e;const t=Object.values(e).map((e=>(0,m.__experimentalParseQuantityAndUnitFromRawValue)(e))),n=t.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),o=t.map((e=>e[1])),r=n.every((e=>e===n[0]))?n[0]:"",l=ih(o);return 0===r||r?`${r}${l}`:void 0}function ch(e={}){const t=sh(e);return"string"!=typeof e&&isNaN(parseFloat(t))}function uh(e){if(!e)return!1;if("string"==typeof e)return!0;return!!Object.values(e).filter((e=>!!e||0===e)).length}function dh({onChange:e,selectedUnits:t,setSelectedUnits:n,values:o,...r}){let l=sh(o);void 0===l&&(l=ah(t));const i=uh(o)&&ch(o),a=i?(0,v.__)("Mixed"):null;return(0,c.createElement)(m.__experimentalUnitControl,{...r,"aria-label":(0,v.__)("Border radius"),disableUnits:i,isOnly:!0,value:l,onChange:t=>{const n=!isNaN(parseFloat(t));e(n?t:void 0)},onUnitChange:e=>{n({topLeft:e,topRight:e,bottomLeft:e,bottomRight:e})},placeholder:a,size:"__unstable-large"})}const ph={topLeft:(0,v.__)("Top left"),topRight:(0,v.__)("Top right"),bottomLeft:(0,v.__)("Bottom left"),bottomRight:(0,v.__)("Bottom right")};function mh({onChange:e,selectedUnits:t,setSelectedUnits:n,values:o,...r}){const l=t=>n=>{if(!e)return;const o=!isNaN(parseFloat(n))?n:void 0;e({...i,[t]:o})},i="string"!=typeof o?o:{topLeft:o,topRight:o,bottomLeft:o,bottomRight:o};return(0,c.createElement)("div",{className:"components-border-radius-control__input-controls-wrapper"},Object.entries(ph).map((([e,o])=>{const[a,s]=(0,m.__experimentalParseQuantityAndUnitFromRawValue)(i[e]),u=i[e]?s:t[e]||t.flat;return(0,c.createElement)(m.Tooltip,{text:o,position:"top",key:e},(0,c.createElement)("div",{className:"components-border-radius-control__tooltip-wrapper"},(0,c.createElement)(m.__experimentalUnitControl,{...r,"aria-label":o,value:[a,u].join(""),onChange:l(e),onUnitChange:(d=e,e=>{const o={...t};o[d]=e,n(o)}),size:"__unstable-large"})));var d})))}var fh=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var gh=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));function hh({isLinked:e,...t}){const n=e?(0,v.__)("Unlink radii"):(0,v.__)("Link radii");return(0,c.createElement)(m.Tooltip,{text:n},(0,c.createElement)("span",null,(0,c.createElement)(m.Button,{...t,className:"component-border-radius-control__linked-button",isSmall:!0,icon:e?fh:gh,iconSize:24,"aria-label":n})))}const bh={topLeft:void 0,topRight:void 0,bottomLeft:void 0,bottomRight:void 0},vh=0,_h={px:100,em:20,rem:20};function kh({onChange:e,values:t}){const[n,o]=(0,c.useState)(!uh(t)||!ch(t)),[r,l]=(0,c.useState)({flat:"string"==typeof t?(0,m.__experimentalParseQuantityAndUnitFromRawValue)(t)[1]:void 0,topLeft:(0,m.__experimentalParseQuantityAndUnitFromRawValue)(t?.topLeft)[1],topRight:(0,m.__experimentalParseQuantityAndUnitFromRawValue)(t?.topRight)[1],bottomLeft:(0,m.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomLeft)[1],bottomRight:(0,m.__experimentalParseQuantityAndUnitFromRawValue)(t?.bottomRight)[1]}),i=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["px","em","rem"]}),a=ah(r),s=i&&i.find((e=>e.value===a)),u=s?.step||1,[d]=(0,m.__experimentalParseQuantityAndUnitFromRawValue)(sh(t));return(0,c.createElement)("fieldset",{className:"components-border-radius-control"},(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend"},(0,v.__)("Radius")),(0,c.createElement)("div",{className:"components-border-radius-control__wrapper"},n?(0,c.createElement)(c.Fragment,null,(0,c.createElement)(dh,{className:"components-border-radius-control__unit-control",values:t,min:vh,onChange:e,selectedUnits:r,setSelectedUnits:l,units:i}),(0,c.createElement)(m.RangeControl,{label:(0,v.__)("Border radius"),hideLabelFromVision:!0,className:"components-border-radius-control__range-control",value:null!=d?d:"",min:vh,max:_h[a],initialPosition:0,withInputField:!1,onChange:t=>{e(void 0!==t?`${t}${a}`:void 0)},step:u,__nextHasNoMarginBottom:!0})):(0,c.createElement)(mh,{min:vh,onChange:e,selectedUnits:r,setSelectedUnits:l,values:t||bh,units:i}),(0,c.createElement)(hh,{onClick:()=>o(!n),isLinked:n})))}function yh(e){return[Eh(e),wh(e),Sh(e),Ch(e)].some(Boolean)}function Eh(e){return e?.border?.color}function wh(e){return e?.border?.radius}function Sh(e){return e?.border?.style}function Ch(e){return e?.border?.width}function xh({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,c.createElement)(m.__experimentalToolsPanel,{label:(0,v.__)("Border"),resetAll:()=>{const o=e(n);t(o)},panelId:o},r)}const Bh={radius:!0,color:!0,width:!0};function Ih({as:e=xh,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=Bh}){const a=Sl(r),s=e=>{const t=a.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},u=(0,c.useCallback)((e=>{const t=a.flatMap((({colors:e})=>e)).find((({slug:t})=>e==="var:preset|color|"+t));return t?t.color:e}),[a]),d=(0,c.useMemo)((()=>{if((0,m.__experimentalHasSplitBorders)(o?.border)){const e={...o?.border};return["top","right","bottom","left"].forEach((t=>{e[t]={...e[t],color:u(e[t]?.color)}})),e}return{...o?.border,color:o?.border?.color?u(o?.border?.color):void 0}}),[o?.border,u]),p=e=>n({...t,border:e}),f=Eh(r),g=Sh(r),h=Ch(r),b=wh(r),_=(k=d?.radius,fl({settings:r},"",k));var k;const y=e=>p({...d,radius:e}),E=()=>{const e=t?.border?.radius;return"object"==typeof e?Object.entries(e).some(Boolean):!!e},w=(0,c.useCallback)((e=>({...e,border:void 0})),[]),S=i?.color||i?.width;return(0,c.createElement)(e,{resetAllFilter:w,value:t,onChange:n,panelId:l},(h||f)&&(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>(0,m.__experimentalIsDefinedBorder)(t?.border),label:(0,v.__)("Border"),onDeselect:()=>(()=>{if(E())return p({radius:t?.border?.radius});p(void 0)})(),isShownByDefault:S,panelId:l},(0,c.createElement)(m.__experimentalBorderBoxControl,{colors:a,enableAlpha:!0,enableStyle:g,onChange:e=>{const t={...e};(0,m.__experimentalHasSplitBorders)(t)?["top","right","bottom","left"].forEach((e=>{t[e]&&(t[e]={...t[e],color:s(t[e]?.color)})})):t&&(t.color=s(t.color)),p({radius:d?.radius,...t})},popoverOffset:40,popoverPlacement:"left-start",value:d,__experimentalIsRenderedInSidebar:!0,size:"__unstable-large"})),b&&(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:E,label:(0,v.__)("Radius"),onDeselect:()=>y(void 0),isShownByDefault:i.radius,panelId:l},(0,c.createElement)(kh,{values:_,onChange:e=>{y(e||void 0)}})))}const Th="__experimentalBorder",Mh=(e,t,n)=>{let o;return e.some((e=>e.colors.some((e=>e[t]===n&&(o=e,!0))))),o},Ph=({colors:e,namedColor:t,customColor:n})=>{if(t){const n=Mh(e,"slug",t);if(n)return n}if(!n)return{color:void 0};const o=Mh(e,"color",n);return o||{color:n}};function Nh(e){const t=/var:preset\|color\|(.+)/.exec(e);return t&&t[1]?t[1]:null}function Lh(e){if((0,m.__experimentalHasSplitBorders)(e?.border))return{style:e,borderColor:void 0};const t=e?.border?.color,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o={...e};return o.border={...o.border,color:n?void 0:t},{style:Dl(o),borderColor:n}}function Rh(e){return(0,m.__experimentalHasSplitBorders)(e.style?.border)?e.style:{...e.style,border:{...e.style?.border,color:e.borderColor?"var:preset|color|"+e.borderColor:e.style?.border?.color}}}function Ah({children:e,resetAllFilter:t}){const n=(0,c.useCallback)((e=>{const n=Rh(e),o=t(n);return{...e,...Lh(o)}}),[t]);return(0,c.createElement)(qi,{group:"border",resetAllFilter:n},e)}function Dh(e){const{clientId:t,name:n,attributes:o,setAttributes:r}=e,l=Vl(n),i=yh(l),s=(0,c.useMemo)((()=>Rh({style:o.style,borderColor:o.borderColor})),[o.style,o.borderColor]);if(!i)return null;const u=(0,a.getBlockSupport)(e.name,[Th,"__experimentalDefaultControls"]);return(0,c.createElement)(Ih,{as:Ah,panelId:t,settings:l,value:s,onChange:e=>{r(Lh(e))},defaultControls:u})}function Oh(e,t="any"){if("web"!==c.Platform.OS)return!1;const n=(0,a.getBlockSupport)(e,Th);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}function zh(e,t,n){if(!Oh(t,"color")||zl(t,Th,"color"))return e;const o=Vh(n),r=d()(e.className,o);return e.className=r||void 0,e}function Vh(e){const{borderColor:t,style:n}=e,o=rh("border-color",t);return d()({"has-border-color":t||n?.border?.color,[o]:!!o})}const Fh=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,{borderColor:r,style:l}=o,{colors:i}=lh();if(!Oh(n,"color")||zl(n,Th,"color"))return(0,c.createElement)(e,{...t});const{color:a}=Ph({colors:i,namedColor:r}),{color:s}=Ph({colors:i,namedColor:Nh(l?.border?.top?.color)}),{color:u}=Ph({colors:i,namedColor:Nh(l?.border?.right?.color)}),{color:d}=Ph({colors:i,namedColor:Nh(l?.border?.bottom?.color)}),{color:p}=Ph({colors:i,namedColor:Nh(l?.border?.left?.color)}),m={borderTopColor:s||a,borderRightColor:u||a,borderBottomColor:d||a,borderLeftColor:p||a};let f=t.wrapperProps;return f={...t.wrapperProps,style:{...t.wrapperProps?.style,...m}},(0,c.createElement)(e,{...t,wrapperProps:f})}),"withBorderColorPaletteStyles");function Hh(e){if(e)return`has-${e}-gradient-background`}function Gh(e,t){const n=e?.find((e=>e.slug===t));return n&&n.gradient}function Uh(e,t){const n=e?.find((e=>e.gradient===t));return n}function $h(e,t){const n=Uh(e,t);return n&&n.slug}function jh({gradientAttribute:e="gradient",customGradientAttribute:t="customGradient"}={}){const{clientId:n}=Ko(),o=Xr("color.gradients.custom"),r=Xr("color.gradients.theme"),l=Xr("color.gradients.default"),i=(0,c.useMemo)((()=>[...o||[],...r||[],...l||[]]),[o,r,l]),{gradient:a,customGradient:s}=(0,f.useSelect)((o=>{const{getBlockAttributes:r}=o(Go),l=r(n)||{};return{customGradient:l[t],gradient:l[e]}}),[n,e,t]),{updateBlockAttributes:u}=(0,f.useDispatch)(Go),d=(0,c.useCallback)((o=>{const r=$h(i,o);u(n,r?{[e]:r,[t]:void 0}:{[e]:void 0,[t]:o})}),[i,n,u]),p=Hh(a);let m;return m=a?Gh(i,a):s,{gradientClass:p,gradientValue:m,setGradient:d}}(0,s.addFilter)("blocks.registerBlockType","core/border/addAttributes",(function(e){return Oh(e,"color")?e.attributes.borderColor?e:{...e,attributes:{...e.attributes,borderColor:{type:"string"}}}:e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/border/addSaveProps",zh),(0,s.addFilter)("blocks.registerBlockType","core/border/addEditProps",(function(e){if(!Oh(e,"color")||zl(e,Th,"color"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),zh(o,e,n)},e})),(0,s.addFilter)("editor.BlockListBlock","core/border/with-border-color-palette-styles",Fh);const Wh=["colors","disableCustomColors","gradients","disableCustomGradients"],Kh={name:"color",title:(0,v.__)("Solid"),value:"color"},qh={name:"gradient",title:(0,v.__)("Gradient"),value:"gradient"},Zh=[Kh,qh];function Yh({colors:e,gradients:t,disableCustomColors:n,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,className:l,label:i,onColorChange:a,onGradientChange:s,colorValue:u,gradientValue:p,clearable:f,showTitle:g=!0,enableAlpha:h,headingLevel:b}){const v=a&&(e&&e.length>0||!n),_=s&&(t&&t.length>0||!o);if(!v&&!_)return null;const k={[Kh.value]:(0,c.createElement)(m.ColorPalette,{value:u,onChange:_?e=>{a(e),s()}:a,colors:e,disableCustomColors:n,__experimentalIsRenderedInSidebar:r,clearable:f,enableAlpha:h,headingLevel:b}),[qh.value]:(0,c.createElement)(m.GradientPicker,{__nextHasNoMargin:!0,value:p,onChange:v?e=>{s(e),a()}:s,gradients:t,disableCustomGradients:o,__experimentalIsRenderedInSidebar:r,clearable:f,headingLevel:b})},y=e=>(0,c.createElement)("div",{className:"block-editor-color-gradient-control__panel"},k[e]);return(0,c.createElement)(m.BaseControl,{__nextHasNoMarginBottom:!0,className:d()("block-editor-color-gradient-control",l)},(0,c.createElement)("fieldset",{className:"block-editor-color-gradient-control__fieldset"},(0,c.createElement)(m.__experimentalVStack,{spacing:1},g&&(0,c.createElement)("legend",null,(0,c.createElement)("div",{className:"block-editor-color-gradient-control__color-indicator"},(0,c.createElement)(m.BaseControl.VisualLabel,null,i))),v&&_&&(0,c.createElement)(m.TabPanel,{className:"block-editor-color-gradient-control__tabs",tabs:Zh,initialTabName:p?qh.value:!!v&&Kh.value},(e=>y(e.value))),!_&&y(Kh.value),!v&&y(qh.value))))}function Xh(e){const t={};return t.colors=Xr("color.palette"),t.gradients=Xr("color.gradients"),t.disableCustomColors=!Xr("color.custom"),t.disableCustomGradients=!Xr("color.customGradient"),(0,c.createElement)(Yh,{...t,...e})}var Qh=function(e){return Wh.every((t=>e.hasOwnProperty(t)))?(0,c.createElement)(Yh,{...e}):(0,c.createElement)(Xh,{...e})};function Jh(e){const t=eb(e),n=lb(e),o=tb(e),r=ob(e),l=ob(e),i=nb(e);return t||n||o||r||l||i}function eb(e){const t=Sl(e);return e?.color?.text&&(t?.length>0||e?.color?.custom)}function tb(e){const t=Sl(e);return e?.color?.link&&(t?.length>0||e?.color?.custom)}function nb(e){const t=Sl(e);return e?.color?.caption&&(t?.length>0||e?.color?.custom)}function ob(e){const t=Sl(e),n=Cl(e);return e?.color?.heading&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function rb(e){const t=Sl(e),n=Cl(e);return e?.color?.button&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function lb(e){const t=Sl(e),n=Cl(e);return e?.color?.background&&(t?.length>0||e?.color?.custom||n?.length>0||e?.color?.customGradient)}function ib({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,c.createElement)(m.__experimentalToolsPanel,{label:(0,v.__)("Color"),resetAll:()=>{const o=e(n);t(o)},panelId:o,hasInnerWrapper:!0,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},(0,c.createElement)("div",{className:"color-block-support-panel__inner-wrapper"},r))}const ab={text:!0,background:!0,link:!0,heading:!0,button:!0,caption:!0},sb={placement:"left-start",offset:36,shift:!0},cb=({indicators:e,label:t})=>(0,c.createElement)(m.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(m.__experimentalZStack,{isLayered:!1,offset:-8},e.map(((e,t)=>(0,c.createElement)(m.Flex,{key:t,expanded:!1},(0,c.createElement)(m.ColorIndicator,{colorValue:e}))))),(0,c.createElement)(m.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t},t));function ub({isGradient:e,inheritedValue:t,userValue:n,setValue:o,colorGradientControlSettings:r}){return(0,c.createElement)(Qh,{...r,showTitle:!1,enableAlpha:!0,__experimentalIsRenderedInSidebar:!0,colorValue:e?void 0:t,gradientValue:e?t:void 0,onColorChange:e?void 0:o,onGradientChange:e?o:void 0,clearable:t===n,headingLevel:3})}function db({label:e,hasValue:t,resetValue:n,isShownByDefault:o,indicators:r,tabs:l,colorGradientControlSettings:i,panelId:a}){const s=l.map((({key:e,label:t})=>({name:e,title:t})));return(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"block-editor-tools-panel-color-gradient-settings__item",hasValue:t,label:e,onDeselect:n,isShownByDefault:o,panelId:a},(0,c.createElement)(m.Dropdown,{popoverProps:sb,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:({onToggle:t,isOpen:n})=>{const o={onClick:t,className:d()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n,"aria-label":(0,v.sprintf)((0,v.__)("Color %s styles"),e)};return(0,c.createElement)(m.Button,{...o},(0,c.createElement)(cb,{indicators:r,label:e}))},renderContent:()=>(0,c.createElement)(m.__experimentalDropdownContentWrapper,{paddingSize:"none"},(0,c.createElement)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content"},1===l.length&&(0,c.createElement)(ub,{...l[0],colorGradientControlSettings:i}),l.length>1&&(0,c.createElement)(m.TabPanel,{tabs:s},(e=>{const t=l.find((t=>t.key===e.name));return t?(0,c.createElement)(ub,{...t,colorGradientControlSettings:i}):null}))))}))}function pb({as:e=ib,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=ab,children:a}){const s=Sl(r),u=Cl(r),d=r?.color?.custom,p=r?.color?.customGradient,m=s.length>0||d,f=u.length>0||p,g=e=>fl({settings:r},"",e),h=e=>{const t=s.flatMap((({colors:e})=>e)).find((({color:t})=>t===e));return t?"var:preset|color|"+t.slug:e},b=e=>{const t=u.flatMap((({gradients:e})=>e)).find((({gradient:t})=>t===e));return t?"var:preset|gradient|"+t.slug:e},_=eb(r),k=g(o?.color?.text),y=g(t?.color?.text),E=e=>{n(Al(t,["color","text"],h(e)))},w=lb(r),S=g(o?.color?.background),C=g(t?.color?.background),x=g(o?.color?.gradient),B=g(t?.color?.gradient),I=tb(r),T=g(o?.elements?.link?.color?.text),M=g(t?.elements?.link?.color?.text),P=g(o?.elements?.link?.[":hover"]?.color?.text),N=g(t?.elements?.link?.[":hover"]?.color?.text),L=[{name:"caption",label:(0,v.__)("Captions"),showPanel:nb(r)},{name:"button",label:(0,v.__)("Button"),showPanel:rb(r)},{name:"heading",label:(0,v.__)("Heading"),showPanel:ob(r)},{name:"h1",label:(0,v.__)("H1"),showPanel:ob(r)},{name:"h2",label:(0,v.__)("H2"),showPanel:ob(r)},{name:"h3",label:(0,v.__)("H3"),showPanel:ob(r)},{name:"h4",label:(0,v.__)("H4"),showPanel:ob(r)},{name:"h5",label:(0,v.__)("H5"),showPanel:ob(r)},{name:"h6",label:(0,v.__)("H6"),showPanel:ob(r)}],R=(0,c.useCallback)((e=>({...e,color:void 0,elements:{...e?.elements,link:{...e?.elements?.link,color:void 0,":hover":{color:void 0}},...L.reduce(((t,n)=>({...t,[n.name]:{...e?.elements?.[n.name],color:void 0}})),{})}})),[]),A=[_&&{key:"text",label:(0,v.__)("Text"),hasValue:()=>!!y,resetValue:()=>E(void 0),isShownByDefault:i.text,indicators:[k],tabs:[{key:"text",label:(0,v.__)("Text"),inheritedValue:k,setValue:E,userValue:y}]},w&&{key:"background",label:(0,v.__)("Background"),hasValue:()=>!!C||!!B,resetValue:()=>{const e=Al(t,["color","background"],void 0);e.color.gradient=void 0,n(e)},isShownByDefault:i.background,indicators:[null!=x?x:S],tabs:[m&&{key:"background",label:(0,v.__)("Solid"),inheritedValue:S,setValue:e=>{const o=Al(t,["color","background"],h(e));o.color.gradient=void 0,n(o)},userValue:C},f&&{key:"gradient",label:(0,v.__)("Gradient"),inheritedValue:x,setValue:e=>{const o=Al(t,["color","gradient"],b(e));o.color.background=void 0,n(o)},userValue:B,isGradient:!0}].filter(Boolean)},I&&{key:"link",label:(0,v.__)("Link"),hasValue:()=>!!M||!!N,resetValue:()=>{let e=Al(t,["elements","link",":hover","color","text"],void 0);e=Al(e,["elements","link","color","text"],void 0),n(e)},isShownByDefault:i.link,indicators:[T,P],tabs:[{key:"link",label:(0,v.__)("Default"),inheritedValue:T,setValue:e=>{n(Al(t,["elements","link","color","text"],h(e)))},userValue:M},{key:"hover",label:(0,v.__)("Hover"),inheritedValue:P,setValue:e=>{n(Al(t,["elements","link",":hover","color","text"],h(e)))},userValue:N}]}].filter(Boolean);return L.forEach((({name:e,label:r,showPanel:l})=>{if(!l)return;const a=g(o?.elements?.[e]?.color?.background),s=g(o?.elements?.[e]?.color?.gradient),c=g(o?.elements?.[e]?.color?.text),u=g(t?.elements?.[e]?.color?.background),d=g(t?.elements?.[e]?.color?.gradient),p=g(t?.elements?.[e]?.color?.text),_="caption"!==e;A.push({key:e,label:r,hasValue:()=>!!(p||u||d),resetValue:()=>{const o=Al(t,["elements",e,"color","background"],void 0);o.elements[e].color.gradient=void 0,o.elements[e].color.text=void 0,n(o)},isShownByDefault:i[e],indicators:_?[c,null!=s?s:a]:[c],tabs:[m&&{key:"text",label:(0,v.__)("Text"),inheritedValue:c,setValue:o=>{n(Al(t,["elements",e,"color","text"],h(o)))},userValue:p},m&&_&&{key:"background",label:(0,v.__)("Background"),inheritedValue:a,setValue:o=>{const r=Al(t,["elements",e,"color","background"],h(o));r.elements[e].color.gradient=void 0,n(r)},userValue:u},f&&_&&{key:"gradient",label:(0,v.__)("Gradient"),inheritedValue:s,setValue:o=>{const r=Al(t,["elements",e,"color","gradient"],b(o));r.elements[e].color.background=void 0,n(r)},userValue:d,isGradient:!0}].filter(Boolean)})})),(0,c.createElement)(e,{resetAllFilter:R,value:t,onChange:n,panelId:l},A.map((e=>(0,c.createElement)(db,{key:e.key,...e,colorGradientControlSettings:{colors:s,disableCustomColors:!d,gradients:u,disableCustomGradients:!p},panelId:l}))),a)}Up([$p,Kp]);var mb=function({backgroundColor:e,fallbackBackgroundColor:t,fallbackTextColor:n,fallbackLinkColor:o,fontSize:r,isLargeText:l,textColor:i,linkColor:a,enableAlphaChecker:s=!1}){const u=e||t;if(!u)return null;const d=i||n,p=a||o;if(!d&&!p)return null;const f=[{color:d,description:(0,v.__)("text color")},{color:p,description:(0,v.__)("link color")}],g=Hp(u),h=g.alpha()<1,b=g.brightness(),_={level:"AA",size:l||!1!==l&&r>=24?"large":"small"};let k="",y="";for(const e of f){if(!e.color)continue;const t=Hp(e.color),n=t.isReadable(g,_),o=t.alpha()<1;if(!n){if(h||o)continue;k=b<t.brightness()?(0,v.sprintf)((0,v.__)("This color combination may be hard for people to read. Try using a darker background color and/or a brighter %s."),e.description):(0,v.sprintf)((0,v.__)("This color combination may be hard for people to read. Try using a brighter background color and/or a darker %s."),e.description),y=(0,v.__)("This color combination may be hard for people to read.");break}o&&s&&(k=(0,v.__)("Transparent text may be hard for people to read."),y=(0,v.__)("Transparent text may be hard for people to read."))}return k?((0,Cn.speak)(y),(0,c.createElement)("div",{className:"block-editor-contrast-checker"},(0,c.createElement)(m.Notice,{spokenMessage:null,status:"warning",isDismissible:!1},k))):null};function fb(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function gb({clientId:e}){const[t,n]=(0,c.useState)(),[o,r]=(0,c.useState)(),[l,i]=(0,c.useState)(),a=Bd(e);return(0,c.useEffect)((()=>{if(!a.current)return;r(fb(a.current).color);const e=a.current?.querySelector("a");e&&e.innerText&&i(fb(e).color);let t=a.current,o=fb(t).backgroundColor;for(;"rgba(0, 0, 0, 0)"===o&&t.parentNode&&t.parentNode.nodeType===t.parentNode.ELEMENT_NODE;)t=t.parentNode,o=fb(t).backgroundColor;n(o)})),(0,c.createElement)(mb,{backgroundColor:t,textColor:o,enableAlphaChecker:!0,linkColor:l})}const hb="color",bb=e=>{const t=(0,a.getBlockSupport)(e,hb);return t&&(!0===t.link||!0===t.gradient||!1!==t.background||!1!==t.text)},vb=e=>{if("web"!==c.Platform.OS)return!1;const t=(0,a.getBlockSupport)(e,hb);return null!==t&&"object"==typeof t&&!!t.link},_b=e=>{const t=(0,a.getBlockSupport)(e,hb);return null!==t&&"object"==typeof t&&!!t.gradients},kb=e=>{const t=(0,a.getBlockSupport)(e,hb);return t&&!1!==t.background},yb=e=>{const t=(0,a.getBlockSupport)(e,hb);return t&&!1!==t.text};function Eb(e,t,n){if(!bb(t)||zl(t,hb))return e;const o=_b(t),{backgroundColor:r,textColor:l,gradient:i,style:a}=n,s=e=>!zl(t,hb,e),c=s("text")?rh("color",l):void 0,u=s("gradients")?Hh(i):void 0,p=s("background")?rh("background-color",r):void 0,m=s("background")||s("gradients"),f=r||a?.color?.background||o&&(i||a?.color?.gradient),g=d()(e.className,c,u,{[p]:!(o&&a?.color?.gradient||!p),"has-text-color":s("text")&&(l||a?.color?.text),"has-background":m&&f,"has-link-color":s("link")&&a?.elements?.link?.color});return e.className=g||void 0,e}function wb(e){const t=e?.color?.text,n=t?.startsWith("var:preset|color|")?t.substring(17):void 0,o=e?.color?.background,r=o?.startsWith("var:preset|color|")?o.substring(17):void 0,l=e?.color?.gradient,i=l?.startsWith("var:preset|gradient|")?l.substring(20):void 0,a={...e};return a.color={...a.color,text:n?void 0:t,background:r?void 0:o,gradient:i?void 0:l},{style:Dl(a),textColor:n,backgroundColor:r,gradient:i}}function Sb(e){return{...e.style,color:{...e.style?.color,text:e.textColor?"var:preset|color|"+e.textColor:e.style?.color?.text,background:e.backgroundColor?"var:preset|color|"+e.backgroundColor:e.style?.color?.background,gradient:e.gradient?"var:preset|gradient|"+e.gradient:e.style?.color?.gradient}}}function Cb({children:e,resetAllFilter:t}){const n=(0,c.useCallback)((e=>{const n=Sb(e),o=t(n);return{...e,...wb(o)}}),[t]);return(0,c.createElement)(qi,{group:"color",resetAllFilter:n},e)}function xb(e){const{clientId:t,name:n,attributes:o,setAttributes:r}=e,l=Vl(n),i=Jh(l),s=(0,c.useMemo)((()=>Sb({style:o.style,textColor:o.textColor,backgroundColor:o.backgroundColor,gradient:o.gradient})),[o.style,o.textColor,o.backgroundColor,o.gradient]);if(!i)return null;const u=(0,a.getBlockSupport)(e.name,[hb,"__experimentalDefaultControls"]),d="web"===c.Platform.OS&&!s?.color?.gradient&&(l?.color?.text||l?.color?.link)&&!1!==(0,a.getBlockSupport)(e.name,[hb,"enableContrastChecker"]);return(0,c.createElement)(pb,{as:Cb,panelId:t,settings:l,value:s,onChange:e=>{r(wb(e))},defaultControls:u,enableContrastChecker:!1!==(0,a.getBlockSupport)(e.name,[hb,"enableContrastChecker"])},d&&(0,c.createElement)(gb,{clientId:t}))}const Bb=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,{backgroundColor:r,textColor:l}=o,i=Xr("color.palette.custom"),a=Xr("color.palette.theme"),s=Xr("color.palette.default"),u=(0,c.useMemo)((()=>[...i||[],...a||[],...s||[]]),[i,a,s]);if(!bb(n)||zl(n,hb))return(0,c.createElement)(e,{...t});const d={};l&&!zl(n,hb,"text")&&(d.color=nh(u,l)?.color),r&&!zl(n,hb,"background")&&(d.backgroundColor=nh(u,r)?.color);let p=t.wrapperProps;return p={...t.wrapperProps,style:{...d,...t.wrapperProps?.style}},(0,c.createElement)(e,{...t,wrapperProps:p})}),"withColorPaletteStyles"),Ib={linkColor:[["style","elements","link","color","text"]],textColor:[["textColor"],["style","color","text"]],backgroundColor:[["backgroundColor"],["style","color","background"]],gradient:[["gradient"],["style","color","gradient"]]};function Tb({value:e="",onChange:t,fontFamilies:n,...o}){const r=Xr("typography.fontFamilies");if(n||(n=r),!n||0===n.length)return null;const l=[{value:"",label:(0,v.__)("Default")},...n.map((({fontFamily:e,name:t})=>({value:e,label:t||e})))];return(0,c.createElement)(m.SelectControl,{label:(0,v.__)("Font"),options:l,value:e,onChange:t,labelPosition:"top",...o})}(0,s.addFilter)("blocks.registerBlockType","core/color/addAttribute",(function(e){return bb(e)?(e.attributes.backgroundColor||Object.assign(e.attributes,{backgroundColor:{type:"string"}}),e.attributes.textColor||Object.assign(e.attributes,{textColor:{type:"string"}}),_b(e)&&!e.attributes.gradient&&Object.assign(e.attributes,{gradient:{type:"string"}}),e):e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/color/addSaveProps",Eb),(0,s.addFilter)("blocks.registerBlockType","core/color/addEditProps",(function(e){if(!bb(e)||zl(e,hb))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),Eb(o,e,n)},e})),(0,s.addFilter)("editor.BlockListBlock","core/color/with-color-palette-styles",Bb),(0,s.addFilter)("blocks.switchToBlockType.transformedBlock","core/color/addTransforms",(function(e,t,n,o){const r=e.name;return Ol({linkColor:vb(r),textColor:yb(r),backgroundColor:kb(r),gradient:_b(r)},Ib,e,t,n,o)}));const Mb=[{name:(0,v._x)("Regular","font style"),value:"normal"},{name:(0,v._x)("Italic","font style"),value:"italic"}],Pb=[{name:(0,v._x)("Thin","font weight"),value:"100"},{name:(0,v._x)("Extra Light","font weight"),value:"200"},{name:(0,v._x)("Light","font weight"),value:"300"},{name:(0,v._x)("Regular","font weight"),value:"400"},{name:(0,v._x)("Medium","font weight"),value:"500"},{name:(0,v._x)("Semi Bold","font weight"),value:"600"},{name:(0,v._x)("Bold","font weight"),value:"700"},{name:(0,v._x)("Extra Bold","font weight"),value:"800"},{name:(0,v._x)("Black","font weight"),value:"900"}],Nb=(e,t)=>e?t?(0,v.__)("Appearance"):(0,v.__)("Font style"):(0,v.__)("Font weight");function Lb(e){const{onChange:t,hasFontStyles:n=!0,hasFontWeights:o=!0,value:{fontStyle:r,fontWeight:l},...i}=e,a=n||o,s=Nb(n,o),u={key:"default",name:(0,v.__)("Default"),style:{fontStyle:void 0,fontWeight:void 0}},d=(0,c.useMemo)((()=>n&&o?(()=>{const e=[u];return Mb.forEach((({name:t,value:n})=>{Pb.forEach((({name:o,value:r})=>{const l="normal"===n?o:(0,v.sprintf)((0,v.__)("%1$s %2$s"),o,t);e.push({key:`${n}-${r}`,name:l,style:{fontStyle:n,fontWeight:r}})}))})),e})():n?(()=>{const e=[u];return Mb.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:n,fontWeight:void 0}})})),e})():(()=>{const e=[u];return Pb.forEach((({name:t,value:n})=>{e.push({key:n,name:t,style:{fontStyle:void 0,fontWeight:n}})})),e})()),[e.options]),p=d.find((e=>e.style.fontStyle===r&&e.style.fontWeight===l))||d[0];return a&&(0,c.createElement)(m.CustomSelectControl,{...i,className:"components-font-appearance-control",label:s,describedBy:p?n?o?(0,v.sprintf)((0,v.__)("Currently selected font appearance: %s"),p.name):(0,v.sprintf)((0,v.__)("Currently selected font style: %s"),p.name):(0,v.sprintf)((0,v.__)("Currently selected font weight: %s"),p.name):(0,v.__)("No selected font appearance"),options:d,value:p,onChange:({selectedItem:e})=>t(e.style),__nextUnconstrainedWidth:!0})}const Rb=1.5,Ab=.1;var Db=({value:e,onChange:t,__nextHasNoMarginBottom:n=!1,__unstableInputWidth:o="60px",...r})=>{const l=function(e){return void 0!==e&&""!==e}(e),i=(e,t)=>{if(l)return e;switch(`${e}`){case"0.1":return 1.6;case"0":return t?e:1.4;case"":return Rb;default:return e}},a=l?e:"";n||$()("Bottom margin styles for wp.blockEditor.LineHeightControl",{since:"6.0",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"});const s=n?void 0:{marginBottom:24};return(0,c.createElement)("div",{className:"block-editor-line-height-control",style:s},(0,c.createElement)(m.__experimentalNumberControl,{...r,__unstableInputWidth:o,__unstableStateReducer:(e,t)=>{const n=["insertText","insertFromPaste"].includes(t.payload.event.nativeEvent?.inputType),o=i(e.value,n);return{...e,value:o}},onChange:(e,{event:n})=>{""!==e?"click"!==n.type?t(`${e}`):t(i(`${e}`,!1)):t()},label:(0,v.__)("Line height"),placeholder:Rb,step:Ab,value:a,min:0,spinControls:"custom"}))};function Ob({value:e,onChange:t,__unstableInputWidth:n="60px",...o}){const r=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["px","em","rem"],defaultValues:{px:2,em:.2,rem:.2}});return(0,c.createElement)(m.__experimentalUnitControl,{...o,label:(0,v.__)("Letter spacing"),value:e,__unstableInputWidth:n,units:r,onChange:t})}var zb=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7 11.5h10V13H7z"}));var Vb=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M6.1 6.8L2.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H6.1zm-.8 6.8L7 8.9l1.7 4.7H5.3zm15.1-.7c-.4-.5-.9-.8-1.6-1 .4-.2.7-.5.8-.9.2-.4.3-.9.3-1.4 0-.9-.3-1.6-.8-2-.6-.5-1.3-.7-2.4-.7h-3.5V18h4.2c1.1 0 2-.3 2.6-.8.6-.6 1-1.4 1-2.4-.1-.8-.3-1.4-.6-1.9zm-5.7-4.7h1.8c.6 0 1.1.1 1.4.4.3.2.5.7.5 1.3 0 .6-.2 1.1-.5 1.3-.3.2-.8.4-1.4.4h-1.8V8.2zm4 8c-.4.3-.9.5-1.5.5h-2.6v-3.8h2.6c1.4 0 2 .6 2 1.9.1.6-.1 1-.5 1.4z"}));var Fb=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M11 16.8c-.1-.1-.2-.3-.3-.5v-2.6c0-.9-.1-1.7-.3-2.2-.2-.5-.5-.9-.9-1.2-.4-.2-.9-.3-1.6-.3-.5 0-1 .1-1.5.2s-.9.3-1.2.6l.2 1.2c.4-.3.7-.4 1.1-.5.3-.1.7-.2 1-.2.6 0 1 .1 1.3.4.3.2.4.7.4 1.4-1.2 0-2.3.2-3.3.7s-1.4 1.1-1.4 2.1c0 .7.2 1.2.7 1.6.4.4 1 .6 1.8.6.9 0 1.7-.4 2.4-1.2.1.3.2.5.4.7.1.2.3.3.6.4.3.1.6.1 1.1.1h.1l.2-1.2h-.1c-.4.1-.6 0-.7-.1zM9.2 16c-.2.3-.5.6-.9.8-.3.1-.7.2-1.1.2-.4 0-.7-.1-.9-.3-.2-.2-.3-.5-.3-.9 0-.6.2-1 .7-1.3.5-.3 1.3-.4 2.5-.5v2zm10.6-3.9c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2s-.2 1.4-.6 2z"}));var Hb=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7.1 6.8L3.1 18h1.6l1.1-3h4.3l1.1 3h1.6l-4-11.2H7.1zm-.8 6.8L8 8.9l1.7 4.7H6.3zm14.5-1.5c-.3-.6-.7-1.1-1.2-1.5-.6-.4-1.2-.6-1.9-.6-.5 0-.9.1-1.4.3-.4.2-.8.5-1.1.8V6h-1.4v12h1.3l.2-1c.2.4.6.6 1 .8.4.2.9.3 1.4.3.7 0 1.2-.2 1.8-.5.5-.4 1-.9 1.3-1.5.3-.6.5-1.3.5-2.1-.1-.6-.2-1.3-.5-1.9zm-1.7 4c-.4.5-.9.8-1.6.8s-1.2-.2-1.7-.7c-.4-.5-.7-1.2-.7-2.1 0-.9.2-1.6.7-2.1.4-.5 1-.7 1.7-.7s1.2.3 1.6.8c.4.5.6 1.2.6 2 .1.8-.2 1.4-.6 2z"}));const Gb=[{name:(0,v.__)("None"),value:"none",icon:zb},{name:(0,v.__)("Uppercase"),value:"uppercase",icon:Vb},{name:(0,v.__)("Lowercase"),value:"lowercase",icon:Fb},{name:(0,v.__)("Capitalize"),value:"capitalize",icon:Hb}];function Ub({className:e,value:t,onChange:n}){return(0,c.createElement)("fieldset",{className:d()("block-editor-text-transform-control",e)},(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend"},(0,v.__)("Letter case")),(0,c.createElement)("div",{className:"block-editor-text-transform-control__buttons"},Gb.map((e=>(0,c.createElement)(m.Button,{key:e.value,icon:e.icon,label:e.name,isPressed:e.value===t,onClick:()=>{n(e.value===t?void 0:e.value)}})))))}var $b=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7 18v1h10v-1H7zm5-2c1.5 0 2.6-.4 3.4-1.2.8-.8 1.1-2 1.1-3.5V5H15v5.8c0 1.2-.2 2.1-.6 2.8-.4.7-1.2 1-2.4 1s-2-.3-2.4-1c-.4-.7-.6-1.6-.6-2.8V5H7.5v6.2c0 1.5.4 2.7 1.1 3.5.8.9 1.9 1.3 3.4 1.3z"}));var jb=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9.1 9v-.5c0-.6.2-1.1.7-1.4.5-.3 1.2-.5 2-.5.7 0 1.4.1 2.1.3.7.2 1.4.5 2.1.9l.2-1.9c-.6-.3-1.2-.5-1.9-.7-.8-.1-1.6-.2-2.4-.2-1.5 0-2.7.3-3.6 1-.8.7-1.2 1.5-1.2 2.6V9h2zM20 12H4v1h8.3c.3.1.6.2.8.3.5.2.9.5 1.1.8.3.3.4.7.4 1.2 0 .7-.2 1.1-.8 1.5-.5.3-1.2.5-2.1.5-.8 0-1.6-.1-2.4-.3-.8-.2-1.5-.5-2.2-.8L7 18.1c.5.2 1.2.4 2 .6.8.2 1.6.3 2.4.3 1.7 0 3-.3 3.9-1 .9-.7 1.3-1.6 1.3-2.8 0-.9-.2-1.7-.7-2.2H20v-1z"}));const Wb=[{name:(0,v.__)("None"),value:"none",icon:zb},{name:(0,v.__)("Underline"),value:"underline",icon:$b},{name:(0,v.__)("Strikethrough"),value:"line-through",icon:jb}];function Kb({value:e,onChange:t,className:n}){return(0,c.createElement)("fieldset",{className:d()("block-editor-text-decoration-control",n)},(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend"},(0,v.__)("Decoration")),(0,c.createElement)("div",{className:"block-editor-text-decoration-control__buttons"},Wb.map((n=>(0,c.createElement)(m.Button,{key:n.value,icon:n.icon,label:n.name,isPressed:n.value===e,onClick:()=>{t(n.value===e?void 0:n.value)}})))))}const qb=1,Zb=6;function Yb(e){const t=Qb(e),n=Jb(e),o=ev(e),r=tv(e),l=nv(e),i=ov(e),a=rv(e),s=Xb(e);return t||n||o||r||l||s||i||a}function Xb(e){var t,n,o,r;const l=!e?.typography?.customFontSize,i=null!==(t=e?.typography?.fontSizes)&&void 0!==t?t:{},a=[].concat(null!==(n=i?.custom)&&void 0!==n?n:[]).concat(null!==(o=i?.theme)&&void 0!==o?o:[]).concat(null!==(r=i.default)&&void 0!==r?r:[]);return!!a?.length||!l}function Qb(e){var t,n,o;const r=e?.typography?.fontFamilies,l=[].concat(null!==(t=r?.custom)&&void 0!==t?t:[]).concat(null!==(n=r?.theme)&&void 0!==n?n:[]).concat(null!==(o=r?.default)&&void 0!==o?o:[]).sort(((e,t)=>(e?.name||e?.slug).localeCompare(t?.name||e?.slug)));return!!l?.length}function Jb(e){return e?.typography?.lineHeight}function ev(e){const t=e?.typography?.fontStyle,n=e?.typography?.fontWeight;return t||n}function tv(e){return e?.typography?.letterSpacing}function nv(e){return e?.typography?.textTransform}function ov(e){return e?.typography?.textDecoration}function rv(e){return e?.typography?.textColumns}function lv({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,c.createElement)(m.__experimentalToolsPanel,{label:(0,v.__)("Typography"),resetAll:()=>{const o=e(n);t(o)},panelId:o},r)}const iv={fontFamily:!0,fontSize:!0,fontAppearance:!0,lineHeight:!0,letterSpacing:!0,textTransform:!0,textDecoration:!0,textColumns:!0};function av({as:e=lv,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=iv}){var a,s,u,d,p,f,g;const h=e=>fl({settings:r},"",e),b=Qb(r),_=r?.typography?.fontFamilies,k=[].concat(null!==(a=_?.custom)&&void 0!==a?a:[]).concat(null!==(s=_?.theme)&&void 0!==s?s:[]).concat(null!==(u=_?.default)&&void 0!==u?u:[]),y=h(o?.typography?.fontFamily),E=e=>{const o=k?.find((({fontFamily:t})=>t===e))?.slug;n(Al(t,["typography","fontFamily"],o?`var:preset|font-family|${o}`:e||void 0))},w=Xb(r),S=!r?.typography?.customFontSize,C=null!==(d=r?.typography?.fontSizes)&&void 0!==d?d:{},x=[].concat(null!==(p=C?.custom)&&void 0!==p?p:[]).concat(null!==(f=C?.theme)&&void 0!==f?f:[]).concat(null!==(g=C.default)&&void 0!==g?g:[]),B=h(o?.typography?.fontSize),I=(e,o)=>{n(Al(t,["typography","fontSize"],(o?.slug?`var:preset|font-size|${o?.slug}`:e)||void 0))},T=ev(r),M=function(e){const t=e?.typography?.fontStyle,n=e?.typography?.fontWeight;return t?n?(0,v.__)("Appearance"):(0,v.__)("Font style"):(0,v.__)("Font weight")}(r),P=r?.typography?.fontStyle,N=r?.typography?.fontWeight,L=h(o?.typography?.fontStyle),R=h(o?.typography?.fontWeight),A=({fontStyle:e,fontWeight:o})=>{n({...t,typography:{...t?.typography,fontStyle:e||void 0,fontWeight:o||void 0}})},D=Jb(r),O=h(o?.typography?.lineHeight),z=e=>{n(Al(t,["typography","lineHeight"],e||void 0))},V=tv(r),F=h(o?.typography?.letterSpacing),H=e=>{n(Al(t,["typography","letterSpacing"],e||void 0))},G=rv(r),U=h(o?.typography?.textColumns),$=e=>{n(Al(t,["typography","textColumns"],e||void 0))},j=nv(r),W=h(o?.typography?.textTransform),K=e=>{n(Al(t,["typography","textTransform"],e||void 0))},q=ov(r),Z=h(o?.typography?.textDecoration),Y=e=>{n(Al(t,["typography","textDecoration"],e||void 0))},X=(0,c.useCallback)((e=>({...e,typography:{}})),[]);return(0,c.createElement)(e,{resetAllFilter:X,value:t,onChange:n,panelId:l},b&&(0,c.createElement)(m.__experimentalToolsPanelItem,{label:(0,v.__)("Font family"),hasValue:()=>!!t?.typography?.fontFamily,onDeselect:()=>E(void 0),isShownByDefault:i.fontFamily,panelId:l},(0,c.createElement)(Tb,{fontFamilies:k,value:y,onChange:E,size:"__unstable-large",__nextHasNoMarginBottom:!0})),w&&(0,c.createElement)(m.__experimentalToolsPanelItem,{label:(0,v.__)("Font size"),hasValue:()=>!!t?.typography?.fontSize,onDeselect:()=>I(void 0),isShownByDefault:i.fontSize,panelId:l},(0,c.createElement)(m.FontSizePicker,{value:B,onChange:I,fontSizes:x,disableCustomFontSizes:S,withReset:!1,withSlider:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})),T&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:M,hasValue:()=>!!t?.typography?.fontStyle||!!t?.typography?.fontWeight,onDeselect:()=>{A({})},isShownByDefault:i.fontAppearance,panelId:l},(0,c.createElement)(Lb,{value:{fontStyle:L,fontWeight:R},onChange:A,hasFontStyles:P,hasFontWeights:N,size:"__unstable-large",__nextHasNoMarginBottom:!0})),D&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:(0,v.__)("Line height"),hasValue:()=>void 0!==t?.typography?.lineHeight,onDeselect:()=>z(void 0),isShownByDefault:i.lineHeight,panelId:l},(0,c.createElement)(Db,{__nextHasNoMarginBottom:!0,__unstableInputWidth:"auto",value:O,onChange:z,size:"__unstable-large"})),V&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:(0,v.__)("Letter spacing"),hasValue:()=>!!t?.typography?.letterSpacing,onDeselect:()=>H(void 0),isShownByDefault:i.letterSpacing,panelId:l},(0,c.createElement)(Ob,{value:F,onChange:H,size:"__unstable-large",__unstableInputWidth:"auto"})),G&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:(0,v.__)("Text columns"),hasValue:()=>!!t?.typography?.textColumns,onDeselect:()=>$(void 0),isShownByDefault:i.textColumns,panelId:l},(0,c.createElement)(m.__experimentalNumberControl,{label:(0,v.__)("Text columns"),max:Zb,min:qb,onChange:$,size:"__unstable-large",spinControls:"custom",value:U,initialPosition:1})),q&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:(0,v.__)("Text decoration"),hasValue:()=>!!t?.typography?.textDecoration,onDeselect:()=>Y(void 0),isShownByDefault:i.textDecoration,panelId:l},(0,c.createElement)(Kb,{value:Z,onChange:Y,size:"__unstable-large",__unstableInputWidth:"auto"})),j&&(0,c.createElement)(m.__experimentalToolsPanelItem,{label:(0,v.__)("Letter case"),hasValue:()=>!!t?.typography?.textTransform,onDeselect:()=>K(void 0),isShownByDefault:i.textTransform,panelId:l},(0,c.createElement)(Ub,{value:W,onChange:K,showNone:!0,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0})))}const sv="typography.lineHeight";var cv=window.wp.tokenList,uv=n.n(cv);const dv="typography.__experimentalFontFamily";function pv(e,t,n){if(!(0,a.hasBlockSupport)(t,dv))return e;if(zl(t,yv,"fontFamily"))return e;if(!n?.fontFamily)return e;const o=new(uv())(e.className);o.add(`has-${Ll(n?.fontFamily)}-font-family`);const r=o.value;return e.className=r||void 0,e}(0,s.addFilter)("blocks.registerBlockType","core/fontFamily/addAttribute",(function(e){return(0,a.hasBlockSupport)(e,dv)?(e.attributes.fontFamily||Object.assign(e.attributes,{fontFamily:{type:"string"}}),e):e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/fontFamily/addSaveProps",pv),(0,s.addFilter)("blocks.registerBlockType","core/fontFamily/addEditProps",(function(e){if(!(0,a.hasBlockSupport)(e,dv))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),pv(o,e,n)},e}));const mv=(e,t,n)=>{if(t){const n=e?.find((({slug:e})=>e===t));if(n)return n}return{size:n}};function fv(e,t){const n=e?.find((({size:e})=>e===t));return n||{size:t}}function gv(e){if(e)return`has-${Ll(e)}-font-size`}const hv="typography.fontSize";function bv(e,t,n){if(!(0,a.hasBlockSupport)(t,hv))return e;if(zl(t,yv,"fontSize"))return e;const o=new(uv())(e.className);o.add(gv(n.fontSize));const r=o.value;return e.className=r||void 0,e}const vv=(0,p.createHigherOrderComponent)((e=>t=>{const n=Xr("typography.fontSizes"),{name:o,attributes:{fontSize:r,style:l},wrapperProps:i}=t;if(!(0,a.hasBlockSupport)(o,hv)||zl(o,yv,"fontSize")||!r||l?.typography?.fontSize)return(0,c.createElement)(e,{...t});const s=mv(n,r,l?.typography?.fontSize).size,u={...t,wrapperProps:{...i,style:{fontSize:s,...i?.style}}};return(0,c.createElement)(e,{...u})}),"withFontSizeInlineStyles"),_v={fontSize:[["fontSize"],["style","typography","fontSize"]]};function kv(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.includes(e))))}(0,s.addFilter)("blocks.registerBlockType","core/font/addAttribute",(function(e){return(0,a.hasBlockSupport)(e,hv)?(e.attributes.fontSize||Object.assign(e.attributes,{fontSize:{type:"string"}}),e):e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/font/addSaveProps",bv),(0,s.addFilter)("blocks.registerBlockType","core/font/addEditProps",(function(e){if(!(0,a.hasBlockSupport)(e,hv))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),bv(o,e,n)},e})),(0,s.addFilter)("editor.BlockListBlock","core/font-size/with-font-size-inline-styles",vv),(0,s.addFilter)("blocks.switchToBlockType.transformedBlock","core/font-size/addTransforms",(function(e,t,n,o){const r=e.name;return Ol({fontSize:(0,a.hasBlockSupport)(r,hv)},_v,e,t,n,o)})),(0,s.addFilter)("blocks.registerBlockType","core/font-size/addEditPropsForFluidCustomFontSizes",(function(e){if(!(0,a.hasBlockSupport)(e,hv)||zl(e,yv,"fontSize"))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=e=>{const n=t?t(e):{},o=n?.style?.fontSize,r=cl((0,f.select)(Go).getSettings().__experimentalFeatures),l=o?al({size:o},r):null;return null===l?n:{...n,style:{...n?.style,fontSize:l}}},e}),11);const yv="typography",Ev=[sv,hv,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",dv,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"];function wv(e){const t={...kv(e,["fontFamily"])},n=e?.typography?.fontSize,o=e?.typography?.fontFamily,r=n?.startsWith("var:preset|font-size|")?n.substring(21):void 0,l=o?.startsWith("var:preset|font-family|")?o.substring(23):void 0;return t.typography={...kv(t.typography,["fontFamily"]),fontSize:r?void 0:n},{style:Dl(t),fontFamily:l,fontSize:r}}function Sv(e){return{...e.style,typography:{...e.style?.typography,fontFamily:e.fontFamily?"var:preset|font-family|"+e.fontFamily:void 0,fontSize:e.fontSize?"var:preset|font-size|"+e.fontSize:e.style?.typography?.fontSize}}}function Cv({children:e,resetAllFilter:t}){const n=(0,c.useCallback)((e=>{const n=Sv(e),o=t(n);return{...e,...wv(o)}}),[t]);return(0,c.createElement)(qi,{group:"typography",resetAllFilter:n},e)}function xv({clientId:e,name:t,attributes:n,setAttributes:o,__unstableParentLayout:r}){const l=Vl(t,r),i=Yb(l),s=(0,c.useMemo)((()=>Sv({style:n.style,fontFamily:n.fontFamily,fontSize:n.fontSize})),[n.style,n.fontSize,n.fontFamily]);if(!i)return null;const u=(0,a.getBlockSupport)(t,[yv,"__experimentalDefaultControls"]);return(0,c.createElement)(av,{as:Cv,panelId:e,settings:l,value:s,onChange:e=>{o(wv(e))},defaultControls:u})}var Bv=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const Iv={px:{max:300,steps:1},"%":{max:100,steps:1},vw:{max:100,steps:1},vh:{max:100,steps:1},em:{max:10,steps:.1},rm:{max:10,steps:.1}};function Tv({icon:e,isMixed:t=!1,minimumCustomValue:n,onChange:o,onMouseOut:r,onMouseOver:l,showSideInLabel:i=!0,side:a,spacingSizes:s,type:u,value:d}){var g,h;d=Br(d,s);let b=s;const _=s.length<=8,k=(0,f.useSelect)((e=>{const t=e(Go).getSettings();return t?.disableCustomSpacingSizes})),[y,E]=(0,c.useState)(!k&&void 0!==d&&!Cr(d)),w=(0,p.usePrevious)(d);d&&w!==d&&!Cr(d)&&!0!==y&&E(!0);const S=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["px","em","rem"]});let C=null;!_&&!y&&void 0!==d&&(!Cr(d)||Cr(d)&&t)?(b=[...s,{name:t?(0,v.__)("Mixed"):(0,v.sprintf)((0,v.__)("Custom (%s)"),d),slug:"custom",size:d}],C=b.length-1):t||(C=y?xr(d,s):function(e,t){if(void 0===e)return 0;const n=0===parseFloat(e,10)?"0":Tr(e),o=t.findIndex((e=>String(e.slug)===n));return-1!==o?o:NaN}(d,s));const x=(0,c.useMemo)((()=>(0,m.__experimentalParseQuantityAndUnitFromRawValue)(C)),[C])[1]||S[0].value,B=parseFloat(C,10),I=(e,t)=>{const n=parseInt(e,10);if("selectList"===t){if(0===n)return;if(1===n)return"0"}else if(0===n)return"0";return`var:preset|spacing|${s[e]?.slug}`},T=t?(0,v.__)("Mixed"):null,M=b.map(((e,t)=>({key:t,name:e.name}))),P=s.map(((e,t)=>({value:t,label:void 0}))),N=kr.includes(a)&&i?wr[a]:"",L=i?u?.toLowerCase():u,R=(0,v.sprintf)((0,v.__)("%1$s %2$s"),N,L).trim();return(0,c.createElement)(m.__experimentalHStack,{className:"spacing-sizes-control__wrapper"},e&&(0,c.createElement)(m.Icon,{className:"spacing-sizes-control__icon",icon:e,size:24}),y&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalUnitControl,{onMouseOver:l,onMouseOut:r,onFocus:l,onBlur:r,onChange:e=>o((e=>isNaN(parseFloat(e))?void 0:e)(e)),value:C,units:S,min:n,placeholder:T,disableUnits:t,label:R,hideLabelFromVision:!0,className:"spacing-sizes-control__custom-value-input",size:"__unstable-large"}),(0,c.createElement)(m.RangeControl,{onMouseOver:l,onMouseOut:r,onFocus:l,onBlur:r,value:B,min:0,max:null!==(g=Iv[x]?.max)&&void 0!==g?g:10,step:null!==(h=Iv[x]?.steps)&&void 0!==h?h:.1,withInputField:!1,onChange:e=>{o([e,x].join(""))},className:"spacing-sizes-control__custom-value-range",__nextHasNoMarginBottom:!0})),_&&!y&&(0,c.createElement)(m.RangeControl,{onMouseOver:l,onMouseOut:r,className:"spacing-sizes-control__range-control",value:C,onChange:e=>o(I(e)),onMouseDown:e=>{e?.nativeEvent?.offsetX<35&&void 0===d&&o("0")},withInputField:!1,"aria-valuenow":C,"aria-valuetext":s[C]?.name,renderTooltipContent:e=>void 0===d?void 0:s[e]?.name,min:0,max:s.length-1,marks:P,label:R,hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,onFocus:l,onBlur:r}),!_&&!y&&(0,c.createElement)(m.CustomSelectControl,{className:"spacing-sizes-control__custom-select-control",value:M.find((e=>e.key===C))||"",onChange:e=>{o(I(e.selectedItem.key,"selectList"))},options:M,label:R,hideLabelFromVision:!0,__nextUnconstrainedWidth:!0,size:"__unstable-large",onMouseOver:l,onMouseOut:r,onFocus:l,onBlur:r}),!k&&(0,c.createElement)(m.Button,{label:y?(0,v.__)("Use size preset"):(0,v.__)("Set custom size"),icon:Bv,onClick:()=>{E(!y)},isPressed:y,isSmall:!0,className:"spacing-sizes-control__custom-toggle",iconSize:24}))}const Mv=["vertical","horizontal"];function Pv({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:l,type:i,values:a}){const s=e=>n=>{if(!t)return;const o={...Object.keys(a).reduce(((e,t)=>(e[t]=Br(a[t],l),e)),{})};"vertical"===e&&(o.top=n,o.bottom=n),"horizontal"===e&&(o.left=n,o.right=n),t(o)},u=r?.length?Mv.filter((e=>Mr(r,e))):Mv;return(0,c.createElement)(c.Fragment,null,u.map((t=>{const r="vertical"===t?a.top:a.left;return(0,c.createElement)(Tv,{key:`spacing-sizes-control-${t}`,icon:Er[t],label:wr[t],minimumCustomValue:e,onChange:s(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:l,type:i,value:r,withInputField:!1})})))}function Nv({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,sides:r,spacingSizes:l,type:i,values:a}){const s=r?.length?kr.filter((e=>r.includes(e))):kr,u=e=>n=>{const o={...Object.keys(a).reduce(((e,t)=>(e[t]=Br(a[t],l),e)),{})};o[e]=n,t(o)};return(0,c.createElement)(c.Fragment,null,s.map((t=>(0,c.createElement)(Tv,{key:`spacing-sizes-control-${t}`,icon:Er[t],label:wr[t],minimumCustomValue:e,onChange:u(t),onMouseOut:n,onMouseOver:o,side:t,spacingSizes:l,type:i,value:a[t],withInputField:!1}))))}function Lv({minimumCustomValue:e,onChange:t,onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:l,spacingSizes:i,type:a,values:s}){return(0,c.createElement)(Tv,{label:wr[l],minimumCustomValue:e,onChange:(u=l,e=>{const n={...Object.keys(s).reduce(((e,t)=>(e[t]=Br(s[t],i),e)),{})};n[u]=e,t(n)}),onMouseOut:n,onMouseOver:o,showSideInLabel:r,side:l,spacingSizes:i,type:a,value:s[l],withInputField:!1});var u}var Rv=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));const Av=(0,c.createElement)(m.Icon,{icon:Rv,size:24});function Dv({label:e,onChange:t,sides:n,value:o}){if(!n||!n.length)return;const r=function(e){if(!e||!e.length)return{};const t={},n=Mr(e,"horizontal"),o=Mr(e,"vertical");n&&o?t.axial={label:wr.axial,icon:Er.axial}:n?t.axial={label:wr.horizontal,icon:Er.horizontal}:o&&(t.axial={label:wr.vertical,icon:Er.vertical});let r=0;return kr.forEach((n=>{e.includes(n)&&(r+=1,t[n]={label:wr[n],icon:Er[n]})})),r>1&&(t.custom={label:wr.custom,icon:Er.custom}),t}(n),l=r[o].icon,{custom:i,...a}=r;return(0,c.createElement)(m.DropdownMenu,{icon:l,label:e,className:"spacing-sizes-control__dropdown",toggleProps:{isSmall:!0}},(({onClose:e})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuGroup,null,Object.entries(a).map((([n,{label:r,icon:l}])=>{const i=o===n;return(0,c.createElement)(m.MenuItem,{key:n,icon:l,iconPosition:"left",isSelected:i,role:"menuitemradio",onClick:()=>{t(n),e()},suffix:i?Av:void 0},r)}))),!!i&&(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(m.MenuItem,{icon:i.icon,iconPosition:"left",isSelected:o===Sr.custom,role:"menuitemradio",onClick:()=>{t(Sr.custom),e()},suffix:o===Sr.custom?Av:void 0},i.label)))))}function Ov({inputProps:e,label:t,minimumCustomValue:n=0,onChange:o,onMouseOut:r,onMouseOver:l,showSideInLabel:i=!0,sides:a=kr,useSelect:s,values:u}){const d=function(){const e=[{name:0,slug:"0",size:0},...Xr("spacing.spacingSizes")||[]];return e.length>8&&e.unshift({name:(0,v.__)("Default"),slug:"default",size:void 0}),e}(),p=u||yr,f=1===a?.length,g=a?.includes("horizontal")&&a?.includes("vertical")&&2===a?.length,[h,b]=(0,c.useState)(function(e={},t){const{top:n,right:o,bottom:r,left:l}=e,i=[n,o,r,l].filter(Boolean),a=!(n!==r||l!==o||!n&&!l),s=!i.length&&function(e=[]){const t={top:0,right:0,bottom:0,left:0};return e.forEach((e=>t[e]+=1)),(t.top+t.bottom)%2==0&&(t.left+t.right)%2==0}(t);if(Mr(t)&&(a||s))return Sr.axial;if(1===i.length){let t;return Object.entries(e).some((([e,n])=>(t=e,void 0!==n))),t}return 1!==t?.length||i.length?Sr.custom:t[0]}(p,a)),_={...e,minimumCustomValue:n,onChange:e=>{const t={...u,...e};o(t)},onMouseOut:r,onMouseOver:l,sides:a,spacingSizes:d,type:t,useSelect:s,values:p},k=kr.includes(h)&&i?wr[h]:"",y=(0,v.sprintf)((0,v.__)("%1$s %2$s"),t,k).trim(),E=(0,v.sprintf)((0,v._x)("%s options","Button label to reveal side configuration options"),t);return(0,c.createElement)("fieldset",{className:"spacing-sizes-control"},(0,c.createElement)(m.__experimentalHStack,{className:"spacing-sizes-control__header"},(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend",className:"spacing-sizes-control__label"},y),!f&&!g&&(0,c.createElement)(Dv,{label:E,onChange:b,sides:a,value:h})),h===Sr.axial?(0,c.createElement)(Pv,{..._}):h===Sr.custom?(0,c.createElement)(Nv,{..._}):(0,c.createElement)(Lv,{side:h,..._,showSideInLabel:i}))}const zv={px:{max:1e3,step:1},"%":{max:100,step:1},vw:{max:100,step:1},vh:{max:100,step:1},em:{max:50,step:.1},rem:{max:50,step:.1}};function Vv({label:e=(0,v.__)("Height"),onChange:t,value:n}){var o,r;const l=parseFloat(n),i=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["%","px","em","rem","vh","vw"]}),a=(0,c.useMemo)((()=>(0,m.__experimentalParseQuantityAndUnitFromRawValue)(n)),[n])[1]||i[0]?.value||"px";return(0,c.createElement)("fieldset",{className:"block-editor-height-control"},(0,c.createElement)(m.BaseControl.VisualLabel,{as:"legend"},e),(0,c.createElement)(m.Flex,null,(0,c.createElement)(m.FlexItem,{isBlock:!0},(0,c.createElement)(m.__experimentalUnitControl,{value:n,units:i,onChange:t,onUnitChange:e=>{const[o,r]=(0,m.__experimentalParseQuantityAndUnitFromRawValue)(n);["em","rem"].includes(e)&&"px"===r?t((o/16).toFixed(2)+e):["em","rem"].includes(r)&&"px"===e?t(Math.round(16*o)+e):["vh","vw","%"].includes(e)&&o>100&&t(100+e)},min:0,size:"__unstable-large"})),(0,c.createElement)(m.FlexItem,{isBlock:!0},(0,c.createElement)(m.__experimentalSpacer,{marginX:2,marginBottom:0},(0,c.createElement)(m.RangeControl,{value:l,min:0,max:null!==(o=zv[a]?.max)&&void 0!==o?o:100,step:null!==(r=zv[a]?.step)&&void 0!==r?r:.1,withInputField:!1,onChange:e=>{t([e,a].join(""))},__nextHasNoMarginBottom:!0})))))}function Fv(e,t){const{orientation:n="horizontal"}=t;return"fill"===e?(0,v.__)("Stretch to fill available space."):"fixed"===e&&"horizontal"===n?(0,v.__)("Specify a fixed width."):"fixed"===e?(0,v.__)("Specify a fixed height."):(0,v.__)("Fit contents.")}function Hv({value:e={},onChange:t,parentLayout:n}){const{selfStretch:o,flexSize:r}=e;return(0,c.useEffect)((()=>{"fixed"!==o||r||t({...e,selfStretch:"fit"})}),[]),(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,size:"__unstable-large",label:Gv(n),value:o||"fit",help:Fv(o,n),onChange:n=>{const o="fixed"!==n?null:r;t({...e,selfStretch:n,flexSize:o})},isBlock:!0},(0,c.createElement)(m.__experimentalToggleGroupControlOption,{key:"fit",value:"fit",label:(0,v.__)("Fit")}),(0,c.createElement)(m.__experimentalToggleGroupControlOption,{key:"fill",value:"fill",label:(0,v.__)("Fill")}),(0,c.createElement)(m.__experimentalToggleGroupControlOption,{key:"fixed",value:"fixed",label:(0,v.__)("Fixed")})),"fixed"===o&&(0,c.createElement)(m.__experimentalUnitControl,{size:"__unstable-large",onChange:n=>{t({...e,flexSize:n})},value:r}))}function Gv(e){const{orientation:t="horizontal"}=e;return"horizontal"===t?(0,v.__)("Width"):(0,v.__)("Height")}const Uv=["horizontal","vertical"];function $v(e){const t=jv(e),n=Wv(e),o=Kv(e),r=qv(e),l=Zv(e),i=Yv(e),a=Xv(e);return"web"===c.Platform.OS&&(t||n||o||r||l||i||a)}function jv(e){return e?.layout?.contentSize}function Wv(e){return e?.layout?.wideSize}function Kv(e){return e?.spacing?.padding}function qv(e){return e?.spacing?.margin}function Zv(e){return e?.spacing?.blockGap}function Yv(e){return e?.dimensions?.minHeight}function Xv(e){var t;const{type:n="default",default:{type:o="default"}={},allowSizingOnChildren:r=!1}=null!==(t=e?.parentLayout)&&void 0!==t?t:{},l=("flex"===o||"flex"===n)&&r;return!!e?.layout&&l}function Qv(e,t){if(!t||!e)return e;const n={};return t.forEach((t=>{"vertical"===t&&(n.top=e.top,n.bottom=e.bottom),"horizontal"===t&&(n.left=e.left,n.right=e.right),n[t]=e?.[t]})),n}function Jv(e){return e&&"string"==typeof e?{top:e,right:e,bottom:e,left:e}:e}function e_({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,c.createElement)(m.__experimentalToolsPanel,{label:(0,v.__)("Dimensions"),resetAll:()=>{const o=e(n);t(o)},panelId:o},r)}const t_={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,childLayout:!0};function n_({as:e=e_,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=t_,onVisualize:a=(()=>{}),includeLayoutControls:s=!1}){var u,p,f,g,h,b,_,k;const{dimensions:y,spacing:E}=r,w=e=>e&&"object"==typeof e?Object.keys(e).reduce(((t,n)=>(t[n]=fl({settings:{dimensions:y,spacing:E}},"",e[n]),t)),{}):fl({settings:{dimensions:y,spacing:E}},"",e),S=function(e){var t,n;const{custom:o,theme:r,default:l}=e?.spacing?.spacingSizes||{};return(null!==(t=null!==(n=null!=o?o:r)&&void 0!==n?n:l)&&void 0!==t?t:[]).length>0}(r),C=(0,m.__experimentalUseCustomUnits)({availableUnits:r?.spacing?.units||["%","px","em","rem","vw"]}),x=jv(r)&&s,B=w(o?.layout?.contentSize),I=e=>{n(Al(t,["layout","contentSize"],e||void 0))},T=Wv(r)&&s,M=w(o?.layout?.wideSize),P=e=>{n(Al(t,["layout","wideSize"],e||void 0))},N=Kv(r),L=Jv(w(o?.spacing?.padding)),R=Array.isArray(r?.spacing?.padding)?r?.spacing?.padding:r?.spacing?.padding?.sides,A=R&&R.some((e=>Uv.includes(e))),D=e=>{const o=Qv(e,R);n(Al(t,["spacing","padding"],o))},O=()=>a("padding"),z=qv(r),V=Jv(w(o?.spacing?.margin)),F=Array.isArray(r?.spacing?.margin)?r?.spacing?.margin:r?.spacing?.margin?.sides,H=F&&F.some((e=>Uv.includes(e))),G=e=>{const o=Qv(e,F);n(Al(t,["spacing","margin"],o))},U=()=>a("margin"),$=Zv(r),j=w(o?.spacing?.blockGap),W=function(e){return e&&"string"==typeof e?{top:e}:e?{...e,right:e?.left,bottom:e?.top}:e}(j),K=Array.isArray(r?.spacing?.blockGap)?r?.spacing?.blockGap:r?.spacing?.blockGap?.sides,q=K&&K.some((e=>Uv.includes(e))),Z=e=>{n(Al(t,["spacing","blockGap"],e))},Y=e=>{e||Z(null),!q&&e?.hasOwnProperty("top")?Z(e.top):Z({top:e?.top,left:e?.left})},X=Yv(r),Q=w(o?.dimensions?.minHeight),J=e=>{n(Al(t,["dimensions","minHeight"],e))},ee=Xv(r),te=o?.layout,{orientation:ne="horizontal"}=null!==(u=r?.parentLayout)&&void 0!==u?u:{},oe="horizontal"===ne?(0,v.__)("Width"):(0,v.__)("Height"),re=e=>{n({...t,layout:{...t?.layout,...e}})},le=(0,c.useCallback)((e=>({...e,layout:Dl({...e?.layout,contentSize:void 0,wideSize:void 0,selfStretch:void 0,flexSize:void 0}),spacing:{...e?.spacing,padding:void 0,margin:void 0,blockGap:void 0},dimensions:{...e?.dimensions,minHeight:void 0}})),[]),ie=()=>a(!1);return(0,c.createElement)(e,{resetAllFilter:le,value:t,onChange:n,panelId:l},(x||T)&&(0,c.createElement)("span",{className:"span-columns"},(0,v.__)("Set the width of the main content area.")),x&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:(0,v.__)("Content size"),hasValue:()=>!!t?.layout?.contentSize,onDeselect:()=>I(void 0),isShownByDefault:null!==(p=i.contentSize)&&void 0!==p?p:t_.contentSize,panelId:l},(0,c.createElement)(m.__experimentalHStack,{alignment:"flex-end",justify:"flex-start"},(0,c.createElement)(m.__experimentalUnitControl,{label:(0,v.__)("Content"),labelPosition:"top",__unstableInputWidth:"80px",value:B||"",onChange:e=>{I(e)},units:C}),(0,c.createElement)(m.__experimentalView,null,(0,c.createElement)(Xl,{icon:Ql})))),T&&(0,c.createElement)(m.__experimentalToolsPanelItem,{className:"single-column",label:(0,v.__)("Wide size"),hasValue:()=>!!t?.layout?.wideSize,onDeselect:()=>P(void 0),isShownByDefault:null!==(f=i.wideSize)&&void 0!==f?f:t_.wideSize,panelId:l},(0,c.createElement)(m.__experimentalHStack,{alignment:"flex-end",justify:"flex-start"},(0,c.createElement)(m.__experimentalUnitControl,{label:(0,v.__)("Wide"),labelPosition:"top",__unstableInputWidth:"80px",value:M||"",onChange:e=>{P(e)},units:C}),(0,c.createElement)(m.__experimentalView,null,(0,c.createElement)(Xl,{icon:Jl})))),N&&(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.padding&&Object.keys(t?.spacing?.padding).length,label:(0,v.__)("Padding"),onDeselect:()=>D(void 0),isShownByDefault:null!==(g=i.padding)&&void 0!==g?g:t_.padding,className:d()({"tools-panel-item-spacing":S}),panelId:l},!S&&(0,c.createElement)(m.__experimentalBoxControl,{values:L,onChange:D,label:(0,v.__)("Padding"),sides:R,units:C,allowReset:!1,splitOnAxis:A,onMouseOver:O,onMouseOut:ie}),S&&(0,c.createElement)(Ov,{values:L,onChange:D,label:(0,v.__)("Padding"),sides:R,units:C,allowReset:!1,onMouseOver:O,onMouseOut:ie})),z&&(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.margin&&Object.keys(t?.spacing?.margin).length,label:(0,v.__)("Margin"),onDeselect:()=>G(void 0),isShownByDefault:null!==(h=i.margin)&&void 0!==h?h:t_.margin,className:d()({"tools-panel-item-spacing":S}),panelId:l},!S&&(0,c.createElement)(m.__experimentalBoxControl,{values:V,onChange:G,label:(0,v.__)("Margin"),sides:F,units:C,allowReset:!1,splitOnAxis:H,onMouseOver:U,onMouseOut:ie}),S&&(0,c.createElement)(Ov,{values:V,onChange:G,label:(0,v.__)("Margin"),sides:F,units:C,allowReset:!1,onMouseOver:U,onMouseOut:ie})),$&&(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>!!t?.spacing?.blockGap,label:(0,v.__)("Block spacing"),onDeselect:()=>Z(void 0),isShownByDefault:null!==(b=i.blockGap)&&void 0!==b?b:t_.blockGap,className:d()({"tools-panel-item-spacing":S}),panelId:l},!S&&(q?(0,c.createElement)(m.__experimentalBoxControl,{label:(0,v.__)("Block spacing"),min:0,onChange:Y,units:C,sides:K,values:W,allowReset:!1,splitOnAxis:q}):(0,c.createElement)(m.__experimentalUnitControl,{label:(0,v.__)("Block spacing"),__unstableInputWidth:"80px",min:0,onChange:Z,units:C,value:j})),S&&(0,c.createElement)(Ov,{label:(0,v.__)("Block spacing"),min:0,onChange:Y,showSideInLabel:!1,sides:q?K:["top"],values:W,allowReset:!1})),X&&(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>!!t?.dimensions?.minHeight,label:(0,v.__)("Min. height"),onDeselect:()=>{J(void 0)},isShownByDefault:null!==(_=i.minHeight)&&void 0!==_?_:t_.minHeight,panelId:l},(0,c.createElement)(Vv,{label:(0,v.__)("Min. height"),value:Q,onChange:J})),ee&&(0,c.createElement)(m.__experimentalVStack,{as:m.__experimentalToolsPanelItem,spacing:2,hasValue:()=>!!t?.layout,label:oe,onDeselect:()=>{re({selfStretch:void 0,flexSize:void 0})},isShownByDefault:null!==(k=i.childLayout)&&void 0!==k?k:t_.childLayout,panelId:l},(0,c.createElement)(Hv,{value:te,onChange:re,parentLayout:r?.parentLayout})))}var o_=window.wp.isShallowEqual,r_=n.n(o_);function l_(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function i_({clientId:e,attributes:t,forceShow:n}){const o=Id(e),[r,l]=(0,c.useState)(),i=t?.style?.spacing?.margin;(0,c.useEffect)((()=>{if(!o||null===o.ownerDocument.defaultView)return;const e=l_(o,"margin-top"),t=l_(o,"margin-right"),n=l_(o,"margin-bottom"),r=l_(o,"margin-left");l({borderTopWidth:e,borderRightWidth:t,borderBottomWidth:n,borderLeftWidth:r,top:e?`-${e}`:0,right:t?`-${t}`:0,bottom:n?`-${n}`:0,left:r?`-${r}`:0})}),[o,i]);const[a,s]=(0,c.useState)(!1),u=(0,c.useRef)(i),d=(0,c.useRef)();return(0,c.useEffect)((()=>(r_()(i,u.current)||n||(s(!0),u.current=i,d.current=setTimeout((()=>{s(!1)}),400)),()=>{s(!1),d.current&&window.clearTimeout(d.current)})),[i,n]),a||n?(0,c.createElement)(Cg,{clientId:e,__unstableCoverTarget:!0,__unstableRefreshSize:i,__unstablePopoverSlot:"block-toolbar",shift:!1},(0,c.createElement)("div",{className:"block-editor__padding-visualizer",style:r})):null}function a_(e,t){return e.ownerDocument.defaultView.getComputedStyle(e).getPropertyValue(t)}function s_({clientId:e,attributes:t,forceShow:n}){const o=Id(e),[r,l]=(0,c.useState)(),i=t?.style?.spacing?.padding;(0,c.useEffect)((()=>{o&&null!==o.ownerDocument.defaultView&&l({borderTopWidth:a_(o,"padding-top"),borderRightWidth:a_(o,"padding-right"),borderBottomWidth:a_(o,"padding-bottom"),borderLeftWidth:a_(o,"padding-left")})}),[o,i]);const[a,s]=(0,c.useState)(!1),u=(0,c.useRef)(i),d=(0,c.useRef)();return(0,c.useEffect)((()=>(r_()(i,u.current)||n||(s(!0),u.current=i,d.current=setTimeout((()=>{s(!1)}),400)),()=>{s(!1),d.current&&window.clearTimeout(d.current)})),[i,n]),a||n?(0,c.createElement)(Cg,{clientId:e,__unstableCoverTarget:!0,__unstableRefreshSize:i,__unstablePopoverSlot:"block-toolbar",shift:!1},(0,c.createElement)("div",{className:"block-editor__padding-visualizer",style:r})):null}const c_="dimensions",u_="spacing";function d_({children:e,resetAllFilter:t}){const n=(0,c.useCallback)((e=>{const n=e.style,o=t(n);return{...e,style:o}}),[t]);return(0,c.createElement)(qi,{group:"dimensions",resetAllFilter:n},e)}function p_(e){const{clientId:t,name:n,attributes:o,setAttributes:r,__unstableParentLayout:l}=e,i=Vl(n,l),s=$v(i),u=o.style,[d,p]=function(){const[e,t]=(0,c.useState)(!1),{hideBlockInterface:n,showBlockInterface:o}=Fo((0,f.useDispatch)(Go));return(0,c.useEffect)((()=>{e?n():o()}),[e,o,n]),[e,t]}();if(!s)return null;const m={...(0,a.getBlockSupport)(e.name,[c_,"__experimentalDefaultControls"]),...(0,a.getBlockSupport)(e.name,[u_,"__experimentalDefaultControls"])};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(n_,{as:d_,panelId:t,settings:i,value:u,onChange:e=>{r({style:Dl(e)})},defaultControls:m,onVisualize:p}),!!i?.spacing?.padding&&(0,c.createElement)(s_,{forceShow:"padding"===d,...e}),!!i?.spacing?.margin&&(0,c.createElement)(i_,{forceShow:"margin"===d,...e}))}function m_(){$()("wp.blockEditor.__experimentalUseCustomSides",{since:"6.3",version:"6.4"})}const f_=[...Ev,Th,hb,c_,u_],g_=e=>f_.some((t=>(0,a.hasBlockSupport)(e,t)));function h_(e={}){const t={};return(0,ei.getCSSRules)(e).forEach((e=>{t[e.key]=e.value})),t}const b_={[`${Th}.__experimentalSkipSerialization`]:["border"],[`${hb}.__experimentalSkipSerialization`]:[hb],[`${yv}.__experimentalSkipSerialization`]:[yv],[`${c_}.__experimentalSkipSerialization`]:[c_],[`${u_}.__experimentalSkipSerialization`]:[u_]},v_={...b_,[`${u_}`]:["spacing.blockGap"]},__={gradients:"gradient"};function k_(e,t,n=!1){if(!e)return e;let o=e;return n||(o=JSON.parse(JSON.stringify(e))),Array.isArray(t)||(t=[t]),t.forEach((e=>{if(Array.isArray(e)||(e=e.split(".")),e.length>1){const[t,...n]=e;k_(o[t],[n],!0)}else 1===e.length&&delete o[e[0]]})),o}function y_(e,t,n,o=v_){if(!g_(t))return e;let{style:r}=n;return Object.entries(o).forEach((([e,n])=>{const o=(0,a.getBlockSupport)(t,e);!0===o&&(r=k_(r,n)),Array.isArray(o)&&o.forEach((e=>{const t=__[e]||e;r=k_(r,[[...n,t]])}))})),e.style={...h_(r),...e.style},e}const E_=(0,p.createHigherOrderComponent)((e=>t=>{const n=qo(),o=xi();return(0,c.createElement)(c.Fragment,null,n&&"default"===o&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(xb,{...t}),(0,c.createElement)(xv,{...t}),(0,c.createElement)(Dh,{...t}),(0,c.createElement)(p_,{...t})),(0,c.createElement)(e,{...t}))}),"withToolbarControls"),w_=(0,p.createHigherOrderComponent)((e=>t=>{const n=`wp-elements-${(0,p.useInstanceId)(e)}`,o=zl(t.name,hb,"link"),r=(0,c.useMemo)((()=>{const e=[{styles:o?void 0:t.attributes.style?.elements?.link,selector:`.editor-styles-wrapper .${n} ${a.__EXPERIMENTAL_ELEMENTS.link}`},{styles:o?void 0:t.attributes.style?.elements?.link?.[":hover"],selector:`.editor-styles-wrapper .${n} ${a.__EXPERIMENTAL_ELEMENTS.link}:hover`}],r=[];for(const{styles:t,selector:n}of e)if(t){const e=(0,ei.compileCSS)(t,{selector:n});r.push(e)}return r.length>0?r.join(""):void 0}),[t.attributes.style?.elements,n,o]),l=(0,c.useContext)(Jg.__unstableElementContext);return(0,c.createElement)(c.Fragment,null,r&&l&&(0,c.createPortal)((0,c.createElement)("style",{dangerouslySetInnerHTML:{__html:r}}),l),(0,c.createElement)(e,{...t,className:t.attributes.style?.elements?d()(t.className,n):t.className}))}),"withElementsStyles");(0,s.addFilter)("blocks.registerBlockType","core/style/addAttribute",(function(e){return g_(e)?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/style/addSaveProps",y_),(0,s.addFilter)("blocks.registerBlockType","core/style/addEditProps",(function(e){if(!g_(e))return e;const t=e.getEditWrapperProps;return e.getEditWrapperProps=n=>{let o={};return t&&(o=t(n)),y_(o,e,n,b_)},e})),(0,s.addFilter)("editor.BlockEdit","core/style/with-block-controls",E_),(0,s.addFilter)("editor.BlockListBlock","core/editor/with-elements-styles",w_);(0,s.addFilter)("blocks.registerBlockType","core/settings/addAttribute",(function(e){return t=e,(0,a.hasBlockSupport)(t,"__experimentalSettings",!1)?(e?.attributes?.settings||(e.attributes={...e.attributes,settings:{type:"object"}}),e):e;var t}));var S_=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M12 4 4 19h16L12 4zm0 3.2 5.5 10.3H12V7.2z"}));var C_=function({colorPalette:e,duotonePalette:t,disableCustomColors:n,disableCustomDuotone:o,value:r,onChange:l}){let i;return i="unset"===r?(0,c.createElement)(m.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}):r?(0,c.createElement)(m.DuotoneSwatch,{values:r}):(0,c.createElement)(Xl,{icon:S_}),(0,c.createElement)(m.Dropdown,{popoverProps:{className:"block-editor-duotone-control__popover",headerTitle:(0,v.__)("Duotone")},renderToggle:({isOpen:e,onToggle:t})=>(0,c.createElement)(m.ToolbarButton,{showTooltip:!0,onClick:t,"aria-haspopup":"true","aria-expanded":e,onKeyDown:n=>{e||n.keyCode!==yd.DOWN||(n.preventDefault(),t())},label:(0,v.__)("Apply duotone filter"),icon:i}),renderContent:()=>(0,c.createElement)(m.MenuGroup,{label:(0,v.__)("Duotone")},(0,c.createElement)("div",{className:"block-editor-duotone-control__description"},(0,v.__)("Create a two-tone color effect without losing your original image.")),(0,c.createElement)(m.DuotonePicker,{colorPalette:e,duotonePalette:t,disableCustomColors:n,disableCustomDuotone:o,value:r,onChange:l}))})};function x_(e=[]){const t={r:[],g:[],b:[],a:[]};return e.forEach((e=>{const n=Hp(e).toRgb();t.r.push(n.r/255),t.g.push(n.g/255),t.b.push(n.b/255),t.a.push(n.a)})),t}function B_({selector:e,id:t}){const n=`\n${e} {\n\tfilter: url( #${t} );\n}\n`;return(0,c.createElement)("style",null,n)}function I_({selector:e}){const t=`\n${e} {\n\tfilter: none;\n}\n`;return(0,c.createElement)("style",null,t)}function T_({id:e,colors:t}){const n=x_(t);return(0,c.createElement)(m.SVG,{xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 0 0",width:"0",height:"0",focusable:"false",role:"none",style:{visibility:"hidden",position:"absolute",left:"-9999px",overflow:"hidden"}},(0,c.createElement)("defs",null,(0,c.createElement)("filter",{id:e},(0,c.createElement)("feColorMatrix",{colorInterpolationFilters:"sRGB",type:"matrix",values:" .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 .299 .587 .114 0 0 "}),(0,c.createElement)("feComponentTransfer",{colorInterpolationFilters:"sRGB"},(0,c.createElement)("feFuncR",{type:"table",tableValues:n.r.join(" ")}),(0,c.createElement)("feFuncG",{type:"table",tableValues:n.g.join(" ")}),(0,c.createElement)("feFuncB",{type:"table",tableValues:n.b.join(" ")}),(0,c.createElement)("feFuncA",{type:"table",tableValues:n.a.join(" ")})),(0,c.createElement)("feComposite",{in2:"SourceGraphic",operator:"in"}))))}function M_({preset:e}){return(0,c.createElement)(T_,{id:`wp-duotone-${e.slug}`,colors:e.colors})}function P_(e,t="root",n={}){if(!t)return null;const{fallback:o=!1}=n,{name:r,selectors:l,supports:i}=e,a=l&&Object.keys(l).length>0,s=Array.isArray(t)?t.join("."):t;let c=null;if(c=a&&l.root?l?.root:i?.__experimentalSelector?i.__experimentalSelector:".wp-block-"+r.replace("core/","").replace("/","-"),"root"===s)return c;const u=Array.isArray(t)?t:t.split(".");if(1===u.length){const e=o?c:null;if(a){return(0,Wr.get)(l,`${s}.root`,null)||(0,Wr.get)(l,s,null)||e}const t=(0,Wr.get)(i,`${s}.__experimentalSelector`,null);return t?gl(c,t):e}let d;return a&&(d=(0,Wr.get)(l,s,null)),d||(o?P_(e,u[0],n):null)}const N_=[];function L_(e,{presetSetting:t,defaultSetting:n}){const o=!e?.color?.[n],r=e?.color?.[t]?.custom||N_,l=e?.color?.[t]?.theme||N_,i=e?.color?.[t]?.default||N_;return(0,c.useMemo)((()=>[...r,...l,...o?N_:i]),[o,r,l,i])}function R_(e){return A_(e)}function A_(e){return e.color.customDuotone||e.color.defaultDuotone}function D_({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,c.createElement)(m.__experimentalToolsPanel,{label:(0,v._x)("Filters","Name for applying graphical effects"),resetAll:()=>{const o=e(n);t(o)},panelId:o},r)}const O_={duotone:!0},z_={placement:"left-start",offset:36,shift:!0,className:"block-editor-duotone-control__popover",headerTitle:(0,v.__)("Duotone")},V_=({indicator:e,label:t})=>(0,c.createElement)(m.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(m.__experimentalZStack,{isLayered:!1,offset:-8},(0,c.createElement)(m.Flex,{expanded:!1},"unset"!==e&&e?(0,c.createElement)(m.DuotoneSwatch,{values:e}):(0,c.createElement)(m.ColorIndicator,{className:"block-editor-duotone-control__unset-indicator"}))),(0,c.createElement)(m.FlexItem,{title:t},t));function F_({as:e=D_,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=O_}){const a=A_(r),s=L_(r,{presetSetting:"duotone",defaultSetting:"defaultDuotone"}),u=L_(r,{presetSetting:"palette",defaultSetting:"defaultPalette"}),p=(f=o?.filter?.duotone,fl({settings:r},"",f));var f;const g=e=>{const o=s.find((({colors:t})=>t===e)),r=o?`var:preset|duotone|${o.slug}`:e;n(Al(t,["filter","duotone"],r))},h=!r?.color?.custom,b=!r?.color?.customDuotone||0===u?.length&&h,_=(0,c.useCallback)((e=>({...e,filter:{...e.filter,duotone:void 0}})),[]);return(0,c.createElement)(e,{resetAllFilter:_,value:t,onChange:n,panelId:l},a&&(0,c.createElement)(m.__experimentalToolsPanelItem,{label:(0,v.__)("Duotone"),hasValue:()=>!!t?.filter?.duotone,onDeselect:()=>g(void 0),isShownByDefault:i.duotone,panelId:l},(0,c.createElement)(m.Dropdown,{popoverProps:z_,className:"block-editor-global-styles-filters-panel__dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:d()({"is-open":t}),"aria-expanded":t};return(0,c.createElement)(m.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,c.createElement)(m.Button,{...n},(0,c.createElement)(V_,{indicator:p,label:(0,v.__)("Duotone")})))},renderContent:()=>(0,c.createElement)(m.__experimentalDropdownContentWrapper,{paddingSize:"medium"},(0,c.createElement)(m.__experimentalVStack,null,(0,c.createElement)("p",null,(0,v.__)("Create a two-tone color effect without losing your original image.")),(0,c.createElement)(m.DuotonePicker,{colorPalette:u,duotonePalette:s,disableCustomColors:h,disableCustomDuotone:b,value:p,onChange:g})))})))}const H_=[];function G_({selector:e,id:t,colors:n}){return"unset"===n?(0,c.createElement)(I_,{selector:e}):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(T_,{id:t,colors:n}),(0,c.createElement)(B_,{id:t,selector:e}))}function U_({presetSetting:e,defaultSetting:t}){const n=!Xr(t),o=Xr(`${e}.custom`)||H_,r=Xr(`${e}.theme`)||H_,l=Xr(`${e}.default`)||H_;return(0,c.useMemo)((()=>[...o,...r,...n?H_:l]),[n,o,r,l])}function $_(e,t){if(!e)return;const n=t?.find((({slug:t})=>e===`var:preset|duotone|${t}`));return n?n.colors:void 0}function j_({attributes:e,setAttributes:t,name:n}){const o=e?.style,r=o?.color?.duotone,l=Vl(n),i=U_({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),a=U_({presetSetting:"color.palette",defaultSetting:"color.defaultPalette"}),s=!Xr("color.custom"),u=!Xr("color.customDuotone")||0===a?.length&&s;if(0===i?.length&&u)return null;const d=Array.isArray(r)?r:$_(r,i);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(qi,{group:"filter"},(0,c.createElement)(F_,{value:{filter:{duotone:d}},onChange:e=>{const n={...o,color:{...e?.filter}};t({style:n})},settings:l})),(0,c.createElement)(er,{group:"block",__experimentalShareWithChildBlocks:!0},(0,c.createElement)(C_,{duotonePalette:i,colorPalette:a,disableCustomDuotone:u,disableCustomColors:s,value:d,onChange:e=>{const n=function(e,t){if(!e||!Array.isArray(e))return;const n=t?.find((t=>t?.colors?.every(((t,n)=>t===e[n]))));return n?`var:preset|duotone|${n.slug}`:void 0}(e,i),r={...o,color:{...o?.color,duotone:null!=n?n:e}};t({style:r})},settings:l})))}Up([$p]);const W_=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,a.hasBlockSupport)(t.name,"filter.duotone"),o=xi();return(0,c.createElement)(c.Fragment,null,n&&"default"===o&&(0,c.createElement)(j_,{...t}),(0,c.createElement)(e,{...t}))}),"withDuotoneControls");function K_({id:e,selector:t,attribute:n}){const o=(0,c.useContext)(Jg.__unstableElementContext),r=U_({presetSetting:"color.duotone",defaultSetting:"color.defaultDuotone"}),l=Array.isArray(n),i=l?void 0:$_(n,r),a="string"==typeof n&&i;let s=null;a?s=i:("string"==typeof n&&!a||l)&&(s=n);const u=t.split(",").map((t=>`.editor-styles-wrapper .${e}${t.trim()}`)).join(", "),d=Array.isArray(s)||"unset"===s;return o&&d&&(0,c.createPortal)((0,c.createElement)(G_,{selector:u,id:e,colors:s}),o)}const q_=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,p.useInstanceId)(e),o=(0,c.useMemo)((()=>{const e=(0,a.getBlockType)(t.name);if(e){if(!(0,a.getBlockSupport)(e,"filter.duotone",!1))return null;const t=(0,a.getBlockSupport)(e,"color.__experimentalDuotone",!1);if(t){const n=P_(e);return"string"==typeof t?gl(n,t):n}return P_(e,"filter.duotone",{fallback:!0})}}),[t.name]),r=t?.attributes?.style?.color?.duotone,l=`wp-duotone-${n}`,i=o&&r,s=i?d()(t?.className,l):t?.className;return(0,c.createElement)(c.Fragment,null,i&&(0,c.createElement)(K_,{id:l,selector:o,attribute:r}),(0,c.createElement)(e,{...t,className:s}))}),"withDuotoneStyles");function Z_(e){return(0,f.useSelect)((t=>{if(!e)return null;const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=t(Go),{getBlockType:l,getActiveBlockVariation:i}=t(a.store),s=n(e),c=l(s);if(!c)return null;const u=o(e),d=i(s,u),p=(0,a.isReusableBlock)(c),m=(p?r(u.ref):void 0)||c.title,f=p||(0,a.isTemplatePart)(c),g=function(e){const t=e?.style?.position?.type;return"sticky"===t?(0,v.__)("Sticky"):"fixed"===t?(0,v.__)("Fixed"):null}(u),h={isSynced:f,title:m,icon:c.icon,description:c.description,anchor:u?.anchor,positionLabel:g,positionType:u?.style?.position?.type};return d?{isSynced:f,title:d.title||c.title,icon:d.icon||c.icon,description:d.description||c.description,anchor:u?.anchor,positionLabel:g,positionType:u?.style?.position?.type}:h}),[e])}(0,s.addFilter)("blocks.registerBlockType","core/editor/duotone/add-attributes",(function(e){return(0,a.hasBlockSupport)(e,"filter.duotone")?(e.attributes.style||Object.assign(e.attributes,{style:{type:"object"}}),e):e})),(0,s.addFilter)("editor.BlockEdit","core/editor/duotone/with-editor-controls",W_),(0,s.addFilter)("editor.BlockListBlock","core/editor/duotone/with-styles",q_);const{CustomSelectControl:Y_}=Fo(m.privateApis),X_="position",Q_="block-editor-hooks__position-selection__select-control__option",J_={key:"default",value:"",name:(0,v.__)("Default"),className:Q_},ek={key:"sticky",value:"sticky",name:(0,v._x)("Sticky","Name for the value of the CSS position property"),className:Q_,__experimentalHint:(0,v.__)("The block will stick to the top of the window instead of scrolling.")},tk={key:"fixed",value:"fixed",name:(0,v._x)("Fixed","Name for the value of the CSS position property"),className:Q_,__experimentalHint:(0,v.__)("The block will not move when the page is scrolled.")},nk=["top","right","bottom","left"],ok=["sticky","fixed"];function rk(e){const t=e.style?.position?.type;return"sticky"===t||"fixed"===t}function lk({name:e}={}){const t=Xr("position.fixed"),n=Xr("position.sticky"),o=!t&&!n;return r=e,!(0,a.getBlockSupport)(r,X_)||o;var r}function ik(e){const{attributes:{style:t={}},clientId:n,name:o,setAttributes:r}=e,l=function(e){const t=(0,a.getBlockSupport)(e,X_);return!(!0!==t&&!t?.fixed)}(o),i=function(e){const t=(0,a.getBlockSupport)(e,X_);return!(!0!==t&&!t?.sticky)}(o),s=t?.position?.type,{firstParentClientId:u}=(0,f.useSelect)((e=>{const{getBlockParents:t}=e(Go),o=t(n);return{firstParentClientId:o[o.length-1]}}),[n]),d=Z_(u),p=i&&s===ek.value&&d?(0,v.sprintf)((0,v.__)("The block will stick to the scrollable area of the parent %s block."),d.title):null,g=(0,c.useMemo)((()=>{const e=[J_];return(i||s===ek.value)&&e.push(ek),(l||s===tk.value)&&e.push(tk),e}),[l,i,s]),h=s&&g.find((e=>e.value===s))||J_;return c.Platform.select({web:g.length>1?(0,c.createElement)(qi,{group:"position"},(0,c.createElement)(m.BaseControl,{className:"block-editor-hooks__position-selection",__nextHasNoMarginBottom:!0,help:p},(0,c.createElement)(Y_,{__nextUnconstrainedWidth:!0,__next36pxDefaultSize:!0,className:"block-editor-hooks__position-selection__select-control",label:(0,v.__)("Position"),hideLabelFromVision:!0,describedBy:(0,v.sprintf)((0,v.__)("Currently selected position: %s"),h.name),options:g,value:h,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{(e=>{const n={...t,position:{...t?.position,type:e,top:"sticky"===e||"fixed"===e?"0px":void 0}};r({style:Dl(n)})})(e.value)},size:"__unstable-large"}))):null,native:null})}const ak=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n}=t;return[(0,a.hasBlockSupport)(n,X_)&&!lk(t)&&(0,c.createElement)(ik,{key:"position",...t}),(0,c.createElement)(e,{key:"edit",...t})]}),"withInspectorControls"),sk=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,r=(0,a.hasBlockSupport)(n,X_)&&!lk(t),l=(0,p.useInstanceId)(e),i=(0,c.useContext)(Jg.__unstableElementContext);let s;r&&(s=function({selector:e,style:t}){let n="";const{type:o}=t?.position||{};return ok.includes(o)?(n+=`${e} {`,n+=`position: ${o};`,nk.forEach((e=>{void 0!==t?.position?.[e]&&(n+=`${e}: ${t.position[e]};`)})),"sticky"!==o&&"fixed"!==o||(n+="z-index: 10"),n+="}",n):n}({selector:`.wp-container-${l}.wp-container-${l}`,style:o?.style})||"");const u=d()(t?.className,{[`wp-container-${l}`]:r&&!!s,[`is-position-${o?.style?.position?.type}`]:r&&!!s&&!!o?.style?.position?.type});return(0,c.createElement)(c.Fragment,null,r&&i&&!!s&&(0,c.createPortal)((0,c.createElement)("style",null,s),i),(0,c.createElement)(e,{...t,className:u}))}),"withPositionStyles");(0,s.addFilter)("editor.BlockListBlock","core/editor/position/with-position-styles",sk),(0,s.addFilter)("editor.BlockEdit","core/editor/position/with-inspector-controls",ak);const ck="layout";function uk(e){return(0,a.hasBlockSupport)(e,"layout")||(0,a.hasBlockSupport)(e,"__experimentalLayout")}function dk(e={},t=""){const n=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return t().__experimentalFeatures?.useRootPaddingAwareAlignments}),[]),{layout:o}=e,{default:r}=(0,a.getBlockSupport)(t,ck)||{},l=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||r||{},i=[];if(sr[l?.type||"default"]?.className){const e=sr[l?.type||"default"]?.className,n=`wp-block-${t.split("/").pop()}-${e}`;i.push(e,n)}return(l?.inherit||l?.contentSize||"constrained"===l?.type)&&n&&i.push("has-global-padding"),l?.orientation&&i.push(`is-${Ll(l.orientation)}`),l?.justifyContent&&i.push(`is-content-justification-${Ll(l.justifyContent)}`),l?.flexWrap&&"nowrap"===l.flexWrap&&i.push("is-nowrap"),i}function pk({setAttributes:e,attributes:t,name:n}){const{layout:o}=t,r=Xr("layout"),{themeSupportsLayout:l}=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return{themeSupportsLayout:t().supportsLayout}}),[]),i=xi(),s=(0,a.getBlockSupport)(n,ck,{}),{allowSwitching:u,allowEditing:d=!0,allowInheriting:p=!0,default:g}=s;if(!d)return null;const h=!(!p||!r||o?.type&&"default"!==o?.type&&"constrained"!==o?.type&&!o?.inherit),b=o||g||{},{inherit:_=!1,type:k="default",contentSize:y=null}=b;if(("default"===k||"constrained"===k)&&!l)return null;const E=ai(k),w=ai("constrained"),S=!b.type&&(y||_),C=!!_||!!y,x=t=>e({layout:t});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(qi,null,(0,c.createElement)(m.PanelBody,{title:(0,v.__)("Layout")},h&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-hooks__toggle-control",label:(0,v.__)("Inner blocks use content width"),checked:"constrained"===E?.name||C,onChange:()=>e({layout:{type:"constrained"===E?.name||C?"default":"constrained"}}),help:"constrained"===E?.name||C?(0,v.__)("Nested blocks use content width with options for full and wide widths."):(0,v.__)("Nested blocks will fill the width of this container. Toggle to constrain.")})),!_&&u&&(0,c.createElement)(mk,{type:k,onChange:t=>e({layout:{type:t}})}),E&&"default"!==E.name&&(0,c.createElement)(E.inspectorControls,{layout:b,onChange:x,layoutBlockSupport:s}),w&&S&&(0,c.createElement)(w.inspectorControls,{layout:b,onChange:x,layoutBlockSupport:s}))),!_&&"default"===i&&E&&(0,c.createElement)(E.toolBarControls,{layout:b,onChange:x,layoutBlockSupport:s}))}function mk({type:e,onChange:t}){return(0,c.createElement)(m.ButtonGroup,null,ii.map((({name:n,label:o})=>(0,c.createElement)(m.Button,{key:n,isPressed:e===n,onClick:()=>t(n)},o))))}const fk=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n}=t,o=uk(n),r=xi();return[o&&"default"===r&&(0,c.createElement)(pk,{key:"layout",...t}),(0,c.createElement)(e,{key:"edit",...t})]}),"withInspectorControls"),gk=(0,p.createHigherOrderComponent)((e=>t=>{const{name:n,attributes:o}=t,r=uk(n),l=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return!!t().disableLayoutStyles})),i=r&&!l,s=(0,p.useInstanceId)(e),u=(0,c.useContext)(Jg.__unstableElementContext),{layout:m}=o,{default:g}=(0,a.getBlockSupport)(n,ck)||{},h=m?.inherit||m?.contentSize||m?.wideSize?{...m,type:"constrained"}:m||g||{},b=r?dk(o,n):null,v=`.wp-container-${s}.wp-container-${s}`,_=null!==Xr("spacing.blockGap");let k;if(i){const e=ai(h?.type||"default");k=e?.getLayoutStyle?.({blockName:n,selector:v,layout:h,style:o?.style,hasBlockGapSupport:_})}const y=d()({[`wp-container-${s}`]:i&&!!k},b);return(0,c.createElement)(c.Fragment,null,i&&u&&!!k&&(0,c.createPortal)((0,c.createElement)(pi,{blockName:n,selector:v,css:k,layout:h,style:o?.style}),u),(0,c.createElement)(e,{...t,__unstableLayoutClassNames:y}))}),"withLayoutStyles"),hk=(0,p.createHigherOrderComponent)((e=>t=>{const{attributes:n}=t,{style:{layout:o={}}={}}=n,{selfStretch:r,flexSize:l}=o,i=r||l,a=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return!!t().disableLayoutStyles})),s=i&&!a,u=(0,c.useContext)(Jg.__unstableElementContext),m=(0,p.useInstanceId)(e),g=`.wp-container-content-${m}`;let h="";"fixed"===r&&l?h+=`${g} {\n\t\t\t\tflex-basis: ${l};\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}`:"fill"===r&&(h+=`${g} {\n\t\t\t\tflex-grow: 1;\n\t\t\t}`);const b=d()(t?.className,{[`wp-container-content-${m}`]:s&&!!h});return(0,c.createElement)(c.Fragment,null,s&&u&&!!h&&(0,c.createPortal)((0,c.createElement)("style",null,h),u),(0,c.createElement)(e,{...t,className:b}))}),"withChildLayoutStyles");function bk(e){return(0,f.useSelect)((t=>{const{getBlockRootClientId:n,getBlocksByClientId:o,canInsertBlockType:r,getSelectedBlockClientIds:l}=t(Go),{getGroupingBlockName:i,getBlockType:s}=t(a.store),c=e?.length?e:l(),u=i(),d=r(u,c?.length?n(c[0]):void 0),p=o(c),m=1===p.length,[f]=p,g=m&&(f.name===u||s(f.name)?.transforms?.ungroup)&&!!f.innerBlocks.length;return{clientIds:c,isGroupable:d&&p.length,isUngroupable:g,blocksSelection:p,groupingBlockName:u,onUngroup:g&&s(f.name)?.transforms?.ungroup}}),[e])}function vk({clientIds:e,isGroupable:t,isUngroupable:n,onUngroup:o,blocksSelection:r,groupingBlockName:l,onClose:i=(()=>{})}){const{replaceBlocks:s}=(0,f.useDispatch)(Go);return t||n?(0,c.createElement)(c.Fragment,null,t&&(0,c.createElement)(m.MenuItem,{onClick:()=>{(()=>{const t=(0,a.switchToBlockType)(r,l);t&&s(e,t)})(),i()}},(0,v._x)("Group","verb")),n&&(0,c.createElement)(m.MenuItem,{onClick:()=>{(()=>{let t=r[0].innerBlocks;t.length&&(o&&(t=o(r[0].attributes,r[0].innerBlocks)),s(e,t))})(),i()}},(0,v._x)("Ungroup","Ungrouping blocks from within a grouping block back into individual blocks within the Editor "))):null}function _k(e){return(0,f.useSelect)((t=>{const{canEditBlock:n,canMoveBlock:o,canRemoveBlock:r,canLockBlockType:l,getBlockName:i,getBlockRootClientId:a,getTemplateLock:s}=t(Go),c=a(e),u=n(e),d=o(e,c),p=r(e,c);return{canEdit:u,canMove:d,canRemove:p,canLock:l(i(e)),isContentLocked:"contentOnly"===s(e),isLocked:!u||!d||!p}}),[e])}(0,s.addFilter)("blocks.registerBlockType","core/layout/addAttribute",(function(e){var t;return"type"in(null!==(t=e.attributes?.layout)&&void 0!==t?t:{})||uk(e)&&(e.attributes={...e.attributes,layout:{type:"object"}}),e})),(0,s.addFilter)("editor.BlockListBlock","core/editor/layout/with-layout-styles",gk),(0,s.addFilter)("editor.BlockListBlock","core/editor/layout/with-child-layout-styles",hk),(0,s.addFilter)("editor.BlockEdit","core/editor/layout/with-inspector-controls",fk);var kk=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8h1.5c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1z"}));var yk=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zM9.8 7c0-1.2 1-2.2 2.2-2.2 1.2 0 2.2 1 2.2 2.2v3H9.8V7zm6.7 11.5h-9v-7h9v7z"}));var Ek=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"}));const wk=["core/block","core/navigation"];function Sk(e){return e.remove&&e.move?"all":!(!e.remove||e.move)&&"insert"}function Ck({clientId:e,onClose:t}){const[n,o]=(0,c.useState)({move:!1,remove:!1}),{canEdit:r,canMove:l,canRemove:i}=_k(e),{allowsEditLocking:s,templateLock:u,hasTemplateLock:d}=(0,f.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o}=t(Go),r=n(e),l=(0,a.getBlockType)(r);return{allowsEditLocking:wk.includes(r),templateLock:o(e)?.templateLock,hasTemplateLock:!!l?.attributes?.templateLock}}),[e]),[g,h]=(0,c.useState)(!!u),{updateBlockAttributes:b}=(0,f.useDispatch)(Go),_=Z_(e),k=(0,p.useInstanceId)(Ck,"block-editor-block-lock-modal__options-title");(0,c.useEffect)((()=>{o({move:!l,remove:!i,...s?{edit:!r}:{}})}),[r,l,i,s]);const y=Object.values(n).every(Boolean),E=Object.values(n).some(Boolean)&&!y;return(0,c.createElement)(m.Modal,{title:(0,v.sprintf)((0,v.__)("Lock %s"),_.title),overlayClassName:"block-editor-block-lock-modal",onRequestClose:t},(0,c.createElement)("p",null,(0,v.__)("Choose specific attributes to restrict or lock all available options.")),(0,c.createElement)("form",{onSubmit:o=>{o.preventDefault(),b([e],{lock:n,templateLock:g?Sk(n):void 0}),t()}},(0,c.createElement)("div",{role:"group","aria-labelledby":k,className:"block-editor-block-lock-modal__options"},(0,c.createElement)(m.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__options-title",label:(0,c.createElement)("span",{id:k},(0,v.__)("Lock all")),checked:y,indeterminate:E,onChange:e=>o({move:e,remove:e,...s?{edit:e}:{}})}),(0,c.createElement)("ul",{className:"block-editor-block-lock-modal__checklist"},s&&(0,c.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,c.createElement)(m.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Restrict editing"),checked:!!n.edit,onChange:e=>o((t=>({...t,edit:e})))}),(0,c.createElement)(m.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.edit?Ek:kk})),(0,c.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,c.createElement)(m.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Disable movement"),checked:n.move,onChange:e=>o((t=>({...t,move:e})))}),(0,c.createElement)(m.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.move?Ek:kk})),(0,c.createElement)("li",{className:"block-editor-block-lock-modal__checklist-item"},(0,c.createElement)(m.CheckboxControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Prevent removal"),checked:n.remove,onChange:e=>o((t=>({...t,remove:e})))}),(0,c.createElement)(m.Icon,{className:"block-editor-block-lock-modal__lock-icon",icon:n.remove?Ek:kk}))),d&&(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-block-lock-modal__template-lock",label:(0,v.__)("Apply to all blocks inside"),checked:g,disabled:n.move&&!n.remove,onChange:()=>h(!g)})),(0,c.createElement)(m.Flex,{className:"block-editor-block-lock-modal__actions",justify:"flex-end",expanded:!1},(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(m.Button,{variant:"tertiary",onClick:t},(0,v.__)("Cancel"))),(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(m.Button,{variant:"primary",type:"submit"},(0,v.__)("Apply"))))))}function xk({clientId:e}){const{canLock:t,isLocked:n}=_k(e),[o,r]=(0,c.useReducer)((e=>!e),!1);if(!t)return null;const l=n?(0,v.__)("Unlock"):(0,v.__)("Lock");return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuItem,{icon:n?kk:yk,onClick:r},l),o&&(0,c.createElement)(Ck,{clientId:e,onClose:r}))}const Bk=()=>{};var Ik=(0,p.compose)([(0,f.withSelect)(((e,{clientId:t})=>{const{getBlock:n,getBlockMode:o,getSettings:r}=e(Go),l=n(t),i=r().codeEditingEnabled;return{mode:o(t),blockType:l?(0,a.getBlockType)(l.name):null,isCodeEditingEnabled:i}})),(0,f.withDispatch)(((e,{onToggle:t=Bk,clientId:n})=>({onToggleMode(){e(Go).toggleBlockMode(n),t()}})))])((function({blockType:e,mode:t,onToggleMode:n,small:o=!1,isCodeEditingEnabled:r=!0}){if(!e||!(0,a.hasBlockSupport)(e,"html",!0)||!r)return null;const l="visual"===t?(0,v.__)("Edit as HTML"):(0,v.__)("Edit visually");return(0,c.createElement)(m.MenuItem,{onClick:n},!o&&l)}));const{Fill:Tk,Slot:Mk}=(0,m.createSlotFill)("BlockSettingsMenuControls");function Pk({...e}){return(0,c.createElement)(m.__experimentalStyleProvider,{document:document},(0,c.createElement)(Tk,{...e}))}Pk.Slot=({fillProps:e,clientIds:t=null,__unstableDisplayLocation:n})=>{const{selectedBlocks:o,selectedClientIds:r,canRemove:l}=(0,f.useSelect)((e=>{const{getBlockNamesByClientId:n,getSelectedBlockClientIds:o,canRemoveBlocks:r}=e(Go),l=null!==t?t:o();return{selectedBlocks:n(l),selectedClientIds:l,canRemove:r(l)}}),[t]),{canLock:i}=_k(r[0]),a=1===r.length&&i,s=bk(r),{isGroupable:u,isUngroupable:d}=s,g=(u||d)&&l;return(0,c.createElement)(Mk,{fillProps:{...e,__unstableDisplayLocation:n,selectedBlocks:o,selectedClientIds:r}},(t=>!t?.length>0&&!g&&!a?null:(0,c.createElement)(m.MenuGroup,null,g&&(0,c.createElement)(vk,{...s,onClose:e?.onClose}),a&&(0,c.createElement)(xk,{clientId:r[0]}),t,e?.canMove&&!e?.onlyBlock&&(0,c.createElement)(m.MenuItem,{onClick:(0,p.pipe)(e?.onClose,e?.onMoveTo)},(0,v.__)("Move to")),1===e?.count&&(0,c.createElement)(Ik,{clientId:e?.firstBlockClientId,onToggle:e?.onClose}))))};var Nk=Pk;function Lk({clientId:e,stopEditingAsBlock:t}){const n=(0,f.useSelect)((t=>{const{isBlockSelected:n,hasSelectedInnerBlock:o}=t(Go);return n(e)||o(e,!0)}),[e]);return(0,c.useEffect)((()=>{n||t()}),[n,t]),null}const Rk=(0,p.createHigherOrderComponent)((e=>t=>{const{getBlockListSettings:n,getSettings:o}=(0,f.useSelect)(Go),r=(0,c.useRef)(),{templateLock:l,isLockedByParent:i,isEditingAsBlocks:a}=(0,f.useSelect)((e=>{const{__unstableGetContentLockingParent:n,getTemplateLock:o,__unstableGetTemporarilyEditingAsBlocks:r}=e(Go);return{templateLock:o(t.clientId),isLockedByParent:!!n(t.clientId),isEditingAsBlocks:r()===t.clientId}}),[t.clientId]),{updateSettings:s,updateBlockListSettings:u,__unstableSetTemporarilyEditingAsBlocks:d}=(0,f.useDispatch)(Go),p=!i&&"contentOnly"===l,{__unstableMarkNextChangeAsNotPersistent:g,updateBlockAttributes:h}=(0,f.useDispatch)(Go),b=(0,c.useCallback)((()=>{g(),h(t.clientId,{templateLock:"contentOnly"}),u(t.clientId,{...n(t.clientId),templateLock:"contentOnly"}),s({focusMode:r.current}),d()}),[t.clientId,s,u,n,g,h,d]);if(!p&&!a)return(0,c.createElement)(e,{key:"edit",...t});const _=a&&!p,k=!a&&p&&t.isSelected;return(0,c.createElement)(c.Fragment,null,_&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Lk,{clientId:t.clientId,stopEditingAsBlock:b}),(0,c.createElement)(er,{group:"other"},(0,c.createElement)(m.ToolbarButton,{onClick:()=>{b()}},(0,v.__)("Done")))),k&&(0,c.createElement)(Nk,null,(({onClose:e})=>(0,c.createElement)(m.MenuItem,{onClick:()=>{g(),h(t.clientId,{templateLock:void 0}),u(t.clientId,{...n(t.clientId),templateLock:!1}),r.current=o().focusMode,s({focusMode:!0}),d(t.clientId),e()}},(0,v.__)("Modify")))),(0,c.createElement)(e,{key:"edit",...t}))}),"withToolbarControls");(0,s.addFilter)("editor.BlockEdit","core/content-lock-ui/with-block-controls",Rk);const Ak="metadata";function Dk(e,t=""){if(!e.name.startsWith("core/"))return!1;const n=(0,a.getBlockSupport)(e,"__experimentalMetadata");return!(!0!==n&&!n?.[t])}function Ok({blockName:e,blockBehaviors:t,onChangeBehavior:n,onChangeAnimation:o,disabled:r=!1}){const{settings:l,themeBehaviors:i}=(0,f.useSelect)((t=>{const{getBehaviors:n,getSettings:o}=t(Go);return{settings:o()?.__experimentalFeatures?.blocks?.[e]?.behaviors,themeBehaviors:n()?.blocks?.[e]}}),[e]),s={default:{value:"default",label:(0,v.__)("Default")},noBehaviors:{value:"",label:(0,v.__)("No behaviors")}},u=Object.entries(l).filter((([t,n])=>(0,a.hasBlockSupport)(e,`behaviors.${t}`)&&n)).map((([e])=>({value:e,label:`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()}`}))),d=[...Object.values(s),...u];if(0===u.length)return null;const p={...i,...t||{}},g=r?(0,v.__)("The lightbox behavior is disabled for linked images."):"";return(0,c.createElement)(qi,{group:"advanced"},(0,c.createElement)("div",null,(0,c.createElement)(m.SelectControl,{label:(0,v.__)("Behaviors"),value:void 0===t?"default":p?.lightbox.enabled?"lightbox":"",options:d,onChange:n,hideCancelButton:!0,help:g,size:"__unstable-large",disabled:r}),p?.lightbox.enabled&&(0,c.createElement)(m.SelectControl,{label:(0,v.__)("Animation"),value:p?.lightbox.animation?p?.lightbox.animation:"",options:[{value:"zoom",label:(0,v.__)("Zoom")},{value:"fade",label:"Fade"}],onChange:o,hideCancelButton:!1,size:"__unstable-large",disabled:r})))}(0,s.addFilter)("blocks.registerBlockType","core/metadata/addMetaAttribute",(function(e){return e?.attributes?.[Ak]?.type||Dk(e,"name")&&(e.attributes={...e.attributes,[Ak]:{type:"object"}}),e})),(0,s.addFilter)("blocks.getSaveContent.extraProps","core/metadata/save-props",(function(e,t,n){return Dk(t)&&(e[Ak]=n[Ak]),e})),(0,s.addFilter)("blocks.registerBlockType","core/metadata/addLabelCallback",(function(e){return e.__experimentalLabel||Dk(e,"name")&&(e.__experimentalLabel=(e,{context:t})=>{const{metadata:n}=e;if("list-view"===t&&n?.name)return n.name}),e}));const zk=(0,p.createHigherOrderComponent)((e=>t=>{const n=(0,c.createElement)(e,{key:"edit",...t});if(!(0,a.hasBlockSupport)(t.name,"behaviors"))return n;const o=void 0!==t.attributes?.linkDestination&&"none"!==t.attributes?.linkDestination;return(0,c.createElement)(c.Fragment,null,n,(0,c.createElement)(Ok,{blockName:t.name,blockBehaviors:t.attributes.behaviors,onChangeBehavior:e=>{"default"===e?t.setAttributes({behaviors:void 0}):t.setAttributes({behaviors:{lightbox:{enabled:"lightbox"===e,animation:"lightbox"===e?"zoom":""}}})},onChangeAnimation:e=>{t.setAttributes({behaviors:{lightbox:{enabled:t.attributes.behaviors.lightbox.enabled,animation:e}}})},disabled:o}))}),"withBehaviors");function Vk(e){const t=e.style?.border||{};return{className:Vh(e)||void 0,style:h_({border:t})}}function Fk(e){const{colors:t}=lh(),n=Vk(e),{borderColor:o}=e;if(o){const e=Ph({colors:t,namedColor:o});n.style.borderColor=e.color}return n}function Hk(e){const{backgroundColor:t,textColor:n,gradient:o,style:r}=e,l=rh("background-color",t),i=rh("color",n),a=Hh(o),s=a||r?.color?.gradient;return{className:d()(i,a,{[l]:!s&&!!l,"has-text-color":n||r?.color?.text,"has-background":t||r?.color?.background||o||r?.color?.gradient,"has-link-color":r?.elements?.link?.color})||void 0,style:h_({color:r?.color||{}})}}window?.__experimentalInteractivityAPI&&(0,s.addFilter)("editor.BlockEdit","core/behaviors/with-inspector-control",zk);const Gk={};function Uk(e){const{backgroundColor:t,textColor:n,gradient:o}=e,r=Xr("color.palette.custom"),l=Xr("color.palette.theme"),i=Xr("color.palette.default"),a=Xr("color.gradients")||Gk,s=(0,c.useMemo)((()=>[...r||[],...l||[],...i||[]]),[r,l,i]),u=(0,c.useMemo)((()=>[...a?.custom||[],...a?.theme||[],...a?.default||[]]),[a]),d=Hk(e);if(t){const e=nh(s,t);d.style.backgroundColor=e.color}if(o&&(d.style.background=Gh(u,o)),n){const e=nh(s,n);d.style.color=e.color}return d}function $k(e){const{style:t}=e;return{style:h_({spacing:t?.spacing||{}})}}function jk(e,t){let n=e?.style?.typography||{};const o=cl(t);n={...n,fontSize:al({size:e?.style?.typography?.fontSize},o)};const r=h_({typography:n}),l=e?.fontFamily?`has-${Ll(e.fontFamily)}-font-family`:"";return{className:d()(l,gv(e?.fontSize)),style:r}}function Wk(e){const[t,n]=(0,c.useState)(e);return(0,c.useEffect)((()=>{e&&n(e)}),[e]),t}const Kk=([e,...t])=>e.toUpperCase()+t.join(""),qk=e=>(0,p.createHigherOrderComponent)((t=>n=>(0,c.createElement)(t,{...n,colors:e})),"withCustomColorPalette"),Zk=()=>(0,p.createHigherOrderComponent)((e=>t=>{const n=Xr("color.palette.custom"),o=Xr("color.palette.theme"),r=Xr("color.palette.default"),l=(0,c.useMemo)((()=>[...n||[],...o||[],...r||[]]),[n,o,r]);return(0,c.createElement)(e,{...t,colors:l})}),"withEditorColorPalette");function Yk(e,t){const n=e.reduce(((e,t)=>({...e,..."string"==typeof t?{[t]:Ll(t)}:t})),{});return(0,p.compose)([t,e=>class extends c.Component{constructor(e){super(e),this.setters=this.createSetters(),this.colorUtils={getMostReadableColor:this.getMostReadableColor.bind(this)},this.state={}}getMostReadableColor(e){const{colors:t}=this.props;return function(e,t){const n=Hp(t),o=({color:e})=>n.contrast(e),r=Math.max(...e.map(o));return e.find((e=>o(e)===r)).color}(t,e)}createSetters(){return Object.keys(n).reduce(((e,t)=>{const n=Kk(t),o=`custom${n}`;return e[`set${n}`]=this.createSetColor(t,o),e}),{})}createSetColor(e,t){return n=>{const o=oh(this.props.colors,n);this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,colors:t},o){return Object.entries(n).reduce(((n,[r,l])=>{const i=nh(t,e[r],e[`custom${Kk(r)}`]),a=o[r],s=a?.color;return s===i.color&&a?n[r]=a:n[r]={...i,class:rh(l,i.slug)},n}),{})}render(){return(0,c.createElement)(e,{...this.props,colors:void 0,...this.state,...this.setters,colorUtils:this.colorUtils})}}])}function Xk(e){return(...t)=>{const n=qk(e);return(0,p.createHigherOrderComponent)(Yk(t,n),"withCustomColors")}}function Qk(...e){const t=Zk();return(0,p.createHigherOrderComponent)(Yk(e,t),"withColors")}var Jk=function(e){const t=Xr("typography.fontSizes"),n=!Xr("typography.customFontSize");return(0,c.createElement)(m.FontSizePicker,{...e,fontSizes:t,disableCustomFontSizes:n})};const ey=[],ty=([e,...t])=>e.toUpperCase()+t.join("");var ny=(...e)=>{const t=e.reduce(((e,t)=>(e[t]=`custom${ty(t)}`,e)),{});return(0,p.createHigherOrderComponent)((0,p.compose)([(0,p.createHigherOrderComponent)((e=>t=>{const n=Xr("typography.fontSizes")||ey;return(0,c.createElement)(e,{...t,fontSizes:n})}),"withFontSizes"),e=>class extends c.Component{constructor(e){super(e),this.setters=this.createSetters(),this.state={}}createSetters(){return Object.entries(t).reduce(((e,[t,n])=>(e[`set${ty(t)}`]=this.createSetFontSize(t,n),e)),{})}createSetFontSize(e,t){return n=>{const o=this.props.fontSizes?.find((({size:e})=>e===Number(n)));this.props.setAttributes({[e]:o&&o.slug?o.slug:void 0,[t]:o&&o.slug?void 0:n})}}static getDerivedStateFromProps({attributes:e,fontSizes:n},o){const r=(t,n)=>!o[n]||(e[n]?e[n]!==o[n].slug:o[n].size!==e[t]);if(!Object.values(t).some(r))return null;const l=Object.entries(t).filter((([e,t])=>r(t,e))).reduce(((t,[o,r])=>{const l=e[o],i=mv(n,l,e[r]);return t[o]={...i,class:gv(l)},t}),{});return{...o,...l}}render(){return(0,c.createElement)(e,{...this.props,fontSizes:void 0,...this.state,...this.setters})}}]),"withFontSizes")};var oy=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"}));var ry=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"}));var ly=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"}));const iy=[{icon:oy,title:(0,v.__)("Align text left"),align:"left"},{icon:ry,title:(0,v.__)("Align text center"),align:"center"},{icon:ly,title:(0,v.__)("Align text right"),align:"right"}],ay={placement:"bottom-start"};var sy=function({value:e,onChange:t,alignmentControls:n=iy,label:o=(0,v.__)("Align text"),describedBy:r=(0,v.__)("Change text alignment"),isCollapsed:l=!0,isToolbar:i}){function a(n){return()=>t(e===n?void 0:n)}const s=n.find((t=>t.align===e)),u=i?m.ToolbarGroup:m.ToolbarDropdownMenu,d=i?{isCollapsed:l}:{toggleProps:{describedBy:r},popoverProps:ay};return(0,c.createElement)(u,{icon:s?s.icon:(0,v.isRTL)()?ly:oy,label:o,controls:n.map((t=>{const{align:n}=t,o=e===n;return{...t,isActive:o,role:l?"menuitemradio":void 0,onClick:a(n)}})),...d})};const cy=e=>(0,c.createElement)(sy,{...e,isToolbar:!1}),uy=e=>(0,c.createElement)(sy,{...e,isToolbar:!0}),dy=()=>{};var py={name:"blocks",className:"block-editor-autocompleters__block",triggerPrefix:"/",useItems(e){const{rootClientId:t,selectedBlockName:n,prioritizedBlocks:o}=(0,f.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n,getBlockListSettings:o,getBlockRootClientId:r}=e(Go),l=t(),i=r(l);return{selectedBlockName:l?n(l):null,rootClientId:i,prioritizedBlocks:o(i)?.prioritizedInserterBlocks}}),[]),[r,l,i]=Am(t,dy),a=(0,c.useMemo)((()=>(e.trim()?cf(r,l,i,e):tg(K(r,"frecency","desc"),o)).filter((e=>e.name!==n)).slice(0,9)),[e,n,r,l,i,o]),s=(0,c.useMemo)((()=>a.map((e=>{const{title:t,icon:n,isDisabled:o}=e;return{key:`block-${e.id}`,value:e,label:(0,c.createElement)(c.Fragment,null,(0,c.createElement)($d,{key:"icon",icon:n,showColors:!0}),t),isDisabled:o}}))),[a]);return[s]},allowContext(e,t){return!(/\S/.test(e)||/\S/.test(t))},getOptionCompletion(e){const{name:t,initialAttributes:n,innerBlocks:o}=e;return{action:"replace",value:(0,a.createBlock)(t,n,(0,a.createBlocksFromInnerBlocksTemplate)(o))}}},my=window.wp.apiFetch,fy=n.n(my);var gy=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var hy=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));var by={name:"links",className:"block-editor-autocompleters__link",triggerPrefix:"[[",options:async e=>{let t=await fy()({path:(0,Sf.addQueryArgs)("/wp/v2/search",{per_page:10,search:e,type:"post",order_by:"menu_order"})});return t=t.filter((e=>""!==e.title)),t},getOptionKeywords(e){return[...e.title.split(/\s+/)]},getOptionLabel(e){return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Xl,{key:"icon",icon:"page"===e.subtype?gy:hy}),e.title)},getOptionCompletion(e){return(0,c.createElement)("a",{href:e.url},e.title)}};const vy=[];function _y({completers:e=vy}){const{name:t}=Ko();return(0,c.useMemo)((()=>{let n=[...e,by];return(t===(0,a.getDefaultBlockName)()||(0,a.getBlockSupport)(t,"__experimentalSlashInserter",!1))&&(n=[...n,py]),(0,s.hasFilter)("editor.Autocomplete.completers")&&(n===e&&(n=n.map((e=>({...e})))),n=(0,s.applyFilters)("editor.Autocomplete.completers",n,t)),n}),[e,t])}var ky=function(e){return(0,c.createElement)(m.Autocomplete,{...e,completers:_y(e)})};var yy=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M4.2 9h1.5V5.8H9V4.2H4.2V9zm14 9.2H15v1.5h4.8V15h-1.5v3.2zM15 4.2v1.5h3.2V9h1.5V4.2H15zM5.8 15H4.2v4.8H9v-1.5H5.8V15z"}));var Ey=function({isActive:e,label:t=(0,v.__)("Toggle full height"),onToggle:n,isDisabled:o}){return(0,c.createElement)(m.ToolbarButton,{isActive:e,icon:yy,label:t,onClick:()=>n(!e),disabled:o})};const wy=()=>{};var Sy=function(e){const{label:t=(0,v.__)("Change matrix alignment"),onChange:n=wy,value:o="center",isDisabled:r}=e,l=(0,c.createElement)(m.__experimentalAlignmentMatrixControl.Icon,{value:o});return(0,c.createElement)(m.Dropdown,{popoverProps:{placement:"bottom-start"},renderToggle:({onToggle:e,isOpen:n})=>(0,c.createElement)(m.ToolbarButton,{onClick:e,"aria-haspopup":"true","aria-expanded":n,onKeyDown:t=>{n||t.keyCode!==yd.DOWN||(t.preventDefault(),e())},label:t,icon:l,showTooltip:!0,disabled:r}),renderContent:()=>(0,c.createElement)(m.__experimentalAlignmentMatrixControl,{hasFocusBorder:!1,onChange:n,value:o})})};var Cy=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));function xy({clientId:e,maximumLength:t,context:n}){const{attributes:o,name:r,reusableBlockTitle:l}=(0,f.useSelect)((t=>{if(!e)return{};const{getBlockName:n,getBlockAttributes:o,__experimentalGetReusableBlockTitle:r}=t(Go),l=n(e);if(!l)return{};const i=(0,a.isReusableBlock)((0,a.getBlockType)(l));return{attributes:o(e),name:l,reusableBlockTitle:i&&r(o(e).ref)}}),[e]),i=Z_(e);if(!r||!i)return null;const s=(0,a.getBlockType)(r),c=s?(0,a.__experimentalGetBlockLabel)(s,o,n):null,u=l||c,d=u&&u!==s.title?u:i.title;if(t&&t>0&&d.length>t){const e="...";return d.slice(0,t-e.length)+e}return d}function By({clientId:e,maximumLength:t,context:n}){return xy({clientId:e,maximumLength:t,context:n})}var Iy=function({rootLabelText:e}){const{selectBlock:t,clearSelectedBlock:n}=(0,f.useDispatch)(Go),{clientId:o,parents:r,hasSelection:l}=(0,f.useSelect)((e=>{const{getSelectionStart:t,getSelectedBlockClientId:n,getEnabledBlockParents:o}=Fo(e(Go)),r=n();return{parents:o(r),clientId:r,hasSelection:!!t().clientId}}),[]),i=e||(0,v.__)("Document");return(0,c.createElement)("ul",{className:"block-editor-block-breadcrumb",role:"list","aria-label":(0,v.__)("Block breadcrumb")},(0,c.createElement)("li",{className:l?void 0:"block-editor-block-breadcrumb__current","aria-current":l?void 0:"true"},l&&(0,c.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:n},i),!l&&i,!!o&&(0,c.createElement)(Xl,{icon:Cy,className:"block-editor-block-breadcrumb__separator"})),r.map((e=>(0,c.createElement)("li",{key:e},(0,c.createElement)(m.Button,{className:"block-editor-block-breadcrumb__button",variant:"tertiary",onClick:()=>t(e)},(0,c.createElement)(By,{clientId:e,maximumLength:35})),(0,c.createElement)(Xl,{icon:Cy,className:"block-editor-block-breadcrumb__separator"})))),!!o&&(0,c.createElement)("li",{className:"block-editor-block-breadcrumb__current","aria-current":"true"},(0,c.createElement)(By,{clientId:o,maximumLength:35})))};const Ty=()=>(0,c.createElement)(m.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 20 20"},(0,c.createElement)(m.Path,{d:"M7.434 5l3.18 9.16H8.538l-.692-2.184H4.628l-.705 2.184H2L5.18 5h2.254zm-1.13 1.904h-.115l-1.148 3.593H7.44L6.304 6.904zM14.348 7.006c1.853 0 2.9.876 2.9 2.374v4.78h-1.79v-.914h-.114c-.362.64-1.123 1.022-2.031 1.022-1.346 0-2.292-.826-2.292-2.108 0-1.27.972-2.006 2.71-2.107l1.696-.102V9.38c0-.584-.42-.914-1.18-.914-.667 0-1.112.228-1.264.647h-1.701c.12-1.295 1.307-2.107 3.066-2.107zm1.079 4.1l-1.416.09c-.793.056-1.18.342-1.18.844 0 .52.45.837 1.091.837.857 0 1.505-.545 1.505-1.256v-.515z"})),My=({style:e,className:t})=>(0,c.createElement)("div",{className:"block-library-colors-selector__icon-container"},(0,c.createElement)("div",{className:`${t} block-library-colors-selector__state-selection`,style:e},(0,c.createElement)(Ty,null))),Py=({TextColor:e,BackgroundColor:t})=>({onToggle:n,isOpen:o})=>(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(m.ToolbarButton,{className:"components-toolbar__control block-library-colors-selector__toggle",label:(0,v.__)("Open Colors Selector"),onClick:n,onKeyDown:e=>{o||e.keyCode!==yd.DOWN||(e.preventDefault(),n())},icon:(0,c.createElement)(t,null,(0,c.createElement)(e,null,(0,c.createElement)(My,null)))}));var Ny=({children:e,...t})=>($()("wp.blockEditor.BlockColorsStyleSelector",{alternative:"block supports API",since:"6.1",version:"6.3"}),(0,c.createElement)(m.Dropdown,{popoverProps:{placement:"bottom-start"},className:"block-library-colors-selector",contentClassName:"block-library-colors-selector__popover",renderToggle:Py(t),renderContent:()=>e}));var Ly=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));const Ry=(0,c.createContext)({}),Ay=()=>(0,c.useContext)(Ry);function Dy({children:e,...t}){const n=(0,c.useRef)();return(0,c.useEffect)((()=>{n.current&&(n.current.textContent=n.current.textContent)}),[e]),(0,c.createElement)("div",{hidden:!0,...t,ref:n},e)}const Oy=(0,c.forwardRef)((({nestingLevel:e,blockCount:t,clientId:n,...o},r)=>{const{insertedBlock:l,setInsertedBlock:i}=Ay(),a=(0,p.useInstanceId)(Oy),{hideInserter:s}=(0,f.useSelect)((e=>{const{getTemplateLock:t,__unstableGetEditorMode:o}=e(Go);return{hideInserter:!!t(n)||"zoom-out"===o()}}),[n]),u=xy({clientId:n,context:"list-view"}),d=xy({clientId:l?.clientId,context:"list-view"});if((0,c.useEffect)((()=>{d?.length&&(0,Cn.speak)((0,v.sprintf)((0,v.__)("%s block inserted"),d),"assertive")}),[d]),s)return null;const m=`list-view-appender__${a}`,g=(0,v.sprintf)((0,v.__)("Append to %1$s block at position %2$d, Level %3$d"),u,t+1,e);return(0,c.createElement)("div",{className:"list-view-appender"},(0,c.createElement)(fg,{ref:r,rootClientId:n,position:"bottom right",isAppender:!0,selectBlockOnInsert:!1,shouldDirectInsert:!1,__experimentalIsQuick:!0,...o,toggleProps:{"aria-describedby":m},onSelectOrClose:e=>{e?.clientId&&i(e)}}),(0,c.createElement)(Dy,{id:m},g))})),zy=rd(m.__experimentalTreeGridRow),Vy=(0,c.forwardRef)((({isSelected:e,position:t,level:n,rowCount:o,children:r,className:l,path:i,...a},s)=>{const u=ad({isSelected:e,adjustScrolling:!1,enableAnimation:!0,triggerAnimationOnChange:i}),m=(0,p.useMergeRefs)([s,u]);return(0,c.createElement)(zy,{ref:m,className:d()("block-editor-list-view-leaf",l),level:n,positionInSet:t,setSize:o,isExpanded:void 0,...a},r)}));var Fy=Vy;var Hy=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));var Gy=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const Uy=(e,t)=>"up"===e?"horizontal"===t?(0,v.isRTL)()?"right":"left":"up":"down"===e?"horizontal"===t?(0,v.isRTL)()?"left":"right":"down":null;function $y(e,t,n,o,r,l,i){const a=n+1;if(e>1)return function(e,t,n,o,r,l){const i=t+1;if(n&&o)return(0,v.__)("All blocks are selected, and cannot be moved");if(r>0&&!o){const t=Uy("down",l);if("down"===t)return(0,v.sprintf)((0,v.__)("Move %1$d blocks from position %2$d down by one place"),e,i);if("left"===t)return(0,v.sprintf)((0,v.__)("Move %1$d blocks from position %2$d left by one place"),e,i);if("right"===t)return(0,v.sprintf)((0,v.__)("Move %1$d blocks from position %2$d right by one place"),e,i)}if(r>0&&o){const e=Uy("down",l);if("down"===e)return(0,v.__)("Blocks cannot be moved down as they are already at the bottom");if("left"===e)return(0,v.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,v.__)("Blocks cannot be moved right as they are already are at the rightmost position")}if(r<0&&!n){const t=Uy("up",l);if("up"===t)return(0,v.sprintf)((0,v.__)("Move %1$d blocks from position %2$d up by one place"),e,i);if("left"===t)return(0,v.sprintf)((0,v.__)("Move %1$d blocks from position %2$d left by one place"),e,i);if("right"===t)return(0,v.sprintf)((0,v.__)("Move %1$d blocks from position %2$d right by one place"),e,i)}if(r<0&&n){const e=Uy("up",l);if("up"===e)return(0,v.__)("Blocks cannot be moved up as they are already at the top");if("left"===e)return(0,v.__)("Blocks cannot be moved left as they are already are at the leftmost position");if("right"===e)return(0,v.__)("Blocks cannot be moved right as they are already are at the rightmost position")}}(e,n,o,r,l,i);if(o&&r)return(0,v.sprintf)((0,v.__)("Block %s is the only block, and cannot be moved"),t);if(l>0&&!r){const e=Uy("down",i);if("down"===e)return(0,v.sprintf)((0,v.__)("Move %1$s block from position %2$d down to position %3$d"),t,a,a+1);if("left"===e)return(0,v.sprintf)((0,v.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a+1);if("right"===e)return(0,v.sprintf)((0,v.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a+1)}if(l>0&&r){const e=Uy("down",i);if("down"===e)return(0,v.sprintf)((0,v.__)("Block %1$s is at the end of the content and can’t be moved down"),t);if("left"===e)return(0,v.sprintf)((0,v.__)("Block %1$s is at the end of the content and can’t be moved left"),t);if("right"===e)return(0,v.sprintf)((0,v.__)("Block %1$s is at the end of the content and can’t be moved right"),t)}if(l<0&&!o){const e=Uy("up",i);if("up"===e)return(0,v.sprintf)((0,v.__)("Move %1$s block from position %2$d up to position %3$d"),t,a,a-1);if("left"===e)return(0,v.sprintf)((0,v.__)("Move %1$s block from position %2$d left to position %3$d"),t,a,a-1);if("right"===e)return(0,v.sprintf)((0,v.__)("Move %1$s block from position %2$d right to position %3$d"),t,a,a-1)}if(l<0&&o){const e=Uy("up",i);if("up"===e)return(0,v.sprintf)((0,v.__)("Block %1$s is at the beginning of the content and can’t be moved up"),t);if("left"===e)return(0,v.sprintf)((0,v.__)("Block %1$s is at the beginning of the content and can’t be moved left"),t);if("right"===e)return(0,v.sprintf)((0,v.__)("Block %1$s is at the beginning of the content and can’t be moved right"),t)}}const jy=(e,t)=>"up"===e?"horizontal"===t?(0,v.isRTL)()?Hd:Gd:Hy:"down"===e?"horizontal"===t?(0,v.isRTL)()?Gd:Hd:Gy:null,Wy=(e,t)=>"up"===e?"horizontal"===t?(0,v.isRTL)()?(0,v.__)("Move right"):(0,v.__)("Move left"):(0,v.__)("Move up"):"down"===e?"horizontal"===t?(0,v.isRTL)()?(0,v.__)("Move left"):(0,v.__)("Move right"):(0,v.__)("Move down"):null,Ky=(0,c.forwardRef)((({clientIds:e,direction:t,orientation:n,...o},r)=>{const l=(0,p.useInstanceId)(Ky),i=Array.isArray(e)?e:[e],s=i.length,{blockType:u,isDisabled:g,rootClientId:h,isFirst:b,isLast:v,firstIndex:_,orientation:k="vertical"}=(0,f.useSelect)((e=>{const{getBlockIndex:o,getBlockRootClientId:r,getBlockOrder:l,getBlock:s,getBlockListSettings:c}=e(Go),u=i[0],d=r(u),p=o(u),m=o(i[i.length-1]),f=l(d),g=s(u),h=0===p,b=m===f.length-1,{orientation:v}=c(d)||{};return{blockType:g?(0,a.getBlockType)(g.name):null,isDisabled:"up"===t?h:b,rootClientId:d,firstIndex:p,isFirst:h,isLast:b,orientation:n||v}}),[e,t]),{moveBlocksDown:y,moveBlocksUp:E}=(0,f.useDispatch)(Go),w="up"===t?E:y,S=`block-editor-block-mover-button__description-${l}`;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.Button,{ref:r,className:d()("block-editor-block-mover-button",`is-${t}-button`),icon:jy(t,k),label:Wy(t,k),"aria-describedby":S,...o,onClick:g?null:t=>{w(e,h),o.onClick&&o.onClick(t)},disabled:g,__experimentalIsFocusable:!0}),(0,c.createElement)(m.VisuallyHidden,{id:S},$y(s,u&&u.title,_,b,v,"up"===t?-1:1,k)))})),qy=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(Ky,{direction:"up",ref:t,...e}))),Zy=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(Ky,{direction:"down",ref:t,...e})));var Yy=(0,c.createElement)(F.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M10.97 10.159a3.382 3.382 0 0 0-2.857.955l1.724 1.723-2.836 2.913L7 17h1.25l2.913-2.837 1.723 1.723a3.38 3.38 0 0 0 .606-.825c.33-.63.446-1.343.35-2.032L17 10.695 13.305 7l-2.334 3.159Z"}));var Xy=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"}));var Qy=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));function Jy({onClick:e}){return(0,c.createElement)("span",{className:"block-editor-list-view__expander",onClick:t=>e(t,{forceToggle:!0}),"aria-hidden":"true","data-testid":"list-view-expander"},(0,c.createElement)(Xl,{icon:(0,v.isRTL)()?Qy:Cy}))}var eE=(0,c.forwardRef)((function({className:e,block:{clientId:t},onClick:n,onToggleExpanded:o,tabIndex:r,onFocus:l,onDragStart:i,onDragEnd:a,draggable:s,isExpanded:u,ariaLabel:p,ariaDescribedBy:g,updateFocusAndSelection:h},b){const _=Z_(t),k=xy({clientId:t,context:"list-view"}),{isLocked:y}=_k(t),{getSelectedBlockClientIds:E,getPreviousBlockClientId:w,getBlockRootClientId:S,getBlockOrder:C,canRemoveBlocks:x}=(0,f.useSelect)(Go),{removeBlocks:B}=(0,f.useDispatch)(Go),I=(0,op.__unstableUseShortcutEventMatch)(),T="sticky"===_?.positionType,M=_?.positionLabel?(0,v.sprintf)((0,v.__)("Position: %1$s"),_.positionLabel):"";return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.Button,{className:d()("block-editor-list-view-block-select-button",e),onClick:n,onKeyDown:function(e){if(e.keyCode===yd.ENTER||e.keyCode===yd.SPACE)n(e);else if(e.keyCode===yd.BACKSPACE||e.keyCode===yd.DELETE||I("core/block-editor/remove",e)){var o;const e=E(),n=e.includes(t),r=n?e[0]:t,l=S(r),i=n?e:[t];if(!x(i,l))return;let a=null!==(o=w(r))&&void 0!==o?o:l;B(i,!1);const s=e.length>0&&0===E().length;a||(a=C()[0]),h(a,s)}},ref:b,tabIndex:r,onFocus:l,onDragStart:e=>{e.dataTransfer.clearData(),i?.(e)},onDragEnd:a,draggable:s,href:`#block-${t}`,"aria-label":p,"aria-describedby":g,"aria-expanded":u},(0,c.createElement)(Jy,{onClick:o}),(0,c.createElement)($d,{icon:_?.icon,showColors:!0,context:"list-view"}),(0,c.createElement)(m.__experimentalHStack,{alignment:"center",className:"block-editor-list-view-block-select-button__label-wrapper",justify:"flex-start",spacing:1},(0,c.createElement)("span",{className:"block-editor-list-view-block-select-button__title"},(0,c.createElement)(m.__experimentalTruncate,{ellipsizeMode:"auto"},k)),_?.anchor&&(0,c.createElement)("span",{className:"block-editor-list-view-block-select-button__anchor-wrapper"},(0,c.createElement)(m.__experimentalTruncate,{className:"block-editor-list-view-block-select-button__anchor",ellipsizeMode:"auto"},_.anchor)),M&&T&&(0,c.createElement)(m.Tooltip,{text:M},(0,c.createElement)("span",{className:"block-editor-list-view-block-select-button__sticky"},(0,c.createElement)(Xl,{icon:Yy}))),y&&(0,c.createElement)("span",{className:"block-editor-list-view-block-select-button__lock"},(0,c.createElement)(Xl,{icon:Xy})))))}));var tE=({children:e,clientIds:t,cloneClassname:n,onDragStart:o,onDragEnd:r})=>{const{srcRootClientId:l,isDraggable:i,icon:s}=(0,f.useSelect)((e=>{const{canMoveBlocks:n,getBlockRootClientId:o,getBlockName:r,getBlockAttributes:l}=e(Go),{getBlockType:i,getActiveBlockVariation:s}=e(a.store),c=o(t[0]),u=r(t[0]),d=s(u,l(t[0]));return{srcRootClientId:c,isDraggable:n(t,c),icon:d?.icon||i(u)?.icon}}),[t]),u=(0,c.useRef)(!1),[d,p,g]=function(){const e=(0,c.useRef)(null),t=(0,c.useRef)(null),n=(0,c.useRef)(null),o=(0,c.useRef)(null);return(0,c.useEffect)((()=>()=>{o.current&&(clearInterval(o.current),o.current=null)}),[]),[(0,c.useCallback)((r=>{e.current=r.clientY,n.current=(0,ea.getScrollContainer)(r.target),o.current=setInterval((()=>{if(n.current&&t.current){const e=n.current.scrollTop+t.current;n.current.scroll({top:e})}}),25)}),[]),(0,c.useCallback)((o=>{if(!n.current)return;const r=n.current.offsetHeight,l=e.current-n.current.offsetTop,i=o.clientY-n.current.offsetTop;if(o.clientY>l){const e=Math.max(r-l-50,0),n=Math.max(i-l-50,0),o=0===e||0===n?0:n/e;t.current=25*o}else if(o.clientY<l){const e=Math.max(l-50,0),n=Math.max(l-i-50,0),o=0===e||0===n?0:n/e;t.current=-25*o}else t.current=0}),[]),()=>{e.current=null,n.current=null,o.current&&(clearInterval(o.current),o.current=null)}]}(),{startDraggingBlocks:h,stopDraggingBlocks:b}=(0,f.useDispatch)(Go);if((0,c.useEffect)((()=>()=>{u.current&&b()}),[]),!i)return e({draggable:!1});const v={type:"block",srcClientIds:t,srcRootClientId:l};return(0,c.createElement)(m.Draggable,{cloneClassname:n,__experimentalTransferDataType:"wp-blocks",transferData:v,onDragStart:e=>{window.requestAnimationFrame((()=>{h(t),u.current=!0,d(e),o&&o()}))},onDragOver:p,onDragEnd:()=>{b(),u.current=!1,g(),r&&r()},__experimentalDragComponent:(0,c.createElement)(Im,{count:t.length,icon:s})},(({onDraggableStart:t,onDraggableEnd:n})=>e({draggable:!0,onDragStart:t,onDragEnd:n})))};const nE=(0,c.forwardRef)((({onClick:e,onToggleExpanded:t,block:n,isSelected:o,position:r,siblingBlockCount:l,level:i,isExpanded:a,selectedClientIds:s,...u},p)=>{const{clientId:m}=n,{blockMovingClientId:g,selectedBlockInBlockEditor:h}=(0,f.useSelect)((e=>{const{hasBlockMovingClientId:t,getSelectedBlockClientId:n}=e(Go);return{blockMovingClientId:t(),selectedBlockInBlockEditor:n()}}),[]),{AdditionalBlockContent:b,insertedBlock:v,setInsertedBlock:_}=Ay(),k=g&&h===m,y=d()("block-editor-list-view-block-contents",{"is-dropping-before":k}),E=s.includes(m)?s:[m];return(0,c.createElement)(c.Fragment,null,b&&(0,c.createElement)(b,{block:n,insertedBlock:v,setInsertedBlock:_}),(0,c.createElement)(tE,{clientIds:E},(({draggable:s,onDragStart:d,onDragEnd:m})=>(0,c.createElement)(eE,{ref:p,className:y,block:n,onClick:e,onToggleExpanded:t,isSelected:o,position:r,siblingBlockCount:l,level:i,draggable:s,onDragStart:d,onDragEnd:m,isExpanded:a,...u}))))}));var oE=nE;var rE=(0,c.memo)((function e({block:{clientId:t},isDragged:n,isSelected:o,isBranchSelected:r,selectBlock:l,position:i,level:s,rowCount:u,siblingBlockCount:g,showBlockMovers:h,path:b,isExpanded:_,selectedClientIds:k,isSyncedBranch:y}){const E=(0,c.useRef)(null),w=(0,c.useRef)(null),[S,C]=(0,c.useState)(!1),{isLocked:x,canEdit:B}=_k(t),I=o&&k[0]===t,T=o&&k[k.length-1]===t,{toggleBlockHighlight:M}=(0,f.useDispatch)(Go),P=Z_(t),N=P?.title||(0,v.__)("Untitled"),L=(0,f.useSelect)((e=>e(Go).getBlock(t)),[t]),R=(0,f.useSelect)((e=>e(Go).getBlockName(t)),[t]),A=(0,f.useSelect)((e=>Fo(e(Go)).getBlockEditingMode(t)),[t]),D=(0,a.hasBlockSupport)(R,"__experimentalToolbar",!0)&&"default"===A,O=`list-view-block-select-button__${(0,p.useInstanceId)(e)}`,z=((e,t,n)=>(0,v.sprintf)((0,v.__)("Block %1$d of %2$d, Level %3$d"),e,t,n))(i,g,s),V=x?(0,v.sprintf)((0,v.__)("%s (locked)"),N):N,F=(0,v.sprintf)((0,v.__)("Options for %s"),N),{isTreeGridMounted:H,expand:G,collapse:U,BlockSettingsMenu:$,listViewInstanceId:j,expandedState:W,setInsertedBlock:K,treeGridElementRef:q}=Ay(),Z=h&&g>0,Y=d()("block-editor-list-view-block__mover-cell",{"is-visible":S||o}),X=d()("block-editor-list-view-block__menu-cell",{"is-visible":S||I});(0,c.useEffect)((()=>{!H&&o&&E.current.focus()}),[]);const Q=(0,c.useCallback)((()=>{C(!0),M(t,!0)}),[t,C,M]),J=(0,c.useCallback)((()=>{C(!1),M(t,!1)}),[t,C,M]),ee=(0,c.useCallback)((e=>{l(e,t),e.preventDefault()}),[t,l]),te=(0,c.useCallback)(((e,t)=>{t&&l(void 0,e,null,null);const n=()=>{const t=q.current?.querySelector(`[role=row][data-block="${e}"]`);return t?ea.focus.focusable.find(t)[0]:null};let o=n();o?o.focus():window.requestAnimationFrame((()=>{o=n(),o&&o.focus()}))}),[l,q]),ne=(0,c.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),!0===_?U(t):!1===_&&G(t)}),[t,G,U,_]);let oe;Z?oe=2:D||(oe=3);const re=d()({"is-selected":o,"is-first-selected":I,"is-last-selected":T,"is-branch-selected":r,"is-synced-branch":y,"is-dragging":n,"has-single-cell":!D,"is-synced":P?.isSynced}),le=k.includes(t)?k:[t];!function({isSelected:e,selectedClientIds:t,rowItemRef:n}){const o=1===t.length;(0,c.useLayoutEffect)((()=>{if(!e||!o||!n.current)return;const t=(0,ea.getScrollContainer)(n.current),{ownerDocument:r}=n.current;if(t===r.body||t===r.documentElement||!t)return;const l=n.current.getBoundingClientRect(),i=t.getBoundingClientRect();(l.top<i.top||l.bottom>i.bottom)&&n.current.scrollIntoView()}),[e,o,n])}({isSelected:o,rowItemRef:w,selectedClientIds:k});const ie=o&&1===k.length;return(0,c.createElement)(Fy,{className:re,onMouseEnter:Q,onMouseLeave:J,onFocus:Q,onBlur:J,level:s,position:i,rowCount:u,path:b,id:`list-view-${j}-block-${t}`,"data-block":t,"data-expanded":B?_:void 0,ref:w},(0,c.createElement)(m.__experimentalTreeGridCell,{className:"block-editor-list-view-block__contents-cell",colSpan:oe,ref:E,"aria-selected":!!o},(({ref:e,tabIndex:t,onFocus:n})=>(0,c.createElement)("div",{className:"block-editor-list-view-block__contents-container"},(0,c.createElement)(oE,{block:L,onClick:ee,onToggleExpanded:ne,isSelected:o,position:i,siblingBlockCount:g,level:s,ref:e,tabIndex:ie?0:t,onFocus:n,isExpanded:B?_:void 0,selectedClientIds:k,ariaLabel:V,ariaDescribedBy:O,updateFocusAndSelection:te}),(0,c.createElement)(Dy,{id:O},z)))),Z&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalTreeGridCell,{className:Y,withoutGridItem:!0},(0,c.createElement)(m.__experimentalTreeGridItem,null,(({ref:e,tabIndex:n,onFocus:o})=>(0,c.createElement)(qy,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:o}))),(0,c.createElement)(m.__experimentalTreeGridItem,null,(({ref:e,tabIndex:n,onFocus:o})=>(0,c.createElement)(Zy,{orientation:"vertical",clientIds:[t],ref:e,tabIndex:n,onFocus:o}))))),D&&$&&(0,c.createElement)(m.__experimentalTreeGridCell,{className:X,"aria-selected":!!o},(({ref:e,tabIndex:t,onFocus:n})=>(0,c.createElement)($,{clientIds:le,block:L,icon:Nf,label:F,toggleProps:{ref:e,className:"block-editor-list-view-block__menu",tabIndex:t,onFocus:n},disableOpenOnArrowDown:!0,expand:G,expandedState:W,setInsertedBlock:K,__experimentalSelectBlock:te}))))}));function lE(e,t,n,o){var r;const l=n?.includes(e.clientId);if(l)return 0;return(null!==(r=t[e.clientId])&&void 0!==r?r:o)?1+e.innerBlocks.reduce(iE(t,n,o),0):1}const iE=(e,t,n)=>(o,r)=>{var l;const i=t?.includes(r.clientId);if(i)return o;return(null!==(l=e[r.clientId])&&void 0!==l?l:n)&&r.innerBlocks.length>0?o+lE(r,e,t,n):o+1},aE=()=>{};var sE=(0,c.memo)((function e(t){const{blocks:n,selectBlock:o=aE,showBlockMovers:r,selectedClientIds:l,level:i=1,path:a="",isBranchDragged:s=!1,isBranchSelected:u=!1,listPosition:d=0,fixedListWindow:p,isExpanded:g,parentId:h,shouldShowInnerBlocks:b=!0,isSyncedBranch:v=!1,showAppender:_=!0}=t,k=Z_(h),y=v||!!k?.isSynced,E=(0,f.useSelect)((e=>!h||e(Go).canEditBlock(h)),[h]),{expandedState:w,draggedClientIds:S}=Ay();if(!E)return null;const C=_&&1===i,x=n.filter(Boolean),B=x.length,I=C?B+1:B;let T=d;return(0,c.createElement)(c.Fragment,null,x.map(((t,n)=>{var d;const{clientId:m,innerBlocks:h}=t;n>0&&(T+=lE(x[n-1],w,S,g));const{itemInView:v}=p,_=v(T),k=n+1,E=a.length>0?`${a}_${k}`:`${k}`,C=!!h?.length,M=C&&b?null!==(d=w[m])&&void 0!==d?d:g:void 0,P=!!S?.includes(m),N=((e,t)=>Array.isArray(t)&&t.length?-1!==t.indexOf(e):t===e)(m,l),L=u||N&&C,R=P||_||N||s;return(0,c.createElement)(f.AsyncModeProvider,{key:m,value:!N},R&&(0,c.createElement)(rE,{block:t,selectBlock:o,isSelected:N,isBranchSelected:L,isDragged:P||s,level:i,position:k,rowCount:I,siblingBlockCount:B,showBlockMovers:r,path:E,isExpanded:M,listPosition:T,selectedClientIds:l,isSyncedBranch:y}),!R&&(0,c.createElement)("tr",null,(0,c.createElement)("td",{className:"block-editor-list-view-placeholder"})),C&&M&&(0,c.createElement)(e,{parentId:m,blocks:h,selectBlock:o,showBlockMovers:r,level:i+1,path:E,listPosition:T+1,fixedListWindow:p,isBranchSelected:L,isBranchDragged:P||s,selectedClientIds:l,isExpanded:g,isSyncedBranch:y}))})),C&&(0,c.createElement)(m.__experimentalTreeGridRow,{level:i,setSize:I,positionInSet:I,isExpanded:!0},(0,c.createElement)(m.__experimentalTreeGridCell,null,(e=>(0,c.createElement)(Oy,{clientId:h,nestingLevel:i,blockCount:B,...e})))))}));function cE({listViewRef:e,blockDropTarget:t}){const{rootClientId:n,clientId:o,dropPosition:r}=t||{},[l,i]=(0,c.useMemo)((()=>{if(!e.current)return[];return[n?e.current.querySelector(`[data-block="${n}"]`):void 0,o?e.current.querySelector(`[data-block="${o}"]`):void 0]}),[n,o]),a=i||l,s=(0,v.isRTL)(),u=(0,c.useCallback)((e=>{if(!l)return 0;const t=l.querySelector(".block-editor-block-icon").getBoundingClientRect();return s?e.right-t.left:t.right-e.left}),[l,s]),d=(0,c.useCallback)(((e,t)=>{if(!a)return 0;let n=a.offsetWidth;const o=(0,ea.getScrollContainer)(a,"horizontal"),r=a.ownerDocument,l=o===r.body||o===r.documentElement;if(o&&!l){const r=o.getBoundingClientRect(),l=(0,v.isRTL)()?r.right-e.right:e.left-r.left,i=o.clientWidth;if(i<n+l&&(n=i-l),!s&&e.left+t<r.left)return n-=r.left-e.left,n;if(s&&e.right-t>r.right)return n-=e.right-r.right,n}return n-t}),[s,a]),p=(0,c.useMemo)((()=>{if(!a)return{};const e=a.getBoundingClientRect(),t=u(e);return{width:d(e,t)}}),[u,d,a]),f=(0,c.useMemo)((()=>{if(!a||!("top"===r||"bottom"===r||"inside"===r))return;const e=a.ownerDocument;return{ownerDocument:e,getBoundingClientRect(){const t=a.getBoundingClientRect(),n=u(t);let o=s?t.left:t.left+n,l=0,i=0;const c=(0,ea.getScrollContainer)(a,"horizontal"),p=c===e.body||c===e.documentElement;if(c&&!p){const e=c.getBoundingClientRect(),t=s?c.offsetWidth-c.clientWidth:0;o<e.left+t&&(o=e.left+t)}"top"===r?(l=t.top,i=t.top):(l=t.bottom,i=t.bottom);const m=d(t,n),f=i-l;return new window.DOMRect(o,l,m,f)}}}),[a,r,u,d,s]);return a?(0,c.createElement)(m.Popover,{animate:!1,anchor:f,focusOnMount:!1,className:"block-editor-list-view-drop-indicator",variant:"unstyled"},(0,c.createElement)("div",{style:p,className:"block-editor-list-view-drop-indicator__line"})):null}function uE(){const{clearSelectedBlock:e,multiSelect:t,selectBlock:n}=(0,f.useDispatch)(Go),{getBlockName:o,getBlockParents:r,getBlockSelectionStart:l,getSelectedBlockClientIds:i,hasMultiSelection:s,hasSelectedBlock:u}=(0,f.useSelect)(Go),{getBlockType:d}=(0,f.useSelect)(a.store),p=(0,c.useCallback)((async(a,c,p,m)=>{if(!a?.shiftKey)return void n(c,m);a.preventDefault();const f="keydown"===a.type&&(a.keyCode===yd.UP||a.keyCode===yd.DOWN||a.keyCode===yd.HOME||a.keyCode===yd.END);if(!f&&!u()&&!s())return void n(c,null);const g=i(),h=[...r(c),c];f&&!g.some((e=>h.includes(e)))&&await e();let b=l(),_=c;f&&(u()||s()||(b=c),p&&(_=p));const k=r(b),y=r(_),{start:E,end:w}=function(e,t,n,o){const r=[...n,e],l=[...o,t],i=Math.min(r.length,l.length)-1;return{start:r[i],end:l[i]}}(b,_,k,y);await t(E,w,null);const S=i();if((a.keyCode===yd.HOME||a.keyCode===yd.END)&&S.length>1)return;const C=g.filter((e=>!S.includes(e)));let x;if(1===C.length){const e=d(o(C[0]))?.title;e&&(x=(0,v.sprintf)((0,v.__)("%s deselected."),e))}else C.length>1&&(x=(0,v.sprintf)((0,v.__)("%s blocks deselected."),C.length));x&&(0,Cn.speak)(x,"assertive")}),[e,o,d,r,l,i,s,u,t,n]);return{updateBlockSelection:p}}const dE=28;function pE(e,t){const n=e[t+1];return n&&n.isDraggedBlock?pE(e,t+1):n}const mE=["top","bottom"];function fE(e,t,n=!1){let o,r,l,i,a;for(let n=0;n<e.length;n++){const s=e[n];if(s.isDraggedBlock)continue;const c=s.element.getBoundingClientRect(),[u,d]=Fg(t,c,mE),p=Hg(t,c);if(void 0===l||u<l||p){l=u;const t=e.indexOf(s),n=e[t-1];if("top"===d&&n&&n.rootClientId===s.rootClientId&&!n.isDraggedBlock?(r=n,o="bottom",i=n.element.getBoundingClientRect(),a=t-1):(r=s,o=d,i=c,a=t),p)break}}if(!r)return;const s=function(e,t){const n=[];let o=e;for(;o;)n.push({...o}),o=t.find((e=>e.clientId===o.rootClientId));return n}(r,e),c="bottom"===o;if(c&&r.canInsertDraggedBlocksAsChild&&(r.innerBlockCount>0&&r.isExpanded||function(e,t,n=1,o=!1){const r=o?t.right-n*dE:t.left+n*dE;return(o?e.x<r-dE:e.x>r+dE)&&e.y<t.bottom}(t,i,s.length,n))){const e=r.isExpanded?0:r.innerBlockCount||0;return{rootClientId:r.clientId,blockIndex:e,dropPosition:"inside"}}if(c&&r.rootClientId&&function(e,t,n=1,o=!1){const r=o?t.right-n*dE:t.left+n*dE;return o?e.x>r:e.x<r}(t,i,s.length,n)){const l=pE(e,a),c=r.nestingLevel,u=l?l.nestingLevel:1;if(c&&u){const d=function(e,t,n=1,o=!1){const r=o?t.right-n*dE:t.left+n*dE,l=o?r-e.x:e.x-r,i=Math.round(l/dE);return Math.abs(i)}(t,i,s.length,n),p=Math.max(Math.min(d,c-u),0);if(s[p]){let t=r.blockIndex;if(s[p].nestingLevel===l?.nestingLevel)t=l?.blockIndex;else for(let n=a;n>=0;n--){const o=e[n];if(o.rootClientId===s[p].rootClientId){t=o.blockIndex+1;break}}return{rootClientId:s[p].rootClientId,clientId:r.clientId,blockIndex:t,dropPosition:o}}}}if(!r.canInsertDraggedBlocksAsSibling)return;const u=c?1:0;return{rootClientId:r.rootClientId,clientId:r.clientId,blockIndex:r.blockIndex+u,dropPosition:o}}function gE(e,t){if(t&&1===e?.length&&0===e[0].type.indexOf("image/")){const e=/<\s*img\b/gi;if(1!==t.match(e)?.length)return!0;const n=/<\s*img\b[^>]*\bsrc="file:\/\//i;if(t.match(n))return!0}return!1}function hE(){const{getBlockName:e}=(0,f.useSelect)(Go),{getBlockType:t}=(0,f.useSelect)(a.store),{createSuccessNotice:n}=(0,f.useDispatch)(Vm.store);return(0,c.useCallback)(((o,r)=>{let l="";if(1===r.length){const n=r[0],i=t(e(n))?.title;l="copy"===o?(0,v.sprintf)((0,v.__)('Copied "%s" to clipboard.'),i):(0,v.sprintf)((0,v.__)('Moved "%s" to clipboard.'),i)}else l="copy"===o?(0,v.sprintf)((0,v._n)("Copied %d block to clipboard.","Copied %d blocks to clipboard.",r.length),r.length):(0,v.sprintf)((0,v._n)("Moved %d block to clipboard.","Moved %d blocks to clipboard.",r.length),r.length);n(l,{type:"snackbar"})}),[])}function bE(){const{getBlocksByClientId:e,getSelectedBlockClientIds:t,hasMultiSelection:n,getSettings:o,__unstableIsFullySelected:r,__unstableIsSelectionCollapsed:l,__unstableIsSelectionMergeable:i,__unstableGetSelectedBlocksWithPartialSelection:s,canInsertBlockType:c}=(0,f.useSelect)(Go),{flashBlock:u,removeBlocks:d,replaceBlocks:m,__unstableDeleteSelection:g,__unstableExpandSelection:h,insertBlocks:b}=(0,f.useDispatch)(Go),v=hE();return(0,p.useRefEffect)((p=>{function f(f){if(f.defaultPrevented)return;const _=t();if(0===_.length)return;if(!n()){const{target:e}=f,{ownerDocument:t}=e;if("copy"===f.type||"cut"===f.type?(0,ea.documentHasUncollapsedSelection)(t):(0,ea.documentHasSelection)(t))return}if(!p.contains(f.target.ownerDocument.activeElement))return;f.preventDefault();const k=i(),y=l()||r(),E=!y&&!k;if("copy"===f.type||"cut"===f.type)if(1===_.length&&u(_[0]),E)h();else{let t;if(v(f.type,_),y)t=e(_);else{const[n,o]=s();t=[n,...e(_.slice(1,_.length-1)),o]}const n=f.clipboardData.getData("__unstableWrapperBlockName");n&&(t=(0,a.createBlock)(n,JSON.parse(f.clipboardData.getData("__unstableWrapperBlockAttributes")),t));const o=(0,a.serialize)(t);f.clipboardData.setData("text/plain",function(e){e=e.replace(/<br>/g,"\n");return(0,ea.__unstableStripHTML)(e).trim().replace(/\n\n+/g,"\n\n")}(o)),f.clipboardData.setData("text/html",o)}if("cut"===f.type)y&&!E?d(_):(f.target.ownerDocument.activeElement.contentEditable=!1,g());else if("paste"===f.type){const{__experimentalCanUserUseUnfilteredHTML:e}=o(),{plainText:t,html:n,files:r}=function({clipboardData:e}){let t="",n="";try{t=e.getData("text/plain"),n=e.getData("text/html")}catch(t){try{n=e.getData("Text")}catch(e){return}}const o=(0,ea.getFilesFromDataTransfer)(e);return o.length&&!gE(o,n)?{files:o}:{html:n,plainText:t,files:[]}}(f);let l=[];if(r.length){const e=(0,a.getBlockTransforms)("from");l=r.reduce(((t,n)=>{const o=(0,a.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat()}else l=(0,a.pasteHandler)({HTML:n,plainText:t,mode:"BLOCKS",canUserUseUnfilteredHTML:e});if(1===_.length){const[e]=_;if(l.every((t=>c(t.name,e))))return void b(l,void 0,e)}m(_,l,l.length-1,-1)}}return p.ownerDocument.addEventListener("copy",f),p.ownerDocument.addEventListener("cut",f),p.ownerDocument.addEventListener("paste",f),()=>{p.ownerDocument.removeEventListener("copy",f),p.ownerDocument.removeEventListener("cut",f),p.ownerDocument.removeEventListener("paste",f)}}),[])}var vE=function({children:e}){return(0,c.createElement)("div",{ref:bE()},e)};const _E="align",kE="__experimentalBorder",yE="color",EE="customClassName",wE="typography.__experimentalFontFamily",SE="typography.fontSize",CE="layout",xE=[...["typography.lineHeight",SE,"typography.__experimentalFontStyle","typography.__experimentalFontWeight",wE,"typography.textColumns","typography.__experimentalTextDecoration","typography.__experimentalTextTransform","typography.__experimentalLetterSpacing"],kE,yE,"spacing"];const BE={align:e=>(0,a.hasBlockSupport)(e,_E),borderColor:e=>function(e,t="any"){if("web"!==c.Platform.OS)return!1;const n=(0,a.getBlockSupport)(e,kE);return!0===n||("any"===t?!!(n?.color||n?.radius||n?.width||n?.style):!!n?.[t])}(e,"color"),backgroundColor:e=>{const t=(0,a.getBlockSupport)(e,yE);return t&&!1!==t.background},textColor:e=>{const t=(0,a.getBlockSupport)(e,yE);return t&&!1!==t.text},gradient:e=>{const t=(0,a.getBlockSupport)(e,yE);return null!==t&&"object"==typeof t&&!!t.gradients},className:e=>(0,a.hasBlockSupport)(e,EE,!0),fontFamily:e=>(0,a.hasBlockSupport)(e,wE),fontSize:e=>(0,a.hasBlockSupport)(e,SE),layout:e=>(0,a.hasBlockSupport)(e,CE),style:e=>xE.some((t=>(0,a.hasBlockSupport)(e,t)))};function IE(e,t){return Object.entries(BE).reduce(((n,[o,r])=>(r(e.name)&&r(t.name)&&(n[o]=e.attributes[o]),n)),{})}function TE(e,t,n){for(let o=0;o<Math.min(t.length,e.length);o+=1)n(e[o].clientId,IE(t[o],e[o])),TE(e[o].innerBlocks,t[o].innerBlocks,n)}function ME(){const e=(0,f.useRegistry)(),{updateBlockAttributes:t}=(0,f.useDispatch)(Go),{createSuccessNotice:n,createWarningNotice:o,createErrorNotice:r}=(0,f.useDispatch)(Vm.store);return(0,c.useCallback)((async l=>{let i="";try{if(!window.navigator.clipboard)return void r((0,v.__)("Unable to paste styles. This feature is only available on secure (https) sites in supporting browsers."),{type:"snackbar"});i=await window.navigator.clipboard.readText()}catch(e){return void r((0,v.__)("Unable to paste styles. Please allow browser clipboard permissions before continuing."),{type:"snackbar"})}if(!i||!function(e){try{const t=(0,a.parse)(e,{__unstableSkipMigrationLogs:!0,__unstableSkipAutop:!0});return 1!==t.length||"core/freeform"!==t[0].name}catch(e){return!1}}(i))return void o((0,v.__)("Unable to paste styles. Block styles couldn't be found within the copied content."),{type:"snackbar"});const s=(0,a.parse)(i);if(1===s.length?e.batch((()=>{TE(l,l.map((()=>s[0])),t)})):e.batch((()=>{TE(l,s,t)})),1===l.length){const e=(0,a.getBlockType)(l[0].name)?.title;n((0,v.sprintf)((0,v.__)("Pasted styles to %s."),e),{type:"snackbar"})}else n((0,v.sprintf)((0,v.__)("Pasted styles to %d blocks."),l.length),{type:"snackbar"})}),[e.batch,t,n,o,r])}function PE({clientIds:e,children:t,__experimentalUpdateSelection:n}){const{canInsertBlockType:o,getBlockRootClientId:r,getBlocksByClientId:l,canMoveBlocks:i,canRemoveBlocks:s}=(0,f.useSelect)(Go),{getDefaultBlockName:c,getGroupingBlockName:u}=(0,f.useSelect)(a.store),d=l(e),p=r(e[0]),m=d.every((e=>!!e&&((0,a.hasBlockSupport)(e.name,"color")||(0,a.hasBlockSupport)(e.name,"typography")))),g=d.every((e=>!!e&&(0,a.hasBlockSupport)(e.name,"multiple",!0)&&o(e.name,p))),h=o(c(),p),b=i(e,p),v=s(e,p),{removeBlocks:_,replaceBlocks:k,duplicateBlocks:y,insertAfterBlock:E,insertBeforeBlock:w,flashBlock:S,setBlockMovingClientId:C,setNavigationMode:x,selectBlock:B}=(0,f.useDispatch)(Go),I=hE(),T=ME();return t({canCopyStyles:m,canDuplicate:g,canInsertDefaultBlock:h,canMove:b,canRemove:v,rootClientId:p,blocks:d,onDuplicate(){return y(e,n)},onRemove(){return _(e,n)},onInsertBefore(){const t=Array.isArray(e)?e[0]:t;w(t)},onInsertAfter(){const t=Array.isArray(e)?e[e.length-1]:t;E(t)},onMoveTo(){x(!0),B(e[0]),C(e[0])},onGroup(){if(!d.length)return;const t=u(),n=(0,a.switchToBlockType)(d,t);n&&k(e,n)},onUngroup(){if(!d.length)return;const t=d[0].innerBlocks;t.length&&k(e,t)},onCopy(){const e=d.map((({clientId:e})=>e));1===d.length&&S(e[0]),I("copy",e)},async onPasteStyles(){await T(d)}})}var NE=(0,p.compose)((0,f.withSelect)(((e,{clientId:t})=>{const n=e(Go).getBlock(t);return{block:n,shouldRender:n&&"core/html"===n.name}})),(0,f.withDispatch)(((e,{block:t})=>({onClick:()=>e(Go).replaceBlocks(t.clientId,(0,a.rawHandler)({HTML:(0,a.getBlockContent)(t)}))}))))((function({shouldRender:e,onClick:t,small:n}){if(!e)return null;const o=(0,v.__)("Convert to Blocks");return(0,c.createElement)(m.MenuItem,{onClick:t},!n&&o)}));const{Fill:LE,Slot:RE}=(0,m.createSlotFill)("__unstableBlockSettingsMenuFirstItem");LE.Slot=RE;var AE=LE;const{clearTimeout:DE,setTimeout:OE}=window,zE=()=>{},VE=200;function FE({ref:e,isFocused:t,debounceTimeout:n=VE,onChange:o=zE}){const[r,l]=(0,c.useState)(!1),i=(0,c.useRef)(),a=t=>{e?.current&&l(t),o(t)},s=()=>{const n=e?.current&&e.current.matches(":hover");return!t&&!n},u=()=>{const e=i.current;e&&DE&&DE(e)};return(0,c.useEffect)((()=>()=>{a(!1),u()}),[]),{showMovers:r,debouncedShowMovers:e=>{e&&e.stopPropagation(),u(),r||a(!0)},debouncedHideMovers:e=>{e&&e.stopPropagation(),u(),i.current=OE((()=>{s()&&a(!1)}),n)}}}function HE({ref:e,debounceTimeout:t=VE,onChange:n=zE}){const[o,r]=(0,c.useState)(!1),{showMovers:l,debouncedShowMovers:i,debouncedHideMovers:a}=FE({ref:e,debounceTimeout:t,isFocused:o,onChange:n}),s=(0,c.useRef)(!1),u=()=>e?.current&&e.current.contains(e.current.ownerDocument.activeElement);return(0,c.useEffect)((()=>{const t=e.current,n=()=>{u()&&(r(!0),i())},o=()=>{u()||(r(!1),a())};return t&&!s.current&&(t.addEventListener("focus",n,!0),t.addEventListener("blur",o,!0),s.current=!0),()=>{t&&(t.removeEventListener("focus",n),t.removeEventListener("blur",o))}}),[e,s,r,i,a]),{showMovers:l,gestures:{onMouseMove:i,onMouseLeave:a}}}const GE={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"};function UE({blocks:e,onCopy:t,label:n}){const o=(0,p.useCopyToClipboard)((()=>(0,a.serialize)(e)),t),r=e.length>1?(0,v.__)("Copy blocks"):(0,v.__)("Copy"),l=n||r;return(0,c.createElement)(m.MenuItem,{ref:o},l)}function $E({clientIds:e,__experimentalSelectBlock:t,children:n,__unstableDisplayLocation:o,...r}){const l=Array.isArray(e)?e:[e],i=l.length,s=l[0],{firstParentClientId:u,isDistractionFree:d,onlyBlock:g,parentBlockType:h,previousBlockClientId:b,selectedBlockClientIds:_}=(0,f.useSelect)((e=>{const{getBlockCount:t,getBlockName:n,getBlockRootClientId:o,getPreviousBlockClientId:r,getSelectedBlockClientIds:l,getSettings:i,getBlockAttributes:c}=e(Go),{getActiveBlockVariation:u}=e(a.store),d=o(s),p=d&&n(d);return{firstParentClientId:d,isDistractionFree:i().isDistractionFree,onlyBlock:1===t(d),parentBlockType:d&&(u(p,c(d))||(0,a.getBlockType)(p)),previousBlockClientId:r(s),selectedBlockClientIds:l()}}),[s]),{getBlockOrder:k,getSelectedBlockClientIds:y}=(0,f.useSelect)(Go),E=(0,f.useSelect)((e=>{const{getShortcutRepresentation:t}=e(op.store);return{duplicate:t("core/block-editor/duplicate"),remove:t("core/block-editor/remove"),insertAfter:t("core/block-editor/insert-after"),insertBefore:t("core/block-editor/insert-before")}}),[]),w=(0,op.__unstableUseShortcutEventMatch)(),{selectBlock:S,toggleBlockHighlight:C}=(0,f.useDispatch)(Go),x=_.length>0,B=(0,c.useCallback)((async e=>{if(t){const n=await e;n&&n[0]&&t(n[0],!1)}}),[t]),I=(0,c.useCallback)((()=>{if(t){let e=b||u;e||(e=k()[0]);const n=x&&0===y().length;t(e,n)}}),[t,b,u,k,x,y]),T=1===i?(0,v.__)("Delete"):(0,v.__)("Delete blocks"),M=(0,c.useRef)(),{gestures:P}=HE({ref:M,onChange(e){e&&d||C(u,e)}}),N=_?.includes(u);return(0,c.createElement)(PE,{clientIds:e,__experimentalUpdateSelection:!t},(({canCopyStyles:t,canDuplicate:l,canInsertDefaultBlock:a,canMove:d,canRemove:f,onDuplicate:b,onInsertAfter:_,onInsertBefore:k,onRemove:y,onCopy:C,onPasteStyles:x,onMoveTo:L,blocks:R})=>(0,c.createElement)(m.DropdownMenu,{icon:Nf,label:(0,v.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:GE,noIcons:!0,menuProps:{onKeyDown(e){e.defaultPrevented||(w("core/block-editor/remove",e)&&f?(e.preventDefault(),I(y())):w("core/block-editor/duplicate",e)&&l?(e.preventDefault(),B(b())):w("core/block-editor/insert-after",e)&&a?(e.preventDefault(),_()):w("core/block-editor/insert-before",e)&&a&&(e.preventDefault(),k()))}},...r},(({onClose:r})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(AE.Slot,{fillProps:{onClose:r}}),!N&&!!u&&(0,c.createElement)(m.MenuItem,{...P,ref:M,icon:(0,c.createElement)($d,{icon:h.icon}),onClick:()=>S(u)},(0,v.sprintf)((0,v.__)("Select parent block (%s)"),h.title)),1===i&&(0,c.createElement)(NE,{clientId:s}),(0,c.createElement)(UE,{blocks:R,onCopy:C}),l&&(0,c.createElement)(m.MenuItem,{onClick:(0,p.pipe)(r,b,B),shortcut:E.duplicate},(0,v.__)("Duplicate")),a&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuItem,{onClick:(0,p.pipe)(r,k),shortcut:E.insertBefore},(0,v.__)("Add before")),(0,c.createElement)(m.MenuItem,{onClick:(0,p.pipe)(r,_),shortcut:E.insertAfter},(0,v.__)("Add after")))),t&&(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(UE,{blocks:R,onCopy:C,label:(0,v.__)("Copy styles")}),(0,c.createElement)(m.MenuItem,{onClick:x},(0,v.__)("Paste styles"))),(0,c.createElement)(Nk.Slot,{fillProps:{onClose:r,canMove:d,onMoveTo:L,onlyBlock:g,count:i,firstBlockClientId:s},clientIds:e,__unstableDisplayLocation:o}),"function"==typeof n?n({onClose:r}):c.Children.map((e=>(0,c.cloneElement)(e,{onClose:r}))),f&&(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(m.MenuItem,{onClick:(0,p.pipe)(r,y,I),shortcut:E.remove},T)))))))}var jE=$E;const WE=(e,t)=>Array.isArray(t.clientIds)?{...e,...t.clientIds.reduce(((e,n)=>({...e,[n]:"expand"===t.type})),{})}:e;const KE=(0,c.forwardRef)((function e({id:t,blocks:n,dropZoneElement:o,showBlockMovers:r=!1,isExpanded:l=!1,showAppender:i=!1,blockSettingsMenu:a=$E,rootClientId:s,description:u,onSelect:d,additionalBlockContent:g},h){n&&$()("`blocks` property in `wp.blockEditor.__experimentalListView`",{since:"6.3",alternative:"`rootClientId` property"});const b=(0,p.useInstanceId)(e),{clientIdsTree:_,draggedClientIds:k,selectedClientIds:y}=function({blocks:e,rootClientId:t}){return(0,f.useSelect)((n=>{const{getDraggedBlockClientIds:o,getSelectedBlockClientIds:r,getEnabledClientIdsTree:l}=Fo(n(Go));return{selectedClientIds:r(),draggedClientIds:o(),clientIdsTree:null!=e?e:l(t)}}),[e,t])}({blocks:n,rootClientId:s}),{getBlock:E}=(0,f.useSelect)(Go),{visibleBlockCount:w,shouldShowInnerBlocks:S}=(0,f.useSelect)((e=>{const{getGlobalBlockCount:t,getClientIdsOfDescendants:n,__unstableGetEditorMode:o}=e(Go),r=k?.length>0?n(k).length+1:0;return{visibleBlockCount:t()-r,shouldShowInnerBlocks:"zoom-out"!==o()}}),[k]),{updateBlockSelection:C}=uE(),[x,B]=(0,c.useReducer)(WE,{}),{ref:I,target:T}=function({dropZoneElement:e}){const{getBlockRootClientId:t,getBlockIndex:n,getBlockCount:o,getDraggedBlockClientIds:r,canInsertBlocks:l}=(0,f.useSelect)(Go),[i,a]=(0,c.useState)(),{rootClientId:s,blockIndex:u}=i||{},d=Vg(s,u),m=(0,v.isRTL)(),g=r(),h=(0,p.useThrottle)((0,c.useCallback)(((e,r)=>{const i={x:e.clientX,y:e.clientY},s=!!g?.length,c=fE(Array.from(r.querySelectorAll("[data-block]")).map((e=>{const r=e.dataset.block,i="true"===e.dataset.expanded,a=e.classList.contains("is-dragging"),c=parseInt(e.getAttribute("aria-level"),10),u=t(r);return{clientId:r,isExpanded:i,rootClientId:u,blockIndex:n(r),element:e,nestingLevel:c||void 0,isDraggedBlock:!!s&&a,innerBlockCount:o(r),canInsertDraggedBlocksAsSibling:!s||l(g,u),canInsertDraggedBlocksAsChild:!s||l(g,r)}})),i,m);c&&a(c)}),[l,g,o,n,t,m]),200);return{ref:(0,p.__experimentalUseDropZone)({dropZoneElement:e,onDrop(e){i&&d(e)},onDragLeave(){h.cancel(),a(null)},onDragOver(e){h(e,e.currentTarget)},onDragEnd(){h.cancel(),a(null)}}),target:i}}({dropZoneElement:o}),M=(0,c.useRef)(),P=(0,p.useMergeRefs)([M,I,h]),N=(0,c.useRef)(!1),[L,R]=(0,c.useState)(null),{setSelectedTreeId:A}=function({firstSelectedBlockClientId:e,setExpandedState:t}){const[n,o]=(0,c.useState)(null),{selectedBlockParentClientIds:r}=(0,f.useSelect)((t=>{const{getBlockParents:n}=t(Go);return{selectedBlockParentClientIds:n(e,!1)}}),[e]),l=Array.isArray(r)&&r.length?r:null;return(0,c.useEffect)((()=>{n!==e&&l&&t({type:"expand",clientIds:r})}),[e]),{setSelectedTreeId:o}}({firstSelectedBlockClientId:y[0],setExpandedState:B}),D=(0,c.useCallback)(((e,t,n)=>{C(e,t,null,n),A(t),d&&d(E(t))}),[A,C,d,E]);(0,c.useEffect)((()=>{N.current=!0}),[]);const[O]=(0,p.__experimentalUseFixedWindowList)(M,36,w,{useWindowing:!0,windowOverscan:40}),z=(0,c.useCallback)((e=>{e&&B({type:"expand",clientIds:[e]})}),[B]),V=(0,c.useCallback)((e=>{e&&B({type:"collapse",clientIds:[e]})}),[B]),F=(0,c.useCallback)((e=>{z(e?.dataset?.block)}),[z]),H=(0,c.useCallback)((e=>{V(e?.dataset?.block)}),[V]),G=(0,c.useCallback)(((e,t,n)=>{e.shiftKey&&C(e,t?.dataset?.block,n?.dataset?.block)}),[C]),U=(0,c.useMemo)((()=>({isTreeGridMounted:N.current,draggedClientIds:k,expandedState:x,expand:z,collapse:V,BlockSettingsMenu:a,listViewInstanceId:b,AdditionalBlockContent:g,insertedBlock:L,setInsertedBlock:R,treeGridElementRef:M})),[k,x,z,V,a,b,g,L,R]);return _.length||i?(0,c.createElement)(f.AsyncModeProvider,{value:!0},(0,c.createElement)(cE,{listViewRef:M,blockDropTarget:T}),(0,c.createElement)(m.__experimentalTreeGrid,{id:t,className:"block-editor-list-view-tree","aria-label":(0,v.__)("Block navigation structure"),ref:P,onCollapseRow:H,onExpandRow:F,onFocusRow:G,applicationAriaLabel:(0,v.__)("Block navigation structure"),"aria-description":u},(0,c.createElement)(Ry.Provider,{value:U},(0,c.createElement)(sE,{blocks:_,parentId:s,selectBlock:D,showBlockMovers:r,fixedListWindow:O,selectedClientIds:y,isExpanded:l,shouldShowInnerBlocks:S,showAppender:i})))):null}));var qE=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(KE,{ref:t,...e,showAppender:!1,rootClientId:null,onSelect:null,additionalBlockContent:null,blockSettingsMenu:void 0})));function ZE({isEnabled:e,onToggle:t,isOpen:n,innerRef:o,...r}){return(0,c.createElement)(m.Button,{...r,ref:o,icon:Ly,"aria-expanded":n,"aria-haspopup":"true",onClick:e?t:void 0,label:(0,v.__)("List view"),className:"block-editor-block-navigation","aria-disabled":!e})}var YE=(0,c.forwardRef)((function({isDisabled:e,...t},n){$()("wp.blockEditor.BlockNavigationDropdown",{since:"6.1",alternative:"wp.components.Dropdown and wp.blockEditor.ListView"});const o=(0,f.useSelect)((e=>!!e(Go).getBlockCount()),[])&&!e;return(0,c.createElement)(m.Dropdown,{contentClassName:"block-editor-block-navigation__popover",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:r})=>(0,c.createElement)(ZE,{...t,innerRef:n,isOpen:e,onToggle:r,isEnabled:o}),renderContent:()=>(0,c.createElement)("div",{className:"block-editor-block-navigation__container"},(0,c.createElement)("p",{className:"block-editor-block-navigation__label"},(0,v.__)("List view")),(0,c.createElement)(qE,null))})}));function XE(e,t,n){const o=new(uv())(e);return t&&o.remove("is-style-"+t.name),o.add("is-style-"+n.name),o.value}function QE(e){return e?.find((e=>e.isDefault))}function JE({genericPreviewBlock:e,style:t,className:n,activeStyle:o}){const r=(0,a.getBlockType)(e.name)?.example,l=XE(n,o,t),i=(0,c.useMemo)((()=>({...e,title:t.label||t.name,description:t.description,initialAttributes:{...e.attributes,className:l+" block-editor-block-styles__block-preview-container"},example:r})),[e,l]);return(0,c.createElement)(Sm,{item:i})}function ew({clientId:e,onSwitch:t}){const{styles:n,block:o,blockType:r,className:l}=(0,f.useSelect)((t=>{const{getBlock:n}=t(Go),o=n(e);if(!o)return{};const r=(0,a.getBlockType)(o.name),{getBlockStyles:l}=t(a.store);return{block:o,blockType:r,styles:l(o.name),className:o.attributes.className||""}}),[e]),{updateBlockAttributes:i}=(0,f.useDispatch)(Go),s=function(e){return e&&0!==e.length?QE(e)?e:[{name:"default",label:(0,v._x)("Default","block style"),isDefault:!0},...e]:[]}(n),u=function(e,t){for(const n of new(uv())(t).values()){if(-1===n.indexOf("is-style-"))continue;const t=n.substring(9),o=e?.find((({name:e})=>e===t));if(o)return o}return QE(e)}(s,l),d=function(e,t){return(0,c.useMemo)((()=>{const n=t?.example,o=t?.name;return n&&o?(0,a.getBlockFromExample)(o,{attributes:n.attributes,innerBlocks:n.innerBlocks}):e?(0,a.cloneBlock)(e):void 0}),[t?.example?e?.name:e,t])}(o,r);return{onSelect:n=>{const o=XE(l,u,n);i(e,{className:o}),t()},stylesToRender:s,activeStyle:u,genericPreviewBlock:d,className:l}}const tw=()=>{};function nw({clientId:e,onSwitch:t=tw,onHoverClassName:n=tw}){const{onSelect:o,stylesToRender:r,activeStyle:l,genericPreviewBlock:i,className:a}=ew({clientId:e,onSwitch:t}),[s,u]=(0,c.useState)(null),f=(0,p.useViewportMatch)("medium","<");if(!r||0===r.length)return null;const g=(0,p.debounce)(u,250),h=e=>{var t;s!==e?(g(e),n(null!==(t=e?.name)&&void 0!==t?t:null)):g.cancel()};return(0,c.createElement)("div",{className:"block-editor-block-styles"},(0,c.createElement)("div",{className:"block-editor-block-styles__variants"},r.map((e=>{const t=e.isDefault?(0,v.__)("Default"):e.label||e.name;return(0,c.createElement)(m.Button,{className:d()("block-editor-block-styles__item",{"is-active":l.name===e.name}),key:e.name,variant:"secondary",label:t,onMouseEnter:()=>h(e),onFocus:()=>h(e),onMouseLeave:()=>h(null),onBlur:()=>h(null),onClick:()=>(e=>{o(e),n(null),u(null),g.cancel()})(e),"aria-current":l.name===e.name},(0,c.createElement)(m.__experimentalTruncate,{numberOfLines:1,className:"block-editor-block-styles__item-text"},t))}))),s&&!f&&(0,c.createElement)(m.Popover,{placement:"left-start",offset:20,focusOnMount:!1},(0,c.createElement)("div",{className:"block-editor-block-styles__preview-panel",onMouseLeave:()=>h(null)},(0,c.createElement)(JE,{activeStyle:l,className:a,genericPreviewBlock:i,style:s}))))}var ow=nw;nw.Slot=()=>($()("BlockStyles.Slot",{version:"6.4",since:"6.2"}),null);const rw={0:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"})),1:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M17.6 7c-.6.9-1.5 1.7-2.6 2v1h2v7h2V7h-1.4zM11 11H7V7H5v10h2v-4h4v4h2V7h-2v4z"})),2:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9 11.1H5v-4H3v10h2v-4h4v4h2v-10H9v4zm8 4c.5-.4.6-.6 1.1-1.1.4-.4.8-.8 1.2-1.3.3-.4.6-.8.9-1.3.2-.4.3-.8.3-1.3 0-.4-.1-.9-.3-1.3-.2-.4-.4-.7-.8-1-.3-.3-.7-.5-1.2-.6-.5-.2-1-.2-1.5-.2-.4 0-.7 0-1.1.1-.3.1-.7.2-1 .3-.3.1-.6.3-.9.5-.3.2-.6.4-.8.7l1.2 1.2c.3-.3.6-.5 1-.7.4-.2.7-.3 1.2-.3s.9.1 1.3.4c.3.3.5.7.5 1.1 0 .4-.1.8-.4 1.1-.3.5-.6.9-1 1.2-.4.4-1 .9-1.6 1.4-.6.5-1.4 1.1-2.2 1.6v1.5h8v-2H17z"})),3:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.3 1.7c-.4-.4-1-.7-1.6-.8v-.1c.6-.2 1.1-.5 1.5-.9.3-.4.5-.8.5-1.3 0-.4-.1-.8-.3-1.1-.2-.3-.5-.6-.8-.8-.4-.2-.8-.4-1.2-.5-.6-.1-1.1-.2-1.6-.2-.6 0-1.3.1-1.8.3s-1.1.5-1.6.9l1.2 1.4c.4-.2.7-.4 1.1-.6.3-.2.7-.3 1.1-.3.4 0 .8.1 1.1.3.3.2.4.5.4.8 0 .4-.2.7-.6.9-.7.3-1.5.5-2.2.4v1.6c.5 0 1 0 1.5.1.3.1.7.2 1 .3.2.1.4.2.5.4s.1.4.1.6c0 .3-.2.7-.5.8-.4.2-.9.3-1.4.3s-1-.1-1.4-.3c-.4-.2-.8-.4-1.2-.7L13 15.6c.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.6 0 1.1-.1 1.6-.2.4-.1.9-.2 1.3-.5.4-.2.7-.5.9-.9.2-.4.3-.8.3-1.2 0-.6-.3-1.1-.7-1.5z"})),4:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20 13V7h-3l-4 6v2h5v2h2v-2h1v-2h-1zm-2 0h-2.8L18 9v4zm-9-2H5V7H3v10h2v-4h4v4h2V7H9v4z"})),5:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M9 11H5V7H3v10h2v-4h4v4h2V7H9v4zm11.7 1.2c-.2-.3-.5-.7-.8-.9-.3-.3-.7-.5-1.1-.6-.5-.1-.9-.2-1.4-.2-.2 0-.5.1-.7.1-.2.1-.5.1-.7.2l.1-1.9h4.3V7H14l-.3 5 1 .6.5-.2.4-.1c.1-.1.3-.1.4-.1h.5c.5 0 1 .1 1.4.4.4.2.6.7.6 1.1 0 .4-.2.8-.6 1.1-.4.3-.9.4-1.4.4-.4 0-.9-.1-1.3-.3-.4-.2-.7-.4-1.1-.7 0 0-1.1 1.4-1 1.5.5.4 1 .8 1.6 1 .7.3 1.5.4 2.3.4.5 0 1-.1 1.5-.3s.9-.4 1.3-.7c.4-.3.7-.7.9-1.1s.3-.9.3-1.4-.1-1-.3-1.4z"})),6:(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20.7 12.4c-.2-.3-.4-.6-.7-.9s-.6-.5-1-.6c-.4-.2-.8-.2-1.2-.2-.5 0-.9.1-1.3.3s-.8.5-1.2.8c0-.5 0-.9.2-1.4l.6-.9c.2-.2.5-.4.8-.5.6-.2 1.3-.2 1.9 0 .3.1.6.3.8.5 0 0 1.3-1.3 1.3-1.4-.4-.3-.9-.6-1.4-.8-.6-.2-1.3-.3-2-.3-.6 0-1.1.1-1.7.4-.5.2-1 .5-1.4.9-.4.4-.8 1-1 1.6-.3.7-.4 1.5-.4 2.3s.1 1.5.3 2.1c.2.6.6 1.1 1 1.5.4.4.9.7 1.4.9 1 .3 2 .3 3 0 .4-.1.8-.3 1.2-.6.3-.3.6-.6.8-1 .2-.5.3-.9.3-1.4s-.1-.9-.3-1.3zm-2 2.1c-.1.2-.3.4-.4.5-.1.1-.3.2-.5.2-.2.1-.4.1-.6.1-.2.1-.5 0-.7-.1-.2 0-.3-.2-.5-.3-.1-.2-.3-.4-.4-.6-.2-.3-.3-.7-.3-1 .3-.3.6-.5 1-.7.3-.1.7-.2 1-.2.4 0 .8.1 1.1.3.3.3.4.7.4 1.1 0 .2 0 .5-.1.7zM9 11H5V7H3v10h2v-4h4v4h2V7H9v4z"}))};function lw({level:e}){var t;return null!==(t=rw[e])&&void 0!==t?t:null}const iw=[1,2,3,4,5,6],aw={className:"block-library-heading-level-dropdown"};function sw({options:e=iw,value:t,onChange:n}){return(0,c.createElement)(m.ToolbarDropdownMenu,{popoverProps:aw,icon:(0,c.createElement)(lw,{level:t}),label:(0,v.__)("Change level"),controls:e.map((e=>{{const o=e===t;return{icon:(0,c.createElement)(lw,{level:e,isPressed:o}),label:0===e?(0,v.__)("Paragraph"):(0,v.sprintf)((0,v.__)("Heading %d"),e),isActive:o,onClick(){n(e)},role:"menuitemradio"}}}))})}var cw=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var uw=function({icon:e=cw,label:t=(0,v.__)("Choose variation"),instructions:n=(0,v.__)("Select a variation to start with."),variations:o,onSelect:r,allowSkip:l}){const i=d()("block-editor-block-variation-picker",{"has-many-variations":o.length>4});return(0,c.createElement)(m.Placeholder,{icon:e,label:t,instructions:n,className:i},(0,c.createElement)("ul",{className:"block-editor-block-variation-picker__variations",role:"list","aria-label":(0,v.__)("Block variations")},o.map((e=>(0,c.createElement)("li",{key:e.name},(0,c.createElement)(m.Button,{variant:"secondary",icon:e.icon&&e.icon.src?e.icon.src:e.icon,iconSize:48,onClick:()=>r(e),className:"block-editor-block-variation-picker__variation",label:e.description||e.title}),(0,c.createElement)("span",{className:"block-editor-block-variation-picker__variation-label"},e.title))))),l&&(0,c.createElement)("div",{className:"block-editor-block-variation-picker__skip"},(0,c.createElement)(m.Button,{variant:"link",onClick:()=>r()},(0,v.__)("Skip"))))};var dw=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"}));const pw="carousel",mw="grid",fw=({onBlockPatternSelect:e})=>(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__actions"},(0,c.createElement)(m.Button,{variant:"primary",onClick:e},(0,v.__)("Choose"))),gw=({handlePrevious:e,handleNext:t,activeSlide:n,totalSlides:o})=>(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__navigation"},(0,c.createElement)(m.Button,{icon:Gd,label:(0,v.__)("Previous pattern"),onClick:e,disabled:0===n}),(0,c.createElement)(m.Button,{icon:Hd,label:(0,v.__)("Next pattern"),onClick:t,disabled:n===o-1}));var hw=({viewMode:e,setViewMode:t,handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:l,onBlockPatternSelect:i})=>{const a=e===pw,s=(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__display-controls"},(0,c.createElement)(m.Button,{icon:ki,label:(0,v.__)("Carousel view"),onClick:()=>t(pw),isPressed:a}),(0,c.createElement)(m.Button,{icon:dw,label:(0,v.__)("Grid view"),onClick:()=>t(mw),isPressed:e===mw}));return(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__toolbar"},a&&(0,c.createElement)(gw,{handlePrevious:n,handleNext:o,activeSlide:r,totalSlides:l}),s,a&&(0,c.createElement)(fw,{onBlockPatternSelect:i}))};var bw=function(e,t,n){return(0,f.useSelect)((o=>{const{getBlockRootClientId:r,getPatternsByBlockTypes:l,__experimentalGetAllowedPatterns:i}=o(Go),a=r(e);return n?i(a).filter(n):l(t,a)}),[e,t,n])};const vw=({viewMode:e,activeSlide:t,patterns:n,onBlockPatternSelect:o,showTitles:r})=>{const l=(0,m.__unstableUseCompositeState)(),i="block-editor-block-pattern-setup__container";if(e===pw){const e=new Map([[t,"active-slide"],[t-1,"previous-slide"],[t+1,"next-slide"]]);return(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__carousel"},(0,c.createElement)("div",{className:i},(0,c.createElement)("ul",{className:"carousel-container"},n.map(((t,n)=>(0,c.createElement)(kw,{className:e.get(n)||"",key:t.name,pattern:t}))))))}return(0,c.createElement)("div",{className:"block-editor-block-pattern-setup__grid"},(0,c.createElement)(m.__unstableComposite,{...l,role:"listbox",className:i,"aria-label":(0,v.__)("Patterns list")},n.map((e=>(0,c.createElement)(_w,{key:e.name,pattern:e,onSelect:o,composite:l,showTitles:r})))))};function _w({pattern:e,onSelect:t,composite:n,showTitles:o}){const r="block-editor-block-pattern-setup-list",{blocks:l,description:i,viewportWidth:a=700}=e,s=(0,p.useInstanceId)(_w,`${r}__item-description`);return(0,c.createElement)("div",{className:`${r}__list-item`,"aria-label":e.title,"aria-describedby":e.description?s:void 0},(0,c.createElement)(m.__unstableCompositeItem,{role:"option",as:"div",...n,className:`${r}__item`,onClick:()=>t(l)},(0,c.createElement)(Em,{blocks:l,viewportWidth:a}),o&&(0,c.createElement)("div",{className:`${r}__item-title`},e.title),!!i&&(0,c.createElement)(m.VisuallyHidden,{id:s},i)))}function kw({className:e,pattern:t,minHeight:n}){const{blocks:o,title:r,description:l}=t,i=(0,p.useInstanceId)(kw,"block-editor-block-pattern-setup-list__item-description");return(0,c.createElement)("li",{className:`pattern-slide ${e}`,"aria-label":r,"aria-describedby":l?i:void 0},(0,c.createElement)(Em,{blocks:o,minHeight:n}),!!l&&(0,c.createElement)(m.VisuallyHidden,{id:i},l))}var yw=({clientId:e,blockName:t,filterPatternsFn:n,onBlockPatternSelect:o,initialViewMode:r=pw,showTitles:l=!1})=>{const[i,s]=(0,c.useState)(r),[u,d]=(0,c.useState)(0),{replaceBlock:p}=(0,f.useDispatch)(Go),m=bw(e,t,n);if(!m?.length)return null;const g=o||(t=>{const n=t.map((e=>(0,a.cloneBlock)(e)));p(e,n)});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:`block-editor-block-pattern-setup view-mode-${i}`},(0,c.createElement)(vw,{viewMode:i,activeSlide:u,patterns:m,onBlockPatternSelect:g,showTitles:l}),(0,c.createElement)(hw,{viewMode:i,setViewMode:s,activeSlide:u,totalSlides:m.length,handleNext:()=>{d((e=>e+1))},handlePrevious:()=>{d((e=>e-1))},onBlockPatternSelect:()=>{g(m[u].blocks)}})))};function Ew({className:e,onSelectVariation:t,selectedValue:n,variations:o}){return(0,c.createElement)("fieldset",{className:e},(0,c.createElement)(m.VisuallyHidden,{as:"legend"},(0,v.__)("Transform to variation")),o.map((e=>(0,c.createElement)(m.Button,{key:e.name,icon:(0,c.createElement)($d,{icon:e.icon,showColors:!0}),isPressed:n===e.name,label:n===e.name?e.title:(0,v.sprintf)((0,v.__)("Transform to %s"),e.title),onClick:()=>t(e.name),"aria-label":e.title,showTooltip:!0}))))}function ww({className:e,onSelectVariation:t,selectedValue:n,variations:o}){const r=o.map((({name:e,title:t,description:n})=>({value:e,label:t,info:n})));return(0,c.createElement)(m.DropdownMenu,{className:e,label:(0,v.__)("Transform to variation"),text:(0,v.__)("Transform to variation"),popoverProps:{position:"bottom center",className:`${e}__popover`},icon:Gy,toggleProps:{iconPosition:"right"}},(()=>(0,c.createElement)("div",{className:`${e}__container`},(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(m.MenuItemsChoice,{choices:r,value:n,onSelect:t})))))}var Sw=function({blockClientId:e}){const{updateBlockAttributes:t}=(0,f.useDispatch)(Go),{activeBlockVariation:n,variations:o}=(0,f.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockVariations:o}=t(a.store),{getBlockName:r,getBlockAttributes:l}=t(Go),i=e&&r(e);return{activeBlockVariation:n(i,l(e)),variations:i&&o(i,"transform")}}),[e]),r=n?.name,l=(0,c.useMemo)((()=>{const e=new Set;return!!o&&(o.forEach((t=>{t.icon&&e.add(t.icon?.src||t.icon)})),e.size===o.length)}),[o]);if(!o?.length)return null;const i=l?Ew:ww;return(0,c.createElement)(i,{className:"block-editor-block-variation-transforms",onSelectVariation:n=>{t(e,{...o.find((({name:e})=>e===n)).attributes})},selectedValue:r,variations:o})},Cw=(0,p.createHigherOrderComponent)((e=>t=>{const n=Xr("color.palette"),o=!Xr("color.custom"),r=void 0===t.colors?n:t.colors,l=void 0===t.disableCustomColors?o:t.disableCustomColors,i=r&&r.length>0||!l;return(0,c.createElement)(e,{...t,colors:r,disableCustomColors:l,hasColorsToChoose:i})}),"withColorContext"),xw=Cw(m.ColorPalette);function Bw({onChange:e,value:t,...n}){return(0,c.createElement)(Qh,{...n,onColorChange:e,colorValue:t,gradients:[],disableCustomGradients:!0})}var Iw=window.wp.date;const Tw=new Date(2022,0,25);function Mw({format:e,defaultFormat:t,onChange:n}){return(0,c.createElement)("fieldset",{className:"block-editor-date-format-picker"},(0,c.createElement)(m.VisuallyHidden,{as:"legend"},(0,v.__)("Date format")),(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Default format"),help:`${(0,v.__)("Example:")} ${(0,Iw.dateI18n)(t,Tw)}`,checked:!e,onChange:e=>n(e?null:t)}),e&&(0,c.createElement)(Pw,{format:e,onChange:n}))}function Pw({format:e,onChange:t}){var n;const o=[...new Set(["Y-m-d",(0,v._x)("n/j/Y","short date format"),(0,v._x)("n/j/Y g:i A","short date format with time"),(0,v._x)("M j, Y","medium date format"),(0,v._x)("M j, Y g:i A","medium date format with time"),(0,v._x)("F j, Y","long date format"),(0,v._x)("M j","short date format without the year")])],r=o.map(((e,t)=>({key:`suggested-${t}`,name:(0,Iw.dateI18n)(e,Tw),format:e}))),l={key:"custom",name:(0,v.__)("Custom"),className:"block-editor-date-format-picker__custom-format-select-control__custom-option",__experimentalHint:(0,v.__)("Enter your own date format")},[i,a]=(0,c.useState)((()=>!!e&&!o.includes(e)));return(0,c.createElement)(m.__experimentalVStack,null,(0,c.createElement)(m.CustomSelectControl,{__nextUnconstrainedWidth:!0,label:(0,v.__)("Choose a format"),options:[...r,l],value:i?l:null!==(n=r.find((t=>t.format===e)))&&void 0!==n?n:l,onChange:({selectedItem:e})=>{e===l?a(!0):(a(!1),t(e.format))}}),i&&(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Custom format"),hideLabelFromVision:!0,help:(0,c.createInterpolateElement)((0,v.__)("Enter a date or time <Link>format string</Link>."),{Link:(0,c.createElement)(m.ExternalLink,{href:(0,v.__)("https://wordpress.org/documentation/article/customize-date-and-time-format/")})}),value:e,onChange:e=>t(e)}))}const Nw=({setting:e,children:t,panelId:n,...o})=>(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>!!e.colorValue||!!e.gradientValue,label:e.label,onDeselect:()=>{e.colorValue?e.onColorChange():e.gradientValue&&e.onGradientChange()},isShownByDefault:void 0===e.isShownByDefault||e.isShownByDefault,...o,className:"block-editor-tools-panel-color-gradient-settings__item",panelId:n,resetAllFilter:e.resetAllFilter},t),Lw=({colorValue:e,label:t})=>(0,c.createElement)(m.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(m.ColorIndicator,{className:"block-editor-panel-color-gradient-settings__color-indicator",colorValue:e}),(0,c.createElement)(m.FlexItem,{className:"block-editor-panel-color-gradient-settings__color-name",title:t},t)),Rw=e=>({onToggle:t,isOpen:n})=>{const{colorValue:o,label:r}=e,l={onClick:t,className:d()("block-editor-panel-color-gradient-settings__dropdown",{"is-open":n}),"aria-expanded":n};return(0,c.createElement)(m.Button,{...l},(0,c.createElement)(Lw,{colorValue:o,label:r}))};function Aw({colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradients:r,settings:l,__experimentalIsRenderedInSidebar:i,...a}){let s;return i&&(s={placement:"left-start",offset:36,shift:!0}),(0,c.createElement)(c.Fragment,null,l.map(((l,u)=>{var d;const p={clearable:!1,colorValue:l.colorValue,colors:e,disableCustomColors:t,disableCustomGradients:n,enableAlpha:o,gradientValue:l.gradientValue,gradients:r,label:l.label,onColorChange:l.onColorChange,onGradientChange:l.onGradientChange,showTitle:!1,__experimentalIsRenderedInSidebar:i,...l},f={colorValue:null!==(d=l.gradientValue)&&void 0!==d?d:l.colorValue,label:l.label};return l&&(0,c.createElement)(Nw,{key:u,setting:l,...a},(0,c.createElement)(m.Dropdown,{popoverProps:s,className:"block-editor-tools-panel-color-gradient-settings__dropdown",renderToggle:Rw(f),renderContent:()=>(0,c.createElement)(m.__experimentalDropdownContentWrapper,{paddingSize:"none"},(0,c.createElement)("div",{className:"block-editor-panel-color-gradient-settings__dropdown-content"},(0,c.createElement)(Qh,{...p})))}))})))}const Dw=["colors","disableCustomColors","gradients","disableCustomGradients"],Ow=({className:e,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,children:l,settings:i,title:a,showTitle:s=!0,__experimentalIsRenderedInSidebar:u,enableAlpha:g})=>{const h=(0,p.useInstanceId)(Ow),{batch:b}=(0,f.useRegistry)();return t&&0!==t.length||n&&0!==n.length||!o||!r||!i?.every((e=>(!e.colors||0===e.colors.length)&&(!e.gradients||0===e.gradients.length)&&(void 0===e.disableCustomColors||e.disableCustomColors)&&(void 0===e.disableCustomGradients||e.disableCustomGradients)))?(0,c.createElement)(m.__experimentalToolsPanel,{className:d()("block-editor-panel-color-gradient-settings",e),label:s?a:void 0,resetAll:()=>{b((()=>{i.forEach((({colorValue:e,gradientValue:t,onColorChange:n,onGradientChange:o})=>{e?n():t&&o()}))}))},panelId:h,__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},(0,c.createElement)(Aw,{settings:i,panelId:h,colors:t,gradients:n,disableCustomColors:o,disableCustomGradients:r,__experimentalIsRenderedInSidebar:u,enableAlpha:g}),!!l&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.__experimentalSpacer,{marginY:4})," ",l)):null},zw=e=>{const t=lh();return(0,c.createElement)(Ow,{...t,...e})};var Vw=e=>Dw.every((t=>e.hasOwnProperty(t)))?(0,c.createElement)(Ow,{...e}):(0,c.createElement)(zw,{...e});const Fw=(0,c.createContext)({}),Hw=()=>(0,c.useContext)(Fw);function Gw({id:e,url:t,naturalWidth:n,naturalHeight:o,onFinishEditing:r,onSaveImage:l,children:i}){const a=function({url:e,naturalWidth:t,naturalHeight:n}){const[o,r]=(0,c.useState)(),[l,i]=(0,c.useState)(),[a,u]=(0,c.useState)({x:0,y:0}),[d,p]=(0,c.useState)(100),[m,f]=(0,c.useState)(0),g=t/n,[h,b]=(0,c.useState)(g),v=(0,c.useCallback)((()=>{const t=(m+90)%360;let n=g;if(m%180==90&&(n=1/g),0===t)return r(),f(t),b(g),void u({x:-a.y*n,y:a.x*n});const o=new window.Image;o.src=e,o.onload=function(e){const o=document.createElement("canvas");let l=0,i=0;t%180?(o.width=e.target.height,o.height=e.target.width):(o.width=e.target.width,o.height=e.target.height),90!==t&&180!==t||(l=o.width),270!==t&&180!==t||(i=o.height);const s=o.getContext("2d");s.translate(l,i),s.rotate(t*Math.PI/180),s.drawImage(e.target,0,0),o.toBlob((e=>{r(URL.createObjectURL(e)),f(t),b(o.width/o.height),u({x:-a.y*n,y:a.x*n})}))};const l=(0,s.applyFilters)("media.crossOrigin",void 0,e);"string"==typeof l&&(o.crossOrigin=l)}),[m,g]);return(0,c.useMemo)((()=>({editedUrl:o,setEditedUrl:r,crop:l,setCrop:i,position:a,setPosition:u,zoom:d,setZoom:p,rotation:m,setRotation:f,rotateClockwise:v,aspect:h,setAspect:b,defaultAspect:g})),[o,l,a,d,m,v,h,g])}({url:t,naturalWidth:n,naturalHeight:o}),u=function({crop:e,rotation:t,height:n,width:o,aspect:r,url:l,id:i,onSaveImage:a,onFinishEditing:s}){const{createErrorNotice:u}=(0,f.useDispatch)(Vm.store),[d,p]=(0,c.useState)(!1),m=(0,c.useCallback)((()=>{p(!1),s()}),[p,s]),g=(0,c.useCallback)((()=>{p(!0);const n=[];t>0&&n.push({type:"rotate",args:{angle:t}}),(e.width<99.9||e.height<99.9)&&n.push({type:"crop",args:{left:e.x,top:e.y,width:e.width,height:e.height}}),fy()({path:`/wp/v2/media/${i}/edit`,method:"POST",data:{src:l,modifiers:n}}).then((e=>{a({id:e.id,url:e.source_url})})).catch((e=>{u((0,v.sprintf)((0,v.__)("Could not edit image. %s"),(0,ea.__unstableStripHTML)(e.message)),{id:"image-editing-error",type:"snackbar"})})).finally((()=>{p(!1),s()}))}),[p,e,t,n,o,r,l,a,u,p,s]);return(0,c.useMemo)((()=>({isInProgress:d,apply:g,cancel:m})),[d,g,m])}({id:e,url:t,onSaveImage:l,onFinishEditing:r,...a}),d=(0,c.useMemo)((()=>({...a,...u})),[a,u]);return(0,c.createElement)(Fw.Provider,{value:d},i)}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
-var Uw=function(e,t){return Uw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Uw(e,t)};var $w=function(){return $w=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},$w.apply(this,arguments)};Object.create;Object.create;var jw=n(7970),Ww=n.n(jw);function Kw(e,t,n,o,r){void 0===r&&(r=0);var l=eS(t.width,t.height,r),i=l.width,a=l.height;return{x:qw(e.x,i,n.width,o),y:qw(e.y,a,n.height,o)}}function qw(e,t,n,o){var r=t*o/2-n/2;return tS(e,-r,r)}function Zw(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Yw(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function Xw(e,t){return Math.min(e,Math.max(0,t))}function Qw(e,t){return t}function Jw(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function eS(e,t,n){var o=n*Math.PI/180;return{width:Math.abs(Math.cos(o)*e)+Math.abs(Math.sin(o)*t),height:Math.abs(Math.sin(o)*e)+Math.abs(Math.cos(o)*t)}}function tS(e,t,n){return Math.min(Math.max(e,t),n)}function nS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var oS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=Ea().createRef(),n.videoRef=Ea().createRef(),n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:n.computeSizes()})),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=function(e,t,n,o,r,l){var i=eS(t.width,t.height,n),a=tS(o.width/i.width*(100/e.width),r,l);return{crop:{x:a*i.width/2-o.width/2-i.width*a*(e.x/100),y:a*i.height/2-o.height/2-i.height*a*(e.y/100)},zoom:a}}(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),o=t.crop,r=t.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}else if(n.props.initialCroppedAreaPixels){var l=function(e,t,n,o,r,l){void 0===n&&(n=0);var i=eS(t.naturalWidth,t.naturalHeight,n),a=tS(function(e,t,n){var o=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*o):n.width/(e.width*o)}(e,t,o),r,l),s=o.height>o.width?o.height/e.height:o.width/e.width;return{crop:{x:((i.width-e.width)/2-e.x)*s,y:((i.height-e.height)/2-e.y)*s},zoom:a}}(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);o=l.crop,r=l.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}},n.computeSizes=function(){var e,t,o,r,l,i,a=n.imageRef.current||n.videoRef.current;if(a&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect();var s=n.containerRect.width/n.containerRect.height,c=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(o=n.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef.current)||void 0===r?void 0:r.videoHeight)||0,d=c/u,p=void 0;if(a.offsetWidth<c||a.offsetHeight<u)switch(n.props.objectFit){default:case"contain":p=s>d?{width:n.containerRect.height*d,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/d};break;case"horizontal-cover":p={width:n.containerRect.width,height:n.containerRect.width/d};break;case"vertical-cover":p={width:n.containerRect.height*d,height:n.containerRect.height};break;case"auto-cover":p=c>u?{width:n.containerRect.width,height:n.containerRect.width/d}:{width:n.containerRect.height*d,height:n.containerRect.height}}else p={width:a.offsetWidth,height:a.offsetHeight};n.mediaSize=$w($w({},p),{naturalWidth:c,naturalHeight:u}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var m=n.props.cropSize?n.props.cropSize:function(e,t,n,o,r,l){void 0===l&&(l=0);var i=eS(e,t,l),a=i.width,s=i.height,c=Math.min(a,n),u=Math.min(s,o);return c>u*r?{width:u*r,height:u}:{width:c,height:c/r}}(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(l=n.state.cropSize)||void 0===l?void 0:l.height)===m.height&&(null===(i=n.state.cropSize)||void 0===i?void 0:i.width)===m.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(m),n.setState({cropSize:m},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(m),m}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(e){if(e.preventDefault(),!n.isTouching){var o=t.getMousePoint(e),r=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(r,o,{shouldUpdatePosition:!0}),n.props.onRotationChange){var l=n.gestureRotationStart+e.rotation;n.props.onRotationChange(l)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,o,r=e.x,l=e.y;n.dragStartPosition={x:r,y:l},n.dragStartCrop=$w({},n.props.crop),null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t)},n.onDrag=function(e){var t=e.x,o=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,l={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},i=n.props.restrictPosition?Kw(l,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):l;n.props.onCropChange(i)}})))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var o=t.getMousePoint(e),r=Ww()(e).pixelY,l=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(l,o,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},n.getPointOnContainer=function(e){var t=e.x,o=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(o-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,l=r.crop,i=r.zoom;return{x:(t+l.x)/i,y:(o+l.y)/i}},n.setNewZoom=function(e,t,o){var r=(void 0===o?{}:o).shouldUpdatePosition,l=void 0===r||r;if(n.state.cropSize&&n.props.onZoomChange){var i=tS(e,n.props.minZoom,n.props.maxZoom);if(l){var a=n.getPointOnContainer(t),s=n.getPointOnMedia(a),c={x:s.x*i-a.x,y:s.y*i-a.y},u=n.props.restrictPosition?Kw(c,n.mediaSize,n.state.cropSize,i,n.props.rotation):c;n.props.onCropChange(u)}n.props.onZoomChange(i)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,o,r,l,i){void 0===l&&(l=0),void 0===i&&(i=!0);var a=i?Xw:Qw,s=eS(t.width,t.height,l),c=eS(t.naturalWidth,t.naturalHeight,l),u={x:a(100,((s.width-n.width/r)/2-e.x/r)/s.width*100),y:a(100,((s.height-n.height/r)/2-e.y/r)/s.height*100),width:a(100,n.width/s.width*100/r),height:a(100,n.height/s.height*100/r)},d=Math.round(a(c.width,u.width*c.width/100)),p=Math.round(a(c.height,u.height*c.height/100)),m=c.width>=c.height*o?{width:Math.round(p*o),height:p}:{width:d,height:Math.round(d/o)};return{croppedAreaPercentages:u,croppedAreaPixels:$w($w({},m),{x:Math.round(a(c.width-m.width,u.x*c.width/100)),y:Math.round(a(c.height-m.height,u.y*c.height/100))})}}(n.props.restrictPosition?Kw(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,o),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?Kw(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}Uw(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,o,r,l,i,a,s,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(o=e.cropSize)||void 0===o?void 0:o.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(l=e.crop)||void 0===l?void 0:l.x)===(null===(i=this.props.crop)||void 0===i?void 0:i.x)&&(null===(a=e.crop)||void 0===a?void 0:a.y)===(null===(s=this.props.crop)||void 0===s?void 0:s.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=Zw(n,o),this.lastPinchRotation=Yw(n,o),this.onDragStart(Jw(n,o))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),l=Jw(o,r);this.onDrag(l),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=Zw(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,l,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var i=Yw(o,r),a=n.props.rotation+(i-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(a),n.lastPinchRotation=i}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,l=t.transform,i=t.crop,a=i.x,s=i.y,c=t.rotation,u=t.zoom,d=t.cropShape,p=t.showGrid,m=t.style,f=m.containerStyle,g=m.cropAreaStyle,h=m.mediaStyle,b=t.classes,v=b.containerClassName,_=b.cropAreaClassName,k=b.mediaClassName,y=t.objectFit;return Ea().createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:f,className:nS("reactEasyCrop_Container",v)},n?Ea().createElement("img",$w({alt:"",className:nS("reactEasyCrop_Image","contain"===y&&"reactEasyCrop_Contain","horizontal-cover"===y&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===y&&"reactEasyCrop_Cover_Vertical","auto-cover"===y&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),k)},r,{src:n,ref:this.imageRef,style:$w($w({},h),{transform:l||"translate(".concat(a,"px, ").concat(s,"px) rotate(").concat(c,"deg) scale(").concat(u,")")}),onLoad:this.onMediaLoad})):o&&Ea().createElement("video",$w({autoPlay:!0,loop:!0,muted:!0,className:nS("reactEasyCrop_Video","contain"===y&&"reactEasyCrop_Contain","horizontal-cover"===y&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===y&&"reactEasyCrop_Cover_Vertical","auto-cover"===y&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),k)},r,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:$w($w({},h),{transform:l||"translate(".concat(a,"px, ").concat(s,"px) rotate(").concat(c,"deg) scale(").concat(u,")")}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map((function(e){return Ea().createElement("source",$w({key:e.src},e))}))),this.state.cropSize&&Ea().createElement("div",{style:$w($w({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:nS("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",p&&"reactEasyCrop_CropAreaGrid",_)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(Ea().Component);const rS=100,lS=300,iS={placement:"bottom-start"};function aS({url:e,width:t,height:n,clientWidth:o,naturalHeight:r,naturalWidth:l,borderProps:i}){const{isInProgress:a,editedUrl:s,position:u,zoom:p,aspect:f,setPosition:g,setCrop:h,setZoom:b,rotation:v}=Hw();let _=n||o*r/l;return v%180==90&&(_=o*l/r),(0,c.createElement)("div",{className:d()("wp-block-image__crop-area",i?.className,{"is-applying":a}),style:{...i?.style,width:t||o,height:_}},(0,c.createElement)(oS,{image:s||e,disabled:a,minZoom:rS/100,maxZoom:lS/100,crop:u,zoom:p/100,aspect:f,onCropChange:e=>{g(e)},onCropComplete:e=>{h(e)},onZoomChange:e=>{b(100*e)}}),a&&(0,c.createElement)(m.Spinner,null))}var sS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));function cS(){const{isInProgress:e,zoom:t,setZoom:n}=Hw();return(0,c.createElement)(m.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:iS,renderToggle:({isOpen:t,onToggle:n})=>(0,c.createElement)(m.ToolbarButton,{icon:sS,label:(0,v.__)("Zoom"),onClick:n,"aria-expanded":t,disabled:e}),renderContent:()=>(0,c.createElement)(m.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Zoom"),min:rS,max:lS,value:Math.round(t),onChange:n})})}var uS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"}));function dS({aspectRatios:e,isDisabled:t,label:n,onClick:o,value:r}){return(0,c.createElement)(m.MenuGroup,{label:n},e.map((({title:e,aspect:n})=>(0,c.createElement)(m.MenuItem,{key:n,disabled:t,onClick:()=>{o(n)},role:"menuitemradio",isSelected:n===r,icon:n===r?Rv:void 0},e))))}function pS({toggleProps:e}){const{isInProgress:t,aspect:n,setAspect:o,defaultAspect:r}=Hw();return(0,c.createElement)(m.DropdownMenu,{icon:uS,label:(0,v.__)("Aspect Ratio"),popoverProps:iS,toggleProps:e,className:"wp-block-image__aspect-ratio"},(({onClose:e})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(dS,{isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:(0,v.__)("Original"),aspect:r},{title:(0,v.__)("Square"),aspect:1}]}),(0,c.createElement)(dS,{label:(0,v.__)("Landscape"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:(0,v.__)("16:10"),aspect:1.6},{title:(0,v.__)("16:9"),aspect:16/9},{title:(0,v.__)("4:3"),aspect:4/3},{title:(0,v.__)("3:2"),aspect:1.5}]}),(0,c.createElement)(dS,{label:(0,v.__)("Portrait"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:(0,v.__)("10:16"),aspect:.625},{title:(0,v.__)("9:16"),aspect:9/16},{title:(0,v.__)("3:4"),aspect:3/4},{title:(0,v.__)("2:3"),aspect:2/3}]}))))}var mS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));function fS(){const{isInProgress:e,rotateClockwise:t}=Hw();return(0,c.createElement)(m.ToolbarButton,{icon:mS,label:(0,v.__)("Rotate"),onClick:t,disabled:e})}function gS(){const{isInProgress:e,apply:t,cancel:n}=Hw();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.ToolbarButton,{onClick:t,disabled:e},(0,v.__)("Apply")),(0,c.createElement)(m.ToolbarButton,{onClick:n},(0,v.__)("Cancel")))}function hS({id:e,url:t,width:n,height:o,clientWidth:r,naturalHeight:l,naturalWidth:i,onSaveImage:a,onFinishEditing:s,borderProps:u}){return(0,c.createElement)(Gw,{id:e,url:t,naturalWidth:i,naturalHeight:l,onSaveImage:a,onFinishEditing:s},(0,c.createElement)(aS,{borderProps:u,url:t,width:n,height:o,clientWidth:r,naturalHeight:l,naturalWidth:i}),(0,c.createElement)(er,null,(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(cS,null),(0,c.createElement)(m.ToolbarItem,null,(e=>(0,c.createElement)(pS,{toggleProps:e}))),(0,c.createElement)(fS,null)),(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(gS,null))))}const bS=[25,50,75,100],vS=()=>{};function _S({imageSizeHelp:e,imageWidth:t,imageHeight:n,imageSizeOptions:o=[],isResizable:r=!0,slug:l,width:i,height:a,onChange:s,onChangeImage:u=vS}){$()("wp.blockEditor.__experimentalImageSizeControl",{since:"6.3",alternative:"wp.blockEditor.privateApis.DimensionsTool and wp.blockEditor.privateApis.ResolutionTool"});const{currentHeight:d,currentWidth:p,updateDimension:f,updateDimensions:g}=function(e,t,n,o,r){var l,i;const[a,s]=(0,c.useState)(null!==(l=null!=t?t:o)&&void 0!==l?l:""),[u,d]=(0,c.useState)(null!==(i=null!=e?e:n)&&void 0!==i?i:"");return(0,c.useEffect)((()=>{void 0===t&&void 0!==o&&s(o),void 0===e&&void 0!==n&&d(n)}),[o,n]),(0,c.useEffect)((()=>{void 0!==t&&Number.parseInt(t)!==Number.parseInt(a)&&s(t),void 0!==e&&Number.parseInt(e)!==Number.parseInt(u)&&d(e)}),[t,e]),{currentHeight:u,currentWidth:a,updateDimension:(e,t)=>{const n=""===t?void 0:parseInt(t,10);"width"===e?s(n):d(n),r({[e]:n})},updateDimensions:(e,t)=>{d(null!=e?e:n),s(null!=t?t:o),r({height:e,width:t})}}}(a,i,n,t,s);return(0,c.createElement)(c.Fragment,null,o&&o.length>0&&(0,c.createElement)(m.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Resolution"),value:l,options:o,onChange:u,help:e,size:"__unstable-large"}),r&&(0,c.createElement)("div",{className:"block-editor-image-size-control"},(0,c.createElement)(m.__experimentalHStack,{align:"baseline",spacing:"3"},(0,c.createElement)(m.__experimentalNumberControl,{className:"block-editor-image-size-control__width",label:(0,v.__)("Width"),value:p,min:1,onChange:e=>f("width",e),size:"__unstable-large"}),(0,c.createElement)(m.__experimentalNumberControl,{className:"block-editor-image-size-control__height",label:(0,v.__)("Height"),value:d,min:1,onChange:e=>f("height",e),size:"__unstable-large"})),(0,c.createElement)(m.__experimentalHStack,null,(0,c.createElement)(m.ButtonGroup,{"aria-label":(0,v.__)("Image size presets")},bS.map((e=>{const o=Math.round(t*(e/100)),r=Math.round(n*(e/100)),l=p===o&&d===r;return(0,c.createElement)(m.Button,{key:e,isSmall:!0,variant:l?"primary":void 0,isPressed:l,onClick:()=>g(r,o)},e,"%")}))),(0,c.createElement)(m.Button,{isSmall:!0,onClick:()=>g()},(0,v.__)("Reset")))))}var kS=function e({children:t,settingsOpen:n,setSettingsOpen:o}){const r=(0,p.useReducedMotion)(),l=r?c.Fragment:m.__unstableAnimatePresence,i=r?"div":m.__unstableMotion.div,a=`link-control-settings-drawer-${(0,p.useInstanceId)(e)}`;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.Button,{className:"block-editor-link-control__drawer-toggle","aria-expanded":n,onClick:()=>o(!n),icon:(0,v.isRTL)()?Qy:Cy,"aria-controls":a},(0,v._x)("Advanced","Additional link settings")),(0,c.createElement)(l,null,n&&(0,c.createElement)(i,{className:"block-editor-link-control__drawer",hidden:!n,id:a,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1}},(0,c.createElement)("div",{className:"block-editor-link-control__drawer-inner"},t))))},yS=n(5425),ES=n.n(yS);function wS(e){return"function"==typeof e}class SS extends c.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||(0,c.createRef)(),this.inputRef=(0,c.createRef)(),this.updateSuggestions=(0,p.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,isUpdatingSuggestions:!1,suggestionsValue:null,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o,__experimentalShowInitialSuggestions:r=!1}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,ES()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((()=>{this.scrollingIntoView=!1}),100)),e.value===o||this.props.disableSuggestions||this.state.isUpdatingSuggestions||(o?.length?this.updateSuggestions(o):r&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{__experimentalShowInitialSuggestions:e=!1,value:t}=this.props;return e&&!(t&&t.length)}updateSuggestions(e=""){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const o=!e?.length;if(e=e.trim(),!o&&(e.length<2||!n&&(0,Sf.isURL)(e)))return this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,void this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:e,selectedSuggestion:null,loading:!1});this.setState({isUpdatingSuggestions:!0,selectedSuggestion:null,loading:!0});const r=t(e,{isInitialSuggestions:o});r.then((t=>{this.suggestionsRequest===r&&(this.setState({suggestions:t,isUpdatingSuggestions:!1,suggestionsValue:e,loading:!1,showSuggestions:!!t.length}),t.length?this.props.debouncedSpeak((0,v.sprintf)((0,v._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):this.props.debouncedSpeak((0,v.__)("No results."),"assertive"))})).catch((()=>{this.suggestionsRequest===r&&this.setState({isUpdatingSuggestions:!1,loading:!1})})),this.suggestionsRequest=r}onChange(e){this.props.onChange(e.target.value)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.state.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n)}onKeyDown(e){this.props.onKeyDown?.(e);const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case yd.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case yd.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case yd.ENTER:this.props.onSubmit&&(e.preventDefault(),this.props.onSubmit(null,e))}return}const l=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case yd.UP:{e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case yd.DOWN:{e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case yd.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(l),this.props.speak((0,v.__)("Link selected.")));break;case yd.ENTER:e.preventDefault(),null!==this.state.selectedSuggestion?(this.selectLink(l),this.props.onSubmit&&this.props.onSubmit(l,e)):this.props.onSubmit&&this.props.onSubmit(null,e)}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:o=!1},{showSuggestions:r}){let l=r;const i=e&&e.length;return o||i||(l=!1),!0===n&&(l=!1),{showSuggestions:l,suggestionsListboxId:`block-editor-url-input-suggestions-${t}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${t}`}}render(){return(0,c.createElement)(c.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{__nextHasNoMarginBottom:e=!1,label:t=null,className:n,isFullWidth:o,instanceId:r,placeholder:l=(0,v.__)("Paste URL or type to search"),__experimentalRenderControl:i,value:a="",hideLabelFromVision:s=!1}=this.props,{loading:u,showSuggestions:p,selectedSuggestion:f,suggestionsListboxId:g,suggestionOptionIdPrefix:h}=this.state,b=`url-input-control-${r}`,_={id:b,label:t,className:d()("block-editor-url-input",n,{"is-full-width":o}),hideLabelFromVision:s},k={id:b,value:a,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:l,onKeyDown:this.onKeyDown,role:"combobox","aria-label":t?void 0:(0,v.__)("URL"),"aria-expanded":p,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==f?`${h}-${f}`:void 0,ref:this.inputRef};return i?i(_,k,u):(e||$()("Bottom margin styles for wp.blockEditor.URLInput",{since:"6.2",version:"6.5",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"}),(0,c.createElement)(m.BaseControl,{__nextHasNoMarginBottom:e,..._},(0,c.createElement)("input",{...k}),u&&(0,c.createElement)(m.Spinner,null)))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t}=this.props,{showSuggestions:n,suggestions:o,suggestionsValue:r,selectedSuggestion:l,suggestionsListboxId:i,suggestionOptionIdPrefix:a,loading:s}=this.state;if(!n||0===o.length)return null;const u={id:i,ref:this.autocompleteRef,role:"listbox"},p=(e,t)=>({role:"option",tabIndex:"-1",id:`${a}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===l||void 0});return wS(t)?t({suggestions:o,selectedSuggestion:l,suggestionsListProps:u,buildSuggestionItemProps:p,isLoading:s,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!r?.length,currentInputValue:r}):(0,c.createElement)(m.Popover,{placement:"bottom",focusOnMount:!1},(0,c.createElement)("div",{...u,className:d()("block-editor-url-input__suggestions",`${e}__suggestions`)},o.map(((e,t)=>(0,c.createElement)(m.Button,{...p(0,t),key:e.id,className:d()("block-editor-url-input__suggestion",{"is-selected":t===l}),onClick:()=>this.handleOnClick(e)},e.title)))))}}var CS=(0,p.compose)(p.withSafeTimeout,m.withSpokenMessages,p.withInstanceId,(0,f.withSelect)(((e,t)=>{if(wS(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(Go);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(SS);var xS=({searchTerm:e,onClick:t,itemProps:n,buttonText:o})=>{if(!e)return null;let r;return r=o?"function"==typeof o?o(e):o:(0,c.createInterpolateElement)((0,v.sprintf)((0,v.__)("Create: <mark>%s</mark>"),e),{mark:(0,c.createElement)("mark",null)}),(0,c.createElement)(m.MenuItem,{...n,iconPosition:"left",icon:zd,className:"block-editor-link-control__search-item",onClick:t},r)};var BS=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));var IS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var TS=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"}));var MS=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));var PS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));const NS={post:BS,page:gy,post_tag:IS,category:TS,attachment:MS};function LS({isURL:e,suggestion:t}){let n=null;return e?n=PS:t.type in NS&&(n=NS[t.type]),n?(0,c.createElement)(Xl,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function RS(e){return e.isFrontPage?"front page":"post_tag"===e.type?"tag":e.type}var AS=({itemProps:e,suggestion:t,searchTerm:n,onClick:o,isURL:r=!1,shouldShowType:l=!1})=>{const i=r?(0,v.__)("Press ENTER to add this link"):(0,Sf.filterURLForDisplay)((0,Sf.safeDecodeURI)(t?.url));return(0,c.createElement)(m.MenuItem,{...e,info:i,iconPosition:"left",icon:(0,c.createElement)(LS,{suggestion:t,isURL:r}),onClick:o,shortcut:l&&RS(t),className:"block-editor-link-control__search-item"},(0,c.createElement)(m.TextHighlight,{text:(0,ea.__unstableStripHTML)(t.title),highlight:n}))};const DS="__CREATE__",OS="link",zS="mailto",VS="internal",FS=[OS,zS,"tel",VS],HS=[{id:"opensInNewTab",title:(0,v.__)("Open in new tab")}];function GS({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:l,suggestions:i,selectedSuggestion:a,isLoading:s,isInitialSuggestions:u,createSuggestionButtonText:p,suggestionsQuery:f}){const g=d()("block-editor-link-control__search-results",{"is-loading":s}),h=1===i.length&&FS.includes(i[0].type),b=t&&!h&&!u,_=!f?.type,k=`block-editor-link-control-search-results-label-${e}`,y=u?(0,v.__)("Suggestions"):(0,v.sprintf)((0,v.__)('Search results for "%s"'),n),E=(0,c.createElement)(m.VisuallyHidden,{id:k},y);return(0,c.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},E,(0,c.createElement)("div",{...r,className:g,"aria-labelledby":k},(0,c.createElement)(m.MenuGroup,null,i.map(((e,t)=>b&&DS===e.type?(0,c.createElement)(xS,{searchTerm:n,buttonText:p,onClick:()=>o(e),key:e.type,itemProps:l(e,t),isSelected:t===a}):DS===e.type?null:(0,c.createElement)(AS,{key:`${e.id}-${e.type}`,itemProps:l(e,t),suggestion:e,index:t,onClick:()=>{o(e)},isSelected:t===a,isURL:FS.includes(e.type),searchTerm:n,shouldShowType:_,isFrontPage:e?.isFrontPage}))))))}function US(e){if(e.includes(" "))return!1;const t=(0,Sf.getProtocol)(e),n=(0,Sf.isValidProtocol)(t),o=function(e,t=6){const n=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(n)}(e),r=e?.startsWith("www."),l=e?.startsWith("#")&&(0,Sf.isValidFragment)(e);return n||r||l||o}const $S=()=>Promise.resolve([]),jS=e=>{let t=OS;const n=(0,Sf.getProtocol)(e)||"";return n.includes("mailto")&&(t=zS),n.includes("tel")&&(t="tel"),e?.startsWith("#")&&(t=VS),Promise.resolve([{id:e,title:e,url:"URL"===t?(0,Sf.prependHTTP)(e):e,type:t}])};function WS(e,t,n,o){const{fetchSearchSuggestions:r,pageOnFront:l}=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return{pageOnFront:t().pageOnFront,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),i=t?jS:$S;return(0,c.useCallback)(((t,{isInitialSuggestions:l})=>US(t)?i(t,{isInitialSuggestions:l}):(async(e,t,n,o,r)=>{const{isInitialSuggestions:l}=t,i=await n(e,t);return i.map((e=>Number(e.id)===r?(e.isFrontPage=!0,e):e)),l||US(e)||!o?i:i.concat({title:e,url:e,type:DS})})(t,{...e,isInitialSuggestions:l},r,n,o)),[i,r,l,e,n,o])}const KS=()=>Promise.resolve([]),qS=()=>{},ZS=(0,c.forwardRef)((({value:e,children:t,currentLink:n={},className:o=null,placeholder:r=null,withCreateSuggestion:l=!1,onCreateSuggestion:i=qS,onChange:a=qS,onSelect:s=qS,showSuggestions:u=!0,renderSuggestions:m=(e=>(0,c.createElement)(GS,{...e})),fetchSuggestions:f=null,allowDirectEntry:g=!0,showInitialSuggestions:h=!1,suggestionsQuery:b={},withURLSuggestion:_=!0,createSuggestionButtonText:k,hideLabelFromVision:y=!1},E)=>{const w=WS(b,g,l,_),S=u?f||w:KS,C=(0,p.useInstanceId)(ZS),[x,B]=(0,c.useState)(),I=async e=>{let t=e;if(DS!==e.type){if(g||t&&Object.keys(t).length>=1){const{id:e,url:o,...r}=null!=n?n:{};s({...r,...t},t)}}else try{t=await i(e.title),t?.url&&s(t)}catch(e){}},T=d()(o,{});return(0,c.createElement)("div",{className:"block-editor-link-control__search-input-container"},(0,c.createElement)(CS,{disableSuggestions:n?.url===e,__nextHasNoMarginBottom:!0,label:(0,v.__)("Link"),hideLabelFromVision:y,className:T,value:e,onChange:(e,t)=>{a(e),B(t)},placeholder:null!=r?r:(0,v.__)("Search or type url"),__experimentalRenderSuggestions:u?e=>m({...e,instanceId:C,withCreateSuggestion:l,createSuggestionButtonText:k,suggestionsQuery:b,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),I(t)}}):null,__experimentalFetchLinkSuggestions:S,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:h,onSubmit:(t,n)=>{const o=t||x;o||e?.trim()?.length?I(o||{url:e}):n.preventDefault()},ref:E}),t)}));var YS=ZS;var XS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));var QS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"}));const{Slot:JS,Fill:eC}=(0,m.createSlotFill)("BlockEditorLinkControlViewer");function tC(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error(`Unexpected action type ${t.type}`)}}var nC=function(e){const[t,n]=(0,c.useReducer)(tC,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return(0,c.useEffect)((()=>{if(e?.length&&o&&"undefined"!=typeof AbortController){n({type:"LOADING"});const t=new window.AbortController,r=t.signal;return o(e,{signal:r}).then((e=>{n({type:"RESOLVED",richData:e})})).catch((()=>{r.aborted||n({type:"ERROR"})})),()=>{t.abort()}}}),[e]),t};function oC({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:o=!1,onRemove:r}){const l=n?e?.url:null,{richData:i,isFetching:a}=nC(l),s=i&&Object.keys(i).length,u=e&&(0,Sf.filterURLForDisplay)((0,Sf.safeDecodeURI)(e.url),16)||"",p=i?.title||e?.title||u,f=!e?.url?.length;let g;return g=i?.icon?(0,c.createElement)("img",{src:i?.icon,alt:""}):f?(0,c.createElement)(Xl,{icon:XS,size:32}):(0,c.createElement)(Xl,{icon:PS}),(0,c.createElement)("div",{"aria-label":(0,v.__)("Currently selected"),className:d()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":s,"is-fetching":!!a,"is-preview":!0,"is-error":f})},(0,c.createElement)("div",{className:"block-editor-link-control__search-item-top"},(0,c.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,c.createElement)("span",{className:d()("block-editor-link-control__search-item-icon",{"is-image":i?.icon})},g),(0,c.createElement)("span",{className:"block-editor-link-control__search-item-details"},f?(0,c.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},(0,v.__)("Link is empty")):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.ExternalLink,{className:"block-editor-link-control__search-item-title",href:e.url},(0,ea.__unstableStripHTML)(p)),e?.url&&(0,c.createElement)("span",{className:"block-editor-link-control__search-item-info"},u)))),(0,c.createElement)(m.Button,{icon:QS,label:(0,v.__)("Edit"),className:"block-editor-link-control__search-item-action",onClick:t,iconSize:24}),o&&(0,c.createElement)(m.Button,{icon:gh,label:(0,v.__)("Unlink"),className:"block-editor-link-control__search-item-action block-editor-link-control__unlink",onClick:r,iconSize:24}),(0,c.createElement)(JS,{fillProps:e})),!!(s&&(i?.image||i?.description)||a)&&(0,c.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},(i?.image||a)&&(0,c.createElement)("div",{"aria-hidden":!i?.image,className:d()("block-editor-link-control__search-item-image",{"is-placeholder":!i?.image})},i?.image&&(0,c.createElement)("img",{src:i?.image,alt:""})),(i?.description||a)&&(0,c.createElement)("div",{"aria-hidden":!i?.description,className:d()("block-editor-link-control__search-item-description",{"is-placeholder":!i?.description})},i?.description&&(0,c.createElement)(m.__experimentalText,{truncate:!0,numberOfLines:"2"},i.description))))}const rC=()=>{};var lC=({value:e,onChange:t=rC,settings:n})=>{if(!n||!n.length)return null;const o=n=>o=>{t({...e,[n.id]:o})},r=n.map((t=>(0,c.createElement)(m.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-link-control__setting",key:t.id,label:t.title,onChange:o(t),checked:!!e&&!!e[t.id]})));return(0,c.createElement)("fieldset",{className:"block-editor-link-control__settings"},(0,c.createElement)(m.VisuallyHidden,{as:"legend"},(0,v.__)("Currently selected link settings")),r)};const iC=e=>{let t=!1;return{promise:new Promise(((n,o)=>{e.then((e=>t?o({isCanceled:!0}):n(e)),(e=>o(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}};const aC=()=>{};function sC({searchInputPlaceholder:e,value:t,settings:n=HS,onChange:o=aC,onRemove:r,onCancel:l,noDirectEntry:i=!1,showSuggestions:a=!0,showInitialSuggestions:s,forceIsEditingLink:u,createSuggestion:p,withCreateSuggestion:f,inputValue:g="",suggestionsQuery:h={},noURLSuggestion:b=!1,createSuggestionButtonText:_,hasRichPreviews:k=!1,hasTextControl:y=!1,renderControlBottom:E=null}){void 0===f&&p&&(f=!0);const w=(0,c.useRef)(!0),S=(0,c.useRef)(),C=(0,c.useRef)(),x=(0,c.useRef)(!1),B=n.map((({id:e})=>e)),[I,T]=(0,c.useState)(!1),[M,P,N,L,R]=function(e){const[t,n]=(0,c.useState)(e||{});return(0,c.useEffect)((()=>{n((t=>e&&e!==t?e:t))}),[e]),[t,n,e=>{n({...t,url:e})},e=>{n({...t,title:e})},e=>o=>{const r=Object.keys(o).reduce(((t,n)=>(e.includes(n)&&(t[n]=o[n]),t)),{});n({...t,...r})}]}(t),A=t&&!(0,o_.isShallowEqualObjects)(M,t),[D,O]=(0,c.useState)(void 0!==u?u:!t||!t.url),{createPage:z,isCreatingPage:V,errorMessage:F}=function(e){const t=(0,c.useRef)(),[n,o]=(0,c.useState)(!1),[r,l]=(0,c.useState)(null);return(0,c.useEffect)((()=>()=>{t.current&&t.current.cancel()}),[]),{createPage:async function(n){o(!0),l(null);try{return t.current=iC(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw l(e.message||(0,v.__)("An unknown error occurred during creation. Please try again.")),e}finally{o(!1)}},isCreatingPage:n,errorMessage:r}}(p);(0,c.useEffect)((()=>{void 0!==u&&u!==D&&O(u)}),[u]),(0,c.useEffect)((()=>{if(w.current)return void(w.current=!1);(ea.focus.focusable.find(S.current)[0]||S.current).focus(),x.current=!1}),[D,V]);const H=t?.url?.trim()?.length>0,G=()=>{x.current=!!S.current?.contains(S.current.ownerDocument.activeElement),T(!1),O(!1)},U=()=>{A&&o({...t,...M,url:$}),G()},$=g||M?.url||"",j=!$?.trim()?.length,W=r&&t&&!D&&!V,K=!!n?.length&&D&&H,q=D&&H,Z=H&&y,Y=(D||!t)&&!V,X=!A||j;return(0,c.createElement)("div",{tabIndex:-1,ref:S,className:"block-editor-link-control"},V&&(0,c.createElement)("div",{className:"block-editor-link-control__loading"},(0,c.createElement)(m.Spinner,null)," ",(0,v.__)("Creating"),"…"),Y&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:d()({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":Z})},Z&&(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,ref:C,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,v.__)("Text"),value:M?.title,onChange:L,onKeyDown:e=>{const{keyCode:t}=e;t!==yd.ENTER||j||(e.preventDefault(),U())},size:"__unstable-large"}),(0,c.createElement)(YS,{currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:$,withCreateSuggestion:f,onCreateSuggestion:z,onChange:N,onSelect:e=>{const t=Object.keys(e).reduce(((t,n)=>(B.includes(n)||(t[n]=e[n]),t)),{});o({...M,...t,title:M?.title||e?.title}),G()},showInitialSuggestions:s,allowDirectEntry:!i,showSuggestions:a,suggestionsQuery:h,withURLSuggestion:!b,createSuggestionButtonText:_,hideLabelFromVision:!Z})),F&&(0,c.createElement)(m.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},F)),t&&!D&&!V&&(0,c.createElement)(oC,{key:t?.url,value:t,onEditClick:()=>O(!0),hasRichPreviews:k,hasUnlinkControl:W,onRemove:r}),K&&(0,c.createElement)("div",{className:"block-editor-link-control__tools"},!j&&(0,c.createElement)(kS,{settingsOpen:I,setSettingsOpen:T},(0,c.createElement)(lC,{value:M,settings:n,onChange:R(B)}))),q&&(0,c.createElement)("div",{className:"block-editor-link-control__search-actions"},(0,c.createElement)(m.Button,{variant:"primary",onClick:X?aC:U,className:"block-editor-link-control__search-submit","aria-disabled":X},(0,v.__)("Save")),(0,c.createElement)(m.Button,{variant:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),P(t),H?G():r?.(),l?.()}},(0,v.__)("Cancel"))),E&&E())}sC.ViewerFill=eC;var cC=sC;var uC=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,c.createElement)(F.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"}));var dC=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));var pC=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"}));const mC=()=>{};let fC=0;var gC=(0,p.compose)([(0,f.withDispatch)((e=>{const{createNotice:t,removeNotice:n}=e(Vm.store);return{createNotice:t,removeNotice:n}})),(0,m.withFilters)("editor.MediaReplaceFlow")])((({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:o,accept:r,onError:l,onSelect:i,onSelectURL:a,onToggleFeaturedImage:s,useFeaturedImage:u,onFilesUpload:p=mC,name:g=(0,v.__)("Replace"),createNotice:h,removeNotice:b,children:_,multiple:k=!1,addToGallery:y,handleUpload:E=!0,popoverProps:w})=>{const S=(0,f.useSelect)((e=>e(Go).getSettings().mediaUpload),[]),C=!!S,x=(0,c.useRef)(),B="block-editor/media-replace-flow/error-notice/"+ ++fC,I=e=>{const t=(0,ea.__unstableStripHTML)(e);l?l(t):setTimeout((()=>{h("error",t,{speak:!0,id:B,isDismissible:!0})}),1e3)},T=(e,t)=>{u&&s&&s(),t(),i(e),(0,Cn.speak)((0,v.__)("The media file has been replaced")),b(B)},M=e=>{e.keyCode===yd.DOWN&&(e.preventDefault(),e.target.click())},P=k&&!(!o||0===o.length)&&o.every((e=>"image"===e||e.startsWith("image/")));return(0,c.createElement)(m.Dropdown,{popoverProps:w,contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>(0,c.createElement)(m.ToolbarButton,{ref:x,"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:M},g),renderContent:({onClose:l})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},(0,c.createElement)(qf,null,(0,c.createElement)(Zf,{gallery:P,addToGallery:y,multiple:k,value:k?n:t,onSelect:e=>T(e,l),allowedTypes:o,render:({open:e})=>(0,c.createElement)(m.MenuItem,{icon:uC,onClick:e},(0,v.__)("Open Media Library"))}),(0,c.createElement)(m.FormFileUpload,{onChange:e=>{((e,t)=>{const n=e.target.files;if(!E)return t(),i(n);p(n),S({allowedTypes:o,filesList:n,onFileChange:([e])=>{T(e,t)},onError:I})})(e,l)},accept:r,multiple:k,render:({openFileDialog:e})=>(0,c.createElement)(m.MenuItem,{icon:dC,onClick:()=>{e()}},(0,v.__)("Upload"))})),s&&(0,c.createElement)(m.MenuItem,{icon:pC,onClick:s,isPressed:u},(0,v.__)("Use featured image")),_),a&&(0,c.createElement)("form",{className:d()("block-editor-media-flow__url-input",{"has-siblings":C||s})},(0,c.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},(0,v.__)("Current media URL:")),(0,c.createElement)(m.Tooltip,{text:e,position:"bottom"},(0,c.createElement)("div",null,(0,c.createElement)(cC,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:e})=>{a(e),x.current.focus()}})))))})}));var hC=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,c.createElement)(F.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));function bC({url:e,urlLabel:t,className:n}){const o=d()(n,"block-editor-url-popover__link-viewer-url");return e?(0,c.createElement)(m.ExternalLink,{className:o,href:e},t||(0,Sf.filterURLForDisplay)((0,Sf.safeDecodeURI)(e))):(0,c.createElement)("span",{className:o})}const{__experimentalPopoverLegacyPositionToPlacement:vC}=Fo(m.privateApis);function _C({additionalControls:e,children:t,renderSettings:n,placement:o,focusOnMount:r="firstElement",position:l,...i}){let a;void 0!==l&&$()("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"}),void 0!==o?a=o:void 0!==l&&(a=vC(l)),a=a||"bottom";const[s,u]=(0,c.useState)(!1),d=!!n&&s;return(0,c.createElement)(m.Popover,{className:"block-editor-url-popover",focusOnMount:r,placement:a,shift:!0,...i},(0,c.createElement)("div",{className:"block-editor-url-popover__input-container"},(0,c.createElement)("div",{className:"block-editor-url-popover__row"},t,!!n&&(0,c.createElement)(m.Button,{className:"block-editor-url-popover__settings-toggle",icon:Gy,label:(0,v.__)("Link settings"),onClick:()=>{u(!s)},"aria-expanded":s})),d&&(0,c.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},n())),e&&!d&&(0,c.createElement)("div",{className:"block-editor-url-popover__additional-controls"},e))}_C.LinkEditor=function({autocompleteRef:e,className:t,onChangeInputValue:n,value:o,...r}){return(0,c.createElement)("form",{className:d()("block-editor-url-popover__link-editor",t),...r},(0,c.createElement)(CS,{__nextHasNoMarginBottom:!0,value:o,onChange:n,autocompleteRef:e}),(0,c.createElement)(m.Button,{icon:hC,label:(0,v.__)("Apply"),type:"submit"}))},_C.LinkViewer=function({className:e,linkClassName:t,onEditLinkClick:n,url:o,urlLabel:r,...l}){return(0,c.createElement)("div",{className:d()("block-editor-url-popover__link-viewer",e),...l},(0,c.createElement)(bC,{url:o,urlLabel:r,className:t}),n&&(0,c.createElement)(m.Button,{icon:QS,label:(0,v.__)("Edit"),onClick:n}))};var kC=_C;const yC=()=>{},EC=({src:e,onChange:t,onSubmit:n,onClose:o,popoverAnchor:r})=>(0,c.createElement)(kC,{anchor:r,onClose:o},(0,c.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n},(0,c.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":(0,v.__)("URL"),placeholder:(0,v.__)("Paste or type URL"),onChange:t,value:e}),(0,c.createElement)(m.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:hC,label:(0,v.__)("Apply"),type:"submit"}))),wC=({isURLInputVisible:e,src:t,onChangeSrc:n,onSubmitSrc:o,openURLInput:r,closeURLInput:l})=>{const[i,a]=(0,c.useState)(null);return(0,c.createElement)("div",{className:"block-editor-media-placeholder__url-input-container",ref:a},(0,c.createElement)(m.Button,{className:"block-editor-media-placeholder__button",onClick:r,isPressed:e,variant:"tertiary"},(0,v.__)("Insert from URL")),e&&(0,c.createElement)(EC,{src:t,onChange:n,onSubmit:o,onClose:l,popoverAnchor:i}))};var SC=(0,m.withFilters)("editor.MediaPlaceholder")((function({value:e={},allowedTypes:t,className:n,icon:o,labels:r={},mediaPreview:l,notices:i,isAppender:s,accept:u,addToGallery:p,multiple:g=!1,handleUpload:h=!0,disableDropZone:b,disableMediaButtons:_,onError:k,onSelect:y,onCancel:E,onSelectURL:w,onToggleFeaturedImage:S,onDoubleClick:C,onFilesPreUpload:x=yC,onHTMLDrop:B,children:I,mediaLibraryButton:T,placeholder:M,style:P}){B&&$()("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});const N=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return t().mediaUpload}),[]),[L,R]=(0,c.useState)(""),[A,D]=(0,c.useState)(!1);(0,c.useEffect)((()=>{var t;R(null!==(t=e?.src)&&void 0!==t?t:"")}),[e?.src]);const O=e=>{R(e.target.value)},z=()=>{D(!0)},V=()=>{D(!1)},F=e=>{e.preventDefault(),L&&w&&(w(L),V())},H=n=>{if(!h)return y(n);let o;if(x(n),g)if(p){let t=[];o=n=>{const o=(null!=e?e:[]).filter((e=>e.id?!t.some((({id:t})=>Number(t)===Number(e.id))):!t.some((({urlSlug:t})=>e.url.includes(t)))));y(o.concat(n)),t=n.map((e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else o=y;else o=([e])=>y(e);N({allowedTypes:t,filesList:n,onFileChange:o,onError:k})};async function G(e){const n=(0,a.pasteHandler)({HTML:e});return await async function(e){if(!e||!Array.isArray(e))return;const n=function e(t){return t.flatMap((t=>"core/image"!==t.name&&"core/audio"!==t.name&&"core/video"!==t.name||!t.attributes.url?e(t.innerBlocks):[t]))}(e);if(!n.length)return;const o=await Promise.all(n.map((e=>e.attributes.id?e.attributes:new Promise(((n,o)=>{window.fetch(e.attributes.url).then((e=>e.blob())).then((r=>N({filesList:[r],additionalData:{title:e.attributes.title,alt_text:e.attributes.alt,caption:e.attributes.caption},onFileChange:([e])=>{e.id&&n(e)},allowedTypes:t,onError:o}))).catch((()=>n(e.attributes.url)))}))))).catch((e=>k(e)));y(g?o:o[0])}(n)}const U=e=>{H(e.target.files)},j=null!=M?M:e=>{let{instructions:a,title:u}=r;if(N||w||(a=(0,v.__)("To edit this block, you need permission to upload media.")),void 0===a||void 0===u){const e=null!=t?t:[],[n]=e,o=1===e.length,r=o&&"audio"===n,l=o&&"image"===n,i=o&&"video"===n;void 0===a&&N&&(a=(0,v.__)("Upload a media file or pick one from your media library."),r?a=(0,v.__)("Upload an audio file, pick one from your media library, or add one with a URL."):l?a=(0,v.__)("Upload an image file, pick one from your media library, or add one with a URL."):i&&(a=(0,v.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===u&&(u=(0,v.__)("Media"),r?u=(0,v.__)("Audio"):l?u=(0,v.__)("Image"):i&&(u=(0,v.__)("Video")))}const p=d()("block-editor-media-placeholder",n,{"is-appender":s});return(0,c.createElement)(m.Placeholder,{icon:o,label:u,instructions:a,className:p,notices:i,onDoubleClick:C,preview:l,style:P},e,I)},W=()=>b?null:(0,c.createElement)(m.DropZone,{onFilesDrop:H,onHTMLDrop:G}),K=()=>E&&(0,c.createElement)(m.Button,{className:"block-editor-media-placeholder__cancel-button",title:(0,v.__)("Cancel"),variant:"link",onClick:E},(0,v.__)("Cancel")),q=()=>w&&(0,c.createElement)(wC,{isURLInputVisible:A,src:L,onChangeSrc:O,onSubmitSrc:F,openURLInput:z,closeURLInput:V}),Z=()=>S&&(0,c.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},(0,c.createElement)(m.Button,{className:"block-editor-media-placeholder__button",onClick:S,variant:"tertiary"},(0,v.__)("Use featured image")));return _?(0,c.createElement)(qf,null,W()):(0,c.createElement)(qf,{fallback:j(q())},(()=>{const n=null!=T?T:({open:e})=>(0,c.createElement)(m.Button,{variant:"tertiary",onClick:()=>{e()}},(0,v.__)("Media Library")),o=(0,c.createElement)(Zf,{addToGallery:p,gallery:g&&!(!t||0===t.length)&&t.every((e=>"image"===e||e.startsWith("image/"))),multiple:g,onSelect:y,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map((({id:e})=>e)):e.id,render:n});if(N&&s)return(0,c.createElement)(c.Fragment,null,W(),(0,c.createElement)(m.FormFileUpload,{onChange:U,accept:u,multiple:g,render:({openFileDialog:e})=>{const t=(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.Button,{variant:"primary",className:d()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:e},(0,v.__)("Upload")),o,q(),Z(),K());return j(t)}}));if(N){const e=(0,c.createElement)(c.Fragment,null,W(),(0,c.createElement)(m.FormFileUpload,{variant:"primary",className:d()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:U,accept:u,multiple:g},(0,v.__)("Upload")),o,q(),Z(),K());return j(e)}return j(o)})())}));var CC=({colorSettings:e,...t})=>{const n=e.map((e=>{if(!e)return e;const{value:t,onChange:n,...o}=e;return{...o,colorValue:t,onColorChange:n}}));return(0,c.createElement)(Vw,{settings:n,gradients:[],disableCustomGradients:!0,...t})};const xC={placement:"bottom-start"};var BC=()=>(0,c.createElement)(c.Fragment,null,["bold","italic","link","unknown"].map((e=>(0,c.createElement)(m.Slot,{name:`RichText.ToolbarControls.${e}`,key:e}))),(0,c.createElement)(m.Slot,{name:"RichText.ToolbarControls"},(e=>{if(!e.length)return null;const t=e.map((([{props:e}])=>e)).some((({isActive:e})=>e));return(0,c.createElement)(m.ToolbarItem,null,(n=>(0,c.createElement)(m.DropdownMenu,{icon:Gy,label:(0,v.__)("More"),toggleProps:{...n,className:d()(n.className,{"is-pressed":t}),describedBy:(0,v.__)("Displays more block tools")},controls:K(e.map((([{props:e}])=>e)),"title"),popoverProps:xC})))})));function IC(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}function TC(e,t,n,o,r,l){const[i]=(0,c.useState)(t),[a]=(0,c.useState)(o),s=(0,c.useCallback)((()=>{!function(e){const[t]=ea.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}(e.current)}),[]);(0,op.useShortcut)("core/block-editor/focus-toolbar",(()=>{l&&s()})),(0,c.useEffect)((()=>{i&&s()}),[n,i,s]),(0,c.useEffect)((()=>{const t=e.current;let n=0;return i||(n=window.requestAnimationFrame((()=>{const e=IC(t),n=a||0;var o;e[n]&&(o=t).contains(o.ownerDocument.activeElement)&&e[n].focus({preventScroll:!0})}))),()=>{if(window.cancelAnimationFrame(n),!r||!t)return;const e=IC(t).findIndex((e=>0===e.tabIndex));r(e)}}),[a,i])}var MC=function({children:e,focusOnMount:t,shouldUseKeyboardFocusShortcut:n=!0,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,...l}){const i=(0,c.useRef)(),a=function(e){const[t,n]=(0,c.useState)(!0),o=(0,c.useCallback)((()=>{const t=!ea.focus.tabbable.find(e.current).some((e=>!("toolbarItem"in e.dataset)));t||$()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(t)}),[]);return(0,c.useLayoutEffect)((()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()}),[t]),t}(i);return TC(i,t,a,o,r,n),a?(0,c.createElement)(m.Toolbar,{label:l["aria-label"],ref:i,...l},e):(0,c.createElement)(m.NavigableMenu,{orientation:"horizontal",role:"toolbar",ref:i,...l},e)};function PC({editableContentElement:e,activeFormats:t}){const n=t[t.length-1],o=n?.type,r=(0,f.useSelect)((e=>e(G.store).getFormatType(o)),[o]),l=(0,G.useAnchor)({editableContentElement:e,settings:r});return(0,c.createElement)(NC,{popoverAnchor:l})}function NC({popoverAnchor:e}){return(0,c.createElement)(m.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},(0,c.createElement)(MC,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,v.__)("Format tools")},(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(BC,null))))}var LC=({inline:e,editableContentElement:t,value:n})=>{const o=(0,f.useSelect)((e=>e(Go).getSettings().hasInlineToolbar),[]);if(e)return(0,c.createElement)(NC,{popoverAnchor:t});if(o){const e=(0,G.getActiveFormats)(n);return(0,G.isCollapsed)(n)&&!e.length?null:(0,c.createElement)(PC,{editableContentElement:t,activeFormats:e})}return(0,c.createElement)(er,{group:"inline"},(0,c.createElement)(BC,null))};function RC(){const{didAutomaticChange:e,getSettings:t}=(0,f.useSelect)(Go);return(0,p.useRefEffect)((n=>{function o(n){const{keyCode:o}=n;if(n.defaultPrevented)return;if(o!==yd.DELETE&&o!==yd.BACKSPACE&&o!==yd.ESCAPE)return;const{__experimentalUndo:r}=t();r&&e()&&(n.preventDefault(),r())}return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}),[])}var AC=window.wp.shortcode;function DC(e,t){if(t?.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}function OC(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function zC({allowedFormats:e,disableFormats:t}){return t?zC.EMPTY_ARRAY:e}zC.EMPTY_ARRAY=[];const VC=e=>(0,AC.regexp)(".*").test(e);function FC({value:e,pastedBlocks:t=[],onReplace:n,onSplit:o,onSplitMiddle:r,multilineTag:l}){if(!n||!o)return;const{start:i=0,end:a=0}=e,s={...e,start:i,end:a},c=[],[u,d]=(0,G.split)(s),p=t.length>0;let m=-1;const f=(0,G.isEmpty)(u)&&!(0,G.isEmpty)(d);p&&(0,G.isEmpty)(u)||(c.push(o((0,G.toHTMLString)({value:u,multilineTag:l}),!f)),m+=1),p?(c.push(...t),m+=t.length):r&&c.push(r()),(p||r)&&(0,G.isEmpty)(d)||c.push(o((0,G.toHTMLString)({value:d,multilineTag:l}),f));n(c,p?m:1,p?-1:0)}function HC(e,t){return t?(0,G.replace)(e,/\n+/g,G.__UNSTABLE_LINE_SEPARATOR):(0,G.replace)(e,new RegExp(G.__UNSTABLE_LINE_SEPARATOR,"g"),"\n")}function GC(e){const t=(0,c.useRef)(e);return t.current=e,(0,p.useRefEffect)((e=>{function n(e){const{isSelected:n,disableFormats:o,onChange:r,value:l,formatTypes:i,tagName:s,onReplace:c,onSplit:u,onSplitMiddle:d,__unstableEmbedURLOnPaste:p,multilineTag:m,preserveWhiteSpace:f,pastePlainText:g}=t.current;if(!n)return;const{clipboardData:h}=e;let b="",v="";try{b=h.getData("text/plain"),v=h.getData("text/html")}catch(e){try{v=h.getData("Text")}catch(e){return}}if(v=function(e){const t="\x3c!--StartFragment--\x3e",n=e.indexOf(t);if(!(n>-1))return e;e=e.substring(n+t.length);const o="\x3c!--EndFragment--\x3e",r=e.indexOf(o);r>-1&&(e=e.substring(0,r));return e}(v),v=function(e){const t="<meta charset='utf-8'>";if(e.startsWith(t))return e.slice(t.length);return e}(v),e.preventDefault(),window.console.log("Received HTML:\n\n",v),window.console.log("Received plain text:\n\n",b),o)return void r((0,G.insert)(l,b));const _=i.reduce(((e,{__unstablePasteRule:t})=>(t&&e===l&&(e=t(l,{html:v,plainText:b})),e)),l);if(_!==l)return void r(_);const k=[...(0,ea.getFilesFromDataTransfer)(h)];if("true"===h.getData("rich-text")){const e=h.getData("rich-text-multi-line-tag")||void 0;let t=(0,G.create)({html:v,multilineTag:e,multilineWrapperTags:"li"===e?["ul","ol"]:void 0,preserveWhiteSpace:f});return t=HC(t,!!m),DC(t,l.activeFormats),void r((0,G.insert)(l,t))}if(g)return void r((0,G.insert)(l,(0,G.create)({text:b})));if(k?.length&&window.console.log("Received items:\n\n",k),k?.length&&!gE(k,v)){const e=(0,a.getBlockTransforms)("from"),t=k.reduce(((t,n)=>{const o=(0,a.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat();if(!t.length)return;return void(c&&(0,G.isEmpty)(l)?c(t):FC({value:l,pastedBlocks:t,onReplace:c,onSplit:u,onSplitMiddle:d,multilineTag:m}))}let y=c&&u?"AUTO":"INLINE";"AUTO"===y&&(0,G.isEmpty)(l)&&VC(b)&&(y="BLOCKS"),p&&(0,G.isEmpty)(l)&&(0,Sf.isURL)(b.trim())&&(y="BLOCKS");const E=(0,a.pasteHandler)({HTML:v,plainText:b,mode:y,tagName:s,preserveWhiteSpace:f});if("string"==typeof E){let e=(0,G.create)({html:E});e=HC(e,!!m),DC(e,l.activeFormats),r((0,G.insert)(l,e))}else E.length>0&&(c&&(0,G.isEmpty)(l)?c(E,E.length-1,-1):FC({value:l,pastedBlocks:E,onReplace:c,onSplit:u,onSplitMiddle:d,multilineTag:m}))}return e.addEventListener("paste",n),()=>{e.removeEventListener("paste",n)}}),[])}const UC=["`",'"',"'","“”","‘’"];function $C(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=(0,f.useDispatch)(Go),o=(0,c.useRef)(e);return o.current=e,(0,p.useRefEffect)((e=>{function r(r){const{inputType:l,data:i}=r,{value:a,onChange:c}=o.current;if("insertText"!==l)return;if((0,G.isCollapsed)(a))return;const u=(0,s.applyFilters)("blockEditor.wrapSelectionSettings",UC).find((([e,t])=>e===i||t===i));if(!u)return;const[d,p=d]=u,m=a.start,f=a.end+d.length;let g=(0,G.insert)(a,d,m,m);g=(0,G.insert)(g,p,f,f),t(),c(g),n();const h={};for(const e in r)h[e]=r[e];h.data=p;const{ownerDocument:b}=e,{defaultView:v}=b,_=new v.InputEvent("input",h);window.queueMicrotask((()=>{r.target.dispatchEvent(_)})),r.preventDefault()}return e.addEventListener("beforeinput",r),()=>{e.removeEventListener("beforeinput",r)}}),[])}function jC(e){let t=e.length;for(;t--;){const n=Bn(e[t].attributes);if(n)return e[t].attributes[n]=e[t].attributes[n].replace(xn,""),[e[t].clientId,n,0,0];const o=jC(e[t].innerBlocks);if(o)return o}return[]}function WC(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=(0,f.useDispatch)(Go),o=(0,c.useRef)(e);return o.current=e,(0,p.useRefEffect)((e=>{function r(){const{getValue:e,onReplace:t,selectionChange:r}=o.current;if(!t)return;const l=e(),{start:i,text:s}=l;if(" "!==s.slice(i-1,i))return;const c=s.slice(0,i).trim(),u=(0,a.getBlockTransforms)("from").filter((({type:e})=>"prefix"===e)),d=(0,a.findTransform)(u,(({prefix:e})=>c===e));if(!d)return;const p=(0,G.toHTMLString)({value:(0,G.insert)(l,xn,0,i)}),m=d.transform(p);return r(...jC([m])),t([m]),n(),!0}function l(e){const{inputType:l,type:i}=e,{getValue:a,onChange:s,__unstableAllowPrefixTransformations:c,formatTypes:u}=o.current;if("insertText"!==l&&"compositionend"!==i)return;if(c&&r&&r())return;const d=a(),p=u.reduce(((e,{__unstableInputRule:t})=>(t&&(e=t(e)),e)),function(e){const t="tales of gutenberg",{start:n,text:o}=e;return n<18||o.slice(n-18,n).toLowerCase()!==t?e:(0,G.insert)(e," 🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️")}(d));p!==d&&(t(),s({...p,activeFormats:d.activeFormats}),n())}return e.addEventListener("input",l),e.addEventListener("compositionend",l),()=>{e.removeEventListener("input",l),e.removeEventListener("compositionend",l)}}),[])}function KC(e){const t=(0,c.useRef)(e);return t.current=e,(0,p.useRefEffect)((e=>{function n(e){const{keyCode:n}=e;if(e.defaultPrevented)return;const{value:o,onMerge:r,onRemove:l}=t.current;if(n===yd.DELETE||n===yd.BACKSPACE){const{start:t,end:i,text:a}=o,s=n===yd.BACKSPACE,c=o.activeFormats&&!!o.activeFormats.length;if(!(0,G.isCollapsed)(o)||c||s&&0!==t||!s&&i!==a.length)return;r&&r(!s),l&&(0,G.isEmpty)(o)&&s&&l(!s),e.preventDefault()}}return e.addEventListener("keydown",n),()=>{e.removeEventListener("keydown",n)}}),[])}function qC(e){const{__unstableMarkAutomaticChange:t}=(0,f.useDispatch)(Go),n=(0,c.useRef)(e);return n.current=e,(0,p.useRefEffect)((e=>{function o(e){if(e.defaultPrevented)return;if(e.keyCode!==yd.ENTER)return;const{removeEditorOnlyFormats:o,value:r,onReplace:l,onSplit:i,onSplitMiddle:s,multilineTag:c,onChange:u,disableLineBreaks:d,onSplitAtEnd:p}=n.current;e.preventDefault();const m={...r};m.formats=o(r);const f=l&&i;if(l){const e=(0,a.getBlockTransforms)("from").filter((({type:e})=>"enter"===e)),n=(0,a.findTransform)(e,(e=>e.regExp.test(m.text)));n&&(l([n.transform({content:m.text})]),t())}if(c)e.shiftKey?d||u((0,G.insert)(m,"\n")):f&&(0,G.__unstableIsEmptyLine)(m)?FC({value:m,onReplace:l,onSplit:i,onSplitMiddle:s,multilineTag:c}):u((0,G.__unstableInsertLineSeparator)(m));else{const{text:t,start:n,end:o}=m,r=p&&n===o&&o===t.length;e.shiftKey||!f&&!r?d||u((0,G.insert)(m,"\n")):!f&&r?p():f&&FC({value:m,onReplace:l,onSplit:i,onSplitMiddle:s,multilineTag:c})}}return e.addEventListener("keydown",o),()=>{e.removeEventListener("keydown",o)}}),[])}function ZC(e){return e(G.store).getFormatTypes()}const YC=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function XC(e,t){return"object"!=typeof e?{[t]:e}:Object.fromEntries(Object.entries(e).map((([e,n])=>[`${t}.${e}`,n])))}function QC(e,t){return e[t]?e[t]:Object.keys(e).filter((e=>e.startsWith(t+"."))).reduce(((n,o)=>(n[o.slice(t.length+1)]=e[o],n)),{})}function JC(e){return(0,p.useRefEffect)((t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}}),[])}function ex(e){return(0,p.useRefEffect)((t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("input",n),()=>{t.removeEventListener("input",n)}}),[])}function tx(){const{__unstableMarkLastChangeAsPersistent:e}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((t=>{function n(t){"insertReplacementText"===t.inputType&&e()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}}),[])}function nx(e){const t=(0,c.useRef)(e);t.current=e;const{isMultiSelecting:n}=(0,f.useSelect)(Go);return(0,p.useRefEffect)((e=>{function o(){if(!n())return;const t=e.parentElement.closest('[contenteditable="true"]');t&&t.focus()}function r(n){if(n.keyCode!==yd.SPACE)return;if(null===e.closest("button, summary"))return;const{value:o,onChange:r}=t.current;r((0,G.insert)(o," ")),n.preventDefault()}return e.addEventListener("focus",o),e.addEventListener("keydown",r),()=>{e.removeEventListener("focus",o),e.removeEventListener("keydown",r)}}),[])}const ox={},rx=Symbol("usesContext");function lx({onChange:e,onFocus:t,value:n,forwardedRef:o,settings:r}){const{name:l,edit:i,[rx]:a}=r,s=(0,c.useContext)(oa),u=(0,c.useMemo)((()=>a?Object.fromEntries(Object.entries(s).filter((([e])=>a.includes(e)))):ox),[a,s]);if(!i)return null;const d=(0,G.getActiveFormat)(n,l),p=void 0!==d,m=(0,G.getActiveObject)(n),f=void 0!==m&&m.type===l;return(0,c.createElement)(i,{key:l,isActive:p,activeAttributes:p&&d.attributes||{},isObjectActive:f,activeObjectAttributes:f&&m.attributes||{},value:n,onChange:e,onFocus:t,contentRef:o,context:u})}function ix({formatTypes:e,...t}){return e.map((e=>(0,c.createElement)(lx,{settings:e,...t,key:e.name})))}const ax=({value:e,tagName:t,multiline:n,...o})=>{Array.isArray(e)&&($()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e=a.children.toHTML(e));const r=OC(n);!e&&r&&(e=`<${r}></${r}>`);const l=(0,c.createElement)(c.RawHTML,null,e);if(t){const{format:e,...n}=o;return(0,c.createElement)(t,{...n},l)}return l},sx=(0,c.createContext)(),cx=(0,c.createContext)();const ux=(0,c.forwardRef)((function e({children:t,tagName:n="div",value:o="",onChange:r,isSelected:l,multiline:i,inlineToolbar:s,wrapperClassName:u,autocompleters:g,onReplace:h,placeholder:b,allowedFormats:v,withoutInteractiveFormatting:_,onRemove:k,onMerge:y,onSplit:E,__unstableOnSplitAtEnd:w,__unstableOnSplitMiddle:S,identifier:C,preserveWhiteSpace:x,__unstablePastePlainText:B,__unstableEmbedURLOnPaste:I,__unstableDisableFormats:T,disableLineBreaks:M,__unstableAllowPrefixTransformations:P,...N},L){i&&$()("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});const R=(0,p.useInstanceId)(e);C=C||R,N=function(e){const{__unstableMobileNoFocusOnMount:t,deleteEnter:n,placeholderTextColor:o,textAlign:r,selectionColor:l,tagsToEliminate:i,disableEditingMenu:a,fontSize:s,fontFamily:c,fontWeight:u,fontStyle:d,minWidth:p,maxWidth:m,setRef:f,disableSuggestions:g,disableAutocorrection:h,...b}=e;return b}(N);const A=(0,c.useRef)(),{clientId:D}=Ko(),{selectionStart:O,selectionEnd:z,isSelected:V}=(0,f.useSelect)((e=>{const{getSelectionStart:t,getSelectionEnd:n}=e(Go),o=t(),r=n();let i;return void 0===l?i=o.clientId===D&&r.clientId===D&&o.attributeKey===C:l&&(i=o.clientId===D),{selectionStart:i?o.offset:void 0,selectionEnd:i?r.offset:void 0,isSelected:i}})),{getSelectionStart:F,getSelectionEnd:H,getBlockRootClientId:U}=(0,f.useSelect)(Go),{selectionChange:j}=(0,f.useDispatch)(Go),W=OC(i),K=zC({allowedFormats:v,disableFormats:T}),q=!K||K.length>0;let Z=o,Y=r;Array.isArray(o)&&($()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),Z=a.children.toHTML(o),Y=e=>r(a.children.fromDOM((0,G.__unstableCreateElement)(document,e).childNodes)));const X=(0,c.useCallback)(((e,t)=>{const n={},o=void 0===e&&void 0===t;if("number"==typeof e||o){if(void 0===t&&U(D)!==U(H().clientId))return;n.start={clientId:D,attributeKey:C,offset:e}}if("number"==typeof t||o){if(void 0===e&&U(D)!==U(F().clientId))return;n.end={clientId:D,attributeKey:C,offset:t}}j(n)}),[D,C]),{formatTypes:Q,prepareHandlers:J,valueHandlers:ee,changeHandlers:te,dependencies:ne}=function({clientId:e,identifier:t,withoutInteractiveFormatting:n,allowedFormats:o}){const r=(0,f.useSelect)(ZC,[]),l=(0,c.useMemo)((()=>r.filter((({name:e,tagName:t})=>!(o&&!o.includes(e)||n&&YC.has(t))))),[r,o,YC]),i=(0,f.useSelect)((n=>l.reduce(((o,r)=>r.__experimentalGetPropsForEditableTreePreparation?{...o,...XC(r.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:t,blockClientId:e}),r.name)}:o),{})),[l,e,t]),a=(0,f.useDispatch)(),s=[],u=[],d=[],p=[];for(const e in i)p.push(i[e]);return l.forEach((n=>{if(n.__experimentalCreatePrepareEditableTree){const o=n.__experimentalCreatePrepareEditableTree(QC(i,n.name),{richTextIdentifier:t,blockClientId:e});n.__experimentalCreateOnChangeEditableValue?u.push(o):s.push(o)}if(n.__experimentalCreateOnChangeEditableValue){let o={};n.__experimentalGetPropsForEditableTreeChangeHandler&&(o=n.__experimentalGetPropsForEditableTreeChangeHandler(a,{richTextIdentifier:t,blockClientId:e}));const r=QC(i,n.name);d.push(n.__experimentalCreateOnChangeEditableValue({..."object"==typeof r?r:{},...o},{richTextIdentifier:t,blockClientId:e}))}})),{formatTypes:l,prepareHandlers:s,valueHandlers:u,changeHandlers:d,dependencies:p}}({clientId:D,identifier:C,withoutInteractiveFormatting:_,allowedFormats:K});function oe(e){return Q.forEach((t=>{t.__experimentalCreatePrepareEditableTree&&(e=(0,G.removeFormat)(e,t.name,0,e.text.length))})),e.formats}const{value:re,getValue:le,onChange:ie,ref:ae}=(0,G.__unstableUseRichText)({value:Z,onChange(e,{__unstableFormats:t,__unstableText:n}){Y(e),Object.values(te).forEach((e=>{e(t,n)}))},selectionStart:O,selectionEnd:z,onSelectionChange:X,placeholder:b,__unstableIsSelected:V,__unstableMultilineTag:W,__unstableDisableFormats:T,preserveWhiteSpace:x,__unstableDependencies:[...ne,n],__unstableAfterParse:function(e){return ee.reduce(((t,n)=>n(t,e.text)),e.formats)},__unstableBeforeSerialize:oe,__unstableAddInvisibleFormats:function(e){return J.reduce(((t,n)=>n(t,e.text)),e.formats)}}),se=function(e){return(0,m.__unstableUseAutocompleteProps)({...e,completers:_y(e)})}({onReplace:h,completers:g,record:re,onChange:ie});!function({html:e,value:t}){const n=(0,c.useRef)(),o=t.activeFormats&&!!t.activeFormats.length,{__unstableMarkLastChangeAsPersistent:r}=(0,f.useDispatch)(Go);(0,c.useLayoutEffect)((()=>{if(n.current){if(n.current!==t.text){const e=window.setTimeout((()=>{r()}),1e3);return n.current=t.text,()=>{window.clearTimeout(e)}}r()}else n.current=t.text}),[e,o])}({html:Z,value:re});const ce=(0,c.useRef)(new Set),ue=(0,c.useRef)(new Set);function de(){A.current?.focus()}const pe=n;return(0,c.createElement)(c.Fragment,null,V&&(0,c.createElement)(sx.Provider,{value:ce},(0,c.createElement)(cx.Provider,{value:ue},(0,c.createElement)(m.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after"},t&&t({value:re,onChange:ie,onFocus:de}),(0,c.createElement)(ix,{value:re,onChange:ie,onFocus:de,formatTypes:Q,forwardedRef:A})))),V&&q&&(0,c.createElement)(LC,{inline:s,editableContentElement:A.current,value:re}),(0,c.createElement)(pe,{role:"textbox","aria-multiline":!M,"aria-label":b,...N,...se,ref:(0,p.useMergeRefs)([L,se.ref,N.ref,ae,$C({value:re,onChange:ie}),WC({getValue:le,onChange:ie,__unstableAllowPrefixTransformations:P,formatTypes:Q,onReplace:h,selectionChange:j}),tx(),(0,p.useRefEffect)((e=>{function t(e){(yd.isKeyboardEvent.primary(e,"z")||yd.isKeyboardEvent.primary(e,"y")||yd.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.addEventListener("keydown",t)}}),[]),JC(ce),ex(ue),RC(),GC({isSelected:V,disableFormats:T,onChange:ie,value:re,formatTypes:Q,tagName:n,onReplace:h,onSplit:E,onSplitMiddle:S,__unstableEmbedURLOnPaste:I,multilineTag:W,preserveWhiteSpace:x,pastePlainText:B}),KC({value:re,onMerge:y,onRemove:k}),qC({removeEditorOnlyFormats:oe,value:re,onReplace:h,onSplit:E,onSplitMiddle:S,multilineTag:W,onChange:ie,disableLineBreaks:M,onSplitAtEnd:w}),nx({value:re,onChange:ie}),A]),contentEditable:!0,suppressContentEditableWarning:!0,className:d()("block-editor-rich-text__editable",N.className,"rich-text"),tabIndex:0===N.tabIndex?null:N.tabIndex}))}));ux.Content=ax,ux.isEmpty=e=>!e||0===e.length;var dx=ux;const px=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(dx,{ref:t,...e,__unstableDisableFormats:!0,preserveWhiteSpace:!0})));px.Content=({value:e="",tagName:t="div",...n})=>(0,c.createElement)(t,{...n},e);var mx=px;var fx=(0,c.forwardRef)((({__experimentalVersion:e,...t},n)=>{if(2===e)return(0,c.createElement)(mx,{ref:n,...t});const{className:o,onChange:r,...l}=t;return(0,c.createElement)(_a.Z,{ref:n,className:d()("block-editor-plain-text",o),onChange:e=>r(e.target.value),...l})}));function gx({property:e,viewport:t,desc:n}){const o=(0,p.useInstanceId)(gx),r=n||(0,v.sprintf)((0,v._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),e,t.label);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{"aria-describedby":`rbc-desc-${o}`},t.label),(0,c.createElement)(m.VisuallyHidden,{as:"span",id:`rbc-desc-${o}`},r))}var hx=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:l,renderResponsiveControls:i,isResponsive:a=!1,defaultLabel:s={id:"all",label:(0,v.__)("All")},viewports:u=[{id:"small",label:(0,v.__)("Small screens")},{id:"medium",label:(0,v.__)("Medium screens")},{id:"large",label:(0,v.__)("Large screens")}]}=e;if(!t||!n||!l)return null;const p=o||(0,v.sprintf)((0,v.__)("Use the same %s on all screensizes."),n),f=(0,v.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),g=l((0,c.createElement)(gx,{property:n,viewport:s}),s);return(0,c.createElement)("fieldset",{className:"block-editor-responsive-block-control"},(0,c.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),(0,c.createElement)("div",{className:"block-editor-responsive-block-control__inner"},(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-responsive-block-control__toggle",label:p,checked:!a,onChange:r,help:f}),(0,c.createElement)("div",{className:d()("block-editor-responsive-block-control__group",{"is-responsive":a})},!a&&g,a&&(i?i(u):u.map((e=>(0,c.createElement)(c.Fragment,{key:e.id},l((0,c.createElement)(gx,{property:n,viewport:e}),e))))))))};function bx({character:e,type:t,onUse:n}){const o=(0,c.useContext)(sx),r=(0,c.useRef)();return r.current=n,(0,c.useEffect)((()=>{function n(n){yd.isKeyboardEvent[t](n,e)&&(r.current(),n.preventDefault())}return o.current.add(n),()=>{o.current.delete(n)}}),[e,t]),null}function vx({name:e,shortcutType:t,shortcutCharacter:n,...o}){let r,l="RichText.ToolbarControls";return e&&(l+=`.${e}`),t&&n&&(r=yd.displayShortcut[t](n)),(0,c.createElement)(m.Fill,{name:l},(0,c.createElement)(m.ToolbarButton,{...o,shortcut:r}))}function _x({inputType:e,onInput:t}){const n=(0,c.useContext)(cx),o=(0,c.useRef)();return o.current=t,(0,c.useEffect)((()=>{function t(t){t.inputType===e&&(o.current(),t.preventDefault())}return n.current.add(t),()=>{n.current.delete(t)}}),[e]),null}const kx=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var yx=(0,c.forwardRef)((function(e,t){const n=(0,f.useSelect)((e=>e(Go).__unstableGetEditorMode()),[]),{__unstableSetEditorMode:o}=(0,f.useDispatch)(Go);return(0,c.createElement)(m.Dropdown,{renderToggle:({isOpen:o,onToggle:r})=>(0,c.createElement)(m.Button,{...e,ref:t,icon:"navigation"===n?kx:QS,"aria-expanded":o,"aria-haspopup":"true",onClick:r,label:(0,v.__)("Tools")}),popoverProps:{placement:"bottom-start"},renderContent:()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.NavigableMenu,{role:"menu","aria-label":(0,v.__)("Tools")},(0,c.createElement)(m.MenuItemsChoice,{value:"navigation"===n?"navigation":"edit",onSelect:o,choices:[{value:"edit",label:(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Xl,{icon:QS}),(0,v.__)("Edit"))},{value:"navigation",label:(0,c.createElement)(c.Fragment,null,kx,(0,v.__)("Select"))}]})),(0,c.createElement)("div",{className:"block-editor-tool-selector__help"},(0,v.__)("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")))})}));function Ex({units:e,...t}){const n=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["%","px","em","rem","vw"],units:e});return(0,c.createElement)(m.__experimentalUnitControl,{units:n,...t})}var wx=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));class Sx extends c.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.submitLink=this.submitLink.bind(this),this.state={expanded:!1}}toggle(){this.setState({expanded:!this.state.expanded})}submitLink(e){e.preventDefault(),this.toggle()}render(){const{url:e,onChange:t}=this.props,{expanded:n}=this.state,o=e?(0,v.__)("Edit link"):(0,v.__)("Insert link");return(0,c.createElement)("div",{className:"block-editor-url-input__button"},(0,c.createElement)(m.Button,{icon:fh,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!e}),n&&(0,c.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},(0,c.createElement)("div",{className:"block-editor-url-input__button-modal-line"},(0,c.createElement)(m.Button,{className:"block-editor-url-input__back",icon:wx,label:(0,v.__)("Close"),onClick:this.toggle}),(0,c.createElement)(CS,{__nextHasNoMarginBottom:!0,value:e||"",onChange:t}),(0,c.createElement)(m.Button,{icon:hC,label:(0,v.__)("Submit"),type:"submit"}))))}}var Cx=Sx;const xx="none",Bx="custom",Ix="media",Tx="attachment",Mx=["noreferrer","noopener"],Px=(0,c.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(m.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),(0,c.createElement)(m.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),(0,c.createElement)(m.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Nx=({linkDestination:e,onChangeUrl:t,url:n,mediaType:o="image",mediaUrl:r,mediaLink:l,linkTarget:i,linkClass:a,rel:s})=>{const[u,d]=(0,c.useState)(!1),[p,f]=(0,c.useState)(null),[g,h]=(0,c.useState)(!1),[b,_]=(0,c.useState)(null),k=(0,c.useRef)(null),y=()=>{h(!1)},E=()=>{const e=[{linkDestination:Ix,title:(0,v.__)("Media File"),url:"image"===o?r:void 0,icon:Px}];return"image"===o&&l&&e.push({linkDestination:Tx,title:(0,v.__)("Attachment Page"),url:"image"===o?l:void 0,icon:(0,c.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(m.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,c.createElement)(m.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},w=(0,c.createElement)(m.__experimentalVStack,{spacing:"3"},(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Open in new tab"),onChange:e=>{const n=(e=>{const t=e?"_blank":void 0;let n;if(t){const e=(null!=s?s:"").split(" ");Mx.forEach((t=>{e.includes(t)||e.push(t)})),n=e.join(" ")}else{const e=(null!=s?s:"").split(" ").filter((e=>!1===Mx.includes(e)));n=e.length?e.join(" "):void 0}return{linkTarget:t,rel:n}})(e);t(n)},checked:"_blank"===i}),(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Link rel"),value:null!=s?s:"",onChange:e=>{t({rel:e})}}),(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Link CSS Class"),value:a||"",onChange:e=>{t({linkClass:e})}})),S=null!==b?b:n,C=(E().find((t=>t.linkDestination===e))||{}).title;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.ToolbarButton,{icon:fh,className:"components-toolbar__control",label:n?(0,v.__)("Edit link"):(0,v.__)("Insert link"),"aria-expanded":u,onClick:()=>{d(!0)},ref:f}),u&&(0,c.createElement)(kC,{anchor:p,onFocusOutside:e=>{const t=k.current;t&&t.contains(e.target)||(d(!1),_(null),y())},onClose:()=>{_(null),y(),d(!1)},renderSettings:()=>w,additionalControls:!S&&(0,c.createElement)(m.NavigableMenu,null,E().map((e=>(0,c.createElement)(m.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:()=>{_(null),(e=>{const n=E();let o;o=e?(n.find((t=>t.url===e))||{linkDestination:Bx}).linkDestination:xx,t({linkDestination:o,href:e})})(e.url),y()}},e.title))))},(!n||g)&&(0,c.createElement)(kC.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:S,onChangeInputValue:_,onSubmit:e=>{if(b){const e=E().find((e=>e.url===b))?.linkDestination||Bx;t({href:b,linkDestination:e})}y(),_(null),e.preventDefault()},autocompleteRef:k}),n&&!g&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(kC.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:n,onEditLinkClick:()=>{e!==Ix&&e!==Tx||_(""),h(!0)},urlLabel:C}),(0,c.createElement)(m.Button,{icon:Cf,label:(0,v.__)("Remove link"),onClick:()=>{t({linkDestination:xx,href:""})}}))))},{Fill:Lx,Slot:Rx}=(0,m.createSlotFill)("__unstableBlockToolbarLastItem");Lx.Slot=Rx;var Ax=Lx;var Dx=(0,c.createContext)("");var Ox=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}));var zx=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"}));var Vx=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}));function Fx({children:e,viewLabel:t,className:n,isEnabled:o=!0,deviceType:r,setDeviceType:l,label:i}){if((0,p.useViewportMatch)("small","<"))return null;const a={className:d()(n,"block-editor-post-preview__dropdown-content"),placement:"bottom-end"},s={className:"block-editor-post-preview__button-toggle",disabled:!o,children:t},u={"aria-label":(0,v.__)("View options")},f={mobile:Ox,tablet:zx,desktop:Vx};return(0,c.createElement)(m.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:s,menuProps:u,icon:f[r.toLowerCase()],label:i||(0,v.__)("Preview")},(()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>l("Desktop"),icon:"Desktop"===r&&Rv},(0,v.__)("Desktop")),(0,c.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>l("Tablet"),icon:"Tablet"===r&&Rv},(0,v.__)("Tablet")),(0,c.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>l("Mobile"),icon:"Mobile"===r&&Rv},(0,v.__)("Mobile"))),e)))}function Hx(e){const[t,n]=(0,c.useState)(window.innerWidth);(0,c.useEffect)((()=>{if("Desktop"===e)return;const t=()=>n(window.innerWidth);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}}),[e]);const o=e=>{let n;switch(e){case"Tablet":n=780;break;case"Mobile":n=360;break;default:return null}return n<t?n:t};return(e=>{const t="Mobile"===e?"768px":"1024px",n=(window.innerHeight<800?36:72)+"px",r="auto";switch(e){case"Tablet":case"Mobile":return{width:o(e),marginTop:n,marginBottom:n,marginLeft:r,marginRight:r,height:t,borderRadius:"2px 2px 2px 2px",border:"1px solid #ddd",overflowY:"auto"};default:return null}})(e)}var Gx=(0,f.withSelect)((e=>({selectedBlockClientId:e(Go).getBlockSelectionStart()})))((({selectedBlockClientId:e})=>{const t=Bd(e);return e?(0,c.createElement)(m.Button,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current.focus()}},(0,v.__)("Skip to the selected block")):null})),Ux=window.wp.wordcount;var $x=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));var jx=(0,f.withSelect)((e=>{const{getMultiSelectedBlocks:t}=e(Go);return{blocks:t()}}))((function({blocks:e}){const t=(0,Ux.count)((0,a.serialize)(e),"words");return(0,c.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},(0,c.createElement)($d,{icon:$x,showColors:!0}),(0,c.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},(0,c.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},(0,v.sprintf)((0,v._n)("%d Block","%d Blocks",e.length),e.length)),(0,c.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},(0,v.sprintf)((0,v._n)("%d word selected.","%d words selected.",t),t))))}));function Wx({blockName:e}){const{preferredStyle:t,onUpdatePreferredStyleVariations:n,styles:o}=(0,f.useSelect)((t=>{var n;const o=t(Go).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:o?.value?.[e],onUpdatePreferredStyleVariations:null!==(n=o?.onChange)&&void 0!==n?n:null,styles:t(a.store).getBlockStyles(e)}}),[e]),r=(0,c.useMemo)((()=>[{label:(0,v.__)("Not set"),value:""},...o.map((({label:e,name:t})=>({label:e,value:t})))]),[o]),l=(0,c.useMemo)((()=>QE(o)?.name),[o]),i=(0,c.useCallback)((t=>{n(e,t)}),[e,n]);return t&&t!==l?n&&(0,c.createElement)("div",{className:"default-style-picker__default-switcher"},(0,c.createElement)(m.SelectControl,{__nextHasNoMarginBottom:!0,options:r,value:t||"",label:(0,v.__)("Default Style"),onChange:i})):null}var Kx=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));var qx=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));const Zx={name:"settings",title:(0,v.__)("Settings"),value:"settings",icon:Kx,className:"block-editor-block-inspector__tab-item"},Yx={name:"styles",title:(0,v.__)("Styles"),value:"styles",icon:qx,className:"block-editor-block-inspector__tab-item"},Xx={name:"list",title:(0,v.__)("List View"),value:"list-view",icon:Ly,className:"block-editor-block-inspector__tab-item"};var Qx=()=>{const e=(0,m.__experimentalUseSlotFills)(Ki.slotName);return Boolean(e&&e.length)?(0,c.createElement)(m.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,v.__)("Advanced"),initialOpen:!1},(0,c.createElement)(qi.Slot,{group:"advanced"})):null};const Jx=()=>{const[e,t]=(0,c.useState)(),{multiSelectedBlocks:n}=(0,f.useSelect)((e=>{const{getBlocksByClientId:t,getSelectedBlockClientIds:n}=e(Go);return{multiSelectedBlocks:t(n())}}),[]);return(0,c.useLayoutEffect)((()=>{void 0===e&&t(n.some((({attributes:e})=>!!e?.style?.position?.type)))}),[e,n,t]),(0,c.createElement)(m.PanelBody,{className:"block-editor-block-inspector__position",title:(0,v.__)("Position"),initialOpen:null!=e&&e},(0,c.createElement)(qi.Slot,{group:"position"}))};var eB=()=>{const e=(0,m.__experimentalUseSlotFills)(Fi.position.Slot.__unstableName);return Boolean(e&&e.length)?(0,c.createElement)(Jx,null):null};const tB="isInspectorControlsTabsHintVisible";function nB(){const e=(0,f.useSelect)((e=>{var t;return null===(t=e(xf.store).get("core",tB))||void 0===t||t}),[]),t=(0,c.useRef)(),{set:n}=(0,f.useDispatch)(xf.store);return e?(0,c.createElement)("div",{ref:t,className:"block-editor-inspector-controls-tabs__hint"},(0,c.createElement)("div",{className:"block-editor-inspector-controls-tabs__hint-content"},(0,v.__)("Looking for other block settings? They've moved to the styles tab.")),(0,c.createElement)(m.Button,{className:"block-editor-inspector-controls-tabs__hint-dismiss",icon:Cf,iconSize:"16",label:(0,v.__)("Dismiss hint"),onClick:()=>{const e=ea.focus.tabbable.findPrevious(t.current);e?.focus(),n("core",tB,!1)},showTooltip:!1})):null}var oB=({showAdvancedControls:e=!1})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(qi.Slot,null),(0,c.createElement)(eB,null),e&&(0,c.createElement)("div",null,(0,c.createElement)(Qx,null)),(0,c.createElement)(nB,null));var rB=({blockName:e,clientId:t,hasBlockStyles:n})=>(0,c.createElement)(c.Fragment,null,n&&(0,c.createElement)("div",null,(0,c.createElement)(m.PanelBody,{title:(0,v.__)("Styles")},(0,c.createElement)(ow,{clientId:t}),(0,a.hasBlockSupport)(e,"defaultStylePicker",!0)&&(0,c.createElement)(Wx,{blockName:e}))),(0,c.createElement)(qi.Slot,{group:"color",label:(0,v.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,c.createElement)(qi.Slot,{group:"filter"}),(0,c.createElement)(qi.Slot,{group:"typography",label:(0,v.__)("Typography")}),(0,c.createElement)(qi.Slot,{group:"dimensions",label:(0,v.__)("Dimensions")}),(0,c.createElement)(qi.Slot,{group:"border",label:(0,v.__)("Border")}),(0,c.createElement)(qi.Slot,{group:"styles"}));const lB=["core/navigation"];var iB=e=>!lB.includes(e);function aB({blockName:e,clientId:t,hasBlockStyles:n,tabs:o}){const r=iB(e)?void 0:Xx.name;return(0,c.createElement)(m.TabPanel,{className:"block-editor-block-inspector__tabs",tabs:o,initialTabName:r,key:t},(o=>o.name===Zx.name?(0,c.createElement)(oB,{showAdvancedControls:!!e}):o.name===Yx.name?(0,c.createElement)(rB,{blockName:e,clientId:t,hasBlockStyles:n}):o.name===Xx.name?(0,c.createElement)(qi.Slot,{group:"list"}):void 0))}const sB=[];function cB(e){const t=[],{border:n,color:o,default:r,dimensions:l,list:i,position:a,styles:s,typography:c}=Fi,u=iB(e),d=(0,m.__experimentalUseSlotFills)(i.Slot.__unstableName),p=!u&&!!d&&d.length,g=[...(0,m.__experimentalUseSlotFills)(n.Slot.__unstableName)||[],...(0,m.__experimentalUseSlotFills)(o.Slot.__unstableName)||[],...(0,m.__experimentalUseSlotFills)(l.Slot.__unstableName)||[],...(0,m.__experimentalUseSlotFills)(s.Slot.__unstableName)||[],...(0,m.__experimentalUseSlotFills)(c.Slot.__unstableName)||[]].length,h=(0,m.__experimentalUseSlotFills)(Ki.slotName)||[],b=[...(0,m.__experimentalUseSlotFills)(r.Slot.__unstableName)||[],...(0,m.__experimentalUseSlotFills)(a.Slot.__unstableName)||[],...p&&g>1?h:[]];p&&t.push(Xx),b.length&&t.push(Zx),g&&t.push(Yx);const v=function(e,t={}){return void 0!==t[e]?t[e]:void 0===t.default||t.default}(e,(0,f.useSelect)((e=>e(Go).getSettings().blockInspectorTabs),[]));return v?t:sB}const{createPrivateSlotFill:uB}=Fo(m.privateApis),{Fill:dB,Slot:pB}=uB("BlockInformation"),mB=e=>qo()?(0,c.createElement)(dB,{...e}):null;mB.Slot=e=>(0,c.createElement)(pB,{...e});var fB=mB;function gB({clientIds:e}){return e.length?(0,c.createElement)(m.__experimentalVStack,{spacing:1},e.map((e=>(0,c.createElement)(hB,{key:e,clientId:e})))):null}function hB({clientId:e}){const{name:t,icon:n,isSelected:o}=(0,f.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o,isBlockSelected:r,hasSelectedInnerBlock:l}=t(Go),{getBlockType:i}=t(a.store),s=i(n(e)),c=o(e);return{name:s&&(0,a.__experimentalGetBlockLabel)(s,c,"list-view"),icon:s?.icon,isSelected:r(e)||l(e,!0)}}),[e]),{selectBlock:r}=(0,f.useDispatch)(Go);return(0,c.createElement)(m.Button,{isPressed:o,onClick:()=>r(e)},(0,c.createElement)(m.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)($d,{icon:n}),(0,c.createElement)(m.FlexItem,null,t)))}function bB({topLevelLockedBlock:e}){const t=(0,f.useSelect)((t=>{const{getClientIdsOfDescendants:n,getBlockName:o,getBlockEditingMode:r}=Fo(t(Go));return n([e]).filter((e=>"core/list-item"!==o(e)&&"contentOnly"===r(e)))}),[e]),n=Z_(e);return(0,c.createElement)("div",{className:"block-editor-block-inspector"},(0,c.createElement)(jd,{...n,className:n.isSynced&&"is-synced"}),(0,c.createElement)(Sw,{blockClientId:e}),(0,c.createElement)(fB.Slot,null),(0,c.createElement)(m.PanelBody,{title:(0,v.__)("Content")},(0,c.createElement)(gB,{clientIds:t})))}const vB=({animate:e,wrapper:t,children:n})=>e?t(n):n,_B=({blockInspectorAnimationSettings:e,selectedBlockClientId:t,children:n})=>{const o=e&&"leftToRight"===e.enterDirection?-50:50;return(0,c.createElement)(m.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:o,opacity:0},key:t},n)},kB=({clientId:e,blockName:t})=>{const n=cB(t),o=n?.length>1,r=(0,f.useSelect)((e=>{const{getBlockStyles:n}=e(a.store),o=n(t);return o&&o.length>0}),[t]),l=Z_(e);return(0,c.createElement)("div",{className:"block-editor-block-inspector"},(0,c.createElement)(jd,{...l,className:l.isSynced&&"is-synced"}),(0,c.createElement)(Sw,{blockClientId:e}),(0,c.createElement)(fB.Slot,null),o&&(0,c.createElement)(aB,{hasBlockStyles:r,clientId:e,blockName:t,tabs:n}),!o&&(0,c.createElement)(c.Fragment,null,r&&(0,c.createElement)("div",null,(0,c.createElement)(m.PanelBody,{title:(0,v.__)("Styles")},(0,c.createElement)(ow,{clientId:e}),(0,a.hasBlockSupport)(t,"defaultStylePicker",!0)&&(0,c.createElement)(Wx,{blockName:t}))),(0,c.createElement)(qi.Slot,null),(0,c.createElement)(qi.Slot,{group:"list"}),(0,c.createElement)(qi.Slot,{group:"color",label:(0,v.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,c.createElement)(qi.Slot,{group:"typography",label:(0,v.__)("Typography")}),(0,c.createElement)(qi.Slot,{group:"dimensions",label:(0,v.__)("Dimensions")}),(0,c.createElement)(qi.Slot,{group:"border",label:(0,v.__)("Border")}),(0,c.createElement)(qi.Slot,{group:"styles"}),(0,c.createElement)(eB,null),(0,c.createElement)("div",null,(0,c.createElement)(Qx,null))),(0,c.createElement)(Gx,{key:"back"}))};var yB=({showNoBlockSelectedMessage:e=!0})=>{const{count:t,selectedBlockName:n,selectedBlockClientId:o,blockType:r,topLevelLockedBlock:l}=(0,f.useSelect)((e=>{const{getSelectedBlockClientId:t,getSelectedBlockCount:n,getBlockName:o,__unstableGetContentLockingParent:r,getTemplateLock:l}=e(Go),i=t(),s=i&&o(i),c=s&&(0,a.getBlockType)(s);return{count:n(),selectedBlockClientId:i,selectedBlockName:s,blockType:c,topLevelLockedBlock:r(i)||("contentOnly"===l(i)?i:void 0)}}),[]),i=cB(r?.name),s=i?.length>1,u=function(e,t){return(0,f.useSelect)((t=>{if(e){const n=t(Go).getSettings().blockInspectorAnimation,o=n?.animationParent,{getSelectedBlockClientId:r,getBlockParentsByBlockName:l}=t(Go);return l(r(),o,!0)[0]||e.name===o?n?.[e.name]:null}return null}),[t,e])}(r,o);if(t>1)return(0,c.createElement)("div",{className:"block-editor-block-inspector"},(0,c.createElement)(jx,null),s?(0,c.createElement)(aB,{tabs:i}):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(qi.Slot,null),(0,c.createElement)(qi.Slot,{group:"color",label:(0,v.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,c.createElement)(qi.Slot,{group:"typography",label:(0,v.__)("Typography")}),(0,c.createElement)(qi.Slot,{group:"dimensions",label:(0,v.__)("Dimensions")}),(0,c.createElement)(qi.Slot,{group:"border",label:(0,v.__)("Border")}),(0,c.createElement)(qi.Slot,{group:"styles"})));const d=n===(0,a.getUnregisteredTypeHandlerName)();return r&&o&&!d?l?(0,c.createElement)(bB,{topLevelLockedBlock:l}):(0,c.createElement)(vB,{animate:u,wrapper:e=>(0,c.createElement)(_B,{blockInspectorAnimationSettings:u,selectedBlockClientId:o},e)},(0,c.createElement)(kB,{clientId:o,blockName:r.name})):e?(0,c.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},(0,v.__)("No block selected.")):null};var EB=function({clientIds:e,hideDragHandle:t}){const{canMove:n,rootClientId:o,isFirst:r,isLast:l,orientation:i}=(0,f.useSelect)((t=>{const{getBlockIndex:n,getBlockListSettings:o,canMoveBlocks:r,getBlockOrder:l,getBlockRootClientId:i}=t(Go),a=Array.isArray(e)?e:[e],s=a[0],c=i(s),u=n(s),d=n(a[a.length-1]),p=l(c);return{canMove:r(e,c),rootClientId:c,isFirst:0===u,isLast:d===p.length-1,orientation:o(c)?.orientation}}),[e]);if(!n||r&&l&&!o)return null;const a=(0,v.__)("Drag");return(0,c.createElement)(m.ToolbarGroup,{className:d()("block-editor-block-mover",{"is-horizontal":"horizontal"===i})},!t&&(0,c.createElement)(tE,{clientIds:e},(e=>(0,c.createElement)(m.Button,{icon:Bm,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:a,tabIndex:"-1",...e}))),(0,c.createElement)("div",{className:"block-editor-block-mover__move-button-container"},(0,c.createElement)(m.ToolbarItem,null,(t=>(0,c.createElement)(qy,{clientIds:e,...t}))),(0,c.createElement)(m.ToolbarItem,null,(t=>(0,c.createElement)(Zy,{clientIds:e,...t})))))};var wB=function({clientIds:e,...t}){return(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(m.ToolbarItem,null,(n=>(0,c.createElement)(jE,{clientIds:e,toggleProps:n,...t}))))};function SB(){const{selectBlock:e,toggleBlockHighlight:t}=(0,f.useDispatch)(Go),{firstParentClientId:n,isVisible:o,isDistractionFree:r}=(0,f.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getSettings:r,getBlockEditingMode:l}=Fo(e(Go)),{hasBlockSupport:i}=e(a.store),s=n(o()),c=s[s.length-1],u=t(c),d=(0,a.getBlockType)(u),p=r();return{firstParentClientId:c,isVisible:c&&"default"===l(c)&&i(d,"__experimentalParentSelector",!0),isDistractionFree:p.isDistractionFree}}),[]),l=Z_(n),i=(0,c.useRef)(),{gestures:s}=HE({ref:i,onChange(e){e&&r||t(n,e)}});return o?(0,c.createElement)("div",{className:"block-editor-block-parent-selector",key:n,ref:i,...s},(0,c.createElement)(m.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:(0,v.sprintf)((0,v.__)("Select %s"),l?.title),showTooltip:!0,icon:(0,c.createElement)($d,{icon:l?.icon})})):null}function CB({blocks:e}){return(0,c.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,c.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,c.createElement)(m.Popover,{className:"block-editor-block-switcher__preview__popover",placement:"bottom-start",focusOnMount:!1},(0,c.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,c.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,v.__)("Preview")),(0,c.createElement)(Em,{viewportWidth:500,blocks:e})))))}const xB={};function BB({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:l}=e;return(0,c.createElement)(m.MenuItem,{className:(0,a.getBlockMenuDefaultClassName)(o),onClick:e=>{e.preventDefault(),t(o)},onMouseLeave:()=>n(null),onMouseEnter:()=>n(o)},(0,c.createElement)($d,{icon:r,showColors:!0}),l)}var IB=({transformations:e,onSelect:t,blocks:n})=>{const[o,r]=(0,c.useState)();return(0,c.createElement)(c.Fragment,null,o&&(0,c.createElement)(CB,{blocks:(0,a.cloneBlock)(n[0],e.find((({name:e})=>e===o)).attributes)}),e?.map((e=>(0,c.createElement)(BB,{key:e.name,item:e,onSelect:t,setHoveredTransformItemName:r}))))};function TB({restTransformations:e,onSelect:t,setHoveredTransformItemName:n}){return e.map((e=>(0,c.createElement)(MB,{key:e.name,item:e,onSelect:t,setHoveredTransformItemName:n})))}function MB({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:l,isDisabled:i}=e;return(0,c.createElement)(m.MenuItem,{className:(0,a.getBlockMenuDefaultClassName)(o),onClick:e=>{e.preventDefault(),t(o)},disabled:i,onMouseLeave:()=>n(null),onMouseEnter:()=>n(o)},(0,c.createElement)($d,{icon:r,showColors:!0}),l)}var PB=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:n,onSelect:o,onSelectVariation:r,blocks:l})=>{const[i,s]=(0,c.useState)(),{priorityTextTransformations:u,restTransformations:d}=function(e){const t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},n=(0,c.useMemo)((()=>{const n=Object.keys(t);return e.reduce(((e,t)=>{const{name:o}=t;return n.includes(o)?e.priorityTextTransformations.push(t):e.restTransformations.push(t),e}),{priorityTextTransformations:[],restTransformations:[]})}),[e]);return n.priorityTextTransformations.sort((({name:e},{name:n})=>t[e]<t[n]?-1:1)),n}(t),p=u.length&&d.length,f=!!d.length&&(0,c.createElement)(TB,{restTransformations:d,onSelect:o,setHoveredTransformItemName:s});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuGroup,{label:(0,v.__)("Transform to"),className:e},i&&(0,c.createElement)(CB,{blocks:(0,a.switchToBlockType)(l,i)}),!!n?.length&&(0,c.createElement)(IB,{transformations:n,blocks:l,onSelect:r}),u.map((e=>(0,c.createElement)(MB,{key:e.name,item:e,onSelect:o,setHoveredTransformItemName:s}))),!p&&f),!!p&&(0,c.createElement)(m.MenuGroup,{className:e},f))};const NB=()=>{};function LB({clientId:e,onSwitch:t=NB}){const{onSelect:n,stylesToRender:o,activeStyle:r}=ew({clientId:e,onSwitch:t});return o&&0!==o.length?(0,c.createElement)(c.Fragment,null,o.map((e=>{const t=e.label||e.name;return(0,c.createElement)(m.MenuItem,{key:e.name,icon:r.name===e.name?Rv:null,onClick:()=>n(e)},(0,c.createElement)(m.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0},t))}))):null}function RB({hoveredBlock:e,onSwitch:t}){const{clientId:n}=e;return(0,c.createElement)(m.MenuGroup,{label:(0,v.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},(0,c.createElement)(LB,{clientId:n,onSwitch:t}))}const AB=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:l=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of l){const o=AB(e,t,n);if(o)return o}}},DB=(e,t)=>{const n=((e,t)=>{const n=(0,a.__experimentalGetBlockAttributesNamesByRole)(e,"content");return n?.length?n.reduce(((e,n)=>(t[n]&&(e[n]=t[n]),e)),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};var OB=(e,t)=>(0,c.useMemo)((()=>e.reduce(((e,n)=>{const o=((e,t)=>{const n=t.map((e=>(0,a.cloneBlock)(e))),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=AB(r,t.name,o);if(n){e=!0,o.add(n.clientId),DB(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e}),[])),[e,t]);function zB({patterns:e,onSelect:t}){return(0,c.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,c.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,c.createElement)(m.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},(0,c.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,c.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,v.__)("Preview")),(0,c.createElement)(VB,{patterns:e,onSelect:t})))))}function VB({patterns:e,onSelect:t}){const n=(0,m.__unstableUseCompositeState)();return(0,c.createElement)(m.__unstableComposite,{...n,role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,v.__)("Patterns list")},e.map((e=>(0,c.createElement)(FB,{key:e.name,pattern:e,onSelect:t,composite:n}))))}function FB({pattern:e,onSelect:t,composite:n}){const o="block-editor-block-switcher__preview-patterns-container",r=(0,p.useInstanceId)(FB,`${o}-list__item-description`);return(0,c.createElement)("div",{className:`${o}-list__list-item`},(0,c.createElement)(m.__unstableCompositeItem,{role:"option",as:"div",...n,"aria-label":e.title,"aria-describedby":e.description?r:void 0,className:`${o}-list__item`,onClick:()=>t(e.transformedBlocks)},(0,c.createElement)(Em,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,c.createElement)("div",{className:`${o}-list__item-title`},e.title)),!!e.description&&(0,c.createElement)(m.VisuallyHidden,{id:r},e.description))}var HB=function({blocks:e,patterns:t,onSelect:n}){const[o,r]=(0,c.useState)(!1),l=OB(t,e);return l.length?(0,c.createElement)(m.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},o&&(0,c.createElement)(zB,{patterns:l,onSelect:n}),(0,c.createElement)(m.MenuItem,{onClick:e=>{e.preventDefault(),r(!o)},icon:Hd},(0,v.__)("Patterns"))):null};const GB=({clientIds:e,blocks:t})=>{const{replaceBlocks:n,multiSelect:o,updateBlockAttributes:r}=(0,f.useDispatch)(Go),l=Z_(t[0].clientId),{possibleBlockTransformations:i,canRemove:s,hasBlockStyles:u,icon:d,patterns:p}=(0,f.useSelect)((n=>{const{getBlockRootClientId:o,getBlockTransformItems:r,__experimentalGetPatternTransformItems:i,canRemoveBlocks:s}=n(Go),{getBlockStyles:c,getBlockType:u}=n(a.store),d=o(Array.isArray(e)?e[0]:e),[{name:p}]=t,m=1===t.length,f=m&&c(p);let g;if(m)g=l?.icon;else{g=1===new Set(t.map((({name:e})=>e))).size?u(p)?.icon:$x}return{possibleBlockTransformations:r(t,d),canRemove:s(e,d),hasBlockStyles:!!f?.length,icon:g,patterns:i(t,d)}}),[e,t,l?.icon]),g=function({clientIds:e,blocks:t}){const{activeBlockVariation:n,blockVariationTransformations:o}=(0,f.useSelect)((n=>{const{getBlockRootClientId:o,getBlockAttributes:r,canRemoveBlocks:l}=n(Go),{getActiveBlockVariation:i,getBlockVariations:s}=n(a.store),c=o(Array.isArray(e)?e[0]:e),u=l(e,c);if(1!==t.length||!u)return xB;const[d]=t;return{blockVariationTransformations:s(d.name,"transform"),activeBlockVariation:i(d.name,r(d.clientId))}}),[e,t]);return(0,c.useMemo)((()=>o?.filter((({name:e})=>e!==n?.name))),[o,n])}({clientIds:e,blocks:t}),h=xy({clientId:Array.isArray(e)?e[0]:e,maximumLength:35}),b=1===t.length&&(0,a.isReusableBlock)(t[0]),_=1===t.length&&(0,a.isTemplatePart)(t[0]);function k(e){e.length>1&&o(e[0].clientId,e[e.length-1].clientId)}const y=!!i.length&&s&&!_,E=!!g?.length,w=!!p?.length&&s;if(!u&&!y&&!E)return(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(m.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:h,icon:(0,c.createElement)(c.Fragment,null,(0,c.createElement)($d,{icon:d,showColors:!0}),(b||_)&&(0,c.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},h))}));const S=h,C=1===t.length?(0,v.sprintf)((0,v.__)("%s: Change block type or style"),h):(0,v.sprintf)((0,v._n)("Change type of %d block","Change type of %d blocks",t.length),t.length),x=y||E,B=u||x||w;return(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(m.ToolbarItem,null,(o=>(0,c.createElement)(m.DropdownMenu,{className:"block-editor-block-switcher",label:S,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:(0,c.createElement)(c.Fragment,null,(0,c.createElement)($d,{icon:d,className:"block-editor-block-switcher__toggle",showColors:!0}),(b||_)&&(0,c.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},h)),toggleProps:{describedBy:C,...o},menuProps:{orientation:"both"}},(({onClose:o})=>B&&(0,c.createElement)("div",{className:"block-editor-block-switcher__container"},w&&(0,c.createElement)(HB,{blocks:t,patterns:p,onSelect:t=>{!function(t){n(e,t),k(t)}(t),o()}}),x&&(0,c.createElement)(PB,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:i,possibleBlockVariationTransformations:g,blocks:t,onSelect:r=>{!function(o){const r=(0,a.switchToBlockType)(t,o);n(e,r),k(r)}(r),o()},onSelectVariation:e=>{!function(e){r(t[0].clientId,{...g.find((({name:t})=>t===e)).attributes})}(e),o()}}),u&&(0,c.createElement)(RB,{hoveredBlock:t[0],onSwitch:o})))))))};var UB=({clientIds:e})=>{const t=(0,f.useSelect)((t=>t(Go).getBlocksByClientId(e)),[e]);return!t.length||t.some((e=>!e))?null:(0,c.createElement)(GB,{clientIds:e,blocks:t})};function $B({clientId:e,wrapperRef:t}){const{canEdit:n,canMove:o,canRemove:r,canLock:l}=_k(e),[i,a]=(0,c.useReducer)((e=>!e),!1),s=(0,c.useRef)(null),u=(0,c.useRef)(!0),d=!l||n&&o&&r;return(0,c.useEffect)((()=>{u.current?u.current=!1:!i&&d&&ea.focus.focusable.find(t.current,{sequential:!1}).find((e=>"BUTTON"===e.tagName&&e!==s.current))?.focus()}),[i,d,t]),d?null:(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.ToolbarGroup,{className:"block-editor-block-lock-toolbar"},(0,c.createElement)(m.ToolbarButton,{icon:Ek,label:(0,v.__)("Unlock"),onClick:a,ref:s})),i&&(0,c.createElement)(Ck,{clientId:e,onClose:a}))}var jB=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));var WB=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"}));var KB=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"}));const qB={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"}};var ZB=function(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:o}=bk(),{replaceBlocks:r}=(0,f.useDispatch)(Go),{canRemove:l,variations:i}=(0,f.useSelect)((e=>{const{canRemoveBlocks:o}=e(Go),{getBlockVariations:r}=e(a.store);return{canRemove:o(t),variations:r(n,"transform")}}),[t,n]),s=o=>{const l=(0,a.switchToBlockType)(e,n);"string"!=typeof o&&(o="group"),l&&l.length>0&&(l[0].attributes.layout=qB[o],r(t,l))};if(!o||!l)return null;const u=!!i.find((({name:e})=>"group-row"===e)),d=!!i.find((({name:e})=>"group-stack"===e));return(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(m.ToolbarButton,{icon:jB,label:(0,v._x)("Group","verb"),onClick:s}),u&&(0,c.createElement)(m.ToolbarButton,{icon:WB,label:(0,v._x)("Row","single horizontal line"),onClick:()=>s("row")}),d&&(0,c.createElement)(m.ToolbarButton,{icon:KB,label:(0,v._x)("Stack","verb"),onClick:()=>s("stack")}))};function YB({clientIds:e}){const t=1===e.length?e[0]:void 0,n=(0,f.useSelect)((e=>!!t&&"html"===e(Go).getBlockMode(t)),[t]),{toggleBlockMode:o}=(0,f.useDispatch)(Go);return n?(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(m.ToolbarButton,{onClick:()=>{o(t)}},(0,v.__)("Edit visually"))):null}var XB=({hideDragHandle:e})=>{const{blockClientIds:t,blockClientId:n,blockType:o,hasFixedToolbar:r,isDistractionFree:l,isValid:i,isVisual:s,blockEditingMode:u}=(0,f.useSelect)((e=>{const{getBlockName:t,getBlockMode:n,getSelectedBlockClientIds:o,isBlockValid:r,getBlockRootClientId:l,getSettings:i,getBlockEditingMode:s}=Fo(e(Go)),c=o(),u=c[0],d=l(u),p=i();return{blockClientIds:c,blockClientId:u,blockType:u&&(0,a.getBlockType)(t(u)),hasFixedToolbar:p.hasFixedToolbar,isDistractionFree:p.isDistractionFree,rootClientId:d,isValid:c.every((e=>r(e))),isVisual:c.every((e=>"visual"===n(e))),blockEditingMode:s(u)}}),[]),g=(0,c.useRef)(null),{toggleBlockHighlight:h}=(0,f.useDispatch)(Go),b=(0,c.useRef)(),{showMovers:v,gestures:_}=HE({ref:b,onChange(e){e&&l||h(n,e)}}),k=(0,p.useViewportMatch)("medium","<")||r,y=!(0,p.useViewportMatch)("medium","<");if(o&&!(0,a.hasBlockSupport)(o,"__experimentalToolbar",!0))return null;const E=k||v;if(0===t.length)return null;const w=i&&s,S=t.length>1,C=(0,a.isReusableBlock)(o)||(0,a.isTemplatePart)(o),x=d()("block-editor-block-toolbar",{"is-showing-movers":E,"is-synced":C});return(0,c.createElement)("div",{className:x,ref:g},!S&&y&&"default"===u&&(0,c.createElement)(SB,null),(w||S)&&"default"===u&&(0,c.createElement)("div",{ref:b,..._},(0,c.createElement)(m.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},(0,c.createElement)(UB,{clientIds:t}),!S&&(0,c.createElement)($B,{clientId:t[0],wrapperRef:g}),(0,c.createElement)(EB,{clientIds:t,hideDragHandle:e}))),w&&S&&(0,c.createElement)(ZB,null),w&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(er.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(er.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(er.Slot,{className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(er.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(er.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(Dx.Provider,{value:o?.name},(0,c.createElement)(Ax.Slot,null))),(0,c.createElement)(YB,{clientIds:t}),"default"===u&&(0,c.createElement)(wB,{clientIds:t}))};var QB=function({clientId:e,rootClientId:t}){const n=Z_(e),o=(0,f.useSelect)((n=>{const{getBlock:o,getBlockIndex:r,hasBlockMovingClientId:l,getBlockListSettings:i,__unstableGetEditorMode:a}=n(Go),s=r(e),{name:c,attributes:u}=o(e);return{index:s,name:c,attributes:u,blockMovingMode:l(),orientation:i(t)?.orientation,editorMode:a()}}),[e,t]),{index:r,name:l,attributes:i,blockMovingMode:s,orientation:u,editorMode:p}=o,{setNavigationMode:g,removeBlock:h}=(0,f.useDispatch)(Go),b=(0,c.useRef)(),_=(0,a.getBlockType)(l),k=(0,a.__experimentalGetAccessibleBlockLabel)(_,i,r+1,u);(0,c.useEffect)((()=>{b.current.focus(),(0,Cn.speak)(k)}),[k]);const y=Id(e),{hasBlockMovingClientId:E,getBlockIndex:w,getBlockRootClientId:S,getClientIdsOfDescendants:C,getSelectedBlockClientId:x,getMultiSelectedBlocksEndClientId:B,getPreviousBlockClientId:I,getNextBlockClientId:T}=(0,f.useSelect)(Go),{selectBlock:M,clearSelectedBlock:P,setBlockMovingClientId:N,moveBlockToPosition:L}=(0,f.useDispatch)(Go),R=d()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!s}),A=(0,v.__)("Drag");return(0,c.createElement)("div",{className:R},(0,c.createElement)(m.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},(0,c.createElement)(m.FlexItem,null,(0,c.createElement)($d,{icon:n?.icon,showColors:!0})),(0,c.createElement)(m.FlexItem,null,"zoom-out"===p&&(0,c.createElement)(EB,{clientIds:[e],hideDragHandle:!0}),"navigation"===p&&(0,c.createElement)(tE,{clientIds:[e]},(e=>(0,c.createElement)(m.Button,{icon:Bm,className:"block-selection-button_drag-handle","aria-hidden":"true",label:A,tabIndex:"-1",...e})))),(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(m.Button,{ref:b,onClick:"navigation"===p?()=>g(!1):void 0,onKeyDown:function(t){const{keyCode:n}=t,o=n===yd.UP,r=n===yd.DOWN,l=n===yd.LEFT,i=n===yd.RIGHT,a=n===yd.TAB,s=n===yd.ESCAPE,c=n===yd.ENTER,u=n===yd.SPACE,d=t.shiftKey;if(n===yd.BACKSPACE||n===yd.DELETE)return h(e),void t.preventDefault();const p=x(),m=B(),f=I(m||p),g=T(m||p),b=a&&d||o,v=a&&!d||r,_=l,k=i;let R;if(b)R=f;else if(v)R=g;else if(_){var A;R=null!==(A=S(p))&&void 0!==A?A:p}else if(k){var D;R=null!==(D=C([p])[0])&&void 0!==D?D:p}const O=E();if(s&&O&&!t.defaultPrevented&&(N(null),t.preventDefault()),(c||u)&&O){const e=S(O),t=S(p),n=w(O);let o=w(p);n<o&&e===t&&(o-=1),L(O,e,t,o),M(O),N(null)}if(v||b||_||k)if(R)t.preventDefault(),M(R);else if(a&&p){let e;if(v){e=y;do{e=ea.focus.tabbable.findNext(e)}while(e&&y.contains(e));e||(e=y.ownerDocument.defaultView.frameElement,e=ea.focus.tabbable.findNext(e))}else e=ea.focus.tabbable.findPrevious(y);e&&(t.preventDefault(),e.focus(),P())}},label:k,showTooltip:!1,className:"block-selection-button_select-button"},(0,c.createElement)(By,{clientId:e,maximumLength:35})))))};var JB=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}));var eI=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"}));var tI=function({focusOnMount:e,isFixed:t,...n}){const[o,r]=(0,c.useState)(!1),l=(0,c.useRef)(),i=(0,p.useViewportMatch)("medium"),{blockType:s,hasParents:u,showParentSelector:g,selectedBlockClientId:h,isContentOnly:b}=(0,f.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientIds:o,getBlockEditingMode:r}=Fo(e(Go)),{getBlockType:l}=e(a.store),i=o(),s=i[0],c=n(s),u=c[c.length-1],d=l(t(u));return{selectedBlockClientId:s,blockType:s&&l(t(s)),hasParents:c.length,isContentOnly:"contentOnly"===r(s),showParentSelector:d&&"default"===r(u)&&(0,a.hasBlockSupport)(d,"__experimentalParentSelector",!0)&&i.length<=1&&"default"===r(s)}}),[]);if((0,c.useEffect)((()=>{r(!1)}),[h]),b||s&&!(0,a.hasBlockSupport)(s,"__experimentalToolbar",!0))return null;const _=d()("block-editor-block-contextual-toolbar",{"has-parent":u&&g,"is-fixed":t,"is-collapsed":o});return(0,c.createElement)(MC,{focusOnMount:e,className:_,"aria-label":(0,v.__)("Block tools"),...n},!o&&(0,c.createElement)(XB,{hideDragHandle:t}),t&&i&&s&&(0,c.createElement)(m.ToolbarGroup,{className:o?"block-editor-block-toolbar__group-expand-fixed-toolbar":"block-editor-block-toolbar__group-collapse-fixed-toolbar"},(0,c.createElement)(m.ToolbarItem,{as:m.ToolbarButton,ref:l,icon:o?JB:eI,onClick:()=>{r((e=>!e)),l.current.focus()},label:o?(0,v.__)("Show block tools"):(0,v.__)("Hide block tools")})))};const nI={placement:"top-start"},oI={...nI,flip:!1,shift:!0},rI={...nI,flip:!0,shift:!1};function lI(e,t,n,o,r){if(!e||!t)return oI;const l=n?.scrollTop||0,i=t.getBoundingClientRect(),a=l+e.getBoundingClientRect().top,s=e.ownerDocument.documentElement.clientHeight,c=a+o,u=i.top>c,d=i.height>s-o;return r||!u&&!d?rI:oI}function iI(){const e=(0,p.useViewportMatch)("medium"),{shouldShowContextualToolbar:t,canFocusHiddenToolbar:n,fixedToolbarCanBeFocused:o}=(0,f.useSelect)((t=>{const{__unstableGetEditorMode:n,isMultiSelecting:o,isTyping:r,isBlockInterfaceHidden:l,getBlock:i,getSettings:s,isNavigationMode:c,getSelectedBlockClientId:u,getFirstMultiSelectedBlockClientId:d}=Fo(t(Go)),p="edit"===n(),m=s().hasFixedToolbar,f=s().isDistractionFree,g=d()||u(),h=!!g,b=(0,a.isUnmodifiedDefaultBlock)(i(g)||{}),v=p&&!m&&(!f||c())&&e&&!o()&&!r()&&h&&!b&&!l();return{shouldShowContextualToolbar:v,canFocusHiddenToolbar:p&&h&&!v&&!m&&!f&&!b,fixedToolbarCanBeFocused:(m||!e)&&g}}),[e]);return{shouldShowContextualToolbar:t,canFocusHiddenToolbar:n,fixedToolbarCanBeFocused:o}}function aI(e){const{__unstableGetEditorMode:t,hasMultiSelection:n,isTyping:o,getLastMultiSelectedBlockClientId:r}=e(Go);return{editorMode:t(),hasMultiSelection:n(),isTyping:o(),lastClientId:n()?r():null}}function sI({clientId:e,rootClientId:t,isEmptyDefaultBlock:n,capturingClientId:o,__unstablePopoverSlot:r,__unstableContentRef:l}){const{editorMode:i,hasMultiSelection:a,isTyping:s,lastClientId:u}=(0,f.useSelect)(aI,[]),m=(0,f.useSelect)((t=>{const{isBlockInsertionPointVisible:n,getBlockInsertionPoint:o,getBlockOrder:r}=t(Go);if(!n())return!1;const l=o();return r(l.rootClientId)[l.index]===e}),[e]),g=(0,c.useRef)(!1),{shouldShowContextualToolbar:h,canFocusHiddenToolbar:b}=iI(),{stopTyping:v}=(0,f.useDispatch)(Go),_=!s&&"edit"===i&&n,k=!a&&("navigation"===i||"zoom-out"===i);(0,op.useShortcut)("core/block-editor/focus-toolbar",(()=>{g.current=!0,v(!0)}),{isDisabled:!b}),(0,c.useEffect)((()=>{g.current=!1}));const y=(0,c.useRef)();(0,c.useEffect)((()=>{y.current=void 0}),[e]);const E=function({contentElement:e,clientId:t}){const n=Id(t),[o,r]=(0,c.useState)(0),{blockIndex:l,isSticky:i}=(0,f.useSelect)((e=>{const{getBlockIndex:n,getBlockAttributes:o}=e(Go);return{blockIndex:n(t),isSticky:rk(o(t))}}),[t]),a=(0,c.useMemo)((()=>{if(e)return(0,ea.getScrollContainer)(e)}),[e]),[s,u]=(0,c.useState)((()=>lI(e,n,a,o,i))),d=(0,p.useRefEffect)((e=>{r(e.offsetHeight)}),[]),m=(0,c.useCallback)((()=>u(lI(e,n,a,o,i))),[e,n,a,o]);return(0,c.useLayoutEffect)(m,[l,m]),(0,c.useLayoutEffect)((()=>{if(!e||!n)return;const t=e?.ownerDocument?.defaultView;let o;t?.addEventHandler?.("resize",m);const r=n?.ownerDocument?.defaultView;return r.ResizeObserver&&(o=new r.ResizeObserver(m),o.observe(n)),()=>{t?.removeEventHandler?.("resize",m),o&&o.disconnect()}}),[m,e,n]),{...s,ref:d}}({contentElement:l?.current,clientId:e});return _?(0,c.createElement)(Cg,{clientId:o||e,__unstableCoverTarget:!0,bottomClientId:u,className:d()("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":m}),__unstablePopoverSlot:r,__unstableContentRef:l,resize:!1,shift:!1,...E},(0,c.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},(0,c.createElement)(fg,{position:"bottom right",rootClientId:t,clientId:e,__experimentalIsQuick:!0}))):k||h?(0,c.createElement)(Cg,{clientId:o||e,bottomClientId:u,className:d()("block-editor-block-list__block-popover",{"is-insertion-point-visible":m}),__unstablePopoverSlot:r,__unstableContentRef:l,resize:!1,...E},h&&(0,c.createElement)(tI,{focusOnMount:g.current,__experimentalInitialIndex:y.current,__experimentalOnIndexChange:e=>{y.current=e},key:e}),k&&(0,c.createElement)(QB,{clientId:e,rootClientId:t})):null}function cI(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlockRootClientId:o,getBlock:r,getBlockParents:l,__experimentalGetBlockListSettingsForBlocks:i}=e(Go),s=t()||n();if(!s)return;const{name:c,attributes:u={}}=r(s)||{},d=l(s),p=i(d),m=d.find((e=>p[e]?.__experimentalCaptureToolbars));return{clientId:s,rootClientId:o(s),name:c,isEmptyDefaultBlock:c&&(0,a.isUnmodifiedDefaultBlock)({name:c,attributes:u}),capturingClientId:m}}function uI({__unstablePopoverSlot:e,__unstableContentRef:t}){const n=(0,f.useSelect)(cI,[]);if(!n)return null;const{clientId:o,rootClientId:r,name:l,isEmptyDefaultBlock:i,capturingClientId:a}=n;return l?(0,c.createElement)(sI,{clientId:o,rootClientId:r,isEmptyDefaultBlock:i,capturingClientId:a,__unstablePopoverSlot:e,__unstableContentRef:t}):null}var dI=function({__unstableContentRef:e}){const[t,n]=(0,c.useState)(!1),o=(0,f.useSelect)((e=>e(Go).getBlockOrder()),[]);return(0,c.useEffect)((()=>{const e=setTimeout((()=>{n(!0)}),500);return()=>{clearTimeout(e)}}),[]),t?o.map(((t,n)=>n===o.length-1?null:(0,c.createElement)(wg,{key:t,previousClientId:t,nextClientId:o[n+1],__unstableContentRef:e},(0,c.createElement)("div",{className:"block-editor-block-list__insertion-point-inserter is-with-inserter"},(0,c.createElement)(fg,{position:"bottom center",clientId:o[n+1],__experimentalIsQuick:!0}))))):null};function pI(e){const{__unstableGetEditorMode:t,getSettings:n,isTyping:o}=e(Go);return{isZoomOutMode:"zoom-out"===t(),hasFixedToolbar:n().hasFixedToolbar,isTyping:o()}}function mI({children:e,__unstableContentRef:t,...n}){const o=(0,p.useViewportMatch)("medium"),{hasFixedToolbar:r,isZoomOutMode:l,isTyping:i}=(0,f.useSelect)(pI,[]),a=(0,op.__unstableUseShortcutEventMatch)(),{getSelectedBlockClientIds:s,getBlockRootClientId:u}=(0,f.useSelect)(Go),{duplicateBlocks:d,removeBlocks:g,insertAfterBlock:h,insertBeforeBlock:b,clearSelectedBlock:v,selectBlock:_,moveBlocksUp:k,moveBlocksDown:y}=(0,f.useDispatch)(Go);const E=yg(t),w=yg(t);return(0,c.createElement)("div",{...n,onKeyDown:function(e){if(!e.defaultPrevented)if(a("core/block-editor/move-up",e)){const t=s();if(t.length){e.preventDefault();const n=u(t[0]);k(t,n)}}else if(a("core/block-editor/move-down",e)){const t=s();if(t.length){e.preventDefault();const n=u(t[0]);y(t,n)}}else if(a("core/block-editor/duplicate",e)){const t=s();t.length&&(e.preventDefault(),d(t))}else if(a("core/block-editor/remove",e)){const t=s();t.length&&(e.preventDefault(),g(t))}else if(a("core/block-editor/insert-after",e)){const t=s();t.length&&(e.preventDefault(),h(t[t.length-1]))}else if(a("core/block-editor/insert-before",e)){const t=s();t.length&&(e.preventDefault(),b(t[0]))}else if(a("core/block-editor/unselect",e)){const n=s();n.length&&(e.preventDefault(),n.length>1?_(n[0]):v(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges(),t?.current.focus())}}},(0,c.createElement)(Ig.Provider,{value:(0,c.useRef)(!1)},!i&&(0,c.createElement)(Mg,{__unstableContentRef:t}),!l&&(r||!o)&&(0,c.createElement)(tI,{isFixed:!0}),(0,c.createElement)(uI,{__unstableContentRef:t}),(0,c.createElement)(m.Popover.Slot,{name:"block-toolbar",ref:E}),e,(0,c.createElement)(m.Popover.Slot,{name:"__unstable-block-tools-after",ref:w}),l&&(0,c.createElement)(dI,{__unstableContentRef:t})))}const fI=()=>{};var gI=(0,c.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r=!1,__experimentalInsertionIndex:l,__experimentalFilterValue:i,onSelect:a=fI,shouldFocusBlock:s=!1},u){const{destinationRootClientId:d,prioritizePatterns:p}=(0,f.useSelect)((n=>{const{getBlockRootClientId:o,getSettings:r}=n(Go),l=e||o(t)||void 0;return{destinationRootClientId:l,prioritizePatterns:r().__experimentalPreferPatternsOnRoot&&!l}}),[t,e]);return(0,c.createElement)(cg,{onSelect:a,rootClientId:d,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r,__experimentalInsertionIndex:l,__experimentalFilterValue:i,shouldFocusBlock:s,prioritizePatterns:p,ref:u})}));function hI(){return null}hI.Register=function(){const{registerShortcut:e}=(0,f.useDispatch)(op.store);return(0,c.useEffect)((()=>{e({name:"core/block-editor/duplicate",category:"block",description:(0,v.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,v.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:(0,v.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:(0,v.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:(0,v.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:(0,v.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:(0,v.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,v.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,v.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,v.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var bI=hI;function vI(){return $()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}const _I=new Set([yd.UP,yd.RIGHT,yd.DOWN,yd.LEFT,yd.ENTER,yd.BACKSPACE]);function kI(){const e=(0,f.useSelect)((e=>e(Go).isTyping()),[]),{stopTyping:t}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((n=>{if(!e)return;const{ownerDocument:o}=n;let r,l;function i(e){const{clientX:n,clientY:o}=e;r&&l&&(r!==n||l!==o)&&t(),r=n,l=o}return o.addEventListener("mousemove",i),()=>{o.removeEventListener("mousemove",i)}}),[e,t])}function yI(){const{isTyping:e,hasInlineToolbar:t}=(0,f.useSelect)((e=>{const{isTyping:t,getSettings:n}=e(Go);return{isTyping:t(),hasInlineToolbar:n().hasInlineToolbar}}),[]),{startTyping:n,stopTyping:o}=(0,f.useDispatch)(Go),r=kI(),l=(0,p.useRefEffect)((r=>{const{ownerDocument:l}=r,{defaultView:i}=l,a=i.getSelection();if(e){let c;function u(e){const{target:t}=e;c=i.setTimeout((()=>{(0,ea.isTextField)(t)||o()}))}function d(e){const{keyCode:t}=e;t!==yd.ESCAPE&&t!==yd.TAB||o()}function p(){a.isCollapsed||o()}return r.addEventListener("focus",u),r.addEventListener("keydown",d),t||l.addEventListener("selectionchange",p),()=>{i.clearTimeout(c),r.removeEventListener("focus",u),r.removeEventListener("keydown",d),l.removeEventListener("selectionchange",p)}}function s(e){const{type:t,target:o}=e;(0,ea.isTextField)(o)&&r.contains(o)&&("keydown"!==t||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&_I.has(t)}(e))&&n()}return r.addEventListener("keypress",s),r.addEventListener("keydown",s),()=>{r.removeEventListener("keypress",s),r.removeEventListener("keydown",s)}}),[e,t,n,o]);return(0,p.useMergeRefs)([r,l])}var EI=function({children:e}){return(0,c.createElement)("div",{ref:yI()},e)};const wI=-1!==window.navigator.userAgent.indexOf("Trident"),SI=new Set([yd.UP,yd.DOWN,yd.LEFT,yd.RIGHT]),CI=.75;function xI(){const e=(0,f.useSelect)((e=>e(Go).hasSelectedBlock()),[]);return(0,p.useRefEffect)((t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,l,i;function a(){r||(r=o.requestAnimationFrame((()=>{p(),r=null})))}function s(e){l&&o.cancelAnimationFrame(l),l=o.requestAnimationFrame((()=>{c(e),l=null}))}function c({keyCode:e}){if(!m())return;const r=(0,ea.computeCaretRect)(o);if(!r)return;if(!i)return void(i=r);if(SI.has(e))return void(i=r);const l=r.top-i.top;if(0===l)return;const a=(0,ea.getScrollContainer)(t);if(!a)return;const s=a===n.body||a===n.documentElement,c=s?o.scrollY:a.scrollTop,u=s?0:a.getBoundingClientRect().top,d=s?i.top/o.innerHeight:(i.top-u)/(o.innerHeight-u);if(0===c&&d<CI&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(i=r);const p=s?o.innerHeight:a.clientHeight;i.top+i.height>u+p||i.top<u?i=r:s?o.scrollBy(0,l):a.scrollTop+=l}function u(){n.addEventListener("selectionchange",d)}function d(){n.removeEventListener("selectionchange",d),p()}function p(){m()&&(i=(0,ea.computeCaretRect)(o))}function m(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return o.addEventListener("scroll",a,!0),o.addEventListener("resize",a,!0),t.addEventListener("keydown",s),t.addEventListener("keyup",c),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",a,!0),o.removeEventListener("resize",a,!0),t.removeEventListener("keydown",s),t.removeEventListener("keyup",c),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(l)}}),[e])}var BI=wI?e=>e.children:function({children:e}){return(0,c.createElement)("div",{ref:xI(),className:"block-editor__typewriter"},e)};const II=(0,c.createContext)({});function TI({children:e,uniqueId:t,blockName:n=""}){const o=(0,c.useContext)(II),{name:r}=Ko();n=n||r;const l=(0,c.useMemo)((()=>function(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}(o,n,t)),[o,n,t]);return(0,c.createElement)(II.Provider,{value:l},e)}function MI(e,t=""){const n=(0,c.useContext)(II),{name:o}=Ko();return t=t||o,Boolean(n[t]?.has(e))}var PI=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));function NI({title:e,help:t,actions:n=[],onClose:o}){return(0,c.createElement)(m.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4},(0,c.createElement)(m.__experimentalHStack,{alignment:"center"},(0,c.createElement)(m.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13},e),(0,c.createElement)(m.__experimentalSpacer,null),n.map((({label:e,icon:t,onClick:n})=>(0,c.createElement)(m.Button,{key:e,className:"block-editor-inspector-popover-header__action",label:e,icon:t,variant:!t&&"tertiary",onClick:n},!t&&e))),o&&(0,c.createElement)(m.Button,{className:"block-editor-inspector-popover-header__action",label:(0,v.__)("Close"),icon:PI,onClick:o})),t&&(0,c.createElement)(m.__experimentalText,null,t))}var LI=(0,c.forwardRef)((function({onClose:e,onChange:t,...n},o){return(0,c.createElement)("div",{ref:o,className:"block-editor-publish-date-time-picker"},(0,c.createElement)(NI,{title:(0,v.__)("Publish"),actions:[{label:(0,v.__)("Now"),onClick:()=>t?.(null)}],onClose:e}),(0,c.createElement)(m.DateTimePicker,{startOfWeek:(0,Iw.getSettings)().l10n.startOfWeek,onChange:t,...n}))}));const RI={button:"wp-element-button",caption:"wp-element-caption"},AI=e=>RI[e]?RI[e]:"";function DI(e,t){return Object.entries(t).every((([t,n])=>"object"==typeof n&&"object"==typeof e[t]?DI(e[t],n):e[t]===n))}const OI=(e,t)=>{if(!t||!e)return;const n=t.filter((({attributes:t})=>!(!t||!Object.keys(t).length)&&DI(e,t)));return 1===n.length?n[0]:void 0};function zI(e){const t=e?.trim().match(/^(0?[-.]?\d*\.?\d+)(r?e[m|x]|v[h|w|min|max]+|p[x|t|c]|[c|m]m|%|in|ch|Q|lh)$/);return isNaN(e)||isNaN(parseFloat(e))?t?{value:parseFloat(t[1])||t[1],unit:t[2]}:{value:e,unit:void 0}:{value:parseFloat(e),unit:"px"}}function VI(e){try{return Function(`'use strict'; return (${e})`)()}catch(e){return null}}function FI(e,t){const n=e.split(/[(),]/g).filter(Boolean),o=n.slice(1).map((e=>zI(UI(e,t)).value)).filter(Boolean);switch(n[0]){case"min":return Math.min(...o)+"px";case"max":return Math.max(...o)+"px";case"clamp":return 3!==o.length?null:o[1]<o[0]?o[0]+"px":o[1]>o[2]?o[2]+"px":o[1]+"px";case"calc":return o[0]+"px"}}function HI(e){for(;;){const t=e,n=/(max|min|calc|clamp)\(([^()]*)\)/g.exec(e)||[];if(n[0]){const t=FI(n[0]);e=e.replace(n[0],t)}if(e===t||parseFloat(e))break}return zI(e)}function GI(e){for(let t=0;t<e.length;t++)if(["+","-","/","*"].includes(e[t]))return!0;return!1}function UI(e,t={}){if(Number.isFinite(e))return e.toFixed(0)+"px";if(void 0===e)return null;let n=zI(e);return n.unit||(n=HI(e)),GI(e)&&!n.unit?function(e){let t=!1;const n=e.match(/\d+\.?\d*[a-zA-Z]+|\.\d+[a-zA-Z]+/g);if(n)for(const o of n){const n=zI(UI(o));if(!parseFloat(n.value)){t=!0;break}e=e.replace(o,n.value)}else t=!0;const o=e.match(/(max|min|clamp)/g);if(!t&&o){const t=e.split(",");for(const n of t){const t=n.replace(/\s|calc/g,"");if(GI(t)){const o=VI(t);if(o){const t=o.toFixed(0)+"px";e=e.replace(n,t)}}}const n=HI(e);return n?n.value+n.unit:null}if(t)return null;const r=VI(e);return r?r.toFixed(0)+"px":null}(e):function(e,t){const n=96,o=.01,r=Object.assign({},{fontSize:16,lineHeight:16,width:375,height:812,type:"font"},t),l={em:r.fontSize,rem:r.fontSize,vh:r.height*o,vw:r.width*o,vmin:(r.width<r.height?r.width:r.height)*o,vmax:(r.width>r.height?r.width:r.height)*o,"%":("font"===r.type?r.fontSize:r.width)*o,ch:8,ex:7.15625,lh:r.lineHeight},i={in:n,cm:37.79527559055118,mm:3.7795275590551185,pt:1.3333333333333333,pc:16,px:1,Q:.9448818897637794};return l[e.unit]?(l[e.unit]*e.value).toFixed(0)+"px":i[e.unit]?(i[e.unit]*e.value).toFixed(0)+"px":null}(n,t)}const $I={};var jI=function(e,t={}){const n=e+function(e){let t="";e.hasOwnProperty("fontSize")&&(t=":"+e.width);e.hasOwnProperty("lineHeight")&&(t=":"+e.lineHeight);e.hasOwnProperty("width")&&(t=":"+e.width);e.hasOwnProperty("height")&&(t=":"+e.height);e.hasOwnProperty("type")&&(t=":"+e.type);return t}(t);return $I[n]||($I[n]=UI(e,t)),$I[n]};const WI={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"};function KI(e){const t="var:";if(e?.startsWith?.(t)){return`var(--wp--${e.slice(4).split("|").join("--")})`}return e}function qI(e={},t,n){let o=[];return Object.keys(e).forEach((r=>{const l=t+Ll(r.replace("/","-")),i=e[r];if(i instanceof Object){const e=l+n;o=[...o,...qI(i,e,n)]}else o.push(`${l}: ${i}`)})),o}const ZI=(e,t)=>{const n={};return Object.entries(e).forEach((([e,o])=>{if("root"===e||!t?.[e])return;const r="string"==typeof o;if(r||Object.entries(o).forEach((([o,r])=>{if("root"===o||!t?.[e][o])return;const l=YI({[e]:{[o]:t[e][o]}});n[r]=[...n[r]||[],...l],delete t[e][o]})),r||o.root){const l=r?o:o.root,i=YI({[e]:t[e]});n[l]=[...n[l]||[],...i],delete t[e]}})),n};function YI(e={},t="",n,o={}){const r=ul===t,l=Object.entries(a.__EXPERIMENTAL_STYLE_PROPERTY).reduce(((t,[o,{value:l,properties:i,useEngine:a,rootOnly:s}])=>{if(s&&!r)return t;const c=l;if("elements"===c[0]||a)return t;const u=(0,Wr.get)(e,c);if("--wp--style--root--padding"===o&&("string"==typeof u||!n))return t;if(i&&"string"!=typeof u)Object.entries(i).forEach((e=>{const[n,o]=e;if(!(0,Wr.get)(u,[o],!1))return;const r=n.startsWith("--")?n:Ll(n);t.push(`${r}: ${KI((0,Wr.get)(u,[o]))}`)}));else if((0,Wr.get)(e,c,!1)){const n=o.startsWith("--")?o:Ll(o);t.push(`${n}: ${KI((0,Wr.get)(e,c))}`)}return t}),[]);return(0,ei.getCSSRules)(e).forEach((e=>{if(r&&n&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:Ll(e.key);let i=e.value;if("string"!=typeof i&&i?.ref){const e=i.ref.split(".");if(i=(0,Wr.get)(o,e),!i||i?.ref)return}"font-size"===t&&(i=al({size:i},cl(o?.settings))),l.push(`${t}: ${i}`)})),l}function XI({layoutDefinitions:e=sr,style:t,selector:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,fallbackGapValue:l}){let i="",a=o?Pr(t?.spacing?.blockGap):"";if(r&&(n===ul?a=a||"0.5em":!o&&l&&(a=l)),a&&e&&(Object.values(e).forEach((({className:e,name:t,spacingStyles:r})=>{(o||"flex"===t||"grid"===t)&&r?.length&&r.forEach((t=>{const r=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{r.push(`${e}: ${t||a}`)})),r.length){let l="";l=o?n===ul?`:where(${n} .${e})${t?.selector||""}`:`${n}-${e}${t?.selector||""}`:n===ul?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,i+=`${l} { ${r.join("; ")}; }`}}))})),n===ul&&o&&(i+=`${n} { --wp--style--block-gap: ${a}; }`)),n===ul&&e){const t=["block","flex","grid"];Object.values(e).forEach((({className:e,displayMode:o,baseStyles:r})=>{o&&t.includes(o)&&(i+=`${n} .${e} { display:${o}; }`),r?.length&&r.forEach((t=>{const o=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{o.push(`${e}: ${t}`)})),o.length){i+=`${`${n} .${e}${t?.selector||""}`} { ${o.join("; ")}; }`}}))}))}return i}const QI=["border","color","dimensions","spacing","typography","filter","outline","shadow"];function JI(e){if(!e)return{};const t=Object.entries(e).filter((([e])=>QI.includes(e))).map((([e,t])=>[e,JSON.parse(JSON.stringify(t))]));return Object.fromEntries(t)}const eT=(e,t)=>{var n;const o=[];if(!e?.settings)return o;const r=e=>{const t={};return dl.forEach((({path:n})=>{const o=(0,Wr.get)(e,n,!1);!1!==o&&(0,Wr.set)(t,n,o)})),t},l=r(e.settings),i=e.settings?.custom;return(Object.keys(l).length>0||i)&&o.push({presets:l,custom:i,selector:ul}),Object.entries(null!==(n=e.settings?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{const l=r(n),i=n.custom;(Object.keys(l).length>0||i)&&o.push({presets:l,custom:i,selector:t[e]?.selector})})),o},tT=(e,t)=>{const n=eT(e,t);let o="";return n.forEach((({presets:t,custom:n,selector:r})=>{const l=function(e={},t){return dl.reduce(((n,{path:o,valueKey:r,valueFunc:l,cssVarInfix:i})=>{const a=(0,Wr.get)(e,o,[]);return["default","theme","custom"].forEach((e=>{a[e]&&a[e].forEach((e=>{r&&!l?n.push(`--wp--preset--${i}--${Ll(e.slug)}: ${e[r]}`):l&&"function"==typeof l&&n.push(`--wp--preset--${i}--${Ll(e.slug)}: ${l(e,t)}`)}))})),n}),[])}(t,e?.settings),i=qI(n,"--wp--custom--","--");i.length>0&&l.push(...i),l.length>0&&(o+=`${r}{${l.join(";")};}`)})),o},nT=(e,t,n,o,r=!1)=>{const l=((e,t)=>{var n;const o=[];if(!e?.styles)return o;const r=JI(e.styles);return r&&o.push({styles:r,selector:ul}),Object.entries(a.__EXPERIMENTAL_ELEMENTS).forEach((([t,n])=>{e.styles?.elements?.[t]&&o.push({styles:e.styles?.elements?.[t],selector:n})})),Object.entries(null!==(n=e.styles?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{var r;const l=JI(n);if(n?.variations){const e={};Object.keys(n.variations).forEach((t=>{e[t]=JI(n.variations[t])})),l.variations=e}l&&t?.[e]?.selector&&o.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:l,featureSelectors:t[e].featureSelectors,styleVariationSelectors:t[e].styleVariationSelectors}),Object.entries(null!==(r=n?.elements)&&void 0!==r?r:{}).forEach((([n,r])=>{r&&t?.[e]&&a.__EXPERIMENTAL_ELEMENTS[n]&&o.push({styles:r,selector:t[e]?.selector.split(",").map((e=>a.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),o})(e,t),i=eT(e,t),s=e?.settings?.useRootPaddingAwareAlignments,{contentSize:c,wideSize:u}=e?.settings?.layout||{};let d="body {margin: 0;";if(c&&(d+=` --wp--style--global--content-size: ${c};`),u&&(d+=` --wp--style--global--wide-size: ${u};`),s&&(d+="padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }\n\t\t\t.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t.has-global-padding :where(.has-global-padding) { padding-right: 0; padding-left: 0; }\n\t\t\t.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }\n\t\t\t.has-global-padding :where(.has-global-padding) > .alignfull { margin-right: 0; margin-left: 0; }\n\t\t\t.has-global-padding > .alignfull:where(:not(.has-global-padding)) > :where(.wp-block:not(.alignfull),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t.has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where(.wp-block:not(.alignfull),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0;"),d+="}",l.forEach((({selector:t,duotoneSelector:l,styles:i,fallbackGapValue:a,hasLayoutSupport:c,featureSelectors:u,styleVariationSelectors:p})=>{if(u){const e=ZI(u,i);Object.entries(e).forEach((([e,t])=>{if(t.length){const n=t.join(";");d+=`${e}{${n};}`}}))}if(p&&Object.entries(p).forEach((([t,n])=>{const o=i?.variations?.[t];if(o){if(u){const e=ZI(u,o);Object.entries(e).forEach((([e,t])=>{if(t.length){const o=function(e,t){const n=e.split(","),o=[];return n.forEach((e=>{o.push(`${t.trim()}${e.trim()}`)})),o.join(", ")}(e,n),r=t.join(";");d+=`${o}{${r};}`}}))}const t=YI(o,n,s,e);t.length&&(d+=`${n}{${t.join(";")};}`)}})),l){const e={};i?.filter&&(e.filter=i.filter,delete i.filter);const t=YI(e);t.length&&(d+=`${l}{${t.join(";")};}`)}r||ul!==t&&!c||(d+=XI({style:i,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:o,fallbackGapValue:a}));const m=YI(i,t,s,e);m?.length&&(d+=`${t}{${m.join(";")};}`);const f=Object.entries(i).filter((([e])=>e.startsWith(":")));f?.length&&f.forEach((([e,n])=>{const o=YI(n);if(!o?.length)return;const r=`${t.split(",").map((t=>t+e)).join(",")}{${o.join(";")};}`;d+=r}))})),d+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",d+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",d+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }",n){const t=Pr(e?.styles?.spacing?.blockGap)||"0.5em";d+=`:where(.wp-site-blocks) > * { margin-block-start: ${t}; margin-block-end: 0; }`,d+=":where(.wp-site-blocks) > :first-child:first-child { margin-block-start: 0; }",d+=":where(.wp-site-blocks) > :last-child:last-child { margin-block-end: 0; }"}return i.forEach((({selector:e,presets:t})=>{ul===e&&(e="");const n=function(e="*",t={}){return dl.reduce(((n,{path:o,cssVarInfix:r,classes:l})=>{if(!l)return n;const i=(0,Wr.get)(t,o,[]);return["default","theme","custom"].forEach((t=>{i[t]&&i[t].forEach((({slug:t})=>{l.forEach((({classSuffix:o,propertyName:l})=>{const i=`.has-${Ll(t)}-${o}`,a=e.split(",").map((e=>`${e}${i}`)).join(","),s=`var(--wp--preset--${r}--${Ll(t)})`;n+=`${a}{${l}: ${s} !important;}`}))}))})),n}),"")}(e,t);n.length>0&&(d+=n)})),d};function oT(e,t){return eT(e,t).flatMap((({presets:e})=>function(e={}){return dl.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=(0,Wr.get)(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>(0,c.renderToString)((0,c.createElement)(M_,{preset:e,key:e.slug})))))).join("")}))}(e)))}const rT=(e,t)=>{const n={};return e.forEach((e=>{const o=e.name,r=P_(e);let l=P_(e,"filter.duotone");if(!l){const t=P_(e),n=(0,a.getBlockSupport)(e,"color.__experimentalDuotone",!1);l=n&&gl(t,n)}const i=!!e?.supports?.layout||!!e?.supports?.__experimentalLayout,s=e?.supports?.spacing?.blockGap?.__experimentalDefault,c=t(o),u={};c?.length&&c.forEach((e=>{const t=`.is-style-${e.name}${r}`;u[e.name]=t}));const d=((e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;const n={root:t};return Object.entries(WI).forEach((([t,o])=>{const r=P_(e,t);r&&(n[o]=r)})),n})(e,r);n[o]={duotoneSelector:l,fallbackGapValue:s,featureSelectors:Object.keys(d).length?d:void 0,hasLayoutSupport:i,name:o,selector:r,styleVariationSelectors:Object.keys(u).length?u:void 0}})),n};const lT=(e,t)=>{let n="";return e.split("&").forEach((e=>{n+=e.includes("{")?t+e:t+"{"+e+"}"})),n};function iT(e={}){const[t]=yl("spacing.blockGap"),n=null!==t,o=!n,r=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return!!t().disableLayoutStyles})),l=(0,f.useSelect)((e=>e(a.store).getBlockStyles),[]);return(0,c.useMemo)((()=>{var t;if(!e?.styles||!e?.settings)return[];e=function(e){return e.styles?.blocks?.["core/separator"]&&e.styles?.blocks?.["core/separator"].color?.background&&!e.styles?.blocks?.["core/separator"].color?.text&&!e.styles?.blocks?.["core/separator"].border?.color?{...e,styles:{...e.styles,blocks:{...e.styles.blocks,"core/separator":{...e.styles.blocks["core/separator"],color:{...e.styles.blocks["core/separator"].color,text:e.styles?.blocks["core/separator"].color.background}}}}}:e}(e);const i=rT((0,a.getBlockTypes)(),l),s=tT(e,i),c=nT(e,i,n,o,r),u=oT(e,i),d=[{css:s,isGlobalStyles:!0},{css:c,isGlobalStyles:!0},{css:null!==(t=e.styles.css)&&void 0!==t?t:"",isGlobalStyles:!0},{assets:u,__unstableType:"svg",isGlobalStyles:!0}];return(0,a.getBlockTypes)().forEach((t=>{if(e.styles.blocks[t.name]?.css){const n=i[t.name].selector;d.push({css:lT(e.styles.blocks[t.name]?.css,n),isGlobalStyles:!0})}})),[d,e.settings]}),[n,o,e,r])}function aT(){const{merged:e}=(0,c.useContext)(bl);return iT(e)}var sT=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"}));function cT(e){return uT(e)}function uT(e){return!!e?.shadow}function dT({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,c.createElement)(m.__experimentalToolsPanel,{label:(0,v.__)("Effects"),resetAll:()=>{const o=e(n);t(o)},panelId:o},r)}const pT={shadow:!0};function mT({as:e=dT,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=pT}){const a=uT(r),s=(u=o?.shadow,fl({settings:r},"",u));var u;const d=e=>{n(Al(t,["shadow"],e))},p=(0,c.useCallback)((e=>({...e,shadow:void 0})),[]);return(0,c.createElement)(e,{resetAllFilter:p,value:t,onChange:n,panelId:l},a&&(0,c.createElement)(m.__experimentalToolsPanelItem,{label:(0,v.__)("Shadow"),hasValue:()=>!!t?.shadow,onDeselect:()=>d(void 0),isShownByDefault:i.shadow,panelId:l},(0,c.createElement)(m.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,c.createElement)(fT,{shadow:s,onShadowChange:d,settings:r}))))}const fT=({shadow:e,onShadowChange:t,settings:n})=>(0,c.createElement)(m.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:"block-editor-global-styles-effects-panel__shadow-dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:d()({"is-open":t}),"aria-expanded":t};return(0,c.createElement)(m.Button,{...n},(0,c.createElement)(m.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(Xl,{className:"block-editor-global-styles-effects-panel__toggle-icon",icon:sT,size:24}),(0,c.createElement)(m.FlexItem,null,(0,v.__)("Shadow"))))},renderContent:()=>(0,c.createElement)(m.__experimentalDropdownContentWrapper,{paddingSize:"medium"},(0,c.createElement)(gT,{shadow:e,onShadowChange:t,settings:n}))});function gT({shadow:e,onShadowChange:t,settings:n}){const o=n?.shadow?.presets?.default,r=n?.shadow?.presets?.theme,l=n?.shadow?.defaultPresets,i=[...l?o:[],...r||[]];return(0,c.createElement)("div",{className:"block-editor-global-styles-effects-panel__shadow-popover-container"},(0,c.createElement)(m.__experimentalVStack,{spacing:4},(0,c.createElement)(m.__experimentalHeading,{level:5},(0,v.__)("Shadow")),(0,c.createElement)(hT,{presets:i,activeShadow:e,onSelect:t})))}function hT({presets:e,activeShadow:t,onSelect:n}){return e?(0,c.createElement)(m.__experimentalGrid,{columns:6,gap:0,align:"center",justify:"center"},e.map((({name:e,slug:o,shadow:r})=>(0,c.createElement)(bT,{key:o,label:e,isActive:r===t,onSelect:()=>n(r===t?void 0:r),shadow:r})))):null}function bT({label:e,isActive:t,onSelect:n,shadow:o}){return(0,c.createElement)("div",{className:"block-editor-global-styles-effects-panel__shadow-indicator-wrapper"},(0,c.createElement)(m.Button,{className:"block-editor-global-styles-effects-panel__shadow-indicator",onClick:n,label:e,style:{boxShadow:o},showTooltip:!0},t&&(0,c.createElement)(Xl,{icon:Rv})))}function vT({value:e,onChange:t,inheritedValue:n=e}){const[o,r]=(0,c.useState)(null),l=n?.css;return(0,c.createElement)(m.__experimentalVStack,{spacing:3},(0,c.createElement)(m.TextareaControl,{label:(0,v.__)("Additional CSS"),__nextHasNoMarginBottom:!0,value:l,onChange:n=>function(n){if(t({...e,css:n}),o){const[t]=fm([{css:e}],".editor-styles-wrapper");t&&r(null)}}(n),onBlur:function(e){if(!e?.target?.value)return void r(null);const[t]=fm([{css:e.target.value}],".editor-styles-wrapper");r(null===t?(0,v.__)("There is an error with your CSS structure."):null)},className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1}),o&&(0,c.createElement)(m.Tooltip,{text:o},(0,c.createElement)("div",{className:"block-editor-global-styles-advanced-panel__custom-css-validation-wrapper"},(0,c.createElement)(Xl,{icon:XS,className:"block-editor-global-styles-advanced-panel__custom-css-validation-icon"}))))}function _T(e,t,n){if(null==e||!1===e)return;if(Array.isArray(e))return kT(e,t,n);switch(typeof e){case"string":case"number":return}const{type:o,props:r}=e;switch(o){case c.StrictMode:case c.Fragment:return kT(r.children,t,n);case c.RawHTML:return;case qg.Content:return yT(t,n);case ax:return void t.push(r.value)}switch(typeof o){case"string":return void 0!==r.children?kT(r.children,t,n):void 0;case"function":return _T(o.prototype&&"function"==typeof o.prototype.render?new o(r).render():o(r),t,n)}}function kT(e,...t){e=Array.isArray(e)?e:[e];for(let n=0;n<e.length;n++)_T(e[n],...t)}function yT(e,t){for(let n=0;n<t.length;n++){const{name:o,attributes:r,innerBlocks:l}=t[n];_T((0,a.getSaveElement)(o,r,(0,c.createElement)(qg.Content,null)),e,l)}}const ET=[{label:(0,v._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},{label:(0,v._x)("Square - 1:1","Aspect ratio option for dimensions control"),value:"1"},{label:(0,v._x)("Standard - 4:3","Aspect ratio option for dimensions control"),value:"4/3"},{label:(0,v._x)("Portrait - 3:4","Aspect ratio option for dimensions control"),value:"3/4"},{label:(0,v._x)("Classic - 3:2","Aspect ratio option for dimensions control"),value:"3/2"},{label:(0,v._x)("Classic Portrait - 2:3","Aspect ratio option for dimensions control"),value:"2/3"},{label:(0,v._x)("Wide - 16:9","Aspect ratio option for dimensions control"),value:"16/9"},{label:(0,v._x)("Tall - 9:16","Aspect ratio option for dimensions control"),value:"9/16"},{label:(0,v._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];function wT({panelId:e,value:t,onChange:n=(()=>{}),options:o=ET,defaultValue:r=ET[0].value,isShownByDefault:l=!0}){const i=null!=t?t:"auto";return(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>i!==r,label:(0,v.__)("Aspect ratio"),onDeselect:()=>n(void 0),isShownByDefault:l,panelId:e},(0,c.createElement)(m.SelectControl,{label:(0,v.__)("Aspect ratio"),value:i,options:o,onChange:n,size:"__unstable-large",__nextHasNoMarginBottom:!0}))}const ST=[{value:"fill",label:(0,v._x)("Fill","Scale option for dimensions control"),help:(0,v.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,v._x)("Contain","Scale option for dimensions control"),help:(0,v.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,v._x)("Cover","Scale option for dimensions control"),help:(0,v.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,v._x)("None","Scale option for dimensions control"),help:(0,v.__)("Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.")},{value:"scale-down",label:(0,v._x)("Scale down","Scale option for dimensions control"),help:(0,v.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function CT({panelId:e,value:t,onChange:n,options:o=ST,defaultValue:r=ST[0].value,isShownByDefault:l=!0}){const i=null!=t?t:"fill",a=(0,c.useMemo)((()=>o.reduce(((e,t)=>(e[t.value]=t.help,e)),{})),[o]);return(0,c.createElement)(m.__experimentalToolsPanelItem,{label:(0,v.__)("Scale"),isShownByDefault:l,hasValue:()=>i!==r,onDeselect:()=>n(r),panelId:e},(0,c.createElement)(m.__experimentalToggleGroupControl,{label:(0,v.__)("Scale"),isBlock:!0,help:a[i],value:i,onChange:n,__nextHasNoMarginBottom:!0},o.map((e=>(0,c.createElement)(m.__experimentalToggleGroupControlOption,{key:e.value,...e})))))}function xT(){return xT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},xT.apply(this,arguments)}function BT(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var IT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,TT=BT((function(e){return IT.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var MT=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),PT=Math.abs,NT=String.fromCharCode,LT=Object.assign;function RT(e){return e.trim()}function AT(e,t,n){return e.replace(t,n)}function DT(e,t){return e.indexOf(t)}function OT(e,t){return 0|e.charCodeAt(t)}function zT(e,t,n){return e.slice(t,n)}function VT(e){return e.length}function FT(e){return e.length}function HT(e,t){return t.push(e),e}var GT=1,UT=1,$T=0,jT=0,WT=0,KT="";function qT(e,t,n,o,r,l,i){return{value:e,root:t,parent:n,type:o,props:r,children:l,line:GT,column:UT,length:i,return:""}}function ZT(e,t){return LT(qT("",null,null,"",null,null,0),e,{length:-e.length},t)}function YT(){return WT=jT>0?OT(KT,--jT):0,UT--,10===WT&&(UT=1,GT--),WT}function XT(){return WT=jT<$T?OT(KT,jT++):0,UT++,10===WT&&(UT=1,GT++),WT}function QT(){return OT(KT,jT)}function JT(){return jT}function eM(e,t){return zT(KT,e,t)}function tM(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function nM(e){return GT=UT=1,$T=VT(KT=e),jT=0,[]}function oM(e){return KT="",e}function rM(e){return RT(eM(jT-1,aM(91===e?e+2:40===e?e+1:e)))}function lM(e){for(;(WT=QT())&&WT<33;)XT();return tM(e)>2||tM(WT)>3?"":" "}function iM(e,t){for(;--t&&XT()&&!(WT<48||WT>102||WT>57&&WT<65||WT>70&&WT<97););return eM(e,JT()+(t<6&&32==QT()&&32==XT()))}function aM(e){for(;XT();)switch(WT){case e:return jT;case 34:case 39:34!==e&&39!==e&&aM(WT);break;case 40:41===e&&aM(e);break;case 92:XT()}return jT}function sM(e,t){for(;XT()&&e+WT!==57&&(e+WT!==84||47!==QT()););return"/*"+eM(t,jT-1)+"*"+NT(47===e?e:XT())}function cM(e){for(;!tM(QT());)XT();return eM(e,jT)}var uM="-ms-",dM="-moz-",pM="-webkit-",mM="comm",fM="rule",gM="decl",hM="@keyframes";function bM(e,t){for(var n="",o=FT(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function vM(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case gM:return e.return=e.return||e.value;case mM:return"";case hM:return e.return=e.value+"{"+bM(e.children,o)+"}";case fM:e.value=e.props.join(",")}return VT(n=bM(e.children,o))?e.return=e.value+"{"+n+"}":""}function _M(e){return oM(kM("",null,null,null,[""],e=nM(e),0,[0],e))}function kM(e,t,n,o,r,l,i,a,s){for(var c=0,u=0,d=i,p=0,m=0,f=0,g=1,h=1,b=1,v=0,_="",k=r,y=l,E=o,w=_;h;)switch(f=v,v=XT()){case 40:if(108!=f&&58==OT(w,d-1)){-1!=DT(w+=AT(rM(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=rM(v);break;case 9:case 10:case 13:case 32:w+=lM(f);break;case 92:w+=iM(JT()-1,7);continue;case 47:switch(QT()){case 42:case 47:HT(EM(sM(XT(),JT()),t,n),s);break;default:w+="/"}break;case 123*g:a[c++]=VT(w)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:h=0;case 59+u:-1==b&&(w=AT(w,/\f/g,"")),m>0&&VT(w)-d&&HT(m>32?wM(w+";",o,n,d-1):wM(AT(w," ","")+";",o,n,d-2),s);break;case 59:w+=";";default:if(HT(E=yM(w,t,n,c,u,r,a,_,k=[],y=[],d),l),123===v)if(0===u)kM(w,t,E,E,k,l,d,a,y);else switch(99===p&&110===OT(w,3)?100:p){case 100:case 108:case 109:case 115:kM(e,E,E,o&&HT(yM(e,E,E,0,0,r,a,_,r,k=[],d),y),r,y,d,a,o?k:y);break;default:kM(w,E,E,E,[""],y,0,a,y)}}c=u=m=0,g=b=1,_=w="",d=i;break;case 58:d=1+VT(w),m=f;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==YT())continue;switch(w+=NT(v),v*g){case 38:b=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(VT(w)-1)*b,b=1;break;case 64:45===QT()&&(w+=rM(XT())),p=QT(),u=d=VT(_=w+=cM(JT())),v++;break;case 45:45===f&&2==VT(w)&&(g=0)}}return l}function yM(e,t,n,o,r,l,i,a,s,c,u){for(var d=r-1,p=0===r?l:[""],m=FT(p),f=0,g=0,h=0;f<o;++f)for(var b=0,v=zT(e,d+1,d=PT(g=i[f])),_=e;b<m;++b)(_=RT(g>0?p[b]+" "+v:AT(v,/&\f/g,p[b])))&&(s[h++]=_);return qT(e,t,n,0===r?fM:a,s,c,u)}function EM(e,t,n){return qT(e,t,n,mM,NT(WT),zT(e,2,-2),0)}function wM(e,t,n,o){return qT(e,t,n,gM,zT(e,0,o),zT(e,o+1,-1),o)}var SM=function(e,t,n){for(var o=0,r=0;o=r,r=QT(),38===o&&12===r&&(t[n]=1),!tM(r);)XT();return eM(e,jT)},CM=function(e,t){return oM(function(e,t){var n=-1,o=44;do{switch(tM(o)){case 0:38===o&&12===QT()&&(t[n]=1),e[n]+=SM(jT-1,t,n);break;case 2:e[n]+=rM(o);break;case 4:if(44===o){e[++n]=58===QT()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=NT(o)}}while(o=XT());return e}(nM(e),t))},xM=new WeakMap,BM=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||xM.get(n))&&!o){xM.set(e,!0);for(var r=[],l=CM(t,r),i=n.props,a=0,s=0;a<l.length;a++)for(var c=0;c<i.length;c++,s++)e.props[s]=r[a]?l[a].replace(/&\f/g,i[c]):i[c]+" "+l[a]}}},IM=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function TM(e,t){switch(function(e,t){return 45^OT(e,0)?(((t<<2^OT(e,0))<<2^OT(e,1))<<2^OT(e,2))<<2^OT(e,3):0}(e,t)){case 5103:return pM+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pM+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pM+e+dM+e+uM+e+e;case 6828:case 4268:return pM+e+uM+e+e;case 6165:return pM+e+uM+"flex-"+e+e;case 5187:return pM+e+AT(e,/(\w+).+(:[^]+)/,pM+"box-$1$2"+uM+"flex-$1$2")+e;case 5443:return pM+e+uM+"flex-item-"+AT(e,/flex-|-self/,"")+e;case 4675:return pM+e+uM+"flex-line-pack"+AT(e,/align-content|flex-|-self/,"")+e;case 5548:return pM+e+uM+AT(e,"shrink","negative")+e;case 5292:return pM+e+uM+AT(e,"basis","preferred-size")+e;case 6060:return pM+"box-"+AT(e,"-grow","")+pM+e+uM+AT(e,"grow","positive")+e;case 4554:return pM+AT(e,/([^-])(transform)/g,"$1"+pM+"$2")+e;case 6187:return AT(AT(AT(e,/(zoom-|grab)/,pM+"$1"),/(image-set)/,pM+"$1"),e,"")+e;case 5495:case 3959:return AT(e,/(image-set\([^]*)/,pM+"$1$`$1");case 4968:return AT(AT(e,/(.+:)(flex-)?(.*)/,pM+"box-pack:$3"+uM+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pM+e+e;case 4095:case 3583:case 4068:case 2532:return AT(e,/(.+)-inline(.+)/,pM+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(VT(e)-1-t>6)switch(OT(e,t+1)){case 109:if(45!==OT(e,t+4))break;case 102:return AT(e,/(.+:)(.+)-([^]+)/,"$1"+pM+"$2-$3$1"+dM+(108==OT(e,t+3)?"$3":"$2-$3"))+e;case 115:return~DT(e,"stretch")?TM(AT(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==OT(e,t+1))break;case 6444:switch(OT(e,VT(e)-3-(~DT(e,"!important")&&10))){case 107:return AT(e,":",":"+pM)+e;case 101:return AT(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pM+(45===OT(e,14)?"inline-":"")+"box$3$1"+pM+"$2$3$1"+uM+"$2box$3")+e}break;case 5936:switch(OT(e,t+11)){case 114:return pM+e+uM+AT(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pM+e+uM+AT(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pM+e+uM+AT(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pM+e+uM+e+e}return e}var MM=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case gM:e.return=TM(e.value,e.length);break;case hM:return bM([ZT(e,{value:AT(e.value,"@","@"+pM)})],o);case fM:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bM([ZT(e,{props:[AT(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return bM([ZT(e,{props:[AT(t,/:(plac\w+)/,":"+pM+"input-$1")]}),ZT(e,{props:[AT(t,/:(plac\w+)/,":-moz-$1")]}),ZT(e,{props:[AT(t,/:(plac\w+)/,uM+"input-$1")]})],o)}return""}))}}],PM=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||MM;var r,l,i={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;a.push(e)}));var s,c,u,d,p=[vM,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],m=(c=[BM,IM].concat(o,p),u=FT(c),function(e,t,n,o){for(var r="",l=0;l<u;l++)r+=c[l](e,t,n,o)||"";return r});l=function(e,t,n,o){s=n,function(e){bM(_M(e),m)}(e?e+"{"+t.styles+"}":t.styles),o&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new MT({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return f.sheet.hydrate(a),f};var NM={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function LM(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var RM=/[A-Z]|^ms/g,AM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,DM=function(e){return 45===e.charCodeAt(1)},OM=function(e){return null!=e&&"boolean"!=typeof e},zM=LM((function(e){return DM(e)?e:e.replace(RM,"-$&").toLowerCase()})),VM=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(AM,(function(e,t,n){return HM={name:t,styles:n,next:HM},t}))}return 1===NM[e]||DM(e)||"number"!=typeof t||0===t?t:t+"px"};function FM(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return HM={name:n.name,styles:n.styles,next:HM},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)HM={name:o.name,styles:o.styles,next:HM},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=FM(e,t,n[r])+";";else for(var l in n){var i=n[l];if("object"!=typeof i)null!=t&&void 0!==t[i]?o+=l+"{"+t[i]+"}":OM(i)&&(o+=zM(l)+":"+VM(l,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var a=FM(e,t,i);switch(l){case"animation":case"animationName":o+=zM(l)+":"+a+";";break;default:o+=l+"{"+a+"}"}}else for(var s=0;s<i.length;s++)OM(i[s])&&(o+=zM(l)+":"+VM(l,i[s])+";")}return o}(e,t,n);case"function":if(void 0!==e){var r=HM,l=n(e);return HM=r,FM(e,t,l)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var HM,GM=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var UM=!!ya.useInsertionEffect&&ya.useInsertionEffect,$M=UM||function(e){return e()},jM=(UM||ya.useLayoutEffect,ya.createContext("undefined"!=typeof HTMLElement?PM({key:"css"}):null));jM.Provider;var WM=function(e){return(0,ya.forwardRef)((function(t,n){var o=(0,ya.useContext)(jM);return e(t,o,n)}))};var KM=ya.createContext({});var qM=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},ZM=TT,YM=function(e){return"theme"!==e},XM=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ZM:YM},QM=function(e,t,n){var o;if(t){var r=t.shouldForwardProp;o=e.__emotion_forwardProp&&r?function(t){return e.__emotion_forwardProp(t)&&r(t)}:r}return"function"!=typeof o&&n&&(o=e.__emotion_forwardProp),o},JM=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return qM(t,n,o),$M((function(){return function(e,t,n){qM(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)})),null},eP=function e(t,n){var o,r,l=t.__emotion_real===t,i=l&&t.__emotion_base||t;void 0!==n&&(o=n.label,r=n.target);var a=QM(t,n,l),s=a||XM(i),c=!s("as");return function(){var u=arguments,d=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&d.push("label:"+o+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],u[0][m])}var f=WM((function(e,t,n){var o=c&&e.as||i,l="",u=[],p=e;if(null==e.theme){for(var m in p={},e)p[m]=e[m];p.theme=ya.useContext(KM)}"string"==typeof e.className?l=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(t.registered,u,e.className):null!=e.className&&(l=e.className+" ");var f=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";HM=void 0;var l=e[0];null==l||void 0===l.raw?(o=!1,r+=FM(n,t,l)):r+=l[0];for(var i=1;i<e.length;i++)r+=FM(n,t,e[i]),o&&(r+=l[i]);GM.lastIndex=0;for(var a,s="";null!==(a=GM.exec(r));)s+="-"+a[1];var c=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+s;return{name:c,styles:r,next:HM}}(d.concat(u),t.registered,p);l+=t.key+"-"+f.name,void 0!==r&&(l+=" "+r);var g=c&&void 0===a?XM(o):s,h={};for(var b in e)c&&"as"===b||g(b)&&(h[b]=e[b]);return h.className=l,h.ref=n,ya.createElement(ya.Fragment,null,ya.createElement(JM,{cache:t,serialized:f,isStringTag:"string"==typeof o}),ya.createElement(o,h))}));return f.displayName=void 0!==o?o:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=d,f.__emotion_forwardProp=a,Object.defineProperty(f,"toString",{value:function(){return"."+r}}),f.withComponent=function(t,o){return e(t,xT({},n,o,{shouldForwardProp:QM(f,o,!0)})).apply(void 0,d)},f}};const tP=eP(m.__experimentalToolsPanelItem,{target:"ef8pe3d0"})({name:"957xgf",styles:"grid-column:span 1"});function nP({panelId:e,value:t={},onChange:n=(()=>{}),units:o,isShownByDefault:r=!0}){var l,i;const a="auto"===t.width?"":null!==(l=t.width)&&void 0!==l?l:"",s="auto"===t.height?"":null!==(i=t.height)&&void 0!==i?i:"",u=e=>o=>{const r={...t};o?r[e]=o:delete r[e],n(r)};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(tP,{label:(0,v.__)("Width"),isShownByDefault:r,hasValue:()=>""!==a,onDeselect:u("width"),panelId:e},(0,c.createElement)(m.__experimentalUnitControl,{label:(0,v.__)("Width"),placeholder:(0,v.__)("Auto"),labelPosition:"top",units:o,min:0,value:a,onChange:u("width"),size:"__unstable-large"})),(0,c.createElement)(tP,{label:(0,v.__)("Height"),isShownByDefault:r,hasValue:()=>""!==s,onDeselect:u("height"),panelId:e},(0,c.createElement)(m.__experimentalUnitControl,{label:(0,v.__)("Height"),placeholder:(0,v.__)("Auto"),labelPosition:"top",units:o,min:0,value:s,onChange:u("height"),size:"__unstable-large"})))}var oP=function({panelId:e,value:t={},onChange:n=(()=>{}),aspectRatioOptions:o,defaultAspectRatio:r="auto",scaleOptions:l,defaultScale:i="fill",unitsOptions:a}){const s=void 0===t.width||"auto"===t.width?null:t.width,u=void 0===t.height||"auto"===t.height?null:t.height,d=void 0===t.aspectRatio||"auto"===t.aspectRatio?null:t.aspectRatio,p=void 0===t.scale||"fill"===t.scale?null:t.scale,[m,f]=(0,c.useState)(p),[g,h]=(0,c.useState)(d),b=s&&u?"custom":g,v=d||s&&u;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(wT,{panelId:e,options:o,defaultValue:r,value:b,onChange:e=>{const o={...t};h(e="auto"===e?null:e),e?o.aspectRatio=e:delete o.aspectRatio,e?m?o.scale=m:(o.scale=i,f(i)):delete o.scale,e&&s&&u&&delete o.height,n(o)}}),v&&(0,c.createElement)(CT,{panelId:e,options:l,defaultValue:i,value:m,onChange:e=>{const o={...t};f(e="fill"===e?null:e),e?o.scale=e:delete o.scale,n(o)}}),(0,c.createElement)(nP,{panelId:e,units:a,value:{width:s,height:u},onChange:({width:e,height:o})=>{const r={...t};o="auto"===o?null:o,(e="auto"===e?null:e)?r.width=e:delete r.width,o?r.height=o:delete r.height,e&&o?delete r.aspectRatio:g&&(r.aspectRatio=g),g||!!e==!!o?m?r.scale=m:(r.scale=i,f(i)):delete r.scale,n(r)}}))};const rP=[{label:(0,v._x)("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:(0,v._x)("Medium","Image size option for resolution control"),value:"medium"},{label:(0,v._x)("Large","Image size option for resolution control"),value:"large"},{label:(0,v._x)("Full Size","Image size option for resolution control"),value:"full"}];const lP={};Vo(lP,{...i,ExperimentalBlockEditorProvider:Zd,getRichTextValues:function(e=[]){a.__unstableGetBlockProps.skipFilters=!0;const t=[];return yT(t,e),a.__unstableGetBlockProps.skipFilters=!1,t},PrivateInserter:mg,PrivateListView:KE,ResizableBoxPopover:function({clientId:e,resizableBoxProps:t,...n}){return(0,c.createElement)(Cg,{clientId:e,__unstableCoverTarget:!0,__unstablePopoverSlot:"block-toolbar",shift:!1,...n},(0,c.createElement)(m.ResizableBox,{...t}))},BlockInfo:fB,useShouldContextualToolbarShow:iI,cleanEmptyObject:Dl,useBlockEditingMode:xi,BlockQuickNavigation:gB,LayoutStyle:pi,BlockRemovalWarningModal:function({rules:e}){const{clientIds:t,selectPrevious:n,blockNamesForPrompt:o}=(0,f.useSelect)((e=>Fo(e(Go)).getRemovalPromptData())),{clearBlockRemovalPrompt:r,setBlockRemovalRules:l,privateRemoveBlocks:i}=Fo((0,f.useDispatch)(Go));if((0,c.useEffect)((()=>(l(e),()=>{l()})),[e,l]),!o)return;return(0,c.createElement)(m.Modal,{title:(0,v.__)("Are you sure?"),onRequestClose:r,style:{maxWidth:"40rem"}},1===o.length?(0,c.createElement)("p",null,e[o[0]]):(0,c.createElement)("ul",{style:{listStyleType:"disc",paddingLeft:"1rem"}},o.map((t=>(0,c.createElement)("li",{key:t},e[t])))),(0,c.createElement)("p",null,o.length>1?(0,v.__)("Removing these blocks is not advised."):(0,v.__)("Removing this block is not advised.")),(0,c.createElement)(m.__experimentalHStack,{justify:"right"},(0,c.createElement)(m.Button,{variant:"tertiary",onClick:r},(0,v.__)("Cancel")),(0,c.createElement)(m.Button,{variant:"primary",onClick:()=>{i(t,n,!0),r()}},(0,v.__)("Delete"))))},useLayoutClasses:dk,useLayoutStyles:function(e={},t,n){const{layout:o={},style:r={}}=e,l=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||{},i=ai(l?.type||"default"),a=null!==Xr("spacing.blockGap"),s=i?.getLayoutStyle?.({blockName:t,selector:n,layout:o,style:r,hasBlockGapSupport:a});return s},DimensionsTool:oP,ResolutionTool:function({panelId:e,value:t,onChange:n,options:o=rP,defaultValue:r=rP[0].value,isShownByDefault:l=!0}){const i=null!=t?t:r;return(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>i!==r,label:(0,v.__)("Resolution"),onDeselect:()=>n(r),isShownByDefault:l,panelId:e},(0,c.createElement)(m.SelectControl,{label:(0,v.__)("Resolution"),value:i,options:o,onChange:n,help:(0,v.__)("Select the size of the source image."),size:"__unstable-large"}))},ReusableBlocksRenameHint:If,useReusableBlocksRenameHint:function(){return(0,f.useSelect)((e=>{var t;return null===(t=e(xf.store).get("core",Bf))||void 0===t||t}),[])},usesContextKey:rx})}(),(window.wp=window.wp||{}).blockEditor=o}();
\ No newline at end of file
+var Uw=function(e,t){return Uw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Uw(e,t)};var $w=function(){return $w=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},$w.apply(this,arguments)};Object.create;Object.create;var jw=n(7970),Ww=n.n(jw);function Kw(e,t,n,o,r){void 0===r&&(r=0);var l=eS(t.width,t.height,r),i=l.width,a=l.height;return{x:qw(e.x,i,n.width,o),y:qw(e.y,a,n.height,o)}}function qw(e,t,n,o){var r=t*o/2-n/2;return tS(e,-r,r)}function Zw(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function Yw(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function Xw(e,t){return Math.min(e,Math.max(0,t))}function Qw(e,t){return t}function Jw(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function eS(e,t,n){var o=n*Math.PI/180;return{width:Math.abs(Math.cos(o)*e)+Math.abs(Math.sin(o)*t),height:Math.abs(Math.sin(o)*e)+Math.abs(Math.cos(o)*t)}}function tS(e,t,n){return Math.min(Math.max(e,t),n)}function nS(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"==typeof e&&e.length>0})).join(" ").trim()}var oS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.imageRef=Ea().createRef(),n.videoRef=Ea().createRef(),n.containerRef=null,n.styleRef=null,n.containerRect=null,n.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},n.dragStartPosition={x:0,y:0},n.dragStartCrop={x:0,y:0},n.gestureZoomStart=0,n.gestureRotationStart=0,n.isTouching=!1,n.lastPinchDistance=0,n.lastPinchRotation=0,n.rafDragTimeout=null,n.rafPinchTimeout=null,n.wheelTimer=null,n.currentDoc="undefined"!=typeof document?document:null,n.currentWindow="undefined"!=typeof window?window:null,n.resizeObserver=null,n.state={cropSize:null,hasWheelJustStarted:!1},n.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&n.containerRef){var e=!0;n.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:n.computeSizes()})),n.resizeObserver.observe(n.containerRef)}},n.preventZoomSafari=function(e){return e.preventDefault()},n.cleanEvents=function(){n.currentDoc&&(n.currentDoc.removeEventListener("mousemove",n.onMouseMove),n.currentDoc.removeEventListener("mouseup",n.onDragStopped),n.currentDoc.removeEventListener("touchmove",n.onTouchMove),n.currentDoc.removeEventListener("touchend",n.onDragStopped),n.currentDoc.removeEventListener("gesturemove",n.onGestureMove),n.currentDoc.removeEventListener("gestureend",n.onGestureEnd))},n.clearScrollEvent=function(){n.containerRef&&n.containerRef.removeEventListener("wheel",n.onWheel),n.wheelTimer&&clearTimeout(n.wheelTimer)},n.onMediaLoad=function(){var e=n.computeSizes();e&&(n.emitCropData(),n.setInitialCrop(e)),n.props.onMediaLoaded&&n.props.onMediaLoaded(n.mediaSize)},n.setInitialCrop=function(e){if(n.props.initialCroppedAreaPercentages){var t=function(e,t,n,o,r,l){var i=eS(t.width,t.height,n),a=tS(o.width/i.width*(100/e.width),r,l);return{crop:{x:a*i.width/2-o.width/2-i.width*a*(e.x/100),y:a*i.height/2-o.height/2-i.height*a*(e.y/100)},zoom:a}}(n.props.initialCroppedAreaPercentages,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom),o=t.crop,r=t.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}else if(n.props.initialCroppedAreaPixels){var l=function(e,t,n,o,r,l){void 0===n&&(n=0);var i=eS(t.naturalWidth,t.naturalHeight,n),a=tS(function(e,t,n){var o=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*o):n.width/(e.width*o)}(e,t,o),r,l),s=o.height>o.width?o.height/e.height:o.width/e.width;return{crop:{x:((i.width-e.width)/2-e.x)*s,y:((i.height-e.height)/2-e.y)*s},zoom:a}}(n.props.initialCroppedAreaPixels,n.mediaSize,n.props.rotation,e,n.props.minZoom,n.props.maxZoom);o=l.crop,r=l.zoom;n.props.onCropChange(o),n.props.onZoomChange&&n.props.onZoomChange(r)}},n.computeSizes=function(){var e,t,o,r,l,i,a=n.imageRef.current||n.videoRef.current;if(a&&n.containerRef){n.containerRect=n.containerRef.getBoundingClientRect();var s=n.containerRect.width/n.containerRect.height,c=(null===(e=n.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=n.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(o=n.imageRef.current)||void 0===o?void 0:o.naturalHeight)||(null===(r=n.videoRef.current)||void 0===r?void 0:r.videoHeight)||0,d=c/u,p=void 0;if(a.offsetWidth<c||a.offsetHeight<u)switch(n.props.objectFit){default:case"contain":p=s>d?{width:n.containerRect.height*d,height:n.containerRect.height}:{width:n.containerRect.width,height:n.containerRect.width/d};break;case"horizontal-cover":p={width:n.containerRect.width,height:n.containerRect.width/d};break;case"vertical-cover":p={width:n.containerRect.height*d,height:n.containerRect.height};break;case"auto-cover":p=c>u?{width:n.containerRect.width,height:n.containerRect.width/d}:{width:n.containerRect.height*d,height:n.containerRect.height}}else p={width:a.offsetWidth,height:a.offsetHeight};n.mediaSize=$w($w({},p),{naturalWidth:c,naturalHeight:u}),n.props.setMediaSize&&n.props.setMediaSize(n.mediaSize);var m=n.props.cropSize?n.props.cropSize:function(e,t,n,o,r,l){void 0===l&&(l=0);var i=eS(e,t,l),a=i.width,s=i.height,c=Math.min(a,n),u=Math.min(s,o);return c>u*r?{width:u*r,height:u}:{width:c,height:c/r}}(n.mediaSize.width,n.mediaSize.height,n.containerRect.width,n.containerRect.height,n.props.aspect,n.props.rotation);return(null===(l=n.state.cropSize)||void 0===l?void 0:l.height)===m.height&&(null===(i=n.state.cropSize)||void 0===i?void 0:i.width)===m.width||n.props.onCropSizeChange&&n.props.onCropSizeChange(m),n.setState({cropSize:m},n.recomputeCropPosition),n.props.setCropSize&&n.props.setCropSize(m),m}},n.onMouseDown=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("mousemove",n.onMouseMove),n.currentDoc.addEventListener("mouseup",n.onDragStopped),n.onDragStart(t.getMousePoint(e)))},n.onMouseMove=function(e){return n.onDrag(t.getMousePoint(e))},n.onTouchStart=function(e){n.currentDoc&&(n.isTouching=!0,n.props.onTouchRequest&&!n.props.onTouchRequest(e)||(n.currentDoc.addEventListener("touchmove",n.onTouchMove,{passive:!1}),n.currentDoc.addEventListener("touchend",n.onDragStopped),2===e.touches.length?n.onPinchStart(e):1===e.touches.length&&n.onDragStart(t.getTouchPoint(e.touches[0]))))},n.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?n.onPinchMove(e):1===e.touches.length&&n.onDrag(t.getTouchPoint(e.touches[0]))},n.onGestureStart=function(e){n.currentDoc&&(e.preventDefault(),n.currentDoc.addEventListener("gesturechange",n.onGestureMove),n.currentDoc.addEventListener("gestureend",n.onGestureEnd),n.gestureZoomStart=n.props.zoom,n.gestureRotationStart=n.props.rotation)},n.onGestureMove=function(e){if(e.preventDefault(),!n.isTouching){var o=t.getMousePoint(e),r=n.gestureZoomStart-1+e.scale;if(n.setNewZoom(r,o,{shouldUpdatePosition:!0}),n.props.onRotationChange){var l=n.gestureRotationStart+e.rotation;n.props.onRotationChange(l)}}},n.onGestureEnd=function(e){n.cleanEvents()},n.onDragStart=function(e){var t,o,r=e.x,l=e.y;n.dragStartPosition={x:r,y:l},n.dragStartCrop=$w({},n.props.crop),null===(o=(t=n.props).onInteractionStart)||void 0===o||o.call(t)},n.onDrag=function(e){var t=e.x,o=e.y;n.currentWindow&&(n.rafDragTimeout&&n.currentWindow.cancelAnimationFrame(n.rafDragTimeout),n.rafDragTimeout=n.currentWindow.requestAnimationFrame((function(){if(n.state.cropSize&&void 0!==t&&void 0!==o){var e=t-n.dragStartPosition.x,r=o-n.dragStartPosition.y,l={x:n.dragStartCrop.x+e,y:n.dragStartCrop.y+r},i=n.props.restrictPosition?Kw(l,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):l;n.props.onCropChange(i)}})))},n.onDragStopped=function(){var e,t;n.isTouching=!1,n.cleanEvents(),n.emitCropData(),null===(t=(e=n.props).onInteractionEnd)||void 0===t||t.call(e)},n.onWheel=function(e){if(n.currentWindow&&(!n.props.onWheelRequest||n.props.onWheelRequest(e))){e.preventDefault();var o=t.getMousePoint(e),r=Ww()(e).pixelY,l=n.props.zoom-r*n.props.zoomSpeed/200;n.setNewZoom(l,o,{shouldUpdatePosition:!0}),n.state.hasWheelJustStarted||n.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=n.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),n.wheelTimer&&clearTimeout(n.wheelTimer),n.wheelTimer=n.currentWindow.setTimeout((function(){return n.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=n.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},n.getPointOnContainer=function(e){var t=e.x,o=e.y;if(!n.containerRect)throw new Error("The Cropper is not mounted");return{x:n.containerRect.width/2-(t-n.containerRect.left),y:n.containerRect.height/2-(o-n.containerRect.top)}},n.getPointOnMedia=function(e){var t=e.x,o=e.y,r=n.props,l=r.crop,i=r.zoom;return{x:(t+l.x)/i,y:(o+l.y)/i}},n.setNewZoom=function(e,t,o){var r=(void 0===o?{}:o).shouldUpdatePosition,l=void 0===r||r;if(n.state.cropSize&&n.props.onZoomChange){var i=tS(e,n.props.minZoom,n.props.maxZoom);if(l){var a=n.getPointOnContainer(t),s=n.getPointOnMedia(a),c={x:s.x*i-a.x,y:s.y*i-a.y},u=n.props.restrictPosition?Kw(c,n.mediaSize,n.state.cropSize,i,n.props.rotation):c;n.props.onCropChange(u)}n.props.onZoomChange(i)}},n.getCropData=function(){return n.state.cropSize?function(e,t,n,o,r,l,i){void 0===l&&(l=0),void 0===i&&(i=!0);var a=i?Xw:Qw,s=eS(t.width,t.height,l),c=eS(t.naturalWidth,t.naturalHeight,l),u={x:a(100,((s.width-n.width/r)/2-e.x/r)/s.width*100),y:a(100,((s.height-n.height/r)/2-e.y/r)/s.height*100),width:a(100,n.width/s.width*100/r),height:a(100,n.height/s.height*100/r)},d=Math.round(a(c.width,u.width*c.width/100)),p=Math.round(a(c.height,u.height*c.height/100)),m=c.width>=c.height*o?{width:Math.round(p*o),height:p}:{width:d,height:Math.round(d/o)};return{croppedAreaPercentages:u,croppedAreaPixels:$w($w({},m),{x:Math.round(a(c.width-m.width,u.x*c.width/100)),y:Math.round(a(c.height-m.height,u.y*c.height/100))})}}(n.props.restrictPosition?Kw(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop,n.mediaSize,n.state.cropSize,n.getAspect(),n.props.zoom,n.props.rotation,n.props.restrictPosition):null},n.emitCropData=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropComplete&&n.props.onCropComplete(t,o),n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.emitCropAreaChange=function(){var e=n.getCropData();if(e){var t=e.croppedAreaPercentages,o=e.croppedAreaPixels;n.props.onCropAreaChange&&n.props.onCropAreaChange(t,o)}},n.recomputeCropPosition=function(){if(n.state.cropSize){var e=n.props.restrictPosition?Kw(n.props.crop,n.mediaSize,n.state.cropSize,n.props.zoom,n.props.rotation):n.props.crop;n.props.onCropChange(e),n.emitCropData()}},n}return function(e,t){function n(){this.constructor=e}Uw(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,n,o,r,l,i,a,s,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(o=e.cropSize)||void 0===o?void 0:o.width)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.width)?this.computeSizes():(null===(l=e.crop)||void 0===l?void 0:l.x)===(null===(i=this.props.crop)||void 0===i?void 0:i.x)&&(null===(a=e.crop)||void 0===a?void 0:a.y)===(null===(s=this.props.crop)||void 0===s?void 0:s.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},t.prototype.onPinchStart=function(e){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=Zw(n,o),this.lastPinchRotation=Yw(n,o),this.onDragStart(Jw(n,o))},t.prototype.onPinchMove=function(e){var n=this;if(this.currentDoc&&this.currentWindow){var o=t.getTouchPoint(e.touches[0]),r=t.getTouchPoint(e.touches[1]),l=Jw(o,r);this.onDrag(l),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=Zw(o,r),t=n.props.zoom*(e/n.lastPinchDistance);n.setNewZoom(t,l,{shouldUpdatePosition:!1}),n.lastPinchDistance=e;var i=Yw(o,r),a=n.props.rotation+(i-n.lastPinchRotation);n.props.onRotationChange&&n.props.onRotationChange(a),n.lastPinchRotation=i}))}},t.prototype.render=function(){var e=this,t=this.props,n=t.image,o=t.video,r=t.mediaProps,l=t.transform,i=t.crop,a=i.x,s=i.y,c=t.rotation,u=t.zoom,d=t.cropShape,p=t.showGrid,m=t.style,f=m.containerStyle,g=m.cropAreaStyle,h=m.mediaStyle,b=t.classes,v=b.containerClassName,_=b.cropAreaClassName,k=b.mediaClassName,y=t.objectFit;return Ea().createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:f,className:nS("reactEasyCrop_Container",v)},n?Ea().createElement("img",$w({alt:"",className:nS("reactEasyCrop_Image","contain"===y&&"reactEasyCrop_Contain","horizontal-cover"===y&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===y&&"reactEasyCrop_Cover_Vertical","auto-cover"===y&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),k)},r,{src:n,ref:this.imageRef,style:$w($w({},h),{transform:l||"translate(".concat(a,"px, ").concat(s,"px) rotate(").concat(c,"deg) scale(").concat(u,")")}),onLoad:this.onMediaLoad})):o&&Ea().createElement("video",$w({autoPlay:!0,loop:!0,muted:!0,className:nS("reactEasyCrop_Video","contain"===y&&"reactEasyCrop_Contain","horizontal-cover"===y&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===y&&"reactEasyCrop_Cover_Vertical","auto-cover"===y&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),k)},r,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:$w($w({},h),{transform:l||"translate(".concat(a,"px, ").concat(s,"px) rotate(").concat(c,"deg) scale(").concat(u,")")}),controls:!1}),(Array.isArray(o)?o:[{src:o}]).map((function(e){return Ea().createElement("source",$w({key:e.src},e))}))),this.state.cropSize&&Ea().createElement("div",{style:$w($w({},g),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:nS("reactEasyCrop_CropArea","round"===d&&"reactEasyCrop_CropAreaRound",p&&"reactEasyCrop_CropAreaGrid",_)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(Ea().Component);const rS=100,lS=300,iS={placement:"bottom-start"};function aS({url:e,width:t,height:n,clientWidth:o,naturalHeight:r,naturalWidth:l,borderProps:i}){const{isInProgress:a,editedUrl:s,position:u,zoom:p,aspect:f,setPosition:g,setCrop:h,setZoom:b,rotation:v}=Hw();let _=n||o*r/l;return v%180==90&&(_=o*l/r),(0,c.createElement)("div",{className:d()("wp-block-image__crop-area",i?.className,{"is-applying":a}),style:{...i?.style,width:t||o,height:_}},(0,c.createElement)(oS,{image:s||e,disabled:a,minZoom:rS/100,maxZoom:lS/100,crop:u,zoom:p/100,aspect:f,onCropChange:e=>{g(e)},onCropComplete:e=>{h(e)},onZoomChange:e=>{b(100*e)}}),a&&(0,c.createElement)(m.Spinner,null))}var sS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));function cS(){const{isInProgress:e,zoom:t,setZoom:n}=Hw();return(0,c.createElement)(m.Dropdown,{contentClassName:"wp-block-image__zoom",popoverProps:iS,renderToggle:({isOpen:t,onToggle:n})=>(0,c.createElement)(m.ToolbarButton,{icon:sS,label:(0,v.__)("Zoom"),onClick:n,"aria-expanded":t,disabled:e}),renderContent:()=>(0,c.createElement)(m.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Zoom"),min:rS,max:lS,value:Math.round(t),onChange:n})})}var uS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M18.5 5.5h-13c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5h-13c-.3 0-.5-.2-.5-.5v-9c0-.3.2-.5.5-.5h13c.3 0 .5.2.5.5v9zM6.5 12H8v-2h2V8.5H6.5V12zm9.5 2h-2v1.5h3.5V12H16v2z"}));function dS({aspectRatios:e,isDisabled:t,label:n,onClick:o,value:r}){return(0,c.createElement)(m.MenuGroup,{label:n},e.map((({title:e,aspect:n})=>(0,c.createElement)(m.MenuItem,{key:n,disabled:t,onClick:()=>{o(n)},role:"menuitemradio",isSelected:n===r,icon:n===r?Rv:void 0},e))))}function pS({toggleProps:e}){const{isInProgress:t,aspect:n,setAspect:o,defaultAspect:r}=Hw();return(0,c.createElement)(m.DropdownMenu,{icon:uS,label:(0,v.__)("Aspect Ratio"),popoverProps:iS,toggleProps:e,className:"wp-block-image__aspect-ratio"},(({onClose:e})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(dS,{isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:(0,v.__)("Original"),aspect:r},{title:(0,v.__)("Square"),aspect:1}]}),(0,c.createElement)(dS,{label:(0,v.__)("Landscape"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:(0,v.__)("16:10"),aspect:1.6},{title:(0,v.__)("16:9"),aspect:16/9},{title:(0,v.__)("4:3"),aspect:4/3},{title:(0,v.__)("3:2"),aspect:1.5}]}),(0,c.createElement)(dS,{label:(0,v.__)("Portrait"),isDisabled:t,onClick:t=>{o(t),e()},value:n,aspectRatios:[{title:(0,v.__)("10:16"),aspect:.625},{title:(0,v.__)("9:16"),aspect:9/16},{title:(0,v.__)("3:4"),aspect:3/4},{title:(0,v.__)("2:3"),aspect:2/3}]}))))}var mS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M15.1 4.8l-3-2.5V4c-4.4 0-8 3.6-8 8 0 3.7 2.5 6.9 6 7.7.3.1.6.1 1 .2l.2-1.5c-.4 0-.7-.1-1.1-.2l-.1.2v-.2c-2.6-.8-4.5-3.3-4.5-6.2 0-3.6 2.9-6.5 6.5-6.5v1.8l3-2.5zM20 11c-.2-1.4-.7-2.7-1.6-3.8l-1.2.8c.7.9 1.1 2 1.3 3.1L20 11zm-1.5 1.8c-.1.5-.2 1.1-.4 1.6s-.5 1-.8 1.5l1.2.9c.4-.5.8-1.1 1-1.8s.5-1.3.5-2l-1.5-.2zm-5.6 5.6l.2 1.5c1.4-.2 2.7-.7 3.8-1.6l-.9-1.1c-.9.7-2 1.1-3.1 1.2z"}));function fS(){const{isInProgress:e,rotateClockwise:t}=Hw();return(0,c.createElement)(m.ToolbarButton,{icon:mS,label:(0,v.__)("Rotate"),onClick:t,disabled:e})}function gS(){const{isInProgress:e,apply:t,cancel:n}=Hw();return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.ToolbarButton,{onClick:t,disabled:e},(0,v.__)("Apply")),(0,c.createElement)(m.ToolbarButton,{onClick:n},(0,v.__)("Cancel")))}function hS({id:e,url:t,width:n,height:o,clientWidth:r,naturalHeight:l,naturalWidth:i,onSaveImage:a,onFinishEditing:s,borderProps:u}){return(0,c.createElement)(Gw,{id:e,url:t,naturalWidth:i,naturalHeight:l,onSaveImage:a,onFinishEditing:s},(0,c.createElement)(aS,{borderProps:u,url:t,width:n,height:o,clientWidth:r,naturalHeight:l,naturalWidth:i}),(0,c.createElement)(er,null,(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(cS,null),(0,c.createElement)(m.ToolbarItem,null,(e=>(0,c.createElement)(pS,{toggleProps:e}))),(0,c.createElement)(fS,null)),(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(gS,null))))}const bS=[25,50,75,100],vS=()=>{};function _S({imageSizeHelp:e,imageWidth:t,imageHeight:n,imageSizeOptions:o=[],isResizable:r=!0,slug:l,width:i,height:a,onChange:s,onChangeImage:u=vS}){$()("wp.blockEditor.__experimentalImageSizeControl",{since:"6.3",alternative:"wp.blockEditor.privateApis.DimensionsTool and wp.blockEditor.privateApis.ResolutionTool"});const{currentHeight:d,currentWidth:p,updateDimension:f,updateDimensions:g}=function(e,t,n,o,r){var l,i;const[a,s]=(0,c.useState)(null!==(l=null!=t?t:o)&&void 0!==l?l:""),[u,d]=(0,c.useState)(null!==(i=null!=e?e:n)&&void 0!==i?i:"");return(0,c.useEffect)((()=>{void 0===t&&void 0!==o&&s(o),void 0===e&&void 0!==n&&d(n)}),[o,n]),(0,c.useEffect)((()=>{void 0!==t&&Number.parseInt(t)!==Number.parseInt(a)&&s(t),void 0!==e&&Number.parseInt(e)!==Number.parseInt(u)&&d(e)}),[t,e]),{currentHeight:u,currentWidth:a,updateDimension:(e,t)=>{const n=""===t?void 0:parseInt(t,10);"width"===e?s(n):d(n),r({[e]:n})},updateDimensions:(e,t)=>{d(null!=e?e:n),s(null!=t?t:o),r({height:e,width:t})}}}(a,i,n,t,s);return(0,c.createElement)(c.Fragment,null,o&&o.length>0&&(0,c.createElement)(m.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Resolution"),value:l,options:o,onChange:u,help:e,size:"__unstable-large"}),r&&(0,c.createElement)("div",{className:"block-editor-image-size-control"},(0,c.createElement)(m.__experimentalHStack,{align:"baseline",spacing:"3"},(0,c.createElement)(m.__experimentalNumberControl,{className:"block-editor-image-size-control__width",label:(0,v.__)("Width"),value:p,min:1,onChange:e=>f("width",e),size:"__unstable-large"}),(0,c.createElement)(m.__experimentalNumberControl,{className:"block-editor-image-size-control__height",label:(0,v.__)("Height"),value:d,min:1,onChange:e=>f("height",e),size:"__unstable-large"})),(0,c.createElement)(m.__experimentalHStack,null,(0,c.createElement)(m.ButtonGroup,{"aria-label":(0,v.__)("Image size presets")},bS.map((e=>{const o=Math.round(t*(e/100)),r=Math.round(n*(e/100)),l=p===o&&d===r;return(0,c.createElement)(m.Button,{key:e,isSmall:!0,variant:l?"primary":void 0,isPressed:l,onClick:()=>g(r,o)},e,"%")}))),(0,c.createElement)(m.Button,{isSmall:!0,onClick:()=>g()},(0,v.__)("Reset")))))}var kS=function e({children:t,settingsOpen:n,setSettingsOpen:o}){const r=(0,p.useReducedMotion)(),l=r?c.Fragment:m.__unstableAnimatePresence,i=r?"div":m.__unstableMotion.div,a=`link-control-settings-drawer-${(0,p.useInstanceId)(e)}`;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.Button,{className:"block-editor-link-control__drawer-toggle","aria-expanded":n,onClick:()=>o(!n),icon:(0,v.isRTL)()?Qy:Cy,"aria-controls":a},(0,v._x)("Advanced","Additional link settings")),(0,c.createElement)(l,null,n&&(0,c.createElement)(i,{className:"block-editor-link-control__drawer",hidden:!n,id:a,initial:"collapsed",animate:"open",exit:"collapsed",variants:{open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},transition:{duration:.1}},(0,c.createElement)("div",{className:"block-editor-link-control__drawer-inner"},t))))},yS=n(5425),ES=n.n(yS);function wS(e){return"function"==typeof e}class SS extends c.Component{constructor(e){super(e),this.onChange=this.onChange.bind(this),this.onFocus=this.onFocus.bind(this),this.onKeyDown=this.onKeyDown.bind(this),this.selectLink=this.selectLink.bind(this),this.handleOnClick=this.handleOnClick.bind(this),this.bindSuggestionNode=this.bindSuggestionNode.bind(this),this.autocompleteRef=e.autocompleteRef||(0,c.createRef)(),this.inputRef=(0,c.createRef)(),this.updateSuggestions=(0,p.debounce)(this.updateSuggestions.bind(this),200),this.suggestionNodes=[],this.suggestionsRequest=null,this.state={suggestions:[],showSuggestions:!1,isUpdatingSuggestions:!1,suggestionsValue:null,selectedSuggestion:null,suggestionsListboxId:"",suggestionOptionIdPrefix:""}}componentDidUpdate(e){const{showSuggestions:t,selectedSuggestion:n}=this.state,{value:o,__experimentalShowInitialSuggestions:r=!1}=this.props;t&&null!==n&&this.suggestionNodes[n]&&!this.scrollingIntoView&&(this.scrollingIntoView=!0,ES()(this.suggestionNodes[n],this.autocompleteRef.current,{onlyScrollIfNeeded:!0}),this.props.setTimeout((()=>{this.scrollingIntoView=!1}),100)),e.value===o||this.props.disableSuggestions||this.state.isUpdatingSuggestions||(o?.length?this.updateSuggestions(o):r&&this.updateSuggestions())}componentDidMount(){this.shouldShowInitialSuggestions()&&this.updateSuggestions()}componentWillUnmount(){this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null}bindSuggestionNode(e){return t=>{this.suggestionNodes[e]=t}}shouldShowInitialSuggestions(){const{__experimentalShowInitialSuggestions:e=!1,value:t}=this.props;return e&&!(t&&t.length)}updateSuggestions(e=""){const{__experimentalFetchLinkSuggestions:t,__experimentalHandleURLSuggestions:n}=this.props;if(!t)return;const o=!e?.length;if(e=e.trim(),!o&&(e.length<2||!n&&(0,Sf.isURL)(e)))return this.suggestionsRequest?.cancel?.(),this.suggestionsRequest=null,void this.setState({suggestions:[],showSuggestions:!1,suggestionsValue:e,selectedSuggestion:null,loading:!1});this.setState({isUpdatingSuggestions:!0,selectedSuggestion:null,loading:!0});const r=t(e,{isInitialSuggestions:o});r.then((t=>{this.suggestionsRequest===r&&(this.setState({suggestions:t,isUpdatingSuggestions:!1,suggestionsValue:e,loading:!1,showSuggestions:!!t.length}),t.length?this.props.debouncedSpeak((0,v.sprintf)((0,v._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length),"assertive"):this.props.debouncedSpeak((0,v.__)("No results."),"assertive"))})).catch((()=>{this.suggestionsRequest===r&&this.setState({isUpdatingSuggestions:!1,loading:!1})})),this.suggestionsRequest=r}onChange(e){this.props.onChange(e.target.value)}onFocus(){const{suggestions:e}=this.state,{disableSuggestions:t,value:n}=this.props;!n||t||this.state.isUpdatingSuggestions||e&&e.length||this.updateSuggestions(n)}onKeyDown(e){this.props.onKeyDown?.(e);const{showSuggestions:t,selectedSuggestion:n,suggestions:o,loading:r}=this.state;if(!t||!o.length||r){switch(e.keyCode){case yd.UP:0!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(0,0));break;case yd.DOWN:this.props.value.length!==e.target.selectionStart&&(e.preventDefault(),e.target.setSelectionRange(this.props.value.length,this.props.value.length));break;case yd.ENTER:this.props.onSubmit&&(e.preventDefault(),this.props.onSubmit(null,e))}return}const l=this.state.suggestions[this.state.selectedSuggestion];switch(e.keyCode){case yd.UP:{e.preventDefault();const t=n?n-1:o.length-1;this.setState({selectedSuggestion:t});break}case yd.DOWN:{e.preventDefault();const t=null===n||n===o.length-1?0:n+1;this.setState({selectedSuggestion:t});break}case yd.TAB:null!==this.state.selectedSuggestion&&(this.selectLink(l),this.props.speak((0,v.__)("Link selected.")));break;case yd.ENTER:e.preventDefault(),null!==this.state.selectedSuggestion?(this.selectLink(l),this.props.onSubmit&&this.props.onSubmit(l,e)):this.props.onSubmit&&this.props.onSubmit(null,e)}}selectLink(e){this.props.onChange(e.url,e),this.setState({selectedSuggestion:null,showSuggestions:!1})}handleOnClick(e){this.selectLink(e),this.inputRef.current.focus()}static getDerivedStateFromProps({value:e,instanceId:t,disableSuggestions:n,__experimentalShowInitialSuggestions:o=!1},{showSuggestions:r}){let l=r;const i=e&&e.length;return o||i||(l=!1),!0===n&&(l=!1),{showSuggestions:l,suggestionsListboxId:`block-editor-url-input-suggestions-${t}`,suggestionOptionIdPrefix:`block-editor-url-input-suggestion-${t}`}}render(){return(0,c.createElement)(c.Fragment,null,this.renderControl(),this.renderSuggestions())}renderControl(){const{__nextHasNoMarginBottom:e=!1,label:t=null,className:n,isFullWidth:o,instanceId:r,placeholder:l=(0,v.__)("Paste URL or type to search"),__experimentalRenderControl:i,value:a="",hideLabelFromVision:s=!1}=this.props,{loading:u,showSuggestions:p,selectedSuggestion:f,suggestionsListboxId:g,suggestionOptionIdPrefix:h}=this.state,b=`url-input-control-${r}`,_={id:b,label:t,className:d()("block-editor-url-input",n,{"is-full-width":o}),hideLabelFromVision:s},k={id:b,value:a,required:!0,className:"block-editor-url-input__input",type:"text",onChange:this.onChange,onFocus:this.onFocus,placeholder:l,onKeyDown:this.onKeyDown,role:"combobox","aria-label":t?void 0:(0,v.__)("URL"),"aria-expanded":p,"aria-autocomplete":"list","aria-owns":g,"aria-activedescendant":null!==f?`${h}-${f}`:void 0,ref:this.inputRef};return i?i(_,k,u):(e||$()("Bottom margin styles for wp.blockEditor.URLInput",{since:"6.2",version:"6.5",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version"}),(0,c.createElement)(m.BaseControl,{__nextHasNoMarginBottom:e,..._},(0,c.createElement)("input",{...k}),u&&(0,c.createElement)(m.Spinner,null)))}renderSuggestions(){const{className:e,__experimentalRenderSuggestions:t}=this.props,{showSuggestions:n,suggestions:o,suggestionsValue:r,selectedSuggestion:l,suggestionsListboxId:i,suggestionOptionIdPrefix:a,loading:s}=this.state;if(!n||0===o.length)return null;const u={id:i,ref:this.autocompleteRef,role:"listbox"},p=(e,t)=>({role:"option",tabIndex:"-1",id:`${a}-${t}`,ref:this.bindSuggestionNode(t),"aria-selected":t===l||void 0});return wS(t)?t({suggestions:o,selectedSuggestion:l,suggestionsListProps:u,buildSuggestionItemProps:p,isLoading:s,handleSuggestionClick:this.handleOnClick,isInitialSuggestions:!r?.length,currentInputValue:r}):(0,c.createElement)(m.Popover,{placement:"bottom",focusOnMount:!1},(0,c.createElement)("div",{...u,className:d()("block-editor-url-input__suggestions",`${e}__suggestions`)},o.map(((e,t)=>(0,c.createElement)(m.Button,{...p(0,t),key:e.id,className:d()("block-editor-url-input__suggestion",{"is-selected":t===l}),onClick:()=>this.handleOnClick(e)},e.title)))))}}var CS=(0,p.compose)(p.withSafeTimeout,m.withSpokenMessages,p.withInstanceId,(0,f.withSelect)(((e,t)=>{if(wS(t.__experimentalFetchLinkSuggestions))return;const{getSettings:n}=e(Go);return{__experimentalFetchLinkSuggestions:n().__experimentalFetchLinkSuggestions}})))(SS);var xS=({searchTerm:e,onClick:t,itemProps:n,buttonText:o})=>{if(!e)return null;let r;return r=o?"function"==typeof o?o(e):o:(0,c.createInterpolateElement)((0,v.sprintf)((0,v.__)("Create: <mark>%s</mark>"),e),{mark:(0,c.createElement)("mark",null)}),(0,c.createElement)(m.MenuItem,{...n,iconPosition:"left",icon:zd,className:"block-editor-link-control__search-item",onClick:t},r)};var BS=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));var IS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var TS=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"}));var MS=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));var PS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));const NS={post:BS,page:gy,post_tag:IS,category:TS,attachment:MS};function LS({isURL:e,suggestion:t}){let n=null;return e?n=PS:t.type in NS&&(n=NS[t.type]),n?(0,c.createElement)(Xl,{className:"block-editor-link-control__search-item-icon",icon:n}):null}function RS(e){return e.isFrontPage?"front page":"post_tag"===e.type?"tag":e.type}var AS=({itemProps:e,suggestion:t,searchTerm:n,onClick:o,isURL:r=!1,shouldShowType:l=!1})=>{const i=r?(0,v.__)("Press ENTER to add this link"):(0,Sf.filterURLForDisplay)((0,Sf.safeDecodeURI)(t?.url));return(0,c.createElement)(m.MenuItem,{...e,info:i,iconPosition:"left",icon:(0,c.createElement)(LS,{suggestion:t,isURL:r}),onClick:o,shortcut:l&&RS(t),className:"block-editor-link-control__search-item"},(0,c.createElement)(m.TextHighlight,{text:(0,ea.__unstableStripHTML)(t.title),highlight:n}))};const DS="__CREATE__",OS="link",zS="mailto",VS="internal",FS=[OS,zS,"tel",VS],HS=[{id:"opensInNewTab",title:(0,v.__)("Open in new tab")}];function GS({instanceId:e,withCreateSuggestion:t,currentInputValue:n,handleSuggestionClick:o,suggestionsListProps:r,buildSuggestionItemProps:l,suggestions:i,selectedSuggestion:a,isLoading:s,isInitialSuggestions:u,createSuggestionButtonText:p,suggestionsQuery:f}){const g=d()("block-editor-link-control__search-results",{"is-loading":s}),h=1===i.length&&FS.includes(i[0].type),b=t&&!h&&!u,_=!f?.type,k=`block-editor-link-control-search-results-label-${e}`,y=u?(0,v.__)("Suggestions"):(0,v.sprintf)((0,v.__)('Search results for "%s"'),n),E=(0,c.createElement)(m.VisuallyHidden,{id:k},y);return(0,c.createElement)("div",{className:"block-editor-link-control__search-results-wrapper"},E,(0,c.createElement)("div",{...r,className:g,"aria-labelledby":k},(0,c.createElement)(m.MenuGroup,null,i.map(((e,t)=>b&&DS===e.type?(0,c.createElement)(xS,{searchTerm:n,buttonText:p,onClick:()=>o(e),key:e.type,itemProps:l(e,t),isSelected:t===a}):DS===e.type?null:(0,c.createElement)(AS,{key:`${e.id}-${e.type}`,itemProps:l(e,t),suggestion:e,index:t,onClick:()=>{o(e)},isSelected:t===a,isURL:FS.includes(e.type),searchTerm:n,shouldShowType:_,isFrontPage:e?.isFrontPage}))))))}function US(e){if(e.includes(" "))return!1;const t=(0,Sf.getProtocol)(e),n=(0,Sf.isValidProtocol)(t),o=function(e,t=6){const n=e.split(/[?#]/)[0];return new RegExp(`(?<=\\S)\\.(?:[a-zA-Z_]{2,${t}})(?:\\/|$)`).test(n)}(e),r=e?.startsWith("www."),l=e?.startsWith("#")&&(0,Sf.isValidFragment)(e);return n||r||l||o}const $S=()=>Promise.resolve([]),jS=e=>{let t=OS;const n=(0,Sf.getProtocol)(e)||"";return n.includes("mailto")&&(t=zS),n.includes("tel")&&(t="tel"),e?.startsWith("#")&&(t=VS),Promise.resolve([{id:e,title:e,url:"URL"===t?(0,Sf.prependHTTP)(e):e,type:t}])};function WS(e,t,n,o){const{fetchSearchSuggestions:r,pageOnFront:l}=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return{pageOnFront:t().pageOnFront,fetchSearchSuggestions:t().__experimentalFetchLinkSuggestions}}),[]),i=t?jS:$S;return(0,c.useCallback)(((t,{isInitialSuggestions:l})=>US(t)?i(t,{isInitialSuggestions:l}):(async(e,t,n,o,r)=>{const{isInitialSuggestions:l}=t,i=await n(e,t);return i.map((e=>Number(e.id)===r?(e.isFrontPage=!0,e):e)),l||US(e)||!o?i:i.concat({title:e,url:e,type:DS})})(t,{...e,isInitialSuggestions:l},r,n,o)),[i,r,l,e,n,o])}const KS=()=>Promise.resolve([]),qS=()=>{},ZS=(0,c.forwardRef)((({value:e,children:t,currentLink:n={},className:o=null,placeholder:r=null,withCreateSuggestion:l=!1,onCreateSuggestion:i=qS,onChange:a=qS,onSelect:s=qS,showSuggestions:u=!0,renderSuggestions:m=(e=>(0,c.createElement)(GS,{...e})),fetchSuggestions:f=null,allowDirectEntry:g=!0,showInitialSuggestions:h=!1,suggestionsQuery:b={},withURLSuggestion:_=!0,createSuggestionButtonText:k,hideLabelFromVision:y=!1},E)=>{const w=WS(b,g,l,_),S=u?f||w:KS,C=(0,p.useInstanceId)(ZS),[x,B]=(0,c.useState)(),I=async e=>{let t=e;if(DS!==e.type){if(g||t&&Object.keys(t).length>=1){const{id:e,url:o,...r}=null!=n?n:{};s({...r,...t},t)}}else try{t=await i(e.title),t?.url&&s(t)}catch(e){}},T=d()(o,{});return(0,c.createElement)("div",{className:"block-editor-link-control__search-input-container"},(0,c.createElement)(CS,{disableSuggestions:n?.url===e,__nextHasNoMarginBottom:!0,label:(0,v.__)("Link"),hideLabelFromVision:y,className:T,value:e,onChange:(e,t)=>{a(e),B(t)},placeholder:null!=r?r:(0,v.__)("Search or type url"),__experimentalRenderSuggestions:u?e=>m({...e,instanceId:C,withCreateSuggestion:l,createSuggestionButtonText:k,suggestionsQuery:b,handleSuggestionClick:t=>{e.handleSuggestionClick&&e.handleSuggestionClick(t),I(t)}}):null,__experimentalFetchLinkSuggestions:S,__experimentalHandleURLSuggestions:!0,__experimentalShowInitialSuggestions:h,onSubmit:(t,n)=>{const o=t||x;o||e?.trim()?.length?I(o||{url:e}):n.preventDefault()},ref:E}),t)}));var YS=ZS;var XS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));var QS=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"}));const{Slot:JS,Fill:eC}=(0,m.createSlotFill)("BlockEditorLinkControlViewer");function tC(e,t){switch(t.type){case"RESOLVED":return{...e,isFetching:!1,richData:t.richData};case"ERROR":return{...e,isFetching:!1,richData:null};case"LOADING":return{...e,isFetching:!0};default:throw new Error(`Unexpected action type ${t.type}`)}}var nC=function(e){const[t,n]=(0,c.useReducer)(tC,{richData:null,isFetching:!1}),{fetchRichUrlData:o}=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return{fetchRichUrlData:t().__experimentalFetchRichUrlData}}),[]);return(0,c.useEffect)((()=>{if(e?.length&&o&&"undefined"!=typeof AbortController){n({type:"LOADING"});const t=new window.AbortController,r=t.signal;return o(e,{signal:r}).then((e=>{n({type:"RESOLVED",richData:e})})).catch((()=>{r.aborted||n({type:"ERROR"})})),()=>{t.abort()}}}),[e]),t};function oC({value:e,onEditClick:t,hasRichPreviews:n=!1,hasUnlinkControl:o=!1,onRemove:r}){const l=n?e?.url:null,{richData:i,isFetching:a}=nC(l),s=i&&Object.keys(i).length,u=e&&(0,Sf.filterURLForDisplay)((0,Sf.safeDecodeURI)(e.url),16)||"",p=i?.title||e?.title||u,f=!e?.url?.length;let g;return g=i?.icon?(0,c.createElement)("img",{src:i?.icon,alt:""}):f?(0,c.createElement)(Xl,{icon:XS,size:32}):(0,c.createElement)(Xl,{icon:PS}),(0,c.createElement)("div",{"aria-label":(0,v.__)("Currently selected"),className:d()("block-editor-link-control__search-item",{"is-current":!0,"is-rich":s,"is-fetching":!!a,"is-preview":!0,"is-error":f})},(0,c.createElement)("div",{className:"block-editor-link-control__search-item-top"},(0,c.createElement)("span",{className:"block-editor-link-control__search-item-header"},(0,c.createElement)("span",{className:d()("block-editor-link-control__search-item-icon",{"is-image":i?.icon})},g),(0,c.createElement)("span",{className:"block-editor-link-control__search-item-details"},f?(0,c.createElement)("span",{className:"block-editor-link-control__search-item-error-notice"},(0,v.__)("Link is empty")):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.ExternalLink,{className:"block-editor-link-control__search-item-title",href:e.url},(0,ea.__unstableStripHTML)(p)),e?.url&&(0,c.createElement)("span",{className:"block-editor-link-control__search-item-info"},u)))),(0,c.createElement)(m.Button,{icon:QS,label:(0,v.__)("Edit"),className:"block-editor-link-control__search-item-action",onClick:t,iconSize:24}),o&&(0,c.createElement)(m.Button,{icon:gh,label:(0,v.__)("Unlink"),className:"block-editor-link-control__search-item-action block-editor-link-control__unlink",onClick:r,iconSize:24}),(0,c.createElement)(JS,{fillProps:e})),!!(s&&(i?.image||i?.description)||a)&&(0,c.createElement)("div",{className:"block-editor-link-control__search-item-bottom"},(i?.image||a)&&(0,c.createElement)("div",{"aria-hidden":!i?.image,className:d()("block-editor-link-control__search-item-image",{"is-placeholder":!i?.image})},i?.image&&(0,c.createElement)("img",{src:i?.image,alt:""})),(i?.description||a)&&(0,c.createElement)("div",{"aria-hidden":!i?.description,className:d()("block-editor-link-control__search-item-description",{"is-placeholder":!i?.description})},i?.description&&(0,c.createElement)(m.__experimentalText,{truncate:!0,numberOfLines:"2"},i.description))))}const rC=()=>{};var lC=({value:e,onChange:t=rC,settings:n})=>{if(!n||!n.length)return null;const o=n=>o=>{t({...e,[n.id]:o})},r=n.map((t=>(0,c.createElement)(m.CheckboxControl,{__nextHasNoMarginBottom:!0,className:"block-editor-link-control__setting",key:t.id,label:t.title,onChange:o(t),checked:!!e&&!!e[t.id]})));return(0,c.createElement)("fieldset",{className:"block-editor-link-control__settings"},(0,c.createElement)(m.VisuallyHidden,{as:"legend"},(0,v.__)("Currently selected link settings")),r)};const iC=e=>{let t=!1;return{promise:new Promise(((n,o)=>{e.then((e=>t?o({isCanceled:!0}):n(e)),(e=>o(t?{isCanceled:!0}:e)))})),cancel(){t=!0}}};const aC=()=>{},sC="core/block-editor",cC="linkControlSettingsDrawer";function uC({searchInputPlaceholder:e,value:t,settings:n=HS,onChange:o=aC,onRemove:r,onCancel:l,noDirectEntry:i=!1,showSuggestions:a=!0,showInitialSuggestions:s,forceIsEditingLink:u,createSuggestion:p,withCreateSuggestion:g,inputValue:h="",suggestionsQuery:b={},noURLSuggestion:_=!1,createSuggestionButtonText:k,hasRichPreviews:y=!1,hasTextControl:E=!1,renderControlBottom:w=null}){void 0===g&&p&&(g=!0);const[S,C]=(0,c.useState)(!1),{advancedSettingsPreference:x}=(0,f.useSelect)((e=>{var t;return{advancedSettingsPreference:null!==(t=e(xf.store).get(sC,cC))&&void 0!==t&&t}}),[]),{set:B}=(0,f.useDispatch)(xf.store),I=x||S,T=(0,c.useRef)(!0),M=(0,c.useRef)(),P=(0,c.useRef)(),N=(0,c.useRef)(!1),L=n.map((({id:e})=>e)),[R,A,D,O,z]=function(e){const[t,n]=(0,c.useState)(e||{});return(0,c.useEffect)((()=>{n((t=>e&&e!==t?e:t))}),[e]),[t,n,e=>{n({...t,url:e})},e=>{n({...t,title:e})},e=>o=>{const r=Object.keys(o).reduce(((t,n)=>(e.includes(n)&&(t[n]=o[n]),t)),{});n({...t,...r})}]}(t),V=t&&!(0,o_.isShallowEqualObjects)(R,t),[F,H]=(0,c.useState)(void 0!==u?u:!t||!t.url),{createPage:G,isCreatingPage:U,errorMessage:$}=function(e){const t=(0,c.useRef)(),[n,o]=(0,c.useState)(!1),[r,l]=(0,c.useState)(null);return(0,c.useEffect)((()=>()=>{t.current&&t.current.cancel()}),[]),{createPage:async function(n){o(!0),l(null);try{return t.current=iC(Promise.resolve(e(n))),await t.current.promise}catch(e){if(e&&e.isCanceled)return;throw l(e.message||(0,v.__)("An unknown error occurred during creation. Please try again.")),e}finally{o(!1)}},isCreatingPage:n,errorMessage:r}}(p);(0,c.useEffect)((()=>{void 0!==u&&u!==F&&H(u)}),[u]),(0,c.useEffect)((()=>{if(T.current)return void(T.current=!1);(ea.focus.focusable.find(M.current)[0]||M.current).focus(),N.current=!1}),[F,U]);const j=t?.url?.trim()?.length>0,W=()=>{N.current=!!M.current?.contains(M.current.ownerDocument.activeElement),H(!1)},K=()=>{V&&o({...t,...R,url:q}),W()},q=h||R?.url||"",Z=!q?.trim()?.length,Y=r&&t&&!F&&!U,X=F&&j,Q=j&&E,J=(F||!t)&&!U,ee=!V||Z,te=!!n?.length&&F&&j;return(0,c.createElement)("div",{tabIndex:-1,ref:M,className:"block-editor-link-control"},U&&(0,c.createElement)("div",{className:"block-editor-link-control__loading"},(0,c.createElement)(m.Spinner,null)," ",(0,v.__)("Creating"),"…"),J&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)("div",{className:d()({"block-editor-link-control__search-input-wrapper":!0,"has-text-control":Q})},Q&&(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,ref:P,className:"block-editor-link-control__field block-editor-link-control__text-content",label:(0,v.__)("Text"),value:R?.title,onChange:O,onKeyDown:e=>{const{keyCode:t}=e;t!==yd.ENTER||Z||(e.preventDefault(),K())},size:"__unstable-large"}),(0,c.createElement)(YS,{currentLink:t,className:"block-editor-link-control__field block-editor-link-control__search-input",placeholder:e,value:q,withCreateSuggestion:g,onCreateSuggestion:G,onChange:D,onSelect:e=>{const t=Object.keys(e).reduce(((t,n)=>(L.includes(n)||(t[n]=e[n]),t)),{});o({...R,...t,title:R?.title||e?.title}),W()},showInitialSuggestions:s,allowDirectEntry:!i,showSuggestions:a,suggestionsQuery:b,withURLSuggestion:!_,createSuggestionButtonText:k,hideLabelFromVision:!Q})),$&&(0,c.createElement)(m.Notice,{className:"block-editor-link-control__search-error",status:"error",isDismissible:!1},$)),t&&!F&&!U&&(0,c.createElement)(oC,{key:t?.url,value:t,onEditClick:()=>H(!0),hasRichPreviews:y,hasUnlinkControl:Y,onRemove:r}),te&&(0,c.createElement)("div",{className:"block-editor-link-control__tools"},!Z&&(0,c.createElement)(kS,{settingsOpen:I,setSettingsOpen:e=>{B&&B(sC,cC,e),C(e)}},(0,c.createElement)(lC,{value:R,settings:n,onChange:z(L)}))),X&&(0,c.createElement)("div",{className:"block-editor-link-control__search-actions"},(0,c.createElement)(m.Button,{variant:"primary",onClick:ee?aC:K,className:"block-editor-link-control__search-submit","aria-disabled":ee},(0,v.__)("Save")),(0,c.createElement)(m.Button,{variant:"tertiary",onClick:e=>{e.preventDefault(),e.stopPropagation(),A(t),j?W():r?.(),l?.()}},(0,v.__)("Cancel"))),w&&w())}uC.ViewerFill=eC;var dC=uC;var pC=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,c.createElement)(F.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"}));var mC=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));var fC=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"}));const gC=()=>{};let hC=0;var bC=(0,p.compose)([(0,f.withDispatch)((e=>{const{createNotice:t,removeNotice:n}=e(Vm.store);return{createNotice:t,removeNotice:n}})),(0,m.withFilters)("editor.MediaReplaceFlow")])((({mediaURL:e,mediaId:t,mediaIds:n,allowedTypes:o,accept:r,onError:l,onSelect:i,onSelectURL:a,onToggleFeaturedImage:s,useFeaturedImage:u,onFilesUpload:p=gC,name:g=(0,v.__)("Replace"),createNotice:h,removeNotice:b,children:_,multiple:k=!1,addToGallery:y,handleUpload:E=!0,popoverProps:w})=>{const S=(0,f.useSelect)((e=>e(Go).getSettings().mediaUpload),[]),C=!!S,x=(0,c.useRef)(),B="block-editor/media-replace-flow/error-notice/"+ ++hC,I=e=>{const t=(0,ea.__unstableStripHTML)(e);l?l(t):setTimeout((()=>{h("error",t,{speak:!0,id:B,isDismissible:!0})}),1e3)},T=(e,t)=>{u&&s&&s(),t(),i(e),(0,Cn.speak)((0,v.__)("The media file has been replaced")),b(B)},M=e=>{e.keyCode===yd.DOWN&&(e.preventDefault(),e.target.click())},P=k&&!(!o||0===o.length)&&o.every((e=>"image"===e||e.startsWith("image/")));return(0,c.createElement)(m.Dropdown,{popoverProps:w,contentClassName:"block-editor-media-replace-flow__options",renderToggle:({isOpen:e,onToggle:t})=>(0,c.createElement)(m.ToolbarButton,{ref:x,"aria-expanded":e,"aria-haspopup":"true",onClick:t,onKeyDown:M},g),renderContent:({onClose:l})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.NavigableMenu,{className:"block-editor-media-replace-flow__media-upload-menu"},(0,c.createElement)(qf,null,(0,c.createElement)(Zf,{gallery:P,addToGallery:y,multiple:k,value:k?n:t,onSelect:e=>T(e,l),allowedTypes:o,render:({open:e})=>(0,c.createElement)(m.MenuItem,{icon:pC,onClick:e},(0,v.__)("Open Media Library"))}),(0,c.createElement)(m.FormFileUpload,{onChange:e=>{((e,t)=>{const n=e.target.files;if(!E)return t(),i(n);p(n),S({allowedTypes:o,filesList:n,onFileChange:([e])=>{T(e,t)},onError:I})})(e,l)},accept:r,multiple:k,render:({openFileDialog:e})=>(0,c.createElement)(m.MenuItem,{icon:mC,onClick:()=>{e()}},(0,v.__)("Upload"))})),s&&(0,c.createElement)(m.MenuItem,{icon:fC,onClick:s,isPressed:u},(0,v.__)("Use featured image")),_),a&&(0,c.createElement)("form",{className:d()("block-editor-media-flow__url-input",{"has-siblings":C||s})},(0,c.createElement)("span",{className:"block-editor-media-replace-flow__image-url-label"},(0,v.__)("Current media URL:")),(0,c.createElement)(m.Tooltip,{text:e,position:"bottom"},(0,c.createElement)("div",null,(0,c.createElement)(dC,{value:{url:e},settings:[],showSuggestions:!1,onChange:({url:e})=>{a(e),x.current.focus()}})))))})}));var vC=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,c.createElement)(F.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));function _C({url:e,urlLabel:t,className:n}){const o=d()(n,"block-editor-url-popover__link-viewer-url");return e?(0,c.createElement)(m.ExternalLink,{className:o,href:e},t||(0,Sf.filterURLForDisplay)((0,Sf.safeDecodeURI)(e))):(0,c.createElement)("span",{className:o})}const{__experimentalPopoverLegacyPositionToPlacement:kC}=Fo(m.privateApis);function yC({additionalControls:e,children:t,renderSettings:n,placement:o,focusOnMount:r="firstElement",position:l,...i}){let a;void 0!==l&&$()("`position` prop in wp.blockEditor.URLPopover",{since:"6.2",alternative:"`placement` prop"}),void 0!==o?a=o:void 0!==l&&(a=kC(l)),a=a||"bottom";const[s,u]=(0,c.useState)(!1),d=!!n&&s;return(0,c.createElement)(m.Popover,{className:"block-editor-url-popover",focusOnMount:r,placement:a,shift:!0,...i},(0,c.createElement)("div",{className:"block-editor-url-popover__input-container"},(0,c.createElement)("div",{className:"block-editor-url-popover__row"},t,!!n&&(0,c.createElement)(m.Button,{className:"block-editor-url-popover__settings-toggle",icon:Gy,label:(0,v.__)("Link settings"),onClick:()=>{u(!s)},"aria-expanded":s})),d&&(0,c.createElement)("div",{className:"block-editor-url-popover__row block-editor-url-popover__settings"},n())),e&&!d&&(0,c.createElement)("div",{className:"block-editor-url-popover__additional-controls"},e))}yC.LinkEditor=function({autocompleteRef:e,className:t,onChangeInputValue:n,value:o,...r}){return(0,c.createElement)("form",{className:d()("block-editor-url-popover__link-editor",t),...r},(0,c.createElement)(CS,{__nextHasNoMarginBottom:!0,value:o,onChange:n,autocompleteRef:e}),(0,c.createElement)(m.Button,{icon:vC,label:(0,v.__)("Apply"),type:"submit"}))},yC.LinkViewer=function({className:e,linkClassName:t,onEditLinkClick:n,url:o,urlLabel:r,...l}){return(0,c.createElement)("div",{className:d()("block-editor-url-popover__link-viewer",e),...l},(0,c.createElement)(_C,{url:o,urlLabel:r,className:t}),n&&(0,c.createElement)(m.Button,{icon:QS,label:(0,v.__)("Edit"),onClick:n}))};var EC=yC;const wC=()=>{},SC=({src:e,onChange:t,onSubmit:n,onClose:o,popoverAnchor:r})=>(0,c.createElement)(EC,{anchor:r,onClose:o},(0,c.createElement)("form",{className:"block-editor-media-placeholder__url-input-form",onSubmit:n},(0,c.createElement)("input",{className:"block-editor-media-placeholder__url-input-field",type:"text","aria-label":(0,v.__)("URL"),placeholder:(0,v.__)("Paste or type URL"),onChange:t,value:e}),(0,c.createElement)(m.Button,{className:"block-editor-media-placeholder__url-input-submit-button",icon:vC,label:(0,v.__)("Apply"),type:"submit"}))),CC=({isURLInputVisible:e,src:t,onChangeSrc:n,onSubmitSrc:o,openURLInput:r,closeURLInput:l})=>{const[i,a]=(0,c.useState)(null);return(0,c.createElement)("div",{className:"block-editor-media-placeholder__url-input-container",ref:a},(0,c.createElement)(m.Button,{className:"block-editor-media-placeholder__button",onClick:r,isPressed:e,variant:"tertiary"},(0,v.__)("Insert from URL")),e&&(0,c.createElement)(SC,{src:t,onChange:n,onSubmit:o,onClose:l,popoverAnchor:i}))};var xC=(0,m.withFilters)("editor.MediaPlaceholder")((function({value:e={},allowedTypes:t,className:n,icon:o,labels:r={},mediaPreview:l,notices:i,isAppender:s,accept:u,addToGallery:p,multiple:g=!1,handleUpload:h=!0,disableDropZone:b,disableMediaButtons:_,onError:k,onSelect:y,onCancel:E,onSelectURL:w,onToggleFeaturedImage:S,onDoubleClick:C,onFilesPreUpload:x=wC,onHTMLDrop:B,children:I,mediaLibraryButton:T,placeholder:M,style:P}){B&&$()("wp.blockEditor.MediaPlaceholder onHTMLDrop prop",{since:"6.2",version:"6.4"});const N=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return t().mediaUpload}),[]),[L,R]=(0,c.useState)(""),[A,D]=(0,c.useState)(!1);(0,c.useEffect)((()=>{var t;R(null!==(t=e?.src)&&void 0!==t?t:"")}),[e?.src]);const O=e=>{R(e.target.value)},z=()=>{D(!0)},V=()=>{D(!1)},F=e=>{e.preventDefault(),L&&w&&(w(L),V())},H=n=>{if(!h)return y(n);let o;if(x(n),g)if(p){let t=[];o=n=>{const o=(null!=e?e:[]).filter((e=>e.id?!t.some((({id:t})=>Number(t)===Number(e.id))):!t.some((({urlSlug:t})=>e.url.includes(t)))));y(o.concat(n)),t=n.map((e=>{const t=e.url.lastIndexOf("."),n=e.url.slice(0,t);return{id:e.id,urlSlug:n}}))}}else o=y;else o=([e])=>y(e);N({allowedTypes:t,filesList:n,onFileChange:o,onError:k})};async function G(e){const n=(0,a.pasteHandler)({HTML:e});return await async function(e){if(!e||!Array.isArray(e))return;const n=function e(t){return t.flatMap((t=>"core/image"!==t.name&&"core/audio"!==t.name&&"core/video"!==t.name||!t.attributes.url?e(t.innerBlocks):[t]))}(e);if(!n.length)return;const o=await Promise.all(n.map((e=>e.attributes.id?e.attributes:new Promise(((n,o)=>{window.fetch(e.attributes.url).then((e=>e.blob())).then((r=>N({filesList:[r],additionalData:{title:e.attributes.title,alt_text:e.attributes.alt,caption:e.attributes.caption},onFileChange:([e])=>{e.id&&n(e)},allowedTypes:t,onError:o}))).catch((()=>n(e.attributes.url)))}))))).catch((e=>k(e)));y(g?o:o[0])}(n)}const U=e=>{H(e.target.files)},j=null!=M?M:e=>{let{instructions:a,title:u}=r;if(N||w||(a=(0,v.__)("To edit this block, you need permission to upload media.")),void 0===a||void 0===u){const e=null!=t?t:[],[n]=e,o=1===e.length,r=o&&"audio"===n,l=o&&"image"===n,i=o&&"video"===n;void 0===a&&N&&(a=(0,v.__)("Upload a media file or pick one from your media library."),r?a=(0,v.__)("Upload an audio file, pick one from your media library, or add one with a URL."):l?a=(0,v.__)("Upload an image file, pick one from your media library, or add one with a URL."):i&&(a=(0,v.__)("Upload a video file, pick one from your media library, or add one with a URL."))),void 0===u&&(u=(0,v.__)("Media"),r?u=(0,v.__)("Audio"):l?u=(0,v.__)("Image"):i&&(u=(0,v.__)("Video")))}const p=d()("block-editor-media-placeholder",n,{"is-appender":s});return(0,c.createElement)(m.Placeholder,{icon:o,label:u,instructions:a,className:p,notices:i,onDoubleClick:C,preview:l,style:P},e,I)},W=()=>b?null:(0,c.createElement)(m.DropZone,{onFilesDrop:H,onHTMLDrop:G}),K=()=>E&&(0,c.createElement)(m.Button,{className:"block-editor-media-placeholder__cancel-button",title:(0,v.__)("Cancel"),variant:"link",onClick:E},(0,v.__)("Cancel")),q=()=>w&&(0,c.createElement)(CC,{isURLInputVisible:A,src:L,onChangeSrc:O,onSubmitSrc:F,openURLInput:z,closeURLInput:V}),Z=()=>S&&(0,c.createElement)("div",{className:"block-editor-media-placeholder__url-input-container"},(0,c.createElement)(m.Button,{className:"block-editor-media-placeholder__button",onClick:S,variant:"tertiary"},(0,v.__)("Use featured image")));return _?(0,c.createElement)(qf,null,W()):(0,c.createElement)(qf,{fallback:j(q())},(()=>{const n=null!=T?T:({open:e})=>(0,c.createElement)(m.Button,{variant:"tertiary",onClick:()=>{e()}},(0,v.__)("Media Library")),o=(0,c.createElement)(Zf,{addToGallery:p,gallery:g&&!(!t||0===t.length)&&t.every((e=>"image"===e||e.startsWith("image/"))),multiple:g,onSelect:y,allowedTypes:t,mode:"browse",value:Array.isArray(e)?e.map((({id:e})=>e)):e.id,render:n});if(N&&s)return(0,c.createElement)(c.Fragment,null,W(),(0,c.createElement)(m.FormFileUpload,{onChange:U,accept:u,multiple:g,render:({openFileDialog:e})=>{const t=(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.Button,{variant:"primary",className:d()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onClick:e},(0,v.__)("Upload")),o,q(),Z(),K());return j(t)}}));if(N){const e=(0,c.createElement)(c.Fragment,null,W(),(0,c.createElement)(m.FormFileUpload,{variant:"primary",className:d()("block-editor-media-placeholder__button","block-editor-media-placeholder__upload-button"),onChange:U,accept:u,multiple:g},(0,v.__)("Upload")),o,q(),Z(),K());return j(e)}return j(o)})())}));var BC=({colorSettings:e,...t})=>{const n=e.map((e=>{if(!e)return e;const{value:t,onChange:n,...o}=e;return{...o,colorValue:t,onColorChange:n}}));return(0,c.createElement)(Vw,{settings:n,gradients:[],disableCustomGradients:!0,...t})};const IC={placement:"bottom-start"};var TC=()=>(0,c.createElement)(c.Fragment,null,["bold","italic","link","unknown"].map((e=>(0,c.createElement)(m.Slot,{name:`RichText.ToolbarControls.${e}`,key:e}))),(0,c.createElement)(m.Slot,{name:"RichText.ToolbarControls"},(e=>{if(!e.length)return null;const t=e.map((([{props:e}])=>e)).some((({isActive:e})=>e));return(0,c.createElement)(m.ToolbarItem,null,(n=>(0,c.createElement)(m.DropdownMenu,{icon:Gy,label:(0,v.__)("More"),toggleProps:{...n,className:d()(n.className,{"is-pressed":t}),describedBy:(0,v.__)("Displays more block tools")},controls:K(e.map((([{props:e}])=>e)),"title"),popoverProps:IC})))})));function MC(e){return Array.from(e.querySelectorAll("[data-toolbar-item]"))}function PC(e,t,n,o,r,l){const[i]=(0,c.useState)(t),[a]=(0,c.useState)(o),s=(0,c.useCallback)((()=>{!function(e){const[t]=ea.focus.tabbable.find(e);t&&t.focus({preventScroll:!0})}(e.current)}),[]);(0,op.useShortcut)("core/block-editor/focus-toolbar",(()=>{l&&s()})),(0,c.useEffect)((()=>{i&&s()}),[n,i,s]),(0,c.useEffect)((()=>{const t=e.current;let n=0;return i||(n=window.requestAnimationFrame((()=>{const e=MC(t),n=a||0;var o;e[n]&&(o=t).contains(o.ownerDocument.activeElement)&&e[n].focus({preventScroll:!0})}))),()=>{if(window.cancelAnimationFrame(n),!r||!t)return;const e=MC(t).findIndex((e=>0===e.tabIndex));r(e)}}),[a,i])}var NC=function({children:e,focusOnMount:t,shouldUseKeyboardFocusShortcut:n=!0,__experimentalInitialIndex:o,__experimentalOnIndexChange:r,...l}){const i=(0,c.useRef)(),a=function(e){const[t,n]=(0,c.useState)(!0),o=(0,c.useCallback)((()=>{const t=!ea.focus.tabbable.find(e.current).some((e=>!("toolbarItem"in e.dataset)));t||$()("Using custom components as toolbar controls",{since:"5.6",alternative:"ToolbarItem, ToolbarButton or ToolbarDropdownMenu components",link:"https://developer.wordpress.org/block-editor/components/toolbar-button/#inside-blockcontrols"}),n(t)}),[]);return(0,c.useLayoutEffect)((()=>{const t=new window.MutationObserver(o);return t.observe(e.current,{childList:!0,subtree:!0}),()=>t.disconnect()}),[t]),t}(i);return PC(i,t,a,o,r,n),a?(0,c.createElement)(m.Toolbar,{label:l["aria-label"],ref:i,...l},e):(0,c.createElement)(m.NavigableMenu,{orientation:"horizontal",role:"toolbar",ref:i,...l},e)};function LC({editableContentElement:e,activeFormats:t}){const n=t[t.length-1],o=n?.type,r=(0,f.useSelect)((e=>e(G.store).getFormatType(o)),[o]),l=(0,G.useAnchor)({editableContentElement:e,settings:r});return(0,c.createElement)(RC,{popoverAnchor:l})}function RC({popoverAnchor:e}){return(0,c.createElement)(m.Popover,{placement:"top",focusOnMount:!1,anchor:e,className:"block-editor-rich-text__inline-format-toolbar",__unstableSlotName:"block-toolbar"},(0,c.createElement)(NC,{className:"block-editor-rich-text__inline-format-toolbar-group","aria-label":(0,v.__)("Format tools")},(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(TC,null))))}var AC=({inline:e,editableContentElement:t,value:n})=>{const o=(0,f.useSelect)((e=>e(Go).getSettings().hasInlineToolbar),[]);if(e)return(0,c.createElement)(RC,{popoverAnchor:t});if(o){const e=(0,G.getActiveFormats)(n);return(0,G.isCollapsed)(n)&&!e.length?null:(0,c.createElement)(LC,{editableContentElement:t,activeFormats:e})}return(0,c.createElement)(er,{group:"inline"},(0,c.createElement)(TC,null))};function DC(){const{didAutomaticChange:e,getSettings:t}=(0,f.useSelect)(Go);return(0,p.useRefEffect)((n=>{function o(n){const{keyCode:o}=n;if(n.defaultPrevented)return;if(o!==yd.DELETE&&o!==yd.BACKSPACE&&o!==yd.ESCAPE)return;const{__experimentalUndo:r}=t();r&&e()&&(n.preventDefault(),r())}return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}),[])}var OC=window.wp.shortcode;function zC(e,t){if(t?.length){let n=e.formats.length;for(;n--;)e.formats[n]=[...t,...e.formats[n]||[]]}}function VC(e){if(!0===e||"p"===e||"li"===e)return!0===e?"p":e}function FC({allowedFormats:e,disableFormats:t}){return t?FC.EMPTY_ARRAY:e}FC.EMPTY_ARRAY=[];const HC=e=>(0,OC.regexp)(".*").test(e);function GC({value:e,pastedBlocks:t=[],onReplace:n,onSplit:o,onSplitMiddle:r,multilineTag:l}){if(!n||!o)return;const{start:i=0,end:a=0}=e,s={...e,start:i,end:a},c=[],[u,d]=(0,G.split)(s),p=t.length>0;let m=-1;const f=(0,G.isEmpty)(u)&&!(0,G.isEmpty)(d);p&&(0,G.isEmpty)(u)||(c.push(o((0,G.toHTMLString)({value:u,multilineTag:l}),!f)),m+=1),p?(c.push(...t),m+=t.length):r&&c.push(r()),(p||r)&&(0,G.isEmpty)(d)||c.push(o((0,G.toHTMLString)({value:d,multilineTag:l}),f));n(c,p?m:1,p?-1:0)}function UC(e,t){return t?(0,G.replace)(e,/\n+/g,G.__UNSTABLE_LINE_SEPARATOR):(0,G.replace)(e,new RegExp(G.__UNSTABLE_LINE_SEPARATOR,"g"),"\n")}function $C(e){const t=(0,c.useRef)(e);return t.current=e,(0,p.useRefEffect)((e=>{function n(e){const{isSelected:n,disableFormats:o,onChange:r,value:l,formatTypes:i,tagName:s,onReplace:c,onSplit:u,onSplitMiddle:d,__unstableEmbedURLOnPaste:p,multilineTag:m,preserveWhiteSpace:f,pastePlainText:g}=t.current;if(!n)return;const{clipboardData:h}=e;let b="",v="";try{b=h.getData("text/plain"),v=h.getData("text/html")}catch(e){try{v=h.getData("Text")}catch(e){return}}if(v=function(e){const t="\x3c!--StartFragment--\x3e",n=e.indexOf(t);if(!(n>-1))return e;e=e.substring(n+t.length);const o="\x3c!--EndFragment--\x3e",r=e.indexOf(o);r>-1&&(e=e.substring(0,r));return e}(v),v=function(e){const t="<meta charset='utf-8'>";if(e.startsWith(t))return e.slice(t.length);return e}(v),e.preventDefault(),window.console.log("Received HTML:\n\n",v),window.console.log("Received plain text:\n\n",b),o)return void r((0,G.insert)(l,b));const _=i.reduce(((e,{__unstablePasteRule:t})=>(t&&e===l&&(e=t(l,{html:v,plainText:b})),e)),l);if(_!==l)return void r(_);const k=[...(0,ea.getFilesFromDataTransfer)(h)];if("true"===h.getData("rich-text")){const e=h.getData("rich-text-multi-line-tag")||void 0;let t=(0,G.create)({html:v,multilineTag:e,multilineWrapperTags:"li"===e?["ul","ol"]:void 0,preserveWhiteSpace:f});return t=UC(t,!!m),zC(t,l.activeFormats),void r((0,G.insert)(l,t))}if(g)return void r((0,G.insert)(l,(0,G.create)({text:b})));if(k?.length&&window.console.log("Received items:\n\n",k),k?.length&&!gE(k,v)){const e=(0,a.getBlockTransforms)("from"),t=k.reduce(((t,n)=>{const o=(0,a.findTransform)(e,(e=>"files"===e.type&&e.isMatch([n])));return o&&t.push(o.transform([n])),t}),[]).flat();if(!t.length)return;return void(c&&(0,G.isEmpty)(l)?c(t):GC({value:l,pastedBlocks:t,onReplace:c,onSplit:u,onSplitMiddle:d,multilineTag:m}))}let y=c&&u?"AUTO":"INLINE";"AUTO"===y&&(0,G.isEmpty)(l)&&HC(b)&&(y="BLOCKS"),p&&(0,G.isEmpty)(l)&&(0,Sf.isURL)(b.trim())&&(y="BLOCKS");const E=(0,a.pasteHandler)({HTML:v,plainText:b,mode:y,tagName:s,preserveWhiteSpace:f});if("string"==typeof E){let e=(0,G.create)({html:E});e=UC(e,!!m),zC(e,l.activeFormats),r((0,G.insert)(l,e))}else E.length>0&&(c&&(0,G.isEmpty)(l)?c(E,E.length-1,-1):GC({value:l,pastedBlocks:E,onReplace:c,onSplit:u,onSplitMiddle:d,multilineTag:m}))}return e.addEventListener("paste",n),()=>{e.removeEventListener("paste",n)}}),[])}const jC=["`",'"',"'","“”","‘’"];function WC(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=(0,f.useDispatch)(Go),o=(0,c.useRef)(e);return o.current=e,(0,p.useRefEffect)((e=>{function r(r){const{inputType:l,data:i}=r,{value:a,onChange:c}=o.current;if("insertText"!==l)return;if((0,G.isCollapsed)(a))return;const u=(0,s.applyFilters)("blockEditor.wrapSelectionSettings",jC).find((([e,t])=>e===i||t===i));if(!u)return;const[d,p=d]=u,m=a.start,f=a.end+d.length;let g=(0,G.insert)(a,d,m,m);g=(0,G.insert)(g,p,f,f),t(),c(g),n();const h={};for(const e in r)h[e]=r[e];h.data=p;const{ownerDocument:b}=e,{defaultView:v}=b,_=new v.InputEvent("input",h);window.queueMicrotask((()=>{r.target.dispatchEvent(_)})),r.preventDefault()}return e.addEventListener("beforeinput",r),()=>{e.removeEventListener("beforeinput",r)}}),[])}function KC(e){let t=e.length;for(;t--;){const n=Bn(e[t].attributes);if(n)return e[t].attributes[n]=e[t].attributes[n].replace(xn,""),[e[t].clientId,n,0,0];const o=KC(e[t].innerBlocks);if(o)return o}return[]}function qC(e){const{__unstableMarkLastChangeAsPersistent:t,__unstableMarkAutomaticChange:n}=(0,f.useDispatch)(Go),o=(0,c.useRef)(e);return o.current=e,(0,p.useRefEffect)((e=>{function r(){const{getValue:e,onReplace:t,selectionChange:r}=o.current;if(!t)return;const l=e(),{start:i,text:s}=l;if(" "!==s.slice(i-1,i))return;const c=s.slice(0,i).trim(),u=(0,a.getBlockTransforms)("from").filter((({type:e})=>"prefix"===e)),d=(0,a.findTransform)(u,(({prefix:e})=>c===e));if(!d)return;const p=(0,G.toHTMLString)({value:(0,G.insert)(l,xn,0,i)}),m=d.transform(p);return r(...KC([m])),t([m]),n(),!0}function l(e){const{inputType:l,type:i}=e,{getValue:a,onChange:s,__unstableAllowPrefixTransformations:c,formatTypes:u}=o.current;if("insertText"!==l&&"compositionend"!==i)return;if(c&&r&&r())return;const d=a(),p=u.reduce(((e,{__unstableInputRule:t})=>(t&&(e=t(e)),e)),function(e){const t="tales of gutenberg",{start:n,text:o}=e;return n<18||o.slice(n-18,n).toLowerCase()!==t?e:(0,G.insert)(e," 🐡🐢🦀🐤🦋🐘🐧🐹🦁🦄🦍🐼🐿🎃🐴🐝🐆🦕🦔🌱🍇π🍌🐉💧🥨🌌🍂🍠🥦🥚🥝🎟🥥🥒🛵🥖🍒🍯🎾🎲🐺🐚🐮⌛️")}(d));p!==d&&(t(),s({...p,activeFormats:d.activeFormats}),n())}return e.addEventListener("input",l),e.addEventListener("compositionend",l),()=>{e.removeEventListener("input",l),e.removeEventListener("compositionend",l)}}),[])}function ZC(e){const t=(0,c.useRef)(e);return t.current=e,(0,p.useRefEffect)((e=>{function n(e){const{keyCode:n}=e;if(e.defaultPrevented)return;const{value:o,onMerge:r,onRemove:l}=t.current;if(n===yd.DELETE||n===yd.BACKSPACE){const{start:t,end:i,text:a}=o,s=n===yd.BACKSPACE,c=o.activeFormats&&!!o.activeFormats.length;if(!(0,G.isCollapsed)(o)||c||s&&0!==t||!s&&i!==a.length)return;r&&r(!s),l&&(0,G.isEmpty)(o)&&s&&l(!s),e.preventDefault()}}return e.addEventListener("keydown",n),()=>{e.removeEventListener("keydown",n)}}),[])}function YC(e){const{__unstableMarkAutomaticChange:t}=(0,f.useDispatch)(Go),n=(0,c.useRef)(e);return n.current=e,(0,p.useRefEffect)((e=>{function o(e){if(e.defaultPrevented)return;if(e.keyCode!==yd.ENTER)return;const{removeEditorOnlyFormats:o,value:r,onReplace:l,onSplit:i,onSplitMiddle:s,multilineTag:c,onChange:u,disableLineBreaks:d,onSplitAtEnd:p}=n.current;e.preventDefault();const m={...r};m.formats=o(r);const f=l&&i;if(l){const e=(0,a.getBlockTransforms)("from").filter((({type:e})=>"enter"===e)),n=(0,a.findTransform)(e,(e=>e.regExp.test(m.text)));n&&(l([n.transform({content:m.text})]),t())}if(c)e.shiftKey?d||u((0,G.insert)(m,"\n")):f&&(0,G.__unstableIsEmptyLine)(m)?GC({value:m,onReplace:l,onSplit:i,onSplitMiddle:s,multilineTag:c}):u((0,G.__unstableInsertLineSeparator)(m));else{const{text:t,start:n,end:o}=m,r=p&&n===o&&o===t.length;e.shiftKey||!f&&!r?d||u((0,G.insert)(m,"\n")):!f&&r?p():f&&GC({value:m,onReplace:l,onSplit:i,onSplitMiddle:s,multilineTag:c})}}return e.addEventListener("keydown",o),()=>{e.removeEventListener("keydown",o)}}),[])}function XC(e){return e(G.store).getFormatTypes()}const QC=new Set(["a","audio","button","details","embed","iframe","input","label","select","textarea","video"]);function JC(e,t){return"object"!=typeof e?{[t]:e}:Object.fromEntries(Object.entries(e).map((([e,n])=>[`${t}.${e}`,n])))}function ex(e,t){return e[t]?e[t]:Object.keys(e).filter((e=>e.startsWith(t+"."))).reduce(((n,o)=>(n[o.slice(t.length+1)]=e[o],n)),{})}function tx(e){return(0,p.useRefEffect)((t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("keydown",n),()=>{t.removeEventListener("keydown",n)}}),[])}function nx(e){return(0,p.useRefEffect)((t=>{function n(t){for(const n of e.current)n(t)}return t.addEventListener("input",n),()=>{t.removeEventListener("input",n)}}),[])}function ox(){const{__unstableMarkLastChangeAsPersistent:e}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((t=>{function n(t){"insertReplacementText"===t.inputType&&e()}return t.addEventListener("beforeinput",n),()=>{t.removeEventListener("beforeinput",n)}}),[])}function rx(e){const t=(0,c.useRef)(e);t.current=e;const{isMultiSelecting:n}=(0,f.useSelect)(Go);return(0,p.useRefEffect)((e=>{function o(){if(!n())return;const t=e.parentElement.closest('[contenteditable="true"]');t&&t.focus()}function r(n){if(n.keyCode!==yd.SPACE)return;if(null===e.closest("button, summary"))return;const{value:o,onChange:r}=t.current;r((0,G.insert)(o," ")),n.preventDefault()}return e.addEventListener("focus",o),e.addEventListener("keydown",r),()=>{e.removeEventListener("focus",o),e.removeEventListener("keydown",r)}}),[])}const lx={},ix=Symbol("usesContext");function ax({onChange:e,onFocus:t,value:n,forwardedRef:o,settings:r}){const{name:l,edit:i,[ix]:a}=r,s=(0,c.useContext)(oa),u=(0,c.useMemo)((()=>a?Object.fromEntries(Object.entries(s).filter((([e])=>a.includes(e)))):lx),[a,s]);if(!i)return null;const d=(0,G.getActiveFormat)(n,l),p=void 0!==d,m=(0,G.getActiveObject)(n),f=void 0!==m&&m.type===l;return(0,c.createElement)(i,{key:l,isActive:p,activeAttributes:p&&d.attributes||{},isObjectActive:f,activeObjectAttributes:f&&m.attributes||{},value:n,onChange:e,onFocus:t,contentRef:o,context:u})}function sx({formatTypes:e,...t}){return e.map((e=>(0,c.createElement)(ax,{settings:e,...t,key:e.name})))}const cx=({value:e,tagName:t,multiline:n,...o})=>{Array.isArray(e)&&($()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),e=a.children.toHTML(e));const r=VC(n);!e&&r&&(e=`<${r}></${r}>`);const l=(0,c.createElement)(c.RawHTML,null,e);if(t){const{format:e,...n}=o;return(0,c.createElement)(t,{...n},l)}return l},ux=(0,c.createContext)(),dx=(0,c.createContext)();const px=(0,c.forwardRef)((function e({children:t,tagName:n="div",value:o="",onChange:r,isSelected:l,multiline:i,inlineToolbar:s,wrapperClassName:u,autocompleters:g,onReplace:h,placeholder:b,allowedFormats:v,withoutInteractiveFormatting:_,onRemove:k,onMerge:y,onSplit:E,__unstableOnSplitAtEnd:w,__unstableOnSplitMiddle:S,identifier:C,preserveWhiteSpace:x,__unstablePastePlainText:B,__unstableEmbedURLOnPaste:I,__unstableDisableFormats:T,disableLineBreaks:M,__unstableAllowPrefixTransformations:P,...N},L){i&&$()("wp.blockEditor.RichText multiline prop",{since:"6.1",version:"6.3",alternative:"nested blocks (InnerBlocks)",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/nested-blocks-inner-blocks/"});const R=(0,p.useInstanceId)(e);C=C||R,N=function(e){const{__unstableMobileNoFocusOnMount:t,deleteEnter:n,placeholderTextColor:o,textAlign:r,selectionColor:l,tagsToEliminate:i,disableEditingMenu:a,fontSize:s,fontFamily:c,fontWeight:u,fontStyle:d,minWidth:p,maxWidth:m,setRef:f,disableSuggestions:g,disableAutocorrection:h,...b}=e;return b}(N);const A=(0,c.useRef)(),{clientId:D}=Ko(),{selectionStart:O,selectionEnd:z,isSelected:V}=(0,f.useSelect)((e=>{const{getSelectionStart:t,getSelectionEnd:n}=e(Go),o=t(),r=n();let i;return void 0===l?i=o.clientId===D&&r.clientId===D&&o.attributeKey===C:l&&(i=o.clientId===D),{selectionStart:i?o.offset:void 0,selectionEnd:i?r.offset:void 0,isSelected:i}})),{getSelectionStart:F,getSelectionEnd:H,getBlockRootClientId:U}=(0,f.useSelect)(Go),{selectionChange:j}=(0,f.useDispatch)(Go),W=VC(i),K=FC({allowedFormats:v,disableFormats:T}),q=!K||K.length>0;let Z=o,Y=r;Array.isArray(o)&&($()("wp.blockEditor.RichText value prop as children type",{since:"6.1",version:"6.3",alternative:"value prop as string",link:"https://developer.wordpress.org/block-editor/how-to-guides/block-tutorial/introducing-attributes-and-editable-fields/"}),Z=a.children.toHTML(o),Y=e=>r(a.children.fromDOM((0,G.__unstableCreateElement)(document,e).childNodes)));const X=(0,c.useCallback)(((e,t)=>{const n={},o=void 0===e&&void 0===t;if("number"==typeof e||o){if(void 0===t&&U(D)!==U(H().clientId))return;n.start={clientId:D,attributeKey:C,offset:e}}if("number"==typeof t||o){if(void 0===e&&U(D)!==U(F().clientId))return;n.end={clientId:D,attributeKey:C,offset:t}}j(n)}),[D,C]),{formatTypes:Q,prepareHandlers:J,valueHandlers:ee,changeHandlers:te,dependencies:ne}=function({clientId:e,identifier:t,withoutInteractiveFormatting:n,allowedFormats:o}){const r=(0,f.useSelect)(XC,[]),l=(0,c.useMemo)((()=>r.filter((({name:e,interactive:t,tagName:r})=>!(o&&!o.includes(e)||n&&(t||QC.has(r)))))),[r,o,n]),i=(0,f.useSelect)((n=>l.reduce(((o,r)=>r.__experimentalGetPropsForEditableTreePreparation?{...o,...JC(r.__experimentalGetPropsForEditableTreePreparation(n,{richTextIdentifier:t,blockClientId:e}),r.name)}:o),{})),[l,e,t]),a=(0,f.useDispatch)(),s=[],u=[],d=[],p=[];for(const e in i)p.push(i[e]);return l.forEach((n=>{if(n.__experimentalCreatePrepareEditableTree){const o=n.__experimentalCreatePrepareEditableTree(ex(i,n.name),{richTextIdentifier:t,blockClientId:e});n.__experimentalCreateOnChangeEditableValue?u.push(o):s.push(o)}if(n.__experimentalCreateOnChangeEditableValue){let o={};n.__experimentalGetPropsForEditableTreeChangeHandler&&(o=n.__experimentalGetPropsForEditableTreeChangeHandler(a,{richTextIdentifier:t,blockClientId:e}));const r=ex(i,n.name);d.push(n.__experimentalCreateOnChangeEditableValue({..."object"==typeof r?r:{},...o},{richTextIdentifier:t,blockClientId:e}))}})),{formatTypes:l,prepareHandlers:s,valueHandlers:u,changeHandlers:d,dependencies:p}}({clientId:D,identifier:C,withoutInteractiveFormatting:_,allowedFormats:K});function oe(e){return Q.forEach((t=>{t.__experimentalCreatePrepareEditableTree&&(e=(0,G.removeFormat)(e,t.name,0,e.text.length))})),e.formats}const{value:re,getValue:le,onChange:ie,ref:ae}=(0,G.__unstableUseRichText)({value:Z,onChange(e,{__unstableFormats:t,__unstableText:n}){Y(e),Object.values(te).forEach((e=>{e(t,n)}))},selectionStart:O,selectionEnd:z,onSelectionChange:X,placeholder:b,__unstableIsSelected:V,__unstableMultilineTag:W,__unstableDisableFormats:T,preserveWhiteSpace:x,__unstableDependencies:[...ne,n],__unstableAfterParse:function(e){return ee.reduce(((t,n)=>n(t,e.text)),e.formats)},__unstableBeforeSerialize:oe,__unstableAddInvisibleFormats:function(e){return J.reduce(((t,n)=>n(t,e.text)),e.formats)}}),se=function(e){return(0,m.__unstableUseAutocompleteProps)({...e,completers:_y(e)})}({onReplace:h,completers:g,record:re,onChange:ie});!function({html:e,value:t}){const n=(0,c.useRef)(),o=t.activeFormats&&!!t.activeFormats.length,{__unstableMarkLastChangeAsPersistent:r}=(0,f.useDispatch)(Go);(0,c.useLayoutEffect)((()=>{if(n.current){if(n.current!==t.text){const e=window.setTimeout((()=>{r()}),1e3);return n.current=t.text,()=>{window.clearTimeout(e)}}r()}else n.current=t.text}),[e,o])}({html:Z,value:re});const ce=(0,c.useRef)(new Set),ue=(0,c.useRef)(new Set);function de(){A.current?.focus()}const pe=n;return(0,c.createElement)(c.Fragment,null,V&&(0,c.createElement)(ux.Provider,{value:ce},(0,c.createElement)(dx.Provider,{value:ue},(0,c.createElement)(m.Popover.__unstableSlotNameProvider,{value:"__unstable-block-tools-after"},t&&t({value:re,onChange:ie,onFocus:de}),(0,c.createElement)(sx,{value:re,onChange:ie,onFocus:de,formatTypes:Q,forwardedRef:A})))),V&&q&&(0,c.createElement)(AC,{inline:s,editableContentElement:A.current,value:re}),(0,c.createElement)(pe,{role:"textbox","aria-multiline":!M,"aria-label":b,...N,...se,ref:(0,p.useMergeRefs)([L,se.ref,N.ref,ae,WC({value:re,onChange:ie}),qC({getValue:le,onChange:ie,__unstableAllowPrefixTransformations:P,formatTypes:Q,onReplace:h,selectionChange:j}),ox(),(0,p.useRefEffect)((e=>{function t(e){(yd.isKeyboardEvent.primary(e,"z")||yd.isKeyboardEvent.primary(e,"y")||yd.isKeyboardEvent.primaryShift(e,"z"))&&e.preventDefault()}return e.addEventListener("keydown",t),()=>{e.addEventListener("keydown",t)}}),[]),tx(ce),nx(ue),DC(),$C({isSelected:V,disableFormats:T,onChange:ie,value:re,formatTypes:Q,tagName:n,onReplace:h,onSplit:E,onSplitMiddle:S,__unstableEmbedURLOnPaste:I,multilineTag:W,preserveWhiteSpace:x,pastePlainText:B}),ZC({value:re,onMerge:y,onRemove:k}),YC({removeEditorOnlyFormats:oe,value:re,onReplace:h,onSplit:E,onSplitMiddle:S,multilineTag:W,onChange:ie,disableLineBreaks:M,onSplitAtEnd:w}),rx({value:re,onChange:ie}),A]),contentEditable:!0,suppressContentEditableWarning:!0,className:d()("block-editor-rich-text__editable",N.className,"rich-text"),tabIndex:0===N.tabIndex?null:N.tabIndex}))}));px.Content=cx,px.isEmpty=e=>!e||0===e.length;var mx=px;const fx=(0,c.forwardRef)(((e,t)=>(0,c.createElement)(mx,{ref:t,...e,__unstableDisableFormats:!0,preserveWhiteSpace:!0})));fx.Content=({value:e="",tagName:t="div",...n})=>(0,c.createElement)(t,{...n},e);var gx=fx;var hx=(0,c.forwardRef)((({__experimentalVersion:e,...t},n)=>{if(2===e)return(0,c.createElement)(gx,{ref:n,...t});const{className:o,onChange:r,...l}=t;return(0,c.createElement)(_a.Z,{ref:n,className:d()("block-editor-plain-text",o),onChange:e=>r(e.target.value),...l})}));function bx({property:e,viewport:t,desc:n}){const o=(0,p.useInstanceId)(bx),r=n||(0,v.sprintf)((0,v._x)("Controls the %1$s property for %2$s viewports.","Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size."),e,t.label);return(0,c.createElement)(c.Fragment,null,(0,c.createElement)("span",{"aria-describedby":`rbc-desc-${o}`},t.label),(0,c.createElement)(m.VisuallyHidden,{as:"span",id:`rbc-desc-${o}`},r))}var vx=function(e){const{title:t,property:n,toggleLabel:o,onIsResponsiveChange:r,renderDefaultControl:l,renderResponsiveControls:i,isResponsive:a=!1,defaultLabel:s={id:"all",label:(0,v.__)("All")},viewports:u=[{id:"small",label:(0,v.__)("Small screens")},{id:"medium",label:(0,v.__)("Medium screens")},{id:"large",label:(0,v.__)("Large screens")}]}=e;if(!t||!n||!l)return null;const p=o||(0,v.sprintf)((0,v.__)("Use the same %s on all screensizes."),n),f=(0,v.__)("Toggle between using the same value for all screen sizes or using a unique value per screen size."),g=l((0,c.createElement)(bx,{property:n,viewport:s}),s);return(0,c.createElement)("fieldset",{className:"block-editor-responsive-block-control"},(0,c.createElement)("legend",{className:"block-editor-responsive-block-control__title"},t),(0,c.createElement)("div",{className:"block-editor-responsive-block-control__inner"},(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,className:"block-editor-responsive-block-control__toggle",label:p,checked:!a,onChange:r,help:f}),(0,c.createElement)("div",{className:d()("block-editor-responsive-block-control__group",{"is-responsive":a})},!a&&g,a&&(i?i(u):u.map((e=>(0,c.createElement)(c.Fragment,{key:e.id},l((0,c.createElement)(bx,{property:n,viewport:e}),e))))))))};function _x({character:e,type:t,onUse:n}){const o=(0,c.useContext)(ux),r=(0,c.useRef)();return r.current=n,(0,c.useEffect)((()=>{function n(n){yd.isKeyboardEvent[t](n,e)&&(r.current(),n.preventDefault())}return o.current.add(n),()=>{o.current.delete(n)}}),[e,t]),null}function kx({name:e,shortcutType:t,shortcutCharacter:n,...o}){let r,l="RichText.ToolbarControls";return e&&(l+=`.${e}`),t&&n&&(r=yd.displayShortcut[t](n)),(0,c.createElement)(m.Fill,{name:l},(0,c.createElement)(m.ToolbarButton,{...o,shortcut:r}))}function yx({inputType:e,onInput:t}){const n=(0,c.useContext)(dx),o=(0,c.useRef)();return o.current=t,(0,c.useEffect)((()=>{function t(t){t.inputType===e&&(o.current(),t.preventDefault())}return n.current.add(t),()=>{n.current.delete(t)}}),[e]),null}const Ex=(0,c.createElement)(m.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,c.createElement)(m.Path,{d:"M9.4 20.5L5.2 3.8l14.6 9-2 .3c-.2 0-.4.1-.7.1-.9.2-1.6.3-2.2.5-.8.3-1.4.5-1.8.8-.4.3-.8.8-1.3 1.5-.4.5-.8 1.2-1.2 2l-.3.6-.9 1.9zM7.6 7.1l2.4 9.3c.2-.4.5-.8.7-1.1.6-.8 1.1-1.4 1.6-1.8.5-.4 1.3-.8 2.2-1.1l1.2-.3-8.1-5z"}));var wx=(0,c.forwardRef)((function(e,t){const n=(0,f.useSelect)((e=>e(Go).__unstableGetEditorMode()),[]),{__unstableSetEditorMode:o}=(0,f.useDispatch)(Go);return(0,c.createElement)(m.Dropdown,{renderToggle:({isOpen:o,onToggle:r})=>(0,c.createElement)(m.Button,{...e,ref:t,icon:"navigation"===n?Ex:QS,"aria-expanded":o,"aria-haspopup":"true",onClick:r,label:(0,v.__)("Tools")}),popoverProps:{placement:"bottom-start"},renderContent:()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.NavigableMenu,{role:"menu","aria-label":(0,v.__)("Tools")},(0,c.createElement)(m.MenuItemsChoice,{value:"navigation"===n?"navigation":"edit",onSelect:o,choices:[{value:"edit",label:(0,c.createElement)(c.Fragment,null,(0,c.createElement)(Xl,{icon:QS}),(0,v.__)("Edit"))},{value:"navigation",label:(0,c.createElement)(c.Fragment,null,Ex,(0,v.__)("Select"))}]})),(0,c.createElement)("div",{className:"block-editor-tool-selector__help"},(0,v.__)("Tools provide different interactions for selecting, navigating, and editing blocks. Toggle between select and edit by pressing Escape and Enter.")))})}));function Sx({units:e,...t}){const n=(0,m.__experimentalUseCustomUnits)({availableUnits:Xr("spacing.units")||["%","px","em","rem","vw"],units:e});return(0,c.createElement)(m.__experimentalUnitControl,{units:n,...t})}var Cx=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));class xx extends c.Component{constructor(){super(...arguments),this.toggle=this.toggle.bind(this),this.submitLink=this.submitLink.bind(this),this.state={expanded:!1}}toggle(){this.setState({expanded:!this.state.expanded})}submitLink(e){e.preventDefault(),this.toggle()}render(){const{url:e,onChange:t}=this.props,{expanded:n}=this.state,o=e?(0,v.__)("Edit link"):(0,v.__)("Insert link");return(0,c.createElement)("div",{className:"block-editor-url-input__button"},(0,c.createElement)(m.Button,{icon:fh,label:o,onClick:this.toggle,className:"components-toolbar__control",isPressed:!!e}),n&&(0,c.createElement)("form",{className:"block-editor-url-input__button-modal",onSubmit:this.submitLink},(0,c.createElement)("div",{className:"block-editor-url-input__button-modal-line"},(0,c.createElement)(m.Button,{className:"block-editor-url-input__back",icon:Cx,label:(0,v.__)("Close"),onClick:this.toggle}),(0,c.createElement)(CS,{__nextHasNoMarginBottom:!0,value:e||"",onChange:t}),(0,c.createElement)(m.Button,{icon:vC,label:(0,v.__)("Submit"),type:"submit"}))))}}var Bx=xx;const Ix="none",Tx="custom",Mx="media",Px="attachment",Nx=["noreferrer","noopener"],Lx=(0,c.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(m.Path,{d:"M0,0h24v24H0V0z",fill:"none"}),(0,c.createElement)(m.Path,{d:"m19 5v14h-14v-14h14m0-2h-14c-1.1 0-2 0.9-2 2v14c0 1.1 0.9 2 2 2h14c1.1 0 2-0.9 2-2v-14c0-1.1-0.9-2-2-2z"}),(0,c.createElement)(m.Path,{d:"m14.14 11.86l-3 3.87-2.14-2.59-3 3.86h12l-3.86-5.14z"})),Rx=({linkDestination:e,onChangeUrl:t,url:n,mediaType:o="image",mediaUrl:r,mediaLink:l,linkTarget:i,linkClass:a,rel:s})=>{const[u,d]=(0,c.useState)(!1),[p,f]=(0,c.useState)(null),[g,h]=(0,c.useState)(!1),[b,_]=(0,c.useState)(null),k=(0,c.useRef)(null),y=()=>{h(!1)},E=()=>{const e=[{linkDestination:Mx,title:(0,v.__)("Media File"),url:"image"===o?r:void 0,icon:Lx}];return"image"===o&&l&&e.push({linkDestination:Px,title:(0,v.__)("Attachment Page"),url:"image"===o?l:void 0,icon:(0,c.createElement)(m.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(m.Path,{d:"M0 0h24v24H0V0z",fill:"none"}),(0,c.createElement)(m.Path,{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}),e},w=(0,c.createElement)(m.__experimentalVStack,{spacing:"3"},(0,c.createElement)(m.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Open in new tab"),onChange:e=>{const n=(e=>{const t=e?"_blank":void 0;let n;if(t){const e=(null!=s?s:"").split(" ");Nx.forEach((t=>{e.includes(t)||e.push(t)})),n=e.join(" ")}else{const e=(null!=s?s:"").split(" ").filter((e=>!1===Nx.includes(e)));n=e.length?e.join(" "):void 0}return{linkTarget:t,rel:n}})(e);t(n)},checked:"_blank"===i}),(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Link rel"),value:null!=s?s:"",onChange:e=>{t({rel:e})}}),(0,c.createElement)(m.TextControl,{__nextHasNoMarginBottom:!0,label:(0,v.__)("Link CSS Class"),value:a||"",onChange:e=>{t({linkClass:e})}})),S=null!==b?b:n,C=(E().find((t=>t.linkDestination===e))||{}).title;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.ToolbarButton,{icon:fh,className:"components-toolbar__control",label:n?(0,v.__)("Edit link"):(0,v.__)("Insert link"),"aria-expanded":u,onClick:()=>{d(!0)},ref:f}),u&&(0,c.createElement)(EC,{anchor:p,onFocusOutside:e=>{const t=k.current;t&&t.contains(e.target)||(d(!1),_(null),y())},onClose:()=>{_(null),y(),d(!1)},renderSettings:()=>w,additionalControls:!S&&(0,c.createElement)(m.NavigableMenu,null,E().map((e=>(0,c.createElement)(m.MenuItem,{key:e.linkDestination,icon:e.icon,onClick:()=>{_(null),(e=>{const n=E();let o;o=e?(n.find((t=>t.url===e))||{linkDestination:Tx}).linkDestination:Ix,t({linkDestination:o,href:e})})(e.url),y()}},e.title))))},(!n||g)&&(0,c.createElement)(EC.LinkEditor,{className:"block-editor-format-toolbar__link-container-content",value:S,onChangeInputValue:_,onSubmit:e=>{if(b){const e=E().find((e=>e.url===b))?.linkDestination||Tx;t({href:b,linkDestination:e})}y(),_(null),e.preventDefault()},autocompleteRef:k}),n&&!g&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(EC.LinkViewer,{className:"block-editor-format-toolbar__link-container-content",url:n,onEditLinkClick:()=>{e!==Mx&&e!==Px||_(""),h(!0)},urlLabel:C}),(0,c.createElement)(m.Button,{icon:Cf,label:(0,v.__)("Remove link"),onClick:()=>{t({linkDestination:Ix,href:""})}}))))},{Fill:Ax,Slot:Dx}=(0,m.createSlotFill)("__unstableBlockToolbarLastItem");Ax.Slot=Dx;var Ox=Ax;var zx=(0,c.createContext)("");var Vx=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M15 4H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h6c.3 0 .5.2.5.5v12zm-4.5-.5h2V16h-2v1.5z"}));var Fx=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M17 4H7c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12zm-7.5-.5h4V16h-4v1.5z"}));var Hx=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}));function Gx({children:e,viewLabel:t,className:n,isEnabled:o=!0,deviceType:r,setDeviceType:l,label:i}){if((0,p.useViewportMatch)("small","<"))return null;const a={className:d()(n,"block-editor-post-preview__dropdown-content"),placement:"bottom-end"},s={className:"block-editor-post-preview__button-toggle",disabled:!o,children:t},u={"aria-label":(0,v.__)("View options")},f={mobile:Vx,tablet:Fx,desktop:Hx};return(0,c.createElement)(m.DropdownMenu,{className:"block-editor-post-preview__dropdown",popoverProps:a,toggleProps:s,menuProps:u,icon:f[r.toLowerCase()],label:i||(0,v.__)("Preview")},(()=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuGroup,null,(0,c.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>l("Desktop"),icon:"Desktop"===r&&Rv},(0,v.__)("Desktop")),(0,c.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>l("Tablet"),icon:"Tablet"===r&&Rv},(0,v.__)("Tablet")),(0,c.createElement)(m.MenuItem,{className:"block-editor-post-preview__button-resize",onClick:()=>l("Mobile"),icon:"Mobile"===r&&Rv},(0,v.__)("Mobile"))),e)))}function Ux(e){const[t,n]=(0,c.useState)(window.innerWidth);(0,c.useEffect)((()=>{if("Desktop"===e)return;const t=()=>n(window.innerWidth);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}}),[e]);const o=e=>{let n;switch(e){case"Tablet":n=780;break;case"Mobile":n=360;break;default:return null}return n<t?n:t};return(e=>{const t="Mobile"===e?"768px":"1024px",n=(window.innerHeight<800?36:72)+"px",r="auto";switch(e){case"Tablet":case"Mobile":return{width:o(e),marginTop:n,marginBottom:n,marginLeft:r,marginRight:r,height:t,borderRadius:"2px 2px 2px 2px",border:"1px solid #ddd",overflowY:"auto"};default:return null}})(e)}var $x=(0,f.withSelect)((e=>({selectedBlockClientId:e(Go).getBlockSelectionStart()})))((({selectedBlockClientId:e})=>{const t=Bd(e);return e?(0,c.createElement)(m.Button,{variant:"secondary",className:"block-editor-skip-to-selected-block",onClick:()=>{t.current.focus()}},(0,v.__)("Skip to the selected block")):null})),jx=window.wp.wordcount;var Wx=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));var Kx=(0,f.withSelect)((e=>{const{getMultiSelectedBlocks:t}=e(Go);return{blocks:t()}}))((function({blocks:e}){const t=(0,jx.count)((0,a.serialize)(e),"words");return(0,c.createElement)("div",{className:"block-editor-multi-selection-inspector__card"},(0,c.createElement)($d,{icon:Wx,showColors:!0}),(0,c.createElement)("div",{className:"block-editor-multi-selection-inspector__card-content"},(0,c.createElement)("div",{className:"block-editor-multi-selection-inspector__card-title"},(0,v.sprintf)((0,v._n)("%d Block","%d Blocks",e.length),e.length)),(0,c.createElement)("div",{className:"block-editor-multi-selection-inspector__card-description"},(0,v.sprintf)((0,v._n)("%d word selected.","%d words selected.",t),t))))}));function qx({blockName:e}){const{preferredStyle:t,onUpdatePreferredStyleVariations:n,styles:o}=(0,f.useSelect)((t=>{var n;const o=t(Go).getSettings().__experimentalPreferredStyleVariations;return{preferredStyle:o?.value?.[e],onUpdatePreferredStyleVariations:null!==(n=o?.onChange)&&void 0!==n?n:null,styles:t(a.store).getBlockStyles(e)}}),[e]),r=(0,c.useMemo)((()=>[{label:(0,v.__)("Not set"),value:""},...o.map((({label:e,name:t})=>({label:e,value:t})))]),[o]),l=(0,c.useMemo)((()=>QE(o)?.name),[o]),i=(0,c.useCallback)((t=>{n(e,t)}),[e,n]);return t&&t!==l?n&&(0,c.createElement)("div",{className:"default-style-picker__default-switcher"},(0,c.createElement)(m.SelectControl,{__nextHasNoMarginBottom:!0,options:r,value:t||"",label:(0,v.__)("Default Style"),onChange:i})):null}var Zx=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));var Yx=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));const Xx={name:"settings",title:(0,v.__)("Settings"),value:"settings",icon:Zx,className:"block-editor-block-inspector__tab-item"},Qx={name:"styles",title:(0,v.__)("Styles"),value:"styles",icon:Yx,className:"block-editor-block-inspector__tab-item"},Jx={name:"list",title:(0,v.__)("List View"),value:"list-view",icon:Ly,className:"block-editor-block-inspector__tab-item"};var eB=()=>{const e=(0,m.__experimentalUseSlotFills)(Ki.slotName);return Boolean(e&&e.length)?(0,c.createElement)(m.PanelBody,{className:"block-editor-block-inspector__advanced",title:(0,v.__)("Advanced"),initialOpen:!1},(0,c.createElement)(qi.Slot,{group:"advanced"})):null};const tB=()=>{const[e,t]=(0,c.useState)(),{multiSelectedBlocks:n}=(0,f.useSelect)((e=>{const{getBlocksByClientId:t,getSelectedBlockClientIds:n}=e(Go);return{multiSelectedBlocks:t(n())}}),[]);return(0,c.useLayoutEffect)((()=>{void 0===e&&t(n.some((({attributes:e})=>!!e?.style?.position?.type)))}),[e,n,t]),(0,c.createElement)(m.PanelBody,{className:"block-editor-block-inspector__position",title:(0,v.__)("Position"),initialOpen:null!=e&&e},(0,c.createElement)(qi.Slot,{group:"position"}))};var nB=()=>{const e=(0,m.__experimentalUseSlotFills)(Fi.position.Slot.__unstableName);return Boolean(e&&e.length)?(0,c.createElement)(tB,null):null};const oB="isInspectorControlsTabsHintVisible";function rB(){const e=(0,f.useSelect)((e=>{var t;return null===(t=e(xf.store).get("core",oB))||void 0===t||t}),[]),t=(0,c.useRef)(),{set:n}=(0,f.useDispatch)(xf.store);return e?(0,c.createElement)("div",{ref:t,className:"block-editor-inspector-controls-tabs__hint"},(0,c.createElement)("div",{className:"block-editor-inspector-controls-tabs__hint-content"},(0,v.__)("Looking for other block settings? They've moved to the styles tab.")),(0,c.createElement)(m.Button,{className:"block-editor-inspector-controls-tabs__hint-dismiss",icon:Cf,iconSize:"16",label:(0,v.__)("Dismiss hint"),onClick:()=>{const e=ea.focus.tabbable.findPrevious(t.current);e?.focus(),n("core",oB,!1)},showTooltip:!1})):null}var lB=({showAdvancedControls:e=!1})=>(0,c.createElement)(c.Fragment,null,(0,c.createElement)(qi.Slot,null),(0,c.createElement)(nB,null),e&&(0,c.createElement)("div",null,(0,c.createElement)(eB,null)),(0,c.createElement)(rB,null));var iB=({blockName:e,clientId:t,hasBlockStyles:n})=>(0,c.createElement)(c.Fragment,null,n&&(0,c.createElement)("div",null,(0,c.createElement)(m.PanelBody,{title:(0,v.__)("Styles")},(0,c.createElement)(ow,{clientId:t}),(0,a.hasBlockSupport)(e,"defaultStylePicker",!0)&&(0,c.createElement)(qx,{blockName:e}))),(0,c.createElement)(qi.Slot,{group:"color",label:(0,v.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,c.createElement)(qi.Slot,{group:"filter"}),(0,c.createElement)(qi.Slot,{group:"typography",label:(0,v.__)("Typography")}),(0,c.createElement)(qi.Slot,{group:"dimensions",label:(0,v.__)("Dimensions")}),(0,c.createElement)(qi.Slot,{group:"border",label:(0,v.__)("Border")}),(0,c.createElement)(qi.Slot,{group:"styles"}));const aB=["core/navigation"];var sB=e=>!aB.includes(e);function cB({blockName:e,clientId:t,hasBlockStyles:n,tabs:o}){const r=sB(e)?void 0:Jx.name;return(0,c.createElement)(m.TabPanel,{className:"block-editor-block-inspector__tabs",tabs:o,initialTabName:r,key:t},(o=>o.name===Xx.name?(0,c.createElement)(lB,{showAdvancedControls:!!e}):o.name===Qx.name?(0,c.createElement)(iB,{blockName:e,clientId:t,hasBlockStyles:n}):o.name===Jx.name?(0,c.createElement)(qi.Slot,{group:"list"}):void 0))}const uB=[];function dB(e){const t=[],{border:n,color:o,default:r,dimensions:l,list:i,position:a,styles:s,typography:c}=Fi,u=sB(e),d=(0,m.__experimentalUseSlotFills)(i.Slot.__unstableName),p=!u&&!!d&&d.length,g=[...(0,m.__experimentalUseSlotFills)(n.Slot.__unstableName)||[],...(0,m.__experimentalUseSlotFills)(o.Slot.__unstableName)||[],...(0,m.__experimentalUseSlotFills)(l.Slot.__unstableName)||[],...(0,m.__experimentalUseSlotFills)(s.Slot.__unstableName)||[],...(0,m.__experimentalUseSlotFills)(c.Slot.__unstableName)||[]].length,h=(0,m.__experimentalUseSlotFills)(Ki.slotName)||[],b=[...(0,m.__experimentalUseSlotFills)(r.Slot.__unstableName)||[],...(0,m.__experimentalUseSlotFills)(a.Slot.__unstableName)||[],...p&&g>1?h:[]];p&&t.push(Jx),b.length&&t.push(Xx),g&&t.push(Qx);const v=function(e,t={}){return void 0!==t[e]?t[e]:void 0===t.default||t.default}(e,(0,f.useSelect)((e=>e(Go).getSettings().blockInspectorTabs),[]));return v?t:uB}const{createPrivateSlotFill:pB}=Fo(m.privateApis),{Fill:mB,Slot:fB}=pB("BlockInformation"),gB=e=>qo()?(0,c.createElement)(mB,{...e}):null;gB.Slot=e=>(0,c.createElement)(fB,{...e});var hB=gB;function bB({clientIds:e}){return e.length?(0,c.createElement)(m.__experimentalVStack,{spacing:1},e.map((e=>(0,c.createElement)(vB,{key:e,clientId:e})))):null}function vB({clientId:e}){const{name:t,icon:n,isSelected:o}=(0,f.useSelect)((t=>{const{getBlockName:n,getBlockAttributes:o,isBlockSelected:r,hasSelectedInnerBlock:l}=t(Go),{getBlockType:i}=t(a.store),s=i(n(e)),c=o(e);return{name:s&&(0,a.__experimentalGetBlockLabel)(s,c,"list-view"),icon:s?.icon,isSelected:r(e)||l(e,!0)}}),[e]),{selectBlock:r}=(0,f.useDispatch)(Go);return(0,c.createElement)(m.Button,{isPressed:o,onClick:()=>r(e)},(0,c.createElement)(m.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)($d,{icon:n}),(0,c.createElement)(m.FlexItem,null,t)))}function _B({topLevelLockedBlock:e}){const t=(0,f.useSelect)((t=>{const{getClientIdsOfDescendants:n,getBlockName:o,getBlockEditingMode:r}=Fo(t(Go));return n([e]).filter((e=>"core/list-item"!==o(e)&&"contentOnly"===r(e)))}),[e]),n=Z_(e);return(0,c.createElement)("div",{className:"block-editor-block-inspector"},(0,c.createElement)(jd,{...n,className:n.isSynced&&"is-synced"}),(0,c.createElement)(Sw,{blockClientId:e}),(0,c.createElement)(hB.Slot,null),(0,c.createElement)(m.PanelBody,{title:(0,v.__)("Content")},(0,c.createElement)(bB,{clientIds:t})))}const kB=({animate:e,wrapper:t,children:n})=>e?t(n):n,yB=({blockInspectorAnimationSettings:e,selectedBlockClientId:t,children:n})=>{const o=e&&"leftToRight"===e.enterDirection?-50:50;return(0,c.createElement)(m.__unstableMotion.div,{animate:{x:0,opacity:1,transition:{ease:"easeInOut",duration:.14}},initial:{x:o,opacity:0},key:t},n)},EB=({clientId:e,blockName:t})=>{const n=dB(t),o=n?.length>1,r=(0,f.useSelect)((e=>{const{getBlockStyles:n}=e(a.store),o=n(t);return o&&o.length>0}),[t]),l=Z_(e);return(0,c.createElement)("div",{className:"block-editor-block-inspector"},(0,c.createElement)(jd,{...l,className:l.isSynced&&"is-synced"}),(0,c.createElement)(Sw,{blockClientId:e}),(0,c.createElement)(hB.Slot,null),o&&(0,c.createElement)(cB,{hasBlockStyles:r,clientId:e,blockName:t,tabs:n}),!o&&(0,c.createElement)(c.Fragment,null,r&&(0,c.createElement)("div",null,(0,c.createElement)(m.PanelBody,{title:(0,v.__)("Styles")},(0,c.createElement)(ow,{clientId:e}),(0,a.hasBlockSupport)(t,"defaultStylePicker",!0)&&(0,c.createElement)(qx,{blockName:t}))),(0,c.createElement)(qi.Slot,null),(0,c.createElement)(qi.Slot,{group:"list"}),(0,c.createElement)(qi.Slot,{group:"color",label:(0,v.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,c.createElement)(qi.Slot,{group:"typography",label:(0,v.__)("Typography")}),(0,c.createElement)(qi.Slot,{group:"dimensions",label:(0,v.__)("Dimensions")}),(0,c.createElement)(qi.Slot,{group:"border",label:(0,v.__)("Border")}),(0,c.createElement)(qi.Slot,{group:"styles"}),(0,c.createElement)(nB,null),(0,c.createElement)("div",null,(0,c.createElement)(eB,null))),(0,c.createElement)($x,{key:"back"}))};var wB=({showNoBlockSelectedMessage:e=!0})=>{const{count:t,selectedBlockName:n,selectedBlockClientId:o,blockType:r,topLevelLockedBlock:l}=(0,f.useSelect)((e=>{const{getSelectedBlockClientId:t,getSelectedBlockCount:n,getBlockName:o,__unstableGetContentLockingParent:r,getTemplateLock:l}=e(Go),i=t(),s=i&&o(i),c=s&&(0,a.getBlockType)(s);return{count:n(),selectedBlockClientId:i,selectedBlockName:s,blockType:c,topLevelLockedBlock:r(i)||("contentOnly"===l(i)?i:void 0)}}),[]),i=dB(r?.name),s=i?.length>1,u=function(e,t){return(0,f.useSelect)((t=>{if(e){const n=t(Go).getSettings().blockInspectorAnimation,o=n?.animationParent,{getSelectedBlockClientId:r,getBlockParentsByBlockName:l}=t(Go);return l(r(),o,!0)[0]||e.name===o?n?.[e.name]:null}return null}),[t,e])}(r,o);if(t>1)return(0,c.createElement)("div",{className:"block-editor-block-inspector"},(0,c.createElement)(Kx,null),s?(0,c.createElement)(cB,{tabs:i}):(0,c.createElement)(c.Fragment,null,(0,c.createElement)(qi.Slot,null),(0,c.createElement)(qi.Slot,{group:"color",label:(0,v.__)("Color"),className:"color-block-support-panel__inner-wrapper"}),(0,c.createElement)(qi.Slot,{group:"typography",label:(0,v.__)("Typography")}),(0,c.createElement)(qi.Slot,{group:"dimensions",label:(0,v.__)("Dimensions")}),(0,c.createElement)(qi.Slot,{group:"border",label:(0,v.__)("Border")}),(0,c.createElement)(qi.Slot,{group:"styles"})));const d=n===(0,a.getUnregisteredTypeHandlerName)();return r&&o&&!d?l?(0,c.createElement)(_B,{topLevelLockedBlock:l}):(0,c.createElement)(kB,{animate:u,wrapper:e=>(0,c.createElement)(yB,{blockInspectorAnimationSettings:u,selectedBlockClientId:o},e)},(0,c.createElement)(EB,{clientId:o,blockName:r.name})):e?(0,c.createElement)("span",{className:"block-editor-block-inspector__no-blocks"},(0,v.__)("No block selected.")):null};var SB=function({clientIds:e,hideDragHandle:t}){const{canMove:n,rootClientId:o,isFirst:r,isLast:l,orientation:i}=(0,f.useSelect)((t=>{const{getBlockIndex:n,getBlockListSettings:o,canMoveBlocks:r,getBlockOrder:l,getBlockRootClientId:i}=t(Go),a=Array.isArray(e)?e:[e],s=a[0],c=i(s),u=n(s),d=n(a[a.length-1]),p=l(c);return{canMove:r(e,c),rootClientId:c,isFirst:0===u,isLast:d===p.length-1,orientation:o(c)?.orientation}}),[e]);if(!n||r&&l&&!o)return null;const a=(0,v.__)("Drag");return(0,c.createElement)(m.ToolbarGroup,{className:d()("block-editor-block-mover",{"is-horizontal":"horizontal"===i})},!t&&(0,c.createElement)(tE,{clientIds:e},(e=>(0,c.createElement)(m.Button,{icon:Bm,className:"block-editor-block-mover__drag-handle","aria-hidden":"true",label:a,tabIndex:"-1",...e}))),(0,c.createElement)("div",{className:"block-editor-block-mover__move-button-container"},(0,c.createElement)(m.ToolbarItem,null,(t=>(0,c.createElement)(qy,{clientIds:e,...t}))),(0,c.createElement)(m.ToolbarItem,null,(t=>(0,c.createElement)(Zy,{clientIds:e,...t})))))};var CB=function({clientIds:e,...t}){return(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(m.ToolbarItem,null,(n=>(0,c.createElement)(jE,{clientIds:e,toggleProps:n,...t}))))};function xB(){const{selectBlock:e,toggleBlockHighlight:t}=(0,f.useDispatch)(Go),{firstParentClientId:n,isVisible:o,isDistractionFree:r}=(0,f.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientId:o,getSettings:r,getBlockEditingMode:l}=Fo(e(Go)),{hasBlockSupport:i}=e(a.store),s=n(o()),c=s[s.length-1],u=t(c),d=(0,a.getBlockType)(u),p=r();return{firstParentClientId:c,isVisible:c&&"default"===l(c)&&i(d,"__experimentalParentSelector",!0),isDistractionFree:p.isDistractionFree}}),[]),l=Z_(n),i=(0,c.useRef)(),{gestures:s}=HE({ref:i,onChange(e){e&&r||t(n,e)}});return o?(0,c.createElement)("div",{className:"block-editor-block-parent-selector",key:n,ref:i,...s},(0,c.createElement)(m.ToolbarButton,{className:"block-editor-block-parent-selector__button",onClick:()=>e(n),label:(0,v.sprintf)((0,v.__)("Select %s"),l?.title),showTooltip:!0,icon:(0,c.createElement)($d,{icon:l?.icon})})):null}function BB({blocks:e}){return(0,c.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,c.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,c.createElement)(m.Popover,{className:"block-editor-block-switcher__preview__popover",placement:"bottom-start",focusOnMount:!1},(0,c.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,c.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,v.__)("Preview")),(0,c.createElement)(Em,{viewportWidth:500,blocks:e})))))}const IB={};function TB({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:l}=e;return(0,c.createElement)(m.MenuItem,{className:(0,a.getBlockMenuDefaultClassName)(o),onClick:e=>{e.preventDefault(),t(o)},onMouseLeave:()=>n(null),onMouseEnter:()=>n(o)},(0,c.createElement)($d,{icon:r,showColors:!0}),l)}var MB=({transformations:e,onSelect:t,blocks:n})=>{const[o,r]=(0,c.useState)();return(0,c.createElement)(c.Fragment,null,o&&(0,c.createElement)(BB,{blocks:(0,a.cloneBlock)(n[0],e.find((({name:e})=>e===o)).attributes)}),e?.map((e=>(0,c.createElement)(TB,{key:e.name,item:e,onSelect:t,setHoveredTransformItemName:r}))))};function PB({restTransformations:e,onSelect:t,setHoveredTransformItemName:n}){return e.map((e=>(0,c.createElement)(NB,{key:e.name,item:e,onSelect:t,setHoveredTransformItemName:n})))}function NB({item:e,onSelect:t,setHoveredTransformItemName:n}){const{name:o,icon:r,title:l,isDisabled:i}=e;return(0,c.createElement)(m.MenuItem,{className:(0,a.getBlockMenuDefaultClassName)(o),onClick:e=>{e.preventDefault(),t(o)},disabled:i,onMouseLeave:()=>n(null),onMouseEnter:()=>n(o)},(0,c.createElement)($d,{icon:r,showColors:!0}),l)}var LB=({className:e,possibleBlockTransformations:t,possibleBlockVariationTransformations:n,onSelect:o,onSelectVariation:r,blocks:l})=>{const[i,s]=(0,c.useState)(),{priorityTextTransformations:u,restTransformations:d}=function(e){const t={"core/paragraph":1,"core/heading":2,"core/list":3,"core/quote":4},n=(0,c.useMemo)((()=>{const n=Object.keys(t);return e.reduce(((e,t)=>{const{name:o}=t;return n.includes(o)?e.priorityTextTransformations.push(t):e.restTransformations.push(t),e}),{priorityTextTransformations:[],restTransformations:[]})}),[e]);return n.priorityTextTransformations.sort((({name:e},{name:n})=>t[e]<t[n]?-1:1)),n}(t),p=u.length&&d.length,f=!!d.length&&(0,c.createElement)(PB,{restTransformations:d,onSelect:o,setHoveredTransformItemName:s});return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.MenuGroup,{label:(0,v.__)("Transform to"),className:e},i&&(0,c.createElement)(BB,{blocks:(0,a.switchToBlockType)(l,i)}),!!n?.length&&(0,c.createElement)(MB,{transformations:n,blocks:l,onSelect:r}),u.map((e=>(0,c.createElement)(NB,{key:e.name,item:e,onSelect:o,setHoveredTransformItemName:s}))),!p&&f),!!p&&(0,c.createElement)(m.MenuGroup,{className:e},f))};const RB=()=>{};function AB({clientId:e,onSwitch:t=RB}){const{onSelect:n,stylesToRender:o,activeStyle:r}=ew({clientId:e,onSwitch:t});return o&&0!==o.length?(0,c.createElement)(c.Fragment,null,o.map((e=>{const t=e.label||e.name;return(0,c.createElement)(m.MenuItem,{key:e.name,icon:r.name===e.name?Rv:null,onClick:()=>n(e)},(0,c.createElement)(m.__experimentalText,{as:"span",limit:18,ellipsizeMode:"tail",truncate:!0},t))}))):null}function DB({hoveredBlock:e,onSwitch:t}){const{clientId:n}=e;return(0,c.createElement)(m.MenuGroup,{label:(0,v.__)("Styles"),className:"block-editor-block-switcher__styles__menugroup"},(0,c.createElement)(AB,{clientId:n,onSwitch:t}))}const OB=(e,t,n=new Set)=>{const{clientId:o,name:r,innerBlocks:l=[]}=e;if(!n.has(o)){if(r===t)return e;for(const e of l){const o=OB(e,t,n);if(o)return o}}},zB=(e,t)=>{const n=((e,t)=>{const n=(0,a.__experimentalGetBlockAttributesNamesByRole)(e,"content");return n?.length?n.reduce(((e,n)=>(t[n]&&(e[n]=t[n]),e)),{}):t})(t.name,t.attributes);e.attributes={...e.attributes,...n}};var VB=(e,t)=>(0,c.useMemo)((()=>e.reduce(((e,n)=>{const o=((e,t)=>{const n=t.map((e=>(0,a.cloneBlock)(e))),o=new Set;for(const t of e){let e=!1;for(const r of n){const n=OB(r,t.name,o);if(n){e=!0,o.add(n.clientId),zB(n,t);break}}if(!e)return}return n})(t,n.blocks);return o&&e.push({...n,transformedBlocks:o}),e}),[])),[e,t]);function FB({patterns:e,onSelect:t}){return(0,c.createElement)("div",{className:"block-editor-block-switcher__popover__preview__parent"},(0,c.createElement)("div",{className:"block-editor-block-switcher__popover__preview__container"},(0,c.createElement)(m.Popover,{className:"block-editor-block-switcher__preview__popover",position:"bottom right"},(0,c.createElement)("div",{className:"block-editor-block-switcher__preview"},(0,c.createElement)("div",{className:"block-editor-block-switcher__preview-title"},(0,v.__)("Preview")),(0,c.createElement)(HB,{patterns:e,onSelect:t})))))}function HB({patterns:e,onSelect:t}){const n=(0,m.__unstableUseCompositeState)();return(0,c.createElement)(m.__unstableComposite,{...n,role:"listbox",className:"block-editor-block-switcher__preview-patterns-container","aria-label":(0,v.__)("Patterns list")},e.map((e=>(0,c.createElement)(GB,{key:e.name,pattern:e,onSelect:t,composite:n}))))}function GB({pattern:e,onSelect:t,composite:n}){const o="block-editor-block-switcher__preview-patterns-container",r=(0,p.useInstanceId)(GB,`${o}-list__item-description`);return(0,c.createElement)("div",{className:`${o}-list__list-item`},(0,c.createElement)(m.__unstableCompositeItem,{role:"option",as:"div",...n,"aria-label":e.title,"aria-describedby":e.description?r:void 0,className:`${o}-list__item`,onClick:()=>t(e.transformedBlocks)},(0,c.createElement)(Em,{blocks:e.transformedBlocks,viewportWidth:e.viewportWidth||500}),(0,c.createElement)("div",{className:`${o}-list__item-title`},e.title)),!!e.description&&(0,c.createElement)(m.VisuallyHidden,{id:r},e.description))}var UB=function({blocks:e,patterns:t,onSelect:n}){const[o,r]=(0,c.useState)(!1),l=VB(t,e);return l.length?(0,c.createElement)(m.MenuGroup,{className:"block-editor-block-switcher__pattern__transforms__menugroup"},o&&(0,c.createElement)(FB,{patterns:l,onSelect:n}),(0,c.createElement)(m.MenuItem,{onClick:e=>{e.preventDefault(),r(!o)},icon:Hd},(0,v.__)("Patterns"))):null};const $B=({clientIds:e,blocks:t})=>{const{replaceBlocks:n,multiSelect:o,updateBlockAttributes:r}=(0,f.useDispatch)(Go),l=Z_(t[0].clientId),{possibleBlockTransformations:i,canRemove:s,hasBlockStyles:u,icon:d,patterns:p}=(0,f.useSelect)((n=>{const{getBlockRootClientId:o,getBlockTransformItems:r,__experimentalGetPatternTransformItems:i,canRemoveBlocks:s}=n(Go),{getBlockStyles:c,getBlockType:u}=n(a.store),d=o(Array.isArray(e)?e[0]:e),[{name:p}]=t,m=1===t.length,f=m&&c(p);let g;if(m)g=l?.icon;else{g=1===new Set(t.map((({name:e})=>e))).size?u(p)?.icon:Wx}return{possibleBlockTransformations:r(t,d),canRemove:s(e,d),hasBlockStyles:!!f?.length,icon:g,patterns:i(t,d)}}),[e,t,l?.icon]),g=function({clientIds:e,blocks:t}){const{activeBlockVariation:n,blockVariationTransformations:o}=(0,f.useSelect)((n=>{const{getBlockRootClientId:o,getBlockAttributes:r,canRemoveBlocks:l}=n(Go),{getActiveBlockVariation:i,getBlockVariations:s}=n(a.store),c=o(Array.isArray(e)?e[0]:e),u=l(e,c);if(1!==t.length||!u)return IB;const[d]=t;return{blockVariationTransformations:s(d.name,"transform"),activeBlockVariation:i(d.name,r(d.clientId))}}),[e,t]);return(0,c.useMemo)((()=>o?.filter((({name:e})=>e!==n?.name))),[o,n])}({clientIds:e,blocks:t}),h=xy({clientId:Array.isArray(e)?e[0]:e,maximumLength:35}),b=1===t.length&&(0,a.isReusableBlock)(t[0]),_=1===t.length&&(0,a.isTemplatePart)(t[0]);function k(e){e.length>1&&o(e[0].clientId,e[e.length-1].clientId)}const y=!!i.length&&s&&!_,E=!!g?.length,w=!!p?.length&&s;if(!u&&!y&&!E)return(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(m.ToolbarButton,{disabled:!0,className:"block-editor-block-switcher__no-switcher-icon",title:h,icon:(0,c.createElement)(c.Fragment,null,(0,c.createElement)($d,{icon:d,showColors:!0}),(b||_)&&(0,c.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},h))}));const S=h,C=1===t.length?(0,v.sprintf)((0,v.__)("%s: Change block type or style"),h):(0,v.sprintf)((0,v._n)("Change type of %d block","Change type of %d blocks",t.length),t.length),x=y||E,B=u||x||w;return(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(m.ToolbarItem,null,(o=>(0,c.createElement)(m.DropdownMenu,{className:"block-editor-block-switcher",label:S,popoverProps:{placement:"bottom-start",className:"block-editor-block-switcher__popover"},icon:(0,c.createElement)(c.Fragment,null,(0,c.createElement)($d,{icon:d,className:"block-editor-block-switcher__toggle",showColors:!0}),(b||_)&&(0,c.createElement)("span",{className:"block-editor-block-switcher__toggle-text"},h)),toggleProps:{describedBy:C,...o},menuProps:{orientation:"both"}},(({onClose:o})=>B&&(0,c.createElement)("div",{className:"block-editor-block-switcher__container"},w&&(0,c.createElement)(UB,{blocks:t,patterns:p,onSelect:t=>{!function(t){n(e,t),k(t)}(t),o()}}),x&&(0,c.createElement)(LB,{className:"block-editor-block-switcher__transforms__menugroup",possibleBlockTransformations:i,possibleBlockVariationTransformations:g,blocks:t,onSelect:r=>{!function(o){const r=(0,a.switchToBlockType)(t,o);n(e,r),k(r)}(r),o()},onSelectVariation:e=>{!function(e){r(t[0].clientId,{...g.find((({name:t})=>t===e)).attributes})}(e),o()}}),u&&(0,c.createElement)(DB,{hoveredBlock:t[0],onSwitch:o})))))))};var jB=({clientIds:e})=>{const t=(0,f.useSelect)((t=>t(Go).getBlocksByClientId(e)),[e]);return!t.length||t.some((e=>!e))?null:(0,c.createElement)($B,{clientIds:e,blocks:t})};function WB({clientId:e,wrapperRef:t}){const{canEdit:n,canMove:o,canRemove:r,canLock:l}=_k(e),[i,a]=(0,c.useReducer)((e=>!e),!1),s=(0,c.useRef)(null),u=(0,c.useRef)(!0),d=!l||n&&o&&r;return(0,c.useEffect)((()=>{u.current?u.current=!1:!i&&d&&ea.focus.focusable.find(t.current,{sequential:!1}).find((e=>"BUTTON"===e.tagName&&e!==s.current))?.focus()}),[i,d,t]),d?null:(0,c.createElement)(c.Fragment,null,(0,c.createElement)(m.ToolbarGroup,{className:"block-editor-block-lock-toolbar"},(0,c.createElement)(m.ToolbarButton,{icon:Ek,label:(0,v.__)("Unlock"),onClick:a,ref:s})),i&&(0,c.createElement)(Ck,{clientId:e,onClose:a}))}var KB=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));var qB=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"}));var ZB=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"}));const YB={group:{type:"constrained"},row:{type:"flex",flexWrap:"nowrap"},stack:{type:"flex",orientation:"vertical"}};var XB=function(){const{blocksSelection:e,clientIds:t,groupingBlockName:n,isGroupable:o}=bk(),{replaceBlocks:r}=(0,f.useDispatch)(Go),{canRemove:l,variations:i}=(0,f.useSelect)((e=>{const{canRemoveBlocks:o}=e(Go),{getBlockVariations:r}=e(a.store);return{canRemove:o(t),variations:r(n,"transform")}}),[t,n]),s=o=>{const l=(0,a.switchToBlockType)(e,n);"string"!=typeof o&&(o="group"),l&&l.length>0&&(l[0].attributes.layout=YB[o],r(t,l))};if(!o||!l)return null;const u=!!i.find((({name:e})=>"group-row"===e)),d=!!i.find((({name:e})=>"group-stack"===e));return(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(m.ToolbarButton,{icon:KB,label:(0,v._x)("Group","verb"),onClick:s}),u&&(0,c.createElement)(m.ToolbarButton,{icon:qB,label:(0,v._x)("Row","single horizontal line"),onClick:()=>s("row")}),d&&(0,c.createElement)(m.ToolbarButton,{icon:ZB,label:(0,v._x)("Stack","verb"),onClick:()=>s("stack")}))};function QB({clientIds:e}){const t=1===e.length?e[0]:void 0,n=(0,f.useSelect)((e=>!!t&&"html"===e(Go).getBlockMode(t)),[t]),{toggleBlockMode:o}=(0,f.useDispatch)(Go);return n?(0,c.createElement)(m.ToolbarGroup,null,(0,c.createElement)(m.ToolbarButton,{onClick:()=>{o(t)}},(0,v.__)("Edit visually"))):null}var JB=({hideDragHandle:e})=>{const{blockClientIds:t,blockClientId:n,blockType:o,hasFixedToolbar:r,isDistractionFree:l,isValid:i,isVisual:s,blockEditingMode:u}=(0,f.useSelect)((e=>{const{getBlockName:t,getBlockMode:n,getSelectedBlockClientIds:o,isBlockValid:r,getBlockRootClientId:l,getSettings:i,getBlockEditingMode:s}=Fo(e(Go)),c=o(),u=c[0],d=l(u),p=i();return{blockClientIds:c,blockClientId:u,blockType:u&&(0,a.getBlockType)(t(u)),hasFixedToolbar:p.hasFixedToolbar,isDistractionFree:p.isDistractionFree,rootClientId:d,isValid:c.every((e=>r(e))),isVisual:c.every((e=>"visual"===n(e))),blockEditingMode:s(u)}}),[]),g=(0,c.useRef)(null),{toggleBlockHighlight:h}=(0,f.useDispatch)(Go),b=(0,c.useRef)(),{showMovers:v,gestures:_}=HE({ref:b,onChange(e){e&&l||h(n,e)}}),k=(0,p.useViewportMatch)("medium","<")||r,y=!(0,p.useViewportMatch)("medium","<");if(o&&!(0,a.hasBlockSupport)(o,"__experimentalToolbar",!0))return null;const E=k||v;if(0===t.length)return null;const w=i&&s,S=t.length>1,C=(0,a.isReusableBlock)(o)||(0,a.isTemplatePart)(o),x=d()("block-editor-block-toolbar",{"is-showing-movers":E,"is-synced":C});return(0,c.createElement)("div",{className:x,ref:g},!S&&y&&"default"===u&&(0,c.createElement)(xB,null),(w||S)&&"default"===u&&(0,c.createElement)("div",{ref:b,..._},(0,c.createElement)(m.ToolbarGroup,{className:"block-editor-block-toolbar__block-controls"},(0,c.createElement)(jB,{clientIds:t}),!S&&(0,c.createElement)(WB,{clientId:t[0],wrapperRef:g}),(0,c.createElement)(SB,{clientIds:t,hideDragHandle:e}))),w&&S&&(0,c.createElement)(XB,null),w&&(0,c.createElement)(c.Fragment,null,(0,c.createElement)(er.Slot,{group:"parent",className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(er.Slot,{group:"block",className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(er.Slot,{className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(er.Slot,{group:"inline",className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(er.Slot,{group:"other",className:"block-editor-block-toolbar__slot"}),(0,c.createElement)(zx.Provider,{value:o?.name},(0,c.createElement)(Ox.Slot,null))),(0,c.createElement)(QB,{clientIds:t}),"default"===u&&(0,c.createElement)(CB,{clientIds:t}))};var eI=function({clientId:e,rootClientId:t}){const n=Z_(e),o=(0,f.useSelect)((n=>{const{getBlock:o,getBlockIndex:r,hasBlockMovingClientId:l,getBlockListSettings:i,__unstableGetEditorMode:a}=n(Go),s=r(e),{name:c,attributes:u}=o(e);return{index:s,name:c,attributes:u,blockMovingMode:l(),orientation:i(t)?.orientation,editorMode:a()}}),[e,t]),{index:r,name:l,attributes:i,blockMovingMode:s,orientation:u,editorMode:p}=o,{setNavigationMode:g,removeBlock:h}=(0,f.useDispatch)(Go),b=(0,c.useRef)(),_=(0,a.getBlockType)(l),k=(0,a.__experimentalGetAccessibleBlockLabel)(_,i,r+1,u);(0,c.useEffect)((()=>{b.current.focus(),(0,Cn.speak)(k)}),[k]);const y=Id(e),{hasBlockMovingClientId:E,getBlockIndex:w,getBlockRootClientId:S,getClientIdsOfDescendants:C,getSelectedBlockClientId:x,getMultiSelectedBlocksEndClientId:B,getPreviousBlockClientId:I,getNextBlockClientId:T}=(0,f.useSelect)(Go),{selectBlock:M,clearSelectedBlock:P,setBlockMovingClientId:N,moveBlockToPosition:L}=(0,f.useDispatch)(Go),R=d()("block-editor-block-list__block-selection-button",{"is-block-moving-mode":!!s}),A=(0,v.__)("Drag");return(0,c.createElement)("div",{className:R},(0,c.createElement)(m.Flex,{justify:"center",className:"block-editor-block-list__block-selection-button__content"},(0,c.createElement)(m.FlexItem,null,(0,c.createElement)($d,{icon:n?.icon,showColors:!0})),(0,c.createElement)(m.FlexItem,null,"zoom-out"===p&&(0,c.createElement)(SB,{clientIds:[e],hideDragHandle:!0}),"navigation"===p&&(0,c.createElement)(tE,{clientIds:[e]},(e=>(0,c.createElement)(m.Button,{icon:Bm,className:"block-selection-button_drag-handle","aria-hidden":"true",label:A,tabIndex:"-1",...e})))),(0,c.createElement)(m.FlexItem,null,(0,c.createElement)(m.Button,{ref:b,onClick:"navigation"===p?()=>g(!1):void 0,onKeyDown:function(t){const{keyCode:n}=t,o=n===yd.UP,r=n===yd.DOWN,l=n===yd.LEFT,i=n===yd.RIGHT,a=n===yd.TAB,s=n===yd.ESCAPE,c=n===yd.ENTER,u=n===yd.SPACE,d=t.shiftKey;if(n===yd.BACKSPACE||n===yd.DELETE)return h(e),void t.preventDefault();const p=x(),m=B(),f=I(m||p),g=T(m||p),b=a&&d||o,v=a&&!d||r,_=l,k=i;let R;if(b)R=f;else if(v)R=g;else if(_){var A;R=null!==(A=S(p))&&void 0!==A?A:p}else if(k){var D;R=null!==(D=C([p])[0])&&void 0!==D?D:p}const O=E();if(s&&O&&!t.defaultPrevented&&(N(null),t.preventDefault()),(c||u)&&O){const e=S(O),t=S(p),n=w(O);let o=w(p);n<o&&e===t&&(o-=1),L(O,e,t,o),M(O),N(null)}if(v||b||_||k)if(R)t.preventDefault(),M(R);else if(a&&p){let e;if(v){e=y;do{e=ea.focus.tabbable.findNext(e)}while(e&&y.contains(e));e||(e=y.ownerDocument.defaultView.frameElement,e=ea.focus.tabbable.findNext(e))}else e=ea.focus.tabbable.findPrevious(y);e&&(t.preventDefault(),e.focus(),P())}},label:k,showTooltip:!1,className:"block-selection-button_select-button"},(0,c.createElement)(By,{clientId:e,maximumLength:35})))))};var tI=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}));var nI=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"}));function oI(e="default"){const t=g[e]?.Slot,n=(0,m.__experimentalUseSlotFills)(t?.__unstableName);return t?!!n?.length:("undefined"!=typeof process&&process.env,null)}var rI=function({focusOnMount:e,isFixed:t,...n}){const[o,r]=(0,c.useState)(!1),l=(0,c.useRef)(),i=(0,p.useViewportMatch)("medium"),{blockType:s,blockEditingMode:u,hasParents:h,showParentSelector:b,selectedBlockClientId:_}=(0,f.useSelect)((e=>{const{getBlockName:t,getBlockParents:n,getSelectedBlockClientIds:o,getBlockEditingMode:r}=Fo(e(Go)),{getBlockType:l}=e(a.store),i=o(),s=i[0],c=n(s),u=c[c.length-1],d=l(t(u));return{selectedBlockClientId:s,blockType:s&&l(t(s)),blockEditingMode:r(s),hasParents:c.length,showParentSelector:d&&"default"===r(u)&&(0,a.hasBlockSupport)(d,"__experimentalParentSelector",!0)&&i.length<=1&&"default"===r(s)}}),[]);(0,c.useEffect)((()=>{r(!1)}),[_]);const k=(0,p.useViewportMatch)("large",">="),y=document.body.classList.contains("is-fullscreen-mode");(0,c.useLayoutEffect)((()=>{if(!t||!s)return;const e=document.querySelector(".block-editor-block-contextual-toolbar");if(!e)return;if(!k)return void(e.style={});if(o)return void(e.style.width="auto");const n=document.querySelector(".edit-post-header__settings"),r=document.querySelector(".edit-site-header-edit-mode__end"),l=window.getComputedStyle(e),i=!!n&&window.getComputedStyle(n),a=!!r&&window.getComputedStyle(r),c=parseFloat(l.marginLeft),u=i?parseFloat(i.width)+10:0,d=a?parseFloat(a.width):0;e.style.width=`calc(100% - ${d+u+c+(y?0:160)}px)`}),[t,k,o,y,s]);const E=!s||(0,a.hasBlockSupport)(s,"__experimentalToolbar",!0),w=function(){let e=!1;for(const t in g)oI(t)&&(e=!0);return e}();if(!E||"default"!==u&&!w)return null;const S=d()("block-editor-block-contextual-toolbar",{"has-parent":h&&b,"is-fixed":t,"is-collapsed":o});return(0,c.createElement)(NC,{focusOnMount:e,className:S,"aria-label":(0,v.__)("Block tools"),...n},!o&&(0,c.createElement)(JB,{hideDragHandle:t}),t&&i&&s&&(0,c.createElement)(m.ToolbarGroup,{className:o?"block-editor-block-toolbar__group-expand-fixed-toolbar":"block-editor-block-toolbar__group-collapse-fixed-toolbar"},(0,c.createElement)(m.ToolbarItem,{as:m.ToolbarButton,ref:l,icon:o?tI:nI,onClick:()=>{r((e=>!e)),l.current.focus()},label:o?(0,v.__)("Show block tools"):(0,v.__)("Hide block tools")})))};const lI={placement:"top-start"},iI={...lI,flip:!1,shift:!0},aI={...lI,flip:!0,shift:!1};function sI(e,t,n,o,r){if(!e||!t)return iI;const l=n?.scrollTop||0,i=t.getBoundingClientRect(),a=l+e.getBoundingClientRect().top,s=e.ownerDocument.documentElement.clientHeight,c=a+o,u=i.top>c,d=i.height>s-o;return r||!u&&!d?aI:iI}function cI(){const e=(0,p.useViewportMatch)("medium"),{shouldShowContextualToolbar:t,canFocusHiddenToolbar:n,fixedToolbarCanBeFocused:o}=(0,f.useSelect)((t=>{const{__unstableGetEditorMode:n,isMultiSelecting:o,isTyping:r,isBlockInterfaceHidden:l,getBlock:i,getSettings:s,isNavigationMode:c,getSelectedBlockClientId:u,getFirstMultiSelectedBlockClientId:d}=Fo(t(Go)),p="edit"===n(),m=s().hasFixedToolbar,f=s().isDistractionFree,g=d()||u(),h=!!g,b=(0,a.isUnmodifiedDefaultBlock)(i(g)||{}),v=p&&!m&&(!f||c())&&e&&!o()&&!r()&&h&&!b&&!l();return{shouldShowContextualToolbar:v,canFocusHiddenToolbar:p&&h&&!v&&!m&&!f&&!b,fixedToolbarCanBeFocused:(m||!e)&&g}}),[e]);return{shouldShowContextualToolbar:t,canFocusHiddenToolbar:n,fixedToolbarCanBeFocused:o}}function uI(e){const{__unstableGetEditorMode:t,hasMultiSelection:n,isTyping:o,getLastMultiSelectedBlockClientId:r}=e(Go);return{editorMode:t(),hasMultiSelection:n(),isTyping:o(),lastClientId:n()?r():null}}function dI({clientId:e,rootClientId:t,isEmptyDefaultBlock:n,capturingClientId:o,__unstablePopoverSlot:r,__unstableContentRef:l}){const{editorMode:i,hasMultiSelection:a,isTyping:s,lastClientId:u}=(0,f.useSelect)(uI,[]),m=(0,f.useSelect)((t=>{const{isBlockInsertionPointVisible:n,getBlockInsertionPoint:o,getBlockOrder:r}=t(Go);if(!n())return!1;const l=o();return r(l.rootClientId)[l.index]===e}),[e]),g=(0,c.useRef)(!1),{shouldShowContextualToolbar:h,canFocusHiddenToolbar:b}=cI(),{stopTyping:v}=(0,f.useDispatch)(Go),_=!s&&"edit"===i&&n,k=!a&&("navigation"===i||"zoom-out"===i);(0,op.useShortcut)("core/block-editor/focus-toolbar",(()=>{g.current=!0,v(!0)}),{isDisabled:!b}),(0,c.useEffect)((()=>{g.current=!1}));const y=(0,c.useRef)();(0,c.useEffect)((()=>{y.current=void 0}),[e]);const E=function({contentElement:e,clientId:t}){const n=Id(t),[o,r]=(0,c.useState)(0),{blockIndex:l,isSticky:i}=(0,f.useSelect)((e=>{const{getBlockIndex:n,getBlockAttributes:o}=e(Go);return{blockIndex:n(t),isSticky:rk(o(t))}}),[t]),a=(0,c.useMemo)((()=>{if(e)return(0,ea.getScrollContainer)(e)}),[e]),[s,u]=(0,c.useState)((()=>sI(e,n,a,o,i))),d=(0,p.useRefEffect)((e=>{r(e.offsetHeight)}),[]),m=(0,c.useCallback)((()=>u(sI(e,n,a,o,i))),[e,n,a,o]);return(0,c.useLayoutEffect)(m,[l,m]),(0,c.useLayoutEffect)((()=>{if(!e||!n)return;const t=e?.ownerDocument?.defaultView;let o;t?.addEventHandler?.("resize",m);const r=n?.ownerDocument?.defaultView;return r.ResizeObserver&&(o=new r.ResizeObserver(m),o.observe(n)),()=>{t?.removeEventHandler?.("resize",m),o&&o.disconnect()}}),[m,e,n]),{...s,ref:d}}({contentElement:l?.current,clientId:e});return _?(0,c.createElement)(Cg,{clientId:o||e,__unstableCoverTarget:!0,bottomClientId:u,className:d()("block-editor-block-list__block-side-inserter-popover",{"is-insertion-point-visible":m}),__unstablePopoverSlot:r,__unstableContentRef:l,resize:!1,shift:!1,...E},(0,c.createElement)("div",{className:"block-editor-block-list__empty-block-inserter"},(0,c.createElement)(fg,{position:"bottom right",rootClientId:t,clientId:e,__experimentalIsQuick:!0}))):k||h?(0,c.createElement)(Cg,{clientId:o||e,bottomClientId:u,className:d()("block-editor-block-list__block-popover",{"is-insertion-point-visible":m}),__unstablePopoverSlot:r,__unstableContentRef:l,resize:!1,...E},h&&(0,c.createElement)(rI,{focusOnMount:g.current,__experimentalInitialIndex:y.current,__experimentalOnIndexChange:e=>{y.current=e},key:e}),k&&(0,c.createElement)(eI,{clientId:e,rootClientId:t})):null}function pI(e){const{getSelectedBlockClientId:t,getFirstMultiSelectedBlockClientId:n,getBlockRootClientId:o,getBlock:r,getBlockParents:l,__experimentalGetBlockListSettingsForBlocks:i}=e(Go),s=t()||n();if(!s)return;const{name:c,attributes:u={}}=r(s)||{},d=l(s),p=i(d),m=d.find((e=>p[e]?.__experimentalCaptureToolbars));return{clientId:s,rootClientId:o(s),name:c,isEmptyDefaultBlock:c&&(0,a.isUnmodifiedDefaultBlock)({name:c,attributes:u}),capturingClientId:m}}function mI({__unstablePopoverSlot:e,__unstableContentRef:t}){const n=(0,f.useSelect)(pI,[]);if(!n)return null;const{clientId:o,rootClientId:r,name:l,isEmptyDefaultBlock:i,capturingClientId:a}=n;return l?(0,c.createElement)(dI,{clientId:o,rootClientId:r,isEmptyDefaultBlock:i,capturingClientId:a,__unstablePopoverSlot:e,__unstableContentRef:t}):null}var fI=function({__unstableContentRef:e}){const[t,n]=(0,c.useState)(!1),o=(0,f.useSelect)((e=>e(Go).getBlockOrder()),[]);return(0,c.useEffect)((()=>{const e=setTimeout((()=>{n(!0)}),500);return()=>{clearTimeout(e)}}),[]),t?o.map(((t,n)=>n===o.length-1?null:(0,c.createElement)(wg,{key:t,previousClientId:t,nextClientId:o[n+1],__unstableContentRef:e},(0,c.createElement)("div",{className:"block-editor-block-list__insertion-point-inserter is-with-inserter"},(0,c.createElement)(fg,{position:"bottom center",clientId:o[n+1],__experimentalIsQuick:!0}))))):null};function gI(e){const{__unstableGetEditorMode:t,getSettings:n,isTyping:o}=e(Go);return{isZoomOutMode:"zoom-out"===t(),hasFixedToolbar:n().hasFixedToolbar,isTyping:o()}}function hI({children:e,__unstableContentRef:t,...n}){const o=(0,p.useViewportMatch)("medium"),{hasFixedToolbar:r,isZoomOutMode:l,isTyping:i}=(0,f.useSelect)(gI,[]),a=(0,op.__unstableUseShortcutEventMatch)(),{getSelectedBlockClientIds:s,getBlockRootClientId:u}=(0,f.useSelect)(Go),{duplicateBlocks:d,removeBlocks:g,insertAfterBlock:h,insertBeforeBlock:b,clearSelectedBlock:v,selectBlock:_,moveBlocksUp:k,moveBlocksDown:y}=(0,f.useDispatch)(Go);const E=yg(t),w=yg(t);return(0,c.createElement)("div",{...n,onKeyDown:function(e){if(!e.defaultPrevented)if(a("core/block-editor/move-up",e)){const t=s();if(t.length){e.preventDefault();const n=u(t[0]);k(t,n)}}else if(a("core/block-editor/move-down",e)){const t=s();if(t.length){e.preventDefault();const n=u(t[0]);y(t,n)}}else if(a("core/block-editor/duplicate",e)){const t=s();t.length&&(e.preventDefault(),d(t))}else if(a("core/block-editor/remove",e)){const t=s();t.length&&(e.preventDefault(),g(t))}else if(a("core/block-editor/insert-after",e)){const t=s();t.length&&(e.preventDefault(),h(t[t.length-1]))}else if(a("core/block-editor/insert-before",e)){const t=s();t.length&&(e.preventDefault(),b(t[0]))}else if(a("core/block-editor/unselect",e)){const n=s();n.length&&(e.preventDefault(),n.length>1?_(n[0]):v(),e.target.ownerDocument.defaultView.getSelection().removeAllRanges(),t?.current.focus())}}},(0,c.createElement)(Ig.Provider,{value:(0,c.useRef)(!1)},!i&&(0,c.createElement)(Mg,{__unstableContentRef:t}),!l&&(r||!o)&&(0,c.createElement)(rI,{isFixed:!0}),(0,c.createElement)(mI,{__unstableContentRef:t}),(0,c.createElement)(m.Popover.Slot,{name:"block-toolbar",ref:E}),e,(0,c.createElement)(m.Popover.Slot,{name:"__unstable-block-tools-after",ref:w}),l&&(0,c.createElement)(fI,{__unstableContentRef:t})))}const bI=()=>{};var vI=(0,c.forwardRef)((function({rootClientId:e,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r=!1,__experimentalInsertionIndex:l,__experimentalFilterValue:i,onSelect:a=bI,shouldFocusBlock:s=!1},u){const{destinationRootClientId:d,prioritizePatterns:p}=(0,f.useSelect)((n=>{const{getBlockRootClientId:o,getSettings:r}=n(Go),l=e||o(t)||void 0;return{destinationRootClientId:l,prioritizePatterns:r().__experimentalPreferPatternsOnRoot&&!l}}),[t,e]);return(0,c.createElement)(cg,{onSelect:a,rootClientId:d,clientId:t,isAppender:n,showInserterHelpPanel:o,showMostUsedBlocks:r,__experimentalInsertionIndex:l,__experimentalFilterValue:i,shouldFocusBlock:s,prioritizePatterns:p,ref:u})}));function _I(){return null}_I.Register=function(){const{registerShortcut:e}=(0,f.useDispatch)(op.store);return(0,c.useEffect)((()=>{e({name:"core/block-editor/duplicate",category:"block",description:(0,v.__)("Duplicate the selected block(s)."),keyCombination:{modifier:"primaryShift",character:"d"}}),e({name:"core/block-editor/remove",category:"block",description:(0,v.__)("Remove the selected block(s)."),keyCombination:{modifier:"access",character:"z"}}),e({name:"core/block-editor/insert-before",category:"block",description:(0,v.__)("Insert a new block before the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"t"}}),e({name:"core/block-editor/insert-after",category:"block",description:(0,v.__)("Insert a new block after the selected block(s)."),keyCombination:{modifier:"primaryAlt",character:"y"}}),e({name:"core/block-editor/delete-multi-selection",category:"block",description:(0,v.__)("Delete selection."),keyCombination:{character:"del"},aliases:[{character:"backspace"}]}),e({name:"core/block-editor/select-all",category:"selection",description:(0,v.__)("Select all text when typing. Press again to select all blocks."),keyCombination:{modifier:"primary",character:"a"}}),e({name:"core/block-editor/unselect",category:"selection",description:(0,v.__)("Clear selection."),keyCombination:{character:"escape"}}),e({name:"core/block-editor/focus-toolbar",category:"global",description:(0,v.__)("Navigate to the nearest toolbar."),keyCombination:{modifier:"alt",character:"F10"}}),e({name:"core/block-editor/move-up",category:"block",description:(0,v.__)("Move the selected block(s) up."),keyCombination:{modifier:"secondary",character:"t"}}),e({name:"core/block-editor/move-down",category:"block",description:(0,v.__)("Move the selected block(s) down."),keyCombination:{modifier:"secondary",character:"y"}})}),[e]),null};var kI=_I;function yI(){return $()("wp.blockEditor.MultiSelectScrollIntoView",{hint:"This behaviour is now built-in.",since:"5.8"}),null}const EI=new Set([yd.UP,yd.RIGHT,yd.DOWN,yd.LEFT,yd.ENTER,yd.BACKSPACE]);function wI(){const e=(0,f.useSelect)((e=>e(Go).isTyping()),[]),{stopTyping:t}=(0,f.useDispatch)(Go);return(0,p.useRefEffect)((n=>{if(!e)return;const{ownerDocument:o}=n;let r,l;function i(e){const{clientX:n,clientY:o}=e;r&&l&&(r!==n||l!==o)&&t(),r=n,l=o}return o.addEventListener("mousemove",i),()=>{o.removeEventListener("mousemove",i)}}),[e,t])}function SI(){const{isTyping:e,hasInlineToolbar:t}=(0,f.useSelect)((e=>{const{isTyping:t,getSettings:n}=e(Go);return{isTyping:t(),hasInlineToolbar:n().hasInlineToolbar}}),[]),{startTyping:n,stopTyping:o}=(0,f.useDispatch)(Go),r=wI(),l=(0,p.useRefEffect)((r=>{const{ownerDocument:l}=r,{defaultView:i}=l,a=i.getSelection();if(e){let c;function u(e){const{target:t}=e;c=i.setTimeout((()=>{(0,ea.isTextField)(t)||o()}))}function d(e){const{keyCode:t}=e;t!==yd.ESCAPE&&t!==yd.TAB||o()}function p(){a.isCollapsed||o()}return r.addEventListener("focus",u),r.addEventListener("keydown",d),t||l.addEventListener("selectionchange",p),()=>{i.clearTimeout(c),r.removeEventListener("focus",u),r.removeEventListener("keydown",d),l.removeEventListener("selectionchange",p)}}function s(e){const{type:t,target:o}=e;(0,ea.isTextField)(o)&&r.contains(o)&&("keydown"!==t||function(e){const{keyCode:t,shiftKey:n}=e;return!n&&EI.has(t)}(e))&&n()}return r.addEventListener("keypress",s),r.addEventListener("keydown",s),()=>{r.removeEventListener("keypress",s),r.removeEventListener("keydown",s)}}),[e,t,n,o]);return(0,p.useMergeRefs)([r,l])}var CI=function({children:e}){return(0,c.createElement)("div",{ref:SI()},e)};const xI=-1!==window.navigator.userAgent.indexOf("Trident"),BI=new Set([yd.UP,yd.DOWN,yd.LEFT,yd.RIGHT]),II=.75;function TI(){const e=(0,f.useSelect)((e=>e(Go).hasSelectedBlock()),[]);return(0,p.useRefEffect)((t=>{if(!e)return;const{ownerDocument:n}=t,{defaultView:o}=n;let r,l,i;function a(){r||(r=o.requestAnimationFrame((()=>{p(),r=null})))}function s(e){l&&o.cancelAnimationFrame(l),l=o.requestAnimationFrame((()=>{c(e),l=null}))}function c({keyCode:e}){if(!m())return;const r=(0,ea.computeCaretRect)(o);if(!r)return;if(!i)return void(i=r);if(BI.has(e))return void(i=r);const l=r.top-i.top;if(0===l)return;const a=(0,ea.getScrollContainer)(t);if(!a)return;const s=a===n.body||a===n.documentElement,c=s?o.scrollY:a.scrollTop,u=s?0:a.getBoundingClientRect().top,d=s?i.top/o.innerHeight:(i.top-u)/(o.innerHeight-u);if(0===c&&d<II&&function(){const e=t.querySelectorAll('[contenteditable="true"]');return e[e.length-1]===n.activeElement}())return void(i=r);const p=s?o.innerHeight:a.clientHeight;i.top+i.height>u+p||i.top<u?i=r:s?o.scrollBy(0,l):a.scrollTop+=l}function u(){n.addEventListener("selectionchange",d)}function d(){n.removeEventListener("selectionchange",d),p()}function p(){m()&&(i=(0,ea.computeCaretRect)(o))}function m(){return t.contains(n.activeElement)&&n.activeElement.isContentEditable}return o.addEventListener("scroll",a,!0),o.addEventListener("resize",a,!0),t.addEventListener("keydown",s),t.addEventListener("keyup",c),t.addEventListener("mousedown",u),t.addEventListener("touchstart",u),()=>{o.removeEventListener("scroll",a,!0),o.removeEventListener("resize",a,!0),t.removeEventListener("keydown",s),t.removeEventListener("keyup",c),t.removeEventListener("mousedown",u),t.removeEventListener("touchstart",u),n.removeEventListener("selectionchange",d),o.cancelAnimationFrame(r),o.cancelAnimationFrame(l)}}),[e])}var MI=xI?e=>e.children:function({children:e}){return(0,c.createElement)("div",{ref:TI(),className:"block-editor__typewriter"},e)};const PI=(0,c.createContext)({});function NI({children:e,uniqueId:t,blockName:n=""}){const o=(0,c.useContext)(PI),{name:r}=Ko();n=n||r;const l=(0,c.useMemo)((()=>function(e,t,n){const o={...e,[t]:e[t]?new Set(e[t]):new Set};return o[t].add(n),o}(o,n,t)),[o,n,t]);return(0,c.createElement)(PI.Provider,{value:l},e)}function LI(e,t=""){const n=(0,c.useContext)(PI),{name:o}=Ko();return t=t||o,Boolean(n[t]?.has(e))}var RI=(0,c.createElement)(F.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,c.createElement)(F.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));function AI({title:e,help:t,actions:n=[],onClose:o}){return(0,c.createElement)(m.__experimentalVStack,{className:"block-editor-inspector-popover-header",spacing:4},(0,c.createElement)(m.__experimentalHStack,{alignment:"center"},(0,c.createElement)(m.__experimentalHeading,{className:"block-editor-inspector-popover-header__heading",level:2,size:13},e),(0,c.createElement)(m.__experimentalSpacer,null),n.map((({label:e,icon:t,onClick:n})=>(0,c.createElement)(m.Button,{key:e,className:"block-editor-inspector-popover-header__action",label:e,icon:t,variant:!t&&"tertiary",onClick:n},!t&&e))),o&&(0,c.createElement)(m.Button,{className:"block-editor-inspector-popover-header__action",label:(0,v.__)("Close"),icon:RI,onClick:o})),t&&(0,c.createElement)(m.__experimentalText,null,t))}var DI=(0,c.forwardRef)((function({onClose:e,onChange:t,...n},o){return(0,c.createElement)("div",{ref:o,className:"block-editor-publish-date-time-picker"},(0,c.createElement)(AI,{title:(0,v.__)("Publish"),actions:[{label:(0,v.__)("Now"),onClick:()=>t?.(null)}],onClose:e}),(0,c.createElement)(m.DateTimePicker,{startOfWeek:(0,Iw.getSettings)().l10n.startOfWeek,onChange:t,...n}))}));const OI={button:"wp-element-button",caption:"wp-element-caption"},zI=e=>OI[e]?OI[e]:"";function VI(e,t){return Object.entries(t).every((([t,n])=>"object"==typeof n&&"object"==typeof e[t]?VI(e[t],n):e[t]===n))}const FI=(e,t)=>{if(!t||!e)return;const n=t.filter((({attributes:t})=>!(!t||!Object.keys(t).length)&&VI(e,t)));return 1===n.length?n[0]:void 0};function HI(e){const t=e?.trim().match(/^(0?[-.]?\d*\.?\d+)(r?e[m|x]|v[h|w|min|max]+|p[x|t|c]|[c|m]m|%|in|ch|Q|lh)$/);return isNaN(e)||isNaN(parseFloat(e))?t?{value:parseFloat(t[1])||t[1],unit:t[2]}:{value:e,unit:void 0}:{value:parseFloat(e),unit:"px"}}function GI(e){try{return Function(`'use strict'; return (${e})`)()}catch(e){return null}}function UI(e,t){const n=e.split(/[(),]/g).filter(Boolean),o=n.slice(1).map((e=>HI(WI(e,t)).value)).filter(Boolean);switch(n[0]){case"min":return Math.min(...o)+"px";case"max":return Math.max(...o)+"px";case"clamp":return 3!==o.length?null:o[1]<o[0]?o[0]+"px":o[1]>o[2]?o[2]+"px":o[1]+"px";case"calc":return o[0]+"px"}}function $I(e){for(;;){const t=e,n=/(max|min|calc|clamp)\(([^()]*)\)/g.exec(e)||[];if(n[0]){const t=UI(n[0]);e=e.replace(n[0],t)}if(e===t||parseFloat(e))break}return HI(e)}function jI(e){for(let t=0;t<e.length;t++)if(["+","-","/","*"].includes(e[t]))return!0;return!1}function WI(e,t={}){if(Number.isFinite(e))return e.toFixed(0)+"px";if(void 0===e)return null;let n=HI(e);return n.unit||(n=$I(e)),jI(e)&&!n.unit?function(e){let t=!1;const n=e.match(/\d+\.?\d*[a-zA-Z]+|\.\d+[a-zA-Z]+/g);if(n)for(const o of n){const n=HI(WI(o));if(!parseFloat(n.value)){t=!0;break}e=e.replace(o,n.value)}else t=!0;const o=e.match(/(max|min|clamp)/g);if(!t&&o){const t=e.split(",");for(const n of t){const t=n.replace(/\s|calc/g,"");if(jI(t)){const o=GI(t);if(o){const t=o.toFixed(0)+"px";e=e.replace(n,t)}}}const n=$I(e);return n?n.value+n.unit:null}if(t)return null;const r=GI(e);return r?r.toFixed(0)+"px":null}(e):function(e,t){const n=96,o=.01,r=Object.assign({},{fontSize:16,lineHeight:16,width:375,height:812,type:"font"},t),l={em:r.fontSize,rem:r.fontSize,vh:r.height*o,vw:r.width*o,vmin:(r.width<r.height?r.width:r.height)*o,vmax:(r.width>r.height?r.width:r.height)*o,"%":("font"===r.type?r.fontSize:r.width)*o,ch:8,ex:7.15625,lh:r.lineHeight},i={in:n,cm:37.79527559055118,mm:3.7795275590551185,pt:1.3333333333333333,pc:16,px:1,Q:.9448818897637794};return l[e.unit]?(l[e.unit]*e.value).toFixed(0)+"px":i[e.unit]?(i[e.unit]*e.value).toFixed(0)+"px":null}(n,t)}const KI={};var qI=function(e,t={}){const n=e+function(e){let t="";e.hasOwnProperty("fontSize")&&(t=":"+e.width);e.hasOwnProperty("lineHeight")&&(t=":"+e.lineHeight);e.hasOwnProperty("width")&&(t=":"+e.width);e.hasOwnProperty("height")&&(t=":"+e.height);e.hasOwnProperty("type")&&(t=":"+e.type);return t}(t);return KI[n]||(KI[n]=WI(e,t)),KI[n]};const ZI={__experimentalBorder:"border",color:"color",spacing:"spacing",typography:"typography"};function YI(e){const t="var:";if(e?.startsWith?.(t)){return`var(--wp--${e.slice(4).split("|").join("--")})`}return e}function XI(e={},t,n){let o=[];return Object.keys(e).forEach((r=>{const l=t+Ll(r.replace("/","-")),i=e[r];if(i instanceof Object){const e=l+n;o=[...o,...XI(i,e,n)]}else o.push(`${l}: ${i}`)})),o}const QI=(e,t)=>{const n={};return Object.entries(e).forEach((([e,o])=>{if("root"===e||!t?.[e])return;const r="string"==typeof o;if(r||Object.entries(o).forEach((([o,r])=>{if("root"===o||!t?.[e][o])return;const l=JI({[e]:{[o]:t[e][o]}});n[r]=[...n[r]||[],...l],delete t[e][o]})),r||o.root){const l=r?o:o.root,i=JI({[e]:t[e]});n[l]=[...n[l]||[],...i],delete t[e]}})),n};function JI(e={},t="",n,o={}){const r=ul===t,l=Object.entries(a.__EXPERIMENTAL_STYLE_PROPERTY).reduce(((t,[o,{value:l,properties:i,useEngine:a,rootOnly:s}])=>{if(s&&!r)return t;const c=l;if("elements"===c[0]||a)return t;const u=(0,Wr.get)(e,c);if("--wp--style--root--padding"===o&&("string"==typeof u||!n))return t;if(i&&"string"!=typeof u)Object.entries(i).forEach((e=>{const[n,o]=e;if(!(0,Wr.get)(u,[o],!1))return;const r=n.startsWith("--")?n:Ll(n);t.push(`${r}: ${YI((0,Wr.get)(u,[o]))}`)}));else if((0,Wr.get)(e,c,!1)){const n=o.startsWith("--")?o:Ll(o);t.push(`${n}: ${YI((0,Wr.get)(e,c))}`)}return t}),[]);return(0,ei.getCSSRules)(e).forEach((e=>{if(r&&n&&e.key.startsWith("padding"))return;const t=e.key.startsWith("--")?e.key:Ll(e.key);let i=e.value;if("string"!=typeof i&&i?.ref){const e=i.ref.split(".");if(i=(0,Wr.get)(o,e),!i||i?.ref)return}"font-size"===t&&(i=al({size:i},cl(o?.settings))),l.push(`${t}: ${i}`)})),l}function eT({layoutDefinitions:e=sr,style:t,selector:n,hasBlockGapSupport:o,hasFallbackGapSupport:r,fallbackGapValue:l}){let i="",a=o?Pr(t?.spacing?.blockGap):"";if(r&&(n===ul?a=a||"0.5em":!o&&l&&(a=l)),a&&e&&(Object.values(e).forEach((({className:e,name:t,spacingStyles:r})=>{(o||"flex"===t||"grid"===t)&&r?.length&&r.forEach((t=>{const r=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{r.push(`${e}: ${t||a}`)})),r.length){let l="";l=o?n===ul?`:where(${n} .${e})${t?.selector||""}`:`${n}-${e}${t?.selector||""}`:n===ul?`:where(.${e}${t?.selector||""})`:`:where(${n}.${e}${t?.selector||""})`,i+=`${l} { ${r.join("; ")}; }`}}))})),n===ul&&o&&(i+=`${n} { --wp--style--block-gap: ${a}; }`)),n===ul&&e){const t=["block","flex","grid"];Object.values(e).forEach((({className:e,displayMode:o,baseStyles:r})=>{o&&t.includes(o)&&(i+=`${n} .${e} { display:${o}; }`),r?.length&&r.forEach((t=>{const o=[];if(t.rules&&Object.entries(t.rules).forEach((([e,t])=>{o.push(`${e}: ${t}`)})),o.length){i+=`${`${n} .${e}${t?.selector||""}`} { ${o.join("; ")}; }`}}))}))}return i}const tT=["border","color","dimensions","spacing","typography","filter","outline","shadow"];function nT(e){if(!e)return{};const t=Object.entries(e).filter((([e])=>tT.includes(e))).map((([e,t])=>[e,JSON.parse(JSON.stringify(t))]));return Object.fromEntries(t)}const oT=(e,t)=>{var n;const o=[];if(!e?.settings)return o;const r=e=>{const t={};return dl.forEach((({path:n})=>{const o=(0,Wr.get)(e,n,!1);!1!==o&&(0,Wr.set)(t,n,o)})),t},l=r(e.settings),i=e.settings?.custom;return(Object.keys(l).length>0||i)&&o.push({presets:l,custom:i,selector:ul}),Object.entries(null!==(n=e.settings?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{const l=r(n),i=n.custom;(Object.keys(l).length>0||i)&&o.push({presets:l,custom:i,selector:t[e]?.selector})})),o},rT=(e,t)=>{const n=oT(e,t);let o="";return n.forEach((({presets:t,custom:n,selector:r})=>{const l=function(e={},t){return dl.reduce(((n,{path:o,valueKey:r,valueFunc:l,cssVarInfix:i})=>{const a=(0,Wr.get)(e,o,[]);return["default","theme","custom"].forEach((e=>{a[e]&&a[e].forEach((e=>{r&&!l?n.push(`--wp--preset--${i}--${Ll(e.slug)}: ${e[r]}`):l&&"function"==typeof l&&n.push(`--wp--preset--${i}--${Ll(e.slug)}: ${l(e,t)}`)}))})),n}),[])}(t,e?.settings),i=XI(n,"--wp--custom--","--");i.length>0&&l.push(...i),l.length>0&&(o+=`${r}{${l.join(";")};}`)})),o},lT=(e,t,n,o,r=!1)=>{const l=((e,t)=>{var n;const o=[];if(!e?.styles)return o;const r=nT(e.styles);return r&&o.push({styles:r,selector:ul}),Object.entries(a.__EXPERIMENTAL_ELEMENTS).forEach((([t,n])=>{e.styles?.elements?.[t]&&o.push({styles:e.styles?.elements?.[t],selector:n})})),Object.entries(null!==(n=e.styles?.blocks)&&void 0!==n?n:{}).forEach((([e,n])=>{var r;const l=nT(n);if(n?.variations){const e={};Object.keys(n.variations).forEach((t=>{e[t]=nT(n.variations[t])})),l.variations=e}l&&t?.[e]?.selector&&o.push({duotoneSelector:t[e].duotoneSelector,fallbackGapValue:t[e].fallbackGapValue,hasLayoutSupport:t[e].hasLayoutSupport,selector:t[e].selector,styles:l,featureSelectors:t[e].featureSelectors,styleVariationSelectors:t[e].styleVariationSelectors}),Object.entries(null!==(r=n?.elements)&&void 0!==r?r:{}).forEach((([n,r])=>{r&&t?.[e]&&a.__EXPERIMENTAL_ELEMENTS[n]&&o.push({styles:r,selector:t[e]?.selector.split(",").map((e=>a.__EXPERIMENTAL_ELEMENTS[n].split(",").map((t=>e+" "+t)))).join(",")})}))})),o})(e,t),i=oT(e,t),s=e?.settings?.useRootPaddingAwareAlignments,{contentSize:c,wideSize:u}=e?.settings?.layout||{};let d="body {margin: 0;";if(c&&(d+=` --wp--style--global--content-size: ${c};`),u&&(d+=` --wp--style--global--wide-size: ${u};`),s&&(d+="padding-right: 0; padding-left: 0; padding-top: var(--wp--style--root--padding-top); padding-bottom: var(--wp--style--root--padding-bottom) }\n\t\t\t.has-global-padding { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t.has-global-padding :where(.has-global-padding) { padding-right: 0; padding-left: 0; }\n\t\t\t.has-global-padding > .alignfull { margin-right: calc(var(--wp--style--root--padding-right) * -1); margin-left: calc(var(--wp--style--root--padding-left) * -1); }\n\t\t\t.has-global-padding :where(.has-global-padding) > .alignfull { margin-right: 0; margin-left: 0; }\n\t\t\t.has-global-padding > .alignfull:where(:not(.has-global-padding)) > :where(.wp-block:not(.alignfull),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: var(--wp--style--root--padding-right); padding-left: var(--wp--style--root--padding-left); }\n\t\t\t.has-global-padding :where(.has-global-padding) > .alignfull:where(:not(.has-global-padding)) > :where(.wp-block:not(.alignfull),p,h1,h2,h3,h4,h5,h6,ul,ol) { padding-right: 0; padding-left: 0;"),d+="}",l.forEach((({selector:t,duotoneSelector:l,styles:i,fallbackGapValue:a,hasLayoutSupport:c,featureSelectors:u,styleVariationSelectors:p})=>{if(u){const e=QI(u,i);Object.entries(e).forEach((([e,t])=>{if(t.length){const n=t.join(";");d+=`${e}{${n};}`}}))}if(p&&Object.entries(p).forEach((([t,n])=>{const o=i?.variations?.[t];if(o){if(u){const e=QI(u,o);Object.entries(e).forEach((([e,t])=>{if(t.length){const o=function(e,t){const n=e.split(","),o=[];return n.forEach((e=>{o.push(`${t.trim()}${e.trim()}`)})),o.join(", ")}(e,n),r=t.join(";");d+=`${o}{${r};}`}}))}const t=JI(o,n,s,e);t.length&&(d+=`${n}{${t.join(";")};}`)}})),l){const e={};i?.filter&&(e.filter=i.filter,delete i.filter);const t=JI(e);t.length&&(d+=`${l}{${t.join(";")};}`)}r||ul!==t&&!c||(d+=eT({style:i,selector:t,hasBlockGapSupport:n,hasFallbackGapSupport:o,fallbackGapValue:a}));const m=JI(i,t,s,e);m?.length&&(d+=`${t}{${m.join(";")};}`);const f=Object.entries(i).filter((([e])=>e.startsWith(":")));f?.length&&f.forEach((([e,n])=>{const o=JI(n);if(!o?.length)return;const r=`${t.split(",").map((t=>t+e)).join(",")}{${o.join(";")};}`;d+=r}))})),d+=".wp-site-blocks > .alignleft { float: left; margin-right: 2em; }",d+=".wp-site-blocks > .alignright { float: right; margin-left: 2em; }",d+=".wp-site-blocks > .aligncenter { justify-content: center; margin-left: auto; margin-right: auto; }",n){const t=Pr(e?.styles?.spacing?.blockGap)||"0.5em";d+=`:where(.wp-site-blocks) > * { margin-block-start: ${t}; margin-block-end: 0; }`,d+=":where(.wp-site-blocks) > :first-child:first-child { margin-block-start: 0; }",d+=":where(.wp-site-blocks) > :last-child:last-child { margin-block-end: 0; }"}return i.forEach((({selector:e,presets:t})=>{ul===e&&(e="");const n=function(e="*",t={}){return dl.reduce(((n,{path:o,cssVarInfix:r,classes:l})=>{if(!l)return n;const i=(0,Wr.get)(t,o,[]);return["default","theme","custom"].forEach((t=>{i[t]&&i[t].forEach((({slug:t})=>{l.forEach((({classSuffix:o,propertyName:l})=>{const i=`.has-${Ll(t)}-${o}`,a=e.split(",").map((e=>`${e}${i}`)).join(","),s=`var(--wp--preset--${r}--${Ll(t)})`;n+=`${a}{${l}: ${s} !important;}`}))}))})),n}),"")}(e,t);n.length>0&&(d+=n)})),d};function iT(e,t){return oT(e,t).flatMap((({presets:e})=>function(e={}){return dl.filter((e=>"duotone"===e.path.at(-1))).flatMap((t=>{const n=(0,Wr.get)(e,t.path,{});return["default","theme"].filter((e=>n[e])).flatMap((e=>n[e].map((e=>(0,c.renderToString)((0,c.createElement)(M_,{preset:e,key:e.slug})))))).join("")}))}(e)))}const aT=(e,t)=>{const n={};return e.forEach((e=>{const o=e.name,r=P_(e);let l=P_(e,"filter.duotone");if(!l){const t=P_(e),n=(0,a.getBlockSupport)(e,"color.__experimentalDuotone",!1);l=n&&gl(t,n)}const i=!!e?.supports?.layout||!!e?.supports?.__experimentalLayout,s=e?.supports?.spacing?.blockGap?.__experimentalDefault,c=t(o),u={};c?.length&&c.forEach((e=>{const t=`.is-style-${e.name}${r}`;u[e.name]=t}));const d=((e,t)=>{if(e?.selectors&&Object.keys(e.selectors).length>0)return e.selectors;const n={root:t};return Object.entries(ZI).forEach((([t,o])=>{const r=P_(e,t);r&&(n[o]=r)})),n})(e,r);n[o]={duotoneSelector:l,fallbackGapValue:s,featureSelectors:Object.keys(d).length?d:void 0,hasLayoutSupport:i,name:o,selector:r,styleVariationSelectors:Object.keys(u).length?u:void 0}})),n};const sT=(e,t)=>{let n="";return e.split("&").forEach((e=>{n+=e.includes("{")?t+e:t+"{"+e+"}"})),n};function cT(e={}){const[t]=yl("spacing.blockGap"),n=null!==t,o=!n,r=(0,f.useSelect)((e=>{const{getSettings:t}=e(Go);return!!t().disableLayoutStyles})),l=(0,f.useSelect)((e=>e(a.store).getBlockStyles),[]);return(0,c.useMemo)((()=>{var t;if(!e?.styles||!e?.settings)return[];e=function(e){return e.styles?.blocks?.["core/separator"]&&e.styles?.blocks?.["core/separator"].color?.background&&!e.styles?.blocks?.["core/separator"].color?.text&&!e.styles?.blocks?.["core/separator"].border?.color?{...e,styles:{...e.styles,blocks:{...e.styles.blocks,"core/separator":{...e.styles.blocks["core/separator"],color:{...e.styles.blocks["core/separator"].color,text:e.styles?.blocks["core/separator"].color.background}}}}}:e}(e);const i=aT((0,a.getBlockTypes)(),l),s=rT(e,i),c=lT(e,i,n,o,r),u=iT(e,i),d=[{css:s,isGlobalStyles:!0},{css:c,isGlobalStyles:!0},{css:null!==(t=e.styles.css)&&void 0!==t?t:"",isGlobalStyles:!0},{assets:u,__unstableType:"svg",isGlobalStyles:!0}];return(0,a.getBlockTypes)().forEach((t=>{if(e.styles.blocks[t.name]?.css){const n=i[t.name].selector;d.push({css:sT(e.styles.blocks[t.name]?.css,n),isGlobalStyles:!0})}})),[d,e.settings]}),[n,o,e,r])}function uT(){const{merged:e}=(0,c.useContext)(bl);return cT(e)}var dT=(0,c.createElement)(F.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,c.createElement)(F.Path,{d:"M12 8c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm0 6.5c-1.4 0-2.5-1.1-2.5-2.5s1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5-1.1 2.5-2.5 2.5zM12.8 3h-1.5v3h1.5V3zm-1.6 18h1.5v-3h-1.5v3zm6.8-9.8v1.5h3v-1.5h-3zm-12 0H3v1.5h3v-1.5zm9.7 5.6 2.1 2.1 1.1-1.1-2.1-2.1-1.1 1.1zM8.3 7.2 6.2 5.1 5.1 6.2l2.1 2.1 1.1-1.1zM5.1 17.8l1.1 1.1 2.1-2.1-1.1-1.1-2.1 2.1zM18.9 6.2l-1.1-1.1-2.1 2.1 1.1 1.1 2.1-2.1z"}));function pT(e){return mT(e)}function mT(e){return!!e?.shadow}function fT({resetAllFilter:e,onChange:t,value:n,panelId:o,children:r}){return(0,c.createElement)(m.__experimentalToolsPanel,{label:(0,v.__)("Effects"),resetAll:()=>{const o=e(n);t(o)},panelId:o},r)}const gT={shadow:!0};function hT({as:e=fT,value:t,onChange:n,inheritedValue:o=t,settings:r,panelId:l,defaultControls:i=gT}){const a=mT(r),s=(u=o?.shadow,fl({settings:r},"",u));var u;const d=e=>{n(Al(t,["shadow"],e))},p=(0,c.useCallback)((e=>({...e,shadow:void 0})),[]);return(0,c.createElement)(e,{resetAllFilter:p,value:t,onChange:n,panelId:l},a&&(0,c.createElement)(m.__experimentalToolsPanelItem,{label:(0,v.__)("Shadow"),hasValue:()=>!!t?.shadow,onDeselect:()=>d(void 0),isShownByDefault:i.shadow,panelId:l},(0,c.createElement)(m.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,c.createElement)(bT,{shadow:s,onShadowChange:d,settings:r}))))}const bT=({shadow:e,onShadowChange:t,settings:n})=>(0,c.createElement)(m.Dropdown,{popoverProps:{placement:"left-start",offset:36,shift:!0},className:"block-editor-global-styles-effects-panel__shadow-dropdown",renderToggle:({onToggle:e,isOpen:t})=>{const n={onClick:e,className:d()({"is-open":t}),"aria-expanded":t};return(0,c.createElement)(m.Button,{...n},(0,c.createElement)(m.__experimentalHStack,{justify:"flex-start"},(0,c.createElement)(Xl,{className:"block-editor-global-styles-effects-panel__toggle-icon",icon:dT,size:24}),(0,c.createElement)(m.FlexItem,null,(0,v.__)("Shadow"))))},renderContent:()=>(0,c.createElement)(m.__experimentalDropdownContentWrapper,{paddingSize:"medium"},(0,c.createElement)(vT,{shadow:e,onShadowChange:t,settings:n}))});function vT({shadow:e,onShadowChange:t,settings:n}){const o=n?.shadow?.presets?.default,r=n?.shadow?.presets?.theme,l=n?.shadow?.defaultPresets,i=[...l?o:[],...r||[]];return(0,c.createElement)("div",{className:"block-editor-global-styles-effects-panel__shadow-popover-container"},(0,c.createElement)(m.__experimentalVStack,{spacing:4},(0,c.createElement)(m.__experimentalHeading,{level:5},(0,v.__)("Shadow")),(0,c.createElement)(_T,{presets:i,activeShadow:e,onSelect:t})))}function _T({presets:e,activeShadow:t,onSelect:n}){return e?(0,c.createElement)(m.__experimentalGrid,{columns:6,gap:0,align:"center",justify:"center"},e.map((({name:e,slug:o,shadow:r})=>(0,c.createElement)(kT,{key:o,label:e,isActive:r===t,onSelect:()=>n(r===t?void 0:r),shadow:r})))):null}function kT({label:e,isActive:t,onSelect:n,shadow:o}){return(0,c.createElement)("div",{className:"block-editor-global-styles-effects-panel__shadow-indicator-wrapper"},(0,c.createElement)(m.Button,{className:"block-editor-global-styles-effects-panel__shadow-indicator",onClick:n,label:e,style:{boxShadow:o},showTooltip:!0},t&&(0,c.createElement)(Xl,{icon:Rv})))}function yT({value:e,onChange:t,inheritedValue:n=e}){const[o,r]=(0,c.useState)(null),l=n?.css;return(0,c.createElement)(m.__experimentalVStack,{spacing:3},(0,c.createElement)(m.TextareaControl,{label:(0,v.__)("Additional CSS"),__nextHasNoMarginBottom:!0,value:l,onChange:n=>function(n){if(t({...e,css:n}),o){const[t]=fm([{css:e}],".editor-styles-wrapper");t&&r(null)}}(n),onBlur:function(e){if(!e?.target?.value)return void r(null);const[t]=fm([{css:e.target.value}],".editor-styles-wrapper");r(null===t?(0,v.__)("There is an error with your CSS structure."):null)},className:"block-editor-global-styles-advanced-panel__custom-css-input",spellCheck:!1}),o&&(0,c.createElement)(m.Tooltip,{text:o},(0,c.createElement)("div",{className:"block-editor-global-styles-advanced-panel__custom-css-validation-wrapper"},(0,c.createElement)(Xl,{icon:XS,className:"block-editor-global-styles-advanced-panel__custom-css-validation-icon"}))))}function ET(e,t,n){if(null==e||!1===e)return;if(Array.isArray(e))return wT(e,t,n);switch(typeof e){case"string":case"number":return}const{type:o,props:r}=e;switch(o){case c.StrictMode:case c.Fragment:return wT(r.children,t,n);case c.RawHTML:return;case qg.Content:return ST(t,n);case cx:return void t.push(r.value)}switch(typeof o){case"string":return void 0!==r.children?wT(r.children,t,n):void 0;case"function":return ET(o.prototype&&"function"==typeof o.prototype.render?new o(r).render():o(r),t,n)}}function wT(e,...t){e=Array.isArray(e)?e:[e];for(let n=0;n<e.length;n++)ET(e[n],...t)}function ST(e,t){for(let n=0;n<t.length;n++){const{name:o,attributes:r,innerBlocks:l}=t[n];ET((0,a.getSaveElement)(o,r,(0,c.createElement)(qg.Content,null)),e,l)}}const CT=[{label:(0,v._x)("Original","Aspect ratio option for dimensions control"),value:"auto"},{label:(0,v._x)("Square - 1:1","Aspect ratio option for dimensions control"),value:"1"},{label:(0,v._x)("Standard - 4:3","Aspect ratio option for dimensions control"),value:"4/3"},{label:(0,v._x)("Portrait - 3:4","Aspect ratio option for dimensions control"),value:"3/4"},{label:(0,v._x)("Classic - 3:2","Aspect ratio option for dimensions control"),value:"3/2"},{label:(0,v._x)("Classic Portrait - 2:3","Aspect ratio option for dimensions control"),value:"2/3"},{label:(0,v._x)("Wide - 16:9","Aspect ratio option for dimensions control"),value:"16/9"},{label:(0,v._x)("Tall - 9:16","Aspect ratio option for dimensions control"),value:"9/16"},{label:(0,v._x)("Custom","Aspect ratio option for dimensions control"),value:"custom",disabled:!0,hidden:!0}];function xT({panelId:e,value:t,onChange:n=(()=>{}),options:o=CT,defaultValue:r=CT[0].value,isShownByDefault:l=!0}){const i=null!=t?t:"auto";return(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>i!==r,label:(0,v.__)("Aspect ratio"),onDeselect:()=>n(void 0),isShownByDefault:l,panelId:e},(0,c.createElement)(m.SelectControl,{label:(0,v.__)("Aspect ratio"),value:i,options:o,onChange:n,size:"__unstable-large",__nextHasNoMarginBottom:!0}))}const BT=[{value:"fill",label:(0,v._x)("Fill","Scale option for dimensions control"),help:(0,v.__)("Fill the space by stretching the content.")},{value:"contain",label:(0,v._x)("Contain","Scale option for dimensions control"),help:(0,v.__)("Fit the content to the space without clipping.")},{value:"cover",label:(0,v._x)("Cover","Scale option for dimensions control"),help:(0,v.__)("Fill the space by clipping what doesn't fit.")},{value:"none",label:(0,v._x)("None","Scale option for dimensions control"),help:(0,v.__)("Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.")},{value:"scale-down",label:(0,v._x)("Scale down","Scale option for dimensions control"),help:(0,v.__)("Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.")}];function IT({panelId:e,value:t,onChange:n,options:o=BT,defaultValue:r=BT[0].value,isShownByDefault:l=!0}){const i=null!=t?t:"fill",a=(0,c.useMemo)((()=>o.reduce(((e,t)=>(e[t.value]=t.help,e)),{})),[o]);return(0,c.createElement)(m.__experimentalToolsPanelItem,{label:(0,v.__)("Scale"),isShownByDefault:l,hasValue:()=>i!==r,onDeselect:()=>n(r),panelId:e},(0,c.createElement)(m.__experimentalToggleGroupControl,{label:(0,v.__)("Scale"),isBlock:!0,help:a[i],value:i,onChange:n,__nextHasNoMarginBottom:!0},o.map((e=>(0,c.createElement)(m.__experimentalToggleGroupControlOption,{key:e.value,...e})))))}function TT(){return TT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},TT.apply(this,arguments)}function MT(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var PT=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,NT=MT((function(e){return PT.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var LT=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),RT=Math.abs,AT=String.fromCharCode,DT=Object.assign;function OT(e){return e.trim()}function zT(e,t,n){return e.replace(t,n)}function VT(e,t){return e.indexOf(t)}function FT(e,t){return 0|e.charCodeAt(t)}function HT(e,t,n){return e.slice(t,n)}function GT(e){return e.length}function UT(e){return e.length}function $T(e,t){return t.push(e),e}var jT=1,WT=1,KT=0,qT=0,ZT=0,YT="";function XT(e,t,n,o,r,l,i){return{value:e,root:t,parent:n,type:o,props:r,children:l,line:jT,column:WT,length:i,return:""}}function QT(e,t){return DT(XT("",null,null,"",null,null,0),e,{length:-e.length},t)}function JT(){return ZT=qT>0?FT(YT,--qT):0,WT--,10===ZT&&(WT=1,jT--),ZT}function eM(){return ZT=qT<KT?FT(YT,qT++):0,WT++,10===ZT&&(WT=1,jT++),ZT}function tM(){return FT(YT,qT)}function nM(){return qT}function oM(e,t){return HT(YT,e,t)}function rM(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lM(e){return jT=WT=1,KT=GT(YT=e),qT=0,[]}function iM(e){return YT="",e}function aM(e){return OT(oM(qT-1,uM(91===e?e+2:40===e?e+1:e)))}function sM(e){for(;(ZT=tM())&&ZT<33;)eM();return rM(e)>2||rM(ZT)>3?"":" "}function cM(e,t){for(;--t&&eM()&&!(ZT<48||ZT>102||ZT>57&&ZT<65||ZT>70&&ZT<97););return oM(e,nM()+(t<6&&32==tM()&&32==eM()))}function uM(e){for(;eM();)switch(ZT){case e:return qT;case 34:case 39:34!==e&&39!==e&&uM(ZT);break;case 40:41===e&&uM(e);break;case 92:eM()}return qT}function dM(e,t){for(;eM()&&e+ZT!==57&&(e+ZT!==84||47!==tM()););return"/*"+oM(t,qT-1)+"*"+AT(47===e?e:eM())}function pM(e){for(;!rM(tM());)eM();return oM(e,qT)}var mM="-ms-",fM="-moz-",gM="-webkit-",hM="comm",bM="rule",vM="decl",_M="@keyframes";function kM(e,t){for(var n="",o=UT(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function yM(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case vM:return e.return=e.return||e.value;case hM:return"";case _M:return e.return=e.value+"{"+kM(e.children,o)+"}";case bM:e.value=e.props.join(",")}return GT(n=kM(e.children,o))?e.return=e.value+"{"+n+"}":""}function EM(e){return iM(wM("",null,null,null,[""],e=lM(e),0,[0],e))}function wM(e,t,n,o,r,l,i,a,s){for(var c=0,u=0,d=i,p=0,m=0,f=0,g=1,h=1,b=1,v=0,_="",k=r,y=l,E=o,w=_;h;)switch(f=v,v=eM()){case 40:if(108!=f&&58==FT(w,d-1)){-1!=VT(w+=zT(aM(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=aM(v);break;case 9:case 10:case 13:case 32:w+=sM(f);break;case 92:w+=cM(nM()-1,7);continue;case 47:switch(tM()){case 42:case 47:$T(CM(dM(eM(),nM()),t,n),s);break;default:w+="/"}break;case 123*g:a[c++]=GT(w)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:h=0;case 59+u:-1==b&&(w=zT(w,/\f/g,"")),m>0&>(w)-d&&$T(m>32?xM(w+";",o,n,d-1):xM(zT(w," ","")+";",o,n,d-2),s);break;case 59:w+=";";default:if($T(E=SM(w,t,n,c,u,r,a,_,k=[],y=[],d),l),123===v)if(0===u)wM(w,t,E,E,k,l,d,a,y);else switch(99===p&&110===FT(w,3)?100:p){case 100:case 108:case 109:case 115:wM(e,E,E,o&&$T(SM(e,E,E,0,0,r,a,_,r,k=[],d),y),r,y,d,a,o?k:y);break;default:wM(w,E,E,E,[""],y,0,a,y)}}c=u=m=0,g=b=1,_=w="",d=i;break;case 58:d=1+GT(w),m=f;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==JT())continue;switch(w+=AT(v),v*g){case 38:b=u>0?1:(w+="\f",-1);break;case 44:a[c++]=(GT(w)-1)*b,b=1;break;case 64:45===tM()&&(w+=aM(eM())),p=tM(),u=d=GT(_=w+=pM(nM())),v++;break;case 45:45===f&&2==GT(w)&&(g=0)}}return l}function SM(e,t,n,o,r,l,i,a,s,c,u){for(var d=r-1,p=0===r?l:[""],m=UT(p),f=0,g=0,h=0;f<o;++f)for(var b=0,v=HT(e,d+1,d=RT(g=i[f])),_=e;b<m;++b)(_=OT(g>0?p[b]+" "+v:zT(v,/&\f/g,p[b])))&&(s[h++]=_);return XT(e,t,n,0===r?bM:a,s,c,u)}function CM(e,t,n){return XT(e,t,n,hM,AT(ZT),HT(e,2,-2),0)}function xM(e,t,n,o){return XT(e,t,n,vM,HT(e,0,o),HT(e,o+1,-1),o)}var BM=function(e,t,n){for(var o=0,r=0;o=r,r=tM(),38===o&&12===r&&(t[n]=1),!rM(r);)eM();return oM(e,qT)},IM=function(e,t){return iM(function(e,t){var n=-1,o=44;do{switch(rM(o)){case 0:38===o&&12===tM()&&(t[n]=1),e[n]+=BM(qT-1,t,n);break;case 2:e[n]+=aM(o);break;case 4:if(44===o){e[++n]=58===tM()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=AT(o)}}while(o=eM());return e}(lM(e),t))},TM=new WeakMap,MM=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||TM.get(n))&&!o){TM.set(e,!0);for(var r=[],l=IM(t,r),i=n.props,a=0,s=0;a<l.length;a++)for(var c=0;c<i.length;c++,s++)e.props[s]=r[a]?l[a].replace(/&\f/g,i[c]):i[c]+" "+l[a]}}},PM=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function NM(e,t){switch(function(e,t){return 45^FT(e,0)?(((t<<2^FT(e,0))<<2^FT(e,1))<<2^FT(e,2))<<2^FT(e,3):0}(e,t)){case 5103:return gM+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return gM+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return gM+e+fM+e+mM+e+e;case 6828:case 4268:return gM+e+mM+e+e;case 6165:return gM+e+mM+"flex-"+e+e;case 5187:return gM+e+zT(e,/(\w+).+(:[^]+)/,gM+"box-$1$2"+mM+"flex-$1$2")+e;case 5443:return gM+e+mM+"flex-item-"+zT(e,/flex-|-self/,"")+e;case 4675:return gM+e+mM+"flex-line-pack"+zT(e,/align-content|flex-|-self/,"")+e;case 5548:return gM+e+mM+zT(e,"shrink","negative")+e;case 5292:return gM+e+mM+zT(e,"basis","preferred-size")+e;case 6060:return gM+"box-"+zT(e,"-grow","")+gM+e+mM+zT(e,"grow","positive")+e;case 4554:return gM+zT(e,/([^-])(transform)/g,"$1"+gM+"$2")+e;case 6187:return zT(zT(zT(e,/(zoom-|grab)/,gM+"$1"),/(image-set)/,gM+"$1"),e,"")+e;case 5495:case 3959:return zT(e,/(image-set\([^]*)/,gM+"$1$`$1");case 4968:return zT(zT(e,/(.+:)(flex-)?(.*)/,gM+"box-pack:$3"+mM+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+gM+e+e;case 4095:case 3583:case 4068:case 2532:return zT(e,/(.+)-inline(.+)/,gM+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(GT(e)-1-t>6)switch(FT(e,t+1)){case 109:if(45!==FT(e,t+4))break;case 102:return zT(e,/(.+:)(.+)-([^]+)/,"$1"+gM+"$2-$3$1"+fM+(108==FT(e,t+3)?"$3":"$2-$3"))+e;case 115:return~VT(e,"stretch")?NM(zT(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==FT(e,t+1))break;case 6444:switch(FT(e,GT(e)-3-(~VT(e,"!important")&&10))){case 107:return zT(e,":",":"+gM)+e;case 101:return zT(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+gM+(45===FT(e,14)?"inline-":"")+"box$3$1"+gM+"$2$3$1"+mM+"$2box$3")+e}break;case 5936:switch(FT(e,t+11)){case 114:return gM+e+mM+zT(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return gM+e+mM+zT(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return gM+e+mM+zT(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return gM+e+mM+e+e}return e}var LM=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case vM:e.return=NM(e.value,e.length);break;case _M:return kM([QT(e,{value:zT(e.value,"@","@"+gM)})],o);case bM:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return kM([QT(e,{props:[zT(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return kM([QT(e,{props:[zT(t,/:(plac\w+)/,":"+gM+"input-$1")]}),QT(e,{props:[zT(t,/:(plac\w+)/,":-moz-$1")]}),QT(e,{props:[zT(t,/:(plac\w+)/,mM+"input-$1")]})],o)}return""}))}}],RM=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o=e.stylisPlugins||LM;var r,l,i={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;a.push(e)}));var s,c,u,d,p=[yM,(d=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],m=(c=[MM,PM].concat(o,p),u=UT(c),function(e,t,n,o){for(var r="",l=0;l<u;l++)r+=c[l](e,t,n,o)||"";return r});l=function(e,t,n,o){s=n,function(e){kM(EM(e),m)}(e?e+"{"+t.styles+"}":t.styles),o&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new LT({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:l};return f.sheet.hydrate(a),f};var AM={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function DM(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var OM=/[A-Z]|^ms/g,zM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,VM=function(e){return 45===e.charCodeAt(1)},FM=function(e){return null!=e&&"boolean"!=typeof e},HM=DM((function(e){return VM(e)?e:e.replace(OM,"-$&").toLowerCase()})),GM=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(zM,(function(e,t,n){return $M={name:t,styles:n,next:$M},t}))}return 1===AM[e]||VM(e)||"number"!=typeof t||0===t?t:t+"px"};function UM(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return $M={name:n.name,styles:n.styles,next:$M},n.name;if(void 0!==n.styles){var o=n.next;if(void 0!==o)for(;void 0!==o;)$M={name:o.name,styles:o.styles,next:$M},o=o.next;return n.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=UM(e,t,n[r])+";";else for(var l in n){var i=n[l];if("object"!=typeof i)null!=t&&void 0!==t[i]?o+=l+"{"+t[i]+"}":FM(i)&&(o+=HM(l)+":"+GM(l,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var a=UM(e,t,i);switch(l){case"animation":case"animationName":o+=HM(l)+":"+a+";";break;default:o+=l+"{"+a+"}"}}else for(var s=0;s<i.length;s++)FM(i[s])&&(o+=HM(l)+":"+GM(l,i[s])+";")}return o}(e,t,n);case"function":if(void 0!==e){var r=$M,l=n(e);return $M=r,UM(e,t,l)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var $M,jM=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var WM=!!ya.useInsertionEffect&&ya.useInsertionEffect,KM=WM||function(e){return e()},qM=(WM||ya.useLayoutEffect,ya.createContext("undefined"!=typeof HTMLElement?RM({key:"css"}):null));qM.Provider;var ZM=function(e){return(0,ya.forwardRef)((function(t,n){var o=(0,ya.useContext)(qM);return e(t,o,n)}))};var YM=ya.createContext({});var XM=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},QM=NT,JM=function(e){return"theme"!==e},eP=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?QM:JM},tP=function(e,t,n){var o;if(t){var r=t.shouldForwardProp;o=e.__emotion_forwardProp&&r?function(t){return e.__emotion_forwardProp(t)&&r(t)}:r}return"function"!=typeof o&&n&&(o=e.__emotion_forwardProp),o},nP=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return XM(t,n,o),KM((function(){return function(e,t,n){XM(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)})),null},oP=function e(t,n){var o,r,l=t.__emotion_real===t,i=l&&t.__emotion_base||t;void 0!==n&&(o=n.label,r=n.target);var a=tP(t,n,l),s=a||eP(i),c=!s("as");return function(){var u=arguments,d=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&d.push("label:"+o+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],u[0][m])}var f=ZM((function(e,t,n){var o=c&&e.as||i,l="",u=[],p=e;if(null==e.theme){for(var m in p={},e)p[m]=e[m];p.theme=ya.useContext(YM)}"string"==typeof e.className?l=function(e,t,n){var o="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):o+=n+" "})),o}(t.registered,u,e.className):null!=e.className&&(l=e.className+" ");var f=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";$M=void 0;var l=e[0];null==l||void 0===l.raw?(o=!1,r+=UM(n,t,l)):r+=l[0];for(var i=1;i<e.length;i++)r+=UM(n,t,e[i]),o&&(r+=l[i]);jM.lastIndex=0;for(var a,s="";null!==(a=jM.exec(r));)s+="-"+a[1];var c=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+s;return{name:c,styles:r,next:$M}}(d.concat(u),t.registered,p);l+=t.key+"-"+f.name,void 0!==r&&(l+=" "+r);var g=c&&void 0===a?eP(o):s,h={};for(var b in e)c&&"as"===b||g(b)&&(h[b]=e[b]);return h.className=l,h.ref=n,ya.createElement(ya.Fragment,null,ya.createElement(nP,{cache:t,serialized:f,isStringTag:"string"==typeof o}),ya.createElement(o,h))}));return f.displayName=void 0!==o?o:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=i,f.__emotion_styles=d,f.__emotion_forwardProp=a,Object.defineProperty(f,"toString",{value:function(){return"."+r}}),f.withComponent=function(t,o){return e(t,TT({},n,o,{shouldForwardProp:tP(f,o,!0)})).apply(void 0,d)},f}};const rP=oP(m.__experimentalToolsPanelItem,{target:"ef8pe3d0"})({name:"957xgf",styles:"grid-column:span 1"});function lP({panelId:e,value:t={},onChange:n=(()=>{}),units:o,isShownByDefault:r=!0}){var l,i;const a="auto"===t.width?"":null!==(l=t.width)&&void 0!==l?l:"",s="auto"===t.height?"":null!==(i=t.height)&&void 0!==i?i:"",u=e=>o=>{const r={...t};o?r[e]=o:delete r[e],n(r)};return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(rP,{label:(0,v.__)("Width"),isShownByDefault:r,hasValue:()=>""!==a,onDeselect:u("width"),panelId:e},(0,c.createElement)(m.__experimentalUnitControl,{label:(0,v.__)("Width"),placeholder:(0,v.__)("Auto"),labelPosition:"top",units:o,min:0,value:a,onChange:u("width"),size:"__unstable-large"})),(0,c.createElement)(rP,{label:(0,v.__)("Height"),isShownByDefault:r,hasValue:()=>""!==s,onDeselect:u("height"),panelId:e},(0,c.createElement)(m.__experimentalUnitControl,{label:(0,v.__)("Height"),placeholder:(0,v.__)("Auto"),labelPosition:"top",units:o,min:0,value:s,onChange:u("height"),size:"__unstable-large"})))}var iP=function({panelId:e,value:t={},onChange:n=(()=>{}),aspectRatioOptions:o,defaultAspectRatio:r="auto",scaleOptions:l,defaultScale:i="fill",unitsOptions:a}){const s=void 0===t.width||"auto"===t.width?null:t.width,u=void 0===t.height||"auto"===t.height?null:t.height,d=void 0===t.aspectRatio||"auto"===t.aspectRatio?null:t.aspectRatio,p=void 0===t.scale||"fill"===t.scale?null:t.scale,[m,f]=(0,c.useState)(p),[g,h]=(0,c.useState)(d),b=s&&u?"custom":g,v=d||s&&u;return(0,c.createElement)(c.Fragment,null,(0,c.createElement)(xT,{panelId:e,options:o,defaultValue:r,value:b,onChange:e=>{const o={...t};h(e="auto"===e?null:e),e?o.aspectRatio=e:delete o.aspectRatio,e?m?o.scale=m:(o.scale=i,f(i)):delete o.scale,e&&s&&u&&delete o.height,n(o)}}),v&&(0,c.createElement)(IT,{panelId:e,options:l,defaultValue:i,value:m,onChange:e=>{const o={...t};f(e="fill"===e?null:e),e?o.scale=e:delete o.scale,n(o)}}),(0,c.createElement)(lP,{panelId:e,units:a,value:{width:s,height:u},onChange:({width:e,height:o})=>{const r={...t};o="auto"===o?null:o,(e="auto"===e?null:e)?r.width=e:delete r.width,o?r.height=o:delete r.height,e&&o?delete r.aspectRatio:g&&(r.aspectRatio=g),g||!!e==!!o?m?r.scale=m:(r.scale=i,f(i)):delete r.scale,n(r)}}))};const aP=[{label:(0,v._x)("Thumbnail","Image size option for resolution control"),value:"thumbnail"},{label:(0,v._x)("Medium","Image size option for resolution control"),value:"medium"},{label:(0,v._x)("Large","Image size option for resolution control"),value:"large"},{label:(0,v._x)("Full Size","Image size option for resolution control"),value:"full"}];const sP={};Vo(sP,{...i,ExperimentalBlockEditorProvider:Zd,getRichTextValues:function(e=[]){a.__unstableGetBlockProps.skipFilters=!0;const t=[];return ST(t,e),a.__unstableGetBlockProps.skipFilters=!1,t},PrivateInserter:mg,PrivateListView:KE,ResizableBoxPopover:function({clientId:e,resizableBoxProps:t,...n}){return(0,c.createElement)(Cg,{clientId:e,__unstableCoverTarget:!0,__unstablePopoverSlot:"block-toolbar",shift:!1,...n},(0,c.createElement)(m.ResizableBox,{...t}))},BlockInfo:hB,useShouldContextualToolbarShow:cI,cleanEmptyObject:Dl,useBlockEditingMode:xi,BlockQuickNavigation:bB,LayoutStyle:pi,BlockRemovalWarningModal:function({rules:e}){const{clientIds:t,selectPrevious:n,blockNamesForPrompt:o}=(0,f.useSelect)((e=>Fo(e(Go)).getRemovalPromptData())),{clearBlockRemovalPrompt:r,setBlockRemovalRules:l,privateRemoveBlocks:i}=Fo((0,f.useDispatch)(Go));if((0,c.useEffect)((()=>(l(e),()=>{l()})),[e,l]),!o)return;return(0,c.createElement)(m.Modal,{title:(0,v.__)("Are you sure?"),onRequestClose:r,style:{maxWidth:"40rem"}},1===o.length?(0,c.createElement)("p",null,e[o[0]]):(0,c.createElement)("ul",{style:{listStyleType:"disc",paddingLeft:"1rem"}},o.map((t=>(0,c.createElement)("li",{key:t},e[t])))),(0,c.createElement)("p",null,o.length>1?(0,v.__)("Removing these blocks is not advised."):(0,v.__)("Removing this block is not advised.")),(0,c.createElement)(m.__experimentalHStack,{justify:"right"},(0,c.createElement)(m.Button,{variant:"tertiary",onClick:r},(0,v.__)("Cancel")),(0,c.createElement)(m.Button,{variant:"primary",onClick:()=>{i(t,n,!0),r()}},(0,v.__)("Delete"))))},useLayoutClasses:dk,useLayoutStyles:function(e={},t,n){const{layout:o={},style:r={}}=e,l=o?.inherit||o?.contentSize||o?.wideSize?{...o,type:"constrained"}:o||{},i=ai(l?.type||"default"),a=null!==Xr("spacing.blockGap"),s=i?.getLayoutStyle?.({blockName:t,selector:n,layout:o,style:r,hasBlockGapSupport:a});return s},DimensionsTool:iP,ResolutionTool:function({panelId:e,value:t,onChange:n,options:o=aP,defaultValue:r=aP[0].value,isShownByDefault:l=!0}){const i=null!=t?t:r;return(0,c.createElement)(m.__experimentalToolsPanelItem,{hasValue:()=>i!==r,label:(0,v.__)("Resolution"),onDeselect:()=>n(r),isShownByDefault:l,panelId:e},(0,c.createElement)(m.SelectControl,{label:(0,v.__)("Resolution"),value:i,options:o,onChange:n,help:(0,v.__)("Select the size of the source image."),size:"__unstable-large"}))},ReusableBlocksRenameHint:If,useReusableBlocksRenameHint:function(){return(0,f.useSelect)((e=>{var t;return null===(t=e(xf.store).get("core",Bf))||void 0===t||t}),[])},usesContextKey:ix})}(),(window.wp=window.wp||{}).blockEditor=o}();
\ No newline at end of file
/* harmony default export */ function names(e,f){var a={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var d in a)r[a[d]]=d;var l={};e.prototype.toName=function(f){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var d,i,n=r[this.toHex()];if(n)return n;if(null==f?void 0:f.closest){var o=this.toRgb(),t=1/0,b="black";if(!l.length)for(var c in a)l[c]=new e(a[c]).toRgb();for(var g in a){var u=(d=o,i=l[g],Math.pow(d.r-i.r,2)+Math.pow(d.g-i.g,2)+Math.pow(d.b-i.b,2));u<t&&(t=u,b=g)}return b}};f.string.push([function(f){var r=f.toLowerCase(),d="transparent"===r?"#0000":a[r];return d?new e(d).toRgb():null},"name"])}
;// CONCATENATED MODULE: ./node_modules/fast-average-color/dist/index.esm.js
-/*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */
+/*! Fast Average Color | © 2023 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */
function toHex(num) {
var str = num.toString(16);
return str.length === 1 ? '0' + str : str;
return false;
}
+var DEFAULT_DOMINANT_DIVIDER = 24;
function dominantAlgorithm(arr, len, options) {
var colorHash = {};
- var divider = 24;
+ var divider = options.dominantDivider || DEFAULT_DOMINANT_DIVIDER;
var ignoredColor = options.ignoredColor;
var step = options.step;
var max = [0, 0, 0, 0, 0];
this.canvas = null;
this.ctx = null;
}
- /**
- * Get asynchronously the average color from not loaded image.
- */
FastAverageColor.prototype.getColorAsync = function (resource, options) {
if (!resource) {
- return Promise.reject(getError('call .getColorAsync() without resource.'));
+ return Promise.reject(getError('call .getColorAsync() without resource'));
}
if (typeof resource === 'string') {
// Web workers
options = options || {};
var defaultColor = getDefaultColor(options);
if (!resource) {
- var error = getError('call .getColor(null) without resource');
+ var error = getError('call .getColor() without resource');
outputError(error, options.silent);
return this.prepareResult(defaultColor, error);
}
return algorithm(arr, len, {
defaultColor: defaultColor,
ignoredColor: prepareIgnoredColor(options.ignoredColor),
- step: step
+ step: step,
+ dominantDivider: options.dominantDivider,
});
};
/**
};
var onerror = function () {
unbindEvents();
- reject(getError("Error loading image \"".concat(resource.src, "\".")));
+ reject(getError("Error loading image \"".concat(resource.src, "\"")));
};
var onabort = function () {
unbindEvents();
}
};
-/* harmony default export */ var image_deprecated = ([image_deprecated_v6, image_deprecated_v5, image_deprecated_v4, image_deprecated_v3, image_deprecated_v2, image_deprecated_v1]);
+/**
+ * Deprecation for converting to string width and height block attributes and
+ * removing the width and height img element attributes which are not needed
+ * as they get added by the TODO hook.
+ *
+ * @see https://github.com/WordPress/gutenberg/pull/53274
+ */
+
+const image_deprecated_v7 = {
+ attributes: {
+ align: {
+ type: 'string'
+ },
+ url: {
+ type: 'string',
+ source: 'attribute',
+ selector: 'img',
+ attribute: 'src',
+ __experimentalRole: 'content'
+ },
+ alt: {
+ type: 'string',
+ source: 'attribute',
+ selector: 'img',
+ attribute: 'alt',
+ default: '',
+ __experimentalRole: 'content'
+ },
+ caption: {
+ type: 'string',
+ source: 'html',
+ selector: 'figcaption',
+ __experimentalRole: 'content'
+ },
+ title: {
+ type: 'string',
+ source: 'attribute',
+ selector: 'img',
+ attribute: 'title',
+ __experimentalRole: 'content'
+ },
+ href: {
+ type: 'string',
+ source: 'attribute',
+ selector: 'figure > a',
+ attribute: 'href',
+ __experimentalRole: 'content'
+ },
+ rel: {
+ type: 'string',
+ source: 'attribute',
+ selector: 'figure > a',
+ attribute: 'rel'
+ },
+ linkClass: {
+ type: 'string',
+ source: 'attribute',
+ selector: 'figure > a',
+ attribute: 'class'
+ },
+ id: {
+ type: 'number',
+ __experimentalRole: 'content'
+ },
+ width: {
+ type: 'number'
+ },
+ height: {
+ type: 'number'
+ },
+ aspectRatio: {
+ type: 'string'
+ },
+ scale: {
+ type: 'string'
+ },
+ sizeSlug: {
+ type: 'string'
+ },
+ linkDestination: {
+ type: 'string'
+ },
+ linkTarget: {
+ type: 'string',
+ source: 'attribute',
+ selector: 'figure > a',
+ attribute: 'target'
+ }
+ },
+ supports: {
+ anchor: true,
+ behaviors: {
+ lightbox: true
+ },
+ color: {
+ text: false,
+ background: false
+ },
+ filter: {
+ duotone: true
+ },
+ __experimentalBorder: {
+ color: true,
+ radius: true,
+ width: true,
+ __experimentalSkipSerialization: true,
+ __experimentalDefaultControls: {
+ color: true,
+ radius: true,
+ width: true
+ }
+ }
+ },
+
+ migrate({
+ width,
+ height,
+ ...attributes
+ }) {
+ return { ...attributes,
+ width: `${width}px`,
+ height: `${height}px`
+ };
+ },
+
+ save({
+ attributes
+ }) {
+ const {
+ url,
+ alt,
+ caption,
+ align,
+ href,
+ rel,
+ linkClass,
+ width,
+ height,
+ aspectRatio,
+ scale,
+ id,
+ linkTarget,
+ sizeSlug,
+ title
+ } = attributes;
+ const newRel = !rel ? undefined : rel;
+ const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetBorderClassesAndStyles)(attributes);
+ const classes = classnames_default()({
+ [`align${align}`]: align,
+ [`size-${sizeSlug}`]: sizeSlug,
+ 'is-resized': width || height,
+ 'has-custom-border': !!borderProps.className || borderProps.style && Object.keys(borderProps.style).length > 0
+ });
+ const imageClasses = classnames_default()(borderProps.className, {
+ [`wp-image-${id}`]: !!id
+ });
+ const image = (0,external_wp_element_namespaceObject.createElement)("img", {
+ src: url,
+ alt: alt,
+ className: imageClasses || undefined,
+ style: { ...borderProps.style,
+ aspectRatio,
+ objectFit: scale,
+ width,
+ height
+ },
+ width: width,
+ height: height,
+ title: title
+ });
+ const figure = (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, href ? (0,external_wp_element_namespaceObject.createElement)("a", {
+ className: linkClass,
+ href: href,
+ target: linkTarget,
+ rel: newRel
+ }, image) : image, !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, {
+ className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'),
+ tagName: "figcaption",
+ value: caption
+ }));
+ return (0,external_wp_element_namespaceObject.createElement)("figure", { ...external_wp_blockEditor_namespaceObject.useBlockProps.save({
+ className: classes
+ })
+ }, figure);
+ }
+
+};
+/* harmony default export */ var image_deprecated = ([image_deprecated_v7, image_deprecated_v6, image_deprecated_v5, image_deprecated_v4, image_deprecated_v3, image_deprecated_v2, image_deprecated_v1]);
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/crop.js
scale,
linkTarget,
sizeSlug
- } = attributes;
+ } = attributes; // The only supported unit is px, so we can parseInt to strip the px here.
+
+ const numericWidth = width ? parseInt(width, 10) : undefined;
+ const numericHeight = height ? parseInt(height, 10) : undefined;
const imageRef = (0,external_wp_element_namespaceObject.useRef)();
const prevCaption = (0,external_wp_compose_namespaceObject.usePrevious)(caption);
const [showCaption, setShowCaption] = (0,external_wp_element_namespaceObject.useState)(!!caption);
function updateAlignment(nextAlign) {
const extraUpdatedAttributes = ['wide', 'full'].includes(nextAlign) ? {
width: undefined,
- height: undefined
+ height: undefined,
+ aspectRatio: undefined,
+ scale: undefined
} : {};
setAttributes({ ...extraUpdatedAttributes,
align: nextAlign
href: "https://www.w3.org/WAI/tutorials/images/decision-tree"
}, (0,external_wp_i18n_namespaceObject.__)('Describe the purpose of the image.')), (0,external_wp_element_namespaceObject.createElement)("br", null), (0,external_wp_i18n_namespaceObject.__)('Leave empty if decorative.')),
__nextHasNoMarginBottom: true
- })), (0,external_wp_element_namespaceObject.createElement)(DimensionsTool, {
+ })), isResizable && (0,external_wp_element_namespaceObject.createElement)(DimensionsTool, {
value: {
- width: width && `${width}px`,
- height: height && `${height}px`,
+ width,
+ height,
scale,
aspectRatio
},
// for values that are removed since setAttributes
// doesn't do anything with keys that aren't set.
setAttributes({
- width: newValue.width && parseInt(newValue.width, 10),
- height: newValue.height && parseInt(newValue.height, 10),
+ width: newValue.width,
+ height: newValue.height,
scale: newValue.scale,
aspectRatio: newValue.aspectRatio
});
img = (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalImageEditor, {
id: id,
url: url,
- width: width,
- height: height,
+ width: numericWidth,
+ height: numericHeight,
clientWidth: fallbackClientWidth,
naturalHeight: naturalHeight,
naturalWidth: naturalWidth,
}
}, img);
} else {
- const ratio = aspectRatio && evalAspectRatio(aspectRatio) || width && height && width / height || naturalWidth / naturalHeight || 1;
- const currentWidth = !width && height ? height * ratio : width;
- const currentHeight = !height && width ? width / ratio : height;
+ const numericRatio = aspectRatio && evalAspectRatio(aspectRatio);
+ const customRatio = numericWidth / numericHeight;
+ const ratio = numericRatio || customRatio || naturalWidth / naturalHeight || 1;
+ const currentWidth = !numericWidth && numericHeight ? numericHeight * ratio : numericWidth;
+ const currentHeight = !numericHeight && numericWidth ? numericWidth / ratio : numericHeight;
const minWidth = naturalWidth < naturalHeight ? constants_MIN_SIZE : constants_MIN_SIZE * ratio;
const minHeight = naturalHeight < naturalWidth ? constants_MIN_SIZE : constants_MIN_SIZE / ratio; // With the current implementation of ResizableBox, an image needs an
// explicit pixel value for the max-width. In absence of being able to
},
onResizeStart: onResizeStart,
onResizeStop: (event, direction, elt) => {
- onResizeStop();
+ onResizeStop(); // Since the aspect ratio is locked when resizing, we can
+ // use the width of the resized element to calculate the
+ // height in CSS to prevent stretching when the max-width
+ // is reached.
+
setAttributes({
- width: elt.offsetWidth,
- height: elt.offsetHeight,
- aspectRatio: undefined
+ width: `${elt.offsetWidth}px`,
+ height: 'auto',
+ aspectRatio: `${ratio}`
});
},
resizeRatio: align === 'center' ? 2 : 1
width,
height
},
- width: width,
- height: height,
title: title
});
const figure = (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, href ? (0,external_wp_element_namespaceObject.createElement)("a", {
__experimentalRole: "content"
},
width: {
- type: "number"
+ type: "string"
},
height: {
- type: "number"
+ type: "string"
},
aspectRatio: {
type: "string"
}, footnotes.map(({
id,
content
- }) => (0,external_wp_element_namespaceObject.createElement)("li", {
- key: id
+ }) =>
+ /* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */
+ (0,external_wp_element_namespaceObject.createElement)("li", {
+ key: id,
+ onMouseDown: event => {
+ // When clicking on the list item (not on descendants),
+ // focus the rich text element since it's only 1px wide when
+ // empty.
+ if (event.target === event.currentTarget) {
+ event.target.firstElementChild.focus();
+ event.preventDefault();
+ }
+ }
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, {
id: id,
tagName: "span",
attributes: {
'data-fn': 'data-fn'
},
+ interactive: true,
contentEditable: false,
[usesContextKey]: ['postType'],
edit: function Edit({
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
-*/!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var l=a.apply(null,n);l&&e.push(l)}}else if("object"===r){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)o.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},5619:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,a,r;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(a=o;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(a of t.entries())if(!n.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],n.get(a[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(a of t.entries())if(!n.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((o=t.length)!=n.length)return!1;for(a=o;0!=a--;)if(t[a]!==n[a])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=o;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,r[a]))return!1;for(a=o;0!=a--;){var l=r[a];if(!e(t[l],n[l]))return!1}return!0}return t!=t&&n!=n}},4793:function(e){var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","ß":"ss","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),a=new RegExp(n,"");function r(e){return t[e]}var l=function(e){return e.replace(o,r)};e.exports=l,e.exports.has=function(e){return!!e.match(a)},e.exports.remove=l}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){"use strict";n.r(o),n.d(o,{__experimentalGetCoreBlocks:function(){return LE},__experimentalRegisterExperimentalCoreBlocks:function(){return VE},registerCoreBlocks:function(){return AE}});var e={};n.r(e),n.d(e,{init:function(){return at},metadata:function(){return tt},name:function(){return nt},settings:function(){return ot}});var t={};n.r(t),n.d(t,{init:function(){return xt},metadata:function(){return vt},name:function(){return yt},settings:function(){return kt}});var a={};n.r(a),n.d(a,{init:function(){return Zt},metadata:function(){return jt},name:function(){return qt},settings:function(){return Wt}});var r={};n.r(r),n.d(r,{init:function(){return vn},metadata:function(){return _n},name:function(){return bn},settings:function(){return fn}});var l={};n.r(l),n.d(l,{init:function(){return Rn},metadata:function(){return In},name:function(){return Mn},settings:function(){return zn}});var i={};n.r(i),n.d(i,{init:function(){return $n},metadata:function(){return Vn},name:function(){return Dn},settings:function(){return Fn}});var s={};n.r(s),n.d(s,{init:function(){return Zn},metadata:function(){return jn},name:function(){return qn},settings:function(){return Wn}});var c={};n.r(c),n.d(c,{init:function(){return ao},metadata:function(){return to},name:function(){return no},settings:function(){return oo}});var u={};n.r(u),n.d(u,{init:function(){return po},metadata:function(){return co},name:function(){return uo},settings:function(){return mo}});var m={};n.r(m),n.d(m,{init:function(){return ko},metadata:function(){return fo},name:function(){return vo},settings:function(){return yo}});var p={};n.r(p),n.d(p,{init:function(){return Do},metadata:function(){return Lo},name:function(){return Ao},settings:function(){return Vo}});var d={};n.r(d),n.d(d,{init:function(){return Jo},metadata:function(){return Zo},name:function(){return Qo},settings:function(){return Ko}});var g={};n.r(g),n.d(g,{init:function(){return ta},metadata:function(){return Yo},name:function(){return Xo},settings:function(){return ea}});var h={};n.r(h),n.d(h,{init:function(){return sa},metadata:function(){return ra},name:function(){return la},settings:function(){return ia}});var _={};n.r(_),n.d(_,{init:function(){return da},metadata:function(){return ua},name:function(){return ma},settings:function(){return pa}});var b={};n.r(b),n.d(b,{init:function(){return ka},metadata:function(){return fa},name:function(){return va},settings:function(){return ya}});var f={};n.r(f),n.d(f,{init:function(){return Sa},metadata:function(){return wa},name:function(){return Ca},settings:function(){return Ea}});var v={};n.r(v),n.d(v,{init:function(){return Ma},metadata:function(){return Na},name:function(){return Pa},settings:function(){return Ia}});var y={};n.r(y),n.d(y,{init:function(){return Ua},metadata:function(){return $a},name:function(){return Ga},settings:function(){return Oa}});var k={};n.r(k),n.d(k,{init:function(){return Ka},metadata:function(){return Wa},name:function(){return Za},settings:function(){return Qa}});var x={};n.r(x),n.d(x,{init:function(){return ar},metadata:function(){return tr},name:function(){return nr},settings:function(){return or}});var w={};n.r(w),n.d(w,{init:function(){return ur},metadata:function(){return ir},name:function(){return sr},settings:function(){return cr}});var C={};n.r(C),n.d(C,{init:function(){return _r},metadata:function(){return dr},name:function(){return gr},settings:function(){return hr}});var E={};n.r(E),n.d(E,{init:function(){return Cr},metadata:function(){return kr},name:function(){return xr},settings:function(){return wr}});var S={};n.r(S),n.d(S,{init:function(){return mi},metadata:function(){return si},name:function(){return ci},settings:function(){return ui}});var B={};n.r(B),n.d(B,{init:function(){return fi},metadata:function(){return hi},name:function(){return _i},settings:function(){return bi}});var T={};n.r(T),n.d(T,{init:function(){return is},metadata:function(){return as},name:function(){return rs},settings:function(){return ls}});var N={};n.r(N),n.d(N,{init:function(){return Es},metadata:function(){return xs},name:function(){return ws},settings:function(){return Cs}});var P={};n.r(P),n.d(P,{init:function(){return Dc},metadata:function(){return Lc},name:function(){return Ac},settings:function(){return Vc}});var I={};n.r(I),n.d(I,{init:function(){return ou},metadata:function(){return eu},name:function(){return tu},settings:function(){return nu}});var M={};n.r(M),n.d(M,{init:function(){return Nu},metadata:function(){return Su},name:function(){return Bu},settings:function(){return Tu}});var z={};n.r(z),n.d(z,{init:function(){return Hu},metadata:function(){return Mu},name:function(){return zu},settings:function(){return Ru}});var R={};n.r(R),n.d(R,{init:function(){return Ou},metadata:function(){return Fu},name:function(){return $u},settings:function(){return Gu}});var H={};n.r(H),n.d(H,{init:function(){return hm},metadata:function(){return pm},name:function(){return dm},settings:function(){return gm}});var L={};n.r(L),n.d(L,{init:function(){return ym},metadata:function(){return bm},name:function(){return fm},settings:function(){return vm}});var A={};n.r(A),n.d(A,{init:function(){return Pm},metadata:function(){return Bm},name:function(){return Tm},settings:function(){return Nm}});var V={};n.r(V),n.d(V,{init:function(){return ep},metadata:function(){return Jm},name:function(){return Ym},settings:function(){return Xm}});var D={};n.r(D),n.d(D,{init:function(){return yp},metadata:function(){return bp},name:function(){return fp},settings:function(){return vp}});var F={};n.r(F),n.d(F,{init:function(){return Ep},metadata:function(){return xp},name:function(){return wp},settings:function(){return Cp}});var $={};n.r($),n.d($,{init:function(){return pd},metadata:function(){return cd},name:function(){return ud},settings:function(){return md}});var G={};n.r(G),n.d(G,{init:function(){return vd},metadata:function(){return _d},name:function(){return bd},settings:function(){return fd}});var O={};n.r(O),n.d(O,{init:function(){return Sd},metadata:function(){return wd},name:function(){return Cd},settings:function(){return Ed}});var U={};n.r(U),n.d(U,{init:function(){return Jg},metadata:function(){return Zg},name:function(){return Qg},settings:function(){return Kg}});var j={};n.r(j),n.d(j,{init:function(){return uh},metadata:function(){return ih},name:function(){return sh},settings:function(){return ch}});var q={};n.r(q),n.d(q,{init:function(){return kh},metadata:function(){return fh},name:function(){return vh},settings:function(){return yh}});var W={};n.r(W),n.d(W,{init:function(){return Bh},metadata:function(){return Ch},name:function(){return Eh},settings:function(){return Sh}});var Z={};n.r(Z),n.d(Z,{init:function(){return Mh},metadata:function(){return Nh},name:function(){return Ph},settings:function(){return Ih}});var Q={};n.r(Q),n.d(Q,{init:function(){return Uh},metadata:function(){return $h},name:function(){return Gh},settings:function(){return Oh}});var K={};n.r(K),n.d(K,{init:function(){return Qh},metadata:function(){return qh},name:function(){return Wh},settings:function(){return Zh}});var J={};n.r(J),n.d(J,{init:function(){return h_},metadata:function(){return p_},name:function(){return d_},settings:function(){return g_}});var Y={};n.r(Y),n.d(Y,{init:function(){return x_},metadata:function(){return v_},name:function(){return y_},settings:function(){return k_}});var X={};n.r(X),n.d(X,{init:function(){return T_},metadata:function(){return E_},name:function(){return S_},settings:function(){return B_}});var ee={};n.r(ee),n.d(ee,{init:function(){return z_},metadata:function(){return P_},name:function(){return I_},settings:function(){return M_}});var te={};n.r(te),n.d(te,{init:function(){return F_},metadata:function(){return A_},name:function(){return V_},settings:function(){return D_}});var ne={};n.r(ne),n.d(ne,{init:function(){return j_},metadata:function(){return G_},name:function(){return O_},settings:function(){return U_}});var oe={};n.r(oe),n.d(oe,{init:function(){return K_},metadata:function(){return W_},name:function(){return Z_},settings:function(){return Q_}});var ae={};n.r(ae),n.d(ae,{init:function(){return tb},metadata:function(){return Y_},name:function(){return X_},settings:function(){return eb}});var re={};n.r(re),n.d(re,{init:function(){return pb},metadata:function(){return cb},name:function(){return ub},settings:function(){return mb}});var le={};n.r(le),n.d(le,{init:function(){return kb},metadata:function(){return fb},name:function(){return vb},settings:function(){return yb}});var ie={};n.r(ie),n.d(ie,{init:function(){return Bb},metadata:function(){return Cb},name:function(){return Eb},settings:function(){return Sb}});var se={};n.r(se),n.d(se,{init:function(){return Vb},metadata:function(){return Hb},name:function(){return Lb},settings:function(){return Ab}});var ce={};n.r(ce),n.d(ce,{init:function(){return qb},metadata:function(){return Ob},name:function(){return Ub},settings:function(){return jb}});var ue={};n.r(ue),n.d(ue,{init:function(){return Xb},metadata:function(){return Kb},name:function(){return Jb},settings:function(){return Yb}});var me={};n.r(me),n.d(me,{init:function(){return cf},metadata:function(){return rf},name:function(){return lf},settings:function(){return sf}});var pe={};n.r(pe),n.d(pe,{init:function(){return _f},metadata:function(){return df},name:function(){return gf},settings:function(){return hf}});var de={};n.r(de),n.d(de,{init:function(){return wf},metadata:function(){return yf},name:function(){return kf},settings:function(){return xf}});var ge={};n.r(ge),n.d(ge,{init:function(){return Pf},metadata:function(){return Bf},name:function(){return Tf},settings:function(){return Nf}});var he={};n.r(he),n.d(he,{init:function(){return Kf},metadata:function(){return Wf},name:function(){return Zf},settings:function(){return Qf}});var _e={};n.r(_e),n.d(_e,{init:function(){return oy},metadata:function(){return ey},name:function(){return ty},settings:function(){return ny}});var be={};n.r(be),n.d(be,{init:function(){return sy},metadata:function(){return ry},name:function(){return ly},settings:function(){return iy}});var fe={};n.r(fe),n.d(fe,{init:function(){return by},metadata:function(){return gy},name:function(){return hy},settings:function(){return _y}});var ve={};n.r(ve),n.d(ve,{init:function(){return xy},metadata:function(){return vy},name:function(){return yy},settings:function(){return ky}});var ye={};n.r(ye),n.d(ye,{init:function(){return By},metadata:function(){return Cy},name:function(){return Ey},settings:function(){return Sy}});var ke={};n.r(ke),n.d(ke,{init:function(){return My},metadata:function(){return Ny},name:function(){return Py},settings:function(){return Iy}});var xe={};n.r(xe),n.d(xe,{init:function(){return $y},metadata:function(){return Vy},name:function(){return Dy},settings:function(){return Fy}});var we={};n.r(we),n.d(we,{init:function(){return nk},metadata:function(){return Xy},name:function(){return ek},settings:function(){return tk}});var Ce={};n.r(Ce),n.d(Ce,{init:function(){return ck},metadata:function(){return lk},name:function(){return ik},settings:function(){return sk}});var Ee={};n.r(Ee),n.d(Ee,{init:function(){return dk},metadata:function(){return uk},name:function(){return mk},settings:function(){return pk}});var Se={};n.r(Se),n.d(Se,{init:function(){return fk},metadata:function(){return hk},name:function(){return _k},settings:function(){return bk}});var Be={};n.r(Be),n.d(Be,{init:function(){return Ik},metadata:function(){return Tk},name:function(){return Nk},settings:function(){return Pk}});var Te={};n.r(Te),n.d(Te,{init:function(){return Dk},metadata:function(){return Lk},name:function(){return Ak},settings:function(){return Vk}});var Ne={};n.r(Ne),n.d(Ne,{init:function(){return qk},metadata:function(){return Ok},name:function(){return Uk},settings:function(){return jk}});var Pe={};n.r(Pe),n.d(Pe,{init:function(){return ox},metadata:function(){return ex},name:function(){return tx},settings:function(){return nx}});var Ie={};n.r(Ie),n.d(Ie,{init:function(){return ux},metadata:function(){return ix},name:function(){return sx},settings:function(){return cx}});var Me={};n.r(Me),n.d(Me,{init:function(){return vx},metadata:function(){return _x},name:function(){return bx},settings:function(){return fx}});var ze={};n.r(ze),n.d(ze,{init:function(){return Px},metadata:function(){return Bx},name:function(){return Tx},settings:function(){return Nx}});var Re={};n.r(Re),n.d(Re,{init:function(){return Fx},metadata:function(){return Ax},name:function(){return Vx},settings:function(){return Dx}});var He={};n.r(He),n.d(He,{init:function(){return Yx},metadata:function(){return Qx},name:function(){return Kx},settings:function(){return Jx}});var Le={};n.r(Le),n.d(Le,{init:function(){return zw},metadata:function(){return Pw},name:function(){return Iw},settings:function(){return Mw}});var Ae={};n.r(Ae),n.d(Ae,{init:function(){return Ow},metadata:function(){return Fw},name:function(){return $w},settings:function(){return Gw}});var Ve={};n.r(Ve),n.d(Ve,{init:function(){return Qw},metadata:function(){return qw},name:function(){return Ww},settings:function(){return Zw}});var De={};n.r(De),n.d(De,{init:function(){return EC},metadata:function(){return xC},name:function(){return wC},settings:function(){return CC}});var Fe={};n.r(Fe),n.d(Fe,{init:function(){return PC},metadata:function(){return BC},name:function(){return TC},settings:function(){return NC}});var $e={};n.r($e),n.d($e,{init:function(){return LC},metadata:function(){return zC},name:function(){return RC},settings:function(){return HC}});var Ge={};n.r(Ge),n.d(Ge,{init:function(){return qC},metadata:function(){return OC},name:function(){return UC},settings:function(){return jC}});var Oe={};n.r(Oe),n.d(Oe,{init:function(){return hE},metadata:function(){return pE},name:function(){return dE},settings:function(){return gE}});var Ue={};n.r(Ue),n.d(Ue,{init:function(){return zE},metadata:function(){return PE},name:function(){return IE},settings:function(){return ME}});var je=window.wp.blocks,qe=window.wp.element,We=window.wp.primitives;var Ze=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"}));function Qe(e){if(!e)return;const{metadata:t,settings:n,name:o}=e;return(0,je.registerBlockType)({name:o,...t},n)}var Ke=window.wp.components,Je=window.wp.i18n,Ye=window.wp.blockEditor,Xe=window.wp.serverSideRender,et=n.n(Xe);const tt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-archives-editor"},{name:nt}=tt,ot={icon:Ze,example:{},edit:function({attributes:e,setAttributes:t}){const{showLabel:n,showPostCounts:o,displayAsDropdown:a,type:r}=e;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display as dropdown"),checked:a,onChange:()=>t({displayAsDropdown:!a})}),a&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show label"),checked:n,onChange:()=>t({showLabel:!n})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:o,onChange:()=>t({showPostCounts:!o})}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Group by:"),options:[{label:(0,Je.__)("Year"),value:"yearly"},{label:(0,Je.__)("Month"),value:"monthly"},{label:(0,Je.__)("Week"),value:"weekly"},{label:(0,Je.__)("Day"),value:"daily"}],value:r,onChange:e=>t({type:e})}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e}))))}},at=()=>Qe({name:nt,metadata:tt,settings:ot});var rt=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),lt=n(4403),it=n.n(lt),st=window.wp.url,ct=window.wp.coreData,ut=window.wp.data;function mt(e){const t=e?e[0]:24,n=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*n)}}function pt(){const{avatarURL:e}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n}));return e}const dt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var gt=function({value:e,onChange:t}){const[n,o]=(0,qe.useState)(),a=(0,ut.useSelect)((e=>{const{getUsers:t}=e(ct.store);return t(dt)}),[]);if(!a)return null;const r=a.map((e=>({label:e.name,value:e.id})));return(0,qe.createElement)(Ke.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("User"),help:(0,Je.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:n||r,onFilterValueChange:e=>o(r.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})};const ht=({setAttributes:e,avatar:t,attributes:n,selectUser:o})=>(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:n?.size,value:n?.size}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to user profile"),onChange:()=>e({isLink:!n.isLink}),checked:n.isLink}),n.isLink&&(0,qe.createElement)(Ke.ToggleControl,{label:(0,Je.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===n.linkTarget}),o&&(0,qe.createElement)(gt,{value:n?.userId,onChange:t=>{e({userId:t})}}))),_t=({setAttributes:e,attributes:t,avatar:n,blockProps:o,isSelected:a})=>{const r=(0,Ye.__experimentalUseBorderProps)(t),l=(0,st.addQueryArgs)((0,st.removeQueryArgs)(n?.src,["s"]),{s:2*t?.size});return(0,qe.createElement)("div",{...o},(0,qe.createElement)(Ke.ResizableBox,{size:{width:t.size,height:t.size},showHandle:a,onResizeStop:(n,o,a,r)=>{e({size:parseInt(t.size+(r.height||r.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Je.isRTL)(),bottom:!0,left:(0,Je.isRTL)()},minWidth:n.minSize,maxWidth:n.maxSize},(0,qe.createElement)("img",{src:l,alt:n.alt,className:it()("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",r.className),style:r.style})))},bt=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{commentId:a}=t,r=(0,Ye.useBlockProps)(),l=function({commentId:e}){const[t]=(0,ct.useEntityProp)("root","comment","author_avatar_urls",e),[n]=(0,ct.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,a=t?Object.keys(t):null,{minSize:r,maxSize:l}=mt(a),i=pt();return{src:o?o[o.length-1]:i,minSize:r,maxSize:l,alt:n?(0,Je.sprintf)((0,Je.__)("%s Avatar"),n):(0,Je.__)("Default Avatar")}}({commentId:a});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ht,{avatar:l,setAttributes:n,attributes:e,selectUser:!1}),e.isLink?(0,qe.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:r,isSelected:o,setAttributes:n})):(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:r,isSelected:o,setAttributes:n}))},ft=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{postId:a,postType:r}=t,l=function({userId:e,postId:t,postType:n}){const{authorDetails:o}=(0,ut.useSelect)((o=>{const{getEditedEntityRecord:a,getUser:r}=o(ct.store);if(e)return{authorDetails:r(e)};const l=a("postType",n,t)?.author;return{authorDetails:l?r(l):null}}),[n,t,e]),a=o?.avatar_urls?Object.values(o.avatar_urls):null,r=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:l,maxSize:i}=mt(r),s=pt();return{src:a?a[a.length-1]:s,minSize:l,maxSize:i,alt:o?(0,Je.sprintf)((0,Je.__)("%s Avatar"),o?.name):(0,Je.__)("Default Avatar")}}({userId:e?.userId,postId:a,postType:r}),i=(0,Ye.useBlockProps)();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ht,{selectUser:!0,attributes:e,avatar:l,setAttributes:n}),(0,qe.createElement)("div",null,e.isLink?(0,qe.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:n})):(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:n})))};const vt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"}},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:yt}=vt,kt={icon:rt,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,qe.createElement)(bt,{...e}):(0,qe.createElement)(ft,{...e})}},xt=()=>Qe({name:yt,metadata:vt,settings:kt});var wt=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),Ct=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:a,src:r}=e;return(0,qe.createElement)("figure",null,(0,qe.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:o,preload:a}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n}))}}],Et=window.wp.blob;var St=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})),Bt=window.wp.notices,Tt=window.wp.compose;const Nt=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],Pt="wp-embed";var It=window.lodash,Mt=n(3827),zt=n.n(Mt);function Rt(e,t){var n,o,a=0;function r(){var r,l,i=n,s=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(l=0;l<s;l++)if(i.args[l]!==arguments[l]){i=i.next;continue e}return i!==n&&(i===o&&(o=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n,i.prev=null,n.prev=i,n=i),i.val}i=i.next}for(r=new Array(s),l=0;l<s;l++)r[l]=arguments[l];return i={args:r,val:e.apply(null,r)},n?(n.prev=i,i.next=n):o=i,a===t.maxSize?(o=o.prev).next=null:a++,n=i,i.val}return t=t||{},r.clear=function(){n=null,o=null,a=0},r}const{name:Ht}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},Lt=e=>e&&e.includes('class="wp-embedded-content"'),At=(e,t={})=>{const{preview:n,attributes:o={}}=e,{url:a,providerNameSlug:r,type:l,...i}=o;if(!a||!(0,je.getBlockType)(Ht))return;const s=(e=>(0,je.getBlockVariations)(Ht)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(a),c="wordpress"===r||l===Pt;if(!c&&s&&(s.attributes.providerNameSlug!==r||!r))return(0,je.createBlock)(Ht,{url:a,...i,...s.attributes});const u=(0,je.getBlockVariations)(Ht)?.find((({name:e})=>"wordpress"===e));return u&&n&&Lt(n.html)&&!c?(0,je.createBlock)(Ht,{url:a,...u.attributes,...t}):void 0},Vt=e=>{if(!e)return e;const t=Nt.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1});return zt()(e,t)};function Dt(e,t,n=!0){if(!n)return Vt(t);const o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;const a=o.body.querySelector("iframe");if(a&&a.height&&a.width){const e=(a.width/a.height).toFixed(2);for(let n=0;n<Nt.length;n++){const o=Nt[n];if(e>=o.ratio){return e-o.ratio>.1?Vt(t):zt()(Vt(t),o.className,"wp-has-aspect-ratio")}}}return t}const Ft=Rt(((e,t,n,o,a=!0)=>{if(!e)return{};const r={};let{type:l="rich"}=e;const{html:i,provider_name:s}=e,c=(0,It.kebabCase)((s||t).toLowerCase());return Lt(i)&&(l=Pt),(i||"photo"===l)&&(r.type=l,r.providerNameSlug=c),(u=n)&&Nt.some((({className:e})=>u.includes(e)))||(r.className=Dt(i,n,o&&a)),r;var u})),$t=["audio"];var Gt=function({attributes:e,className:t,setAttributes:n,onReplace:o,isSelected:a,insertBlocksAfter:r}){const{id:l,autoplay:i,caption:s,loop:c,preload:u,src:m}=e,p=(0,Tt.usePrevious)(s),[d,g]=(0,qe.useState)(!!s),h=!l&&(0,Et.isBlobURL)(m),_=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t().mediaUpload}),[]);(0,qe.useEffect)((()=>{if(!l&&(0,Et.isBlobURL)(m)){const e=(0,Et.getBlobByURL)(m);e&&_({filesList:[e],onFileChange:([e])=>x(e),onError:e=>k(e),allowedTypes:$t})}}),[]),(0,qe.useEffect)((()=>{s&&!p&&g(!0)}),[s,p]);const b=(0,qe.useCallback)((e=>{e&&!s&&e.focus()}),[s]);function f(e){return t=>{n({[e]:t})}}function v(e){if(e!==m){const t=At({attributes:{url:e}});if(void 0!==t&&o)return void o(t);n({src:e,id:void 0})}}(0,qe.useEffect)((()=>{a||s||g(!1)}),[a,s]);const{createErrorNotice:y}=(0,ut.useDispatch)(Bt.store);function k(e){y(e,{type:"snackbar"})}function x(e){e&&e.url?n({src:e.url,id:e.id,caption:e.caption}):n({src:void 0,id:void 0,caption:void 0})}const w=it()(t,{"is-transient":h}),C=(0,Ye.useBlockProps)({className:w});return m?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{g(!d),d&&s&&n({caption:void 0})},icon:St,isPressed:d,label:d?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:$t,accept:"audio/*",onSelect:x,onSelectURL:v,onError:k})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Autoplay"),onChange:f("autoplay"),checked:i,help:function(e){return e?(0,Je.__)("Autoplay may cause usability issues for some users."):null}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Loop"),onChange:f("loop"),checked:c}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:e=>n({preload:e||void 0}),options:[{value:"",label:(0,Je.__)("Browser default")},{value:"auto",label:(0,Je.__)("Auto")},{value:"metadata",label:(0,Je.__)("Metadata")},{value:"none",label:(0,Je._x)("None","Preload value")}]}))),(0,qe.createElement)("figure",{...C},(0,qe.createElement)(Ke.Disabled,{isDisabled:!a},(0,qe.createElement)("audio",{controls:"controls",src:m})),h&&(0,qe.createElement)(Ke.Spinner,null),d&&(!Ye.RichText.isEmpty(s)||a)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),ref:b,"aria-label":(0,Je.__)("Audio caption text"),placeholder:(0,Je.__)("Add caption"),value:s,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,je.createBlock)((0,je.getDefaultBlockName)()))}))):(0,qe.createElement)("div",{...C},(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:wt}),onSelect:x,onSelectURL:v,accept:"audio/*",allowedTypes:$t,value:e,onError:k}))};const Ot={from:[{type:"files",isMatch(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform(e){const t=e[0];return(0,je.createBlock)("core/audio",{src:(0,Et.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:n,ogg:o,wav:a,wma:r}})=>e||t||n||o||a||r},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};var Ut=Ot;const jt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},id:{type:"number",__experimentalRole:"content"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:qt}=jt,Wt={icon:wt,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Ut,deprecated:Ct,edit:Gt,save:function({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:a,src:r}=e;return r&&(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:o,preload:a}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n,className:(0,Ye.__experimentalGetElementClassName)("caption")}))}},Zt=()=>Qe({name:qt,metadata:jt,settings:Wt});var Qt=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})),Kt=window.wp.privateApis;const{lock:Jt,unlock:Yt}=(0,Kt.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/block-library"),{cleanEmptyObject:Xt}=Yt(Ye.privateApis);function en(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...n}=e.style.typography;return{...e,style:Xt({...e.style,typography:n}),fontFamily:t.split("|").pop()}}const tn=e=>{const{borderRadius:t,...n}=e,o=[t,n.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return o?{...n,style:{...n.style,border:{...n.style?.border,radius:`${o}px`}}}:n};const nn=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:n,customBackgroundColor:o,customGradient:a,...r}=e;return{...r,style:t}},on=e=>{const{color:t,textColor:n,...o}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return nn(o)},an={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},rn={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),d=it()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...m.style,...p.style},h=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:h})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:o,rel:a}))}},ln={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),d=it()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...m.style,...p.style},h=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:h})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:o,rel:a}))},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}},sn=[rn,ln,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){return"number"==typeof e?.border?.radius},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=r?.border?.radius,m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=it()("wp-block-button__link",m.className,{"no-border-radius":0===r?.border?.radius}),d={borderRadius:u||void 0,...m.style},g=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:g})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:p,href:s,title:i,style:d,value:l,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:a,text:r,title:l,url:i,width:s}=e,c=(0,Ye.__experimentalGetColorClassesAndStyles)(e),u=it()("wp-block-button__link",c.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...c.style},p=it()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:p})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:i,title:l,style:m,value:r,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:a,text:r,title:l,url:i,width:s}=e,c=(0,Ye.__experimentalGetColorClassesAndStyles)(e),u=it()("wp-block-button__link",c.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...c.style},p=it()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:p})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:i,title:l,style:m,value:r,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:n,rel:o,text:a,title:r,url:l}=e,i=it()("wp-block-button__link",{"no-border-radius":0===t}),s={borderRadius:t?t+"px":void 0};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:i,href:l,title:r,style:s,value:a,target:n,rel:o})},migrate:tn},{supports:{align:!0,alignWide:!1},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!(e.customTextColor||e.customBackgroundColor||e.customGradient||e.align),migrate:(0,Tt.compose)(tn,nn,(function(e){if(!e.align)return e;const{align:t,...n}=e;return{...n,className:it()(n.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:n,customBackgroundColor:o,customTextColor:a,customGradient:r,linkTarget:l,gradient:i,rel:s,text:c,textColor:u,title:m,url:p}=e,d=(0,Ye.getColorClassName)("color",u),g=!r&&(0,Ye.getColorClassName)("background-color",t),h=(0,Ye.__experimentalGetGradientClass)(i),_=it()("wp-block-button__link",{"has-text-color":u||a,[d]:d,"has-background":t||o||r||i,[g]:g,"no-border-radius":0===n,[h]:h}),b={background:r||void 0,backgroundColor:g||r||i?void 0:o,color:d?void 0:a,borderRadius:n?n+"px":void 0};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:_,href:p,title:m,style:b,value:c,target:l,rel:s}))}},{attributes:{...an,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible(e){return e.className&&e.className.includes("is-style-squared")},migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),tn(nn({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,customTextColor:o,linkTarget:a,rel:r,text:l,textColor:i,title:s,url:c}=e,u=(0,Ye.getColorClassName)("color",i),m=(0,Ye.getColorClassName)("background-color",t),p=it()("wp-block-button__link",{"has-text-color":i||o,[u]:u,"has-background":t||n,[m]:m}),d={backgroundColor:m?void 0:n,color:u?void 0:o};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:p,href:c,title:s,style:d,value:l,target:a,rel:r}))}},{attributes:{...an,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:on,save({attributes:e}){const{url:t,text:n,title:o,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:i}=e,s=(0,Ye.getColorClassName)("color",r),c=(0,Ye.getColorClassName)("background-color",a),u=it()("wp-block-button__link",{"has-text-color":r||i,[s]:s,"has-background":a||l,[c]:c}),m={backgroundColor:c?void 0:l,color:s?void 0:i};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:t,title:o,style:m,value:n}))}},{attributes:{...an,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:a,color:r,textColor:l}=e,i={backgroundColor:r,color:l};return(0,qe.createElement)("div",{className:`align${a}`},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:i,value:n}))},migrate:on},{attributes:{...an,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:a,color:r,textColor:l}=e;return(0,qe.createElement)("div",{className:`align${a}`,style:{backgroundColor:r}},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",href:t,title:o,style:{color:l},value:n}))},migrate:on}];var cn=sn,un=window.wp.keycodes;var mn=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var pn=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const dn="noreferrer noopener";function gn({selectedWidth:e,setAttributes:t}){return(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Width settings")},(0,qe.createElement)(Ke.ButtonGroup,{"aria-label":(0,Je.__)("Button width")},[25,50,75,100].map((n=>(0,qe.createElement)(Ke.Button,{key:n,isSmall:!0,variant:n===e?"primary":void 0,onClick:()=>{var o;t({width:e===(o=n)?void 0:o})}},n,"%")))))}var hn=function(e){const{attributes:t,setAttributes:n,className:o,isSelected:a,onReplace:r,mergeBlocks:l}=e,{textAlign:i,linkTarget:s,placeholder:c,rel:u,style:m,text:p,url:d,width:g}=t,[h,_]=(0,qe.useState)(null),b=(0,Ye.__experimentalUseBorderProps)(t),f=(0,Ye.__experimentalUseColorProps)(t),v=(0,Ye.__experimentalGetSpacingClassesAndStyles)(t),y=(0,qe.useRef)(),k=(0,qe.useRef)(),x=(0,Ye.useBlockProps)({ref:(0,Tt.useMergeRefs)([_,y]),onKeyDown:function(e){un.isKeyboardEvent.primary(e,"k")?B(e):un.isKeyboardEvent.primaryShift(e,"k")&&(T(),k.current?.focus())}}),[w,C]=(0,qe.useState)(!1),E=!!d,S="_blank"===s;function B(e){e.preventDefault(),C(!0)}function T(){n({url:void 0,linkTarget:void 0,rel:void 0}),C(!1)}return(0,qe.useEffect)((()=>{a||C(!1)}),[a]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{...x,className:it()(x.className,{[`has-custom-width wp-block-button__width-${g}`]:g,"has-custom-font-size":x.style.fontSize})},(0,qe.createElement)(Ye.RichText,{ref:k,"aria-label":(0,Je.__)("Button text"),placeholder:c||(0,Je.__)("Add text…"),value:p,onChange:e=>{n({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:it()(o,"wp-block-button__link",f.className,b.className,{[`has-text-align-${i}`]:i,"no-border-radius":0===m?.border?.radius},(0,Ye.__experimentalGetElementClassName)("button")),style:{...b.style,...f.style,...v.style},onSplit:e=>(0,je.createBlock)("core/button",{...t,text:e}),onReplace:r,onMerge:l,identifier:"text"})),(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:i,onChange:e=>{n({textAlign:e})}}),!E&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:mn,title:(0,Je.__)("Link"),shortcut:un.displayShortcut.primary("k"),onClick:B}),E&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:pn,title:(0,Je.__)("Unlink"),shortcut:un.displayShortcut.primaryShift("k"),onClick:T,isActive:!0})),a&&(w||E)&&(0,qe.createElement)(Ke.Popover,{placement:"bottom",onClose:()=>{C(!1),k.current?.focus()},anchor:h,focusOnMount:!!w&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0},(0,qe.createElement)(Ye.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:d,opensInNewTab:S},onChange:({url:e="",opensInNewTab:t})=>{n({url:(0,st.prependHTTP)(e)}),S!==t&&function(e){const t=e?"_blank":void 0;let o=u;t&&!u?o=dn:t||u!==dn||(o=void 0),n({linkTarget:t,rel:o})}(t)},onRemove:()=>{T(),k.current?.focus()},forceIsEditingLink:w})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(gn,{selectedWidth:g,setAttributes:n})),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:u||"",onChange:e=>n({rel:e})})))};const _n={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"a",attribute:"title",__experimentalRole:"content"},text:{type:"string",source:"html",selector:"a",__experimentalRole:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",__experimentalRole:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:!0,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button .wp-block-button__link"},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:bn}=_n,fn={icon:Qt,example:{attributes:{className:"is-style-fill",text:(0,Je.__)("Call to Action")}},edit:hn,save:function({attributes:e,className:t}){const{textAlign:n,fontSize:o,linkTarget:a,rel:r,style:l,text:i,title:s,url:c,width:u}=e;if(!i)return null;const m=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),p=(0,Ye.__experimentalGetColorClassesAndStyles)(e),d=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),g=it()("wp-block-button__link",p.className,m.className,{[`has-text-align-${n}`]:n,"no-border-radius":0===l?.border?.radius},(0,Ye.__experimentalGetElementClassName)("button")),h={...m.style,...p.style,...d.style},_=it()(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":o||l?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:_})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:g,href:c,title:s,style:h,value:i,target:a,rel:r}))},deprecated:cn,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},vn=()=>Qe({name:bn,metadata:_n,settings:fn});var yn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"}));const kn=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...o}=e;return(t||n)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),o},xn=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:kn,save({attributes:{contentJustification:e,orientation:t}}){return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:it()({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})})},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.InnerBlocks.Content,null))},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return kn({...e,align:void 0,contentJustification:e.align})}}];var wn=xn,Cn=window.wp.richText;const{name:En}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},Sn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,je.createBlock)(En,{},e.map((e=>(0,je.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,je.createBlock)(En,{},e.map((e=>{const t=(0,Cn.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelector("a"),a=o?.getAttribute("href");return(0,je.createBlock)("core/button",{text:n,url:a})}))),isMatch:e=>e.every((e=>{const t=(0,Cn.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelectorAll("a");return n.length<=30&&o.length<=1}))}]};var Bn=Sn;const Tn=[bn],Nn={name:bn,attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};var Pn=function({attributes:e,className:t}){var n;const{fontSize:o,layout:a,style:r}=e,l=(0,Ye.useBlockProps)({className:it()(t,{"has-custom-font-size":o||r?.typography?.fontSize})}),i=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings().__experimentalPreferredStyleVariations;return t?.value?.[bn]}),[]),s=(0,Ye.useInnerBlocksProps)(l,{allowedBlocks:Tn,__experimentalDefaultBlock:Nn,__experimentalDirectInsert:!0,template:[[bn,{className:i&&`is-style-${i}`}]],templateInsertUpdatesSelection:!0,orientation:null!==(n=a?.orientation)&&void 0!==n?n:"horizontal"});return(0,qe.createElement)("div",{...s})};const In={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Mn}=In,zn={icon:yn,example:{innerBlocks:[{name:"core/button",attributes:{text:(0,Je.__)("Find out more")}},{name:"core/button",attributes:{text:(0,Je.__)("Contact us")}}]},deprecated:wn,transforms:Bn,edit:Pn,save:function({attributes:e,className:t}){const{fontSize:n,style:o}=e,a=Ye.useBlockProps.save({className:it()(t,{"has-custom-font-size":n||o?.typography?.fontSize})}),r=Ye.useInnerBlocksProps.save(a);return(0,qe.createElement)("div",{...r})}},Rn=()=>Qe({name:Mn,metadata:In,settings:zn});var Hn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));const Ln=Rt((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));var An={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,je.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,je.createBlock)("core/archives")}]};const Vn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-calendar"},{name:Dn}=Vn,Fn={icon:Hn,example:{},edit:function({attributes:e}){const t=(0,Ye.useBlockProps)(),{date:n,hasPosts:o,hasPostsResolved:a}=(0,ut.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(ct.store),o={status:"publish",per_page:1},a=t("postType","post",o),r=n("getEntityRecords",["postType","post",o]);let l;const i=e("core/editor");if(i){"post"===i.getEditedPostAttribute("type")&&(l=i.getEditedPostAttribute("date"))}return{date:l,hasPostsResolved:r,hasPosts:r&&1===a?.length}}),[]);return o?(0,qe.createElement)("div",{...t},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/calendar",attributes:{...e,...Ln(n)}}))):(0,qe.createElement)("div",{...t},(0,qe.createElement)(Ke.Placeholder,{icon:Hn,label:(0,Je.__)("Calendar")},a?(0,Je.__)("No published posts found."):(0,qe.createElement)(Ke.Spinner,null)))},transforms:An},$n=()=>Qe({name:Dn,metadata:Vn,settings:Fn});var Gn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),On=window.wp.htmlEntities;var Un=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"}));const jn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Categories List",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:qn}=jn,Wn={icon:Gn,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:n,showPostCounts:o,showOnlyTopLevel:a,showEmpty:r},setAttributes:l,className:i}){const s=(0,Tt.useInstanceId)(e,"blocks-category-select"),c={per_page:-1,hide_empty:!r,context:"view"};a&&(c.parent=0);const{records:u,isResolving:m}=(0,ct.useEntityRecords)("taxonomy","category",c),p=e=>u?.length?null===e?u:u.filter((({parent:t})=>t===e)):[],d=e=>t=>l({[e]:t}),g=e=>e?(0,On.decodeEntities)(e).trim():(0,Je.__)("(Untitled)"),h=e=>{const t=p(e.id),{id:a,link:r,count:l,name:i}=e;return(0,qe.createElement)("li",{key:a,className:`cat-item cat-item-${a}`},(0,qe.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},g(i)),o&&` (${l})`,n&&!!t.length&&(0,qe.createElement)("ul",{className:"children"},t.map((e=>h(e)))))},_=(e,t)=>{const{id:a,count:r,name:l}=e,i=p(a);return[(0,qe.createElement)("option",{key:a,className:`level-${t}`},Array.from({length:3*t}).map((()=>" ")),g(l),o&&` (${r})`),n&&!!i.length&&i.map((e=>_(e,t+1)))]},b=!u?.length||t||m?"div":"ul",f=it()(i,{"wp-block-categories-list":!!u?.length&&!t&&!m,"wp-block-categories-dropdown":!!u?.length&&t&&!m}),v=(0,Ye.useBlockProps)({className:f});return(0,qe.createElement)(b,{...v},(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display as dropdown"),checked:t,onChange:d("displayAsDropdown")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:o,onChange:d("showPostCounts")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show only top level categories"),checked:a,onChange:d("showOnlyTopLevel")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show empty categories"),checked:r,onChange:d("showEmpty")}),!a&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show hierarchy"),checked:n,onChange:d("showHierarchy")}))),m&&(0,qe.createElement)(Ke.Placeholder,{icon:Un,label:(0,Je.__)("Categories")},(0,qe.createElement)(Ke.Spinner,null)),!m&&0===u?.length&&(0,qe.createElement)("p",null,(0,Je.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!m&&u?.length>0&&(t?(()=>{const e=p(n?0:null);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.VisuallyHidden,{as:"label",htmlFor:s},(0,Je.__)("Categories")),(0,qe.createElement)("select",{id:s},(0,qe.createElement)("option",null,(0,Je.__)("Select Category")),e.map((e=>_(e,0)))))})():p(n?0:null).map((e=>h(e)))))}},Zn=()=>Qe({name:qn,metadata:jn,settings:Wn});var Qn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"}));var Kn=({clientId:e})=>{const{replaceBlocks:t}=(0,ut.useDispatch)(Ye.store),n=(0,ut.useSelect)((t=>t(Ye.store).getBlock(e)),[e]);return(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>t(n.clientId,(0,je.rawHandler)({HTML:(0,je.serialize)(n)}))},(0,Je.__)("Convert to blocks"))};function Jn(e){const t=(0,ut.useSelect)((e=>e(Ye.store).getSettings().styles));return(0,qe.useEffect)((()=>{const{baseURL:n,suffix:o,settings:a}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:n,suffix:o}),window.wp.oldEditor.initialize(e.id,{tinymce:{...a,setup(e){e.on("init",(()=>{const n=e.getDoc();t.forEach((({css:e})=>{const t=n.createElement("style");t.innerHTML=e,n.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,qe.createElement)("textarea",{...e})}function Yn(e){const{clientId:t,attributes:{content:n},setAttributes:o,onReplace:a}=e,[r,l]=(0,qe.useState)(!1),i=`editor-${t}`,s=()=>n?l(!1):a([]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>l(!0)},(0,Je.__)("Edit")))),n&&(0,qe.createElement)(qe.RawHTML,null,n),(r||!n)&&(0,qe.createElement)(Ke.Modal,{title:(0,Je.__)("Classic Editor"),onRequestClose:s,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal"},(0,qe.createElement)(Jn,{id:i,defaultValue:n}),(0,qe.createElement)(Ke.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1},(0,qe.createElement)(Ke.FlexItem,null,(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:s},(0,Je.__)("Cancel"))),(0,qe.createElement)(Ke.FlexItem,null,(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:()=>{o({content:window.wp.oldEditor.getContent(i)}),l(!1)}},(0,Je.__)("Save"))))))}const{wp:Xn}=window;function eo({clientId:e,attributes:{content:t},setAttributes:n,onReplace:o}){const{getMultiSelectedBlockClientIds:a}=(0,ut.useSelect)(Ye.store),r=(0,qe.useRef)(!1);return(0,qe.useEffect)((()=>{if(!r.current)return;const n=window.tinymce.get(`editor-${e}`),o=n?.getContent();o!==t&&n.setContent(t||"")}),[t]),(0,qe.useEffect)((()=>{const{baseURL:l,suffix:i}=window.wpEditorL10n.tinymce;function s(e){let r;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{r=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),o=t.scrollTop;return a()?.length||n({content:e.getContent()}),e.once("focus",(()=>{r&&(e.selection.moveToBookmark(r),t.scrollTop!==o&&(t.scrollTop=o))})),!1})),e.on("mousedown touchstart",(()=>{r=null}));const l=(0,Tt.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,n({content:t}))}),250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",(t=>{un.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==un.BACKSPACE&&t.keyCode!==un.DELETE||!function(e){const t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(o([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:n}=t;n&&t.keyCode===un.F10&&t.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;Xn.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:s}})}function u(){"complete"===document.readyState&&c()}return r.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:l,suffix:i}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),Xn.oldEditor.remove(`editor-${e}`)}}),[]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{key:"toolbar",id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,Je.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),(0,qe.createElement)("div",{key:"editor",id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"}))}const to={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:no}=to,oo={icon:Qn,edit:function(e){const{clientId:t}=e,n=(0,ut.useSelect)((e=>e(Ye.store).canRemoveBlock(t)),[t]),[o,a]=(0,qe.useState)(!1),r=(0,Tt.useRefEffect)((e=>{a(e.ownerDocument!==document)}),[]);return(0,qe.createElement)(qe.Fragment,null,n&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Kn,{clientId:t}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({ref:r})},o?(0,qe.createElement)(Yn,{...e}):(0,qe.createElement)(eo,{...e})))},save:function({attributes:e}){const{content:t}=e;return(0,qe.createElement)(qe.RawHTML,null,t)}},ao=()=>Qe({name:no,metadata:to,settings:oo});var ro=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));function lo(e){return e.replace(/\[/g,"[")}function io(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var so={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,je.createBlock)("core/code")},{type:"block",blocks:["core/html","core/paragraph"],transform:({content:e})=>(0,je.createBlock)("core/code",{content:e})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>(0,je.createBlock)("core/paragraph",{content:e.replace(/\n/g,"<br>")})}]};const co={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}}},style:"wp-block-code"},{name:uo}=co,mo={icon:ro,example:{attributes:{content:(0,Je.__)("// A “block” is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );")}},transforms:so,edit:function({attributes:e,setAttributes:t,onRemove:n}){const o=(0,Ye.useBlockProps)();return(0,qe.createElement)("pre",{...o},(0,qe.createElement)(Ye.RichText,{tagName:"code",value:e.content,onChange:e=>t({content:e}),onRemove:n,placeholder:(0,Je.__)("Write code…"),"aria-label":(0,Je.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function({attributes:e}){return(0,qe.createElement)("pre",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.RichText.Content,{tagName:"code",value:(t=e.content,(0,Tt.pipe)(lo,io)(t||""))}));var t}},po=()=>Qe({name:uo,metadata:co,settings:mo});var go=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));const ho=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible({width:e}){return isFinite(e)},migrate(e){return{...e,width:`${e.width}%`}},save({attributes:e}){const{verticalAlignment:t,width:n}=e,o=it()({[`is-vertically-aligned-${t}`]:t}),a={flexBasis:n+"%"};return(0,qe.createElement)("div",{className:o,style:a},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];var _o=ho;var bo=function({attributes:{verticalAlignment:e,width:t,templateLock:n,allowedBlocks:o},setAttributes:a,clientId:r}){const l=it()("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),i=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["%","px","em","rem","vw"]}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,ut.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(Ye.store),o=n(r);return{hasChildBlocks:t(r).length>0,rootClientId:o,columnsIds:t(o)}}),[r]),{updateBlockAttributes:m}=(0,ut.useDispatch)(Ye.store),p=Number.isFinite(t)?t+"%":t,d=(0,Ye.useBlockProps)({className:l,style:p?{flexBasis:p}:void 0}),g=s.length,h=s.indexOf(r)+1,_=(0,Je.sprintf)((0,Je.__)("%1$s (%2$d of %3$d)"),d["aria-label"],h,g),b=(0,Ye.useInnerBlocksProps)({...d,"aria-label":_},{templateLock:n,allowedBlocks:o,renderAppender:c?void 0:Ye.InnerBlocks.ButtonBlockAppender});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentToolbar,{onChange:e=>{a({verticalAlignment:e}),m(u,{verticalAlignment:null})},value:e})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Column settings")},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:t||"",onChange:e=>{e=0>parseFloat(e)?"0":e,a({width:e})},units:i}))),(0,qe.createElement)("div",{...b}))};const fo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0}},{name:vo}=fo,yo={icon:go,edit:bo,save:function({attributes:e}){const{verticalAlignment:t,width:n}=e,o=it()({[`is-vertically-aligned-${t}`]:t});let a;if(n&&/\d/.test(n)){let e=Number.isFinite(n)?n+"%":n;if(!Number.isFinite(n)&&n?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(n)*t)/t+"%"}a={flexBasis:e}}const r=Ye.useBlockProps.save({className:o,style:a}),l=Ye.useInnerBlocksProps.save(r);return(0,qe.createElement)("div",{...l})},deprecated:_o},ko=()=>Qe({name:vo,metadata:fo,settings:yo});var xo=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function wo(e){let t,{doc:n}=wo;n||(n=document.implementation.createHTMLDocument(""),wo.doc=n),n.body.innerHTML=e;for(const e of n.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}var Co=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:o,...a}=e;return{...a,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:n,customBackgroundColor:o,textColor:a,customTextColor:r}=e,l=(0,Ye.getColorClassName)("background-color",n),i=(0,Ye.getColorClassName)("color",a),s=it()({"has-background":n||o,"has-text-color":a||r,[l]:l,[i]:i,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:l?void 0:o,color:i?void 0:r};return(0,qe.createElement)("div",{className:s||void 0,style:c},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==wo(e.originalContent)))},migrate(e,t){const n=t.reduce(((e,t)=>{const{originalContent:n}=t;let o=wo(n);return void 0===o&&(o=0),e[o]||(e[o]=[]),e[o].push(t),e}),[]).map((e=>(0,je.createBlock)("core/column",{},e))),{columns:o,...a}=e;return[{...a,isStackedOnMobile:!0},n]},save({attributes:e}){const{columns:t}=e;return(0,qe.createElement)("div",{className:`has-${t}-columns`},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:n,...o}=e;return[e={...o,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:n}=e,o=it()(`has-${n}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,qe.createElement)("div",{className:o},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];const Eo=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function So(e,t){const{width:n=100/t}=e.attributes;return Eo(n)}function Bo(e,t,n=e.length){const o=function(e,t=e.length){return e.reduce(((e,n)=>e+So(n,t)),0)}(e,n);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,n)=>{const o=So(n,t);return Object.assign(e,{[n.clientId]:o})}),{})}(e,n)).map((([e,n])=>[e,Eo(t*n/o)])))}function To(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}const No=["core/column"];const Po=(0,ut.withDispatch)(((e,t,n)=>({updateAlignment(o){const{clientId:a,setAttributes:r}=t,{updateBlockAttributes:l}=e(Ye.store),{getBlockOrder:i}=n.select(Ye.store);r({verticalAlignment:o});i(a).forEach((e=>{l(e,{verticalAlignment:o})}))},updateColumns(o,a){const{clientId:r}=t,{replaceInnerBlocks:l}=e(Ye.store),{getBlocks:i}=n.select(Ye.store);let s=i(r);const c=s.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const u=a>o;if(u&&c){const e=Eo(100/a);s=[...To(s,Bo(s,100-e)),...Array.from({length:a-o}).map((()=>(0,je.createBlock)("core/column",{width:`${e}%`})))]}else if(u)s=[...s,...Array.from({length:a-o}).map((()=>(0,je.createBlock)("core/column")))];else if(a<o&&(s=s.slice(0,-(o-a)),c)){s=To(s,Bo(s,100))}l(r,s)}})))((function({attributes:e,setAttributes:t,updateAlignment:n,updateColumns:o,clientId:a}){const{isStackedOnMobile:r,verticalAlignment:l,templateLock:i}=e,{count:s,canInsertColumnBlock:c,minCount:u}=(0,ut.useSelect)((e=>{const{canInsertBlockType:t,canRemoveBlock:n,getBlocks:o,getBlockCount:r}=e(Ye.store),l=o(a).reduce(((e,t,o)=>(n(t.clientId)||e.push(o),e)),[]);return{count:r(a),canInsertColumnBlock:t("core/column",a),minCount:Math.max(...l)+1}}),[a]),m=it()({[`are-vertically-aligned-${l}`]:l,"is-not-stacked-on-mobile":!r}),p=(0,Ye.useBlockProps)({className:m}),d=(0,Ye.useInnerBlocksProps)(p,{allowedBlocks:No,orientation:"horizontal",renderAppender:!1,templateLock:i});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentToolbar,{onChange:n,value:l})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,c&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:s,onChange:e=>o(s,Math.max(u,e)),min:Math.max(1,u),max:Math.max(6,s)}),s>6&&(0,qe.createElement)(Ke.Notice,{status:"warning",isDismissible:!1},(0,Je.__)("This column count exceeds the recommended amount and may cause visual breakage."))),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})}))),(0,qe.createElement)("div",{...d}))}));function Io({clientId:e,name:t,setAttributes:n}){const{blockType:o,defaultVariation:a,variations:r}=(0,ut.useSelect)((e=>{const{getBlockVariations:n,getBlockType:o,getDefaultBlockVariation:a}=e(je.store);return{blockType:o(t),defaultVariation:a(t,"block"),variations:n(t,"block")}}),[t]),{replaceInnerBlocks:l}=(0,ut.useDispatch)(Ye.store),i=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ye.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:r,onSelect:(t=a)=>{t.attributes&&n(t.attributes),t.innerBlocks&&l(e,(0,je.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))}var Mo=e=>{const{clientId:t}=e,n=(0,ut.useSelect)((e=>e(Ye.store).getBlocks(t).length>0),[t])?Po:Io;return(0,qe.createElement)(n,{...e})};var zo=[{name:"one-column-full",title:(0,Je.__)("100"),description:(0,Je.__)("One column"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,Je.__)("50 / 50"),description:(0,Je.__)("Two columns; equal split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,Je.__)("33 / 66"),description:(0,Je.__)("Two columns; one-third, two-thirds split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,Je.__)("66 / 33"),description:(0,Je.__)("Two columns; two-thirds, one-third split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,Je.__)("33 / 33 / 33"),description:(0,Je.__)("Three columns; equal split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,Je.__)("25 / 50 / 25"),description:(0,Je.__)("Three columns; wide center column"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];const Ro={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map((({name:e,attributes:n,innerBlocks:o})=>["core/column",{width:`${t}%`},[[e,{...n},o]]]));return(0,je.createBlock)("core/columns",{},(0,je.createBlocksFromInnerBlocksTemplate)(n))},isMatch:({length:e},t)=>(1!==t.length||"core/columns"!==t[0].name)&&(e&&e<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:o,textColor:a,style:r,mediaAlt:l,mediaId:i,mediaPosition:s,mediaSizeSlug:c,mediaType:u,mediaUrl:m,mediaWidth:p,verticalAlignment:d}=e;let g;if("image"!==u&&u)g=["core/video",{id:i,src:m}];else{g=["core/image",{...{id:i,alt:l,url:m,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${p}%`},[g]],["core/column",{width:100-p+"%"},t]];return"right"===s&&h.reverse(),(0,je.createBlock)("core/columns",{align:n,backgroundColor:o,textColor:a,style:r,verticalAlignment:d},(0,je.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))};var Ho=Ro;const Lo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:Ao}=Lo,Vo={icon:xo,variations:zo,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,Je.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,Je.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Co,edit:Mo,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:n}=e,o=it()({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!t}),a=Ye.useBlockProps.save({className:o}),r=Ye.useInnerBlocksProps.save(a);return(0,qe.createElement)("div",{...r})},transforms:Ho},Do=()=>Qe({name:Ao,metadata:Lo,settings:Vo});var Fo=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"}));var $o=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=Ye.useBlockProps.save(),{className:n}=t,o=n?.split(" ")||[],a=o?.filter((e=>"wp-block-comments"!==e)),r={...t,className:a.join(" ")};return(0,qe.createElement)(e,{...r},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];function Go({attributes:{tagName:e},setAttributes:t}){const n={section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")};return(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:e,onChange:e=>t({tagName:e}),help:n[e]})))}const Oo=()=>{const e=(0,Tt.useInstanceId)(Oo);return(0,qe.createElement)("div",{className:"comment-respond"},(0,qe.createElement)("h3",{className:"comment-reply-title"},(0,Je.__)("Leave a Reply")),(0,qe.createElement)("form",{noValidate:!0,className:"comment-form",inert:"true"},(0,qe.createElement)("p",null,(0,qe.createElement)("label",{htmlFor:`comment-${e}`},(0,Je.__)("Comment")),(0,qe.createElement)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8"})),(0,qe.createElement)("p",{className:"form-submit wp-block-button"},(0,qe.createElement)("input",{name:"submit",type:"submit",className:it()("wp-block-button__link",(0,Ye.__experimentalGetElementClassName)("button")),label:(0,Je.__)("Post Comment"),value:(0,Je.__)("Post Comment")}))))};var Uo=({postId:e,postType:t})=>{const[n,o]=(0,ct.useEntityProp)("postType",t,"comment_status",e),a=void 0===t||void 0===e,{defaultCommentStatus:r}=(0,ut.useSelect)((e=>e(Ye.store).getSettings().__experimentalDiscussionSettings)),l=(0,ut.useSelect)((e=>!!t&&!!e(ct.store).getPostType(t)?.supports.comments));if(!a&&"open"!==n){if("closed"===n){const e=[(0,qe.createElement)(Ke.Button,{key:"enableComments",onClick:()=>o("open"),variant:"primary"},(0,Je._x)("Enable comments","action that affects the current post"))];return(0,qe.createElement)(Ye.Warning,{actions:e},(0,Je.__)("Post Comments Form block: Comments are not enabled for this item."))}if(!l)return(0,qe.createElement)(Ye.Warning,null,(0,Je.sprintf)((0,Je.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t));if("open"!==r)return(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Post Comments Form block: Comments are not enabled."))}return(0,qe.createElement)(Oo,null)};function jo({postType:e,postId:t}){let[n]=(0,ct.useEntityProp)("postType",e,"title",t);n=n||(0,Je.__)("Post Title");const{avatarURL:o}=(0,ut.useSelect)((e=>e(Ye.store).getSettings().__experimentalDiscussionSettings));return(0,qe.createElement)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true"},(0,qe.createElement)("h3",null,(0,Je.sprintf)((0,Je.__)("One response to %s"),n)),(0,qe.createElement)("div",{className:"navigation"},(0,qe.createElement)("div",{className:"alignleft"},(0,qe.createElement)("a",{href:"#top"},"« ",(0,Je.__)("Older Comments"))),(0,qe.createElement)("div",{className:"alignright"},(0,qe.createElement)("a",{href:"#top"},(0,Je.__)("Newer Comments")," »"))),(0,qe.createElement)("ol",{className:"commentlist"},(0,qe.createElement)("li",{className:"comment even thread-even depth-1"},(0,qe.createElement)("article",{className:"comment-body"},(0,qe.createElement)("footer",{className:"comment-meta"},(0,qe.createElement)("div",{className:"comment-author vcard"},(0,qe.createElement)("img",{alt:(0,Je.__)("Commenter Avatar"),src:o,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,qe.createElement)("b",{className:"fn"},(0,qe.createElement)("a",{href:"#top",className:"url"},(0,Je.__)("A WordPress Commenter")))," ",(0,qe.createElement)("span",{className:"says"},(0,Je.__)("says"),":")),(0,qe.createElement)("div",{className:"comment-metadata"},(0,qe.createElement)("a",{href:"#top"},(0,qe.createElement)("time",{dateTime:"2000-01-01T00:00:00+00:00"},(0,Je.__)("January 1, 2000 at 00:00 am")))," ",(0,qe.createElement)("span",{className:"edit-link"},(0,qe.createElement)("a",{className:"comment-edit-link",href:"#top"},(0,Je.__)("Edit"))))),(0,qe.createElement)("div",{className:"comment-content"},(0,qe.createElement)("p",null,(0,Je.__)("Hi, this is a comment."),(0,qe.createElement)("br",null),(0,Je.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,qe.createElement)("br",null),(0,qe.createInterpolateElement)((0,Je.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,qe.createElement)("a",{href:"https://gravatar.com/"})}))),(0,qe.createElement)("div",{className:"reply"},(0,qe.createElement)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,Je.__)("Reply to A WordPress Commenter")},(0,Je.__)("Reply")))))),(0,qe.createElement)("div",{className:"navigation"},(0,qe.createElement)("div",{className:"alignleft"},(0,qe.createElement)("a",{href:"#top"},"« ",(0,Je.__)("Older Comments"))),(0,qe.createElement)("div",{className:"alignright"},(0,qe.createElement)("a",{href:"#top"},(0,Je.__)("Newer Comments")," »"))),(0,qe.createElement)(Uo,{postId:t,postType:e}))}function qo({attributes:e,setAttributes:t,context:{postType:n,postId:o}}){const{textAlign:a}=e,r=[(0,qe.createElement)(Ke.Button,{key:"convert",onClick:()=>{t({legacy:!1})},variant:"primary"},(0,Je.__)("Switch to editable mode"))],l=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${a}`]:a})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)("div",{...l},(0,qe.createElement)(Ye.Warning,{actions:r},(0,Je.__)("Comments block: You’re currently using the legacy version of the block. The following is just a placeholder - the final styling will likely look different. For a better representation and more customization options, switch the block to its editable mode.")),(0,qe.createElement)(jo,{postId:o,postType:n})))}var Wo=[["core/comments-title"],["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name",{fontSize:"small"}],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date",{fontSize:"small"}],["core/comment-edit-link",{fontSize:"small"}]]],["core/comment-content"],["core/comment-reply-link",{fontSize:"small"}]]]]]]],["core/comments-pagination"],["core/post-comments-form"]];const Zo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments",title:"Comments",category:"theme",description:"An advanced block that allows displaying post comments using different visual configurations.",textdomain:"default",attributes:{tagName:{type:"string",default:"div"},legacy:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-comments-editor",usesContext:["postId","postType"]},{name:Qo}=Zo,Ko={icon:Fo,edit:function(e){const{attributes:t,setAttributes:n}=e,{tagName:o,legacy:a}=t,r=(0,Ye.useBlockProps)(),l=(0,Ye.useInnerBlocksProps)(r,{template:Wo});return a?(0,qe.createElement)(qo,{...e}):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Go,{attributes:t,setAttributes:n}),(0,qe.createElement)(o,{...l}))},save:function({attributes:{tagName:e,legacy:t}}){const n=Ye.useBlockProps.save(),o=Ye.useInnerBlocksProps.save(n);return t?null:(0,qe.createElement)(e,{...o})},deprecated:$o},Jo=()=>Qe({name:Qo,metadata:Zo,settings:Ko});const Yo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/comment-author-avatar",title:"Comment Author Avatar (deprecated)",category:"theme",ancestor:["core/comment-template"],description:"This block is deprecated. Please use the Avatar block instead.",textdomain:"default",attributes:{width:{type:"number",default:96},height:{type:"number",default:96}},usesContext:["commentId"],supports:{html:!1,inserter:!1,__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},color:{background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{__experimentalSkipSerialization:!0,margin:!0,padding:!0}}},{name:Xo}=Yo,ea={icon:rt,edit:function({attributes:e,context:{commentId:t},setAttributes:n,isSelected:o}){const{height:a,width:r}=e,[l]=(0,ct.useEntityProp)("root","comment","author_avatar_urls",t),[i]=(0,ct.useEntityProp)("root","comment","author_name",t),s=l?Object.values(l):null,c=l?Object.keys(l):null,u=c?c[0]:24,m=c?c[c.length-1]:96,p=(0,Ye.useBlockProps)(),d=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(2.5*m),{avatarURL:h}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n})),_=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Avatar Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image size"),onChange:e=>n({width:e,height:e}),min:u,max:g,initialPosition:r,value:r}))),b=(0,qe.createElement)(Ke.ResizableBox,{size:{width:r,height:a},showHandle:o,onResizeStop:(e,t,o,l)=>{n({height:parseInt(a+l.height,10),width:parseInt(r+l.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Je.isRTL)(),bottom:!0,left:(0,Je.isRTL)()},minWidth:u,maxWidth:g},(0,qe.createElement)("img",{src:s?s[s.length-1]:h,alt:`${i} ${(0,Je.__)("Avatar")}`,...p}));return(0,qe.createElement)(qe.Fragment,null,_,(0,qe.createElement)("div",{...d},b))}},ta=()=>Qe({name:Xo,metadata:Yo,settings:ea});var na=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z",fillRule:"evenodd",clipRule:"evenodd"}),(0,qe.createElement)(We.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,qe.createElement)(We.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"}));const oa={attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var aa=[oa];const ra={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-author-name",title:"Comment Author Name",category:"theme",ancestor:["core/comment-template"],description:"Displays the name of the author of the comment.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:la}=ra,ia={icon:na,edit:function({attributes:{isLink:e,linkTarget:t,textAlign:n},context:{commentId:o},setAttributes:a}){const r=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${n}`]:n})});let l=(0,ut.useSelect)((e=>{const{getEntityRecord:t}=e(ct.store),n=t("root","comment",o),a=n?.author_name;if(n&&!a){var r;const e=t("root","user",n.author);return null!==(r=e?.name)&&void 0!==r?r:(0,Je.__)("Anonymous")}return null!=a?a:""}),[o]);const i=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:n,onChange:e=>a({textAlign:e})})),s=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to authors URL"),onChange:()=>a({isLink:!e}),checked:e}),e&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})));o&&l||(l=(0,Je._x)("Comment Author","block title"));const c=e?(0,qe.createElement)("a",{href:"#comment-author-pseudo-link",onClick:e=>e.preventDefault()},l):l;return(0,qe.createElement)(qe.Fragment,null,s,i,(0,qe.createElement)("div",{...r},c))},deprecated:aa},sa=()=>Qe({name:la,metadata:ra,settings:ia});var ca=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"}));const ua={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-content",title:"Comment Content",category:"theme",ancestor:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1}},{name:ma}=ua,pa={icon:ca,edit:function({setAttributes:e,attributes:{textAlign:t},context:{commentId:n}}){const o=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${t}`]:t})}),[a]=(0,ct.useEntityProp)("root","comment","content",n),r=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})}));return n&&a?(0,qe.createElement)(qe.Fragment,null,r,(0,qe.createElement)("div",{...o},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(qe.RawHTML,{key:"html"},a.rendered)))):(0,qe.createElement)(qe.Fragment,null,r,(0,qe.createElement)("div",{...o},(0,qe.createElement)("p",null,(0,Je._x)("Comment Content","block title"))))}},da=()=>Qe({name:ma,metadata:ua,settings:pa});var ga=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,qe.createElement)(We.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})),ha=window.wp.date;const _a={attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var ba=[_a];const fa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-date",title:"Comment Date",category:"theme",ancestor:["core/comment-template"],description:"Displays the date on which the comment was posted.",textdomain:"default",attributes:{format:{type:"string"},isLink:{type:"boolean",default:!0}},usesContext:["commentId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:va}=fa,ya={icon:ga,edit:function({attributes:{format:e,isLink:t},context:{commentId:n},setAttributes:o}){const a=(0,Ye.useBlockProps)();let[r]=(0,ct.useEntityProp)("root","comment","date",n);const[l=(0,ha.getSettings)().formats.date]=(0,ct.useEntityProp)("root","site","date_format"),i=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ye.__experimentalDateFormatPicker,{format:e,defaultFormat:l,onChange:e=>o({format:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to comment"),onChange:()=>o({isLink:!t}),checked:t})));n&&r||(r=(0,Je._x)("Comment Date","block title"));let s=r instanceof Date?(0,qe.createElement)("time",{dateTime:(0,ha.dateI18n)("c",r)},(0,ha.dateI18n)(e||l,r)):(0,qe.createElement)("time",null,r);return t&&(s=(0,qe.createElement)("a",{href:"#comment-date-pseudo-link",onClick:e=>e.preventDefault()},s)),(0,qe.createElement)(qe.Fragment,null,i,(0,qe.createElement)("div",{...a},s))},deprecated:ba},ka=()=>Qe({name:va,metadata:fa,settings:ya});var xa=(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"}));const wa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-edit-link",title:"Comment Edit Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.",textdomain:"default",usesContext:["commentId"],attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Ca}=wa,Ea={icon:xa,edit:function({attributes:{linkTarget:e,textAlign:t},setAttributes:n}){const o=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${t}`]:t})}),a=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:t,onChange:e=>n({textAlign:e})})),r=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===e})));return(0,qe.createElement)(qe.Fragment,null,a,r,(0,qe.createElement)("div",{...o},(0,qe.createElement)("a",{href:"#edit-comment-pseudo-link",onClick:e=>e.preventDefault()},(0,Je.__)("Edit"))))}},Sa=()=>Qe({name:Ca,metadata:wa,settings:Ea});var Ba=(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"}));var Ta=function({setAttributes:e,attributes:{textAlign:t}}){const n=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${t}`]:t})}),o=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})}));return(0,qe.createElement)(qe.Fragment,null,o,(0,qe.createElement)("div",{...n},(0,qe.createElement)("a",{href:"#comment-reply-pseudo-link",onClick:e=>e.preventDefault()},(0,Je.__)("Reply"))))};const Na={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-reply-link",title:"Comment Reply Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to reply to a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},html:!1}},{name:Pa}=Na,Ia={edit:Ta,icon:Ba},Ma=()=>Qe({name:Pa,metadata:Na,settings:Ia});var za=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),Ra=window.wp.apiFetch,Ha=n.n(Ra);const La=({defaultPage:e,postId:t,perPage:n,queryArgs:o})=>{const[a,r]=(0,qe.useState)({}),l=`${t}_${n}`,i=a[l]||0;return(0,qe.useEffect)((()=>{i||"newest"!==e||Ha()({path:(0,st.addQueryArgs)("/wp/v2/comments",{...o,post:t,per_page:n,_fields:"id"}),method:"HEAD",parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"));r({...a,[l]:t<=1?1:t})}))}),[e,t,n,r]),"newest"===e?i:1},Aa=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Va({comment:e,activeCommentId:t,setActiveCommentId:n,firstCommentId:o,blocks:a}){const{children:r,...l}=(0,Ye.useInnerBlocksProps)({},{template:Aa});return(0,qe.createElement)("li",{...l},e.commentId===(t||o)?r:null,(0,qe.createElement)(Da,{blocks:a,commentId:e.commentId,setActiveCommentId:n,isHidden:e.commentId===(t||o)}),e?.children?.length>0?(0,qe.createElement)(Fa,{comments:e.children,activeCommentId:t,setActiveCommentId:n,blocks:a,firstCommentId:o}):null)}const Da=(0,qe.memo)((({blocks:e,commentId:t,setActiveCommentId:n,isHidden:o})=>{const a=(0,Ye.__experimentalUseBlockPreview)({blocks:e}),r=()=>{n(t)},l={display:o?"none":void 0};return(0,qe.createElement)("div",{...a,tabIndex:0,role:"button",style:l,onClick:r,onKeyPress:r})})),Fa=({comments:e,blockProps:t,activeCommentId:n,setActiveCommentId:o,blocks:a,firstCommentId:r})=>(0,qe.createElement)("ol",{...t},e&&e.map((({commentId:e,...t},l)=>(0,qe.createElement)(Ye.BlockContextProvider,{key:t.commentId||l,value:{commentId:e<0?null:e}},(0,qe.createElement)(Va,{comment:{commentId:e,...t},activeCommentId:n,setActiveCommentId:o,blocks:a,firstCommentId:r})))));const $a={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments"],description:"Contains the block elements used to display a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["postId"],supports:{align:!0,html:!1,reusable:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-comment-template"},{name:Ga}=$a,Oa={icon:za,edit:function({clientId:e,context:{postId:t}}){const n=(0,Ye.useBlockProps)(),[o,a]=(0,qe.useState)(),{commentOrder:r,threadCommentsDepth:l,threadComments:i,commentsPerPage:s,pageComments:c}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t().__experimentalDiscussionSettings})),u=(({postId:e})=>{const t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:n,commentsPerPage:o,defaultCommentsPage:a}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n})),r=n?Math.min(o,100):100,l=La({defaultPage:a,postId:e,perPage:r,queryArgs:t});return(0,qe.useMemo)((()=>l?{...t,post:e,per_page:r,page:l}:null),[e,r,l])})({postId:t}),{topLevelComments:m,blocks:p}=(0,ut.useSelect)((t=>{const{getEntityRecords:n}=t(ct.store),{getBlocks:o}=t(Ye.store);return{topLevelComments:u?n("root","comment",u):null,blocks:o(e)}}),[e,u]);let d=(e=>(0,qe.useMemo)((()=>e?.map((({id:e,_embedded:t})=>{const[n]=t?.children||[[]];return{commentId:e,children:n.map((e=>({commentId:e.id})))}}))),[e]))("desc"===r&&m?[...m].reverse():m);return m?(t||(d=(({perPage:e,pageComments:t,threadComments:n,threadCommentsDepth:o})=>{const a=n?Math.min(o,3):1,r=e=>e<a?[{commentId:-(e+3),children:r(e+1)}]:[],l=[{commentId:-1,children:r(1)}];return(!t||e>=2)&&a<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&a<2&&l.push({commentId:-3,children:[]}),l})({perPage:s,pageComments:c,threadComments:i,threadCommentsDepth:l})),d.length?(0,qe.createElement)(Fa,{comments:d,blockProps:n,blocks:p,activeCommentId:o,setActiveCommentId:a,firstCommentId:d[0]?.commentId}):(0,qe.createElement)("p",{...n},(0,Je.__)("No results found."))):(0,qe.createElement)("p",{...n},(0,qe.createElement)(Ke.Spinner,null))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},Ua=()=>Qe({name:Ga,metadata:$a,settings:Oa});var ja=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"}));const qa={none:"",arrow:"←",chevron:"«"};const Wa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-previous",title:"Comments Previous Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the previous comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Za}=Wa,Qa={icon:ja,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":n}}){const o=qa[n];return(0,qe.createElement)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,Ye.useBlockProps)()},o&&(0,qe.createElement)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${n}`},o),(0,qe.createElement)(Ye.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Je.__)("Older comments page link"),placeholder:(0,Je.__)("Older Comments"),value:e,onChange:e=>t({label:e})}))}},Ka=()=>Qe({name:Za,metadata:Wa,settings:Qa});var Ja=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"}));function Ya({value:e,onChange:t}){return(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Arrow"),value:e,onChange:t,help:(0,Je.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"none",label:(0,Je._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Je._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Je._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")}))}const Xa=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]],er=["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"];const tr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination",title:"Comments Pagination",category:"theme",parent:["core/comments"],description:"Displays a paginated navigation to next/previous set of comments, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},providesContext:{"comments/paginationArrow":"paginationArrow"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-comments-pagination-editor",style:"wp-block-comments-pagination"},{name:nr}=tr,or={icon:Ja,edit:function({attributes:{paginationArrow:e},setAttributes:t,clientId:n}){const o=(0,ut.useSelect)((e=>{const{getBlocks:t}=e(Ye.store),o=t(n);return o?.find((e=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(e.name)))}),[]),a=(0,Ye.useBlockProps)(),r=(0,Ye.useInnerBlocksProps)(a,{template:Xa,allowedBlocks:er});return(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n?.pageComments}),[])?(0,qe.createElement)(qe.Fragment,null,o&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ya,{value:e,onChange:e=>{t({paginationArrow:e})}}))),(0,qe.createElement)("div",{...r})):(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings"))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},ar=()=>Qe({name:nr,metadata:tr,settings:or});var rr=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"}));const lr={none:"",arrow:"→",chevron:"»"};const ir={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-next",title:"Comments Next Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the next comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:sr}=ir,cr={icon:rr,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":n}}){const o=lr[n];return(0,qe.createElement)("a",{href:"#comments-pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ye.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Je.__)("Newer comments page link"),placeholder:(0,Je.__)("Newer Comments"),value:e,onChange:e=>t({label:e})}),o&&(0,qe.createElement)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${n}`},o))}},ur=()=>Qe({name:sr,metadata:ir,settings:cr});var mr=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"}));const pr=({content:e,tag:t="a",extraClass:n=""})=>"a"===t?(0,qe.createElement)(t,{className:`page-numbers ${n}`,href:"#comments-pagination-numbers-pseudo-link",onClick:e=>e.preventDefault()},e):(0,qe.createElement)(t,{className:`page-numbers ${n}`},e);const dr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-numbers",title:"Comments Page Numbers",category:"theme",parent:["core/comments-pagination"],description:"Displays a list of page numbers for comments pagination.",textdomain:"default",usesContext:["postId"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:gr}=dr,hr={icon:mr,edit:function(){return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(pr,{content:"1"}),(0,qe.createElement)(pr,{content:"2"}),(0,qe.createElement)(pr,{content:"3",tag:"span",extraClass:"current"}),(0,qe.createElement)(pr,{content:"4"}),(0,qe.createElement)(pr,{content:"5"}),(0,qe.createElement)(pr,{content:"...",tag:"span",extraClass:"dots"}),(0,qe.createElement)(pr,{content:"8"}))}},_r=()=>Qe({name:gr,metadata:dr,settings:hr});var br=(0,qe.createElement)(We.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"}));const{attributes:fr,supports:vr}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}}}};var yr=[{attributes:{...fr,singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:vr,migrate:e=>{const{singleCommentLabel:t,multipleCommentsLabel:n,...o}=e;return o},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null}];const kr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}}}},{name:xr}=kr,wr={icon:br,edit:function({attributes:{textAlign:e,showPostTitle:t,showCommentsCount:n,level:o},setAttributes:a,context:{postType:r,postId:l}}){const i="h"+o,[s,c]=(0,qe.useState)(),[u]=(0,ct.useEntityProp)("postType",r,"title",l),m=void 0===l,p=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${e}`]:e})}),{threadCommentsDepth:d,threadComments:g,commentsPerPage:h,pageComments:_}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t().__experimentalDiscussionSettings}));(0,qe.useEffect)((()=>{if(m){const e=g?Math.min(d,3)-1:0,t=_?h:3,n=parseInt(e)+parseInt(t);return void c(Math.min(n,3))}const e=l;Ha()({path:(0,st.addQueryArgs)("/wp/v2/comments",{post:l,_fields:"id"}),method:"HEAD",parse:!1}).then((t=>{e===l&&c(parseInt(t.headers.get("X-WP-Total")))})).catch((()=>{c(0)}))}),[l]);const b=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:e,onChange:e=>a({textAlign:e})}),(0,qe.createElement)(Ye.HeadingLevelDropdown,{value:o,onChange:e=>a({level:e})})),f=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post title"),checked:t,onChange:e=>a({showPostTitle:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show comments count"),checked:n,onChange:e=>a({showCommentsCount:e})}))),v=m?(0,Je.__)("“Post Title”"):`"${u}"`;let y;return y=n&&void 0!==s?t?1===s?(0,Je.sprintf)((0,Je.__)("One response to %s"),v):(0,Je.sprintf)((0,Je._n)("%1$s response to %2$s","%1$s responses to %2$s",s),s,v):1===s?(0,Je.__)("One response"):(0,Je.sprintf)((0,Je._n)("%s response","%s responses",s),s):t?1===s?(0,Je.sprintf)((0,Je.__)("Response to %s"),v):(0,Je.sprintf)((0,Je.__)("Responses to %s"),v):1===s?(0,Je.__)("Response"):(0,Je.__)("Responses"),(0,qe.createElement)(qe.Fragment,null,b,f,(0,qe.createElement)(i,{...p},y))},deprecated:yr},Cr=()=>Qe({name:xr,metadata:kr,settings:wr});var Er=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));const Sr={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},Br="image",Tr="video",Nr=50,Pr={x:.5,y:.5},Ir=["image","video"];function Mr({x:e,y:t}=Pr){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function zr(e){return 50===e||void 0===!e?null:"has-background-dim-"+10*Math.round(e/10)}function Rr(e){return!e||"center center"===e||"center"===e}function Hr(e){return Rr(e)?"":Sr[e]}function Lr(e){return e?{backgroundImage:`url(${e})`}:{}}function Ar(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Vr(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Dr(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}const Fr={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},$r={url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},Gr={anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},Or={attributes:$r,supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:g,id:h,minHeight:_,minHeightUnit:b}=e,f=(0,Ye.getColorClassName)("background-color",p),v=(0,Ye.__experimentalGetGradientClass)(n),y=Br===t,k=Tr===t,x=!(c||m),w={minHeight:(_&&b?`${_}${b}`:_)||void 0},C={backgroundColor:f?void 0:r,background:a||void 0},E=i&&x?Mr(i):void 0,S=d?`url(${d})`:void 0,B=Mr(i),T=it()({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Rr(o)},Hr(o)),N=it()("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":m}),P=n||a;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:T,style:w})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",f,zr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&P&&0!==l,"has-background-gradient":P,[v]:v}),style:C}),!s&&y&&d&&(x?(0,qe.createElement)("img",{className:N,alt:g,src:d,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,qe.createElement)("div",{role:"img",className:N,style:{backgroundPosition:B,backgroundImage:S}})),k&&d&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Dr},Ur={attributes:$r,supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:g,id:h,minHeight:_,minHeightUnit:b}=e,f=(0,Ye.getColorClassName)("background-color",p),v=(0,Ye.__experimentalGetGradientClass)(n),y=_&&b?`${_}${b}`:_,k=Br===t,x=Tr===t,w=!(c||m),C={...!k||w||s?{}:Lr(d),minHeight:y||void 0},E={backgroundColor:f?void 0:r,background:a||void 0},S=i&&w?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,B=it()({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Rr(o)},Hr(o)),T=n||a;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:B,style:C})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",f,zr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&T&&0!==l,"has-background-gradient":T,[v]:v}),style:E}),!s&&k&&w&&d&&(0,qe.createElement)("img",{className:it()("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),x&&d&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Dr},jr={attributes:$r,supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isDark:c,isRepeated:u,overlayColor:m,url:p,alt:d,id:g,minHeight:h,minHeightUnit:_}=e,b=(0,Ye.getColorClassName)("background-color",m),f=(0,Ye.__experimentalGetGradientClass)(n),v=_?`${h}${_}`:h,y=Br===t,k=Tr===t,x=!(s||u),w={...y&&!x?Lr(p):{},minHeight:v||void 0},C={backgroundColor:b?void 0:r,background:a||void 0},E=i&&x?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,S=it()({"is-light":!c,"has-parallax":s,"is-repeated":u,"has-custom-content-position":!Rr(o)},Hr(o)),B=n||a;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:S,style:w})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",b,zr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":p&&B&&0!==l,"has-background-gradient":B,[f]:f}),style:C}),y&&x&&p&&(0,qe.createElement)("img",{className:it()("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:d,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),k&&p&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Dr},qr={attributes:$r,supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isDark:c,isRepeated:u,overlayColor:m,url:p,alt:d,id:g,minHeight:h,minHeightUnit:_}=e,b=(0,Ye.getColorClassName)("background-color",m),f=(0,Ye.__experimentalGetGradientClass)(n),v=_?`${h}${_}`:h,y=Br===t,k=Tr===t,x=!(s||u),w={...y&&!x?Lr(p):{},minHeight:v||void 0},C={backgroundColor:b?void 0:r,background:a||void 0},E=i&&x?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,S=it()({"is-light":!c,"has-parallax":s,"is-repeated":u,"has-custom-content-position":!Rr(o)},Hr(o));return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:S,style:w})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()(b,zr(l),"wp-block-cover__gradient-background",f,{"has-background-dim":void 0!==l,"has-background-gradient":n||a,[f]:!p&&f}),style:C}),y&&x&&p&&(0,qe.createElement)("img",{className:it()("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:d,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),k&&p&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Dr},Wr={attributes:{...Fr,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isRepeated:c,overlayColor:u,url:m,alt:p,id:d,minHeight:g,minHeightUnit:h}=e,_=(0,Ye.getColorClassName)("background-color",u),b=(0,Ye.__experimentalGetGradientClass)(n),f=h?`${g}${h}`:g,v=Br===t,y=Tr===t,k=!(s||c),x={...v&&!k?Lr(m):{},backgroundColor:_?void 0:r,background:a&&!m?a:void 0,minHeight:f||void 0},w=i&&k?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,C=it()(Ar(l),_,{"has-background-dim":0!==l,"has-parallax":s,"is-repeated":c,"has-background-gradient":n||a,[b]:!m&&b,"has-custom-content-position":!Rr(o)},Hr(o));return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:C,style:x})},m&&(n||a)&&0!==l&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__gradient-background",b),style:a?{background:a}:void 0}),v&&k&&m&&(0,qe.createElement)("img",{className:it()("wp-block-cover__image-background",d?`wp-image-${d}`:null),alt:p,src:m,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),y&&m&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),(0,qe.createElement)("div",{className:"wp-block-cover__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))},migrate:(0,Tt.compose)(Vr,Dr)},Zr={attributes:{...Fr,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isRepeated:c,overlayColor:u,url:m,minHeight:p,minHeightUnit:d}=e,g=(0,Ye.getColorClassName)("background-color",u),h=(0,Ye.__experimentalGetGradientClass)(n),_=d?`${p}${d}`:p,b=Br===t,f=Tr===t,v=b?Lr(m):{},y={};let k;g||(v.backgroundColor=r),a&&!m&&(v.background=a),v.minHeight=_||void 0,i&&(k=`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`,b&&!s&&(v.backgroundPosition=k),f&&(y.objectPosition=k));const x=it()(Ar(l),g,{"has-background-dim":0!==l,"has-parallax":s,"is-repeated":c,"has-background-gradient":n||a,[h]:!m&&h,"has-custom-content-position":!Rr(o)},Hr(o));return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:x,style:v})},m&&(n||a)&&0!==l&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__gradient-background",h),style:a?{background:a}:void 0}),f&&m&&(0,qe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:y}),(0,qe.createElement)("div",{className:"wp-block-cover__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))},migrate:(0,Tt.compose)(Vr,Dr)},Qr={attributes:{...Fr,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:o,customOverlayColor:a,dimRatio:r,focalPoint:l,hasParallax:i,overlayColor:s,url:c,minHeight:u}=e,m=(0,Ye.getColorClassName)("background-color",s),p=(0,Ye.__experimentalGetGradientClass)(n),d=t===Br?Lr(c):{};m||(d.backgroundColor=a),l&&!i&&(d.backgroundPosition=`${Math.round(100*l.x)}% ${Math.round(100*l.y)}%`),o&&!c&&(d.background=o),d.minHeight=u||void 0;const g=it()(Ar(r),m,{"has-background-dim":0!==r,"has-parallax":i,"has-background-gradient":o,[p]:!c&&p});return(0,qe.createElement)("div",{className:g,style:d},c&&(n||o)&&0!==r&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__gradient-background",p),style:o?{background:o}:void 0}),Tr===t&&c&&(0,qe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,qe.createElement)("div",{className:"wp-block-cover__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))},migrate:(0,Tt.compose)(Vr,Dr)},Kr={attributes:{...Fr,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:o,customOverlayColor:a,dimRatio:r,focalPoint:l,hasParallax:i,overlayColor:s,url:c,minHeight:u}=e,m=(0,Ye.getColorClassName)("background-color",s),p=(0,Ye.__experimentalGetGradientClass)(n),d=t===Br?Lr(c):{};m||(d.backgroundColor=a),l&&!i&&(d.backgroundPosition=`${100*l.x}% ${100*l.y}%`),o&&!c&&(d.background=o),d.minHeight=u||void 0;const g=it()(Ar(r),m,{"has-background-dim":0!==r,"has-parallax":i,"has-background-gradient":o,[p]:!c&&p});return(0,qe.createElement)("div",{className:g,style:d},c&&(n||o)&&0!==r&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__gradient-background",p),style:o?{background:o}:void 0}),Tr===t&&c&&(0,qe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,qe.createElement)("div",{className:"wp-block-cover__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))},migrate:(0,Tt.compose)(Vr,Dr)},Jr={attributes:{...Fr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:n,customOverlayColor:o,dimRatio:a,focalPoint:r,hasParallax:l,overlayColor:i,title:s,url:c}=e,u=(0,Ye.getColorClassName)("background-color",i),m=t===Br?Lr(c):{};u||(m.backgroundColor=o),r&&!l&&(m.backgroundPosition=`${100*r.x}% ${100*r.y}%`);const p=it()(Ar(a),u,{"has-background-dim":0!==a,"has-parallax":l,[`has-${n}-content`]:"center"!==n});return(0,qe.createElement)("div",{className:p,style:m},Tr===t&&c&&(0,qe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),!Ye.RichText.isEmpty(s)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:o,...a}=t;return[a,[(0,je.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,Je.__)("Write title…")})]]}},Yr={attributes:{...Fr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:o,dimRatio:a,align:r,contentAlign:l,overlayColor:i,customOverlayColor:s}=e,c=(0,Ye.getColorClassName)("background-color",i),u=Lr(t);c||(u.backgroundColor=s);const m=it()("wp-block-cover-image",Ar(a),c,{"has-background-dim":0!==a,"has-parallax":o,[`has-${l}-content`]:"center"!==l},r?`align${r}`:null);return(0,qe.createElement)("div",{className:m,style:u},!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:n}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:o,align:a,...r}=t;return[r,[(0,je.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,Je.__)("Write title…")})]]}},Xr={attributes:{...Fr,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:o,dimRatio:a,align:r}=e,l=Lr(t),i=it()("wp-block-cover-image",Ar(a),{"has-background-dim":0!==a,"has-parallax":o},r?`align${r}`:null);return(0,qe.createElement)("section",{className:i,style:l},(0,qe.createElement)(Ye.RichText.Content,{tagName:"h2",value:n}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:o,align:a,...r}=t;return[r,[(0,je.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,Je.__)("Write title…")})]]}};var el=[Or,Ur,jr,qr,Wr,Zr,Qr,Kr,Jr,Yr,Xr],tl={grad:.9,turn:360,rad:360/(2*Math.PI)},nl=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},ol=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},al=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},rl=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ll=function(e){return{r:al(e.r,0,255),g:al(e.g,0,255),b:al(e.b,0,255),a:al(e.a)}},il=function(e){return{r:ol(e.r),g:ol(e.g),b:ol(e.b),a:ol(e.a,3)}},sl=/^#([0-9a-f]{3,8})$/i,cl=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ul=function(e){var t=e.r,n=e.g,o=e.b,a=e.a,r=Math.max(t,n,o),l=r-Math.min(t,n,o),i=l?r===t?(n-o)/l:r===n?2+(o-t)/l:4+(t-n)/l:0;return{h:60*(i<0?i+6:i),s:r?l/r*100:0,v:r/255*100,a:a}},ml=function(e){var t=e.h,n=e.s,o=e.v,a=e.a;t=t/360*6,n/=100,o/=100;var r=Math.floor(t),l=o*(1-n),i=o*(1-(t-r)*n),s=o*(1-(1-t+r)*n),c=r%6;return{r:255*[o,i,l,l,s,o][c],g:255*[s,o,o,i,l,l][c],b:255*[l,l,s,o,o,i][c],a:a}},pl=function(e){return{h:rl(e.h),s:al(e.s,0,100),l:al(e.l,0,100),a:al(e.a)}},dl=function(e){return{h:ol(e.h),s:ol(e.s),l:ol(e.l),a:ol(e.a,3)}},gl=function(e){return ml((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},hl=function(e){return{h:(t=ul(e)).h,s:(a=(200-(n=t.s))*(o=t.v)/100)>0&&a<200?n*o/100/(a<=100?a:200-a)*100:0,l:a/2,a:t.a};var t,n,o,a},_l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,bl=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fl=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vl=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,yl={string:[[function(e){var t=sl.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?ol(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?ol(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=fl.exec(e)||vl.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ll({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=_l.exec(e)||bl.exec(e);if(!t)return null;var n,o,a=pl({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(tl[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return gl(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,a=e.a,r=void 0===a?1:a;return nl(t)&&nl(n)&&nl(o)?ll({r:Number(t),g:Number(n),b:Number(o),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,a=e.a,r=void 0===a?1:a;if(!nl(t)||!nl(n)||!nl(o))return null;var l=pl({h:Number(t),s:Number(n),l:Number(o),a:Number(r)});return gl(l)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,a=e.a,r=void 0===a?1:a;if(!nl(t)||!nl(n)||!nl(o))return null;var l=function(e){return{h:rl(e.h),s:al(e.s,0,100),v:al(e.v,0,100),a:al(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(r)});return ml(l)},"hsv"]]},kl=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},xl=function(e){return"string"==typeof e?kl(e.trim(),yl.string):"object"==typeof e&&null!==e?kl(e,yl.object):[null,void 0]},wl=function(e,t){var n=hl(e);return{h:n.h,s:al(n.s+100*t,0,100),l:n.l,a:n.a}},Cl=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},El=function(e,t){var n=hl(e);return{h:n.h,s:n.s,l:al(n.l+100*t,0,100),a:n.a}},Sl=function(){function e(e){this.parsed=xl(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return ol(Cl(this.rgba),2)},e.prototype.isDark=function(){return Cl(this.rgba)<.5},e.prototype.isLight=function(){return Cl(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=il(this.rgba)).r,n=e.g,o=e.b,r=(a=e.a)<1?cl(ol(255*a)):"","#"+cl(t)+cl(n)+cl(o)+r;var e,t,n,o,a,r},e.prototype.toRgb=function(){return il(this.rgba)},e.prototype.toRgbString=function(){return t=(e=il(this.rgba)).r,n=e.g,o=e.b,(a=e.a)<1?"rgba("+t+", "+n+", "+o+", "+a+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,a},e.prototype.toHsl=function(){return dl(hl(this.rgba))},e.prototype.toHslString=function(){return t=(e=dl(hl(this.rgba))).h,n=e.s,o=e.l,(a=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+a+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,a},e.prototype.toHsv=function(){return e=ul(this.rgba),{h:ol(e.h),s:ol(e.s),v:ol(e.v),a:ol(e.a,3)};var e},e.prototype.invert=function(){return Bl({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Bl(wl(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Bl(wl(this.rgba,-e))},e.prototype.grayscale=function(){return Bl(wl(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Bl(El(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Bl(El(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Bl({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):ol(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=hl(this.rgba);return"number"==typeof e?Bl({h:e,s:t.s,l:t.l,a:t.a}):ol(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Bl(e).toHex()},e}(),Bl=function(e){return e instanceof Sl?e:new Sl(e)},Tl=[];
-/*! Fast Average Color | © 2022 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */
-function Nl(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Pl(e){return"#"+e.map(Nl).join("")}function Il(e){return e?(t=e,Array.isArray(t[0])?e:[e]):[];var t}function Ml(e,t,n){for(var o=0;o<n.length;o++)if(zl(e,t,n[o]))return!0;return!1}function zl(e,t,n){switch(n.length){case 3:if(function(e,t,n){if(255!==e[t+3])return!0;if(e[t]===n[0]&&e[t+1]===n[1]&&e[t+2]===n[2])return!0;return!1}(e,t,n))return!0;break;case 4:if(function(e,t,n){if(e[t+3]&&n[3])return e[t]===n[0]&&e[t+1]===n[1]&&e[t+2]===n[2]&&e[t+3]===n[3];return e[t+3]===n[3]}(e,t,n))return!0;break;case 5:if(function(e,t,n){var o=n[0],a=n[1],r=n[2],l=n[3],i=n[4],s=e[t+3],c=Rl(s,l,i);if(!l)return c;if(!s&&c)return!0;if(Rl(e[t],o,i)&&Rl(e[t+1],a,i)&&Rl(e[t+2],r,i)&&c)return!0;return!1}(e,t,n))return!0;break;default:return!1}}function Rl(e,t,n){return e>=t-n&&e<=t+n}function Hl(e,t,n){for(var o={},a=n.ignoredColor,r=n.step,l=[0,0,0,0,0],i=0;i<t;i+=r){var s=e[i],c=e[i+1],u=e[i+2],m=e[i+3];if(!a||!Ml(e,i,a)){var p=Math.round(s/24)+","+Math.round(c/24)+","+Math.round(u/24);o[p]?o[p]=[o[p][0]+s*m,o[p][1]+c*m,o[p][2]+u*m,o[p][3]+m,o[p][4]+1]:o[p]=[s*m,c*m,u*m,m,1],l[4]<o[p][4]&&(l=o[p])}}var d=l[0],g=l[1],h=l[2],_=l[3],b=l[4];return _?[Math.round(d/_),Math.round(g/_),Math.round(h/_),Math.round(_/b)]:n.defaultColor}function Ll(e,t,n){for(var o=0,a=0,r=0,l=0,i=0,s=n.ignoredColor,c=n.step,u=0;u<t;u+=c){var m=e[u+3],p=e[u]*m,d=e[u+1]*m,g=e[u+2]*m;s&&Ml(e,u,s)||(o+=p,a+=d,r+=g,l+=m,i++)}return l?[Math.round(o/l),Math.round(a/l),Math.round(r/l),Math.round(l/i)]:n.defaultColor}function Al(e,t,n){for(var o=0,a=0,r=0,l=0,i=0,s=n.ignoredColor,c=n.step,u=0;u<t;u+=c){var m=e[u],p=e[u+1],d=e[u+2],g=e[u+3];s&&Ml(e,u,s)||(o+=m*m*g,a+=p*p*g,r+=d*d*g,l+=g,i++)}return l?[Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(a/l)),Math.round(Math.sqrt(r/l)),Math.round(l/i)]:n.defaultColor}function Vl(e){return Dl(e,"defaultColor",[0,0,0,0])}function Dl(e,t,n){return void 0===e[t]?n:e[t]}function Fl(e){if(Gl(e)){var t=e.naturalWidth,n=e.naturalHeight;return e.naturalWidth||-1===e.src.search(/\.svg(\?|$)/i)||(t=n=100),{width:t,height:n}}return function(e){return"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement}(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function $l(e){return function(e){return"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement}(e)?"canvas":function(e){return Ol&&e instanceof OffscreenCanvas}(e)?"offscreencanvas":function(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}(e)?"imagebitmap":e.src}function Gl(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement}var Ol="undefined"!=typeof OffscreenCanvas;var Ul="undefined"==typeof window;function jl(e){return Error("FastAverageColor: "+e)}function ql(e,t){t||console.error(e)}var Wl=function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(e,t){if(!e)return Promise.reject(jl("call .getColorAsync() without resource."));if("string"==typeof e){if("undefined"==typeof Image)return Promise.reject(jl("resource as string is not supported in this environment"));var n=new Image;return n.crossOrigin=t&&t.crossOrigin||"",n.src=e,this.bindImageEvents(n,t)}if(Gl(e)&&!e.complete)return this.bindImageEvents(e,t);var o=this.getColor(e,t);return o.error?Promise.reject(o.error):Promise.resolve(o)},e.prototype.getColor=function(e,t){var n=Vl(t=t||{});if(!e)return ql(r=jl("call .getColor(null) without resource"),t.silent),this.prepareResult(n,r);var o=function(e,t){var n,o=Dl(t,"left",0),a=Dl(t,"top",0),r=Dl(t,"width",e.width),l=Dl(t,"height",e.height),i=r,s=l;return"precision"===t.mode||(r>l?(n=r/l,i=100,s=Math.round(i/n)):(n=l/r,s=100,i=Math.round(s/n)),(i>r||s>l||i<10||s<10)&&(i=r,s=l)),{srcLeft:o,srcTop:a,srcWidth:r,srcHeight:l,destWidth:i,destHeight:s}}(Fl(e),t);if(!(o.srcWidth&&o.srcHeight&&o.destWidth&&o.destHeight))return ql(r=jl('incorrect sizes for resource "'.concat($l(e),'"')),t.silent),this.prepareResult(n,r);if(!this.canvas&&(this.canvas=Ul?Ol?new OffscreenCanvas(1,1):null:document.createElement("canvas"),!this.canvas))return ql(r=jl("OffscreenCanvas is not supported in this browser"),t.silent),this.prepareResult(n,r);if(!this.ctx){if(this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0}),!this.ctx)return ql(r=jl("Canvas Context 2D is not supported in this browser"),t.silent),this.prepareResult(n);this.ctx.imageSmoothingEnabled=!1}this.canvas.width=o.destWidth,this.canvas.height=o.destHeight;try{this.ctx.clearRect(0,0,o.destWidth,o.destHeight),this.ctx.drawImage(e,o.srcLeft,o.srcTop,o.srcWidth,o.srcHeight,0,0,o.destWidth,o.destHeight);var a=this.ctx.getImageData(0,0,o.destWidth,o.destHeight).data;return this.prepareResult(this.getColorFromArray4(a,t))}catch(o){var r;return ql(r=jl("security error (CORS) for resource ".concat($l(e),".\nDetails: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image")),t.silent),!t.silent&&console.error(o),this.prepareResult(n,r)}},e.prototype.getColorFromArray4=function(e,t){t=t||{};var n=e.length,o=Vl(t);if(n<4)return o;var a,r=n-n%4,l=4*(t.step||1);switch(t.algorithm||"sqrt"){case"simple":a=Ll;break;case"sqrt":a=Al;break;case"dominant":a=Hl;break;default:throw jl("".concat(t.algorithm," is unknown algorithm"))}return a(e,r,{defaultColor:o,ignoredColor:Il(t.ignoredColor),step:l})},e.prototype.prepareResult=function(e,t){var n,o=e.slice(0,3),a=[e[0],e[1],e[2],e[3]/255],r=(299*(n=e)[0]+587*n[1]+114*n[2])/1e3<128;return{value:[e[0],e[1],e[2],e[3]],rgb:"rgb("+o.join(",")+")",rgba:"rgba("+a.join(",")+")",hex:Pl(o),hexa:Pl(e),isDark:r,isLight:!r,error:t}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(e,t){var n=this;return new Promise((function(o,a){var r=function(){s();var r=n.getColor(e,t);r.error?a(r.error):o(r)},l=function(){s(),a(jl('Error loading image "'.concat(e.src,'".')))},i=function(){s(),a(jl('Image "'.concat(e.src,'" loading aborted')))},s=function(){e.removeEventListener("load",r),e.removeEventListener("error",l),e.removeEventListener("abort",i)};e.addEventListener("load",r),e.addEventListener("error",l),e.addEventListener("abort",i)}))},e}(),Zl=window.wp.hooks;function Ql(){return Ql.fastAverageColor||(Ql.fastAverageColor=new Wl),Ql.fastAverageColor}function Kl({onChange:e,onUnitChange:t,unit:n="px",value:o=""}){const a=`block-cover-height-input-${(0,Tt.useInstanceId)(Ke.__experimentalUnitControl)}`,r="px"===n,l=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),i=(0,qe.useMemo)((()=>{const[e]=(0,Ke.__experimentalParseQuantityAndUnitFromRawValue)(o);return[e,n].join("")}),[n,o]),s=r?Nr:0;return(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Minimum height of cover"),id:a,isResetValueOnUnitChange:!0,min:s,onChange:t=>{const n=""!==t?parseFloat(t):void 0;isNaN(n)&&void 0!==n||e(n)},onUnitChange:t,__unstableInputWidth:"80px",units:l,value:i})}function Jl({attributes:e,setAttributes:t,clientId:n,setOverlayColor:o,coverRef:a,currentSettings:r}){const{useFeaturedImage:l,dimRatio:i,focalPoint:s,hasParallax:c,isRepeated:u,minHeight:m,minHeightUnit:p,alt:d,tagName:g}=e,{isVideoBackground:h,isImageBackground:_,mediaElement:b,url:f,isImgElement:v,overlayColor:y}=r,{gradientValue:k,setGradient:x}=(0,Ye.__experimentalUseGradient)(),w=h||_&&(!c||u),C=e=>{const[t,n]=b.current?[b.current.style,"objectPosition"]:[a.current.style,"backgroundPosition"];t[n]=Mr(e)},E=(0,Ye.__experimentalUseMultipleOriginColorsAndGradients)(),S={header:(0,Je.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Je.__)("The <main> element should be used for the primary content of your document only. "),section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,Je.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,Je.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,!!f&&(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Media settings")},_&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Fixed background"),checked:c,onChange:()=>{t({hasParallax:!c,...c?{}:{focalPoint:void 0}})}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Repeated background"),checked:u,onChange:()=>{t({isRepeated:!u})}})),w&&(0,qe.createElement)(Ke.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Focal point picker"),url:f,value:s,onDragStart:C,onDrag:C,onChange:e=>t({focalPoint:e})}),!l&&f&&_&&v&&(0,qe.createElement)(Ke.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Alternative text"),value:d,onChange:e=>t({alt:e}),help:(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,Je.__)("Describe the purpose of the image.")),(0,qe.createElement)("br",null),(0,Je.__)("Leave empty if decorative."))}),(0,qe.createElement)(Ke.PanelRow,null,(0,qe.createElement)(Ke.Button,{variant:"secondary",isSmall:!0,className:"block-library-cover__reset-button",onClick:()=>t({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:!1})},(0,Je.__)("Clear Media"))))),E.hasColorsOrGradients&&(0,qe.createElement)(Ye.InspectorControls,{group:"color"},(0,qe.createElement)(Ye.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:y.color,gradientValue:k,label:(0,Je.__)("Overlay"),onColorChange:o,onGradientChange:x,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0})}],panelId:n,...E}),(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>void 0!==i&&i!==(f?50:100),label:(0,Je.__)("Overlay opacity"),onDeselect:()=>t({dimRatio:f?50:100}),resetAllFilter:()=>({dimRatio:f?50:100}),isShownByDefault:!0,panelId:n},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Overlay opacity"),value:i,onChange:e=>t({dimRatio:e}),min:0,max:100,step:10,required:!0}))),(0,qe.createElement)(Ye.InspectorControls,{group:"dimensions"},(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,Je.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:n},(0,qe.createElement)(Kl,{value:m,unit:p,onChange:e=>t({minHeight:e}),onUnitChange:e=>t({minHeightUnit:e})}))),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:g,onChange:e=>t({tagName:e}),help:S[g]})))}function Yl({attributes:e,setAttributes:t,onSelectMedia:n,currentSettings:o,toggleUseFeaturedImage:a}){const{contentPosition:r,id:l,useFeaturedImage:i,minHeight:s,minHeightUnit:c}=e,{hasInnerBlocks:u,url:m}=o,[p,d]=(0,qe.useState)(s),[g,h]=(0,qe.useState)(c),_="vh"===c&&100===s;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.__experimentalBlockAlignmentMatrixControl,{label:(0,Je.__)("Change content position"),value:r,onChange:e=>t({contentPosition:e}),isDisabled:!u}),(0,qe.createElement)(Ye.__experimentalBlockFullHeightAligmentControl,{isActive:_,onToggle:()=>_?t("vh"===g&&100===p?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:p,minHeightUnit:g}):(d(s),h(c),t({minHeight:100,minHeightUnit:"vh"})),isDisabled:!u})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:Ir,accept:"image/*,video/*",onSelect:n,onToggleFeaturedImage:a,useFeaturedImage:i,name:m?(0,Je.__)("Replace"):(0,Je.__)("Add Media")})))}function Xl({disableMediaButtons:e=!1,children:t,onSelectMedia:n,onError:o,style:a,toggleUseFeaturedImage:r}){return(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Er}),labels:{title:(0,Je.__)("Cover"),instructions:(0,Je.__)("Drag and drop onto this block, upload, or select existing media from your library.")},onSelect:n,accept:"image/*,video/*",allowedTypes:Ir,disableMediaButtons:e,onToggleFeaturedImage:r,onError:o,style:a},t)}const ei={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:ti}=Yt(Ye.privateApis);function ni({className:e,height:t,minHeight:n,onResize:o,onResizeStart:a,onResizeStop:r,showHandle:l,size:i,width:s,...c}){const[u,m]=(0,qe.useState)(!1),p=(0,qe.useMemo)((()=>({height:t,minHeight:n,width:s})),[n,t,s]),d={className:it()(e,{"is-resizing":u}),enable:ei,onResizeStart:(e,t,n)=>{a(n.clientHeight),o(n.clientHeight)},onResize:(e,t,n)=>{o(n.clientHeight),u||m(!0)},onResizeStop:(e,t,n)=>{r(n.clientHeight),m(!1)},showHandle:l,size:i,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:u}};return(0,qe.createElement)(ti,{className:"block-library-cover__resizable-box-popover",__unstableRefreshSize:p,resizableBoxProps:d,...c})}!function(e){e.forEach((function(e){Tl.indexOf(e)<0&&(e(Sl,yl),Tl.push(e))}))}([function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var a in n)o[n[a]]=a;var r={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,i=o[this.toHex()];if(i)return i;if(null==t?void 0:t.closest){var s=this.toRgb(),c=1/0,u="black";if(!r.length)for(var m in n)r[m]=new e(n[m]).toRgb();for(var p in n){var d=(a=s,l=r[p],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));d<c&&(c=d,u=p)}return u}},t.string.push([function(t){var o=t.toLowerCase(),a="transparent"===o?"#0000":n[o];return a?new e(a).toRgb():null},"name"])}]);var oi=(0,Tt.compose)([(0,Ye.withColors)({overlayColor:"background-color"})])((function({attributes:e,clientId:t,isSelected:n,overlayColor:o,setAttributes:a,setOverlayColor:r,toggleSelection:l,context:{postId:i,postType:s}}){const{contentPosition:c,id:u,useFeaturedImage:m,dimRatio:p,focalPoint:d,hasParallax:g,isDark:h,isRepeated:_,minHeight:b,minHeightUnit:f,alt:v,allowedBlocks:y,templateLock:k,tagName:x="div"}=e,[w]=(0,ct.useEntityProp)("postType",s,"featured_media",i),C=(0,ut.useSelect)((e=>w&&e(ct.store).getMedia(w,{context:"view"})),[w]),E=C?.source_url,S=m?E:e.url?.replaceAll("&","&"),B=m?Br:e.backgroundType,{__unstableMarkNextChangeAsNotPersistent:T}=(0,ut.useDispatch)(Ye.store),{createErrorNotice:N}=(0,ut.useDispatch)(Bt.store),{gradientClass:P,gradientValue:I}=(0,Ye.__experimentalUseGradient)(),M=function(e,t){return n=>{if(!n||!n.url)return void e({url:void 0,id:void 0});let o;if((0,Et.isBlobURL)(n.url)&&(n.type=(0,Et.getBlobTypeByURL)(n.url)),n.media_type)o=n.media_type===Br?Br:Tr;else{if(n.type!==Br&&n.type!==Tr)return;o=n.type}e({dimRatio:100===t?50:t,url:n.url,id:n.id,alt:n?.alt,backgroundType:o,focalPoint:void 0,...o===Tr?{hasParallax:void 0}:{}})}}(a,p),z=((e,t)=>!e&&(0,Et.isBlobURL)(t))(u,S),R=e=>{N(e,{type:"snackbar"})},H=function(e,t=50,n){const[o,a]=(0,qe.useState)(!1);return(0,qe.useEffect)((()=>{if(e&&t<=50){const t=(0,Zl.applyFilters)("media.crossOrigin",void 0,e);Ql().getColorAsync(e,{defaultColor:[255,255,255,255],silent:!0,crossOrigin:t}).then((e=>a(e.isDark)))}}),[e,e&&t<=50,a]),(0,qe.useEffect)((()=>{if(t>50||!e){if(!n)return void a(!0);a(Bl(n).isDark())}}),[n,t>50||!e,a]),(0,qe.useEffect)((()=>{e||n||a(!1)}),[!e&&!n,a]),o}(S,p,o.color);(0,qe.useEffect)((()=>{T(),a({isDark:H})}),[H]);const L=Br===B,A=Tr===B,[V,{height:D,width:F}]=(0,Tt.useResizeObserver)(),$=(0,qe.useMemo)((()=>({height:"px"===f?b:"auto",width:"auto"})),[b,f]),G=b&&f?`${b}${f}`:b,O=!(g||_),U={minHeight:G||void 0},j=S?`url(${S})`:void 0,q=Mr(d),W={backgroundColor:o.color},Z={objectPosition:d&&O?Mr(d):void 0},Q=!!(S||o.color||I),K=(0,ut.useSelect)((e=>e(Ye.store).getBlock(t).innerBlocks.length>0),[t]),J=(0,qe.useRef)(),Y=(0,Ye.useBlockProps)({ref:J}),X=function(e){return[["core/paragraph",{align:"center",placeholder:(0,Je.__)("Write title…"),...e}]]}({fontSize:!!(0,Ye.useSetting)("typography.fontSizes")?.length?"large":void 0}),ee=(0,Ye.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:K?void 0:X,templateInsertUpdatesSelection:!0,allowedBlocks:y,templateLock:k}),te=(0,qe.useRef)(),ne={isVideoBackground:A,isImageBackground:L,mediaElement:te,hasInnerBlocks:K,url:S,isImgElement:O,overlayColor:o},oe=()=>{a({id:void 0,url:void 0,useFeaturedImage:!m,dimRatio:100===p?50:p,backgroundType:m?Br:void 0})},ae=(0,qe.createElement)(Yl,{attributes:e,setAttributes:a,onSelectMedia:M,currentSettings:ne,toggleUseFeaturedImage:oe}),re=(0,qe.createElement)(Jl,{attributes:e,setAttributes:a,clientId:t,setOverlayColor:r,coverRef:J,currentSettings:ne,toggleUseFeaturedImage:oe}),le={className:"block-library-cover__resize-container",clientId:t,height:D,minHeight:G,onResizeStart:()=>{a({minHeightUnit:"px"}),l(!1)},onResize:e=>{a({minHeight:e})},onResizeStop:e=>{l(!0),a({minHeight:e})},showHandle:!0,size:$,width:F};if(!m&&!K&&!Q)return(0,qe.createElement)(qe.Fragment,null,ae,re,n&&(0,qe.createElement)(ni,{...le}),(0,qe.createElement)(x,{...Y,className:it()("is-placeholder",Y.className),style:{...Y.style,minHeight:G||void 0}},V,(0,qe.createElement)(Xl,{onSelectMedia:M,onError:R,toggleUseFeaturedImage:oe},(0,qe.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},(0,qe.createElement)(Ye.ColorPalette,{disableCustomColors:!0,value:o.color,onChange:r,clearable:!1})))));const ie=it()({"is-dark-theme":h,"is-light":!h,"is-transient":z,"has-parallax":g,"is-repeated":_,"has-custom-content-position":!Rr(c)},Hr(c));return(0,qe.createElement)(qe.Fragment,null,ae,re,(0,qe.createElement)(x,{...Y,className:it()(ie,Y.className),style:{...U,...Y.style},"data-url":S},V,(!m||S)&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",zr(p),{[o.class]:o.class,"has-background-dim":void 0!==p,"wp-block-cover__gradient-background":S&&I&&0!==p,"has-background-gradient":I,[P]:P}),style:{backgroundImage:I,...W}}),!S&&m&&(0,qe.createElement)(Ke.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),S&&L&&(O?(0,qe.createElement)("img",{ref:te,className:"wp-block-cover__image-background",alt:v,src:S,style:Z}):(0,qe.createElement)("div",{ref:te,role:"img",className:it()(ie,"wp-block-cover__image-background"),style:{backgroundImage:j,backgroundPosition:q}})),S&&A&&(0,qe.createElement)("video",{ref:te,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:S,style:Z}),z&&(0,qe.createElement)(Ke.Spinner,null),(0,qe.createElement)(Xl,{disableMediaButtons:!0,onSelectMedia:M,onError:R,toggleUseFeaturedImage:oe}),(0,qe.createElement)("div",{...ee})),n&&(0,qe.createElement)(ni,{...le}))}));const{cleanEmptyObject:ai}=Yt(Ye.privateApis),ri={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:n,align:o,id:a,anchor:r,style:l})=>(0,je.createBlock)("core/cover",{dimRatio:50,url:t,alt:n,align:o,id:a,anchor:r,style:{color:{duotone:l?.color?.duotone}}},[(0,je.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:n,id:o,anchor:a})=>(0,je.createBlock)("core/cover",{dimRatio:50,url:t,align:n,id:o,backgroundType:Tr,anchor:a},[(0,je.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{const{align:n,anchor:o,backgroundColor:a,gradient:r,style:l}=e;if(1===t?.length&&"core/cover"===t[0]?.name)return(0,je.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);const i={align:n,anchor:o,dimRatio:a||r||l?.color?.background||l?.color?.gradient?void 0:50,overlayColor:a,customOverlayColor:l?.color?.background,gradient:r,customGradient:l?.color?.gradient},s={...e,backgroundColor:void 0,gradient:void 0,style:ai({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,je.createBlock)("core/cover",i,[(0,je.createBlock)("core/group",s,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:o,gradient:a,customGradient:r})=>t?e===Br:!(n||o||a||r),transform:({title:e,url:t,alt:n,align:o,id:a,anchor:r,style:l})=>(0,je.createBlock)("core/image",{caption:e,url:t,alt:n,align:o,id:a,anchor:r,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:o,gradient:a,customGradient:r})=>t?e===Tr:!(n||o||a||r),transform:({title:e,url:t,align:n,id:o,anchor:a})=>(0,je.createBlock)("core/video",{caption:e,src:t,id:o,align:n,anchor:a})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!e&&!t,transform:(e,t)=>{const n={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:ai({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(1===t?.length&&"core/group"===t[0]?.name){const e=ai(t[0].attributes||{});return e?.backgroundColor||e?.gradient||e?.style?.color?.background||e?.style?.color?.gradient?(0,je.createBlock)("core/group",e,t[0]?.innerBlocks):(0,je.createBlock)("core/group",{...n,...e,style:ai({...e?.style,color:n?.style?.color||e?.style?.color?{...n?.style?.color,...e?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,je.createBlock)("core/group",{...e,...n},t)}}]};var li=ri;var ii=[{name:"cover",title:(0,Je.__)("Cover"),description:(0,Je.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Er}];const si={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!0,background:!1,__experimentalSkipSerialization:["gradients"]},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},{name:ci}=si,ui={icon:Er,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("<strong>Snow Patrol</strong>"),align:"center",style:{typography:{fontSize:48},color:{text:"white"}}}}]},transforms:li,save:function({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:g,id:h,minHeight:_,minHeightUnit:b,tagName:f}=e,v=(0,Ye.getColorClassName)("background-color",p),y=(0,Ye.__experimentalGetGradientClass)(n),k=Br===t,x=Tr===t,w=!(c||m),C={minHeight:(_&&b?`${_}${b}`:_)||void 0},E={backgroundColor:v?void 0:r,background:a||void 0},S=i&&w?Mr(i):void 0,B=d?`url(${d})`:void 0,T=Mr(i),N=it()({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Rr(o)},Hr(o)),P=it()("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":m}),I=n||a;return(0,qe.createElement)(f,{...Ye.useBlockProps.save({className:N,style:C})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",v,zr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&I&&0!==l,"has-background-gradient":I,[y]:y}),style:E}),!s&&k&&d&&(w?(0,qe.createElement)("img",{className:P,alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,qe.createElement)("div",{role:"img",className:P,style:{backgroundPosition:T,backgroundImage:B}})),x&&d&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},edit:oi,deprecated:el,variations:ii},mi=()=>Qe({name:ci,metadata:si,settings:ui});var pi=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,qe.createElement)(We.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"}));const di=[["core/paragraph",{placeholder:(0,Je.__)("Type / to add a hidden block")}]];var gi=function({attributes:e,setAttributes:t,clientId:n}){const{showContent:o,summary:a}=e,r=(0,Ye.useBlockProps)(),l=(0,Ye.useInnerBlocksProps)(r,{template:di,__experimentalCaptureToolbars:!0}),i=(0,ut.useSelect)((e=>{const{isBlockSelected:t,hasSelectedInnerBlock:o}=e(Ye.store);return o(n,!0)||t(n)}),[n]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{label:(0,Je.__)("Open by default"),checked:o,onChange:()=>t({showContent:!o})}))),(0,qe.createElement)("details",{...l,open:i||o},(0,qe.createElement)("summary",{onClick:e=>e.preventDefault()},(0,qe.createElement)(Ye.RichText,{"aria-label":(0,Je.__)("Write summary"),placeholder:(0,Je.__)("Write summary…"),allowedFormats:[],withoutInteractiveFormatting:!0,value:a,onChange:e=>t({summary:e}),multiline:!1})),l.children))};const hi={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/details",title:"Details",category:"text",description:"Hide and show additional content.",keywords:["disclosure","summary","hide"],textdomain:"default",attributes:{showContent:{type:"boolean",default:!1},summary:{type:"string"}},supports:{align:["wide","full"],color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-details-editor",style:"wp-block-details"},{name:_i}=hi,bi={icon:pi,example:{attributes:{summary:"La Mancha",showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]},save:function({attributes:e}){const{showContent:t}=e,n=e.summary?e.summary:"Details",o=Ye.useBlockProps.save();return(0,qe.createElement)("details",{...o,open:t},(0,qe.createElement)("summary",null,(0,qe.createElement)(Ye.RichText.Content,{value:n})),(0,qe.createElement)(Ye.InnerBlocks.Content,null))},edit:gi},fi=()=>Qe({name:_i,metadata:hi,settings:bi});var vi=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"}));function yi(e){return e?(0,Je.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,Je.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var ki=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:n,allowResponsive:o,toggleResponsive:a,switchBackToURLInput:r})=>(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,t&&(0,qe.createElement)(Ke.ToolbarButton,{className:"components-toolbar__control",label:(0,Je.__)("Edit URL"),icon:vi,onClick:r}))),n&&e&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Media settings"),className:"blocks-responsive"},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Resize for smaller devices"),checked:o,help:yi,onChange:a}))));const xi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),wi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),Ci=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),Ei=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),Si={foreground:"#1da1f2",src:(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.G,null,(0,qe.createElement)(Ke.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"})))},Bi={foreground:"#ff0000",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},Ti={foreground:"#3b5998",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},Ni=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.G,null,(0,qe.createElement)(Ke.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),Pi={foreground:"#0073AA",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.G,null,(0,qe.createElement)(Ke.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},Ii={foreground:"#1db954",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},Mi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),zi={foreground:"#1ab7ea",src:(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.G,null,(0,qe.createElement)(Ke.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},Ri=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"})),Hi={foreground:"#35465c",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},Li=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),(0,qe.createElement)(Ke.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),(0,qe.createElement)(Ke.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),Ai=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,qe.createElement)(Ke.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),(0,qe.createElement)(Ke.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,qe.createElement)(Ke.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),(0,qe.createElement)(Ke.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,qe.createElement)(Ke.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),Vi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),Di=(0,qe.createElement)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(Ke.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})),Fi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 44 44"},(0,qe.createElement)(Ke.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"})),$i={foreground:"#f43e37",src:(0,qe.createElement)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",fill:"#fff"}))};var Gi=()=>(0,qe.createElement)("div",{className:"wp-block-embed is-loading"},(0,qe.createElement)(Ke.Spinner,null));var Oi=({icon:e,label:t,value:n,onSubmit:o,onChange:a,cannotEmbed:r,fallback:l,tryAgain:i})=>(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,Je.__)("Paste a link to the content you want to display on your site.")},(0,qe.createElement)("form",{onSubmit:o},(0,qe.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":t,placeholder:(0,Je.__)("Enter URL to embed here…"),onChange:a}),(0,qe.createElement)(Ke.Button,{variant:"primary",type:"submit"},(0,Je._x)("Embed","button label"))),(0,qe.createElement)("div",{className:"components-placeholder__learn-more"},(0,qe.createElement)(Ke.ExternalLink,{href:(0,Je.__)("https://wordpress.org/documentation/article/embeds/")},(0,Je.__)("Learn more about embeds"))),r&&(0,qe.createElement)("div",{className:"components-placeholder__error"},(0,qe.createElement)("div",{className:"components-placeholder__instructions"},(0,Je.__)("Sorry, this content could not be embedded.")),(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:i},(0,Je._x)("Try again","button label"))," ",(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:l},(0,Je._x)("Convert to link","button label"))));const Ui={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function ji({html:e}){const t=(0,qe.useRef)(),n=(0,qe.useMemo)((()=>{const t=(new window.DOMParser).parseFromString(e,"text/html").querySelector("iframe"),n={};return t?(Array.from(t.attributes).forEach((({name:e,value:t})=>{"style"!==e&&(n[Ui[e]||e]=t)})),n):n}),[e]);return(0,qe.useEffect)((()=>{const{ownerDocument:e}=t.current,{defaultView:o}=e;function a({data:{secret:e,message:o,value:a}={}}){"height"===o&&e===n["data-secret"]&&(t.current.height=a)}return o.addEventListener("message",a),()=>{o.removeEventListener("message",a)}}),[]),(0,qe.createElement)("div",{className:"wp-block-embed__wrapper"},(0,qe.createElement)("iframe",{ref:(0,Tt.useMergeRefs)([t,(0,Tt.useFocusableIframe)()]),title:n.title,...n}))}class qi extends qe.Component{constructor(){super(...arguments),this.hideOverlay=this.hideOverlay.bind(this),this.state={interactive:!1}}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}hideOverlay(){this.setState({interactive:!0})}render(){const{preview:e,previewable:t,url:n,type:o,caption:a,onCaptionChange:r,isSelected:l,className:i,icon:s,label:c,insertBlocksAfter:u}=this.props,{scripts:m}=e,{interactive:p}=this.state,d="photo"===o?(e=>{const t=e.url||e.thumbnail_url,n=(0,qe.createElement)("p",null,(0,qe.createElement)("img",{src:t,alt:e.title,width:"100%"}));return(0,qe.renderToString)(n)})(e):e.html,g=new URL(n).host.split("."),h=g.splice(g.length-2,g.length-1).join("."),_=(0,Je.sprintf)((0,Je.__)("Embedded content from %s"),h),b=zt()(o,i,"wp-block-embed__wrapper"),f="wp-embed"===o?(0,qe.createElement)(ji,{html:d}):(0,qe.createElement)("div",{className:"wp-block-embed__wrapper"},(0,qe.createElement)(Ke.SandBox,{html:d,scripts:m,title:_,type:b,onFocus:this.hideOverlay}),!p&&(0,qe.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return(0,qe.createElement)("figure",{className:zt()(i,"wp-block-embed",{"is-type-video":"video"===o})},t?f:(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:s,showColors:!0}),label:c},(0,qe.createElement)("p",{className:"components-placeholder__error"},(0,qe.createElement)("a",{href:n},n)),(0,qe.createElement)("p",{className:"components-placeholder__error"},(0,Je.sprintf)((0,Je.__)("Embedded content from %s can't be previewed in the editor."),h))),(!Ye.RichText.isEmpty(a)||l)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),placeholder:(0,Je.__)("Add caption"),value:a,onChange:r,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>u((0,je.createBlock)((0,je.getDefaultBlockName)()))}))}}var Wi=qi;var Zi=e=>{const{attributes:{providerNameSlug:t,previewable:n,responsive:o,url:a},attributes:r,isSelected:l,onReplace:i,setAttributes:s,insertBlocksAfter:c,onFocus:u}=e,m={title:(0,Je._x)("Embed","block title"),icon:xi},{icon:p,title:d}=(g=t,(0,je.getBlockVariations)(Ht)?.find((({name:e})=>e===g))||m);var g;const[h,_]=(0,qe.useState)(a),[b,f]=(0,qe.useState)(!1),{invalidateResolution:v}=(0,ut.useDispatch)(ct.store),{preview:y,fetching:k,themeSupportsResponsive:x,cannotEmbed:w}=(0,ut.useSelect)((e=>{const{getEmbedPreview:t,isPreviewEmbedFallback:n,isRequestingEmbedPreview:o,getThemeSupports:r}=e(ct.store);if(!a)return{fetching:!1,cannotEmbed:!1};const l=t(a),i=n(a),s=!!l&&!(!1===l?.html&&void 0===l?.type)&&!(404===l?.data?.status);return{preview:s?l:void 0,fetching:o(a),themeSupportsResponsive:r()["responsive-embeds"],cannotEmbed:!s||i}}),[a]),C=()=>((e,t,n,o)=>{const{allowResponsive:a,className:r}=e;return{...e,...Ft(t,n,r,o,a)}})(r,y,d,o);(0,qe.useEffect)((()=>{if(!y?.html||!w||k)return;const e=a.replace(/\/$/,"");_(e),f(!1),s({url:e})}),[y?.html,a,w,k]),(0,qe.useEffect)((()=>{if(y&&!b){const t=C();if(s(t),i){const n=At(e,t);n&&i(n)}}}),[y,b]);const E=(0,Ye.useBlockProps)();if(k)return(0,qe.createElement)(We.View,{...E},(0,qe.createElement)(Gi,null));const S=(0,Je.sprintf)((0,Je.__)("%s URL"),d);if(!y||w||b)return(0,qe.createElement)(We.View,{...E},(0,qe.createElement)(Oi,{icon:p,label:S,onFocus:u,onSubmit:e=>{e&&e.preventDefault();const t=Vt(r.className);f(!1),s({url:h,className:t})},value:h,cannotEmbed:w,onChange:e=>_(e.target.value),fallback:()=>function(e,t){const n=(0,qe.createElement)("a",{href:e},e);t((0,je.createBlock)("core/paragraph",{content:(0,qe.renderToString)(n)}))}(h,i),tryAgain:()=>{v("getEmbedPreview",[h])}}));const{caption:B,type:T,allowResponsive:N,className:P}=C(),I=it()(P,e.className);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ki,{showEditButton:y&&!w,themeSupportsResponsive:x,blockSupportsResponsive:o,allowResponsive:N,toggleResponsive:()=>{const{allowResponsive:e,className:t}=r,{html:n}=y,a=!e;s({allowResponsive:a,className:Dt(n,t,o&&a)})},switchBackToURLInput:()=>f(!0)}),(0,qe.createElement)(We.View,{...E},(0,qe.createElement)(Wi,{preview:y,previewable:n,className:I,url:h,type:T,caption:B,onCaptionChange:e=>s({caption:e}),isSelected:l,icon:p,label:S,insertBlocksAfter:c})))};const{name:Qi}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},Ki={from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===e.textContent?.match(/https/gi)?.length,transform:e=>(0,je.createBlock)(Qi,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t})=>{let n=`<a href="${e}">${e}</a>`;return t?.trim()&&(n+=`<br />${t}`),(0,je.createBlock)("core/paragraph",{content:n})}}]};var Ji=Ki;const Yi=[{name:"twitter",title:"Twitter",icon:Si,keywords:["tweet",(0,Je.__)("social")],description:(0,Je.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:Bi,keywords:[(0,Je.__)("music"),(0,Je.__)("video")],description:(0,Je.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:Ti,keywords:[(0,Je.__)("social")],description:(0,Je.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:Ni,keywords:[(0,Je.__)("image"),(0,Je.__)("social")],description:(0,Je.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:Pi,keywords:[(0,Je.__)("post"),(0,Je.__)("blog")],description:(0,Je.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:wi,keywords:[(0,Je.__)("music"),(0,Je.__)("audio")],description:(0,Je.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:Ii,keywords:[(0,Je.__)("music"),(0,Je.__)("audio")],description:(0,Je.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:Mi,keywords:[(0,Je.__)("image")],description:(0,Je.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:zi,keywords:[(0,Je.__)("video")],description:(0,Je.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:Ai,description:(0,Je.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:xi,description:(0,Je.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:Ei,description:(0,Je.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:xi,keywords:["polldaddy",(0,Je.__)("survey")],description:(0,Je.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:Vi,keywords:[(0,Je.__)("video")],description:(0,Je.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:Ci,description:(0,Je.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:xi,description:(0,Je.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:xi,description:(0,Je.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:wi,keywords:[(0,Je.__)("music"),(0,Je.__)("audio")],description:(0,Je.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:"Pocket Casts",icon:$i,keywords:[(0,Je.__)("podcast"),(0,Je.__)("audio")],description:(0,Je.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:"Reddit",icon:Ri,description:(0,Je.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:wi,description:(0,Je.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:Ei,description:(0,Je.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:xi,description:(0,Je.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:xi,description:(0,Je.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:Ci,description:(0,Je.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:xi,description:(0,Je.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:Ei,keywords:[(0,Je.__)("video")],description:(0,Je.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:Ei,description:(0,Je.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:Hi,keywords:[(0,Je.__)("social")],description:(0,Je.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:Ei,keywords:[(0,Je.__)("video")],description:(0,Je.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:Ei,description:(0,Je.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:Li,keywords:[(0,Je.__)("ebook")],description:(0,Je.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:"Pinterest",icon:Di,keywords:[(0,Je.__)("social"),(0,Je.__)("bookmark")],description:(0,Je.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:"Wolfram",icon:Fi,description:(0,Je.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}}];Yi.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)}));var Xi=Yi;const{attributes:es}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},ts={attributes:es,save({attributes:e}){const{url:t,caption:n,type:o,providerNameSlug:a}=e;if(!t)return null;const r=it()("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${a}`]:a,[`wp-block-embed-${a}`]:a});return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n}))}},ns={attributes:es,save({attributes:{url:e,caption:t,type:n,providerNameSlug:o}}){if(!e)return null;const a=it()("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${o}`]:o});return(0,qe.createElement)("figure",{className:a},`\n${e}\n`,!Ye.RichText.isEmpty(t)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:t}))}};var os=[ts,ns];const as={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:rs}=as,ls={icon:xi,edit:Zi,save:function({attributes:e}){const{url:t,caption:n,type:o,providerNameSlug:a}=e;if(!t)return null;const r=zt()("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${a}`]:a,[`wp-block-embed-${a}`]:a});return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n}))},transforms:Ji,variations:Xi,deprecated:os},is=()=>Qe({name:rs,metadata:as,settings:ls});var ss=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));const cs={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileId:n,fileName:o,textLinkHref:a,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,u=Ye.RichText.isEmpty(o)?(0,Je.__)("PDF embed"):(0,Je.sprintf)((0,Je.__)("Embed of %s."),o),m=!Ye.RichText.isEmpty(o),p=m?n:void 0;return t&&(0,qe.createElement)("div",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})),m&&(0,qe.createElement)("a",{id:p,href:a,target:r,rel:r?"noreferrer noopener":void 0},(0,qe.createElement)(Ye.RichText.Content,{value:o})),l&&(0,qe.createElement)("a",{href:t,className:it()("wp-block-file__button",(0,Ye.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p},(0,qe.createElement)(Ye.RichText.Content,{value:i})))}},us={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileId:n,fileName:o,textLinkHref:a,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,u=Ye.RichText.isEmpty(o)?(0,Je.__)("PDF embed"):(0,Je.sprintf)((0,Je.__)("Embed of %s."),o),m=!Ye.RichText.isEmpty(o),p=m?n:void 0;return t&&(0,qe.createElement)("div",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})),m&&(0,qe.createElement)("a",{id:p,href:a,target:r,rel:r?"noreferrer noopener":void 0},(0,qe.createElement)(Ye.RichText.Content,{value:o})),l&&(0,qe.createElement)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":p},(0,qe.createElement)(Ye.RichText.Content,{value:i})))}},ms={attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileName:n,textLinkHref:o,textLinkTarget:a,showDownloadButton:r,downloadButtonText:l,displayPreview:i,previewHeight:s}=e,c=Ye.RichText.isEmpty(n)?(0,Je.__)("PDF embed"):(0,Je.sprintf)((0,Je.__)("Embed of %s."),n);return t&&(0,qe.createElement)("div",{...Ye.useBlockProps.save()},i&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${s}px`},"aria-label":c})),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)("a",{href:o,target:a,rel:a?"noreferrer noopener":void 0},(0,qe.createElement)(Ye.RichText.Content,{value:n})),r&&(0,qe.createElement)("a",{href:t,className:"wp-block-file__button",download:!0},(0,qe.createElement)(Ye.RichText.Content,{value:l})))}};var ps=[cs,us,ms];function ds({hrefs:e,openInNewWindow:t,showDownloadButton:n,changeLinkDestinationOption:o,changeOpenInNewWindow:a,changeShowDownloadButton:r,displayPreview:l,changeDisplayPreview:i,previewHeight:s,changePreviewHeight:c}){const{href:u,textLinkHref:m,attachmentPage:p}=e;let d=[{value:u,label:(0,Je.__)("URL")}];return p&&(d=[{value:u,label:(0,Je.__)("Media file")},{value:p,label:(0,Je.__)("Attachment page")}]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,u.endsWith(".pdf")&&(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("PDF settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show inline embed"),help:l?(0,Je.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:i}),l&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Height in pixels"),min:_s,max:Math.max(bs,s),value:s,onChange:c})),(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to"),value:m,options:d,onChange:o}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),checked:t,onChange:a}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show download button"),checked:n,onChange:r}))))}const gs=()=>!(window.navigator.userAgent.indexOf("Mobi")>-1)&&(!(window.navigator.userAgent.indexOf("Android")>-1)&&(!(window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2)&&!((window.ActiveXObject||"ActiveXObject"in window)&&!hs("AcroPDF.PDF")&&!hs("PDF.PdfCtrl")))),hs=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},_s=200,bs=2e3;function fs({text:e,disabled:t}){const{createNotice:n}=(0,ut.useDispatch)(Bt.store),o=(0,Tt.useCopyToClipboard)(e,(()=>{n("info",(0,Je.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,qe.createElement)(Ke.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t},(0,Je.__)("Copy URL"))}var vs=function({attributes:e,isSelected:t,setAttributes:n,clientId:o}){const{id:a,fileId:r,fileName:l,href:i,textLinkHref:s,textLinkTarget:c,showDownloadButton:u,downloadButtonText:m,displayPreview:p,previewHeight:d}=e,{media:g,mediaUpload:h}=(0,ut.useSelect)((e=>({media:void 0===a?void 0:e(ct.store).getMedia(a),mediaUpload:e(Ye.store).getSettings().mediaUpload})),[a]),{createErrorNotice:_}=(0,ut.useDispatch)(Bt.store),{toggleSelection:b,__unstableMarkNextChangeAsNotPersistent:f}=(0,ut.useDispatch)(Ye.store);function v(e){if(e&&e.url){const t=e.url.endsWith(".pdf");n({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0})}}function y(e){n({href:void 0}),_(e,{type:"snackbar"})}function k(e){n({downloadButtonText:e.replace(/<\/?a[^>]*>/g,"")})}(0,qe.useEffect)((()=>{if((0,Et.isBlobURL)(i)){const e=(0,Et.getBlobByURL)(i);h({filesList:[e],onFileChange:([e])=>v(e),onError:y}),(0,Et.revokeBlobURL)(i)}void 0===m&&k((0,Je._x)("Download","button label"))}),[]),(0,qe.useEffect)((()=>{!r&&i&&(f(),n({fileId:`wp-block-file--media-${o}`}))}),[i,r,o]);const x=g&&g.link,w=(0,Ye.useBlockProps)({className:it()((0,Et.isBlobURL)(i)&&(0,Ke.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":(0,Et.isBlobURL)(i)})}),C=gs()&&p;return i?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ds,{hrefs:{href:i,textLinkHref:s,attachmentPage:x},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:function(e){n({textLinkHref:e})},changeOpenInNewWindow:function(e){n({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){n({showDownloadButton:e})},displayPreview:p,changeDisplayPreview:function(e){n({displayPreview:e})},previewHeight:d,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),_s);n({previewHeight:t})}}),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:a,mediaURL:i,accept:"*",onSelect:v,onError:y}),(0,qe.createElement)(fs,{text:i,disabled:(0,Et.isBlobURL)(i)})),(0,qe.createElement)("div",{...w},C&&(0,qe.createElement)(Ke.ResizableBox,{size:{height:d},minHeight:_s,maxHeight:bs,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>b(!1),onResizeStop:function(e,t,o,a){b(!0);const r=parseInt(d+a.height,10);n({previewHeight:r})},showHandle:t},(0,qe.createElement)("object",{className:"wp-block-file__preview",data:i,type:"application/pdf","aria-label":(0,Je.__)("Embed of the selected PDF file.")}),!t&&(0,qe.createElement)("div",{className:"wp-block-file__preview-overlay"})),(0,qe.createElement)("div",{className:"wp-block-file__content-wrapper"},(0,qe.createElement)(Ye.RichText,{tagName:"a",value:l,placeholder:(0,Je.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>n({fileName:e}),href:s}),u&&(0,qe.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},(0,qe.createElement)(Ye.RichText,{tagName:"div","aria-label":(0,Je.__)("Download button text"),className:it()("wp-block-file__button",(0,Ye.__experimentalGetElementClassName)("button")),value:m,withoutInteractiveFormatting:!0,placeholder:(0,Je.__)("Add text…"),onChange:e=>k(e)}))))):(0,qe.createElement)("div",{...w},(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:ss}),labels:{title:(0,Je.__)("File"),instructions:(0,Je.__)("Upload a file or pick one from your media library.")},onSelect:v,onError:y,accept:"*"}))};const ys={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{const t=[];return e.forEach((e=>{const n=(0,Et.createBlobURL)(e);t.push((0,je.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,je.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>(0,je.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>(0,je.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,st.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,ut.select)(ct.store),n=t(e);return!!n&&n.mime_type.includes("audio")},transform:e=>(0,je.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,ut.select)(ct.store),n=t(e);return!!n&&n.mime_type.includes("video")},transform:e=>(0,je.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,ut.select)(ct.store),n=t(e);return!!n&&n.mime_type.includes("image")},transform:e=>(0,je.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};var ks=ys;const xs={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0,color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}}},viewScript:"file:./view.min.js",editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:ws}=xs,Cs={icon:ss,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,Je._x)("Armstrong_Small_Step","Name of the file")}},transforms:ks,deprecated:ps,edit:vs,save:function({attributes:e}){const{href:t,fileId:n,fileName:o,textLinkHref:a,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,u=Ye.RichText.isEmpty(o)?"PDF embed":o,m=!Ye.RichText.isEmpty(o),p=m?n:void 0;return t&&(0,qe.createElement)("div",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})),m&&(0,qe.createElement)("a",{id:p,href:a,target:r,rel:r?"noreferrer noopener":void 0},(0,qe.createElement)(Ye.RichText.Content,{value:o})),l&&(0,qe.createElement)("a",{href:t,className:it()("wp-block-file__button",(0,Ye.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p},(0,qe.createElement)(Ye.RichText.Content,{value:i})))}},Es=()=>Qe({name:ws,metadata:xs,settings:Cs});var Ss=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"}));const Bs="none",Ts="media",Ns="attachment",Ps="file",Is="post";const Ms=(e,t="large")=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link"].includes(e))));n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;const o=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return o&&(n.fullUrl=o),n};function zs(){return!qe.Platform.isNative||function(){if(!window.wp||"boolean"!=typeof window.wp.galleryBlockV2Enabled)throw"window.wp.galleryBlockV2Enabled is not defined";return window.wp.galleryBlockV2Enabled}()}const Rs="file",Hs="post";function Ls(e){return Math.min(3,e?.images?.length)}function As(e,t){switch(t){case Rs:return{href:e?.source_url||e?.url,linkDestination:Ts};case Hs:return{href:e?.link,linkDestination:Ns};case Ts:return{href:e?.source_url||e?.url,linkDestination:Ts};case Ns:return{href:e?.link,linkDestination:Ns};case Bs:return{href:void 0,linkDestination:Bs}}return{}}function Vs(e){let t=e.linkTo?e.linkTo:"none";"post"===t?t="attachment":"file"===t&&(t="media");const n=e.images.map((n=>function(e,t,n){return(0,je.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...As(e,n)})}(n,e.sizeSlug,t))),{images:o,ids:a,...r}=e;return[{...r,linkTo:t,allowResize:!1},n]}const Ds={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},save({attributes:e}){const{caption:t,columns:n,imageCrop:o}=e,a=it()("has-nested-images",{[`columns-${n}`]:void 0!==n,"columns-default":void 0===n,"is-cropped":o}),r=Ye.useBlockProps.save({className:a}),l=Ye.useInnerBlocksProps.save(r);return(0,qe.createElement)("figure",{...l},l.children,!Ye.RichText.isEmpty(t)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t}))}},Fs={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,caption:a,linkTo:r}=e,l=`columns-${n} ${o?"is-cropped":""}`;return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:l})},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case Rs:t=e.fullUrl||e.url;break;case Hs:t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,!Ye.RichText.isEmpty(e.caption)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Ye.RichText.isEmpty(a)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},migrate(e){return zs()?Vs(e):e}},$s={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible({linkTo:e}){return!e||"attachment"===e||"media"===e},migrate(e){if(zs())return Vs(e);let t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",{...e,linkTo:t}},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,caption:a,linkTo:r}=e;return(0,qe.createElement)("figure",{className:`columns-${n} ${o?"is-cropped":""}`},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,!Ye.RichText.isEmpty(e.caption)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Ye.RichText.isEmpty(a)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},Gs={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible({ids:e}){return e&&e.some((e=>"string"==typeof e))},migrate(e){var t;return zs()?Vs(e):{...e,ids:(null!==(t=e.ids)&&void 0!==t?t:[]).map((e=>{const t=parseInt(e,10);return Number.isInteger(t)?t:null}))}},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,caption:a,linkTo:r}=e;return(0,qe.createElement)("figure",{className:`columns-${n} ${o?"is-cropped":""}`},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,!Ye.RichText.isEmpty(e.caption)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Ye.RichText.isEmpty(a)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},Os={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,linkTo:a}=e;return(0,qe.createElement)("ul",{className:`columns-${n} ${o?"is-cropped":""}`},t.map((e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:e.caption})))})))},migrate(e){return zs()?Vs(e):e}},Us={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible({images:e,ids:t}){return e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some(((e,n)=>!e&&null!==t[n]||parseInt(e,10)!==t[n])))},migrate(e){var t;return zs()?Vs(e):{...e,ids:(null!==(t=e.images)&&void 0!==t?t:[]).map((({id:e})=>e?parseInt(e,10):null))}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,linkTo:a}=e;return(0,qe.createElement)("ul",{className:`columns-${n} ${o?"is-cropped":""}`},t.map((e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},js={attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Ls(e),align:o,imageCrop:a,linkTo:r}=e,l=it()(`columns-${n}`,{alignnone:"none"===o,"is-cropped":a});return(0,qe.createElement)("div",{className:l},t.map((e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return(0,qe.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?(0,qe.createElement)("a",{href:t},n):n)})))},migrate(e){return zs()?Vs(e):e}};var qs=[Ds,Fs,$s,Gs,Os,Us,js],Ws=window.wp.viewport;const Zs=(0,qe.createElement)(Ye.BlockIcon,{icon:Ss}),Qs=20,Ks="none",Js="media",Ys="attachment",Xs="custom",ec=["noreferrer","noopener"],tc=["image"];function nc(e,t,n){switch(n||t){case Ps:case Ts:return{href:e?.source_url||e?.url,linkDestination:Js};case Is:case Ns:return{href:e?.link,linkDestination:Ys};case Bs:return{href:void 0,linkDestination:Ks}}return{}}function oc(e,{rel:t}){const n=e?"_blank":void 0;let o;return o=n||t?function(e){let t=e;return void 0!==e&&t&&(ec.forEach((e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),t||(t=void 0)),t}(t):void 0,{linkTarget:n,rel:o}}var ac=(0,qe.forwardRef)(((e,t)=>{const{attributes:n,isSelected:o,setAttributes:a,mediaPlaceholder:r,insertBlocksAfter:l,blockProps:i,__unstableLayoutClassNames:s,showCaption:c}=e,{align:u,columns:m,caption:p,imageCrop:d}=n;return(0,qe.createElement)("figure",{...i,className:it()(i.className,s,"blocks-gallery-grid",{[`align${u}`]:u,[`columns-${m}`]:void 0!==m,"columns-default":void 0===m,"is-cropped":d})},i.children,o&&!i.children&&(0,qe.createElement)(We.View,{className:"blocks-gallery-media-placeholder-wrapper"},r),c&&(!Ye.RichText.isEmpty(p)||o)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption","aria-label":(0,Je.__)("Gallery caption text"),placeholder:(0,Je.__)("Write gallery caption…"),value:p,className:it()("blocks-gallery-caption",(0,Ye.__experimentalGetElementClassName)("caption")),ref:t,tagName:"figcaption",onChange:e=>a({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>l((0,je.createBlock)((0,je.getDefaultBlockName)()))}))}));function rc(e,t,n){return(0,qe.useMemo)((()=>function(){if(!e||0===e.length)return;const{imageSizes:o}=n();let a={};t&&(a=e.reduce(((e,t)=>{if(!t.id)return e;const n=o.reduce(((e,n)=>{const o=t.sizes?.[n.slug]?.url,a=t.media_details?.sizes?.[n.slug]?.source_url;return{...e,[n.slug]:o||a}}),{});return{...e,[parseInt(t.id,10)]:n}}),{}));const r=Object.values(a);return o.filter((({slug:e})=>r.some((t=>t[e])))).map((({name:e,slug:t})=>({value:t,label:e})))}()),[e,t])}function lc(e,t){const[n,o]=(0,qe.useState)([]);return(0,qe.useMemo)((()=>function(){let a=!1;const r=n.filter((t=>e.find((e=>t.clientId===e.clientId))));r.length<n.length&&(a=!0);e.forEach((e=>{e.fromSavedContent&&!r.find((t=>t.id===e.id))&&(a=!0,r.push(e))}));const l=e.filter((e=>!r.find((t=>e.clientId&&t.clientId===e.clientId))&&t?.find((t=>t.id===e.id))&&!e.fromSavedConent));(a||l?.length>0)&&o([...r,...l]);return l.length>0?l:null}()),[e,t])}const ic=[];function sc({blockGap:e,clientId:t}){const n=(0,qe.useContext)(Ye.BlockList.__unstableElementContext),o="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";let a,r=o,l=o;e&&(a="string"==typeof e?(0,Ye.__experimentalGetGapCSSValue)(e):(0,Ye.__experimentalGetGapCSSValue)(e?.top)||o,l="string"==typeof e?(0,Ye.__experimentalGetGapCSSValue)(e):(0,Ye.__experimentalGetGapCSSValue)(e?.left)||o,r=a===l?a:`${a} ${l}`);const i=`#block-${t} {\n\t\t--wp--style--unstable-gallery-gap: ${"0"===l?"0px":l};\n\t\tgap: ${r}\n\t}`;return i&&n?(0,qe.createPortal)((0,qe.createElement)((()=>(0,qe.createElement)("style",null,i)),null),n):null}const cc=[{value:Ns,label:(0,Je.__)("Attachment Page")},{value:Ts,label:(0,Je.__)("Media File")},{value:Bs,label:(0,Je._x)("None","Media item link option")}],uc=["image"],mc=["core/image"],pc=qe.Platform.isNative?(0,Je.__)("ADD MEDIA"):(0,Je.__)("Drag images, upload new ones or select files from your library."),dc=qe.Platform.isNative?{type:"stepper"}:{};var gc=(0,Tt.compose)([(0,Ws.withViewportMatch)({isNarrow:"< small"})])((function(e){const{setAttributes:t,attributes:n,className:o,clientId:a,isSelected:r,insertBlocksAfter:l,isContentLocked:i}=e,{columns:s,imageCrop:c,linkTarget:u,linkTo:m,sizeSlug:p,caption:d}=n,[g,h]=(0,qe.useState)(!!d),_=(0,Tt.usePrevious)(d);(0,qe.useEffect)((()=>{d&&!_&&h(!0)}),[d,_]),(0,qe.useEffect)((()=>{r||d||h(!1)}),[r,d]);const b=(0,qe.useCallback)((e=>{e&&!d&&e.focus()}),[d]),{__unstableMarkNextChangeAsNotPersistent:f,replaceInnerBlocks:v,updateBlockAttributes:y,selectBlock:k}=(0,ut.useDispatch)(Ye.store),{createSuccessNotice:x,createErrorNotice:w}=(0,ut.useDispatch)(Bt.store),{getBlock:C,getSettings:E,preferredStyle:S}=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings().__experimentalPreferredStyleVariations;return{getBlock:e(Ye.store).getBlock,getSettings:e(Ye.store).getSettings,preferredStyle:t?.value?.["core/image"]}}),[]),B=(0,ut.useSelect)((e=>{var t;return null!==(t=e(Ye.store).getBlock(a)?.innerBlocks)&&void 0!==t?t:[]}),[a]),T=(0,ut.useSelect)((e=>e(Ye.store).wasBlockJustInserted(a,"inserter_menu")),[a]),N=(0,qe.useMemo)((()=>B?.map((e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})))),[B]),P=function(e){return(0,ut.useSelect)((t=>{var n;const o=e.map((e=>e.attributes.id)).filter((e=>void 0!==e));return 0===o.length?ic:null!==(n=t(ct.store).getMediaItems({include:o.join(","),per_page:-1,orderby:"include"}))&&void 0!==n?n:ic}),[e])}(B),I=lc(N,P);(0,qe.useEffect)((()=>{I?.forEach((e=>{f(),y(e.clientId,{...z(e.attributes),id:e.id,align:void 0})}))}),[I]);const M=rc(P,r,E);function z(e){const t=e.id?P.find((({id:t})=>t===e.id)):null;let o,a;return o=e.className&&""!==e.className?e.className:S?`is-style-${S}`:void 0,a=e.linkTarget||e.rel?{linkTarget:e.linkTarget,rel:e.rel}:oc(u,n),{...Ms(t,p),...nc(t,m,e?.linkDestination),...a,className:o,sizeSlug:p,caption:e.caption||t.caption?.raw,alt:e.alt||t.alt_text}}function R(e){const t=qe.Platform.isNative&&e.id?P.find((({id:t})=>t===e.id)):null,n=t?t?.media_type:e.type;return uc.some((e=>0===n?.indexOf(e)))||0===e.url?.indexOf("blob:")}function H(e){const t="[object FileList]"===Object.prototype.toString.call(e),n=t?Array.from(e).map((e=>e.url?e:Ms({url:(0,Et.createBlobURL)(e)}))):e;n.every(R)||w((0,Je.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});const o=n.filter((e=>e.url||R(e))).map((e=>e.url?e:Ms({url:(0,Et.createBlobURL)(e)}))),r=o.reduce(((e,t,n)=>(e[t.id]=n,e)),{}),l=t?B:B.filter((e=>o.find((t=>t.id===e.attributes.id)))),i=o.filter((e=>!l.find((t=>e.id===t.attributes.id)))).map((e=>(0,je.createBlock)("core/image",{id:e.id,url:e.url,caption:e.caption,alt:e.alt})));v(a,l.concat(i).sort(((e,t)=>r[e.attributes.id]-r[t.attributes.id]))),i?.length>0&&k(i[0].clientId)}(0,qe.useEffect)((()=>{m||(f(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Bs}))}),[m]);const L=!!N.length,A=L&&N.some((e=>!!e.id)),V=N.some((e=>qe.Platform.isNative?0===e.url?.indexOf("file:"):!e.id&&0===e.url?.indexOf("blob:"))),D=qe.Platform.select({web:{addToGallery:!1,disableMediaButtons:V,value:{}},native:{addToGallery:A,isAppender:L,disableMediaButtons:L&&!r||V,value:A?N:{},autoOpenMediaUpload:!L&&r&&T}}),F=(0,qe.createElement)(Ye.MediaPlaceholder,{handleUpload:!1,icon:Zs,labels:{title:(0,Je.__)("Gallery"),instructions:pc},onSelect:H,accept:"image/*",allowedTypes:uc,multiple:!0,onError:function(e){w(e,{type:"snackbar"})},...D}),$=(0,Ye.useBlockProps)({className:it()(o,"has-nested-images")}),G=qe.Platform.isNative&&{marginHorizontal:0,marginVertical:0},O=(0,Ye.useInnerBlocksProps)($,{allowedBlocks:mc,orientation:"horizontal",renderAppender:!1,...G});if(!L)return(0,qe.createElement)(We.View,{...O},O.children,F);const U=m&&"none"!==m;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},N.length>1&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:s||(j=N.length,j?Math.min(3,j):3),onChange:function(e){t({columns:e})},min:1,max:Math.min(8,N.length),...dc,required:!0,size:"__unstable-large"}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Crop images"),checked:!!c,onChange:function(){t({imageCrop:!c})},help:function(e){return e?(0,Je.__)("Thumbnails are cropped to align."):(0,Je.__)("Thumbnails are not cropped.")}}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to"),value:m,onChange:function(e){t({linkTo:e});const n={},o=[];C(a).innerBlocks.forEach((t=>{o.push(t.clientId);const a=t.attributes.id?P.find((({id:e})=>e===t.attributes.id)):null;n[t.clientId]=nc(a,e)})),y(o,n,!0);const r=[...cc].find((t=>t.value===e));x((0,Je.sprintf)((0,Je.__)("All gallery image links updated to: %s"),r.label),{id:"gallery-attributes-linkTo",type:"snackbar"})},options:cc,hideCancelButton:!0,size:"__unstable-large"}),U&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),checked:"_blank"===u,onChange:function(e){const n=e?"_blank":void 0;t({linkTarget:n});const o={},r=[];C(a).innerBlocks.forEach((e=>{r.push(e.clientId),o[e.clientId]=oc(n,e.attributes)})),y(r,o,!0);const l=e?(0,Je.__)("All gallery images updated to open in new tab"):(0,Je.__)("All gallery images updated to not open in new tab");x(l,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}}),M?.length>0&&(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Resolution"),help:(0,Je.__)("Select the size of the source images."),value:p,options:M,onChange:function(e){t({sizeSlug:e});const n={},o=[];C(a).innerBlocks.forEach((t=>{o.push(t.clientId);const a=t.attributes.id?P.find((({id:e})=>e===t.attributes.id)):null;n[t.clientId]=function(e,t){const n=e?.media_details?.sizes?.[t]?.source_url;return n?{url:n,width:void 0,height:void 0,sizeSlug:t}:{}}(a,e)})),y(o,n,!0);const r=M.find((t=>t.value===e));x((0,Je.sprintf)((0,Je.__)("All gallery image sizes updated to: %s"),r.label),{id:"gallery-attributes-sizeSlug",type:"snackbar"})},hideCancelButton:!0,size:"__unstable-large"}),qe.Platform.isWeb&&!M&&A&&(0,qe.createElement)(Ke.BaseControl,{className:"gallery-image-sizes"},(0,qe.createElement)(Ke.BaseControl.VisualLabel,null,(0,Je.__)("Resolution")),(0,qe.createElement)(We.View,{className:"gallery-image-sizes__loading"},(0,qe.createElement)(Ke.Spinner,null),(0,Je.__)("Loading options…"))))),(0,qe.createElement)(Ye.BlockControls,{group:"block"},!i&&(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{h(!g),g&&d&&t({caption:void 0})},icon:St,isPressed:g,label:g?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{allowedTypes:uc,accept:"image/*",handleUpload:!1,onSelect:H,name:(0,Je.__)("Add"),multiple:!0,mediaIds:N.filter((e=>e.id)).map((e=>e.id)),addToGallery:A})),qe.Platform.isWeb&&(0,qe.createElement)(sc,{blockGap:n.style?.spacing?.blockGap,clientId:a}),(0,qe.createElement)(ac,{...e,showCaption:g,ref:qe.Platform.isWeb?b:void 0,images:N,mediaPlaceholder:!L||qe.Platform.isNative?F:void 0,blockProps:O,insertBlocksAfter:l}));var j}));const hc=(e,t="large")=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link","caption"].includes(e))));n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url;const o=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return o&&(n.fullUrl=o),n};var _c=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.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-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));var bc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var fc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var vc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));const yc="none",kc="file",xc="post";class wc extends qe.Component{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.onEdit=this.onEdit.bind(this),this.onSelectImageFromLibrary=this.onSelectImageFromLibrary.bind(this),this.onSelectCustomURL=this.onSelectCustomURL.bind(this),this.state={isEditing:!1}}bindContainer(e){this.container=e}onSelectImage(){this.props.isSelected||this.props.onSelect()}onRemoveImage(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[un.BACKSPACE,un.DELETE].indexOf(e.keyCode)&&(e.preventDefault(),this.props.onRemove())}onEdit(){this.setState({isEditing:!0})}componentDidUpdate(){const{image:e,url:t,__unstableMarkNextChangeAsNotPersistent:n}=this.props;e&&!t&&(n(),this.props.setAttributes({url:e.source_url,alt:e.alt_text}))}deselectOnBlur(){this.props.onDeselect()}onSelectImageFromLibrary(e){const{setAttributes:t,id:n,url:o,alt:a,caption:r,sizeSlug:l}=this.props;if(!e||!e.url)return;let i=hc(e,l);if(((e,t)=>!e&&(0,Et.isBlobURL)(t))(n,o)&&a){const{alt:e,...t}=i;i=t}if(r&&!i.caption){const{caption:e,...t}=i;i=t}t(i),this.setState({isEditing:!1})}onSelectCustomURL(e){const{setAttributes:t,url:n}=this.props;e!==n&&(t({url:e,id:void 0}),this.setState({isEditing:!1}))}render(){const{url:e,alt:t,id:n,linkTo:o,link:a,isFirstItem:r,isLastItem:l,isSelected:i,caption:s,onRemove:c,onMoveForward:u,onMoveBackward:m,setAttributes:p,"aria-label":d}=this.props,{isEditing:g}=this.state;let h;switch(o){case kc:h=e;break;case xc:h=a}const _=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("img",{src:e,alt:t,"data-id":n,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":d,ref:this.bindContainer}),(0,Et.isBlobURL)(e)&&(0,qe.createElement)(Ke.Spinner,null)),b=it()({"is-selected":i,"is-transient":(0,Et.isBlobURL)(e)});return(0,qe.createElement)("figure",{className:b,onClick:this.onSelectImage,onFocus:this.onSelectImage},!g&&(h?(0,qe.createElement)("a",{href:h},_):_),g&&(0,qe.createElement)(Ye.MediaPlaceholder,{labels:{title:(0,Je.__)("Edit gallery image")},icon:_c,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:n,src:e}}),(0,qe.createElement)(Ke.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},(0,qe.createElement)(Ke.Button,{icon:bc,onClick:r?void 0:m,label:(0,Je.__)("Move image backward"),"aria-disabled":r,disabled:!i}),(0,qe.createElement)(Ke.Button,{icon:fc,onClick:l?void 0:u,label:(0,Je.__)("Move image forward"),"aria-disabled":l,disabled:!i})),(0,qe.createElement)(Ke.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},(0,qe.createElement)(Ke.Button,{icon:vi,onClick:this.onEdit,label:(0,Je.__)("Replace image"),disabled:!i}),(0,qe.createElement)(Ke.Button,{icon:vc,onClick:c,label:(0,Je.__)("Remove image"),disabled:!i})),!g&&(i||s)&&(0,qe.createElement)(Ye.RichText,{tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),"aria-label":(0,Je.__)("Image caption text"),placeholder:i?(0,Je.__)("Add caption"):null,value:s,onChange:e=>p({caption:e}),inlineToolbar:!0}))}}var Cc=(0,Tt.compose)([(0,ut.withSelect)(((e,t)=>{const{getMedia:n}=e(ct.store),{id:o}=t;return{image:o?n(parseInt(o,10)):null}})),(0,ut.withDispatch)((e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(Ye.store);return{__unstableMarkNextChangeAsNotPersistent:t}}))])(wc);function Ec({isHidden:e,...t}){return e?(0,qe.createElement)(Ke.VisuallyHidden,{as:Ye.RichText,...t}):(0,qe.createElement)(Ye.RichText,{...t})}var Sc=e=>{const{attributes:t,isSelected:n,setAttributes:o,selectedImage:a,mediaPlaceholder:r,onMoveBackward:l,onMoveForward:i,onRemoveImage:s,onSelectImage:c,onDeselectImage:u,onSetImageAttributes:m,insertBlocksAfter:p,blockProps:d}=e,{align:g,columns:h=Ls(t),caption:_,imageCrop:b,images:f}=t;return(0,qe.createElement)("figure",{...d,className:it()(d.className,{[`align${g}`]:g,[`columns-${h}`]:h,"is-cropped":b})},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},f.map(((e,o)=>{const r=(0,Je.sprintf)((0,Je.__)("image %1$d of %2$d in gallery"),o+1,f.length);return(0,qe.createElement)("li",{className:"blocks-gallery-item",key:e.id?`${e.id}-${o}`:e.url},(0,qe.createElement)(Cc,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===o,isLastItem:o+1===f.length,isSelected:n&&a===o,onMoveBackward:l(o),onMoveForward:i(o),onRemove:s(o),onSelect:c(o),onDeselect:u(o),setAttributes:e=>m(o,e),caption:e.caption,"aria-label":r,sizeSlug:t.sizeSlug}))}))),r,(0,qe.createElement)(Ec,{isHidden:!n&&Ye.RichText.isEmpty(_),tagName:"figcaption",className:it()("blocks-gallery-caption",(0,Ye.__experimentalGetElementClassName)("caption")),"aria-label":(0,Je.__)("Gallery caption text"),placeholder:(0,Je.__)("Write gallery caption…"),value:_,onChange:e=>o({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>p((0,je.createBlock)((0,je.getDefaultBlockName)()))}))};const Bc=[{value:xc,label:(0,Je.__)("Attachment Page")},{value:kc,label:(0,Je.__)("Media File")},{value:yc,label:(0,Je.__)("None")}],Tc=["image"],Nc=qe.Platform.select({web:(0,Je.__)("Drag images, upload new ones or select files from your library."),native:(0,Je.__)("ADD MEDIA")}),Pc=qe.Platform.select({web:{},native:{type:"stepper"}});var Ic=(0,Tt.compose)([Ke.withNotices,(0,Ws.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:n,isSelected:o,noticeUI:a,noticeOperations:r,onFocus:l}=e,{columns:i=Ls(t),imageCrop:s,images:c,linkTo:u,sizeSlug:m}=t,[p,d]=(0,qe.useState)(),[g,h]=(0,qe.useState)(),{__unstableMarkNextChangeAsNotPersistent:_}=(0,ut.useDispatch)(Ye.store),{imageSizes:b,mediaUpload:f,getMedia:v,wasBlockJustInserted:y}=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings();return{imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(ct.store).getMedia,wasBlockJustInserted:e(Ye.store).wasBlockJustInserted(n,"inserter_menu")}})),k=(0,qe.useMemo)((()=>{var e;return o?(null!==(e=t.ids)&&void 0!==e?e:[]).reduce(((e,t)=>{if(!t)return e;const n=v(t),o=b.reduce(((e,t)=>{const o=n?.sizes?.[t.slug]?.url,a=n?.media_details?.sizes?.[t.slug]?.source_url;return{...e,[t.slug]:o||a}}),{});return{...e,[parseInt(t,10)]:o}}),{}):{}}),[o,t.ids,b]);function x(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t={...t,ids:t.images.map((({id:e})=>parseInt(e,10)))}),e.setAttributes(t)}function w(e,t){const n=[...c];n.splice(t,1,c[e]),n.splice(e,1,c[t]),d(t),x({images:n})}function C(e){const t=e.id.toString(),n=c.find((({id:e})=>e===t)),o=n?n.caption:e.caption;if(!g)return o;const a=g.find((({id:e})=>e===t));return a&&a.caption!==e.caption?e.caption:o}function E(e){h(e.map((e=>({id:e.id.toString(),caption:e.caption})))),x({images:e.map((e=>({...hc(e,m),caption:C(e),id:e.id.toString()}))),columns:t.columns?Math.min(e.length,t.columns):t.columns})}(0,qe.useEffect)((()=>{if("web"===qe.Platform.OS&&c&&c.length>0&&c.every((({url:e})=>(0,Et.isBlobURL)(e)))){const e=c.map((({url:e})=>(0,Et.getBlobByURL)(e)));c.forEach((({url:e})=>(0,Et.revokeBlobURL)(e))),f({filesList:e,onFileChange:E,allowedTypes:["image"]})}}),[]),(0,qe.useEffect)((()=>{o||d()}),[o]),(0,qe.useEffect)((()=>{u||(_(),x({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||yc}))}),[u]);const S=!!c.length,B=S&&c.some((e=>!!e.id)),T=(0,qe.createElement)(Ye.MediaPlaceholder,{addToGallery:B,isAppender:S,disableMediaButtons:S&&!o,icon:!S&&Zs,labels:{title:!S&&(0,Je.__)("Gallery"),instructions:!S&&Nc},onSelect:E,accept:"image/*",allowedTypes:Tc,multiple:!0,value:B?c:{},onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)},notices:S?void 0:a,onFocus:l,autoOpenMediaUpload:!S&&o&&y}),N=(0,Ye.useBlockProps)();if(!S)return(0,qe.createElement)(We.View,{...N},T);const P=function(){const e=Object.values(k);return b.filter((({slug:t})=>e.some((e=>e[t])))).map((({name:e,slug:t})=>({value:t,label:e})))}(),I=S&&P.length>0;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},c.length>1&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:i,onChange:function(e){x({columns:e})},min:1,max:Math.min(8,c.length),...Pc,required:!0}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Crop images"),checked:!!s,onChange:function(){x({imageCrop:!s})},help:function(e){return e?(0,Je.__)("Thumbnails are cropped to align."):(0,Je.__)("Thumbnails are not cropped.")}}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to"),value:u,onChange:function(e){x({linkTo:e})},options:Bc,hideCancelButton:!0}),I&&(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image size"),value:m,options:P,onChange:function(e){x({images:(null!=c?c:[]).map((t=>{if(!t.id)return t;const n=k[parseInt(t.id,10)]?.[e];return{...t,...n&&{url:n}}})),sizeSlug:e})},hideCancelButton:!0}))),a,(0,qe.createElement)(Sc,{...e,selectedImage:p,mediaPlaceholder:T,onMoveBackward:function(e){return()=>{0!==e&&w(e,e-1)}},onMoveForward:function(e){return()=>{e!==c.length-1&&w(e,e+1)}},onRemoveImage:function(e){return()=>{const n=c.filter(((t,n)=>e!==n));d(),x({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{d(e)}},onDeselectImage:function(){return()=>{d()}},onSetImageAttributes:function(e,t){c[e]&&x({images:[...c.slice(0,e),{...c[e],...t},...c.slice(e+1)]})},blockProps:N,onFocusGalleryCaption:function(){d()}}))}));var Mc=(0,Tt.compose)([Ke.withNotices])((function(e){return zs()?(0,qe.createElement)(gc,{...e}):(0,qe.createElement)(Ic,{...e})}));const zc=e=>e?e.split(",").map((e=>parseInt(e,10))):[];(0,Zl.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){if(zs()&&"core/gallery"===e.name&&e.attributes?.images.length>0){const t=e.attributes.images.map((({url:t,id:n,alt:o})=>(0,je.createBlock)("core/image",{url:t,id:n?parseInt(n,10):null,alt:o,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination})));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),(0,Zl.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const n=(Array.isArray(t)?t:[t]).find((t=>"core/gallery"===t.name&&t.innerBlocks.length>0&&!t.attributes.images?.length>0&&!e.name.includes("core/")));if(n){const e=n.innerBlocks.map((({attributes:{url:e,id:t,alt:n}})=>({url:e,id:t?parseInt(t,10):null,alt:n}))),t=e.map((({id:e})=>e));n.attributes.images=e,n.attributes.ids=t}return e}));const Rc={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:n}=e[0];t=e.every((e=>e.align===t))?t:void 0,n=e.every((e=>e.sizeSlug===n))?n:void 0;const o=e.filter((({url:e})=>e));if(zs()){const e=o.map((e=>(e.width=void 0,e.height=void 0,(0,je.createBlock)("core/image",e))));return(0,je.createBlock)("core/gallery",{align:t,sizeSlug:n},e)}return(0,je.createBlock)("core/gallery",{images:o.map((({id:e,url:t,alt:n,caption:o})=>({id:e.toString(),url:t,alt:n,caption:o}))),ids:o.map((({id:e})=>parseInt(e,10))),align:t,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:({named:{ids:e}})=>{if(!zs())return zc(e).map((e=>({id:e.toString()})))}},ids:{type:"array",shortcode:({named:{ids:e}})=>{if(!zs())return zc(e)}},columns:{type:"number",shortcode:({named:{columns:e="3"}})=>parseInt(e,10)},linkTo:{type:"string",shortcode:({named:{link:e}})=>{if(!zs())switch(e){case"post":default:return xc;case"file":return kc}switch(e){case"post":return Ns;case"file":return Ts;default:return Bs}}}},transform({named:{ids:e,columns:t=3,link:n}}){const o=zc(e).map((e=>parseInt(e,10)));let a=Bs;"post"===n?a=Ns:"file"===n&&(a=Ts);return(0,je.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:a},o.map((e=>(0,je.createBlock)("core/image",{id:e}))))},isMatch({named:e}){return void 0!==e.ids}},{type:"files",priority:1,isMatch(e){return 1!==e.length&&e.every((e=>0===e.type.indexOf("image/")))},transform(e){if(zs()){const t=e.map((e=>(0,je.createBlock)("core/image",{url:(0,Et.createBlobURL)(e)})));return(0,je.createBlock)("core/gallery",{},t)}const t=(0,je.createBlock)("core/gallery",{images:e.map((e=>Ms({url:(0,Et.createBlobURL)(e)})))});return t}}],to:[{type:"block",blocks:["core/image"],transform:({align:e,images:t,ids:n,sizeSlug:o},a)=>zs()?a.length>0?a.map((({attributes:{url:t,alt:n,caption:o,title:a,href:r,rel:l,linkClass:i,id:s,sizeSlug:c,linkDestination:u,linkTarget:m,anchor:p,className:d}})=>(0,je.createBlock)("core/image",{align:e,url:t,alt:n,caption:o,title:a,href:r,rel:l,linkClass:i,id:s,sizeSlug:c,linkDestination:u,linkTarget:m,anchor:p,className:d}))):(0,je.createBlock)("core/image",{align:e}):t.length>0?t.map((({url:t,alt:a,caption:r},l)=>(0,je.createBlock)("core/image",{id:n[l],url:t,alt:a,caption:r,align:e,sizeSlug:o}))):(0,je.createBlock)("core/image",{align:e})}]};var Hc=Rc;const Lc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{anchor:!0,align:!0,html:!1,units:["px","em","rem","vh","vw"],spacing:{margin:!0,padding:!0,blockGap:["horizontal","vertical"],__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}}},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:Ac}=Lc,Vc={icon:Ss,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:Hc,edit:Mc,save:function({attributes:e}){if(!zs())return function({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,caption:a,linkTo:r}=e,l=`columns-${n} ${o?"is-cropped":""}`;return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:l})},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case kc:t=e.fullUrl||e.url;break;case xc:t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,!Ye.RichText.isEmpty(e.caption)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:it()("blocks-gallery-item__caption",(0,Ye.__experimentalGetElementClassName)("caption")),value:e.caption})))}))),!Ye.RichText.isEmpty(a)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:it()("blocks-gallery-caption",(0,Ye.__experimentalGetElementClassName)("caption")),value:a}))}({attributes:e});const{caption:t,columns:n,imageCrop:o}=e,a=it()("has-nested-images",{[`columns-${n}`]:void 0!==n,"columns-default":void 0===n,"is-cropped":o}),r=Ye.useBlockProps.save({className:a}),l=Ye.useInnerBlocksProps.save(r);return(0,qe.createElement)("figure",{...l},l.children,!Ye.RichText.isEmpty(t)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:it()("blocks-gallery-caption",(0,Ye.__experimentalGetElementClassName)("caption")),value:t}))},deprecated:qs},Dc=()=>Qe({name:Ac,metadata:Lc,settings:Vc});var Fc=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));const $c=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:o,...a}=e;return{...a,style:t}},Gc=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0},save({attributes:{tagName:e}}){return(0,qe.createElement)(e,{...Ye.useInnerBlocksProps.save(Ye.useBlockProps.save())})},isEligible:({layout:e})=>!e||e.inherit||e.contentSize&&"constrained"!==e.type,migrate:e=>{const{layout:t=null}=e;return t?t.inherit||t.contentSize?{...e,layout:{...t,type:"constrained"}}:void 0:e}},{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){const{tagName:t}=e;return(0,qe.createElement)(t,{...Ye.useBlockProps.save()},(0,qe.createElement)("div",{className:"wp-block-group__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:$c,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:o,customTextColor:a}=e,r=(0,Ye.getColorClassName)("background-color",t),l=(0,Ye.getColorClassName)("color",o),i=it()(r,l,{"has-text-color":o||a,"has-background":t||n}),s={backgroundColor:r?void 0:n,color:l?void 0:a};return(0,qe.createElement)("div",{className:i,style:s},(0,qe.createElement)("div",{className:"wp-block-group__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:$c,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:o,customTextColor:a}=e,r=(0,Ye.getColorClassName)("background-color",t),l=(0,Ye.getColorClassName)("color",o),i=it()(r,{"has-text-color":o||a,"has-background":t||n}),s={backgroundColor:r?void 0:n,color:l?void 0:a};return(0,qe.createElement)("div",{className:i,style:s},(0,qe.createElement)("div",{className:"wp-block-group__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:$c,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n}=e,o=(0,Ye.getColorClassName)("background-color",t),a=it()(o,{"has-background":t||n}),r={backgroundColor:o?void 0:n};return(0,qe.createElement)("div",{className:a,style:r},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];var Oc=Gc;const Uc=(e="group")=>{const t={group:(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,qe.createElement)(Ke.Path,{d:"M42 0H2C.9 0 0 .9 0 2v28c0 1.1.9 2 2 2h40c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2z"})),"group-row":(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,qe.createElement)(Ke.Path,{d:"M42 0H23.5c-.6 0-1 .4-1 1v30c0 .6.4 1 1 1H42c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM20.5 0H2C.9 0 0 .9 0 2v28c0 1.1.9 2 2 2h18.5c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z"})),"group-stack":(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,qe.createElement)(Ke.Path,{d:"M42 0H2C.9 0 0 .9 0 2v12.5c0 .6.4 1 1 1h42c.6 0 1-.4 1-1V2c0-1.1-.9-2-2-2zm1 16.5H1c-.6 0-1 .4-1 1V30c0 1.1.9 2 2 2h40c1.1 0 2-.9 2-2V17.5c0-.6-.4-1-1-1z"})),"group-grid":(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,qe.createElement)(Ke.Path,{d:"m20.30137,-0.00025l-18.9728,0c-0.86524,0.07234 -1.41711,0.79149 -1.41711,1.89149l0,12.64468c0,0.6 0.73401,0.96383 1.0304,0.96383l19.67469,0.03617c0.29639,0 1.0304,-0.4 1.0304,-1l-0.03576,-12.7532c0,-1.1 -0.76644,-1.78297 -1.30983,-1.78297zm0.52975,16.60851l-19.99654,-0.03617c-0.29639,0 -0.92312,0.36383 -0.92312,0.96383l-0.03576,12.68085c0,1.1 0.8022,1.81915 1.34559,1.81915l19.00857,0c0.54339,0 1.45287,-0.71915 1.45287,-1.81915l0,-12.53617c0,-0.6 -0.5552,-1.07234 -0.8516,-1.07234z"}),(0,qe.createElement)(Ke.Path,{d:"m42.73056,-0.03617l-18.59217,0c-0.84788,0.07234 -1.38868,0.79149 -1.38868,1.89149l0,12.64468c0,0.6 0.71928,0.96383 1.00973,0.96383l19.27997,0.03617c0.29045,0 1.00973,-0.4 1.00973,-1l-0.03504,-12.7532c0,-1.1 -0.75106,-1.78297 -1.28355,-1.78297zm0.51912,16.60851l-19.59537,-0.03617c-0.29045,0 -0.9046,0.36383 -0.9046,0.96383l-0.03504,12.68085c0,1.1 0.78611,1.81915 1.31859,1.81915l18.62721,0c0.53249,0 1.42372,-0.71915 1.42372,-1.81915l0,-12.53617c0,-0.6 -0.54407,-1.07234 -0.83451,-1.07234z"}))};return t?.[e]};var jc=function({name:e,onSelect:t}){const n=(0,ut.useSelect)((t=>t(je.store).getBlockVariations(e,"block")),[e]),o=(0,Ye.useBlockProps)({className:"wp-block-group__placeholder"});return(0,qe.createElement)("div",{...o},(0,qe.createElement)(Ke.Placeholder,{instructions:(0,Je.__)("Group blocks together. Select a layout:")},(0,qe.createElement)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,Je.__)("Block variations")},n.map((e=>(0,qe.createElement)("li",{key:e.name},(0,qe.createElement)(Ke.Button,{variant:"tertiary",icon:Uc(e.name),iconSize:44,onClick:()=>t(e),className:"wp-block-group-placeholder__variation-button",label:`${e.title}: ${e.description}`})))))))};function qc({tagName:e,onSelectTagName:t}){const n={header:(0,Je.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Je.__)("The <main> element should be used for the primary content of your document only. "),section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,Je.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,Je.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:e,onChange:t,help:n[e]}))}var Wc=function({attributes:e,name:t,setAttributes:n,clientId:o,__unstableLayoutClassNames:a}){const{hasInnerBlocks:r,themeSupportsLayout:l}=(0,ut.useSelect)((e=>{const{getBlock:t,getSettings:n}=e(Ye.store),a=t(o);return{hasInnerBlocks:!(!a||!a.innerBlocks.length),themeSupportsLayout:n()?.supportsLayout}}),[o]),{tagName:i="div",templateLock:s,allowedBlocks:c,layout:u={}}=e,m=(0,Ye.useSetting)("layout")||{},p=u?.type?{...m,...u}:{...m,...u,type:"default"},{type:d="default"}=p,g=l||"flex"===d||"grid"===d,h=(0,Ye.useBlockProps)({className:g?null:a}),[_,b]=function({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:n=!1}){const{style:o,backgroundColor:a,textColor:r,fontSize:l}=e,[i,s]=(0,qe.useState)(!(n||a||l||r||o||"flex"===t||"grid"===t));return(0,qe.useEffect)((()=>{(n||a||l||r||o||"flex"===t)&&s(!1)}),[a,l,r,o,t,n]),[i,s]}({attributes:e,usedLayoutType:p?.type,hasInnerBlocks:r});let f;_?f=!1:r||(f=Ye.InnerBlocks.ButtonBlockAppender);const v=(0,Ye.useInnerBlocksProps)(g?h:{className:"wp-block-group__inner-container"},{templateLock:s,allowedBlocks:c,renderAppender:f,__unstableDisableLayoutClassNames:!g}),{selectBlock:y}=(0,ut.useDispatch)(Ye.store);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(qc,{tagName:i,onSelectTagName:e=>n({tagName:e})}),_&&(0,qe.createElement)(We.View,null,v.children,(0,qe.createElement)(jc,{clientId:o,name:t,onSelect:e=>{n(e.attributes),y(o,-1),b(!1)}})),g&&!_&&(0,qe.createElement)(i,{...v}),!g&&!_&&(0,qe.createElement)(i,{...h},(0,qe.createElement)("div",{...v})))};var Zc={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){const t=["wide","full"],n=e.reduce(((e,n)=>{const{align:o}=n.attributes;return t.indexOf(o)>t.indexOf(e)?o:e}),void 0),o=e.map((e=>(0,je.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,je.createBlock)("core/group",{align:n,layout:{type:"constrained"}},o)}}]};var Qc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"}));var Kc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"}));var Jc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"}));const Yc=[{name:"group",title:(0,Je.__)("Group"),description:(0,Je.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],isActive:e=>!e.layout||!e.layout?.type||"default"===e.layout?.type||"constrained"===e.layout?.type,icon:Fc},{name:"group-row",title:(0,Je._x)("Row","single horizontal line"),description:(0,Je.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:e=>"flex"===e.layout?.type&&(!e.layout?.orientation||"horizontal"===e.layout?.orientation),icon:Qc},{name:"group-stack",title:(0,Je.__)("Stack"),description:(0,Je.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:e=>"flex"===e.layout?.type&&"vertical"===e.layout?.orientation,icon:Kc}];window?.__experimentalEnableGroupGridVariation&&Yc.push({name:"group-grid",title:(0,Je.__)("Grid"),description:(0,Je.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:e=>"grid"===e.layout?.type,icon:Jc});var Xc=Yc;const eu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},allowedBlocks:{type:"array"}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0}},editorStyle:"wp-block-group-editor",style:"wp-block-group"},{name:tu}=eu,nu={icon:Fc,example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:(0,Je.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:(0,Je.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:(0,Je.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:(0,Je.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:(0,Je.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:(0,Je.__)("Six.")}}]},transforms:Zc,edit:Wc,save:function({attributes:{tagName:e}}){return(0,qe.createElement)(e,{...Ye.useInnerBlocksProps.save(Ye.useBlockProps.save())})},deprecated:Oc,variations:Xc},ou=()=>Qe({name:tu,metadata:eu,settings:nu});var au=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"}));const ru={className:!1,anchor:!0},lu={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},iu=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}},{customTextColor:n,...o}=e;return{...o,style:t}},su=["left","right","center"],cu=e=>{const{align:t,...n}=e;return su.includes(t)?{...n,textAlign:t}:e},uu={supports:ru,attributes:{...lu,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>iu(cu(e)),save({attributes:e}){const{align:t,level:n,content:o,textColor:a,customTextColor:r}=e,l="h"+n,i=(0,Ye.getColorClassName)("color",a),s=it()({[i]:i});return(0,qe.createElement)(Ye.RichText.Content,{className:s||void 0,tagName:l,style:{textAlign:t,color:i?void 0:r},value:o})}},mu={attributes:{...lu,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>iu(cu(e)),save({attributes:e}){const{align:t,content:n,customTextColor:o,level:a,textColor:r}=e,l="h"+a,i=(0,Ye.getColorClassName)("color",r),s=it()({[i]:i,[`has-text-align-${t}`]:t});return(0,qe.createElement)(Ye.RichText.Content,{className:s||void 0,tagName:l,style:{color:i?void 0:o},value:n})},supports:ru},pu={supports:ru,attributes:{...lu,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>iu(cu(e)),save({attributes:e}){const{align:t,content:n,customTextColor:o,level:a,textColor:r}=e,l="h"+a,i=(0,Ye.getColorClassName)("color",r),s=it()({[i]:i,"has-text-color":r||o,[`has-text-align-${t}`]:t});return(0,qe.createElement)(Ye.RichText.Content,{className:s||void 0,tagName:l,style:{color:i?void 0:o},value:n})}},du={supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:lu,isEligible:({align:e})=>su.includes(e),migrate:cu,save({attributes:e}){const{align:t,content:n,level:o}=e,a="h"+o,r=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)(a,{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},gu={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){const{textAlign:t,content:n,level:o}=e,a="h"+o,r=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)(a,{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}};var hu=[gu,du,pu,mu,uu],_u=n(4793),bu=n.n(_u);const fu={},vu=e=>bu()((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),yu=(e,t)=>{const n=vu(t);if(""===n)return null;delete fu[e];let o=n,a=0;for(;Object.values(fu).includes(o);)a+=1,o=n+"-"+a;return o},ku=(e,t)=>{fu[e]=t};var xu=function({attributes:e,setAttributes:t,mergeBlocks:n,onReplace:o,style:a,clientId:r}){const{textAlign:l,content:i,level:s,placeholder:c,anchor:u}=e,m="h"+s,p=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${l}`]:l}),style:a}),{canGenerateAnchors:d}=(0,ut.useSelect)((e=>{const{getGlobalBlockCount:t,getSettings:n}=e(Ye.store);return{canGenerateAnchors:!!n().generateAnchors||t("core/table-of-contents")>0}}),[]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,ut.useDispatch)(Ye.store);return(0,qe.useEffect)((()=>{if(d)return!u&&i&&(g(),t({anchor:yu(r,i)})),ku(r,u),()=>ku(r,null)}),[u,i,r,d]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.HeadingLevelDropdown,{value:s,onChange:e=>t({level:e})}),(0,qe.createElement)(Ye.AlignmentControl,{value:l,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)(Ye.RichText,{identifier:"content",tagName:m,value:i,onChange:e=>{const n={content:e};!d||u&&e&&yu(r,i)!==u||(n.anchor=yu(r,e)),t(n)},onMerge:n,onSplit:(t,n)=>{let o;var a;n||t?o=(0,je.createBlock)("core/heading",{...e,content:t}):o=(0,je.createBlock)(null!==(a=(0,je.getDefaultBlockName)())&&void 0!==a?a:"core/heading");return n&&(o.clientId=r),o},onReplace:o,onRemove:()=>o([]),"aria-label":(0,Je.__)("Heading text"),placeholder:c||(0,Je.__)("Heading"),textAlign:l,...qe.Platform.isNative&&{deleteEnter:!0},...p}))};const{name:wu}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},Cu={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((({content:e,anchor:t,align:n})=>(0,je.createBlock)(wu,{content:e,anchor:t,textAlign:n})))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const n={children:e,attributes:t?[]:["style","id"]};return{h1:n,h2:n,h3:n,h4:n,h5:n,h6:n}},transform(e){const t=(0,je.getBlockAttributes)(wu,e.outerHTML),{textAlign:n}=e.style||{};var o;return t.level=(o=e.nodeName,Number(o.substr(1))),"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),(0,je.createBlock)(wu,t)}},...[1,2,3,4,5,6].map((e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,je.createBlock)(wu,{level:e,content:t})}}))),...[1,2,3,4,5,6].map((e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform(t){return(0,je.createBlock)(wu,{level:e,content:t})}})))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((({content:e,textAlign:t})=>(0,je.createBlock)("core/paragraph",{content:e,align:t})))}]};var Eu=Cu;const Su={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:Bu}=Su,Tu={icon:au,example:{attributes:{content:(0,Je.__)("Code is Poetry"),level:2}},__experimentalLabel(e,{context:t}){const{content:n,level:o}=e;return"list-view"===t&&n?n:"accessibility"===t?n&&0!==n.length?(0,Je.sprintf)((0,Je.__)("Level %1$s. %2$s"),o,n):(0,Je.sprintf)((0,Je.__)("Level %s. Empty."),o):void 0},transforms:Eu,deprecated:hu,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:xu,save:function({attributes:e}){const{textAlign:t,content:n,level:o}=e,a="h"+o,r=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)(a,{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},Nu=()=>Qe({name:Bu,metadata:Su,settings:Tu});var Pu=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}));const Iu=e=>e.preventDefault();const Mu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"},{name:zu}=Mu,Ru={icon:Pu,edit:function({attributes:e,setAttributes:t,context:n}){const{homeUrl:o}=(0,ut.useSelect)((e=>{const{getUnstableBase:t}=e(ct.store);return{homeUrl:t()?.home}}),[]),{__unstableMarkNextChangeAsNotPersistent:a}=(0,ut.useDispatch)(Ye.store),{textColor:r,backgroundColor:l,style:i}=n,s=(0,Ye.useBlockProps)({className:it()("wp-block-navigation-item",{"has-text-color":!!r||!!i?.color?.text,[`has-${r}-color`]:!!r,"has-background":!!l||!!i?.color?.background,[`has-${l}-background-color`]:!!l}),style:{color:i?.color?.text,backgroundColor:i?.color?.background}}),{label:c}=e;return(0,qe.useEffect)((()=>{void 0===c&&(a(),t({label:(0,Je.__)("Home")}))}),[c]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{...s},(0,qe.createElement)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:o,onClick:Iu},(0,qe.createElement)(Ye.RichText,{identifier:"label",className:"wp-block-home-link__label",value:c,onChange:e=>{t({label:e})},"aria-label":(0,Je.__)("Home link text"),placeholder:(0,Je.__)("Add home link"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},example:{attributes:{label:(0,Je._x)("Home Link","block example")}}},Hu=()=>Qe({name:zu,metadata:Mu,settings:Ru});var Lu=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));const Au="\n\thtml,body,:root {\n\t\tmargin: 0 !important;\n\t\tpadding: 0 !important;\n\t\toverflow: visible !important;\n\t\tmin-height: auto !important;\n\t}\n";function Vu({content:e,isSelected:t}){const n=(0,ut.useSelect)((e=>e(Ye.store).getSettings()?.styles),[]),o=(0,qe.useMemo)((()=>[Au,...(0,Ye.transformStyles)(n)]),[n]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.SandBox,{html:e,styles:o}),!t&&(0,qe.createElement)("div",{className:"block-library-html__preview-overlay"}))}var Du={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,je.createBlock)("core/html",{content:e})}]};const Fu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-html-editor"},{name:$u}=Fu,Gu={icon:Lu,example:{attributes:{content:"<marquee>"+(0,Je.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function({attributes:e,setAttributes:t,isSelected:n}){const[o,a]=(0,qe.useState)(),r=(0,qe.useContext)(Ke.Disabled.Context);return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:"block-library-html__edit"})},(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{className:"components-tab-button",isPressed:!o,onClick:function(){a(!1)}},"HTML"),(0,qe.createElement)(Ke.ToolbarButton,{className:"components-tab-button",isPressed:o,onClick:function(){a(!0)}},(0,Je.__)("Preview")))),o||r?(0,qe.createElement)(Vu,{content:e.content,isSelected:n}):(0,qe.createElement)(Ye.PlainText,{value:e.content,onChange:e=>t({content:e}),placeholder:(0,Je.__)("Write HTML…"),"aria-label":(0,Je.__)("HTML")}))},save:function({attributes:e}){return(0,qe.createElement)(qe.RawHTML,null,e.content)},transforms:Du},Ou=()=>Qe({name:$u,metadata:Fu,settings:Gu}),Uu={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,width:l,height:i}=e,s=l||i?{width:l,height:i}:{},c=(0,qe.createElement)("img",{src:t,alt:n,...s});let u={};return l?u={width:l}:"left"!==a&&"right"!==a||(u={maxWidth:"50%"}),(0,qe.createElement)("figure",{className:a?`align${a}`:null,style:u},r?(0,qe.createElement)("a",{href:r},c):c,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}))}},ju={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,width:l,height:i,id:s}=e,c=(0,qe.createElement)("img",{src:t,alt:n,className:s?`wp-image-${s}`:null,width:l,height:i});return(0,qe.createElement)("figure",{className:a?`align${a}`:null},r?(0,qe.createElement)("a",{href:r},c):c,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}))}},qu={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,width:l,height:i,id:s}=e,c=it()({[`align${a}`]:a,"is-resized":l||i}),u=(0,qe.createElement)("img",{src:t,alt:n,className:s?`wp-image-${s}`:null,width:l,height:i});return(0,qe.createElement)("figure",{className:c},r?(0,qe.createElement)("a",{href:r},u):u,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}))}},Wu={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,id:u,linkTarget:m,sizeSlug:p,title:d}=e,g=l||void 0,h=it()({[`align${a}`]:a,[`size-${p}`]:p,"is-resized":s||c}),_=(0,qe.createElement)("img",{src:t,alt:n,className:u?`wp-image-${u}`:null,width:s,height:c,title:d}),b=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:m,rel:g},_):_,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}));return"left"===a||"right"===a||"center"===a?(0,qe.createElement)("div",{...Ye.useBlockProps.save()},(0,qe.createElement)("figure",{className:h},b)):(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:h})},b)}},Zu={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,id:u,linkTarget:m,sizeSlug:p,title:d}=e,g=l||void 0,h=it()({[`align${a}`]:a,[`size-${p}`]:p,"is-resized":s||c}),_=(0,qe.createElement)("img",{src:t,alt:n,className:u?`wp-image-${u}`:null,width:s,height:c,title:d}),b=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:m,rel:g},_):_,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}));return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:h})},b)}},Qu={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,behaviors:{lightbox:!0},color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:u,scale:m,id:p,linkTarget:d,sizeSlug:g,title:h}=e,_=l||void 0,b=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),f=it()({[`align${a}`]:a,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),v=it()(b.className,{[`wp-image-${p}`]:!!p}),y=(0,qe.createElement)("img",{src:t,alt:n,className:v||void 0,style:{...b.style,aspectRatio:u,objectFit:m},width:s,height:c,title:h}),k=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:d,rel:_},y):y,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o}));return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:f})},k)}};var Ku=[Qu,Zu,Wu,qu,ju,Uu];var Ju=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M16.5 7.8v7H18v-7c0-1-.8-1.8-1.8-1.8h-7v1.5h7c.2 0 .3.1.3.3zm-8.7 8.7c-.1 0-.2-.1-.2-.2V2H6v4H2v1.5h4v8.8c0 1 .8 1.8 1.8 1.8h8.8v4H18v-4h4v-1.5H7.8z"}));var Yu=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"}));var Xu=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));function em(e,t){const[n,o]=(0,qe.useState)();function a(){o(e.current?.clientWidth)}return(0,qe.useEffect)(a,t),(0,qe.useEffect)((()=>{const{defaultView:t}=e.current.ownerDocument;return t.addEventListener("resize",a),()=>{t.removeEventListener("resize",a)}}),[]),n}const{DimensionsTool:tm,ResolutionTool:nm}=Yt(Ye.privateApis),om=[{value:"cover",label:(0,Je._x)("Cover","Scale option for dimensions control"),help:(0,Je.__)("Image covers the space evenly.")},{value:"contain",label:(0,Je._x)("Contain","Scale option for dimensions control"),help:(0,Je.__)("Image is contained without distortion.")}];function am({temporaryURL:e,attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:a,onReplace:r,onSelectImage:l,onSelectURL:i,onUploadError:s,containerRef:c,context:u,clientId:m,blockEditingMode:p}){const{url:d="",alt:g,caption:h,align:_,id:b,href:f,rel:v,linkClass:y,linkDestination:k,title:x,width:w,height:C,aspectRatio:E,scale:S,linkTarget:B,sizeSlug:T}=t,N=(0,qe.useRef)(),P=(0,Tt.usePrevious)(h),[I,M]=(0,qe.useState)(!!h),{allowResize:z=!0}=u,{getBlock:R}=(0,ut.useSelect)(Ye.store),{image:H,multiImageSelection:L}=(0,ut.useSelect)((e=>{const{getMedia:t}=e(ct.store),{getMultiSelectedBlockClientIds:n,getBlockName:a}=e(Ye.store),r=n();return{image:b&&o?t(b,{context:"view"}):null,multiImageSelection:r.length&&r.every((e=>"core/image"===a(e)))}}),[b,o]),{canInsertCover:A,imageEditing:V,imageSizes:D,maxWidth:F,mediaUpload:$}=(0,ut.useSelect)((e=>{const{getBlockRootClientId:t,getSettings:n,canInsertBlockType:o}=e(Ye.store),a=t(m),r=n();return{imageEditing:r.imageEditing,imageSizes:r.imageSizes,maxWidth:r.maxWidth,mediaUpload:r.mediaUpload,canInsertCover:o("core/cover",a)}}),[m]),{replaceBlocks:G,toggleSelection:O}=(0,ut.useDispatch)(Ye.store),{createErrorNotice:U,createSuccessNotice:j}=(0,ut.useDispatch)(Bt.store),q=(0,Tt.useViewportMatch)("medium"),W=["wide","full"].includes(_),[{loadedNaturalWidth:Z,loadedNaturalHeight:Q},K]=(0,qe.useState)({}),[J,Y]=(0,qe.useState)(!1),[X,ee]=(0,qe.useState)(),te=em(c,[_]),ne="default"===p,oe=z&&ne&&!(W&&q),ae=D.filter((({slug:e})=>H?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e}))),re=!!$;(0,qe.useEffect)((()=>{lm(b,d)&&o&&re?X||window.fetch(d.includes("?")?d:d+"?").then((e=>e.blob())).then((e=>ee(e))).catch((()=>{})):ee()}),[b,d,o,X,re]),(0,qe.useEffect)((()=>{h&&!P&&M(!0)}),[h,P]);const le=(0,qe.useCallback)((e=>{e&&!h&&e.focus()}),[h]),{naturalWidth:ie,naturalHeight:se}=(0,qe.useMemo)((()=>({naturalWidth:N.current?.naturalWidth||Z||void 0,naturalHeight:N.current?.naturalHeight||Q||void 0})),[Z,Q,N.current?.complete]);(0,qe.useEffect)((()=>{o||(Y(!1),h||M(!1))}),[o,h]);const ce=b&&ie&&se&&V,ue=!L&&ce&&!J;const me=(0,Ke.__experimentalUseCustomUnits)({availableUnits:["px"]}),pe=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},ne&&(0,qe.createElement)(Ye.BlockAlignmentControl,{value:_,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};n({...t,align:e})}}),ne&&(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{M(!I),I&&h&&n({caption:void 0})},icon:St,isPressed:I,label:I?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")}),!L&&!J&&(0,qe.createElement)(Ye.__experimentalImageURLInputUI,{url:f||"",onChangeUrl:function(e){n(e)},linkDestination:k,mediaUrl:H&&H.source_url||d,mediaLink:H&&H.link,linkTarget:B,linkClass:y,rel:v}),ue&&(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>Y(!0),icon:Ju,label:(0,Je.__)("Crop")}),!L&&A&&(0,qe.createElement)(Ke.ToolbarButton,{icon:Yu,label:(0,Je.__)("Add text over image"),onClick:function(){G(m,(0,je.switchToBlockType)(R(m),"core/cover"))}})),!L&&!J&&(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:b,mediaURL:d,allowedTypes:tc,accept:"image/*",onSelect:l,onSelectURL:i,onError:s})),!L&&X&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:function(){$({filesList:[X],onFileChange([e]){l(e),(0,Et.isBlobURL)(e.url)||(ee(),j((0,Je.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:tc,onError(e){U(e,{type:"snackbar"})}})},icon:Xu,label:(0,Je.__)("Upload external image")}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.__experimentalToolsPanel,{label:(0,Je.__)("Settings"),resetAll:()=>n({width:void 0,height:void 0,scale:void 0,aspectRatio:void 0})},!L&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{label:(0,Je.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>""!==g,onDeselect:()=>n({alt:void 0})},(0,qe.createElement)(Ke.TextareaControl,{label:(0,Je.__)("Alternative text"),value:g,onChange:function(e){n({alt:e})},help:(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,Je.__)("Describe the purpose of the image.")),(0,qe.createElement)("br",null),(0,Je.__)("Leave empty if decorative.")),__nextHasNoMarginBottom:!0})),(0,qe.createElement)(tm,{value:{width:w&&`${w}px`,height:C&&`${C}px`,scale:S,aspectRatio:E},onChange:e=>{n({width:e.width&&parseInt(e.width,10),height:e.height&&parseInt(e.height,10),scale:e.scale,aspectRatio:e.aspectRatio})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:om,unitsOptions:me}),(0,qe.createElement)(nm,{value:T,onChange:function(e){const t=H?.media_details?.sizes?.[e]?.source_url;if(!t)return null;n({url:t,sizeSlug:e})},options:ae}))),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Title attribute"),value:x||"",onChange:function(e){n({title:e})},help:(0,qe.createElement)(qe.Fragment,null,(0,Je.__)("Describe the role of this image on the page."),(0,qe.createElement)(Ke.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},(0,Je.__)("(Note: many devices and browsers do not display this text.)")))}))),de=(0,st.getFilename)(d);let ge;ge=g||(de?(0,Je.sprintf)((0,Je.__)("This image has an empty alt attribute; its file name is %s"),de):(0,Je.__)("This image has an empty alt attribute"));const he=(0,Ye.__experimentalUseBorderProps)(t),_e=t.className?.includes("is-style-rounded");let be=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("img",{src:e||d,alt:ge,onError:()=>function(){const e=At({attributes:{url:d}});void 0!==e&&r(e)}(),onLoad:e=>{K({loadedNaturalWidth:e.target?.naturalWidth,loadedNaturalHeight:e.target?.naturalHeight})},ref:N,className:he.className,style:{width:w&&C||E?"100%":void 0,height:w&&C||E?"100%":void 0,objectFit:S,...he.style}}),e&&(0,qe.createElement)(Ke.Spinner,null));const fe=N.current?.width||te;if(ce&&J)be=(0,qe.createElement)(Ye.__experimentalImageEditor,{id:b,url:d,width:w,height:C,clientWidth:fe,naturalHeight:se,naturalWidth:ie,onSaveImage:e=>n(e),onFinishEditing:()=>{Y(!1)},borderProps:_e?void 0:he});else if(oe){const e=E&&function(e){const[t,n=1]=e.split("/").map(Number),o=t/n;return o===1/0||0===o?NaN:o}(E)||w&&C&&w/C||ie/se||1,t=!w&&C?C*e:w,a=!C&&w?w/e:C,r=ie<se?Qs:Qs*e,l=se<ie?Qs:Qs/e,i=2.5*F;let s=!1,c=!1;"center"===_?(s=!0,c=!0):(0,Je.isRTL)()?"left"===_?s=!0:c=!0:"right"===_?c=!0:s=!0,be=(0,qe.createElement)(Ke.ResizableBox,{style:{display:"block",objectFit:S,aspectRatio:w||C||!E?void 0:E},size:{width:null!=t?t:"auto",height:null!=a?a:"auto"},showHandle:o,minWidth:r,maxWidth:i,minHeight:l,maxHeight:i/e,lockAspectRatio:e,enable:{top:!1,right:s,bottom:!0,left:c},onResizeStart:function(){O(!1)},onResizeStop:(e,t,o)=>{O(!0),n({width:o.offsetWidth,height:o.offsetHeight,aspectRatio:void 0})},resizeRatio:"center"===_?2:1},be)}else be=(0,qe.createElement)("div",{style:{width:w,height:C,aspectRatio:E}},be);return(0,qe.createElement)(qe.Fragment,null,!e&&pe,be,I&&(!Ye.RichText.isEmpty(h)||o)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",className:(0,Ye.__experimentalGetElementClassName)("caption"),ref:le,tagName:"figcaption","aria-label":(0,Je.__)("Image caption text"),placeholder:(0,Je.__)("Add caption"),value:h,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>a((0,je.createBlock)((0,je.getDefaultBlockName)()))}))}const{useBlockEditingMode:rm}=Yt(Ye.privateApis),lm=(e,t)=>t&&!e&&!(0,Et.isBlobURL)(t);var im=function({attributes:e,setAttributes:t,isSelected:n,className:o,insertBlocksAfter:a,onReplace:r,context:l,clientId:i}){const{url:s="",alt:c,caption:u,align:m,id:p,width:d,height:g,sizeSlug:h}=e,[_,b]=(0,qe.useState)(),f=(0,qe.useRef)();(0,qe.useEffect)((()=>{f.current=c}),[c]);const v=(0,qe.useRef)();(0,qe.useEffect)((()=>{v.current=u}),[u]);const y=(0,qe.useRef)(),{imageDefaultSize:k,mediaUpload:x}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),n=t();return{imageDefaultSize:n.imageDefaultSize,mediaUpload:n.mediaUpload}}),[]),w=rm(),{createErrorNotice:C}=(0,ut.useDispatch)(Bt.store);function E(e){C(e,{type:"snackbar"}),t({src:void 0,id:void 0,url:void 0}),b(void 0)}function S(n){if(!n||!n.url)return void t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if((0,Et.isBlobURL)(n.url))return void b(n.url);b();let o,a=((e,t)=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link","caption"].includes(e))));return n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,n})(n,k);if(v.current&&!a.caption){const{caption:e,...t}=a;a=t}var r,l,i,c;o=n.id&&n.id===p?{url:s}:{sizeSlug:(r=n,l=k,"url"in(null!==(i=r?.sizes?.[l])&&void 0!==i?i:{})||"source_url"in(null!==(c=r?.media_details?.sizes?.[l])&&void 0!==c?c:{})?k:"full")};let u,m=e.linkDestination;if(!m)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||Ks){case"file":case Js:m=Js;break;case"post":case Ys:m=Ys;break;case Xs:m=Xs;break;case Ks:m=Ks}switch(m){case Js:u=n.url;break;case Ys:u=n.link}a.href=u,t({...a,...o,linkDestination:m})}function B(e){e!==s&&t({url:e,id:void 0,sizeSlug:k})}let T=((e,t)=>!e&&(0,Et.isBlobURL)(t))(p,s);(0,qe.useEffect)((()=>{if(!T)return;const e=(0,Et.getBlobByURL)(s);e&&x({filesList:[e],onFileChange:([e])=>{S(e)},allowedTypes:tc,onError:e=>{T=!1,E(e)}})}),[]),(0,qe.useEffect)((()=>{T?b(s):(0,Et.revokeBlobURL)(_)}),[T,s]);const N=lm(p,s)?s:void 0,P=!!s&&(0,qe.createElement)("img",{alt:(0,Je.__)("Edit image"),title:(0,Je.__)("Edit image"),className:"edit-image-preview",src:s}),I=(0,Ye.__experimentalUseBorderProps)(e),M=it()(o,{"is-transient":_,"is-resized":!!d||!!g,[`size-${h}`]:h,"has-custom-border":!!I.className||I.style&&Object.keys(I.style).length>0}),z=(0,Ye.useBlockProps)({ref:y,className:M});return(0,qe.createElement)("figure",{...z},(_||s)&&(0,qe.createElement)(am,{temporaryURL:_,attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:a,onReplace:r,onSelectImage:S,onSelectURL:B,onUploadError:E,containerRef:y,context:l,clientId:i,blockEditingMode:w}),!s&&"default"===w&&(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.BlockAlignmentControl,{value:m,onChange:function(e){const n=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};t({...n,align:e})}})),(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:_c}),onSelect:S,onSelectURL:B,onError:E,placeholder:e=>(0,qe.createElement)(Ke.Placeholder,{className:it()("block-editor-media-placeholder",{[I.className]:!!I.className&&!n}),withIllustration:!0,icon:_c,label:(0,Je.__)("Image"),instructions:(0,Je.__)("Upload an image file, pick one from your media library, or add one with a URL."),style:n?void 0:I.style},e),accept:"image/*",allowedTypes:tc,value:{id:p,src:N},mediaPreview:P,disableMediaButtons:_||s}))};function sm(e,t){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=e;const{firstElementChild:o}=n;if(o&&"A"===o.nodeName)return o.getAttribute(t)||void 0}const cm={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},um={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...cm,a:{attributes:["href","rel","target"],children:cm},figcaption:{children:e}}}}),transform:e=>{const t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),o=""===e.id?void 0:e.id,a=n?n[1]:void 0,r=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=r?Number(r[1]):void 0,i=e.querySelector("a"),s=i&&i.href?"custom":void 0,c=i&&i.href?i.href:void 0,u=i&&i.rel?i.rel:void 0,m=i&&i.className?i.className:void 0,p=(0,je.getBlockAttributes)("core/image",e.outerHTML,{align:a,id:l,linkDestination:s,href:c,rel:u,linkClass:m,anchor:o});return(0,je.createBlock)("core/image",p)}},{type:"files",isMatch(e){if(e.some((e=>0===e.type.indexOf("image/")))&&e.some((e=>0!==e.type.indexOf("image/")))){const{createErrorNotice:e}=(0,ut.dispatch)(Bt.store);e((0,Je.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-transform-invalid-file",type:"snackbar"})}return e.every((e=>0===e.type.indexOf("image/")))},transform(e){const t=e.map((e=>(0,je.createBlock)("core/image",{url:(0,Et.createBlobURL)(e)})));return t}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,{shortcode:t}){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=t.content;let o=n.querySelector("img");for(;o&&o.parentNode&&o.parentNode!==n;)o=o.parentNode;return o&&o.parentNode.removeChild(o),n.innerHTML.trim()}},href:{shortcode:(e,{shortcode:t})=>sm(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>sm(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>sm(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]};var mm=um;const pm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,behaviors:{lightbox:!0},color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},selectors:{border:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",filter:{duotone:".wp-block-image img, .wp-block-image .components-placeholder"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:dm}=pm,gm={icon:_c,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,Je.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{caption:t,alt:n,url:o}=e;return o?n?n+(t?". "+t:""):t||"":(0,Je.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:mm,edit:im,save:function({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:u,scale:m,id:p,linkTarget:d,sizeSlug:g,title:h}=e,_=l||void 0,b=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),f=it()({[`align${a}`]:a,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),v=it()(b.className,{[`wp-image-${p}`]:!!p}),y=(0,qe.createElement)("img",{src:t,alt:n,className:v||void 0,style:{...b.style,aspectRatio:u,objectFit:m,width:s,height:c},width:s,height:c,title:h}),k=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:d,rel:_},y):y,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o}));return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:f})},k)},deprecated:Ku},hm=()=>Qe({name:dm,metadata:pm,settings:gm});var _m=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));const bm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"},{name:fm}=bm,vm={icon:_m,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:n,displayAvatar:o,displayDate:a,displayExcerpt:r}=e,l={...e,style:{...e?.style,spacing:void 0}};return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display avatar"),checked:o,onChange:()=>t({displayAvatar:!o})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display date"),checked:a,onChange:()=>t({displayDate:!a})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display excerpt"),checked:r,onChange:()=>t({displayExcerpt:!r})}),(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Number of comments"),value:n,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0}))),(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/latest-comments",attributes:l,urlQueryArgs:{_locale:"site"}})))}},ym=()=>Qe({name:fm,metadata:bm,settings:vm});var km=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));const{attributes:xm}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var wm=[{attributes:{...xm,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}];var Cm=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"}));const Em={per_page:-1,context:"view"},Sm={per_page:-1,has_published_posts:["post"],context:"view"};const Bm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},{name:Tm}=Bm,Nm={icon:km,example:{},edit:function e({attributes:t,setAttributes:n}){var o;const a=(0,Tt.useInstanceId)(e),{postsToShow:r,order:l,orderBy:i,categories:s,selectedAuthor:c,displayFeaturedImage:u,displayPostContentRadio:m,displayPostContent:p,displayPostDate:d,displayAuthor:g,postLayout:h,columns:_,excerptLength:b,featuredImageAlign:f,featuredImageSizeSlug:v,featuredImageSizeWidth:y,featuredImageSizeHeight:k,addLinkToFeaturedImage:x}=t,{imageSizes:w,latestPosts:C,defaultImageWidth:E,defaultImageHeight:S,categoriesList:B,authorList:T}=(0,ut.useSelect)((e=>{var t,n;const{getEntityRecords:o,getUsers:a}=e(ct.store),u=e(Ye.store).getSettings(),m=s&&s.length>0?s.map((e=>e.id)):[],p=Object.fromEntries(Object.entries({categories:m,author:c,order:l,orderby:i,per_page:r,_embed:"wp:featuredmedia"}).filter((([,e])=>void 0!==e)));return{defaultImageWidth:null!==(t=u.imageDimensions?.[v]?.width)&&void 0!==t?t:0,defaultImageHeight:null!==(n=u.imageDimensions?.[v]?.height)&&void 0!==n?n:0,imageSizes:u.imageSizes,latestPosts:o("postType","post",p),categoriesList:o("taxonomy","category",Em),authorList:a(Sm)}}),[v,r,l,i,s,c]),{createWarningNotice:N,removeNotice:P}=(0,ut.useDispatch)(Bt.store);let I;const M=e=>{e.preventDefault(),P(I),I=`block-library/core/latest-posts/redirection-prevented/${a}`,N((0,Je.__)("Links are disabled in the editor."),{id:I,type:"snackbar"})},z=w.filter((({slug:e})=>"full"!==e)).map((({name:e,slug:t})=>({value:t,label:e}))),R=null!==(o=B?.reduce(((e,t)=>({...e,[t.name]:t})),{}))&&void 0!==o?o:{},H=!!C?.length,L=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Post content")},(0,qe.createElement)(Ke.ToggleControl,{label:(0,Je.__)("Post content"),checked:p,onChange:e=>n({displayPostContent:e})}),p&&(0,qe.createElement)(Ke.RadioControl,{label:(0,Je.__)("Show:"),selected:m,options:[{label:(0,Je.__)("Excerpt"),value:"excerpt"},{label:(0,Je.__)("Full post"),value:"full_post"}],onChange:e=>n({displayPostContentRadio:e})}),p&&"excerpt"===m&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Max number of words"),value:b,onChange:e=>n({excerptLength:e}),min:10,max:100})),(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Post meta")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display author name"),checked:g,onChange:e=>n({displayAuthor:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display post date"),checked:d,onChange:e=>n({displayPostDate:e})})),(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Featured image")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display featured image"),checked:u,onChange:e=>n({displayFeaturedImage:e})}),u&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.__experimentalImageSizeControl,{onChange:e=>{const t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),n(t)},slug:v,width:y,height:k,imageWidth:E,imageHeight:S,imageSizeOptions:z,imageSizeHelp:(0,Je.__)("Select the size of the source image."),onChangeImage:e=>n({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),(0,qe.createElement)(Ke.BaseControl,{className:"editor-latest-posts-image-alignment-control"},(0,qe.createElement)(Ke.BaseControl.VisualLabel,null,(0,Je.__)("Image alignment")),(0,qe.createElement)(Ye.BlockAlignmentToolbar,{value:f,onChange:e=>n({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Add link to featured image"),checked:x,onChange:e=>n({addLinkToFeaturedImage:e})}))),(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Sorting and filtering")},(0,qe.createElement)(Ke.QueryControls,{order:l,orderBy:i,numberOfItems:r,onOrderChange:e=>n({order:e}),onOrderByChange:e=>n({orderBy:e}),onNumberOfItemsChange:e=>n({postsToShow:e}),categorySuggestions:R,onCategoryChange:e=>{if(e.some((e=>"string"==typeof e&&!R[e])))return;const t=e.map((e=>"string"==typeof e?R[e]:e));if(t.includes(null))return!1;n({categories:t})},selectedCategories:s,onAuthorChange:e=>n({selectedAuthor:""!==e?Number(e):void 0}),authorList:null!=T?T:[],selectedAuthorId:c}),"grid"===h&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:_,onChange:e=>n({columns:e}),min:2,max:H?Math.min(6,C.length):6,required:!0}))),A=(0,Ye.useBlockProps)({className:it()({"wp-block-latest-posts__list":!0,"is-grid":"grid"===h,"has-dates":d,"has-author":g,[`columns-${_}`]:"grid"===h})});if(!H)return(0,qe.createElement)("div",{...A},L,(0,qe.createElement)(Ke.Placeholder,{icon:Un,label:(0,Je.__)("Latest Posts")},Array.isArray(C)?(0,Je.__)("No posts found."):(0,qe.createElement)(Ke.Spinner,null)));const V=C.length>r?C.slice(0,r):C,D=[{icon:Cm,title:(0,Je.__)("List view"),onClick:()=>n({postLayout:"list"}),isActive:"list"===h},{icon:Jc,title:(0,Je.__)("Grid view"),onClick:()=>n({postLayout:"grid"}),isActive:"grid"===h}],F=(0,ha.getSettings)().formats.date;return(0,qe.createElement)("div",null,L,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,{controls:D})),(0,qe.createElement)("ul",{...A},V.map((e=>{const t=e.title.rendered.trim();let n=e.excerpt.rendered;const o=T?.find((t=>t.id===e.author)),a=document.createElement("div");a.innerHTML=n,n=a.textContent||a.innerText||"";const{url:r,alt:l}=function(e,t){var n;const o=e._embedded?.["wp:featuredmedia"]?.[0];return{url:null!==(n=o?.media_details?.sizes?.[t]?.source_url)&&void 0!==n?n:o?.source_url,alt:o?.alt_text}}(e,v),i=it()({"wp-block-latest-posts__featured-image":!0,[`align${f}`]:!!f}),s=u&&r,c=s&&(0,qe.createElement)("img",{src:r,alt:l,style:{maxWidth:y,maxHeight:k}}),h=b<n.trim().split(" ").length&&""===e.excerpt.raw?(0,qe.createElement)(qe.Fragment,null,n.trim().split(" ",b).join(" "),(0,qe.createInterpolateElement)((0,Je.__)(" … <a>Read more</a>"),{a:(0,qe.createElement)("a",{href:e.link,rel:"noopener noreferrer",onClick:M})})):n;return(0,qe.createElement)("li",{key:e.id},s&&(0,qe.createElement)("div",{className:i},x?(0,qe.createElement)("a",{className:"wp-block-latest-posts__post-title",href:e.link,rel:"noreferrer noopener",onClick:M},c):c),(0,qe.createElement)("a",{href:e.link,rel:"noreferrer noopener",dangerouslySetInnerHTML:t?{__html:t}:void 0,onClick:M},t?null:(0,Je.__)("(no title)")),g&&o&&(0,qe.createElement)("div",{className:"wp-block-latest-posts__post-author"},(0,Je.sprintf)((0,Je.__)("by %s"),o.name)),d&&e.date_gmt&&(0,qe.createElement)("time",{dateTime:(0,ha.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},(0,ha.dateI18n)(F,e.date_gmt)),p&&"excerpt"===m&&(0,qe.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},h),p&&"full_post"===m&&(0,qe.createElement)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:e.content.raw.trim()}}))}))))},deprecated:wm},Pm=()=>Qe({name:Tm,metadata:Bm,settings:Nm});function Im(e){const{values:t,start:n,reversed:o,ordered:a,type:r,...l}=e,i=document.createElement(a?"ol":"ul");i.innerHTML=t,n&&i.setAttribute("start",n),o&&i.setAttribute("reversed",!0),r&&i.setAttribute("type",r);const[s]=(0,je.rawHandler)({HTML:i.outerHTML});return[{...l,...s.attributes},s.innerBlocks]}const Mm={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:o,reversed:a,start:r}=e,l=t?"ol":"ul";return(0,qe.createElement)(l,{...Ye.useBlockProps.save({type:o,reversed:a,start:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n,multiline:"li"}))},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}},zm={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:o,reversed:a,start:r}=e,l=t?"ol":"ul";return(0,qe.createElement)(l,{...Ye.useBlockProps.save({type:o,reversed:a,start:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n,multiline:"li"}))},migrate:Im};var Rm=[zm,Mm];var Hm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"}));var Lm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"}));var Am=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}));var Vm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var Dm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"}));var Fm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),$m=window.wp.deprecated,Gm=n.n($m);var Om=({setAttributes:e,reversed:t,start:n,type:o})=>(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Ordered list settings")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Start value"),type:"number",onChange:t=>{const n=parseInt(t,10);e({start:isNaN(n)?void 0:n})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Numbering style"),options:[{value:"1",label:(0,Je.__)("Numbers")},{value:"A",label:(0,Je.__)("Uppercase letters")},{value:"a",label:(0,Je.__)("Lowercase letters")},{value:"I",label:(0,Je.__)("Uppercase Roman numerals")},{value:"i",label:(0,Je.__)("Lowercase Roman numerals")}],value:o,onChange:t=>e({type:t})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Reverse list numbering"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})));var Um=(0,qe.forwardRef)((function(e,t){const{ordered:n,...o}=e,a=n?"ol":"ul";return(0,qe.createElement)(a,{ref:t,...o})}));const jm=[["core/list-item"]];function qm({clientId:e}){const[t,n]=function(e){const{canOutdent:t}=(0,ut.useSelect)((t=>{const{getBlockRootClientId:n,getBlock:o}=t(Ye.store),a=n(e);return{canOutdent:!!a&&"core/list-item"===o(a).name}}),[e]),{replaceBlocks:n,selectionChange:o}=(0,ut.useDispatch)(Ye.store),{getBlockRootClientId:a,getBlockAttributes:r,getBlock:l}=(0,ut.useSelect)(Ye.store);return[t,(0,qe.useCallback)((()=>{const t=a(e),i=r(t),s=(0,je.createBlock)("core/list-item",i),{innerBlocks:c}=l(e);n([t],[s,...c]),o(c[c.length-1].clientId)}),[e])]}(e);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?Hm:Lm,title:(0,Je.__)("Outdent"),describedBy:(0,Je.__)("Outdent list item"),disabled:!t,onClick:n}))}function Wm({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach((e=>{t[e].children={li:{children:t}}})),t}function Zm(e){return e.flatMap((({name:e,attributes:t,innerBlocks:n=[]})=>"core/list-item"===e?[t.content,...Zm(n)]:Zm(n)))}const Qm={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map((({content:e})=>(0,je.createBlock)("core/list-item",{content:e})));else if(1===e.length){const n=(0,Cn.create)({html:e[0].content});t=(0,Cn.split)(n,"\n").map((e=>(0,je.createBlock)("core/list-item",{content:(0,Cn.toHTMLString)({value:e})})))}return(0,je.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:Wm(e).ol,ul:Wm(e).ul}),transform:function e(t){var n;const o={ordered:"OL"===t.tagName,anchor:""===t.id?void 0:t.id,start:t.getAttribute("start")?parseInt(t.getAttribute("start"),10):void 0,reversed:!!t.hasAttribute("reversed")||void 0,type:null!==(n=t.getAttribute("type"))&&void 0!==n?n:void 0},a=Array.from(t.children).map((t=>{const n=Array.from(t.childNodes).filter((e=>e.nodeType!==e.TEXT_NODE||0!==e.textContent.trim().length));n.reverse();const[o,...a]=n;if(!("UL"===o?.tagName||"OL"===o?.tagName))return(0,je.createBlock)("core/list-item",{content:t.innerHTML});const r=a.map((e=>e.nodeType===e.TEXT_NODE?e.textContent:e.outerHTML));r.reverse();const l={content:r.join("").trim()},i=[e(o)];return(0,je.createBlock)("core/list-item",l,i)}));return(0,je.createBlock)("core/list",o,a)}},...["*","-"].map((e=>({type:"prefix",prefix:e,transform(e){return(0,je.createBlock)("core/list",{},[(0,je.createBlock)("core/list-item",{content:e})])}}))),...["1.","1)"].map((e=>({type:"prefix",prefix:e,transform(e){return(0,je.createBlock)("core/list",{ordered:!0},[(0,je.createBlock)("core/list-item",{content:e})])}})))],to:[...["core/paragraph","core/heading"].map((e=>({type:"block",blocks:[e],transform:(t,n)=>Zm(n).map((t=>(0,je.createBlock)(e,{content:t})))})))]};var Km=Qm;const Jm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:Ym}=Jm,Xm={icon:Cm,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,Je.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,Je.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,Je.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,Je.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,Je.__)("The Queen of Hearts.")}}]},transforms:Km,edit:function({attributes:e,setAttributes:t,clientId:n,style:o}){const a=(0,Ye.useBlockProps)({...qe.Platform.isNative&&{style:o}}),r=(0,Ye.useInnerBlocksProps)(a,{allowedBlocks:["core/list-item"],template:jm,templateLock:!1,templateInsertUpdatesSelection:!0,...qe.Platform.isNative&&{marginVertical:8,marginHorizontal:8,renderAppender:!1}});!function(e,t){const n=(0,ut.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:a}=(0,ut.useDispatch)(Ye.store);(0,qe.useEffect)((()=>{if(!e.values)return;const[r,l]=Im(e);Gm()("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),n.batch((()=>{o(t,r),a(t,l)}))}),[e.values])}(e,n);const{ordered:l,type:i,reversed:s,start:c}=e,u=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?Am:Vm,title:(0,Je.__)("Unordered"),describedBy:(0,Je.__)("Convert to unordered list"),isActive:!1===l,onClick:()=>{t({ordered:!1})}}),(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?Dm:Fm,title:(0,Je.__)("Ordered"),describedBy:(0,Je.__)("Convert to ordered list"),isActive:!0===l,onClick:()=>{t({ordered:!0})}}),(0,qe.createElement)(qm,{clientId:n}));return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Um,{ordered:l,reversed:s,start:c,type:i,...r}),u,l&&(0,qe.createElement)(Om,{setAttributes:t,reversed:s,start:c,type:i}))},save:function({attributes:e}){const{ordered:t,type:n,reversed:o,start:a}=e,r=t?"ol":"ul";return(0,qe.createElement)(r,{...Ye.useBlockProps.save({type:n,reversed:o,start:a})},(0,qe.createElement)(Ye.InnerBlocks.Content,null))},deprecated:Rm},ep=()=>Qe({name:Ym,metadata:Jm,settings:Xm});var tp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var np=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"}));var op=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"}));function ap(e){const t=(0,ut.useSelect)((t=>t(Ye.store).getBlockIndex(e)>0),[e]),{replaceBlocks:n,selectionChange:o,multiSelect:a}=(0,ut.useDispatch)(Ye.store),{getBlock:r,getPreviousBlockClientId:l,getSelectionStart:i,getSelectionEnd:s,hasMultiSelection:c,getMultiSelectedBlockClientIds:u}=(0,ut.useSelect)(Ye.store);return[t,(0,qe.useCallback)((()=>{const t=c(),m=t?u():[e],p=m.map((e=>(0,je.cloneBlock)(r(e)))),d=l(e),g=(0,je.cloneBlock)(r(d));g.innerBlocks?.length||(g.innerBlocks=[(0,je.createBlock)("core/list")]),g.innerBlocks[g.innerBlocks.length-1].innerBlocks.push(...p);const h=i(),_=s();n([d,...m],[g]),t?a(p[0].clientId,p[p.length-1].clientId):o(p[0].clientId,_.attributeKey,_.clientId===h.clientId?h.offset:_.offset,_.offset)}),[e])]}const{name:rp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}};function lp(e){const t=(0,ut.useRegistry)(),{canOutdent:n}=(0,ut.useSelect)((t=>{const{getBlockRootClientId:n,getBlockName:o}=t(Ye.store);return{canOutdent:o(n(n(e)))===rp}}),[e]),{moveBlocksToPosition:o,removeBlock:a,insertBlock:r,updateBlockListSettings:l}=(0,ut.useDispatch)(Ye.store),{getBlockRootClientId:i,getBlockName:s,getBlockOrder:c,getBlockIndex:u,getSelectedBlockClientIds:m,getBlock:p,getBlockListSettings:d}=(0,ut.useSelect)(Ye.store);return[n,(0,qe.useCallback)(((e=m())=>{if(Array.isArray(e)||(e=[e]),!e.length)return;const n=e[0];if(s(n)!==rp)return;const g=function(e){const t=i(e),n=i(t);if(n&&s(n)===rp)return n}(n);if(!g)return;const h=i(n),_=e[e.length-1],b=c(h).slice(u(_)+1);t.batch((()=>{if(b.length){let e=c(n)[0];if(!e){const t=(0,je.cloneBlock)(p(h),{},[]);e=t.clientId,r(t,0,n,!1),l(e,d(h))}o(b,h,e)}if(o(e,h,i(g),u(g)+1),!c(h).length){a(h,!1)}}))}),[])]}function ip(e){const{getBlockRootClientId:t,getBlockName:n,getBlockAttributes:o}=(0,ut.useSelect)(Ye.store);return(0,Tt.useRefEffect)((a=>{function r(a){if(a.clipboardData.getData("__unstableWrapperBlockName"))return;const r=t(e);a.clipboardData.setData("__unstableWrapperBlockName",n(r)),a.clipboardData.setData("__unstableWrapperBlockAttributes",JSON.stringify(o(r)))}return a.addEventListener("copy",r),a.addEventListener("cut",r),()=>{a.removeEventListener("copy",r),a.removeEventListener("cut",r)}}),[])}const{name:sp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}};function cp(e,t){const n=(0,ut.useRegistry)(),{getPreviousBlockClientId:o,getNextBlockClientId:a,getBlockOrder:r,getBlockRootClientId:l,getBlockName:i}=(0,ut.useSelect)(Ye.store),{mergeBlocks:s,moveBlocksToPosition:c}=(0,ut.useDispatch)(Ye.store),[,u]=lp(e);function m(e){const t=r(e);return t.length?m(t[t.length-1]):e}function p(e){const t=l(e),n=l(t);if(n&&i(n)===sp)return n}function d(e){const t=a(e);if(t)return t;const n=p(e);return n?d(n):void 0}function g(e){const t=r(e);return t.length?r(t[0])[0]:d(e)}return a=>{if(a){const l=g(e);if(!l)return void t(a);p(l)?u(l):n.batch((()=>{c(r(l),l,o(l)),s(e,l)}))}else{const l=o(e);if(p(e))u(e);else if(l){const t=m(l);n.batch((()=>{c(r(e),e,l),s(t,e)}))}else t(a)}}}const{name:up}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:mp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:pp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};function dp(e){const t=(0,je.switchToBlockType)(e,mp);if(t)return t;const n=(0,je.switchToBlockType)(e,pp);return n?(0,je.switchToBlockType)(n,mp):null}function gp({clientId:e}){const[t,n]=ap(e),[o,a]=lp(e);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?Hm:Lm,title:(0,Je.__)("Outdent"),describedBy:(0,Je.__)("Outdent list item"),disabled:!o,onClick:()=>a()}),(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?np:op,title:(0,Je.__)("Indent"),describedBy:(0,Je.__)("Indent list item"),isDisabled:!t,onClick:()=>n()}))}const hp={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,je.createBlock)("core/paragraph",e),...t.map((e=>(0,je.cloneBlock)(e)))]}]};var _p=hp;const bp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:fp}=bp,vp={icon:tp,edit:function({attributes:e,setAttributes:t,onReplace:n,clientId:o,mergeBlocks:a}){const{placeholder:r,content:l}=e,i=(0,Ye.useBlockProps)({ref:ip(o)}),s=(0,Ye.useInnerBlocksProps)(i,{allowedBlocks:["core/list"],renderAppender:!1,__unstableDisableDropZone:!0}),c=function(e){const{replaceBlocks:t,selectionChange:n}=(0,ut.useDispatch)(Ye.store),{getBlock:o,getBlockRootClientId:a,getBlockIndex:r}=(0,ut.useSelect)(Ye.store),l=(0,qe.useRef)(e);l.current=e;const[i,s]=lp(l.current.clientId);return(0,Tt.useRefEffect)((e=>{function c(e){if(e.defaultPrevented||e.keyCode!==un.ENTER)return;const{content:c,clientId:u}=l.current;if(c.length)return;if(e.preventDefault(),i)return void s();const m=o(a(u)),p=r(u),d=(0,je.cloneBlock)({...m,innerBlocks:m.innerBlocks.slice(0,p)}),g=(0,je.createBlock)((0,je.getDefaultBlockName)()),h=[...m.innerBlocks[p].innerBlocks[0]?.innerBlocks||[],...m.innerBlocks.slice(p+1)],_=h.length?[(0,je.cloneBlock)({...m,innerBlocks:h})]:[];t(m.clientId,[d,g,..._],1),n(g.clientId)}return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}),[i])}({content:l,clientId:o}),u=function(e){const{getSelectionStart:t,getSelectionEnd:n}=(0,ut.useSelect)(Ye.store),[o,a]=ap(e);return(0,Tt.useRefEffect)((e=>{function r(e){const{keyCode:r,shiftKey:l,altKey:i,metaKey:s,ctrlKey:c}=e;if(e.defaultPrevented||!o||r!==un.SPACE||l||i||s||c)return;const u=t(),m=n();0===u.offset&&0===m.offset&&(e.preventDefault(),a())}return e.addEventListener("keydown",r),()=>{e.removeEventListener("keydown",r)}}),[o,a])}(o),m=function(e){const t=(0,qe.useRef)(!1),{getBlock:n}=(0,ut.useSelect)(Ye.store);return(0,qe.useCallback)((o=>{const a=n(e);return t.current?(0,je.cloneBlock)(a,{content:o}):(t.current=!0,(0,je.createBlock)(a.name,{...a.attributes,content:o}))}),[e,n])}(o),p=cp(o,a);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("li",{...s},(0,qe.createElement)(Ye.RichText,{ref:(0,Tt.useMergeRefs)([c,u]),identifier:"content",tagName:"div",onChange:e=>t({content:e}),value:l,"aria-label":(0,Je.__)("List text"),placeholder:r||(0,Je.__)("List"),onSplit:m,onMerge:p,onReplace:n?(e,...t)=>{n(function(e){const t=[];for(let n of e)if(n.name===up)t.push(n);else if(n.name===mp)t.push(...n.innerBlocks);else if(n=dp(n))for(const{innerBlocks:e}of n)t.push(...e);return t}(e),...t)}:void 0}),s.children),(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(gp,{clientId:o})))},save:function({attributes:e}){return(0,qe.createElement)("li",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.RichText.Content,{value:e.content}),(0,qe.createElement)(Ye.InnerBlocks.Content,null))},merge(e,t){return{...e,content:e.content+t.content}},transforms:_p},yp=()=>Qe({name:fp,metadata:bp,settings:vp});var kp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"}));const xp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},supports:{className:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:wp}=xp,Cp={icon:kp,edit:function({attributes:e,setAttributes:t}){const{displayLoginAsForm:n,redirectToCurrent:o}=e;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display login as form"),checked:n,onChange:()=>t({displayLoginAsForm:!n})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:"logged-in"})},(0,qe.createElement)("a",{href:"#login-pseudo-link"},(0,Je.__)("Log out"))))}},Ep=()=>Qe({name:wp,metadata:xp,settings:Cp});var Sp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"}));const Bp="full",Tp="media",Np="attachment",Pp=[["core/paragraph",{placeholder:(0,Je._x)("Content…","content placeholder")}]],Ip=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{},Mp=50,zp=()=>{},Rp=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}},{customBackgroundColor:n,...o}=e;return{...o,style:t}},Hp=e=>e.align?e:{...e,align:"wide"},Lp={align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0}},Ap={...Lp,mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaSizeSlug:{type:"string"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},Vp={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},Dp={attributes:{...Ap,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",__experimentalRole:"content"},mediaId:{type:"number",__experimentalRole:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",__experimentalRole:"content"},mediaType:{type:"string",__experimentalRole:"content"}},supports:{...Vp,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:a,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:u,linkClass:m,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Bp,_=g||void 0,b=it()({[`wp-image-${i}`]:i&&"image"===a,[`size-${h}`]:i&&"image"===a});let f=(0,qe.createElement)("img",{src:r,alt:n,className:b||null});p&&(f=(0,qe.createElement)("a",{className:m,href:p,target:d,rel:_},f));const v={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:r})},y=it()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?((e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{})(r,u):{};let x;l!==Mp&&(x="right"===o?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===o?(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||zp)())):(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||zp)()),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Hp,isEligible(e,t,{block:n}){const{attributes:o}=n;return void 0===e.align&&!!o.className?.includes("alignwide")}},Fp={attributes:Ap,supports:Vp,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:a,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:u,linkClass:m,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Bp,_=g||void 0,b=it()({[`wp-image-${i}`]:i&&"image"===a,[`size-${h}`]:i&&"image"===a});let f=(0,qe.createElement)("img",{src:r,alt:n,className:b||null});p&&(f=(0,qe.createElement)("a",{className:m,href:p,target:d,rel:_},f));const v={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:r})},y=it()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Ip(r,u):{};let x;l!==Mp&&(x="right"===o?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===o?(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||zp)())):(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||zp)()),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Hp},$p={attributes:Ap,supports:Vp,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:a,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:u,linkClass:m,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Bp,_=g||void 0,b=it()({[`wp-image-${i}`]:i&&"image"===a,[`size-${h}`]:i&&"image"===a});let f=(0,qe.createElement)("img",{src:r,alt:n,className:b||null});p&&(f=(0,qe.createElement)("a",{className:m,href:p,target:d,rel:_},f));const v={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:r})},y=it()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Ip(r,u):{};let x;l!==Mp&&(x="right"===o?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||zp)()),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Hp},Gp={attributes:{...Lp,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,Tt.compose)(Rp,Hp),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:a,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s,mediaId:c,verticalAlignment:u,imageFill:m,focalPoint:p,linkClass:d,href:g,linkTarget:h,rel:_}=e,b=_||void 0;let f=(0,qe.createElement)("img",{src:i,alt:a,className:c&&"image"===l?`wp-image-${c}`:null});g&&(f=(0,qe.createElement)("a",{className:d,href:g,target:h,rel:b},f));const v={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:i})},y=(0,Ye.getColorClassName)("background-color",t),k=it()({"has-media-on-the-right":"right"===r,"has-background":y||n,[y]:y,"is-stacked-on-mobile":o,[`is-vertically-aligned-${u}`]:u,"is-image-fill":m}),x=m?Ip(i,p):{};let w;s!==Mp&&(w="right"===r?`auto ${s}%`:`${s}% auto`);const C={backgroundColor:y?void 0:n,gridTemplateColumns:w};return(0,qe.createElement)("div",{className:k,style:C},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:x},(v[l]||zp)()),(0,qe.createElement)("div",{className:"wp-block-media-text__content"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},Op={attributes:{...Lp,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,Tt.compose)(Rp,Hp),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:a,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s,mediaId:c,verticalAlignment:u,imageFill:m,focalPoint:p}=e,d={image:()=>(0,qe.createElement)("img",{src:i,alt:a,className:c&&"image"===l?`wp-image-${c}`:null}),video:()=>(0,qe.createElement)("video",{controls:!0,src:i})},g=(0,Ye.getColorClassName)("background-color",t),h=it()({"has-media-on-the-right":"right"===r,[g]:g,"is-stacked-on-mobile":o,[`is-vertically-aligned-${u}`]:u,"is-image-fill":m}),_=m?Ip(i,p):{};let b;s!==Mp&&(b="right"===r?`auto ${s}%`:`${s}% auto`);const f={backgroundColor:g?void 0:n,gridTemplateColumns:b};return(0,qe.createElement)("div",{className:h,style:f},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:_},(d[l]||zp)()),(0,qe.createElement)("div",{className:"wp-block-media-text__content"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},Up={attributes:{...Lp,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Hp,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:a,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s}=e,c={image:()=>(0,qe.createElement)("img",{src:i,alt:a}),video:()=>(0,qe.createElement)("video",{controls:!0,src:i})},u=(0,Ye.getColorClassName)("background-color",t),m=it()({"has-media-on-the-right":"right"===r,[u]:u,"is-stacked-on-mobile":o});let p;s!==Mp&&(p="right"===r?`auto ${s}%`:`${s}% auto`);const d={backgroundColor:u?void 0:n,gridTemplateColumns:p};return(0,qe.createElement)("div",{className:m,style:d},(0,qe.createElement)("figure",{className:"wp-block-media-text__media"},(c[l]||zp)()),(0,qe.createElement)("div",{className:"wp-block-media-text__content"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}};var jp=[Dp,Fp,$p,Gp,Op,Up];var qp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"}));var Wp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"}));var Zp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"}));const Qp=["image","video"],Kp=()=>{};function Jp(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{}}const Yp=(0,qe.forwardRef)((({isSelected:e,isStackedOnMobile:t,...n},o)=>{const a=(0,Tt.useViewportMatch)("small","<");return(0,qe.createElement)(Ke.ResizableBox,{ref:o,showHandle:e&&(!a||!t),...n})}));function Xp({mediaId:e,mediaUrl:t,onSelectMedia:n}){return(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:Qp,accept:"image/*,video/*",onSelect:n}))}function ed({className:e,mediaUrl:t,onSelectMedia:n}){const{createErrorNotice:o}=(0,ut.useDispatch)(Bt.store);return(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Zp}),labels:{title:(0,Je.__)("Media area")},className:e,onSelect:n,accept:"image/*,video/*",allowedTypes:Qp,onError:e=>{o(e,{type:"snackbar"})},disableMediaButtons:t})}var td=(0,qe.forwardRef)((function(e,t){const{className:n,commitWidthChange:o,focalPoint:a,imageFill:r,isSelected:l,isStackedOnMobile:i,mediaAlt:s,mediaId:c,mediaPosition:u,mediaType:m,mediaUrl:p,mediaWidth:d,onSelectMedia:g,onWidthChange:h,enableResize:_}=e,b=!c&&(0,Et.isBlobURL)(p),{toggleSelection:f}=(0,ut.useDispatch)(Ye.store);if(p){const v=()=>{f(!1)},y=(e,t,n)=>{h(parseInt(n.style.width))},k=(e,t,n)=>{f(!0),o(parseInt(n.style.width))},x={right:_&&"left"===u,left:_&&"right"===u},w="image"===m&&r?Jp(p,a):{},C={image:()=>(0,qe.createElement)("img",{src:p,alt:s}),video:()=>(0,qe.createElement)("video",{controls:!0,src:p})};return(0,qe.createElement)(Yp,{as:"figure",className:it()(n,"editor-media-container__resizer",{"is-transient":b}),style:w,size:{width:d+"%"},minWidth:"10%",maxWidth:"100%",enable:x,onResizeStart:v,onResize:y,onResizeStop:k,axis:"x",isSelected:l,isStackedOnMobile:i,ref:t},(0,qe.createElement)(Xp,{onSelectMedia:g,mediaUrl:p,mediaId:c}),(C[m]||Kp)(),b&&(0,qe.createElement)(Ke.Spinner,null),(0,qe.createElement)(ed,{...e}))}return(0,qe.createElement)(ed,{...e})}));const{useBlockEditingMode:nd}=Yt(Ye.privateApis),od=e=>Math.max(15,Math.min(e,85));function ad(e,t){return e?.media_details?.sizes?.[t]?.source_url}var rd=function({attributes:e,isSelected:t,setAttributes:n}){const{focalPoint:o,href:a,imageFill:r,isStackedOnMobile:l,linkClass:i,linkDestination:s,linkTarget:c,mediaAlt:u,mediaId:m,mediaPosition:p,mediaType:d,mediaUrl:g,mediaWidth:h,rel:_,verticalAlignment:b,allowedBlocks:f}=e,v=e.mediaSizeSlug||Bp,{imageSizes:y,image:k}=(0,ut.useSelect)((e=>{const{getSettings:n}=e(Ye.store);return{image:m&&t?e(ct.store).getMedia(m,{context:"view"}):null,imageSizes:n()?.imageSizes}}),[t,m]),x=(0,qe.useRef)(),w=e=>{const{style:t}=x.current.resizable,{x:n,y:o}=e;t.backgroundPosition=`${100*n}% ${100*o}%`},[C,E]=(0,qe.useState)(null),S=function({attributes:{linkDestination:e,href:t},setAttributes:n}){return o=>{if(!o||!o.url)return void n({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0});let a,r;(0,Et.isBlobURL)(o.url)&&(o.type=(0,Et.getBlobTypeByURL)(o.url)),a=o.media_type?"image"===o.media_type?"image":"video":o.type,"image"===a&&(r=o.sizes?.large?.url||o.media_details?.sizes?.large?.source_url);let l=t;e===Tp&&(l=o.url),e===Np&&(l=o.link),n({mediaAlt:o.alt,mediaId:o.id,mediaType:a,mediaUrl:r||o.url,mediaLink:o.link||void 0,href:l,focalPoint:void 0})}}({attributes:e,setAttributes:n}),B=e=>{n({mediaWidth:od(e)}),E(null)},T=it()({"has-media-on-the-right":"right"===p,"is-selected":t,"is-stacked-on-mobile":l,[`is-vertically-aligned-${b}`]:b,"is-image-fill":r}),N=`${C||h}%`,P="right"===p?`1fr ${N}`:`${N} 1fr`,I={gridTemplateColumns:P,msGridColumns:P},M=y.filter((({slug:e})=>ad(k,e))).map((({name:e,slug:t})=>({value:t,label:e}))),z=(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Stack on mobile"),checked:l,onChange:()=>n({isStackedOnMobile:!l})}),"image"===d&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Crop image to fill entire column"),checked:r,onChange:()=>n({imageFill:!r})}),r&&g&&"image"===d&&(0,qe.createElement)(Ke.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Focal point picker"),url:g,value:o,onChange:e=>n({focalPoint:e}),onDragStart:w,onDrag:w}),"image"===d&&(0,qe.createElement)(Ke.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Alternative text"),value:u,onChange:e=>{n({mediaAlt:e})},help:(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,Je.__)("Describe the purpose of the image.")),(0,qe.createElement)("br",null),(0,Je.__)("Leave empty if decorative."))}),"image"===d&&(0,qe.createElement)(Ye.__experimentalImageSizeControl,{onChangeImage:e=>{const t=ad(k,e);if(!t)return null;n({mediaUrl:t,mediaSizeSlug:e})},slug:v,imageSizeOptions:M,isResizable:!1,imageSizeHelp:(0,Je.__)("Select the size of the source image.")}),g&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Media width"),value:C||h,onChange:B,min:15,max:85})),R=(0,Ye.useBlockProps)({className:T,style:I}),H=(0,Ye.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Pp,allowedBlocks:f}),L=nd();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,z),(0,qe.createElement)(Ye.BlockControls,{group:"block"},"default"===L&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentControl,{onChange:e=>{n({verticalAlignment:e})},value:b}),(0,qe.createElement)(Ke.ToolbarButton,{icon:qp,title:(0,Je.__)("Show media on left"),isActive:"left"===p,onClick:()=>n({mediaPosition:"left"})}),(0,qe.createElement)(Ke.ToolbarButton,{icon:Wp,title:(0,Je.__)("Show media on right"),isActive:"right"===p,onClick:()=>n({mediaPosition:"right"})})),"image"===d&&(0,qe.createElement)(Ye.__experimentalImageURLInputUI,{url:a||"",onChangeUrl:e=>{n(e)},linkDestination:s,mediaType:d,mediaUrl:k&&k.source_url,mediaLink:k&&k.link,linkTarget:c,linkClass:i,rel:_})),(0,qe.createElement)("div",{...R},"right"===p&&(0,qe.createElement)("div",{...H}),(0,qe.createElement)(td,{className:"wp-block-media-text__media",onSelectMedia:S,onWidthChange:e=>{E(od(e))},commitWidthChange:B,ref:x,enableResize:"default"===L,focalPoint:o,imageFill:r,isSelected:t,isStackedOnMobile:l,mediaAlt:u,mediaId:m,mediaPosition:p,mediaType:d,mediaUrl:g,mediaWidth:h}),"right"!==p&&(0,qe.createElement)("div",{...H})))};const ld=()=>{};const id={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:n,anchor:o})=>(0,je.createBlock)("core/media-text",{mediaAlt:e,mediaId:n,mediaUrl:t,mediaType:"image",anchor:o})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:n})=>(0,je.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:n})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:n,backgroundType:o,customGradient:a,customOverlayColor:r,gradient:l,id:i,overlayColor:s,style:c,textColor:u,url:m},p)=>{let d={};return a?d={style:{color:{gradient:a}}}:r&&(d={style:{color:{background:r}}}),c?.color?.text&&(d.style={color:{...d.style?.color,text:c.color.text}}),(0,je.createBlock)("core/media-text",{align:e,anchor:n,backgroundColor:s,gradient:l,mediaAlt:t,mediaId:i,mediaType:o,mediaUrl:m,textColor:u,...d},p)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:n,anchor:o})=>(0,je.createBlock)("core/image",{alt:e,id:t,url:n,anchor:o})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:n})=>(0,je.createBlock)("core/video",{id:e,src:t,anchor:n})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:n,focalPoint:o,gradient:a,mediaAlt:r,mediaId:l,mediaType:i,mediaUrl:s,style:c,textColor:u},m)=>{const p={};c?.color?.gradient?p.customGradient=c.color.gradient:c?.color?.background&&(p.customOverlayColor=c.color.background),c?.color?.text&&(p.style={color:{text:c.color.text}});const d={align:e,alt:r,anchor:t,backgroundType:i,dimRatio:s?50:100,focalPoint:o,gradient:a,id:l,overlayColor:n,textColor:u,url:s,...p};return(0,je.createBlock)("core/cover",d,m)}}]};var sd=id;const cd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"none"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",__experimentalRole:"content"},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number",__experimentalRole:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",__experimentalRole:"content"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string",__experimentalRole:"content"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"},allowedBlocks:{type:"array"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:ud}=cd,md={icon:Sp,example:{viewportWidth:601,attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,Je.__)("— Kobayashi Issa (一茶)")}}]},transforms:sd,edit:rd,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:a,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:u,linkClass:m,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Bp,_=g||void 0,b=it()({[`wp-image-${i}`]:i&&"image"===a,[`size-${h}`]:i&&"image"===a});let f=(0,qe.createElement)("img",{src:r,alt:n,className:b||null});p&&(f=(0,qe.createElement)("a",{className:m,href:p,target:d,rel:_},f));const v={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:r})},y=it()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Jp(r,u):{};let x;50!==l&&(x="right"===o?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===o?(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||ld)())):(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:y,style:w})},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(v[a]||ld)()),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},deprecated:jp},pd=()=>Qe({name:ud,metadata:cd,settings:md});var dd=window.wp.dom;const gd=(0,ut.withDispatch)(((e,{clientId:t,attributes:n})=>{const{replaceBlock:o}=e(Ye.store);return{convertToHTML(){o(t,(0,je.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function({attributes:e,convertToHTML:t,clientId:n}){const{originalName:o,originalUndelimitedContent:a}=e,r=!!a,l=(0,ut.useSelect)((e=>{const{canInsertBlockType:t,getBlockRootClientId:o}=e(Ye.store);return t("core/html",o(n))}),[n]),i=[];let s;return r&&l?(s=(0,Je.sprintf)((0,Je.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),o),i.push((0,qe.createElement)(Ke.Button,{key:"convert",onClick:t,variant:"primary"},(0,Je.__)("Keep as HTML")))):s=(0,Je.sprintf)((0,Je.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:"has-warning"})},(0,qe.createElement)(Ye.Warning,{actions:i},s),(0,qe.createElement)(qe.RawHTML,null,(0,dd.safeHTML)(a)))}));var hd=gd;const _d={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn’t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},{name:bd}=_d,fd={name:bd,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,n=t?(0,je.getBlockType)(t):void 0;return n?n.settings.title||t:""}},edit:hd,save:function({attributes:e}){return(0,qe.createElement)(qe.RawHTML,null,e.originalContent)}},vd=()=>Qe({name:bd,metadata:_d,settings:fd});var yd=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"}));const kd=(0,Je.__)("Read more");var xd={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:n}=e.dataset,o={};return t&&(o.customText=t),""===n&&(o.noTeaser=!0),(0,je.createBlock)("core/more",o)}}]};const wd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1},editorStyle:"wp-block-more-editor"},{name:Cd}=wd,Ed={icon:yd,example:{},__experimentalLabel(e,{context:t}){if("accessibility"===t)return e.customText},transforms:xd,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:n,setAttributes:o}){const a={width:`${(e||kd).length+1.2}em`};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:e=>e?(0,Je.__)("The excerpt is hidden."):(0,Je.__)("The excerpt is visible.")}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)("input",{"aria-label":(0,Je.__)("“Read more” link text"),type:"text",value:e,placeholder:kd,onChange:e=>{o({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:({keyCode:e})=>{e===un.ENTER&&n([(0,je.createBlock)((0,je.getDefaultBlockName)())])},style:a})))},save:function({attributes:{customText:e,noTeaser:t}}){const n=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",o=t?"\x3c!--noteaser--\x3e":"";return(0,qe.createElement)(qe.RawHTML,null,[n,o].filter(Boolean).join("\n"))}},Sd=()=>Qe({name:Cd,metadata:wd,settings:Ed});var Bd=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Td=window.wp.a11y;var Nd=function({icon:e,size:t=24,...n}){return(0,qe.cloneElement)(e,{width:t,height:t,...n})};var Pd=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));const Id={name:"core/navigation-link"},Md=["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu","core/loginout"],zd=["core/navigation-link/page","core/navigation-link"],Rd=["postType","wp_navigation",{per_page:100,status:["publish","draft"],order:"desc",orderby:"date"}];function Hd(e){const t=(0,ct.useResourcePermissions)("navigation",e);return(0,ut.useSelect)((n=>{const{canCreate:o,canUpdate:a,canDelete:r,isResolving:l,hasResolved:i}=t,{navigationMenus:s,isResolvingNavigationMenus:c,hasResolvedNavigationMenus:u}=function(e){const{getEntityRecords:t,hasFinishedResolution:n,isResolving:o}=e(ct.store);return{navigationMenus:t(...Rd),isResolvingNavigationMenus:o("getEntityRecords",Rd),hasResolvedNavigationMenus:n("getEntityRecords",Rd)}}(n),{navigationMenu:m,isNavigationMenuResolved:p,isNavigationMenuMissing:d}=function(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};const{getEntityRecord:n,getEditedEntityRecord:o,hasFinishedResolution:a}=e(ct.store),r=["postType","wp_navigation",t],l=n(...r),i=o(...r),s=a("getEditedEntityRecord",r),c="publish"===i.status||"draft"===i.status;return{isNavigationMenuResolved:s,isNavigationMenuMissing:s&&(!l||!c),navigationMenu:c?i:null}}(n,e);return{navigationMenus:s,isResolvingNavigationMenus:c,hasResolvedNavigationMenus:u,navigationMenu:m,isNavigationMenuResolved:p,isNavigationMenuMissing:d,canSwitchNavigationMenu:e?s?.length>1:s?.length>0,canUserCreateNavigationMenu:o,isResolvingCanUserCreateNavigationMenu:l,hasResolvedCanUserCreateNavigationMenu:i,canUserUpdateNavigationMenu:a,hasResolvedCanUserUpdateNavigationMenu:e?i:void 0,canUserDeleteNavigationMenu:r,hasResolvedCanUserDeleteNavigationMenu:e?i:void 0}}),[e,t])}function Ld(e){const{records:t,isResolving:n,hasResolved:o}=(0,ct.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:a,isResolving:r,hasResolved:l}=(0,ct.useEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:i,hasResolved:s}=(0,ct.useEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:a,isResolvingPages:r,hasResolvedPages:l,hasPages:!(!l||!a?.length),menus:t,isResolvingMenus:n,hasResolvedMenus:o,hasMenus:!(!o||!t?.length),menuItems:i,hasResolvedMenuItems:s}}var Ad=({isVisible:e=!0})=>(0,qe.createElement)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__preview"},(0,qe.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},(0,qe.createElement)(Nd,{icon:Bd}),(0,Je.__)("Navigation")));var Vd=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));var Dd=function({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:n,onCreateNew:o,actionLabel:a,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:l}){const i=(0,Je.__)("Create from '%s'"),[s,c]=(0,qe.useState)(!1);a=a||i;const{menus:u}=Ld(),{navigationMenus:m,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:d,canUserCreateNavigationMenu:g,canSwitchNavigationMenu:h}=Hd(),[_]=(0,ct.useEntityProp)("postType","wp_navigation","title"),b=(0,qe.useMemo)((()=>m?.map((({id:e,title:t,status:n},o)=>{const r=function(e,t,n){return e?.rendered?"publish"===n?(0,On.decodeEntities)(e?.rendered):(0,Je.sprintf)((0,Je.__)("%1$s (%2$s)"),(0,On.decodeEntities)(e?.rendered),n):(0,Je.sprintf)((0,Je.__)("(no title %s)"),t)}(t,o+1,n);return{value:e,label:r,ariaLabel:(0,Je.sprintf)(a,r)}}))||[]),[m,a]),f=!!m?.length,v=!!u?.length,y=!!h,k=!!g,x=f&&!e,w=!f&&d,C=d&&null===e;let E="";E=s||p?(0,Je.__)("Loading …"):x||w||C?(0,Je.__)("Choose or create a Navigation menu"):_,(0,qe.useEffect)((()=>{s&&(r||l)&&c(!1)}),[d,r,g,l,s,C,w,x]);const S=(0,qe.createElement)(Ke.DropdownMenu,{label:E,icon:Vd,toggleProps:{isSmall:!0}},(({onClose:a})=>(0,qe.createElement)(qe.Fragment,null,y&&f&&(0,qe.createElement)(Ke.MenuGroup,{label:(0,Je.__)("Menus")},(0,qe.createElement)(Ke.MenuItemsChoice,{value:e,onSelect:e=>{c(!0),t(e),a()},choices:b,disabled:s})),k&&v&&(0,qe.createElement)(Ke.MenuGroup,{label:(0,Je.__)("Import Classic Menus")},u?.map((e=>{const t=(0,On.decodeEntities)(e.name);return(0,qe.createElement)(Ke.MenuItem,{onClick:()=>{c(!0),n(e),a()},key:e.id,"aria-label":(0,Je.sprintf)(i,t),disabled:s},t)}))),g&&(0,qe.createElement)(Ke.MenuGroup,{label:(0,Je.__)("Tools")},(0,qe.createElement)(Ke.MenuItem,{disabled:s,onClick:()=>{a(),o(),c(!0)}},(0,Je.__)("Create new menu"))))));return S};function Fd({isSelected:e,currentMenuId:t,clientId:n,canUserCreateNavigationMenu:o=!1,isResolvingCanUserCreateNavigationMenu:a,onSelectNavigationMenu:r,onSelectClassicMenu:l,onCreateEmpty:i}){const{isResolvingMenus:s,hasResolvedMenus:c}=Ld();(0,qe.useEffect)((()=>{e&&(s&&(0,Td.speak)((0,Je.__)("Loading Navigation block setup options.")),c&&(0,Td.speak)((0,Je.__)("Navigation block setup options ready.")))}),[c,s,e]);const u=s&&a;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.Placeholder,{className:"wp-block-navigation-placeholder"},(0,qe.createElement)(Ad,{isVisible:!e}),(0,qe.createElement)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__controls"},(0,qe.createElement)("div",{className:"wp-block-navigation-placeholder__actions"},(0,qe.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},(0,qe.createElement)(Nd,{icon:Bd})," ",(0,Je.__)("Navigation")),(0,qe.createElement)("hr",null),u&&(0,qe.createElement)(Ke.Spinner,null),(0,qe.createElement)(Dd,{currentMenuId:t,clientId:n,onSelectNavigationMenu:r,onSelectClassicMenu:l}),(0,qe.createElement)("hr",null),o&&(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:i},(0,Je.__)("Start empty"))))))}var $d=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));function Gd({icon:e}){return"menu"===e?(0,qe.createElement)(Nd,{icon:$d}):(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,qe.createElement)(We.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,qe.createElement)(We.Rect,{x:"4",y:"15",width:"16",height:"1.5"}))}function Od({children:e,id:t,isOpen:n,isResponsive:o,onToggle:a,isHiddenByDefault:r,overlayBackgroundColor:l,overlayTextColor:i,hasIcon:s,icon:c}){if(!o)return e;const u=it()("wp-block-navigation__responsive-container",{"has-text-color":!!i.color||!!i?.class,[(0,Ye.getColorClassName)("color",i?.slug)]:!!i?.slug,"has-background":!!l.color||l?.class,[(0,Ye.getColorClassName)("background-color",l?.slug)]:!!l?.slug,"is-menu-open":n,"hidden-by-default":r}),m={color:!i?.slug&&i?.color,backgroundColor:!l?.slug&&l?.color&&l.color},p=it()("wp-block-navigation__responsive-container-open",{"always-shown":r}),d=`${t}-modal`,g={className:"wp-block-navigation__responsive-dialog",...n&&{role:"dialog","aria-modal":!0,"aria-label":(0,Je.__)("Menu")}};return(0,qe.createElement)(qe.Fragment,null,!n&&(0,qe.createElement)(Ke.Button,{"aria-haspopup":"true","aria-label":s&&(0,Je.__)("Open menu"),className:p,onClick:()=>a(!0)},s&&(0,qe.createElement)(Gd,{icon:c}),!s&&(0,Je.__)("Menu")),(0,qe.createElement)("div",{className:u,style:m,id:d},(0,qe.createElement)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1"},(0,qe.createElement)("div",{...g},(0,qe.createElement)(Ke.Button,{className:"wp-block-navigation__responsive-container-close","aria-label":s&&(0,Je.__)("Close menu"),onClick:()=>a(!1)},s&&(0,qe.createElement)(Nd,{icon:Pd}),!s&&(0,Je.__)("Close")),(0,qe.createElement)("div",{className:"wp-block-navigation__responsive-container-content",id:`${d}-content`},e)))))}function Ud({clientId:e,hasCustomPlaceholder:t,orientation:n,templateLock:o}){const{isImmediateParentOfSelectedBlock:a,selectedBlockHasChildren:r,isSelected:l}=(0,ut.useSelect)((t=>{const{getBlockCount:n,hasSelectedInnerBlock:o,getSelectedBlockClientId:a}=t(Ye.store),r=a();return{isImmediateParentOfSelectedBlock:o(e,!1),selectedBlockHasChildren:!!n(r),isSelected:r===e}}),[e]),[i,s,c]=(0,ct.useEntityBlockEditor)("postType","wp_navigation"),u=(0,qe.useMemo)((()=>i.every((({name:e})=>"core/navigation-link"===e||"core/navigation-submenu"===e||"core/page-list"===e))),[i]),m=l||a&&!r,p=(0,qe.useMemo)((()=>(0,qe.createElement)(Ad,null)),[]),d=!t&&!!!i?.length&&!l,g=(0,Ye.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:i,onInput:s,onChange:c,allowedBlocks:Md,prioritizedInserterBlocks:zd,__experimentalDefaultBlock:Id,__experimentalDirectInsert:u,orientation:n,templateLock:o,renderAppender:!!(l||a&&!r||m)&&Ye.InnerBlocks.ButtonBlockAppender,placeholder:d?p:void 0});return(0,qe.createElement)("div",{...g})}function jd(){const[e,t]=(0,ct.useEntityProp)("postType","wp_navigation","title");return(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Menu name"),value:e,onChange:t})}const qd=(e,t,n)=>{if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e){if(!t.hasOwnProperty(o))return!1;if(n&&n(o,e))return!0;if(!qd(e[o],t[o],n))return!1}return!0}return!1},Wd={};function Zd({blocks:e,createNavigationMenu:t,hasSelection:n}){const o=(0,qe.useRef)();(0,qe.useEffect)((()=>{o?.current||(o.current=e)}),[e]);const a=function(e,t){return!qd(e,t,((e,t)=>{if("core/page-list"===t?.name&&"innerBlocks"===e)return!0}))}(o?.current,e),r=(0,qe.useMemo)((()=>e.every((({name:e})=>"core/navigation-link"===e||"core/navigation-submenu"===e||"core/page-list"===e))),[e]),l=(0,qe.useContext)(Ke.Disabled.Context),i=(0,Ye.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:!!n&&void 0,allowedBlocks:Md,__experimentalDefaultBlock:Id,__experimentalDirectInsert:r}),{isSaving:s,hasResolvedAllNavigationMenus:c}=(0,ut.useSelect)((e=>{if(l)return Wd;const{hasFinishedResolution:t,isSavingEntityRecord:n}=e(ct.store);return{isSaving:n("postType","wp_navigation"),hasResolvedAllNavigationMenus:t("getEntityRecords",Rd)}}),[l]);(0,qe.useEffect)((()=>{!l&&!s&&c&&n&&a&&t(null,e)}),[e,t,l,s,c,a,n]);const u=s?Ke.Disabled:"div";return(0,qe.createElement)(u,{...i})}function Qd({onDelete:e}){const[t,n]=(0,qe.useState)(!1),o=(0,ct.useEntityId)("postType","wp_navigation"),[a]=(0,ct.useEntityProp)("postType","wp_navigation","title"),{deleteEntityRecord:r}=(0,ut.useDispatch)(ct.store);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.Button,{className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{n(!0)}},(0,Je.__)("Delete menu")),t&&(0,qe.createElement)(Ke.Modal,{title:(0,Je.sprintf)((0,Je.__)("Delete %s"),a),onRequestClose:()=>n(!1)},(0,qe.createElement)("p",null,(0,Je.__)("Are you sure you want to delete this navigation menu?")),(0,qe.createElement)(Ke.__experimentalHStack,{justify:"right"},(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:()=>{n(!1)}},(0,Je.__)("Cancel")),(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:()=>{r("postType","wp_navigation",o,{force:!0}),e(a)}},(0,Je.__)("Confirm")))))}var Kd=function({name:e,message:t=""}={}){const n=(0,qe.useRef)(),{createWarningNotice:o,removeNotice:a}=(0,ut.useDispatch)(Bt.store);return[(0,qe.useCallback)((a=>{n.current||(n.current=e,o(a||t,{id:n.current,type:"snackbar"}))}),[n,o,t,e]),(0,qe.useCallback)((()=>{n.current&&(a(n.current),n.current=null)}),[n,a])]};function Jd({setAttributes:e,hasIcon:t,icon:n}){return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show icon button"),help:(0,Je.__)("Configure the visual appearance of the button opening the overlay menu."),onChange:t=>e({hasIcon:t}),checked:t}),(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Icon"),value:n,onChange:t=>e({icon:t}),isBlock:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,Je.__)("handle"),label:(0,qe.createElement)(Gd,{icon:"handle"})}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,Je.__)("menu"),label:(0,qe.createElement)(Gd,{icon:"menu"})})))}function Yd(e){if(!e)return null;const t=Xd(function(e,t="id",n="parent"){const o=Object.create(null),a=[];for(const r of e)o[r[t]]={...r,children:[]},r[n]?(o[r[n]]=o[r[n]]||{},o[r[n]].children=o[r[n]].children||[],o[r[n]].children.push(o[r[t]])):a.push(o[r[t]]);return a}(e));return(0,Zl.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",t,e)}function Xd(e,t=0){let n={};const o=[...e].sort(((e,t)=>e.menu_order-t.menu_order)),a=o.map((e=>{if("block"===e.type){const[t]=(0,je.parse)(e.content.raw);return t||(0,je.createBlock)("core/freeform",{content:e.content})}const o=e.children?.length?"core/navigation-submenu":"core/navigation-link",a=function({title:e,xfn:t,classes:n,attr_title:o,object:a,object_id:r,description:l,url:i,type:s,target:c},u,m){a&&"post_tag"===a&&(a="tag");return{label:e?.rendered||"",...a?.length&&{type:a},kind:s?.replace("_","-")||"custom",url:i||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...n?.length&&n.join(" ").trim()&&{className:n.join(" ").trim()},...o?.length&&{title:o},...r&&"custom"!==a&&{id:r},...l?.length&&{description:l},..."_blank"===c&&{opensInNewTab:!0},..."core/navigation-submenu"===u&&{isTopLevelItem:0===m},..."core/navigation-link"===u&&{isTopLevelLink:0===m}}}(e,o,t),{innerBlocks:r=[],mapping:l={}}=e.children?.length?Xd(e.children,t+1):{};n={...n,...l};const i=(0,je.createBlock)(o,a,r);return n[e.id]=i.clientId,i}));return{innerBlocks:a,mapping:n}}const eg="success",tg="error",ng="pending";let og=null;var ag=function(e){const t=(0,ut.useRegistry)(),{editEntityRecord:n}=(0,ut.useDispatch)(ct.store),[o,a]=(0,qe.useState)("idle"),[r,l]=(0,qe.useState)(null),i=(0,qe.useCallback)((async(o,a,r="publish")=>{let l,i;try{i=await t.resolveSelect(ct.store).getMenuItems({menus:o,per_page:-1,context:"view"})}catch(e){throw new Error((0,Je.sprintf)((0,Je.__)('Unable to fetch classic menu "%s" from API.'),a),{cause:e})}if(null===i)throw new Error((0,Je.sprintf)((0,Je.__)('Unable to fetch classic menu "%s" from API.'),a));const{innerBlocks:s}=Yd(i);try{l=await e(a,s,r),await n("postType","wp_navigation",l.id,{status:"publish"},{throwOnError:!0})}catch(e){throw new Error((0,Je.sprintf)((0,Je.__)('Unable to create Navigation Menu "%s".'),a),{cause:e})}return l}),[e,n,t]);return{convert:(0,qe.useCallback)((async(e,t,n)=>{if(og!==e)return og=e,e&&t?(a(ng),l(null),await i(e,t,n).then((e=>(a(eg),og=null,e))).catch((e=>{throw l(e?.message),a(tg),og=null,new Error((0,Je.sprintf)((0,Je.__)('Unable to create Navigation Menu "%s".'),t),{cause:e})}))):(l("Unable to convert menu. Missing menu details."),void a(tg))}),[i]),status:o,error:r}};function rg(e,t){return e&&t?e+"//"+t:null}const lg=["postType","wp_navigation",{status:"draft",per_page:-1}],ig=["postType","wp_navigation",{per_page:-1,status:"publish"}];function sg(e){const t=(0,qe.useContext)(Ke.Disabled.Context),n=function(e){return(0,ut.useSelect)((t=>{if(!e)return;const{getBlock:n,getBlockParentsByBlockName:o}=t(Ye.store),a=o(e,"core/template-part",!0);if(!a?.length)return;const r=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),{getEditedEntityRecord:l}=t(ct.store);for(const e of a){const t=n(e),{theme:o,slug:a}=t.attributes,i=l("postType","wp_template_part",rg(o,a));if(i?.area)return r.find((e=>"uncategorized"!==e.area&&e.area===i.area))?.label}}),[e])}(t?void 0:e),o=(0,ut.useRegistry)();return(0,qe.useCallback)((async()=>{if(t)return"";const{getEntityRecords:e}=o.resolveSelect(ct.store),[a,r]=await Promise.all([e(...lg),e(...ig)]),l=n?(0,Je.sprintf)((0,Je.__)("%s navigation"),n):(0,Je.__)("Navigation"),i=[...a,...r].reduce(((e,t)=>t?.title?.raw?.startsWith(l)?e+1:e),0);return(i>0?`${l} ${i+1}`:l)||""}),[t,n,o])}const cg="success",ug="error",mg="pending",pg="idle";const dg=[];function gg(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function hg(e,t,n){if(!e)return;t(gg(e).color);let o=e,a=gg(o).backgroundColor;for(;"rgba(0, 0, 0, 0)"===a&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,a=gg(o).backgroundColor;n(a)}function _g(e,t){const{textColor:n,customTextColor:o,backgroundColor:a,customBackgroundColor:r,overlayTextColor:l,customOverlayTextColor:i,overlayBackgroundColor:s,customOverlayBackgroundColor:c,style:u}=e,m={};return t&&i?m.customTextColor=i:t&&l?m.textColor=l:o?m.customTextColor=o:n?m.textColor=n:u?.color?.text&&(m.customTextColor=u.color.text),t&&c?m.customBackgroundColor=c:t&&s?m.backgroundColor=s:r?m.customBackgroundColor=r:a?m.backgroundColor=a:u?.color?.background&&(m.customTextColor=u.color.background),m}function bg(e){return{className:it()("wp-block-navigation__submenu-container",{"has-text-color":!(!e.textColor&&!e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!(!e.backgroundColor&&!e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}var fg=({className:e="",disabled:t,isMenuItem:n=!1})=>{let o=Ke.Button;return n&&(o=Ke.MenuItem),(0,qe.createElement)(o,{variant:"link",disabled:t,className:e,href:(0,st.addQueryArgs)("edit.php",{post_type:"wp_navigation"})},(0,Je.__)("Manage menus"))};var vg=function({onCreateNew:e}){return(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Navigation menu has been deleted or is unavailable. "),(0,qe.createElement)(Ke.Button,{onClick:e,variant:"link"},(0,Je.__)("Create a new menu?")))};var yg=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"}));var kg=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));var xg=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const wg={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},Cg=["core/navigation-link","core/navigation-submenu"];function Eg({block:e,onClose:t,expandedState:n,expand:o,setInsertedBlock:a}){const{insertBlock:r,replaceBlock:l,replaceInnerBlocks:i}=(0,ut.useDispatch)(Ye.store),s=e.clientId,c=!Cg.includes(e.name);return(0,qe.createElement)(Ke.MenuItem,{icon:yg,disabled:c,onClick:()=>{const c=(0,je.createBlock)("core/navigation-link");if("core/navigation-submenu"===e.name)r(c,e.innerBlocks.length,s,false);else{const t=(0,je.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(s,t),i(t.clientId,[c],false)}a(c),n[e.clientId]||o(e.clientId),t()}},(0,Je.__)("Add submenu link"))}function Sg(e){const{block:t}=e,{clientId:n}=t,{moveBlocksDown:o,moveBlocksUp:a,removeBlocks:r}=(0,ut.useDispatch)(Ye.store),l=(0,Je.sprintf)((0,Je.__)("Remove %s"),(0,Ye.BlockTitle)({clientId:n,maximumLength:25})),i=(0,ut.useSelect)((e=>{const{getBlockRootClientId:t}=e(Ye.store);return t(n)}),[n]);return(0,qe.createElement)(Ke.DropdownMenu,{icon:Vd,label:(0,Je.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:wg,noIcons:!0,...e},(({onClose:s})=>(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.MenuGroup,null,(0,qe.createElement)(Ke.MenuItem,{icon:kg,onClick:()=>{a([n],i),s()}},(0,Je.__)("Move up")),(0,qe.createElement)(Ke.MenuItem,{icon:xg,onClick:()=>{o([n],i),s()}},(0,Je.__)("Move down")),(0,qe.createElement)(Eg,{block:t,onClose:s,expanded:!0,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock})),(0,qe.createElement)(Ke.MenuGroup,null,(0,qe.createElement)(Ke.MenuItem,{onClick:()=>{r([n],!1),s()}},l)))))}var Bg=window.wp.escapeHtml;const Tg=(e={},t,n={})=>{const{label:o="",kind:a="",type:r=""}=n,{title:l="",url:i="",opensInNewTab:s,id:c,kind:u=a,type:m=r}=e,p=l.replace(/http(s?):\/\//gi,""),d=i.replace(/http(s?):\/\//gi,""),g=l&&l!==o&&p!==d?(0,Bg.escapeHTML)(l):o||(0,Bg.escapeHTML)(d),h="post_tag"===m?"tag":m.replace("-","_"),_=["post","page","tag","category"].indexOf(h)>-1,b=!u&&!_||"custom"===u?"custom":u;t({...i&&{url:encodeURI((0,st.safeDecodeURI)(i))},...g&&{label:g},...void 0!==s&&{opensInNewTab:s},...c&&Number.isInteger(c)&&{id:c},...b&&{kind:b},...h&&"URL"!==h&&{type:h}})};function Ng(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{}}}function Pg({clientId:e}){const{getBlock:t,blockTransforms:n}=(0,ut.useSelect)((t=>{const{getBlock:n,getBlockRootClientId:o,getBlockTransformItems:a}=t(Ye.store);return{getBlock:n,blockTransforms:a(n(e),o(e))}}),[e]),{replaceBlock:o}=(0,ut.useDispatch)(Ye.store),a=["core/page-list","core/site-logo","core/social-links","core/search"],r=n.filter((e=>a.includes(e.name)));return r?.length&&e?(0,qe.createElement)("div",{className:"link-control-transform"},(0,qe.createElement)("h3",{className:"link-control-transform__subheading"},(0,Je.__)("Transform")),(0,qe.createElement)("div",{className:"link-control-transform__items"},r.map(((n,a)=>(0,qe.createElement)(Ke.Button,{key:`transform-${a}`,onClick:()=>o(e,(0,je.switchToBlockType)(t(e),n.name)),className:"link-control-transform__item"},(0,qe.createElement)(Ye.BlockIcon,{icon:n.icon}),n.title))))):null}function Ig(e){const{saveEntityRecord:t}=(0,ut.useDispatch)(ct.store),n=(0,ct.useResourcePermissions)("pages"),o=(0,ct.useResourcePermissions)("posts");const{label:a,url:r,opensInNewTab:l,type:i,kind:s}=e.link;let c=!1;i&&"page"!==i?"post"===i&&(c=o.canCreate):c=n.canCreate;const u=(0,qe.useMemo)((()=>({url:r,opensInNewTab:l,title:a&&(0,dd.__unstableStripHTML)(a)})),[a,l,r]);return(0,qe.createElement)(Ke.Popover,{placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0},(0,qe.createElement)(Ye.__experimentalLinkControl,{hasTextControl:!0,hasRichPreviews:!0,className:e.className,value:u,showInitialSuggestions:!0,withCreateSuggestion:c,createSuggestion:async function(n){const o=e.link.type||"page",a=await t("postType",o,{title:n,status:"draft"});return{id:a.id,type:o,title:(0,On.decodeEntities)(a.title.rendered),url:a.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===i?(0,Je.__)("Create draft post: <mark>%s</mark>"):(0,Je.__)("Create draft page: <mark>%s</mark>"),(0,qe.createInterpolateElement)((0,Je.sprintf)(t,e),{mark:(0,qe.createElement)("mark",null)})},noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:Ng(i,s),onChange:e.onChange,onRemove:e.onRemove,onCancel:e.onCancel,renderControlBottom:r?null:()=>(0,qe.createElement)(Pg,{clientId:e.clientId})}))}const Mg=(0,Je.__)("Switch to '%s'"),zg=["core/navigation-link","core/navigation-submenu"],{PrivateListView:Rg}=Yt(Ye.privateApis);function Hg({block:e,insertedBlock:t,setInsertedBlock:n}){const{updateBlockAttributes:o}=(0,ut.useDispatch)(Ye.store),a=zg?.includes(t?.name),r=t?.clientId===e.clientId;if(!(a&&r))return null;return(0,qe.createElement)(Ig,{clientId:t?.clientId,link:t?.attributes,onClose:()=>{n(null)},onChange:e=>{var a;Tg(e,(a=t?.clientId,e=>{a&&o(a,e)}),t?.attributes),n(null)},onCancel:()=>{n(null)}})}const Lg=({clientId:e,currentMenuId:t,isLoading:n,isNavigationMenuMissing:o,onCreateNew:a})=>{const r=(0,ut.useSelect)((t=>!!t(Ye.store).getBlockCount(e)),[e]),{navigationMenu:l}=Hd(t);if(t&&o)return(0,qe.createElement)(vg,{onCreateNew:a});if(n)return(0,qe.createElement)(Ke.Spinner,null);const i=l?(0,Je.sprintf)((0,Je.__)("Structure for navigation menu: %s"),l?.title?.rendered||(0,Je.__)("Untitled menu")):(0,Je.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,qe.createElement)("div",{className:"wp-block-navigation__menu-inspector-controls"},!r&&(0,qe.createElement)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message"},(0,Je.__)("This navigation menu is empty.")),(0,qe.createElement)(Rg,{rootClientId:e,isExpanded:!0,description:i,showAppender:!0,blockSettingsMenu:Sg,additionalBlockContent:Hg}))};var Ag=e=>{const{createNavigationMenuIsSuccess:t,createNavigationMenuIsError:n,currentMenuId:o=null,onCreateNew:a,onSelectClassicMenu:r,onSelectNavigationMenu:l,isManageMenusButtonDisabled:i,blockEditingMode:s}=e;return(0,qe.createElement)(Ye.InspectorControls,{group:"list"},(0,qe.createElement)(Ke.PanelBody,{title:null},(0,qe.createElement)(Ke.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header"},(0,qe.createElement)(Ke.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2},(0,Je.__)("Menu")),"default"===s&&(0,qe.createElement)(Dd,{currentMenuId:o,onSelectClassicMenu:r,onSelectNavigationMenu:l,onCreateNew:a,createNavigationMenuIsSuccess:t,createNavigationMenuIsError:n,actionLabel:Mg,isManageMenusButtonDisabled:i})),(0,qe.createElement)(Lg,{...e})))};const{useBlockEditingMode:Vg}=Yt(Ye.privateApis);var Dg=(0,Ye.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function({attributes:e,setAttributes:t,clientId:n,isSelected:o,className:a,backgroundColor:r,setBackgroundColor:l,textColor:i,setTextColor:s,overlayBackgroundColor:c,setOverlayBackgroundColor:u,overlayTextColor:m,setOverlayTextColor:p,hasSubmenuIndicatorSetting:d=!0,customPlaceholder:g=null}){const{openSubmenusOnClick:h,overlayMenu:_,showSubmenuIcon:b,templateLock:f,layout:{justifyContent:v,orientation:y="horizontal",flexWrap:k="wrap"}={},hasIcon:x,icon:w="handle"}=e,C=e.ref,E=(0,qe.useCallback)((e=>{t({ref:e})}),[t]),S=`navigationMenu/${C}`,B=(0,Ye.__experimentalUseHasRecursion)(S),T=Vg(),{menus:N}=Ld(),[P,I]=Kd({name:"block-library/core/navigation/status"}),[M,z]=Kd({name:"block-library/core/navigation/classic-menu-conversion"}),[R,H]=Kd({name:"block-library/core/navigation/permissions/update"}),{create:L,status:A,error:V,value:D,isPending:F,isSuccess:$,isError:G}=function(e){const[t,n]=(0,qe.useState)(pg),[o,a]=(0,qe.useState)(null),[r,l]=(0,qe.useState)(null),{saveEntityRecord:i,editEntityRecord:s}=(0,ut.useDispatch)(ct.store),c=sg(e),u=(0,qe.useCallback)((async(e=null,t=[],o)=>{if(e&&"string"!=typeof e)throw l("Invalid title supplied when creating Navigation Menu."),n(ug),new Error("Value of supplied title argument was not a string.");n(mg),a(null),l(null),e||(e=await c().catch((e=>{throw l(e?.message),n(ug),new Error("Failed to create title when saving new Navigation Menu.",{cause:e})})));const r={title:e,content:(0,je.serialize)(t),status:o};return i("postType","wp_navigation",r).then((e=>(a(e),n(cg),"publish"!==o&&s("postType","wp_navigation",e.id,{status:"publish"}),e))).catch((e=>{throw l(e?.message),n(ug),new Error("Unable to save new Navigation Menu",{cause:e})}))}),[i,s,c]);return{create:u,status:t,value:o,error:r,isIdle:t===pg,isPending:t===mg,isSuccess:t===cg,isError:t===ug}}(n),O=()=>{L("")},{hasUncontrolledInnerBlocks:U,uncontrolledInnerBlocks:j,isInnerBlockSelected:q,innerBlocks:W}=function(e){return(0,ut.useSelect)((t=>{const{getBlock:n,getBlocks:o,hasSelectedInnerBlock:a}=t(Ye.store),r=n(e).innerBlocks,l=!!r?.length,i=l?dg:o(e);return{innerBlocks:l?r:i,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:r,controlledInnerBlocks:i,isInnerBlockSelected:a(e,!0)}}),[e])}(n),Z=!!W.find((e=>"core/navigation-submenu"===e.name)),{replaceInnerBlocks:Q,selectBlock:K,__unstableMarkNextChangeAsNotPersistent:J}=(0,ut.useDispatch)(Ye.store),[Y,X]=(0,qe.useState)(!1),[ee,te]=(0,qe.useState)(!1),{hasResolvedNavigationMenus:ne,isNavigationMenuResolved:oe,isNavigationMenuMissing:ae,canUserUpdateNavigationMenu:re,hasResolvedCanUserUpdateNavigationMenu:le,canUserDeleteNavigationMenu:ie,hasResolvedCanUserDeleteNavigationMenu:se,canUserCreateNavigationMenu:ce,isResolvingCanUserCreateNavigationMenu:ue,hasResolvedCanUserCreateNavigationMenu:me}=Hd(C),pe=ne&&ae,{convert:de,status:ge,error:he}=ag(L),_e=ge===ng,be=(0,qe.useCallback)(((e,t={focusNavigationBlock:!1})=>{const{focusNavigationBlock:o}=t;E(e),o&&K(n)}),[K,n,E]),fe=!ae&&oe,ve=U&&!fe,{getNavigationFallbackId:ye}=Yt((0,ut.useSelect)(ct.store)),ke=C||ve?null:ye();(0,qe.useEffect)((()=>{C||ve||!ke||(J(),E(ke))}),[C,E,ve,ke,J]);const xe=(0,qe.useRef)(),we="nav",Ce=!C&&!F&&!_e&&ne&&0===N?.length&&!U,Ee=!ne||F||_e||!(!C||fe||_e),Se=e.style?.typography?.textDecoration,Be=(0,Ye.__experimentalUseBlockOverlayActive)(n),Te="never"!==_,Ne=(0,Ye.useBlockProps)({ref:xe,className:it()(a,{"items-justified-right":"right"===v,"items-justified-space-between":"space-between"===v,"items-justified-left":"left"===v,"items-justified-center":"center"===v,"is-vertical":"vertical"===y,"no-wrap":"nowrap"===k,"is-responsive":Te,"has-text-color":!!i.color||!!i?.class,[(0,Ye.getColorClassName)("color",i?.slug)]:!!i?.slug,"has-background":!!r.color||r.class,[(0,Ye.getColorClassName)("background-color",r?.slug)]:!!r?.slug,[`has-text-decoration-${Se}`]:Se,"block-editor-block-content-overlay":Be}),style:{color:!i?.slug&&i?.color,backgroundColor:!r?.slug&&r?.color}}),Pe="web"===qe.Platform.OS,[Ie,Me]=(0,qe.useState)(),[ze,Re]=(0,qe.useState)(),[He,Le]=(0,qe.useState)(),[Ae,Ve]=(0,qe.useState)(),De=async e=>{const t=await de(e.id,e.name,"draft");t&&be(t.id,{focusNavigationBlock:!0})},Fe=e=>{be(e)};(0,qe.useEffect)((()=>{I(),F&&(0,Td.speak)((0,Je.__)("Creating Navigation Menu.")),$&&(be(D?.id,{focusNavigationBlock:!0}),P((0,Je.__)("Navigation Menu successfully created."))),G&&P((0,Je.__)("Failed to create Navigation Menu."))}),[A,V,D?.id,G,$,F,be,I,P]),(0,qe.useEffect)((()=>{z(),ge===ng&&(0,Td.speak)((0,Je.__)("Classic menu importing.")),ge===eg&&M((0,Je.__)("Classic menu imported successfully.")),ge===tg&&M((0,Je.__)("Classic menu import failed."))}),[ge,he,z,M]),(0,qe.useEffect)((()=>{if(!Pe)return;hg(xe.current,Re,Me);const e=xe.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');e&&(m.color||c.color)&&hg(e,Ve,Le)}),[Pe,m.color,c.color]),(0,qe.useEffect)((()=>{o||q||H(),(o||q)&&(C&&!pe&&le&&!re&&R((0,Je.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),C||!me||ce||R((0,Je.__)("You do not have permission to create Navigation Menus.")))}),[o,q,re,le,ce,me,C,H,R,pe]);const $e=ce||re,Ge=it()("wp-block-navigation__overlay-menu-preview",{open:ee}),Oe=(0,Ye.__experimentalUseMultipleOriginColorsAndGradients)(),Ue=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,d&&(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Display")},Te&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.Button,{className:Ge,onClick:()=>{te(!ee)}},x&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Gd,{icon:w}),(0,qe.createElement)(Nd,{icon:Pd})),!x&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("span",null,(0,Je.__)("Menu")),(0,qe.createElement)("span",null,(0,Je.__)("Close")))),ee&&(0,qe.createElement)(Jd,{setAttributes:t,hasIcon:x,icon:w})),(0,qe.createElement)("h3",null,(0,Je.__)("Overlay Menu")),(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Configure overlay menu"),value:_,help:(0,Je.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>t({overlayMenu:e}),isBlock:!0,hideLabelFromVision:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"never",label:(0,Je.__)("Off")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,Je.__)("Mobile")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"always",label:(0,Je.__)("Always")})),Z&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("h3",null,(0,Je.__)("Submenus")),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,checked:h,onChange:e=>{t({openSubmenusOnClick:e,...e&&{showSubmenuIcon:!0}})},label:(0,Je.__)("Open on click")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,checked:b,onChange:e=>{t({showSubmenuIcon:e})},disabled:e.openSubmenusOnClick,label:(0,Je.__)("Show arrow")})))),Oe.hasColorsOrGradients&&(0,qe.createElement)(Ye.InspectorControls,{group:"color"},(0,qe.createElement)(Ye.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:i.color,label:(0,Je.__)("Text"),onColorChange:s,resetAllFilter:()=>s()},{colorValue:r.color,label:(0,Je.__)("Background"),onColorChange:l,resetAllFilter:()=>l()},{colorValue:m.color,label:(0,Je.__)("Submenu & overlay text"),onColorChange:p,resetAllFilter:()=>p()},{colorValue:c.color,label:(0,Je.__)("Submenu & overlay background"),onColorChange:u,resetAllFilter:()=>u()}],panelId:n,...Oe,gradients:[],disableCustomGradients:!0}),Pe&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.ContrastChecker,{backgroundColor:Ie,textColor:ze}),(0,qe.createElement)(Ye.ContrastChecker,{backgroundColor:He,textColor:Ae})))),We=!$e||!ne;if(ve&&!F)return(0,qe.createElement)(we,{...Ne},(0,qe.createElement)(Ag,{clientId:n,createNavigationMenuIsSuccess:$,createNavigationMenuIsError:G,currentMenuId:C,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:We,onCreateNew:O,onSelectClassicMenu:De,onSelectNavigationMenu:Fe,isLoading:Ee,blockEditingMode:T}),"default"===T&&Ue,(0,qe.createElement)(Od,{id:n,onToggle:X,isOpen:Y,hasIcon:x,icon:w,isResponsive:Te,isHiddenByDefault:"always"===_,overlayBackgroundColor:c,overlayTextColor:m},(0,qe.createElement)(Zd,{createNavigationMenu:L,blocks:j,hasSelection:o||q})));if(C&&ae)return(0,qe.createElement)(we,{...Ne},(0,qe.createElement)(Ag,{clientId:n,createNavigationMenuIsSuccess:$,createNavigationMenuIsError:G,currentMenuId:C,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:We,onCreateNew:O,onSelectClassicMenu:De,onSelectNavigationMenu:Fe,isLoading:Ee,blockEditingMode:T}),(0,qe.createElement)(vg,{onCreateNew:O}));if(fe&&B)return(0,qe.createElement)("div",{...Ne},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block cannot be rendered inside itself.")));const Ze=g||Fd;return Ce&&g?(0,qe.createElement)(we,{...Ne},(0,qe.createElement)(Ze,{isSelected:o,currentMenuId:C,clientId:n,canUserCreateNavigationMenu:ce,isResolvingCanUserCreateNavigationMenu:ue,onSelectNavigationMenu:Fe,onSelectClassicMenu:De,onCreateEmpty:O})):(0,qe.createElement)(ct.EntityProvider,{kind:"postType",type:"wp_navigation",id:C},(0,qe.createElement)(Ye.__experimentalRecursionProvider,{uniqueId:S},(0,qe.createElement)(Ag,{clientId:n,createNavigationMenuIsSuccess:$,createNavigationMenuIsError:G,currentMenuId:C,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:We,onCreateNew:O,onSelectClassicMenu:De,onSelectNavigationMenu:Fe,isLoading:Ee,blockEditingMode:T}),"default"===T&&Ue,"default"===T&&fe&&(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},le&&re&&(0,qe.createElement)(jd,null),se&&ie&&(0,qe.createElement)(Qd,{onDelete:(e="")=>{Q(n,[]),P((0,Je.sprintf)((0,Je.__)("Navigation menu %s successfully deleted."),e))}}),(0,qe.createElement)(fg,{disabled:We,className:"wp-block-navigation-manage-menus-button"})),Ee&&(0,qe.createElement)(we,{...Ne},(0,qe.createElement)("div",{className:"wp-block-navigation__loading-indicator-container"},(0,qe.createElement)(Ke.Spinner,{className:"wp-block-navigation__loading-indicator"}))),!Ee&&(0,qe.createElement)(we,{...Ne},(0,qe.createElement)(Od,{id:n,onToggle:X,label:(0,Je.__)("Menu"),hasIcon:x,icon:w,isOpen:Y,isResponsive:Te,isHiddenByDefault:"always"===_,overlayBackgroundColor:c,overlayTextColor:m},fe&&(0,qe.createElement)(Ud,{clientId:n,hasCustomPlaceholder:!!g,templateLock:f,orientation:y})))))}));const Fg={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},$g=({navigationMenuId:e,...t})=>({...t,ref:e}),Gg=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:n,...o}=e;return(t||n)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),o},Og={attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},isEligible:({navigationMenuId:e})=>!!e,migrate:$g},Ug={attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,Tt.compose)($g,Gg)},jg={attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},migrate:(0,Tt.compose)($g,Gg,en),isEligible({style:e}){return e?.typography?.fontFamily}},qg=[Og,Ug,jg,{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible(e){return e.isResponsive},migrate:(0,Tt.compose)($g,Gg,en,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in Fg){const n=e.style.typography[t];if(n&&n.startsWith(Fg[t]))return!0}return!1},migrate:(0,Tt.compose)($g,Gg,en,(function(e){var t;return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(null!==(t=e.style.typography)&&void 0!==t?t:{}).map((([e,t])=>{const n=Fg[e];if(n&&t.startsWith(n)){const o=t.slice(n.length);return"textDecoration"===e&&"strikethrough"===o?[e,"line-through"]:[e,o]}return[e,t]})))}}}))},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible(e){return e.rgbTextColor||e.rgbBackgroundColor},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:(0,Tt.compose)($g,(e=>{const{rgbTextColor:t,rgbBackgroundColor:n,...o}=e;return{...o,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}})),save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}}];var Wg=qg;const Zg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation",title:"Navigation",category:"theme",description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",openSubmenusOnClick:"openSubmenusOnClick",style:"style",maxNestingLevel:"maxNestingLevel"},supports:{align:["wide","full"],html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},__experimentalStyle:{elements:{link:{color:{text:"inherit"}}}}},viewScript:["file:./view.min.js","file:./view-modal.min.js"],editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"},{name:Qg}=Zg,Kg={icon:Bd,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,Je.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,Je.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,Je.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Dg,save:function({attributes:e}){if(!e.ref)return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},deprecated:Wg},Jg=()=>Qe({name:Qg,metadata:Zg,settings:Kg});var Yg=(0,qe.createElement)(We.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"}));const{name:Xg}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};var eh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var th=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var nh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"}));function oh(e){switch(e){case"post":return km;case"page":return eh;case"tag":return th;case"category":return Gn;default:return nh}}function ah(e,t){if("core/navigation-link"!==t)return e;if(e.variations){const t=(e,t)=>e.type===t.type,n=e.variations.map((e=>({...e,...!e.icon&&{icon:oh(e.name)},...!e.isActive&&{isActive:t}})));return{...e,variations:n}}return e}const rh={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,je.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,je.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,je.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,je.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,je.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,je.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,je.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,je.createBlock)("core/page-list")}]};var lh=rh;const ih={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"},{name:sh}=ih,ch={icon:Yg,__experimentalLabel:({label:e})=>e,merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:function({attributes:e,isSelected:t,setAttributes:n,insertBlocksAfter:o,mergeBlocks:a,onReplace:r,context:l,clientId:i}){const{id:s,label:c,type:u,url:m,description:p,rel:d,title:g,kind:h}=e,[_,b]=((e,t,n)=>{const o="post-type"===e||"post"===t||"page"===t,a=Number.isInteger(n),r=(0,ut.useSelect)((e=>{if(!o)return null;const{getEntityRecord:a}=e(ct.store);return a("postType",t,n)?.status}),[o,t,n]);return[o&&a&&r&&"trash"===r,"draft"===r]})(h,u,s),{maxNestingLevel:f}=l,{replaceBlock:v,__unstableMarkNextChangeAsNotPersistent:y}=(0,ut.useDispatch)(Ye.store),[k,x]=(0,qe.useState)(!1),[w,C]=(0,qe.useState)(null),E=(0,qe.useRef)(null),S=(e=>{const[t,n]=(0,qe.useState)(!1);return(0,qe.useEffect)((()=>{const{ownerDocument:t}=e.current;function o(e){r(e)}function a(){n(!1)}function r(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",o),t.addEventListener("dragend",a),t.addEventListener("dragenter",r),()=>{t.removeEventListener("dragstart",o),t.removeEventListener("dragend",a),t.removeEventListener("dragenter",r)}}),[]),t})(E),B=(0,Je.__)("Add label…"),T=(0,qe.useRef)(),[N,P]=(0,qe.useState)(!1),{innerBlocks:I,isAtMaxNesting:M,isTopLevelLink:z,isParentOfSelectedBlock:R,hasChildren:H}=(0,ut.useSelect)((e=>{const{getBlocks:t,getBlockCount:n,getBlockName:o,getBlockRootClientId:a,hasSelectedInnerBlock:r,getBlockParentsByBlockName:l}=e(Ye.store);return{innerBlocks:t(i),isAtMaxNesting:l(i,[Xg,"core/navigation-submenu"]).length>=f,isTopLevelLink:"core/navigation"===o(a(i)),isParentOfSelectedBlock:r(i,!0),hasChildren:!!n(i)}}),[i]);function L(){const t=(0,je.createBlock)("core/navigation-submenu",e,I.length>0?I:[(0,je.createBlock)("core/navigation-link")]);v(i,t)}(0,qe.useEffect)((()=>{m||x(!0)}),[m]),(0,qe.useEffect)((()=>{H&&(y(),L())}),[H]),(0,qe.useEffect)((()=>{t||x(!1)}),[t]),(0,qe.useEffect)((()=>{k&&m&&((0,st.isURL)((0,st.prependHTTP)(c))&&/^.+\.[a-z]+/.test(c)?function(){T.current.focus();const{ownerDocument:e}=T.current,{defaultView:t}=e,n=t.getSelection(),o=e.createRange();o.selectNodeContents(T.current),n.removeAllRanges(),n.addRange(o)}():(0,dd.placeCaretAtHorizontalEdge)(T.current,!0))}),[m]);const{textColor:A,customTextColor:V,backgroundColor:D,customBackgroundColor:F}=_g(l,!z),$=(0,Ye.useBlockProps)({ref:(0,Tt.useMergeRefs)([C,E]),className:it()("wp-block-navigation-item",{"is-editing":t||R,"is-dragging-within":S,"has-link":!!m,"has-child":H,"has-text-color":!!A||!!V,[(0,Ye.getColorClassName)("color",A)]:!!A,"has-background":!!D||F,[(0,Ye.getColorClassName)("background-color",D)]:!!D}),style:{color:!A&&V,backgroundColor:!D&&F},onKeyDown:function(e){(un.isKeyboardEvent.primary(e,"k")||(!m||b||_)&&e.keyCode===un.ENTER)&&x(!0)}}),G=(0,Ye.useInnerBlocksProps)({...$,className:"remove-outline"},{allowedBlocks:["core/navigation-link","core/navigation-submenu","core/page-list"],__experimentalDefaultBlock:{name:"core/navigation-link"},__experimentalDirectInsert:!0,renderAppender:!1});(!m||_||b)&&($.onClick=()=>x(!0));const O=it()("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!m||_||b}),U=function(e){let t="";switch(e){case"post":t=(0,Je.__)("Select post");break;case"page":t=(0,Je.__)("Select page");break;case"category":t=(0,Je.__)("Select category");break;case"tag":t=(0,Je.__)("Select tag");break;default:t=(0,Je.__)("Add link")}return t}(u),j=`(${_?(0,Je.__)("Invalid"):(0,Je.__)("Draft")})`,q=_||b?(0,Je.__)("This item has been deleted, or is a draft"):(0,Je.__)("This item is missing a link");return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:mn,title:(0,Je.__)("Link"),shortcut:un.displayShortcut.primary("k"),onClick:()=>x(!0)}),!M&&(0,qe.createElement)(Ke.ToolbarButton,{name:"submenu",icon:yg,title:(0,Je.__)("Add submenu"),onClick:L}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:c?(0,dd.__unstableStripHTML)(c):"",onChange:e=>{n({label:e})},label:(0,Je.__)("Label"),autoComplete:"off",onFocus:()=>P(!0),onBlur:()=>P(!1)}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:m||"",onChange:t=>{Tg({url:t},n,e)},label:(0,Je.__)("URL"),autoComplete:"off"}),(0,qe.createElement)(Ke.TextareaControl,{__nextHasNoMarginBottom:!0,value:p||"",onChange:e=>{n({description:e})},label:(0,Je.__)("Description"),help:(0,Je.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:g||"",onChange:e=>{n({title:e})},label:(0,Je.__)("Title attribute"),autoComplete:"off",help:(0,Je.__)("Additional information to help clarify the purpose of the link.")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:d||"",onChange:e=>{n({rel:e})},label:(0,Je.__)("Rel attribute"),autoComplete:"off",help:(0,Je.__)("The relationship of the linked URL as space-separated link types.")}))),(0,qe.createElement)("div",{...$},(0,qe.createElement)("a",{className:O},m?(0,qe.createElement)(qe.Fragment,null,!_&&!b&&!N&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.RichText,{ref:T,identifier:"label",className:"wp-block-navigation-item__label",value:c,onChange:e=>n({label:e}),onMerge:a,onReplace:r,__unstableOnSplitAtEnd:()=>o((0,je.createBlock)("core/navigation-link")),"aria-label":(0,Je.__)("Navigation link text"),placeholder:B,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{m||x(!0)}}),p&&(0,qe.createElement)("span",{className:"wp-block-navigation-item__description"},p)),(_||b||N)&&(0,qe.createElement)("div",{className:"wp-block-navigation-link__placeholder-text wp-block-navigation-link__label"},(0,qe.createElement)(Ke.Tooltip,{position:"top center",text:q},(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("span",{"aria-label":(0,Je.__)("Navigation link text")},`${(0,On.decodeEntities)(c)} ${_||b?j:""}`.trim()),(0,qe.createElement)("span",{className:"wp-block-navigation-link__missing_text-tooltip"},q))))):(0,qe.createElement)("div",{className:"wp-block-navigation-link__placeholder-text"},(0,qe.createElement)(Ke.Tooltip,{position:"top center",text:q},(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("span",null,U),(0,qe.createElement)("span",{className:"wp-block-navigation-link__missing_text-tooltip"},q)))),k&&(0,qe.createElement)(Ig,{className:"wp-block-navigation-link__inline-link-input",clientId:i,link:e,onClose:()=>x(!1),anchor:w,onRemove:function(){n({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),x(!1)},onChange:t=>{Tg(t,n,e)}})),(0,qe.createElement)("div",{...G})))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},example:{attributes:{label:(0,Je._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible(e){return e.nofollow},attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate({nofollow:e,...t}){return{rel:e?"nofollow":"",...t}},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}}],transforms:lh},uh=()=>((0,Zl.addFilter)("blocks.registerBlockType","core/navigation-link",ah),Qe({name:sh,metadata:ih,settings:ch}));var mh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"}));const ph=()=>(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,qe.createElement)(Ke.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})),{name:dh}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},gh=["core/navigation-link","core/navigation-submenu","core/page-list"],hh={name:"core/navigation-link"};const _h={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:e=>(0,je.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/search")}]};var bh=_h;const fh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},{name:vh}=fh,yh={icon:({context:e})=>"list-view"===e?eh:yg,__experimentalLabel:({label:e})=>e,edit:function({attributes:e,isSelected:t,setAttributes:n,mergeBlocks:o,onReplace:a,context:r,clientId:l}){const{label:i,type:s,url:c,description:u,rel:m,title:p}=e,{showSubmenuIcon:d,maxNestingLevel:g,openSubmenusOnClick:h}=r,{__unstableMarkNextChangeAsNotPersistent:_,replaceBlock:b}=(0,ut.useDispatch)(Ye.store),[f,v]=(0,qe.useState)(!1),[y,k]=(0,qe.useState)(null),x=(0,qe.useRef)(null),w=(e=>{const[t,n]=(0,qe.useState)(!1);return(0,qe.useEffect)((()=>{const{ownerDocument:t}=e.current;function o(e){r(e)}function a(){n(!1)}function r(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",o),t.addEventListener("dragend",a),t.addEventListener("dragenter",r),()=>{t.removeEventListener("dragstart",o),t.removeEventListener("dragend",a),t.removeEventListener("dragenter",r)}}),[]),t})(x),C=(0,Je.__)("Add text…"),E=(0,qe.useRef)(),S=(0,ct.useResourcePermissions)("pages"),B=(0,ct.useResourcePermissions)("posts"),{isAtMaxNesting:T,isTopLevelItem:N,isParentOfSelectedBlock:P,isImmediateParentOfSelectedBlock:I,hasChildren:M,selectedBlockHasChildren:z,onlyDescendantIsEmptyLink:R}=(0,ut.useSelect)((e=>{const{hasSelectedInnerBlock:t,getSelectedBlockClientId:n,getBlockParentsByBlockName:o,getBlock:a,getBlockCount:r,getBlockOrder:i}=e(Ye.store);let s;const c=i(n());if(1===c?.length){const e=a(c[0]);s="core/navigation-link"===e?.name&&!e?.attributes?.label}return{isAtMaxNesting:o(l,dh).length>=g,isTopLevelItem:0===o(l,dh).length,isParentOfSelectedBlock:t(l,!0),isImmediateParentOfSelectedBlock:t(l,!1),hasChildren:!!r(l),selectedBlockHasChildren:!!c?.length,onlyDescendantIsEmptyLink:s}}),[l]),H=(0,Tt.usePrevious)(M);(0,qe.useEffect)((()=>{h||c||v(!0)}),[]),(0,qe.useEffect)((()=>{t||v(!1)}),[t]),(0,qe.useEffect)((()=>{f&&c&&((0,st.isURL)((0,st.prependHTTP)(i))&&/^.+\.[a-z]+/.test(i)?function(){E.current.focus();const{ownerDocument:e}=E.current,{defaultView:t}=e,n=t.getSelection(),o=e.createRange();o.selectNodeContents(E.current),n.removeAllRanges(),n.addRange(o)}():(0,dd.placeCaretAtHorizontalEdge)(E.current,!0))}),[c]);let L=!1;s&&"page"!==s?"post"===s&&(L=B.canCreate):L=S.canCreate;const{textColor:A,customTextColor:V,backgroundColor:D,customBackgroundColor:F}=_g(r,!N),$=(0,Ye.useBlockProps)({ref:(0,Tt.useMergeRefs)([k,x]),className:it()("wp-block-navigation-item",{"is-editing":t||P,"is-dragging-within":w,"has-link":!!c,"has-child":M,"has-text-color":!!A||!!V,[(0,Ye.getColorClassName)("color",A)]:!!A,"has-background":!!D||F,[(0,Ye.getColorClassName)("background-color",D)]:!!D,"open-on-click":h}),style:{color:!A&&V,backgroundColor:!D&&F},onKeyDown:function(e){un.isKeyboardEvent.primary(e,"k")&&v(!0)}}),G=_g(r,!0),O=T?gh.filter((e=>"core/navigation-submenu"!==e)):gh,U=bg(G),j=(0,Ye.useInnerBlocksProps)(U,{allowedBlocks:O,__experimentalDefaultBlock:hh,__experimentalDirectInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:!!(t||I&&!z||M)&&Ye.InnerBlocks.ButtonBlockAppender}),q=h?"button":"a";function W(){const t=(0,je.createBlock)("core/navigation-link",e);b(l,t)}(0,qe.useEffect)((()=>{!M&&H&&(_(),W())}),[M,H]);const Z=!z||R;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,!h&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:mn,title:(0,Je.__)("Link"),shortcut:un.displayShortcut.primary("k"),onClick:()=>v(!0)}),(0,qe.createElement)(Ke.ToolbarButton,{name:"revert",icon:mh,title:(0,Je.__)("Convert to Link"),onClick:W,className:"wp-block-navigation__submenu__revert",isDisabled:!Z}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:i||"",onChange:e=>{n({label:e})},label:(0,Je.__)("Label"),autoComplete:"off"}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:c||"",onChange:e=>{n({url:e})},label:(0,Je.__)("URL"),autoComplete:"off"}),(0,qe.createElement)(Ke.TextareaControl,{__nextHasNoMarginBottom:!0,value:u||"",onChange:e=>{n({description:e})},label:(0,Je.__)("Description"),help:(0,Je.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:p||"",onChange:e=>{n({title:e})},label:(0,Je.__)("Title attribute"),autoComplete:"off",help:(0,Je.__)("Additional information to help clarify the purpose of the link.")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:m||"",onChange:e=>{n({rel:e})},label:(0,Je.__)("Rel attribute"),autoComplete:"off",help:(0,Je.__)("The relationship of the linked URL as space-separated link types.")}))),(0,qe.createElement)("div",{...$},(0,qe.createElement)(q,{className:"wp-block-navigation-item__content"},(0,qe.createElement)(Ye.RichText,{ref:E,identifier:"label",className:"wp-block-navigation-item__label",value:i,onChange:e=>n({label:e}),onMerge:o,onReplace:a,"aria-label":(0,Je.__)("Navigation link text"),placeholder:C,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{h||c||v(!0)}}),!h&&f&&(0,qe.createElement)(Ig,{className:"wp-block-navigation-link__inline-link-input",clientId:l,link:e,onClose:()=>v(!1),anchor:y,hasCreateSuggestion:L,onRemove:()=>{n({url:""}),(0,Td.speak)((0,Je.__)("Link removed."),"assertive")},onChange:t=>{Tg(t,n,e)}})),(d||h)&&(0,qe.createElement)("span",{className:"wp-block-navigation__submenu-icon"},(0,qe.createElement)(ph,null)),(0,qe.createElement)("div",{...j})))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},transforms:bh},kh=()=>Qe({name:vh,metadata:fh,settings:yh});var xh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"}));var wh={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform(){return(0,je.createBlock)("core/nextpage",{})}}]};const Ch={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-nextpage-editor"},{name:Eh}=Ch,Sh={icon:xh,example:{},transforms:wh,edit:function(){return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)("span",null,(0,Je.__)("Page break")))},save:function(){return(0,qe.createElement)(qe.RawHTML,null,"\x3c!--nextpage--\x3e")}},Bh=()=>Qe({name:Eh,metadata:Ch,settings:Sh});var Th=({attributes:e,clientId:t})=>{const n=(0,ut.useSelect)((t=>t(Ye.store).__experimentalGetParsedPattern(e.slug)),[e.slug]),{replaceBlocks:o,__unstableMarkNextChangeAsNotPersistent:a}=(0,ut.useDispatch)(Ye.store),{setBlockEditingMode:r}=Yt((0,ut.useDispatch)(Ye.store)),{getBlockRootClientId:l,getBlockEditingMode:i}=Yt((0,ut.useSelect)(Ye.store));(0,qe.useEffect)((()=>{n?.blocks&&window.queueMicrotask((()=>{const e=l(t),s=n.blocks.map((e=>(0,je.cloneBlock)(e))),c=i(e);a(),r(e,"default"),a(),o(t,s),a(),r(e,c)}))}),[t,n?.blocks,a,o,i,r,l]);const s=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...s})};const Nh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pattern",title:"Pattern placeholder",category:"theme",description:"Show a block pattern.",supports:{html:!1,inserter:!1},textdomain:"default",attributes:{slug:{type:"string"}}},{name:Ph}=Nh,Ih={edit:Th},Mh=()=>Qe({name:Ph,metadata:Nh,settings:Ih});var zh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z"}));function Rh(e,t){for(const n of e){if(n.attributes.id===t)return n;if(n.innerBlocks&&n.innerBlocks.length){const e=Rh(n.innerBlocks,t);if(e)return e}}return null}function Hh(e=[],t=null){let n=function(e=[]){const t={},n=[];return e.forEach((({id:e,title:o,link:a,type:r,parent:l})=>{var i;const s=null!==(i=t[e]?.innerBlocks)&&void 0!==i?i:[];t[e]=(0,je.createBlock)("core/navigation-link",{id:e,label:o.rendered,url:a,type:r,kind:"post-type"},s),l?(t[l]||(t[l]={innerBlocks:[]}),t[l].innerBlocks.push(t[e])):n.push(t[e])})),n}(e);if(t){const e=Rh(n,t);e&&e.innerBlocks&&(n=e.innerBlocks)}const o=e=>{e.forEach(((e,t,n)=>{const{attributes:a,innerBlocks:r}=e;if(0!==r.length){o(r);const e=(0,je.createBlock)("core/navigation-submenu",a,r);n[t]=e}}))};return o(n),n}function Lh({clientId:e,pages:t,parentPageID:n}){const{replaceBlock:o,selectBlock:a}=(0,ut.useDispatch)(Ye.store),{parentNavBlockClientId:r}=(0,ut.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(Ye.store);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[e]);return()=>{const l=Hh(t,n);o(e,l),a(r)}}const Ah=(0,Je.__)('This menu is automatically kept in sync with pages on your site. You can manage the menu yourself by clicking "Edit" below.');function Vh({onClick:e,onClose:t,disabled:n}){return(0,qe.createElement)(Ke.Modal,{onRequestClose:t,title:(0,Je.__)("Edit this menu"),className:"wp-block-page-list-modal",aria:{describedby:"wp-block-page-list-modal__description"}},(0,qe.createElement)("p",{id:"wp-block-page-list-modal__description"},Ah),(0,qe.createElement)("div",{className:"wp-block-page-list-modal-buttons"},(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:t},(0,Je.__)("Cancel")),(0,qe.createElement)(Ke.Button,{variant:"primary",disabled:n,onClick:e},(0,Je.__)("Edit"))))}const Dh=()=>{};function Fh({blockProps:e,innerBlocksProps:t,hasResolvedPages:n,blockList:o,pages:a,parentPageID:r}){if(!n)return(0,qe.createElement)("div",{...e},(0,qe.createElement)("div",{className:"wp-block-page-list__loading-indicator-container"},(0,qe.createElement)(Ke.Spinner,{className:"wp-block-page-list__loading-indicator"})));if(null===a)return(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ke.Notice,{status:"warning",isDismissible:!1},(0,Je.__)("Page List: Cannot retrieve Pages.")));if(0===a.length)return(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ke.Notice,{status:"info",isDismissible:!1},(0,Je.__)("Page List: Cannot retrieve Pages.")));if(0===o.length){const t=a.find((e=>e.id===r));return t?.title?.rendered?(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ye.Warning,null,(0,Je.sprintf)((0,Je.__)('Page List: "%s" page has no children.'),t.title.rendered))):(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ke.Notice,{status:"warning",isDismissible:!1},(0,Je.__)("Page List: Cannot retrieve Pages.")))}return a.length>0?(0,qe.createElement)("ul",{...t}):void 0}const $h={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list",title:"Page List",category:"widgets",description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{parentPageID:{type:"integer",default:0},isNested:{type:"boolean",default:!1}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:Gh}=$h,Oh={icon:zh,example:{},edit:function({context:e,clientId:t,attributes:n,setAttributes:o}){const{parentPageID:a}=n,[r,l]=(0,qe.useState)(!1),i=(0,qe.useCallback)((()=>l(!0)),[]),{records:s,hasResolved:c}=(0,ct.useEntityRecords)("postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),u="showSubmenuIcon"in e&&s?.length>0&&s?.length<=100,m=(0,qe.useMemo)((()=>{if(null===s)return new Map;const e=s.sort(((e,t)=>e.menu_order===t.menu_order?e.title.rendered.localeCompare(t.title.rendered):e.menu_order-t.menu_order));return e.reduce(((e,t)=>{const{parent:n}=t;return e.has(n)?e.get(n).push(t):e.set(n,[t]),e}),new Map)}),[s]),p=Lh({clientId:t,pages:s,parentPageID:a}),d=(0,Ye.useBlockProps)({className:it()("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,Ye.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,Ye.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...e.style?.color}}),g=(e=a)=>{const t=m.get(e);return t?.length?t.reduce(((e,t)=>{const n=m.has(t.id),o={id:t.id,label:""!==t.title?.rendered?.trim()?t.title?.rendered:(0,Je.__)("(no title)"),title:t.title?.rendered,link:t.url,hasChildren:n};let a=null;const r=g(t.id);return a=(0,je.createBlock)("core/page-list-item",o,r),e.push(a),e}),[]):[]},h=(e=0,t=0)=>{const n=m.get(e);return n?.length?n.reduce(((e,n)=>{const o=m.has(n.id),a={value:n.id,label:"— ".repeat(t)+n.title.rendered,rawName:n.title.rendered};return e.push(a),o&&e.push(...h(n.id,t+1)),e}),[]):[]},_=(0,qe.useMemo)(h,[m]),b=(0,qe.useMemo)(g,[m,a]),{isNested:f,hasSelectedChild:v,parentBlock:y,hasDraggedChild:k,isChildOfNavigation:x}=(0,ut.useSelect)((e=>{const{getBlockParentsByBlockName:n,hasSelectedInnerBlock:o,getBlockRootClientId:a,hasDraggedInnerBlock:r}=e(Ye.store),l=n(t,"core/navigation-submenu",!0),i=n(t,"core/navigation",!0);return{isNested:l.length>0,isChildOfNavigation:i.length>0,hasSelectedChild:o(t,!0),hasDraggedChild:r(t,!0),parentBlock:a(t)}}),[t]),w=(0,Ye.useInnerBlocksProps)(d,{allowedBlocks:["core/page-list-item"],renderAppender:!1,__unstableDisableDropZone:!0,templateLock:!x&&"all",onInput:Dh,onChange:Dh,value:b}),{selectBlock:C}=(0,ut.useDispatch)(Ye.store);return(0,qe.useEffect)((()=>{(v||k)&&(i(),C(y))}),[v,k,y,C,i]),(0,qe.useEffect)((()=>{o({isNested:f})}),[f,o]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,_.length>0&&(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.ComboboxControl,{className:"editor-page-attributes__parent",label:(0,Je.__)("Parent page"),value:a,options:_,onChange:e=>o({parentPageID:null!=e?e:0}),help:(0,Je.__)("Choose a page to show only its subpages.")})),u&&(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Edit this menu")},(0,qe.createElement)("p",null,Ah),(0,qe.createElement)(Ke.Button,{variant:"primary",disabled:!c,onClick:p},(0,Je.__)("Edit")))),u&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ke.ToolbarButton,{title:(0,Je.__)("Edit"),onClick:i},(0,Je.__)("Edit"))),r&&(0,qe.createElement)(Vh,{onClick:p,onClose:()=>l(!1),disabled:!c})),(0,qe.createElement)(Fh,{blockProps:d,innerBlocksProps:w,hasResolvedPages:c,blockList:b,pages:s,parentPageID:a}))}},Uh=()=>Qe({name:Gh,metadata:$h,settings:Oh}),jh=()=>(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,qe.createElement)(Ke.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"}));const qh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list-item",title:"Page List Item",category:"widgets",parent:["core/page-list"],description:"Displays a page inside a list of all pages.",keywords:["page","menu","navigation"],textdomain:"default",attributes:{id:{type:"number"},label:{type:"string"},title:{type:"string"},link:{type:"string"},hasChildren:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,lock:!1,inserter:!1,__experimentalToolbar:!1},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:Wh}=qh,Zh={__experimentalLabel:({label:e})=>e,icon:eh,example:{},edit:function({context:e,attributes:t}){const{id:n,label:o,link:a,hasChildren:r,title:l}=t,i="showSubmenuIcon"in e,s=(0,ut.useSelect)((e=>{if(!e(ct.store).canUser("read","settings"))return;const t=e(ct.store).getEntityRecord("root","site");return"page"===t?.show_on_front&&t?.page_on_front}),[]),c=bg(_g(e,!0)),u=(0,Ye.useBlockProps)(c,{className:"wp-block-pages-list__item"}),m=(0,Ye.useInnerBlocksProps)(u);return(0,qe.createElement)("li",{key:n,className:it()("wp-block-pages-list__item",{"has-child":r,"wp-block-navigation-item":i,"open-on-click":e.openSubmenusOnClick,"open-on-hover-click":!e.openSubmenusOnClick&&e.showSubmenuIcon,"menu-item-home":n===s})},r&&e.openSubmenusOnClick?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false"},(0,On.decodeEntities)(o)),(0,qe.createElement)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"},(0,qe.createElement)(jh,null))):(0,qe.createElement)("a",{className:it()("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":i}),href:a},(0,On.decodeEntities)(l)),r&&(0,qe.createElement)(qe.Fragment,null,!e.openSubmenusOnClick&&e.showSubmenuIcon&&(0,qe.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false"},(0,qe.createElement)(jh,null)),(0,qe.createElement)("ul",{...m})))}},Qh=()=>Qe({name:Wh,metadata:qh,settings:Zh});var Kh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"}));const Jh={className:!1},Yh={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},Xh=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});const{customTextColor:n,customBackgroundColor:o,customFontSize:a,...r}=e;return{...r,style:t}},{style:e_,...t_}=Yh,n_=[{supports:Jh,attributes:{...t_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},save({attributes:e}){const{align:t,content:n,dropCap:o,direction:a}=e,r=it()({"has-drop-cap":t!==((0,Je.isRTL)()?"left":"right")&&"center"!==t&&o,[`has-text-align-${t}`]:t});return(0,qe.createElement)("p",{...Ye.useBlockProps.save({className:r,dir:a})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},{supports:Jh,attributes:{...t_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Xh,save({attributes:e}){const{align:t,content:n,dropCap:o,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:i,fontSize:s,customFontSize:c,direction:u}=e,m=(0,Ye.getColorClassName)("color",r),p=(0,Ye.getColorClassName)("background-color",a),d=(0,Ye.getFontSizeClass)(s),g=it()({"has-text-color":r||i,"has-background":a||l,"has-drop-cap":o,[`has-text-align-${t}`]:t,[d]:d,[m]:m,[p]:p}),h={backgroundColor:p?void 0:l,color:m?void 0:i,fontSize:d?void 0:c};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n,dir:u})}},{supports:Jh,attributes:{...t_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:Xh,save({attributes:e}){const{align:t,content:n,dropCap:o,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:i,fontSize:s,customFontSize:c,direction:u}=e,m=(0,Ye.getColorClassName)("color",r),p=(0,Ye.getColorClassName)("background-color",a),d=(0,Ye.getFontSizeClass)(s),g=it()({"has-text-color":r||i,"has-background":a||l,"has-drop-cap":o,[d]:d,[m]:m,[p]:p}),h={backgroundColor:p?void 0:l,color:m?void 0:i,fontSize:d?void 0:c,textAlign:t};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n,dir:u})}},{supports:Jh,attributes:{...t_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:Xh,save({attributes:e}){const{width:t,align:n,content:o,dropCap:a,backgroundColor:r,textColor:l,customBackgroundColor:i,customTextColor:s,fontSize:c,customFontSize:u}=e,m=(0,Ye.getColorClassName)("color",l),p=(0,Ye.getColorClassName)("background-color",r),d=c&&`is-${c}-text`,g=it()({[`align${t}`]:t,"has-background":r||i,"has-drop-cap":a,[d]:d,[m]:m,[p]:p}),h={backgroundColor:p?void 0:i,color:m?void 0:s,fontSize:d?void 0:u,textAlign:n};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o})}},{supports:Jh,attributes:{...t_,fontSize:{type:"number"}},save({attributes:e}){const{width:t,align:n,content:o,dropCap:a,backgroundColor:r,textColor:l,fontSize:i}=e,s=it()({[`align${t}`]:t,"has-background":r,"has-drop-cap":a}),c={backgroundColor:r,color:l,fontSize:i,textAlign:n};return(0,qe.createElement)("p",{style:c,className:s||void 0},o)},migrate(e){return Xh({...e,customFontSize:Number.isFinite(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0})}},{supports:Jh,attributes:{...Yh,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,qe.createElement)(qe.RawHTML,null,e.content)},migrate(e){return e}}];var o_=n_;var a_=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));function r_(e){const{batch:t}=(0,ut.useRegistry)(),{moveBlocksToPosition:n,replaceInnerBlocks:o,duplicateBlocks:a,insertBlock:r}=(0,ut.useDispatch)(Ye.store),{getBlockRootClientId:l,getBlockIndex:i,getBlockOrder:s,getBlockName:c,getBlock:u,getNextBlockClientId:m}=(0,ut.useSelect)(Ye.store),p=(0,qe.useRef)(e);return p.current=e,(0,Tt.useRefEffect)((e=>{function d(e){if(e.defaultPrevented)return;if(e.keyCode!==un.ENTER)return;const{content:d,clientId:g}=p.current;if(d.length)return;const h=l(g);if(!(0,je.hasBlockSupport)(c(h),"__experimentalOnEnter",!1))return;const _=s(h);e.preventDefault();const b=_.indexOf(g);if(b===_.length-1)return void n([g],h,l(h),i(h)+1);const f=u(h);t((()=>{a([h]);const e=i(h);o(h,f.innerBlocks.slice(0,b)),o(m(h),f.innerBlocks.slice(b+1)),r((0,je.createBlock)("core/paragraph"),e+1,l(h),!0)}))}return e.addEventListener("keydown",d),()=>{e.removeEventListener("keydown",d)}}),[])}function l_({direction:e,setDirection:t}){return(0,Je.isRTL)()&&(0,qe.createElement)(Ke.ToolbarButton,{icon:a_,title:(0,Je._x)("Left to right","editor button"),isActive:"ltr"===e,onClick:()=>{t("ltr"===e?void 0:"ltr")}})}function i_(e){return e===((0,Je.isRTL)()?"left":"right")||"center"===e}var s_=function({attributes:e,mergeBlocks:t,onReplace:n,onRemove:o,setAttributes:a,clientId:r}){const{align:l,content:i,direction:s,dropCap:c,placeholder:u}=e,m=(0,Ye.useSetting)("typography.dropCap"),p=(0,Ye.useBlockProps)({ref:r_({clientId:r,content:i}),className:it()({"has-drop-cap":!i_(l)&&c,[`has-text-align-${l}`]:l}),style:{direction:s}});let d;return d=i_(l)?(0,Je.__)("Not available for aligned text."):c?(0,Je.__)("Showing large initial letter."):(0,Je.__)("Toggle to show a large initial letter."),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:l,onChange:e=>a({align:e,dropCap:!i_(e)&&c})}),(0,qe.createElement)(l_,{direction:s,setDirection:e=>a({direction:e})})),m&&(0,qe.createElement)(Ye.InspectorControls,{group:"typography"},(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,Je.__)("Drop cap"),onDeselect:()=>a({dropCap:void 0}),resetAllFilter:()=>({dropCap:void 0}),panelId:r},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Drop cap"),checked:!!c,onChange:()=>a({dropCap:!c}),help:d,disabled:!!i_(l)}))),(0,qe.createElement)(Ye.RichText,{identifier:"content",tagName:"p",...p,value:i,onChange:e=>a({content:e}),onSplit:(t,n)=>{let o;(n||t)&&(o={...e,content:t});const a=(0,je.createBlock)("core/paragraph",o);return n&&(a.clientId=r),a},onMerge:t,onReplace:n,onRemove:o,"aria-label":i?(0,Je.__)("Paragraph block"):(0,Je.__)("Empty block; start writing or type forward slash to choose a block"),"data-empty":!i,placeholder:u||(0,Je.__)("Type / to choose a block"),"data-custom-placeholder":!!u||void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0}))};const{name:c_}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},u_={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=(0,je.getBlockAttributes)(c_,e.outerHTML),{textAlign:n}=e.style||{};return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),(0,je.createBlock)(c_,t)}}]};var m_=u_;const p_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},{name:d_}=p_,g_={icon:Kh,example:{attributes:{content:(0,Je.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{content:t}=e;return t&&0!==t.length?t:(0,Je.__)("Empty")}},transforms:m_,deprecated:o_,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:s_,save:function({attributes:e}){const{align:t,content:n,dropCap:o,direction:a}=e,r=it()({"has-drop-cap":t!==((0,Je.isRTL)()?"left":"right")&&"center"!==t&&o,[`has-text-align-${t}`]:t});return(0,qe.createElement)("p",{...Ye.useBlockProps.save({className:r,dir:a})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},h_=()=>Qe({name:d_,metadata:p_,settings:g_});var __=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"}));const b_={who:"authors",per_page:100};var f_=function({isSelected:e,context:{postType:t,postId:n,queryId:o},attributes:a,setAttributes:r}){const l=Number.isFinite(o),{authorId:i,authorDetails:s,authors:c}=(0,ut.useSelect)((e=>{const{getEditedEntityRecord:o,getUser:a,getUsers:r}=e(ct.store),l=o("postType",t,n)?.author;return{authorId:l,authorDetails:l?a(l):null,authors:r(b_)}}),[t,n]),{editEntityRecord:u}=(0,ut.useDispatch)(ct.store),{textAlign:m,showAvatar:p,showBio:d,byline:g,isLink:h,linkTarget:_}=a,b=[],f=s?.name||(0,Je.__)("Post Author");s?.avatar_urls&&Object.keys(s.avatar_urls).forEach((e=>{b.push({value:e,label:`${e} x ${e}`})}));const v=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${m}`]:m})}),y=c?.length?c.map((({id:e,name:t})=>({value:e,label:t}))):[],k=e=>{u("postType",t,n,{author:e})},x=y.length>=25,w=!!n&&!l&&y.length>0;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},w&&(x&&(0,qe.createElement)(Ke.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Author"),options:y,value:i,onChange:k,allowReset:!1})||(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Author"),value:i,options:y,onChange:k})),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show avatar"),checked:p,onChange:()=>r({showAvatar:!p})}),p&&(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Avatar size"),value:a.avatarSize,options:b,onChange:e=>{r({avatarSize:Number(e)})}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show bio"),checked:d,onChange:()=>r({showBio:!d})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link author name to author page"),checked:h,onChange:()=>r({isLink:!h})}),h&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===_}))),(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:m,onChange:e=>{r({textAlign:e})}})),(0,qe.createElement)("div",{...v},p&&s?.avatar_urls&&(0,qe.createElement)("div",{className:"wp-block-post-author__avatar"},(0,qe.createElement)("img",{width:a.avatarSize,src:s.avatar_urls[a.avatarSize],alt:s.name})),(0,qe.createElement)("div",{className:"wp-block-post-author__content"},(!Ye.RichText.isEmpty(g)||e)&&(0,qe.createElement)(Ye.RichText,{className:"wp-block-post-author__byline",multiline:!1,"aria-label":(0,Je.__)("Post author byline text"),placeholder:(0,Je.__)("Write byline…"),value:g,onChange:e=>r({byline:e})}),(0,qe.createElement)("p",{className:"wp-block-post-author__name"},h?(0,qe.createElement)("a",{href:"#post-author-pseudo-link",onClick:e=>e.preventDefault()},f):f),d&&(0,qe.createElement)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:s?.description}}))))};const v_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author",title:"Post Author",category:"theme",description:"Display post author details such as name, avatar, and bio.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","queryId"],supports:{html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDuotone:".wp-block-post-author__avatar img",__experimentalDefaultControls:{background:!0,text:!0}}},style:"wp-block-post-author"},{name:y_}=v_,k_={icon:__,edit:f_},x_=()=>Qe({name:y_,metadata:v_,settings:k_});var w_=function({context:{postType:e,postId:t},attributes:{textAlign:n,isLink:o,linkTarget:a},setAttributes:r}){const{authorName:l}=(0,ut.useSelect)((n=>{const{getEditedEntityRecord:o,getUser:a}=n(ct.store),r=o("postType",e,t)?.author;return{authorName:r?a(r):null}}),[e,t]),i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${n}`]:n})}),s=l?.name||(0,Je.__)("Author Name"),c=o?(0,qe.createElement)("a",{href:"#author-pseudo-link",onClick:e=>e.preventDefault(),className:"wp-block-post-author-name__link"},s):s;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:n,onChange:e=>{r({textAlign:e})}})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to author archive"),onChange:()=>r({isLink:!o}),checked:o}),o&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a}))),(0,qe.createElement)("div",{...i}," ",c," "))};var C_={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,je.createBlock)("core/post-author-name",{textAlign:e})}],to:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,je.createBlock)("core/post-author",{textAlign:e})}]};const E_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-name",title:"Post Author Name",category:"theme",description:"The author name.",textdomain:"default",attributes:{textAlign:{type:"string"},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:S_}=E_,B_={icon:__,transforms:C_,edit:w_},T_=()=>Qe({name:S_,metadata:E_,settings:B_});var N_=function({context:{postType:e,postId:t},attributes:{textAlign:n},setAttributes:o}){const{authorDetails:a}=(0,ut.useSelect)((n=>{const{getEditedEntityRecord:o,getUser:a}=n(ct.store),r=o("postType",e,t)?.author;return{authorDetails:r?a(r):null}}),[e,t]),r=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${n}`]:n})}),l=a?.description||(0,Je.__)("Author Biography");return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:n,onChange:e=>{o({textAlign:e})}})),(0,qe.createElement)("div",{...r,dangerouslySetInnerHTML:{__html:l}}))};const P_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-biography",title:"Post Author Biography",category:"theme",description:"The author biography.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postType","postId"],supports:{spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:I_}=P_,M_={icon:__,edit:N_},z_=()=>Qe({name:I_,metadata:P_,settings:M_});var R_=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));const H_=["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],L_=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];const A_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comment",title:"Post Comment (deprecated)",category:"theme",description:"This block is deprecated. Please use the Comments block instead.",textdomain:"default",attributes:{commentId:{type:"number"}},providesContext:{commentId:"commentId"},supports:{html:!1,inserter:!1}},{name:V_}=A_,D_={icon:_m,edit:function({attributes:{commentId:e},setAttributes:t}){const[n,o]=(0,qe.useState)(e),a=(0,Ye.useBlockProps)(),r=(0,Ye.useInnerBlocksProps)(a,{template:L_,allowedBlocks:H_});return e?(0,qe.createElement)("div",{...r}):(0,qe.createElement)("div",{...a},(0,qe.createElement)(Ke.Placeholder,{icon:R_,label:(0,Je._x)("Post Comment","block title"),instructions:(0,Je.__)("To show a comment, input the comment ID.")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:e,onChange:e=>o(parseInt(e))}),(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:()=>{t({commentId:n})}},(0,Je.__)("Save"))))},save:function(){const e=Ye.useBlockProps.save(),t=Ye.useInnerBlocksProps.save(e);return(0,qe.createElement)("div",{...t})}},F_=()=>Qe({name:V_,metadata:A_,settings:D_});var $_=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"}));const G_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comments-count",title:"Post Comments Count",category:"theme",description:"Display a post's comments count.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:O_}=G_,U_={icon:$_,edit:function({attributes:e,context:t,setAttributes:n}){const{textAlign:o}=e,{postId:a}=t,[r,l]=(0,qe.useState)(),i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});(0,qe.useEffect)((()=>{if(!a)return;const e=a;Ha()({path:(0,st.addQueryArgs)("/wp/v2/comments",{post:a}),parse:!1}).then((t=>{e===a&&l(t.headers.get("X-WP-Total"))}))}),[a]);const s=a&&void 0!==r,c={...i.style,textDecoration:s?i.style?.textDecoration:void 0};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})),(0,qe.createElement)("div",{...i,style:c},s?r:(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Post Comments Count block: post not found."))))}},j_=()=>Qe({name:O_,metadata:G_,settings:U_});var q_=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"}));const W_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-form",title:"Post Comments Form",category:"theme",description:"Display a post's comments form.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-comments-form-editor",style:["wp-block-post-comments-form","wp-block-buttons","wp-block-button"]},{name:Z_}=W_,Q_={icon:q_,edit:function({attributes:e,context:t,setAttributes:n}){const{textAlign:o}=e,{postId:a,postType:r}=t,l=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})),(0,qe.createElement)("div",{...l},(0,qe.createElement)(Uo,{postId:a,postType:r})))}},K_=()=>Qe({name:Z_,metadata:W_,settings:Q_});var J_=function({context:e,attributes:t,setAttributes:n}){const{textAlign:o}=t,{postType:a,postId:r}=e,[l,i]=(0,qe.useState)(),s=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});(0,qe.useEffect)((()=>{if(!r)return;const e=r;Ha()({path:(0,st.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then((t=>{e===r&&i(t.headers.get("X-WP-Total"))}))}),[r]);const c=(0,ut.useSelect)((e=>e(ct.store).getEditedEntityRecord("postType",a,r)),[a,r]);if(!c)return null;const{link:u}=c;let m;if(void 0!==l){const e=parseInt(l);m=0===e?(0,Je.__)("No comments"):(0,Je.sprintf)((0,Je._n)("%s comment","%s comments",e),e.toLocaleString())}return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})),(0,qe.createElement)("div",{...s},u&&void 0!==m?(0,qe.createElement)("a",{href:u+"#comments",onClick:e=>e.preventDefault()},m):(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Post Comments Link block: post not found."))))};const Y_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comments-link",title:"Post Comments Link",category:"theme",description:"Displays the link to the current post comments.",textdomain:"default",usesContext:["postType","postId"],attributes:{textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:X_}=Y_,eb={edit:J_,icon:$_},tb=()=>Qe({name:X_,metadata:Y_,settings:eb});var nb=(0,qe.createElement)(We.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"}));function ob(e,t,n){return(0,ut.useSelect)((o=>o(ct.store).canUserEditEntityRecord(e,t,n)),[e,t,n])}function ab({userCanEdit:e,postType:t,postId:n}){const[,,o]=(0,ct.useEntityProp)("postType",t,"content",n),a=(0,Ye.useBlockProps)();return o?.protected&&!e?(0,qe.createElement)("div",{...a},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("This content is password protected."))):(0,qe.createElement)("div",{...a,dangerouslySetInnerHTML:{__html:o?.rendered}})}function rb({context:e={}}){const{postType:t,postId:n}=e,[o,a,r]=(0,ct.useEntityBlockEditor)("postType",t,{id:n}),l=(0,ut.useSelect)((e=>e(ct.store).getEntityRecord("postType",t,n)),[t,n]),i=!!l?.content?.raw||o?.length,s=(0,Ye.useInnerBlocksProps)((0,Ye.useBlockProps)({className:"entry-content"}),{value:o,onInput:a,onChange:r,template:i?void 0:[["core/paragraph"]]});return(0,qe.createElement)("div",{...s})}function lb(e){const{context:{queryId:t,postType:n,postId:o}={}}=e,a=ob("postType",n,o);if(void 0===a)return null;const r=Number.isFinite(t);return a&&!r?(0,qe.createElement)(rb,{...e}):(0,qe.createElement)(ab,{userCanEdit:a,postType:n,postId:o})}function ib({layoutClassNames:e}){const t=(0,Ye.useBlockProps)({className:e});return(0,qe.createElement)("div",{...t},(0,qe.createElement)("p",null,(0,Je.__)("This is the Post Content block, it will display all the blocks in any single post or page.")),(0,qe.createElement)("p",null,(0,Je.__)("That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.")),(0,qe.createElement)("p",null,(0,Je.__)("If there are any Custom Post Types registered at your site, the Post Content block can display the contents of those entries as well.")))}function sb(){const e=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block cannot be rendered inside itself.")))}const cb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-content",title:"Post Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],supports:{align:["wide","full"],html:!1,layout:!0,dimensions:{minHeight:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-content-editor"},{name:ub}=cb,mb={icon:nb,edit:function({context:e,attributes:t,__unstableLayoutClassNames:n}){const{postId:o,postType:a}=e,{layout:r={}}=t,l=(0,Ye.__experimentalUseHasRecursion)(o);return o&&a&&l?(0,qe.createElement)(sb,null):(0,qe.createElement)(Ye.__experimentalRecursionProvider,{uniqueId:o},o&&a?(0,qe.createElement)(lb,{context:e,layout:r}):(0,qe.createElement)(ib,{layoutClassNames:n}))}},pb=()=>Qe({name:ub,metadata:cb,settings:mb});function db(e){return/(?:^|[^\\])[aAgh]/.test(e)}const gb={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var hb=[gb];const _b=[{name:"post-date-modified",title:(0,Je.__)("Post Modified Date"),description:(0,Je.__)("Display a post's last updated date."),attributes:{displayType:"modified"},scope:["block","inserter"],isActive:e=>"modified"===e.displayType,icon:ga}];var bb=_b;const fb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-date",title:"Post Date",category:"theme",description:"Add the date of this post.",textdomain:"default",attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1},displayType:{type:"string",default:"date"}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:vb}=fb,yb={icon:ga,edit:function({attributes:{textAlign:e,format:t,isLink:n,displayType:o},context:{postId:a,postType:r,queryId:l},setAttributes:i}){const s=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${e}`]:e,"wp-block-post-date__modified-date":"modified"===o})}),[c,u]=(0,qe.useState)(null),m=(0,qe.useMemo)((()=>({anchor:c})),[c]),p=Number.isFinite(l),d=(0,ha.getSettings)(),[g=d.formats.date]=(0,ct.useEntityProp)("root","site","date_format"),[h=d.formats.time]=(0,ct.useEntityProp)("root","site","time_format"),[_,b]=(0,ct.useEntityProp)("postType",r,o,a),f=(0,ut.useSelect)((e=>r?e(ct.store).getPostType(r):null),[r]),v="date"===o?(0,Je.__)("Post Date"):(0,Je.__)("Post Modified Date");let y=_?(0,qe.createElement)("time",{dateTime:(0,ha.dateI18n)("c",_),ref:u},(0,ha.dateI18n)(t||g,_)):v;return n&&_&&(y=(0,qe.createElement)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault()},y)),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:e,onChange:e=>{i({textAlign:e})}}),_&&!p&&(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.Dropdown,{popoverProps:m,renderContent:({onClose:e})=>(0,qe.createElement)(Ye.__experimentalPublishDateTimePicker,{currentDate:_,onChange:b,is12Hour:db(h),onClose:e}),renderToggle:({isOpen:e,onToggle:t})=>(0,qe.createElement)(Ke.ToolbarButton,{"aria-expanded":e,icon:vi,title:(0,Je.__)("Change Date"),onClick:t,onKeyDown:n=>{e||n.keyCode!==un.DOWN||(n.preventDefault(),t())}})}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ye.__experimentalDateFormatPicker,{format:t,defaultFormat:g,onChange:e=>i({format:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:f?.labels.singular_name?(0,Je.sprintf)((0,Je.__)("Link to %s"),f.labels.singular_name.toLowerCase()):(0,Je.__)("Link to post"),onChange:()=>i({isLink:!n}),checked:n}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display last modified date"),onChange:e=>i({displayType:e?"modified":"date"}),checked:"modified"===o,help:(0,Je.__)("Only shows if the post has been modified")}))),(0,qe.createElement)("div",{...s},y))},deprecated:hb,variations:bb},kb=()=>Qe({name:vb,metadata:fb,settings:yb});var xb=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12.75 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.395.395 0 00.199-.166c.05-.083.114-.253.114-.584V7.2H8.8V4h3.95v5.333zM7.95 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.394.394 0 00.198-.166c.05-.083.115-.253.115-.584V7.2H4V4h3.95v5.333zM13 20H4v-1.5h9V20zM20 16H4v-1.5h16V16z"}));var wb={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,je.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,je.createBlock)("core/post-content")}]};const Cb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-excerpt",title:"Excerpt",category:"theme",description:"Display the excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"},{name:Eb}=Cb,Sb={icon:xb,transforms:wb,edit:function({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:n,excerptLength:o},setAttributes:a,isSelected:r,context:{postId:l,postType:i,queryId:s}}){const c=Number.isFinite(s),u=ob("postType",i,l),[m,p,{rendered:d,protected:g}={}]=(0,ct.useEntityProp)("postType",i,"excerpt",l),h=(0,ut.useSelect)((e=>"page"===i||!!e(ct.store).getPostType(i)?.supports?.excerpt),[i]),_=u&&!c&&h,b=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${e}`]:e})}),f=(0,Je._x)("words","Word count type. Do not translate!"),v=(0,qe.useMemo)((()=>{if(!d)return"";const e=(new window.DOMParser).parseFromString(d,"text/html");return e.body.textContent||e.body.innerText||""}),[d]);if(!i||!l)return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:e,onChange:e=>a({textAlign:e})})),(0,qe.createElement)("div",{...b},(0,qe.createElement)("p",null,(0,Je.__)("This block will display the excerpt."))));if(g&&!u)return(0,qe.createElement)("div",{...b},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("The content is currently protected and does not have the available excerpt.")));const y=(0,qe.createElement)(Ye.RichText,{className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,Je.__)("“Read more” link text"),placeholder:(0,Je.__)('Add "read more" link text'),value:t,onChange:e=>a({moreText:e}),withoutInteractiveFormatting:!0}),k=it()("wp-block-post-excerpt__excerpt",{"is-inline":!n}),x=(m||v).trim();let w="";if("words"===f)w=x.split(" ",o).join(" ");else if("characters_excluding_spaces"===f){const e=x.split("",o).join(""),t=e.length-e.replaceAll(" ","").length;w=x.split("",o+t).join("")}else"characters_including_spaces"===f&&(w=x.split("",o).join(""));const C=w!==x,E=_?(0,qe.createElement)(Ye.RichText,{className:k,"aria-label":(0,Je.__)("Excerpt text"),value:r?x:(C?w+"…":x)||(0,Je.__)("No excerpt found"),onChange:p,tagName:"p"}):(0,qe.createElement)("p",{className:k},C?w+"…":x||(0,Je.__)("No excerpt found"));return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:e,onChange:e=>a({textAlign:e})})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show link on new line"),checked:n,onChange:e=>a({showMoreOnNewLine:e})}),(0,qe.createElement)(Ke.RangeControl,{label:(0,Je.__)("Max number of words"),value:o,onChange:e=>{a({excerptLength:e})},min:"10",max:"100"}))),(0,qe.createElement)("div",{...b},E,!n&&" ",n?(0,qe.createElement)("p",{className:"wp-block-post-excerpt__more-text"},y):y))}},Bb=()=>Qe({name:Eb,metadata:Cb,settings:Sb});var Tb=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"}));const Nb=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"cover",label:(0,Je._x)("Cover","Scale option for Image dimension control")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"contain",label:(0,Je._x)("Contain","Scale option for Image dimension control")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"fill",label:(0,Je._x)("Fill","Scale option for Image dimension control")})),Pb="cover",Ib={cover:(0,Je.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,Je.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,Je.__)("Image will be stretched and distorted to completely fill the space.")};var Mb=({clientId:e,attributes:{aspectRatio:t,width:n,height:o,scale:a,sizeSlug:r},setAttributes:l,imageSizeOptions:i=[]})=>{const s=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["px","%","vw","em","rem"]}),c=(e,t)=>{const n=parseFloat(t);isNaN(n)&&t||l({[e]:n<0?"0":t})},u=(0,Je._x)("Scale","Image scaling options"),m=o||t&&"auto"!==t;return(0,qe.createElement)(Ye.InspectorControls,{group:"dimensions"},(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Je.__)("Aspect ratio"),onDeselect:()=>l({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Aspect ratio"),value:t,options:[{label:(0,Je.__)("Original"),value:"auto"},{label:(0,Je.__)("Square"),value:"1"},{label:(0,Je.__)("16:9"),value:"16/9"},{label:(0,Je.__)("4:3"),value:"4/3"},{label:(0,Je.__)("3:2"),value:"3/2"},{label:(0,Je.__)("9:16"),value:"9/16"},{label:(0,Je.__)("3:4"),value:"3/4"},{label:(0,Je.__)("2:3"),value:"2/3"}],onChange:e=>l({aspectRatio:e})})),(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!o,label:(0,Je.__)("Height"),onDeselect:()=>l({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Height"),labelPosition:"top",value:o||"",min:0,onChange:e=>c("height",e),units:s})),(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!n,label:(0,Je.__)("Width"),onDeselect:()=>l({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Width"),labelPosition:"top",value:n||"",min:0,onChange:e=>c("width",e),units:s})),m&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!a&&a!==Pb,label:u,onDeselect:()=>l({scale:Pb}),resetAllFilter:()=>({scale:Pb}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:u,value:a,help:Ib[a],onChange:e=>l({scale:e}),isBlock:!0},Nb)),!!i.length&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Je.__)("Resolution"),onDeselect:()=>l({sizeSlug:void 0}),resetAllFilter:()=>({sizeSlug:void 0}),isShownByDefault:!1,panelId:e},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Resolution"),value:r||"full",options:i,onChange:e=>l({sizeSlug:e}),help:(0,Je.__)("Select the size of the source image.")})))};var zb=(0,Tt.compose)([(0,Ye.withColors)({overlayColor:"background-color"})])((({clientId:e,attributes:t,setAttributes:n,overlayColor:o,setOverlayColor:a})=>{const{dimRatio:r}=t,{gradientClass:l,gradientValue:i,setGradient:s}=(0,Ye.__experimentalUseGradient)(),c=(0,Ye.__experimentalUseMultipleOriginColorsAndGradients)(),u=(0,Ye.__experimentalUseBorderProps)(t),m={backgroundColor:o.color,backgroundImage:i,...u.style};return c.hasColorsOrGradients?(0,qe.createElement)(qe.Fragment,null,!!r&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-post-featured-image__overlay",(p=r,void 0===p?null:"has-background-dim-"+10*Math.round(p/10)),{[o.class]:o.class,"has-background-dim":void 0!==r,"has-background-gradient":i,[l]:l},u.className),style:m}),(0,qe.createElement)(Ye.InspectorControls,{group:"color"},(0,qe.createElement)(Ye.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o.color,gradientValue:i,label:(0,Je.__)("Overlay"),onColorChange:a,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0})}],panelId:e,...c}),(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>void 0!==r,label:(0,Je.__)("Overlay opacity"),onDeselect:()=>n({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Overlay opacity"),value:r,onChange:e=>n({dimRatio:e}),min:0,max:100,step:10,required:!0})))):null;var p}));const Rb=["image"];const Hb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-featured-image",title:"Post Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1},aspectRatio:{type:"string"},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},sizeSlug:{type:"string"},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},dimRatio:{type:"number",default:0},gradient:{type:"string"},customGradient:{type:"string"}},usesContext:["postId","postType","queryId"],supports:{align:["left","right","center","wide","full"],color:{__experimentalDuotone:"img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",text:!1,background:!1},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSelector:"img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay",__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},html:!1,spacing:{margin:!0,padding:!0}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"},{name:Lb}=Hb,Ab={icon:Tb,edit:function({clientId:e,attributes:t,setAttributes:n,context:{postId:o,postType:a,queryId:r}}){const l=Number.isFinite(r),{isLink:i,aspectRatio:s,height:c,width:u,scale:m,sizeSlug:p,rel:d,linkTarget:g}=t,[h,_]=(0,ct.useEntityProp)("postType",a,"featured_media",o),{media:b,postType:f}=(0,ut.useSelect)((e=>{const{getMedia:t,getPostType:n}=e(ct.store);return{media:h&&t(h,{context:"view"}),postType:a&&n(a)}}),[h,a]),v=function(e,t){return e?.media_details?.sizes?.[t]?.source_url||e?.source_url}(b,p),y=(0,ut.useSelect)((e=>e(Ye.store).getSettings().imageSizes),[]).filter((({slug:e})=>b?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e}))),k=(0,Ye.useBlockProps)({style:{width:u,height:c,aspectRatio:s}}),x=(0,Ye.__experimentalUseBorderProps)(t),w=e=>(0,qe.createElement)(Ke.Placeholder,{className:it()("block-editor-media-placeholder",x.className),withIllustration:!0,style:{height:!!s&&"100%",width:!!s&&"100%",...x.style}},e),C=e=>{e?.id&&_(e.id)},{createErrorNotice:E}=(0,ut.useDispatch)(Bt.store),S=e=>{E(e,{type:"snackbar"})},B=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Mb,{clientId:e,attributes:t,setAttributes:n,imageSizeOptions:y}),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:f?.labels.singular_name?(0,Je.sprintf)((0,Je.__)("Link to %s"),f.labels.singular_name):(0,Je.__)("Link to post"),onChange:()=>n({isLink:!i}),checked:i}),i&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===g}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:d,onChange:e=>n({rel:e})})))));let T;if(!h&&(l||!o))return(0,qe.createElement)(qe.Fragment,null,B,(0,qe.createElement)("div",{...k},w(),(0,qe.createElement)(zb,{attributes:t,setAttributes:n,clientId:e})));const N=(0,Je.__)("Add a featured image"),P={...x.style,height:s?"100%":c,width:!!s&&"100%",objectFit:!(!c&&!s)&&m};return T=h?b?(0,qe.createElement)("img",{className:x.className,src:v,alt:b.alt_text?(0,Je.sprintf)((0,Je.__)("Featured image: %s"),b.alt_text):(0,Je.__)("Featured image"),style:P}):w():(0,qe.createElement)(Ye.MediaPlaceholder,{onSelect:C,accept:"image/*",allowedTypes:Rb,onError:S,placeholder:w,mediaLibraryButton:({open:e})=>(0,qe.createElement)(Ke.Button,{icon:Xu,variant:"primary",label:N,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}),(0,qe.createElement)(qe.Fragment,null,B,!!b&&!l&&(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:h,mediaURL:v,allowedTypes:Rb,accept:"image/*",onSelect:C,onError:S},(0,qe.createElement)(Ke.MenuItem,{onClick:()=>_(0)},(0,Je.__)("Reset")))),(0,qe.createElement)("figure",{...k},T,(0,qe.createElement)(zb,{attributes:t,setAttributes:n,clientId:e})))}},Vb=()=>Qe({name:Lb,metadata:Hb,settings:Ab});var Db=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}));var Fb=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"}));const $b=[{isDefault:!0,name:"post-next",title:(0,Je.__)("Next post"),description:(0,Je.__)("Displays the post link that follows the current post."),icon:Db,attributes:{type:"next"},scope:["inserter","transform"]},{name:"post-previous",title:(0,Je.__)("Previous post"),description:(0,Je.__)("Displays the post link that precedes the current post."),icon:Fb,attributes:{type:"previous"},scope:["inserter","transform"]}];$b.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Gb=$b;const Ob={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1},arrow:{type:"string",default:"none"}},supports:{reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-post-navigation-link"},{name:Ub}=Ob,jb={edit:function({attributes:{type:e,label:t,showTitle:n,textAlign:o,linkLabel:a,arrow:r},setAttributes:l}){const i="next"===e;let s=i?(0,Je.__)("Next"):(0,Je.__)("Previous");const c={none:"",arrow:i?"→":"←",chevron:i?"»":"«"}[r];n&&(s=i?(0,Je.__)("Next: "):(0,Je.__)("Previous: "));const u=i?(0,Je.__)("Next post"):(0,Je.__)("Previous post"),m=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display the title as a link"),help:(0,Je.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!n,onChange:()=>l({showTitle:!n})}),n&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Include the label as part of the link"),checked:!!a,onChange:()=>l({linkLabel:!a})}),(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Arrow"),value:r,onChange:e=>{l({arrow:e})},help:(0,Je.__)("A decorative arrow for the next and previous link."),isBlock:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"none",label:(0,Je._x)("None","Arrow option for Next/Previous link")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Je._x)("Arrow","Arrow option for Next/Previous link")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Je._x)("Chevron","Arrow option for Next/Previous link")})))),(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:o,onChange:e=>{l({textAlign:e})}})),(0,qe.createElement)("div",{...m},!i&&c&&(0,qe.createElement)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${r}`},c),(0,qe.createElement)(Ye.RichText,{tagName:"a","aria-label":u,placeholder:s,value:t,allowedFormats:["core/bold","core/italic"],onChange:e=>l({label:e})}),n&&(0,qe.createElement)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault()},(0,Je.__)("An example title")),i&&c&&(0,qe.createElement)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${r}`,"aria-hidden":!0},c)))},variations:Gb},qb=()=>Qe({name:Ub,metadata:Ob,settings:jb}),Wb=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];function Zb(){const e=(0,Ye.useInnerBlocksProps)({className:"wp-block-post"},{template:Wb,__unstableDisableLayoutClassNames:!0});return(0,qe.createElement)("li",{...e})}const Qb=(0,qe.memo)((function({blocks:e,blockContextId:t,isHidden:n,setActiveBlockContextId:o}){const a=(0,Ye.__experimentalUseBlockPreview)({blocks:e,props:{className:"wp-block-post"}}),r=()=>{o(t)},l={display:n?"none":void 0};return(0,qe.createElement)("li",{...a,tabIndex:0,role:"button",onClick:r,onKeyPress:r,style:l})}));const Kb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-template",title:"Post Template",category:"theme",parent:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","queryContext","displayLayout","templateSlug","previewPostType"],supports:{reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0}}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"},{name:Jb}=Kb,Yb={icon:za,edit:function({setAttributes:e,clientId:t,context:{query:{perPage:n,offset:o=0,postType:a,order:r,orderBy:l,author:i,search:s,exclude:c,sticky:u,inherit:m,taxQuery:p,parents:d,pages:g,...h}={},queryContext:_=[{page:1}],templateSlug:b,previewPostType:f},attributes:{layout:v},__unstableLayoutClassNames:y}){const{type:k,columnCount:x=3}=v||{},[{page:w}]=_,[C,E]=(0,qe.useState)(),{posts:S,blocks:B}=(0,ut.useSelect)((e=>{const{getEntityRecords:g,getTaxonomies:_}=e(ct.store),{getBlocks:v}=e(Ye.store),y=_({type:a,per_page:-1,context:"view"}),k=m&&b?.startsWith("category-")&&g("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:b.replace("category-","")}),x={offset:n?n*(w-1)+o:0,order:r,orderby:l};if(p&&!m){const e=Object.entries(p).reduce(((e,[t,n])=>{const o=y?.find((({slug:e})=>e===t));return o?.rest_base&&(e[o?.rest_base]=n),e}),{});Object.keys(e).length&&Object.assign(x,e)}n&&(x.per_page=n),i&&(x.author=i),s&&(x.search=s),c?.length&&(x.exclude=c),d?.length&&(x.parent=d),u&&(x.sticky="only"===u),m&&(b?.startsWith("archive-")?(x.postType=b.replace("archive-",""),a=x.postType):k&&(x.categories=k[0]?.id));return{posts:g("postType",f||a,{...x,...h}),blocks:v(t)}}),[n,w,o,r,l,t,i,s,a,c,u,m,b,p,d,h,f]),T=(0,qe.useMemo)((()=>S?.map((e=>({postType:e.type,postId:e.id})))),[S]),N=(0,Ye.useBlockProps)({className:it()(y,{[`columns-${x}`]:"grid"===k&&x})});if(!S)return(0,qe.createElement)("p",{...N},(0,qe.createElement)(Ke.Spinner,null));if(!S.length)return(0,qe.createElement)("p",{...N}," ",(0,Je.__)("No results found."));const P=t=>e({layout:{...v,...t}}),I=[{icon:Cm,title:(0,Je.__)("List view"),onClick:()=>P({type:"default"}),isActive:"default"===k||"constrained"===k},{icon:Jc,title:(0,Je.__)("Grid view"),onClick:()=>P({type:"grid",columnCount:x}),isActive:"grid"===k}];return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,{controls:I})),(0,qe.createElement)("ul",{...N},T&&T.map((e=>(0,qe.createElement)(Ye.BlockContextProvider,{key:e.postId,value:e},e.postId===(C||T[0]?.postId)?(0,qe.createElement)(Zb,null):null,(0,qe.createElement)(Qb,{blocks:B,blockContextId:e.postId,setActiveBlockContextId:E,isHidden:e.postId===(C||T[0]?.postId)}))))))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},Xb=()=>Qe({name:Jb,metadata:Kb,settings:Yb});var ef=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"}));const tf=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];const nf=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));const of={category:ef,post_tag:nf};function af(e,t){if("core/post-terms"!==t)return e;const n=e.variations.map((e=>{var t;return{...e,icon:null!==(t=of[e.name])&&void 0!==t?t:ef}}));return{...e,variations:n}}const rf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-terms",title:"Post Terms",category:"theme",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:""},suffix:{type:"string",default:""}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-post-terms"},{name:lf}=rf,sf={icon:ef,edit:function({attributes:e,clientId:t,context:n,isSelected:o,setAttributes:a,insertBlocksAfter:r}){const{term:l,textAlign:i,separator:s,prefix:c,suffix:u}=e,{postId:m,postType:p}=n,d=(0,ut.useSelect)((e=>{if(!l)return{};const{getTaxonomy:t}=e(ct.store),n=t(l);return n?.visibility?.publicly_queryable?n:{}}),[l]),{postTerms:g,hasPostTerms:h,isLoading:_}=function({postId:e,term:t}){const{slug:n}=t;return(0,ut.useSelect)((o=>{const a=t?.visibility?.publicly_queryable;if(!a)return{postTerms:[],_isLoading:!1,hasPostTerms:!1};const{getEntityRecords:r,isResolving:l}=o(ct.store),i=["taxonomy",n,{post:e,per_page:-1,context:"view"}],s=r(...i);return{postTerms:s,isLoading:l("getEntityRecords",i),hasPostTerms:!!s?.length}}),[e,t?.visibility?.publicly_queryable,n])}({postId:m,term:d}),b=m&&p,f=(0,Ye.useBlockDisplayInformation)(t),v=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${i}`]:i,[`taxonomy-${l}`]:l})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:i,onChange:e=>{a({textAlign:e})}})),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,Je.__)("Separator"),value:s||"",onChange:e=>{a({separator:e})},help:(0,Je.__)("Enter character(s) used to separate terms.")})),(0,qe.createElement)("div",{...v},_&&b&&(0,qe.createElement)(Ke.Spinner,null),!_&&h&&(o||c)&&(0,qe.createElement)(Ye.RichText,{allowedFormats:tf,className:"wp-block-post-terms__prefix",multiline:!1,"aria-label":(0,Je.__)("Prefix"),placeholder:(0,Je.__)("Prefix")+" ",value:c,onChange:e=>a({prefix:e}),tagName:"span"}),(!b||!l)&&(0,qe.createElement)("span",null,f.title),b&&!_&&h&&g.map((e=>(0,qe.createElement)("a",{key:e.id,href:e.link,onClick:e=>e.preventDefault()},(0,On.decodeEntities)(e.name)))).reduce(((e,t)=>(0,qe.createElement)(qe.Fragment,null,e,(0,qe.createElement)("span",{className:"wp-block-post-terms__separator"},s||" "),t))),b&&!_&&!h&&(d?.labels?.no_terms||(0,Je.__)("Term items not found.")),!_&&h&&(o||u)&&(0,qe.createElement)(Ye.RichText,{allowedFormats:tf,className:"wp-block-post-terms__suffix",multiline:!1,"aria-label":(0,Je.__)("Suffix"),placeholder:" "+(0,Je.__)("Suffix"),value:u,onChange:e=>a({suffix:e}),tagName:"span",__unstableOnSplitAtEnd:()=>r((0,je.createBlock)((0,je.getDefaultBlockName)()))})))}},cf=()=>((0,Zl.addFilter)("blocks.registerBlockType","core/template-part",af),Qe({name:lf,metadata:rf,settings:sf}));var uf=window.wp.wordcount;var mf=function({attributes:e,setAttributes:t,context:n}){const{textAlign:o}=e,{postId:a,postType:r}=n,[l]=(0,ct.useEntityProp)("postType",r,"content",a),[i]=(0,ct.useEntityBlockEditor)("postType",r,{id:a}),s=(0,qe.useMemo)((()=>{let e;e=l instanceof Function?l({blocks:i}):i?(0,je.__unstableSerializeAndClean)(i):l;const t=(0,Je._x)("words","Word count type. Do not translate!"),n=Math.max(1,Math.round((0,uf.count)(e,t)/189));return(0,Je.sprintf)((0,Je._n)("%d minute","%d minutes",n),n)}),[l,i]),c=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)("div",{...c},s))},pf=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"}));const df={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/post-time-to-read",title:"Time To Read",category:"theme",description:"Show minutes required to finish reading the post.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:gf}=df,hf={icon:pf,edit:mf},_f=()=>Qe({name:gf,metadata:df,settings:hf}),{useBlockEditingMode:bf}=Yt(Ye.privateApis);const ff={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var vf=[ff];const yf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-title",title:"Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},style:"wp-block-post-title"},{name:kf}=yf,xf={icon:br,edit:function({attributes:{level:e,textAlign:t,isLink:n,rel:o,linkTarget:a},setAttributes:r,context:{postType:l,postId:i,queryId:s},insertBlocksAfter:c}){const u="h"+e,m=ob("postType",!Number.isFinite(s)&&l,i),[p="",d,g]=(0,ct.useEntityProp)("postType",l,"title",i),[h]=(0,ct.useEntityProp)("postType",l,"link",i),_=()=>{c((0,je.createBlock)((0,je.getDefaultBlockName)()))},b=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${t}`]:t})}),f=bf();let v=(0,qe.createElement)(u,{...b},(0,Je.__)("Title"));return l&&i&&(v=m?(0,qe.createElement)(Ye.PlainText,{tagName:u,placeholder:(0,Je.__)("No Title"),value:p,onChange:d,__experimentalVersion:2,__unstableOnSplitAtEnd:_,...b}):(0,qe.createElement)(u,{...b,dangerouslySetInnerHTML:{__html:g?.rendered}})),n&&l&&i&&(v=m?(0,qe.createElement)(u,{...b},(0,qe.createElement)(Ye.PlainText,{tagName:"a",href:h,target:a,rel:o,placeholder:p.length?null:(0,Je.__)("No Title"),value:p,onChange:d,__experimentalVersion:2,__unstableOnSplitAtEnd:_})):(0,qe.createElement)(u,{...b},(0,qe.createElement)("a",{href:h,target:a,rel:o,onClick:e=>e.preventDefault(),dangerouslySetInnerHTML:{__html:g?.rendered}}))),(0,qe.createElement)(qe.Fragment,null,"default"===f&&(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.HeadingLevelDropdown,{value:e,onChange:e=>r({level:e})}),(0,qe.createElement)(Ye.AlignmentControl,{value:t,onChange:e=>{r({textAlign:e})}})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Make title a link"),onChange:()=>r({isLink:!n}),checked:n}),n&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:o,onChange:e=>r({rel:e})})))),v)},deprecated:vf},wf=()=>Qe({name:kf,metadata:yf,settings:xf});var Cf=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));const Ef={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:({content:e,anchor:t})=>(0,je.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,je.createBlock)("core/paragraph",{...e,content:e.content.replace(/\n/g,"<br>")})},{type:"block",blocks:["core/code"],transform:e=>(0,je.createBlock)("core/code",e)}]};var Sf=Ef;const Bf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-preformatted"},{name:Tf}=Bf,Nf={icon:Cf,example:{attributes:{content:(0,Je.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:Sf,edit:function({attributes:e,mergeBlocks:t,setAttributes:n,onRemove:o,style:a}){const{content:r}=e,l=(0,Ye.useBlockProps)({style:a});return(0,qe.createElement)(Ye.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:r,onChange:e=>{n({content:e})},onRemove:o,"aria-label":(0,Je.__)("Preformatted text"),placeholder:(0,Je.__)("Write preformatted text…"),onMerge:t,...l,__unstablePastePlainText:!0})},save:function({attributes:e}){const{content:t}=e;return(0,qe.createElement)("pre",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.RichText.Content,{value:t}))},merge(e,t){return{content:e.content+t.content}}},Pf=()=>Qe({name:Tf,metadata:Bf,settings:Nf});var If=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"}));const Mf="is-style-solid-color",zf={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function Rf(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}function Hf(e){return(0,Cn.toHTMLString)({value:(0,Cn.replace)((0,Cn.create)({html:e,multilineTag:"p"}),new RegExp(Cn.__UNSTABLE_LINE_SEPARATOR,"g"),"\n")})}const Lf={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,citation:n,value:o}=e,a=!Ye.RichText.isEmpty(n);return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:it()({[`has-text-align-${t}`]:t})})},(0,qe.createElement)("blockquote",null,(0,qe.createElement)(Ye.RichText.Content,{value:o,multiline:!0}),a&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:n})))},migrate({value:e,...t}){return{value:Hf(e),...t}}},Af={attributes:{...zf},save({attributes:e}){const{mainColor:t,customMainColor:n,customTextColor:o,textColor:a,value:r,citation:l,className:i}=e,s=i?.includes(Mf);let c,u;if(s){const e=(0,Ye.getColorClassName)("background-color",t);c=it()({"has-background":e||n,[e]:e}),u={backgroundColor:e?void 0:n}}else n&&(u={borderColor:n});const m=(0,Ye.getColorClassName)("color",a),p=it()({"has-text-color":a||o,[m]:m}),d=m?void 0:{color:o};return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:c,style:u})},(0,qe.createElement)("blockquote",{className:p,style:d},(0,qe.createElement)(Ye.RichText.Content,{value:r,multiline:!0}),!Ye.RichText.isEmpty(l)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,mainColor:n,customMainColor:o,customTextColor:a,...r}){const l=t?.includes(Mf);let i;return o&&(i=l?{color:{background:o}}:{border:{color:o}}),a&&i&&(i.color={...i.color,text:a}),{value:Hf(e),className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:i,...r}}},Vf={attributes:{...zf,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:o,customTextColor:a,value:r,citation:l,className:i,figureStyle:s}=e,c=i?.includes(Mf);let u,m;if(c){const e=(0,Ye.getColorClassName)("background-color",t);u=it()({"has-background":e||n,[e]:e}),m={backgroundColor:e?void 0:n}}else if(n)m={borderColor:n};else if(t){m={borderColor:Rf(s)}}const p=(0,Ye.getColorClassName)("color",o),d=(o||a)&&it()("has-text-color",{[p]:p}),g=p?void 0:{color:a};return(0,qe.createElement)("figure",{className:u,style:m},(0,qe.createElement)("blockquote",{className:d,style:g},(0,qe.createElement)(Ye.RichText.Content,{value:r,multiline:!0}),!Ye.RichText.isEmpty(l)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,figureStyle:n,mainColor:o,customMainColor:a,customTextColor:r,...l}){const i=t?.includes(Mf);let s;if(a&&(s=i?{color:{background:a}}:{border:{color:a}}),r&&s&&(s.color={...s.color,text:r}),!i&&o&&n){const o=Rf(n);if(o)return{value:Hf(e),...l,className:t,style:{border:{color:o}}}}return{value:Hf(e),className:t,backgroundColor:i?o:void 0,borderColor:i?void 0:o,textAlign:i?"left":void 0,style:s,...l}}},Df={attributes:zf,save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:o,customTextColor:a,value:r,citation:l,className:i}=e,s=i?.includes(Mf);let c,u;if(s)c=(0,Ye.getColorClassName)("background-color",t),c||(u={backgroundColor:n});else if(n)u={borderColor:n};else if(t){var m;const e=null!==(m=(0,ut.select)(Ye.store).getSettings().colors)&&void 0!==m?m:[];u={borderColor:(0,Ye.getColorObjectByAttributeValues)(e,t).color}}const p=(0,Ye.getColorClassName)("color",o),d=o||a?it()("has-text-color",{[p]:p}):void 0,g=p?void 0:{color:a};return(0,qe.createElement)("figure",{className:c,style:u},(0,qe.createElement)("blockquote",{className:d,style:g},(0,qe.createElement)(Ye.RichText.Content,{value:r,multiline:!0}),!Ye.RichText.isEmpty(l)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,mainColor:n,customMainColor:o,customTextColor:a,...r}){const l=t?.includes(Mf);let i={};return o&&(i=l?{color:{background:o}}:{border:{color:o}}),a&&i&&(i.color={...i.color,text:a}),{value:Hf(e),className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:i,...r}}},Ff={attributes:{...zf},save({attributes:e}){const{value:t,citation:n}=e;return(0,qe.createElement)("blockquote",null,(0,qe.createElement)(Ye.RichText.Content,{value:t,multiline:!0}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:n}))},migrate({value:e,...t}){return{value:Hf(e),...t}}},$f={attributes:{...zf,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:n,align:o}=e;return(0,qe.createElement)("blockquote",{className:`align${o}`},(0,qe.createElement)(Ye.RichText.Content,{value:t,multiline:!0}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"footer",value:n}))},migrate({value:e,...t}){return{value:Hf(e),...t}}};var Gf=[Lf,Af,Vf,Df,Ff,$f];const Of="web"===qe.Platform.OS;var Uf=function({attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:o}){const{textAlign:a,citation:r,value:l}=e,i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${a}`]:a})}),s=!Ye.RichText.isEmpty(r)||n;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)("figure",{...i},(0,qe.createElement)("blockquote",null,(0,qe.createElement)(Ye.RichText,{identifier:"value",tagName:"p",value:l,onChange:e=>t({value:e}),"aria-label":(0,Je.__)("Pullquote text"),placeholder:(0,Je.__)("Add quote"),textAlign:"center"}),s&&(0,qe.createElement)(Ye.RichText,{identifier:"citation",tagName:Of?"cite":void 0,style:{display:"block"},value:r,"aria-label":(0,Je.__)("Pullquote citation text"),placeholder:(0,Je.__)("Add citation"),onChange:e=>t({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>o((0,je.createBlock)((0,je.getDefaultBlockName)()))}))))};const jf={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,je.createBlock)("core/pullquote",{value:(0,Cn.toHTMLString)({value:(0,Cn.join)(e.map((({content:e})=>(0,Cn.create)({html:e}))),"\n")}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,je.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const n=[];return e&&n.push((0,je.createBlock)("core/paragraph",{content:e})),t&&n.push((0,je.createBlock)("core/paragraph",{content:t})),0===n.length?(0,je.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,je.createBlock)("core/heading",{content:t});const n=(0,je.createBlock)("core/heading",{content:e});return t?[n,(0,je.createBlock)("core/heading",{content:t})]:n}}]};var qf=jf;const Wf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:Zf}=Wf,Qf={icon:If,example:{attributes:{value:(0,Je.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,Je.__)("Matt Mullenweg")}},transforms:qf,edit:Uf,save:function({attributes:e}){const{textAlign:t,citation:n,value:o}=e,a=!Ye.RichText.isEmpty(n);return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:it()({[`has-text-align-${t}`]:t})})},(0,qe.createElement)("blockquote",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",value:o}),a&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:n})))},deprecated:Gf},Kf=()=>Qe({name:Zf,metadata:Wf,settings:Qf});var Jf=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"}));var Yf=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const{name:Xf}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout"},supports:{align:["wide","full"],html:!1,layout:!0},editorStyle:"wp-block-query-editor"},ev=e=>{const t=e?.reduce(((e,t)=>{const{mapById:n,mapByName:o,names:a}=e;return n[t.id]=t,o[t.name]=t,a.push(t.name),e}),{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},tv=(e,t)=>{const n=t.split(".");let o=e;return n.forEach((e=>{o=o?.[e]})),o},nv=(e,t)=>(e||[]).map((e=>({...e,name:(0,On.decodeEntities)(tv(e,t))}))),ov=()=>{const e=(0,ut.useSelect)((e=>{const{getPostTypes:t}=e(ct.store),n=["attachment"],o=t({per_page:-1})?.filter((({viewable:e,slug:t})=>e&&!n.includes(t)));return o}),[]);return{postTypesTaxonomiesMap:(0,qe.useMemo)((()=>{if(e?.length)return e.reduce(((e,t)=>(e[t.slug]=t.taxonomies,e)),{})}),[e]),postTypesSelectOptions:(0,qe.useMemo)((()=>(e||[]).map((({labels:e,slug:t})=>({label:e.singular_name,value:t})))),[e])}},av=e=>(0,ut.useSelect)((t=>{const{getTaxonomies:n}=t(ct.store);return n({type:e,per_page:-1,context:"view"})}),[e]);function rv(e,t){return!e||e.includes(t)}function lv(e,t){const n=(0,ut.useSelect)((e=>e(je.store).getActiveBlockVariation(Xf,t)?.name),[t]),o=`${Xf}/${n}`,a=(0,ut.useSelect)((t=>{if(!n)return;const{getBlockRootClientId:a,getPatternsByBlockTypes:r}=t(Ye.store),l=a(e);return r(o,l)}),[e,n]);return a?.length?o:Xf}const iv=(e,t)=>(0,ut.useSelect)((n=>{const{getBlockRootClientId:o,getPatternsByBlockTypes:a}=n(Ye.store),r=o(e);return a(t,r)}),[t,e]);function sv({attributes:{query:e},setQuery:t,openPatternSelectionModal:n,name:o,clientId:a}){const r=!!iv(a,o).length,l=(0,Tt.useInstanceId)(sv,"blocks-query-pagination-max-page-input");return(0,qe.createElement)(qe.Fragment,null,!e.inherit&&(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.Dropdown,{contentClassName:"block-library-query-toolbar__popover",renderToggle:({onToggle:e})=>(0,qe.createElement)(Ke.ToolbarButton,{icon:Yf,label:(0,Je.__)("Display settings"),onClick:e}),renderContent:()=>(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.BaseControl,null,(0,qe.createElement)(Ke.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,Je.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||t({perPage:e})},step:"1",value:e.perPage,isDragEnabled:!1})),(0,qe.createElement)(Ke.BaseControl,null,(0,qe.createElement)(Ke.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,Je.__)("Offset"),labelPosition:"edge",min:0,max:100,onChange:e=>{isNaN(e)||e<0||e>100||t({offset:e})},step:"1",value:e.offset,isDragEnabled:!1})),(0,qe.createElement)(Ke.BaseControl,{id:l,help:(0,Je.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")},(0,qe.createElement)(Ke.__experimentalNumberControl,{id:l,__unstableInputWidth:"60px",label:(0,Je.__)("Max page to show"),labelPosition:"edge",min:0,onChange:e=>{isNaN(e)||e<0||t({pages:e})},step:"1",value:e.pages,isDragEnabled:!1})))})),r&&(0,qe.createElement)(Ke.ToolbarGroup,{className:"wp-block-template-part__block-control-group"},(0,qe.createElement)(Ke.ToolbarButton,{onClick:n},(0,Je.__)("Replace"))))}const cv=[{label:(0,Je.__)("Newest to oldest"),value:"date/desc"},{label:(0,Je.__)("Oldest to newest"),value:"date/asc"},{label:(0,Je.__)("A → Z"),value:"title/asc"},{label:(0,Je.__)("Z → A"),value:"title/desc"}];var uv=function({order:e,orderBy:t,onChange:n}){return(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Order by"),value:`${t}/${e}`,options:cv,onChange:e=>{const[t,o]=e.split("/");n({order:o,orderBy:t})}})};const mv={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var pv=function({value:e,onChange:t}){const n=(0,ut.useSelect)((e=>{const{getUsers:t}=e(ct.store);return t(mv)}),[]);if(!n)return null;const o=ev(n),a=(e?e.toString().split(","):[]).reduce(((e,t)=>{const n=o.mapById[t];return n&&e.push({id:t,value:n.name}),e}),[]);return(0,qe.createElement)(Ke.FormTokenField,{label:(0,Je.__)("Authors"),value:a,suggestions:o.names,onChange:e=>{const n=Array.from(e.reduce(((e,t)=>{const n=((e,t)=>{const n=t?.id||e[t]?.id;if(n)return n})(o.mapByName,t);return n&&e.add(n),e}),new Set));t({author:n.join(",")})},__experimentalShowHowTo:!1})};const dv=[],gv={order:"asc",_fields:"id,title",context:"view"};var hv=function({parents:e,postType:t,onChange:n}){const[o,a]=(0,qe.useState)(""),[r,l]=(0,qe.useState)(dv),[i,s]=(0,qe.useState)(dv),c=(0,Tt.useDebounce)(a,250),{searchResults:u,searchHasResolved:m}=(0,ut.useSelect)((n=>{if(!o)return{searchResults:dv,searchHasResolved:!0};const{getEntityRecords:a,hasFinishedResolution:r}=n(ct.store),l=["postType",t,{...gv,search:o,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:a(...l),searchHasResolved:r("getEntityRecords",l)}}),[o,e]),p=(0,ut.useSelect)((n=>{if(!e?.length)return dv;const{getEntityRecords:o}=n(ct.store);return o("postType",t,{...gv,include:e,per_page:e.length})}),[e]);(0,qe.useEffect)((()=>{if(e?.length||l(dv),!p?.length)return;const t=ev(nv(p,"title.rendered")),n=e.reduce(((e,n)=>{const o=t.mapById[n];return o&&e.push({id:n,value:o.name}),e}),[]);l(n)}),[e,p]);const d=(0,qe.useMemo)((()=>u?.length?ev(nv(u,"title.rendered")):dv),[u]);return(0,qe.useEffect)((()=>{m&&s(d.names)}),[d.names,m]),(0,qe.createElement)(Ke.FormTokenField,{label:(0,Je.__)("Parents"),value:r,onInputChange:c,suggestions:i,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const n=((e,t)=>{const n=t?.id||e?.[t]?.id;if(n)return n})(d.mapByName,t);return n&&e.add(n),e}),new Set));s(dv),n({parents:t})},__experimentalShowHowTo:!1})};const _v=[],bv={order:"asc",_fields:"id,name",context:"view"},fv=(e,t)=>{const n=t?.id||e?.find((e=>e.name===t))?.id;if(n)return n;const o=t.toLocaleLowerCase();return e?.find((e=>e.name.toLocaleLowerCase()===o))?.id};function vv({onChange:e,query:t}){const{postType:n,taxQuery:o}=t,a=av(n);return a&&0!==a.length?(0,qe.createElement)(qe.Fragment,null,a.map((t=>{const n=o?.[t.slug]||[];return(0,qe.createElement)(yv,{key:t.slug,taxonomy:t,termIds:n,onChange:n=>e({taxQuery:{...o,[t.slug]:n}})})}))):null}function yv({taxonomy:e,termIds:t,onChange:n}){const[o,a]=(0,qe.useState)(""),[r,l]=(0,qe.useState)(_v),[i,s]=(0,qe.useState)(_v),c=(0,Tt.useDebounce)(a,250),{searchResults:u,searchHasResolved:m}=(0,ut.useSelect)((n=>{if(!o)return{searchResults:_v,searchHasResolved:!0};const{getEntityRecords:a,hasFinishedResolution:r}=n(ct.store),l=["taxonomy",e.slug,{...bv,search:o,orderby:"name",exclude:t,per_page:20}];return{searchResults:a(...l),searchHasResolved:r("getEntityRecords",l)}}),[o,t]),p=(0,ut.useSelect)((n=>{if(!t?.length)return _v;const{getEntityRecords:o}=n(ct.store);return o("taxonomy",e.slug,{...bv,include:t,per_page:t.length})}),[t]);(0,qe.useEffect)((()=>{if(t?.length||l(_v),!p?.length)return;const e=t.reduce(((e,t)=>{const n=p.find((e=>e.id===t));return n&&e.push({id:t,value:n.name}),e}),[]);l(e)}),[t,p]),(0,qe.useEffect)((()=>{m&&s(u.map((e=>e.name)))}),[u,m]);return(0,qe.createElement)("div",{className:"block-library-query-inspector__taxonomy-control"},(0,qe.createElement)(Ke.FormTokenField,{label:e.name,value:r,onInputChange:c,suggestions:i,onChange:e=>{const t=new Set;for(const n of e){const e=fv(u,n);e&&t.add(e)}s(_v),n(Array.from(t))},__experimentalShowHowTo:!1}))}const kv=[{label:(0,Je.__)("Include"),value:""},{label:(0,Je.__)("Exclude"),value:"exclude"},{label:(0,Je.__)("Only"),value:"only"}];function xv({value:e,onChange:t}){return(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Sticky posts"),options:kv,value:e,onChange:t,help:(0,Je.__)("Blog posts can be “stickied”, a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.")})}var wv=({attributes:{query:{postType:e}={}}={}})=>{if(!e)return null;const t=(0,st.addQueryArgs)("post-new.php",{post_type:e});return(0,qe.createElement)("div",{className:"wp-block-query__create-new-link"},(0,qe.createInterpolateElement)((0,Je.__)("<a>Add new post</a>"),{a:(0,qe.createElement)("a",{href:t})}))};const{BlockInfo:Cv}=Yt(Ye.privateApis);function Ev(e){const{attributes:t,setQuery:n,setDisplayLayout:o}=e,{query:a,displayLayout:r}=t,{order:l,orderBy:i,author:s,postType:c,sticky:u,inherit:m,taxQuery:p,parents:d}=a,g=function(e){return(0,ut.useSelect)((t=>t(je.store).getActiveBlockVariation(Xf,e)?.allowedControls),[e])}(t),[h,_]=(0,qe.useState)("post"===c),{postTypesTaxonomiesMap:b,postTypesSelectOptions:f}=ov(),v=av(c),y=function(e){return(0,ut.useSelect)((t=>{const n=t(ct.store).getPostType(e);return n?.viewable&&n?.hierarchical}),[e])}(c);(0,qe.useEffect)((()=>{_("post"===c)}),[c]);const[k,x]=(0,qe.useState)(a.search),w=(0,qe.useCallback)((0,Tt.debounce)((()=>{a.search!==k&&n({search:k})}),250),[k,a.search]);(0,qe.useEffect)((()=>(w(),w.cancel)),[k,w]);const C=rv(g,"inherit"),E=!m&&rv(g,"postType"),S=!m&&rv(g,"order"),B=!m&&h&&rv(g,"sticky"),T=C||E||S||B,N=!!v?.length&&rv(g,"taxQuery"),P=rv(g,"author"),I=rv(g,"search"),M=rv(g,"parents")&&y,z=N||P||I||M;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Cv,null,(0,qe.createElement)(wv,{...e})),T&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},C&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Inherit query from template"),help:(0,Je.__)("Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently."),checked:!!m,onChange:e=>n({inherit:!!e})}),E&&(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,options:f,value:c,label:(0,Je.__)("Post type"),onChange:e=>{const t={postType:e},o=b[e],a=Object.entries(p||{}).reduce(((e,[t,n])=>(o.includes(t)&&(e[t]=n),e)),{});t.taxQuery=Object.keys(a).length?a:void 0,"post"!==e&&(t.sticky=""),t.parents=[],n(t)},help:(0,Je.__)("WordPress contains different types of content and they are divided into collections called “Post types”. By default there are a few different ones such as blog posts and pages, but plugins could add more.")}),false,S&&(0,qe.createElement)(uv,{order:l,orderBy:i,onChange:n}),B&&(0,qe.createElement)(xv,{value:u,onChange:e=>n({sticky:e})}))),!m&&z&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,Je.__)("Filters"),resetAll:()=>{n({author:"",parents:[],search:"",taxQuery:null}),x("")}},N&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{label:(0,Je.__)("Taxonomies"),hasValue:()=>Object.values(p||{}).some((e=>!!e.length)),onDeselect:()=>n({taxQuery:null})},(0,qe.createElement)(vv,{onChange:n,query:a})),P&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Je.__)("Authors"),onDeselect:()=>n({author:""})},(0,qe.createElement)(pv,{value:s,onChange:n})),I&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,Je.__)("Keyword"),onDeselect:()=>x("")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Keyword"),value:k,onChange:x})),M&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!d?.length,label:(0,Je.__)("Parents"),onDeselect:()=>n({parents:[]})},(0,qe.createElement)(hv,{parents:d,postType:c,onChange:n})))))}const Sv=[["core/post-template"]];function Bv({attributes:e,setAttributes:t,openPatternSelectionModal:n,name:o,clientId:a}){const{queryId:r,query:l,displayLayout:i,tagName:s="div",query:{inherit:c}={}}=e,{__unstableMarkNextChangeAsNotPersistent:u}=(0,ut.useDispatch)(Ye.store),m=(0,Tt.useInstanceId)(Bv),p=(0,Ye.useBlockProps)(),d=(0,Ye.useInnerBlocksProps)(p,{template:Sv}),{postsPerPage:g}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{getEntityRecord:n,canUser:o}=e(ct.store);return{postsPerPage:(o("read","settings")?+n("root","site")?.posts_per_page:+t().postsPerPage)||3}}),[]);(0,qe.useEffect)((()=>{const e={};(c&&l.perPage!==g||!l.perPage&&g)&&(e.perPage=g),Object.keys(e).length&&(u(),h(e))}),[l.perPage,g,c]),(0,qe.useEffect)((()=>{Number.isFinite(r)||(u(),t({queryId:m}))}),[r,m]);const h=e=>t({query:{...l,...e}}),_={main:(0,Je.__)("The <main> element should be used for the primary content of your document only. "),section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ev,{attributes:e,setQuery:h,setDisplayLayout:e=>t({displayLayout:{...i,...e}})}),(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(sv,{name:o,clientId:a,attributes:e,setQuery:h,openPatternSelectionModal:n})),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:s,onChange:e=>t({tagName:e}),help:_[s]})),(0,qe.createElement)(s,{...d}))}function Tv({attributes:e,clientId:t,name:n,openPatternSelectionModal:o,setAttributes:a}){const[r,l]=(0,qe.useState)(!1),i=(0,Ye.useBlockProps)(),s=lv(t,e),{blockType:c,allVariations:u,hasPatterns:m}=(0,ut.useSelect)((e=>{const{getBlockVariations:o,getBlockType:a}=e(je.store),{getBlockRootClientId:r,getPatternsByBlockTypes:l}=e(Ye.store),i=r(t);return{blockType:a(n),allVariations:o(n),hasPatterns:!!l(s,i).length}}),[n,s,t]),p=(0,Ye.__experimentalGetMatchingVariation)(e,u),d=p?.icon?.src||p?.icon||c?.icon?.src,g=p?.title||c?.title;return r?(0,qe.createElement)(Nv,{clientId:t,attributes:e,setAttributes:a,icon:d,label:g}):(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ke.Placeholder,{icon:d,label:g,instructions:(0,Je.__)("Choose a pattern for the query loop or start blank.")},!!m&&(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:o},(0,Je.__)("Choose")),(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:()=>{l(!0)}},(0,Je.__)("Start blank"))))}function Nv({clientId:e,attributes:t,setAttributes:n,icon:o,label:a}){const r=function(e){const{activeVariationName:t,blockVariations:n}=(0,ut.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockVariations:o}=t(je.store);return{activeVariationName:n(Xf,e)?.name,blockVariations:o(Xf,"block")}}),[e]);return(0,qe.useMemo)((()=>{const e=e=>!e.attributes?.namespace;if(!t)return n.filter(e);const o=n.filter((e=>e.attributes?.namespace?.includes(t)));return o.length?o:n.filter(e)}),[t,n])}(t),{replaceInnerBlocks:l}=(0,ut.useDispatch)(Ye.store),i=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ye.__experimentalBlockVariationPicker,{icon:o,label:a,variations:r,onSelect:o=>{o.attributes&&n({...o.attributes,query:{...o.attributes.query,postType:t.query.postType||o.attributes.query.postType},namespace:t.namespace}),o.innerBlocks&&l(e,(0,je.createBlocksFromInnerBlocksTemplate)(o.innerBlocks),!1)}}))}function Pv(e=""){return e=(e=bu()(e)).trim().toLowerCase()}function Iv(e,t){const n=Pv(t),o=Pv(e.title);let a=0;if(n===o)a+=30;else if(o.startsWith(n))a+=20;else{n.split(" ").every((e=>o.includes(e)))&&(a+=10)}return a}function Mv(e=[],t=""){if(!t)return e;const n=e.map((e=>[e,Iv(e,t)])).filter((([,e])=>e>0));return n.sort((([,e],[,t])=>t-e)),n.map((([e])=>e))}function zv({clientId:e,attributes:t,setIsPatternSelectionModalOpen:n}){const[o,a]=(0,qe.useState)(""),{replaceBlock:r,selectBlock:l}=(0,ut.useDispatch)(Ye.store),i=(0,qe.useMemo)((()=>({previewPostType:t.query.postType})),[t.query.postType]),s=lv(e,t),c=iv(e,s),u=(0,qe.useMemo)((()=>Mv(c,o)),[c,o]),m=(0,Tt.useAsyncList)(u);return(0,qe.createElement)(Ke.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,Je.__)("Choose a pattern"),onRequestClose:()=>n(!1),isFullScreen:!0},(0,qe.createElement)("div",{className:"block-library-query-pattern__selection-content"},(0,qe.createElement)("div",{className:"block-library-query-pattern__selection-search"},(0,qe.createElement)(Ke.SearchControl,{__nextHasNoMarginBottom:!0,onChange:a,value:o,label:(0,Je.__)("Search for patterns"),placeholder:(0,Je.__)("Search")})),(0,qe.createElement)(Ye.BlockContextProvider,{value:i},(0,qe.createElement)(Ye.__experimentalBlockPatternsList,{blockPatterns:u,shownPatterns:m,onClickPattern:(n,o)=>{const{newBlocks:a,queryClientIds:i}=((e,t)=>{const{query:{postType:n,inherit:o}}=t,a=e.map((e=>(0,je.cloneBlock)(e))),r=[],l=[...a];for(;l.length>0;){const e=l.shift();"core/query"===e.name&&(e.attributes.query={...e.attributes.query,postType:n,inherit:o},r.push(e.clientId)),e.innerBlocks?.forEach((e=>{l.push(e)}))}return{newBlocks:a,queryClientIds:r}})(o,t);r(e,a),i[0]&&l(i[0])}}))))}var Rv=e=>{const{clientId:t,attributes:n}=e,[o,a]=(0,qe.useState)(!1),r=(0,ut.useSelect)((e=>!!e(Ye.store).getBlocks(t).length),[t])?Bv:Tv;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(r,{...e,openPatternSelectionModal:()=>a(!0)}),o&&(0,qe.createElement)(zv,{clientId:t,attributes:n,setIsPatternSelectionModalOpen:a}))};const Hv=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,qe.createElement)(Ke.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})),Lv=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,qe.createElement)(Ke.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})),Av=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,qe.createElement)(Ke.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})),Vv=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,qe.createElement)(Ke.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})),Dv={query:{perPage:3,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1}};var Fv=[{name:"posts-list",title:(0,Je.__)("Posts List"),description:(0,Je.__)("Display a list of your most recent posts, excluding sticky posts."),icon:km,attributes:{query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},scope:["inserter"]},{name:"title-date",title:(0,Je.__)("Title & Date"),icon:Hv,attributes:{...Dv},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,Je.__)("Title & Excerpt"),icon:Lv,attributes:{...Dv},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,Je.__)("Title, Date, & Excerpt"),icon:Av,attributes:{...Dv},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,Je.__)("Image, Date, & Title"),icon:Vv,attributes:{...Dv},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],["core/post-date"],["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}];const{cleanEmptyObject:$v}=Yt(Ye.privateApis),Gv=e=>{const{query:t}=e,{categoryIds:n,tagIds:o,...a}=t;return(t.categoryIds?.length||t.tagIds?.length)&&(a.taxQuery={category:t.categoryIds?.length?t.categoryIds:void 0,post_tag:t.tagIds?.length?t.tagIds:void 0}),{...e,query:a}},Ov=(e,t)=>{const{style:n,backgroundColor:o,gradient:a,textColor:r,...l}=e;if(!(o||a||r||n?.color||n?.elements?.link))return[e,t];if(n&&(l.style=$v({...n,color:void 0,elements:{...n.elements,link:void 0}})),Uv(t)){const e=t[0],i=n?.color||n?.elements?.link||e.attributes.style?$v({...e.attributes.style,color:n?.color,elements:n?.elements?.link?{link:n?.elements?.link}:void 0}):void 0;return[l,[(0,je.createBlock)("core/group",{...e.attributes,backgroundColor:o,gradient:a,textColor:r,style:i},e.innerBlocks)]]}return[l,[(0,je.createBlock)("core/group",{backgroundColor:o,gradient:a,textColor:r,style:$v({color:n?.color,elements:n?.elements?.link?{link:n?.elements?.link}:void 0})},t)]]},Uv=(e=[])=>1===e.length&&"core/group"===e[0].name,jv=e=>{const{layout:t=null}=e;if(!t)return e;const{inherit:n=null,contentSize:o=null,...a}=t;return n||o?{...e,layout:{...a,contentSize:o,type:"constrained"}}:e},qv=(e=[])=>{let t=null;for(const n of e){if("core/post-template"===n.name){t=n;break}n.innerBlocks.length&&(t=qv(n.innerBlocks))}return t},Wv=(e=[],t)=>(e.forEach(((n,o)=>{"core/post-template"===n.name?e.splice(o,1,t):n.innerBlocks.length&&(n.innerBlocks=Wv(n.innerBlocks,t))})),e),Zv=(e,t)=>{const{displayLayout:n=null,...o}=e;if(!n)return[e,t];const a=qv(t);if(!a)return[e,t];const{type:r,columns:l}=n,i="flex"===r?"grid":"default",s=(0,je.createBlock)("core/post-template",{...a.attributes,layout:{type:i,...l&&{columnCount:l}}},a.innerBlocks);return[o,Wv(t,s)]},Qv={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate(e,t){const n=Gv(e),{layout:o,...a}=n,r={...a,displayLayout:n.layout};return Zv(r,t)},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},Kv={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},layout:!0},isEligible:({query:{categoryIds:e,tagIds:t}={}})=>e||t,migrate(e,t){const n=Gv(e),[o,a]=Ov(n,t),r=jv(o);return Zv(r,a)},save({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})}},Jv={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){const{style:t,backgroundColor:n,gradient:o,textColor:a}=e;return n||o||a||t?.color||t?.elements?.link},migrate(e,t){const[n,o]=Ov(e,t),a=jv(n);return Zv(a,o)},save({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})}},Yv={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},save({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&"constrained"!==e?.type,migrate(e,t){const n=jv(e);return Zv(n,t)}};var Xv=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,layout:!0},save({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})},isEligible:({displayLayout:e})=>!!e,migrate:Zv},Yv,Jv,Kv,Qv];const ey={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout"},supports:{align:["wide","full"],html:!1,layout:!0},editorStyle:"wp-block-query-editor"},{name:ty}=ey,ny={icon:Jf,edit:Rv,save:function({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})},variations:Fv,deprecated:Xv},oy=()=>Qe({name:ty,metadata:ey,settings:ny}),ay=[["core/paragraph",{placeholder:(0,Je.__)("Add text or blocks that will display when a query returns no results.")}]];const ry={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-no-results",title:"No results",category:"theme",description:"Contains the block elements used to render content when no query results are found.",parent:["core/query"],textdomain:"default",usesContext:["queryId","query"],supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:ly}=ry,iy={icon:Jf,edit:function(){const e=(0,Ye.useBlockProps)(),t=(0,Ye.useInnerBlocksProps)(e,{template:ay});return(0,qe.createElement)("div",{...t})},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},sy=()=>Qe({name:ly,metadata:ry,settings:iy});function cy({value:e,onChange:t}){return(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Arrow"),value:e,onChange:t,help:(0,Je.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"none",label:(0,Je._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Je._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Je._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")}))}function uy({value:e,onChange:t}){return(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show label text"),help:(0,Je.__)('Toggle off to hide the label text, e.g. "Next Page".'),onChange:t,checked:!0===e})}const my=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]],py=["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"];var dy=[{save(){return(0,qe.createElement)("div",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];const gy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination",title:"Pagination",category:"theme",parent:["core/query"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"},showLabel:{type:"boolean",default:!0}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow",showLabel:"showLabel"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"},{name:hy}=gy,_y={icon:Ja,edit:function({attributes:{paginationArrow:e,showLabel:t},setAttributes:n,clientId:o}){const a=(0,ut.useSelect)((e=>{const{getBlocks:t}=e(Ye.store),n=t(o);return n?.find((e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name)))}),[]),r=(0,Ye.useBlockProps)(),l=(0,Ye.useInnerBlocksProps)(r,{template:my,allowedBlocks:py});return(0,qe.useEffect)((()=>{"none"!==e||t||n({showLabel:!0})}),[e,n,t]),(0,qe.createElement)(qe.Fragment,null,a&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(cy,{value:e,onChange:e=>{n({paginationArrow:e})}}),"none"!==e&&(0,qe.createElement)(uy,{value:t,onChange:e=>{n({showLabel:e})}}))),(0,qe.createElement)("nav",{...l}))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},deprecated:dy},by=()=>Qe({name:hy,metadata:gy,settings:_y}),fy={none:"",arrow:"→",chevron:"»"};const vy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-next",title:"Next Page",category:"theme",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:yy}=vy,ky={icon:rr,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:n,showLabel:o}}){const a=fy[n];return(0,qe.createElement)("a",{href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,Ye.useBlockProps)()},o&&(0,qe.createElement)(Ye.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Je.__)("Next page link"),placeholder:(0,Je.__)("Next Page"),value:e,onChange:e=>t({label:e})}),a&&(0,qe.createElement)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${n}`,"aria-hidden":!0},a))}},xy=()=>Qe({name:yy,metadata:vy,settings:ky}),wy=(e,t="a",n="")=>(0,qe.createElement)(t,{className:`page-numbers ${n}`},e);const Cy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-numbers",title:"Page Numbers",category:"theme",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination",textdomain:"default",usesContext:["queryId","query"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-query-pagination-numbers-editor"},{name:Ey}=Cy,Sy={icon:mr,edit:function(){const e=(0,qe.createElement)(qe.Fragment,null,wy(1),wy(2),wy(3,"span","current"),wy(4),wy(5),wy("...","span","dots"),wy(8));return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},e)}},By=()=>Qe({name:Ey,metadata:Cy,settings:Sy}),Ty={none:"",arrow:"←",chevron:"«"};const Ny={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-previous",title:"Previous Page",category:"theme",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Py}=Ny,Iy={icon:ja,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:n,showLabel:o}}){const a=Ty[n];return(0,qe.createElement)("a",{href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,Ye.useBlockProps)()},a&&(0,qe.createElement)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${n}`,"aria-hidden":!0},a),o&&(0,qe.createElement)(Ye.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Je.__)("Previous page link"),placeholder:(0,Je.__)("Previous Page"),value:e,onChange:e=>t({label:e})}))}},My=()=>Qe({name:Py,metadata:Ny,settings:Iy}),zy=["archive","search"];const Ry=[{isDefault:!0,name:"archive-title",title:(0,Je.__)("Archive Title"),description:(0,Je.__)("Display the archive title based on the queried object."),icon:br,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,Je.__)("Search Results Title"),description:(0,Je.__)("Display the search results title based on the queried object."),icon:br,attributes:{type:"search"},scope:["inserter"]}];Ry.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Hy=Ry;const Ly={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var Ay=[Ly];const Vy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-title",title:"Query Title",category:"theme",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1},showPrefix:{type:"boolean",default:!0},showSearchTerm:{type:"boolean",default:!0}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},style:"wp-block-query-title"},{name:Dy}=Vy,Fy={icon:br,edit:function({attributes:{type:e,level:t,textAlign:n,showPrefix:o,showSearchTerm:a},setAttributes:r}){const l=`h${t}`,i=(0,Ye.useBlockProps)({className:it()("wp-block-query-title__placeholder",{[`has-text-align-${n}`]:n})});if(!zy.includes(e))return(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Provided type is not supported.")));let s;return"archive"===e&&(s=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show archive type in title"),onChange:()=>r({showPrefix:!o}),checked:o}))),(0,qe.createElement)(l,{...i},o?(0,Je.__)("Archive type: Name"):(0,Je.__)("Archive title")))),"search"===e&&(s=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show search term in title"),onChange:()=>r({showSearchTerm:!a}),checked:a}))),(0,qe.createElement)(l,{...i},a?(0,Je.__)("Search results for: “search term”"):(0,Je.__)("Search results")))),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.HeadingLevelDropdown,{value:t,onChange:e=>r({level:e})}),(0,qe.createElement)(Ye.AlignmentControl,{value:n,onChange:e=>{r({textAlign:e})}})),s)},variations:Hy,deprecated:Ay},$y=()=>Qe({name:Dy,metadata:Vy,settings:Fy});var Gy=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));const Oy=e=>{const{value:t,...n}=e;return[{...n},t?(0,je.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map((({content:e})=>(0,je.createBlock)("core/paragraph",{content:e}))):(0,je.createBlock)("core/paragraph")]},Uy={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){const{align:t,value:n,citation:o}=e,a=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)("blockquote",{...Ye.useBlockProps.save({className:a})},(0,qe.createElement)(Ye.RichText.Content,{multiline:!0,value:n}),!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:o}))},migrate:Oy},jy={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate:Oy,save({attributes:e}){const{align:t,value:n,citation:o}=e;return(0,qe.createElement)("blockquote",{style:{textAlign:t||null}},(0,qe.createElement)(Ye.RichText.Content,{multiline:!0,value:n}),!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:o}))}},qy={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(2===e.style){const{style:t,...n}=e;return Oy({...n,className:e.className?e.className+" is-style-large":"is-style-large"})}return Oy(e)},save({attributes:e}){const{align:t,value:n,citation:o,style:a}=e;return(0,qe.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:t||null}},(0,qe.createElement)(Ye.RichText.Content,{multiline:!0,value:n}),!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:o}))}},Wy={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){const{style:t,...n}=e;return Oy({...n})}return Oy(e)},save({attributes:e}){const{align:t,value:n,citation:o,style:a}=e;return(0,qe.createElement)("blockquote",{className:`blocks-quote-style-${a}`,style:{textAlign:t||null}},(0,qe.createElement)(Ye.RichText.Content,{multiline:!0,value:n}),!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"footer",value:o}))}};var Zy=[Uy,jy,qy,Wy];const Qy="web"===qe.Platform.OS,Ky=[["core/paragraph",{}]];const Jy={from:[{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:n,fontSize:o,style:a})=>(0,je.createBlock)("core/quote",{citation:t,anchor:n,fontSize:o,style:a},[(0,je.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,je.createBlock)("core/quote",{},[(0,je.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,je.createBlock)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>1===e.length?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some((({name:e})=>"core/quote"===e)),__experimentalConvert:e=>(0,je.createBlock)("core/quote",{},e.map((e=>(0,je.createBlock)(e.name,e.attributes,e.innerBlocks))))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every((({name:e})=>"core/paragraph"===e)),transform:({citation:e,anchor:t,fontSize:n,style:o},a)=>{const r=a.map((({attributes:e})=>`${e.content}`)).join("<br>");return(0,je.createBlock)("core/pullquote",{value:r,citation:e,anchor:t,fontSize:n,style:o})}},{type:"block",blocks:["core/paragraph"],transform:({citation:e},t)=>e?[...t,(0,je.createBlock)("core/paragraph",{content:e})]:t},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},n)=>(0,je.createBlock)("core/group",{anchor:t},e?[...n,(0,je.createBlock)("core/paragraph",{content:e})]:n)}],ungroup:({citation:e},t)=>e?[...t,(0,je.createBlock)("core/paragraph",{content:e})]:t};var Yy=Jy;const Xy={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:ek}=Xy,tk={icon:Gy,example:{attributes:{citation:"Julio Cortázar"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("In quoting others, we cite ourselves.")}}]},transforms:Yy,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n,clientId:o,className:a,style:r}){const{align:l,citation:i}=e;((e,t)=>{const n=(0,ut.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:a}=(0,ut.useDispatch)(Ye.store);(0,qe.useEffect)((()=>{if(!e.value)return;const[r,l]=Oy(e);Gm()("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),n.batch((()=>{o(t,r),a(t,l)}))}),[e.value])})(e,o);const s=(0,ut.useSelect)((e=>{const{isBlockSelected:t,hasSelectedInnerBlock:n}=e(Ye.store);return n(o)||t(o)}),[]),c=(0,Ye.useBlockProps)({className:it()(a,{[`has-text-align-${l}`]:l}),...!Qy&&{style:r}}),u=(0,Ye.useInnerBlocksProps)(c,{template:Ky,templateInsertUpdatesSelection:!0});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:l,onChange:e=>{t({align:e})}})),(0,qe.createElement)(Ke.BlockQuotation,{...u},u.children,(!Ye.RichText.isEmpty(i)||s)&&(0,qe.createElement)(Ye.RichText,{identifier:"citation",tagName:Qy?"cite":void 0,style:{display:"block"},value:i,onChange:e=>{t({citation:e})},__unstableMobileNoFocusOnMount:!0,"aria-label":(0,Je.__)("Quote citation"),placeholder:(0,Je.__)("Add citation"),className:"wp-block-quote__citation",__unstableOnSplitAtEnd:()=>n((0,je.createBlock)((0,je.getDefaultBlockName)())),...Qy?{}:{textAlign:l}})))},save:function({attributes:e}){const{align:t,citation:n}=e,o=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)("blockquote",{...Ye.useBlockProps.save({className:o})},(0,qe.createElement)(Ye.InnerBlocks.Content,null),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:n}))},deprecated:Zy},nk=()=>Qe({name:ek,metadata:Xy,settings:tk});var ok=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),ak=window.wp.reusableBlocks;var rk=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"}));const lk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/block",title:"Pattern",category:"reusable",description:"Create and save content to reuse across your site. Update the pattern, and the changes apply everywhere it’s used.",keywords:["reusable"],textdomain:"default",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},{name:ik}=lk,sk={edit:function({attributes:{ref:e},clientId:t}){const n=(0,Ye.__experimentalUseHasRecursion)(e),{record:o,hasResolved:a}=(0,ct.useEntityRecord)("postType","wp_block",e),r=a&&!o,{canRemove:l,innerBlockCount:i}=(0,ut.useSelect)((e=>{const{canRemoveBlock:n,getBlockCount:o}=e(Ye.store);return{canRemove:n(t),innerBlockCount:o(t)}}),[t]),{__experimentalConvertBlockToStatic:s}=(0,ut.useDispatch)(ak.store),[c,u,m]=(0,ct.useEntityBlockEditor)("postType","wp_block",{id:e}),[p,d]=(0,ct.useEntityProp)("postType","wp_block","title",e),g=(0,Ye.useBlockProps)({className:"block-library-block__reusable-block-container"}),h=(0,Ye.useInnerBlocksProps)(g,{value:c,onInput:u,onChange:m,renderAppender:c?.length?void 0:Ye.InnerBlocks.ButtonBlockAppender});return n?(0,qe.createElement)("div",{...g},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block cannot be rendered inside itself."))):r?(0,qe.createElement)("div",{...g},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block has been deleted or is unavailable."))):a?(0,qe.createElement)(Ye.__experimentalRecursionProvider,{uniqueId:e},l&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>s(t),label:i>1?(0,Je.__)("Detach patterns"):(0,Je.__)("Detach pattern"),icon:rk,showTooltip:!0}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Name"),value:p,onChange:d}))),(0,qe.createElement)("div",{...h})):(0,qe.createElement)("div",{...g},(0,qe.createElement)(Ke.Placeholder,null,(0,qe.createElement)(Ke.Spinner,null)))},icon:ok},ck=()=>Qe({name:ik,metadata:lk,settings:sk});const uk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/read-more",title:"Read More",category:"theme",description:"Displays the link of a post, page, or any other content-type.",textdomain:"default",attributes:{content:{type:"string"},linkTarget:{type:"string",default:"_self"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,text:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,textDecoration:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalDefaultControls:{width:!0}}},style:"wp-block-read-more"},{name:mk}=uk,pk={icon:mn,edit:function({attributes:{content:e,linkTarget:t},setAttributes:n,insertBlocksAfter:o}){const a=(0,Ye.useBlockProps)();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t}))),(0,qe.createElement)(Ye.RichText,{tagName:"a","aria-label":(0,Je.__)("“Read more” link text"),placeholder:(0,Je.__)("Read more"),value:e,onChange:e=>n({content:e}),__unstableOnSplitAtEnd:()=>o((0,je.createBlock)((0,je.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...a}))}},dk=()=>Qe({name:mk,metadata:uk,settings:pk});var gk=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));const hk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},{name:_k}=hk,bk={icon:gk,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[n,o]=(0,qe.useState)(!e.feedURL),{blockLayout:a,columns:r,displayAuthor:l,displayDate:i,displayExcerpt:s,excerptLength:c,feedURL:u,itemsToShow:m}=e;function p(n){return()=>{const o=e[n];t({[n]:!o})}}const d=(0,Ye.useBlockProps)();if(n)return(0,qe.createElement)("div",{...d},(0,qe.createElement)(Ke.Placeholder,{icon:gk,label:"RSS"},(0,qe.createElement)("form",{onSubmit:function(e){e.preventDefault(),u&&(t({feedURL:(0,st.prependHTTP)(u)}),o(!1))},className:"wp-block-rss__placeholder-form"},(0,qe.createElement)(Ke.__experimentalHStack,{wrap:!0},(0,qe.createElement)(Ke.__experimentalInputControl,{__next36pxDefaultSize:!0,placeholder:(0,Je.__)("Enter URL here…"),value:u,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),(0,qe.createElement)(Ke.Button,{variant:"primary",type:"submit"},(0,Je.__)("Use URL"))))));const g=[{icon:vi,title:(0,Je.__)("Edit RSS URL"),onClick:()=>o(!0)},{icon:Cm,title:(0,Je.__)("List view"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===a},{icon:Jc,title:(0,Je.__)("Grid view"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===a}];return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,{controls:g})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Number of items"),value:m,onChange:e=>t({itemsToShow:e}),min:1,max:20,required:!0}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display author"),checked:l,onChange:p("displayAuthor")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display date"),checked:i,onChange:p("displayDate")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display excerpt"),checked:s,onChange:p("displayExcerpt")}),s&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Max number of words in excerpt"),value:c,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0}),"grid"===a&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:r,onChange:e=>t({columns:e}),min:2,max:6,required:!0}))),(0,qe.createElement)("div",{...d},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/rss",attributes:e}))))}},fk=()=>Qe({name:_k,metadata:hk,settings:bk});var vk=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));const yk=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),kk=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,qe.createElement)(Ke.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),xk=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,qe.createElement)(Ke.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),wk=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),Ck=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,qe.createElement)(Ke.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Ek=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,qe.createElement)(Ke.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"}));const Sk="expand-searchfield";var Bk=[{name:"default",isDefault:!0,attributes:{buttonText:(0,Je.__)("Search"),label:(0,Je.__)("Search")}}];const Tk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",__experimentalRole:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",__experimentalRole:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1},query:{type:"object",default:{}},buttonBehavior:{type:"string",default:"expand-searchfield"},isSearchFieldHidden:{type:"boolean",default:!1}},supports:{align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},html:!1},viewScript:"file:./view.min.js",editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:Nk}=Tk,Pk={icon:vk,example:{attributes:{buttonText:(0,Je.__)("Search"),label:(0,Je.__)("Search")},viewportWidth:400},variations:Bk,edit:function({className:e,attributes:t,setAttributes:n,toggleSelection:o,isSelected:a,clientId:r}){const{label:l,showLabel:i,placeholder:s,width:c,widthUnit:u,align:m,buttonText:p,buttonPosition:d,buttonUseIcon:g,buttonBehavior:h,isSearchFieldHidden:_,style:b}=t,f=(0,ut.useSelect)((e=>{const{getBlockParentsByBlockName:t,wasBlockJustInserted:n}=e(Ye.store);return!!t(r,"core/navigation")?.length&&n(r)}),[r]),{__unstableMarkNextChangeAsNotPersistent:v}=(0,ut.useDispatch)(Ye.store);(0,qe.useEffect)((()=>{f&&(v(),n({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))}),[f]);const y=b?.border?.radius,k=(0,Ye.__experimentalUseBorderProps)(t);"number"==typeof y&&(k.style.borderRadius=`${y}px`);const x=(0,Ye.__experimentalUseColorProps)(t),w=(0,Ye.useSetting)("typography.fluid"),C=(0,Ye.useSetting)("layout"),E=(0,Ye.getTypographyClassesAndStyles)(t,{typography:{fluid:w},layout:{wideSize:C?.wideSize}}),S=`wp-block-search__width-${(0,Tt.useInstanceId)(Ke.__experimentalUnitControl)}`,B="button-inside"===d,T="button-outside"===d,N="no-button"===d,P="button-only"===d,I=(0,qe.useRef)(),M=(0,qe.useRef)(),z=(0,Ke.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}});(0,qe.useEffect)((()=>{P&&!a&&n({isSearchFieldHidden:!0})}),[P,a,n]),(0,qe.useEffect)((()=>{P&&a&&n({isSearchFieldHidden:!1})}),[P,a,n,c]);const R=[{role:"menuitemradio",title:(0,Je.__)("Button outside"),isActive:"button-outside"===d,icon:kk,onClick:()=>{n({buttonPosition:"button-outside",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,Je.__)("Button inside"),isActive:"button-inside"===d,icon:xk,onClick:()=>{n({buttonPosition:"button-inside",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,Je.__)("No button"),isActive:"no-button"===d,icon:wk,onClick:()=>{n({buttonPosition:"no-button",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,Je.__)("Button only"),isActive:"button-only"===d,icon:yk,onClick:()=>{n({buttonPosition:"button-only",isSearchFieldHidden:!0})}}],H=()=>{const e=it()("wp-block-search__input",B?void 0:k.className,E.className),t={...B?{borderRadius:y}:k.style,...E.style,textDecoration:void 0};return(0,qe.createElement)("input",{type:"search",className:e,style:t,"aria-label":(0,Je.__)("Optional placeholder text"),placeholder:s?void 0:(0,Je.__)("Optional placeholder…"),value:s,onChange:e=>n({placeholder:e.target.value}),ref:I})},L=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{title:(0,Je.__)("Toggle search label"),icon:Ek,onClick:()=>{n({showLabel:!i})},className:i?"is-pressed":void 0}),(0,qe.createElement)(Ke.ToolbarDropdownMenu,{icon:(()=>{switch(d){case"button-inside":return xk;case"button-outside":return kk;case"no-button":return wk;case"button-only":return yk}})(),label:(0,Je.__)("Change button position"),controls:R}),!N&&(0,qe.createElement)(Ke.ToolbarButton,{title:(0,Je.__)("Use button with icon"),icon:Ck,onClick:()=>{n({buttonUseIcon:!g})},className:g?"is-pressed":void 0}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Display Settings")},(0,qe.createElement)(Ke.BaseControl,{label:(0,Je.__)("Width"),id:S},(0,qe.createElement)(Ke.__experimentalUnitControl,{id:S,min:"220px",onChange:e=>{const t="%"===u&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:e=>{n({width:"%"===e?50:350,widthUnit:e})},__unstableInputWidth:"80px",value:`${c}${u}`,units:z}),(0,qe.createElement)(Ke.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":(0,Je.__)("Percentage Width")},[25,50,75,100].map((e=>(0,qe.createElement)(Ke.Button,{key:e,isSmall:!0,variant:e===c&&"%"===u?"primary":void 0,onClick:()=>n({width:e,widthUnit:"%"})},e,"%")))))))),A=e=>e?`calc(${e} + 4px)`:void 0,V=(0,Ye.useBlockProps)({className:it()(e,B?"wp-block-search__button-inside":void 0,T?"wp-block-search__button-outside":void 0,N?"wp-block-search__no-button":void 0,P?"wp-block-search__button-only":void 0,g||N?void 0:"wp-block-search__text-button",g&&!N?"wp-block-search__icon-button":void 0,P&&Sk===h?"wp-block-search__button-behavior-expand":void 0,P&&_?"wp-block-search__searchfield-hidden":void 0),style:{...E.style,textDecoration:void 0}}),D=it()("wp-block-search__label",E.className);return(0,qe.createElement)("div",{...V},L,i&&(0,qe.createElement)(Ye.RichText,{className:D,"aria-label":(0,Je.__)("Label text"),placeholder:(0,Je.__)("Add label…"),withoutInteractiveFormatting:!0,value:l,onChange:e=>n({label:e}),style:E.style}),(0,qe.createElement)(Ke.ResizableBox,{size:{width:`${c}${u}`},className:it()("wp-block-search__inside-wrapper",B?k.className:void 0),style:(()=>{const e=B?k.style:{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius},t=void 0!==y&&0!==parseInt(y,10);if(B&&t){if("object"==typeof y){const{topLeft:t,topRight:n,bottomLeft:o,bottomRight:a}=y;return{...e,borderTopLeftRadius:A(t),borderTopRightRadius:A(n),borderBottomLeftRadius:A(o),borderBottomRightRadius:A(a)}}const t=Number.isInteger(y)?`${y}px`:y;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:P?{}:{right:"right"!==m,left:"right"===m},onResizeStart:(e,t,a)=>{n({width:parseInt(a.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(e,t,a,r)=>{n({width:parseInt(c+r.width,10)}),o(!0)},showHandle:a},(B||T||P)&&(0,qe.createElement)(qe.Fragment,null,H(),(()=>{const e=it()("wp-block-search__button",x.className,E.className,B?void 0:k.className,g?"has-icon":void 0,(0,Ye.__experimentalGetElementClassName)("button")),t={...x.style,...E.style,...B?{borderRadius:y}:k.style},o=()=>{P&&Sk===h&&n({isSearchFieldHidden:!_})};return(0,qe.createElement)(qe.Fragment,null,g&&(0,qe.createElement)("button",{type:"button",className:e,style:t,"aria-label":p?(0,dd.__unstableStripHTML)(p):(0,Je.__)("Search"),onClick:o,ref:M},(0,qe.createElement)(Nd,{icon:vk})),!g&&(0,qe.createElement)(Ye.RichText,{className:e,style:t,"aria-label":(0,Je.__)("Button text"),placeholder:(0,Je.__)("Add button text…"),withoutInteractiveFormatting:!0,value:p,onChange:e=>n({buttonText:e}),onClick:o}))})()),N&&H()))}},Ik=()=>Qe({name:Nk,metadata:Tk,settings:Pk});var Mk=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"}));var zk={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>(0,je.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}]};const Rk={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){const{color:t,customColor:n}=e,o=(0,Ye.getColorClassName)("background-color",t),a=(0,Ye.getColorClassName)("color",t),r=it()({"has-text-color has-background":t||n,[o]:o,[a]:a}),l={backgroundColor:o?void 0:n,color:a?void 0:n};return(0,qe.createElement)("hr",{...Ye.useBlockProps.save({className:r,style:l})})},migrate(e){const{color:t,customColor:n,...o}=e;return{...o,backgroundColor:t||void 0,opacity:"css",style:n?{color:{background:n}}:void 0}}};var Hk=[Rk];const Lk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{opacity:{type:"string",default:"alpha-channel"}},supports:{anchor:!0,align:["center","wide","full"],color:{enableContrastChecker:!1,__experimentalSkipSerialization:!0,gradients:!0,background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{margin:["top","bottom"]}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},{name:Ak}=Lk,Vk={icon:Mk,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:zk,edit:function({attributes:e,setAttributes:t}){const{backgroundColor:n,opacity:o,style:a}=e,r=(0,Ye.__experimentalUseColorProps)(e),l=r?.style?.backgroundColor,i=!!a?.color?.background;!function(e,t,n){const[o,a]=(0,qe.useState)(!1),r=(0,Tt.usePrevious)(t);(0,qe.useEffect)((()=>{"css"!==e||t||r||a(!0)}),[t,r,e]),(0,qe.useEffect)((()=>{"css"===e&&(o&&t||r&&t!==r)&&(n({opacity:"alpha-channel"}),a(!1))}),[o,t,r])}(o,l,t);const s=(0,Ye.getColorClassName)("color",n),c=it()({"has-text-color":n||l,[s]:s,"has-css-opacity":"css"===o,"has-alpha-channel-opacity":"alpha-channel"===o},r.className),u={color:l,backgroundColor:l};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.HorizontalRule,{...(0,Ye.useBlockProps)({className:c,style:i?u:void 0})}))},save:function({attributes:e}){const{backgroundColor:t,style:n,opacity:o}=e,a=n?.color?.background,r=(0,Ye.__experimentalGetColorClassesAndStyles)(e),l=(0,Ye.getColorClassName)("color",t),i=it()({"has-text-color":t||a,[l]:l,"has-css-opacity":"css"===o,"has-alpha-channel-opacity":"alpha-channel"===o},r.className),s={backgroundColor:r?.style?.backgroundColor,color:l?void 0:a};return(0,qe.createElement)("hr",{...Ye.useBlockProps.save({className:i,style:s})})},deprecated:Hk},Dk=()=>Qe({name:Ak,metadata:Lk,settings:Vk});var Fk=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"}));var $k=window.wp.autop;var Gk={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,$k.removep)((0,$k.autop)(t))}},priority:20}]};const Ok={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},{name:Uk}=Ok,jk={icon:Fk,transforms:Gk,edit:function e({attributes:t,setAttributes:n}){const o=`blocks-shortcode-input-${(0,Tt.useInstanceId)(e)}`;return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:"components-placeholder"})},(0,qe.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},(0,qe.createElement)(Nd,{icon:Fk}),(0,Je.__)("Shortcode")),(0,qe.createElement)(Ye.PlainText,{className:"blocks-shortcode__textarea",id:o,value:t.text,"aria-label":(0,Je.__)("Shortcode text"),placeholder:(0,Je.__)("Write shortcode here…"),onChange:e=>n({text:e})}))},save:function({attributes:e}){return(0,qe.createElement)(qe.RawHTML,null,e.text)}},qk=()=>Qe({name:Uk,metadata:Ok,settings:jk});var Wk=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"}));const Zk=["image"],Qk="image/*",Kk=({alt:e,attributes:{align:t,width:n,height:o,isLink:a,linkTarget:r,shouldSyncIcon:l},containerRef:i,isSelected:s,setAttributes:c,setLogo:u,logoUrl:m,siteUrl:p,logoId:d,iconId:g,setIcon:h,canUserEdit:_})=>{const b=em(i,[t]),f=(0,Tt.useViewportMatch)("medium"),v=!["wide","full"].includes(t)&&f,[{naturalWidth:y,naturalHeight:k},x]=(0,qe.useState)({}),[w,C]=(0,qe.useState)(!1),{toggleSelection:E}=(0,ut.useDispatch)(Ye.store),S=it()("custom-logo-link",{"is-transient":(0,Et.isBlobURL)(m)}),{imageEditing:B,maxWidth:T,title:N}=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings(),n=e(ct.store).getEntityRecord("root","__unstableBase");return{title:n?.name,imageEditing:t.imageEditing,maxWidth:t.maxWidth}}),[]);(0,qe.useEffect)((()=>{l&&d!==g&&c({shouldSyncIcon:!1})}),[]),(0,qe.useEffect)((()=>{s||C(!1)}),[s]);const P=(0,qe.createElement)("img",{className:"custom-logo",src:m,alt:e,onLoad:e=>{x({naturalWidth:e.target.naturalWidth,naturalHeight:e.target.naturalHeight})}});let I,M=P;if(a&&(M=(0,qe.createElement)("a",{href:p,className:S,rel:"home",title:N,onClick:e=>e.preventDefault()},P)),b&&y&&k){I=y>b?b:y}if(!v||!I)return(0,qe.createElement)("div",{style:{width:n,height:o}},M);const z=n||120,R=y/k,H=z/R,L=y<k?Qs:Math.ceil(Qs*R),A=k<y?Qs:Math.ceil(Qs/R),V=2.5*T;let D=!1,F=!1;"center"===t?(D=!0,F=!0):(0,Je.isRTL)()?"left"===t?D=!0:F=!0:"right"===t?F=!0:D=!0;const $=d&&y&&k&&B,G=$&&w?(0,qe.createElement)(Ye.__experimentalImageEditor,{id:d,url:m,width:z,height:H,clientWidth:b,naturalHeight:k,naturalWidth:y,onSaveImage:e=>{u(e.id)},onFinishEditing:()=>{C(!1)}}):(0,qe.createElement)(Ke.ResizableBox,{size:{width:z,height:H},showHandle:s,minWidth:L,maxWidth:V,minHeight:A,maxHeight:V/R,lockAspectRatio:!0,enable:{top:!1,right:D,bottom:!0,left:F},onResizeStart:function(){E(!1)},onResizeStop:(e,t,n,o)=>{E(!0),c({width:parseInt(z+o.width,10),height:parseInt(H+o.height,10)})}},M),O=(0,qe.createInterpolateElement)((0,Je.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,qe.createElement)("a",{href:p+"/wp-admin/customize.php?autofocus[section]=title_tagline",target:"_blank",rel:"noopener noreferrer"})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image width"),onChange:e=>c({width:e}),min:L,max:V,initialPosition:Math.min(120,V),value:n||"",disabled:!v}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link image to home"),onChange:()=>c({isLink:!a}),checked:a}),a&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>c({linkTarget:e?"_blank":"_self"}),checked:"_blank"===r})),_&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Use as site icon"),onChange:e=>{c({shouldSyncIcon:e}),h(e?d:void 0)},checked:!!l,help:O})))),(0,qe.createElement)(Ye.BlockControls,{group:"block"},$&&!w&&(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>C(!0),icon:Ju,label:(0,Je.__)("Crop")})),G)};function Jk({onRemoveLogo:e,...t}){return(0,qe.createElement)(Ye.MediaReplaceFlow,{...t,allowedTypes:Zk,accept:Qk},(0,qe.createElement)(Ke.MenuItem,{onClick:e},(0,Je.__)("Reset")))}const Yk=({mediaItemData:e={},itemGroupProps:t})=>{const{alt_text:n,source_url:o,slug:a,media_details:r}=e,l=r?.sizes?.full?.file||a;return(0,qe.createElement)(Ke.__experimentalItemGroup,{...t,as:"span"},(0,qe.createElement)(Ke.__experimentalHStack,{justify:"flex-start",as:"span"},(0,qe.createElement)("img",{src:o,alt:n}),(0,qe.createElement)(Ke.FlexItem,{as:"span"},(0,qe.createElement)(Ke.__experimentalTruncate,{numberOfLines:1,className:"block-library-site-logo__inspector-media-replace-title"},l))))};var Xk={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,je.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]};const ex={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-logo",title:"Site Logo",category:"theme",description:"Display an image to represent this site. Update this block and the changes apply everywhere.",textdomain:"default",attributes:{width:{type:"number"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},shouldSyncIcon:{type:"boolean"}},example:{viewportWidth:500,attributes:{width:350,className:"block-editor-block-types-list__site-logo-example"}},supports:{html:!1,align:!0,alignWide:!1,color:{__experimentalDuotone:"img, .components-placeholder__illustration, .components-placeholder::before",text:!1,background:!1},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"},{name:tx}=ex,nx={icon:Wk,example:{},edit:function({attributes:e,className:t,setAttributes:n,isSelected:o}){const{width:a,shouldSyncIcon:r}=e,l=(0,qe.useRef)(),{siteLogoId:i,canUserEdit:s,url:c,siteIconId:u,mediaItemData:m,isRequestingMediaItem:p,mediaUpload:d}=(0,ut.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:o}=e(ct.store),a=t("update","settings"),r=a?o("root","site"):void 0,l=n("root","__unstableBase"),i=a?r?.site_logo:l?.site_logo,s=r?.site_icon,c=i&&e(ct.store).getMedia(i,{context:"view"}),u=i&&!e(ct.store).hasFinishedResolution("getMedia",[i,{context:"view"}]);return{siteLogoId:i,canUserEdit:a,url:l?.home,mediaItemData:c,isRequestingMediaItem:u,siteIconId:s,mediaUpload:e(Ye.store).getSettings().mediaUpload}}),[]),{editEntityRecord:g}=(0,ut.useDispatch)(ct.store),h=(e,t=!1)=>{(r||t)&&_(e),g("root","site",void 0,{site_logo:e})},_=e=>g("root","site",void 0,{site_icon:null!=e?e:null}),{alt_text:b,source_url:f}=null!=m?m:{},v=e=>{if(void 0===r){const t=!u;return n({shouldSyncIcon:t}),void y(e,t)}y(e)},y=(e,t=!1)=>{e&&(e.id||!e.url?h(e.id,t):h(void 0))},{createErrorNotice:k}=(0,ut.useDispatch)(Bt.store),x=e=>{k(e,{type:"snackbar"})},w=e=>{d({allowedTypes:["image"],filesList:e,onFileChange([e]){(0,Et.isBlobURL)(e?.url)||v(e)},onError:x})},C={mediaURL:f,onSelect:y,onError:x,onRemoveLogo:()=>{h(null),n({width:void 0})}},E=s&&f&&(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Jk,{...C}));let S;const B=void 0===i||p;B&&(S=(0,qe.createElement)(Ke.Spinner,null)),f&&(S=(0,qe.createElement)(Kk,{alt:b,attributes:e,className:t,containerRef:l,isSelected:o,setAttributes:n,logoUrl:f,setLogo:h,logoId:m?.id||i,siteUrl:c,setIcon:_,iconId:u,canUserEdit:s}));const T=it()(t,{"is-default-size":!a}),N=(0,Ye.useBlockProps)({ref:l,className:T}),P=(0,Je.__)("Add a site logo"),I=(s||f)&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Media")},(0,qe.createElement)("div",{className:"block-library-site-logo__inspector-media-replace-container"},!s&&!!f&&(0,qe.createElement)(Yk,{mediaItemData:m,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"}}),s&&!!f&&(0,qe.createElement)(Jk,{...C,name:(0,qe.createElement)(Yk,{mediaItemData:m}),popoverProps:{}}),s&&!f&&(0,qe.createElement)(Ye.MediaUploadCheck,null,(0,qe.createElement)(Ye.MediaUpload,{onSelect:v,allowedTypes:Zk,render:({open:e})=>(0,qe.createElement)("div",{className:"block-library-site-logo__inspector-upload-container"},(0,qe.createElement)(Ke.Button,{onClick:e,variant:"secondary"},B?(0,qe.createElement)(Ke.Spinner,null):(0,Je.__)("Add media")),(0,qe.createElement)(Ke.DropZone,{onFilesDrop:w}))})))));return(0,qe.createElement)("div",{...N},E,I,!!f&&S,!f&&!s&&(0,qe.createElement)(Ke.Placeholder,{className:"site-logo_placeholder"},!!B&&(0,qe.createElement)("span",{className:"components-placeholder__preview"},(0,qe.createElement)(Ke.Spinner,null))),!f&&s&&(0,qe.createElement)(Ye.MediaPlaceholder,{onSelect:v,accept:Qk,allowedTypes:Zk,onError:x,placeholder:e=>{const n=it()("block-editor-media-placeholder",t);return(0,qe.createElement)(Ke.Placeholder,{className:n,preview:S,withIllustration:!0,style:{width:a}},e)},mediaLibraryButton:({open:e})=>(0,qe.createElement)(Ke.Button,{icon:Xu,variant:"primary",label:P,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}))},transforms:Xk},ox=()=>Qe({name:tx,metadata:ex,settings:nx});var ax=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,qe.createElement)(Ke.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"}));const rx={attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var lx=[rx];const ix={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-tagline",title:"Site Tagline",category:"theme",description:"Describe in a few words what the site is about. The tagline can be used in search results or when sharing on social networks even if it’s not displayed in the theme design.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"}},example:{},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-site-tagline-editor"},{name:sx}=ix,cx={icon:ax,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n}){const{textAlign:o}=e,{canUserEdit:a,tagline:r}=(0,ut.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:o}=e(ct.store),a=t("update","settings"),r=a?o("root","site"):{},l=n("root","__unstableBase");return{canUserEdit:t("update","settings"),tagline:a?r?.description:l?.description}}),[]),{editEntityRecord:l}=(0,ut.useDispatch)(ct.store),i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o,"wp-block-site-tagline__placeholder":!a&&!r})}),s=a?(0,qe.createElement)(Ye.RichText,{allowedFormats:[],onChange:function(e){l("root","site",void 0,{description:e})},"aria-label":(0,Je.__)("Site tagline text"),placeholder:(0,Je.__)("Write site tagline…"),tagName:"p",value:r,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>n((0,je.createBlock)((0,je.getDefaultBlockName)())),...i}):(0,qe.createElement)("p",{...i},r||(0,Je.__)("Site Tagline placeholder"));return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{onChange:e=>t({textAlign:e}),value:o})),s)},deprecated:lx},ux=()=>Qe({name:sx,metadata:ix,settings:cx});var mx=(0,qe.createElement)(We.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"}));const px=[0,1,2,3,4,5,6];const dx={attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var gx=[dx];var hx={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,je.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]};const _x={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere it’s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,lineHeight:!0,fontAppearance:!0,letterSpacing:!0,textTransform:!0}}},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"},{name:bx}=_x,fx={icon:mx,example:{},edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n}){const{level:o,textAlign:a,isLink:r,linkTarget:l}=e,{canUserEdit:i,title:s}=(0,ut.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:o}=e(ct.store),a=t("update","settings"),r=a?o("root","site"):{},l=n("root","__unstableBase");return{canUserEdit:a,title:a?r?.title:l?.name}}),[]),{editEntityRecord:c}=(0,ut.useDispatch)(ct.store),u=0===o?"p":`h${o}`,m=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${a}`]:a,"wp-block-site-title__placeholder":!i&&!s})}),p=i?(0,qe.createElement)(u,{...m},(0,qe.createElement)(Ye.RichText,{tagName:r?"a":"span",href:r?"#site-title-pseudo-link":void 0,"aria-label":(0,Je.__)("Site title text"),placeholder:(0,Je.__)("Write site title…"),value:s,onChange:function(e){c("root","site",void 0,{title:e})},allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>n((0,je.createBlock)((0,je.getDefaultBlockName)()))})):(0,qe.createElement)(u,{...m},r?(0,qe.createElement)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault()},(0,On.decodeEntities)(s)||(0,Je.__)("Site Title placeholder")):(0,qe.createElement)("span",null,(0,On.decodeEntities)(s)||(0,Je.__)("Site Title placeholder")));return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.HeadingLevelDropdown,{options:px,value:o,onChange:e=>t({level:e})}),(0,qe.createElement)(Ye.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Make title link to home"),onChange:()=>t({isLink:!r}),checked:r}),r&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===l}))),p)},transforms:hx,deprecated:gx},vx=()=>Qe({name:bx,metadata:_x,settings:fx});var yx=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"}));var kx=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));const xx=()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),wx=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))},{name:"chain",attributes:{service:"chain"},title:"Link",icon:xx},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))},{name:"google",attributes:{service:"google"},title:"Google",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))},{name:"github",attributes:{service:"github"},title:"GitHub",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"}))},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))},{name:"patreon",attributes:{service:"patreon"},title:"Patreon",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 569 546",version:"1.1"},(0,qe.createElement)(We.Circle,{cx:"363",cy:"205",r:"205"}),(0,qe.createElement)(We.Rect,{width:"100",height:"546",x:"0",y:"0"}))},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"}))},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))},{name:"telegram",attributes:{service:"telegram"},title:"Telegram",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"}))},{name:"tiktok",attributes:{service:"tiktok"},title:"TikTok",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 32 32",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"}))},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))},{name:"vk",attributes:{service:"vk"},title:"VK",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))},{name:"whatsapp",attributes:{service:"whatsapp"},title:"WhatsApp",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"}))},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}];wx.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)}));var Cx=wx;const Ex=({url:e,setAttributes:t,setPopover:n,popoverAnchor:o,clientId:a})=>{const{removeBlock:r}=(0,ut.useDispatch)(Ye.store);return(0,qe.createElement)(Ye.URLPopover,{anchor:o,onClose:()=>n(!1)},(0,qe.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),n(!1)}},(0,qe.createElement)("div",{className:"block-editor-url-input"},(0,qe.createElement)(Ye.URLInput,{__nextHasNoMarginBottom:!0,value:e,onChange:e=>t({url:e}),placeholder:(0,Je.__)("Enter address"),disableSuggestions:!0,onKeyDown:t=>{e||t.defaultPrevented||![un.BACKSPACE,un.DELETE].includes(t.keyCode)||r(a)}})),(0,qe.createElement)(Ke.Button,{icon:kx,label:(0,Je.__)("Apply"),type:"submit"})))};var Sx=({attributes:e,context:t,isSelected:n,setAttributes:o,clientId:a})=>{const{url:r,service:l,label:i,rel:s}=e,{showLabels:c,iconColor:u,iconColorValue:m,iconBackgroundColor:p,iconBackgroundColorValue:d}=t,[g,h]=(0,qe.useState)(!1),_=it()("wp-social-link","wp-social-link-"+l,{"wp-social-link__is-incomplete":!r,[`has-${u}-color`]:u,[`has-${p}-background-color`]:p}),[b,f]=(0,qe.useState)(null),v=(e=>{const t=Cx.find((t=>t.name===e));return t?t.icon:xx})(l),y=(e=>{const t=Cx.find((t=>t.name===e));return t?t.title:(0,Je.__)("Social Icon")})(l),k=null!=i?i:y,x=(0,Ye.useBlockProps)({className:_,style:{color:m,backgroundColor:d}});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.sprintf)((0,Je.__)("%s label"),y),initialOpen:!1},(0,qe.createElement)(Ke.PanelRow,null,(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link label"),help:(0,Je.__)("Briefly describe the link to help screen reader users."),value:i||"",onChange:e=>o({label:e})})))),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:s||"",onChange:e=>o({rel:e})})),(0,qe.createElement)("li",{...x},(0,qe.createElement)(Ke.Button,{className:"wp-block-social-link-anchor",ref:f,onClick:()=>h(!0)},(0,qe.createElement)(v,null),(0,qe.createElement)("span",{className:it()("wp-block-social-link-label",{"screen-reader-text":!c})},k),n&&g&&(0,qe.createElement)(Ex,{url:r,setAttributes:o,setPopover:h,popoverAnchor:b,clientId:a}))))};const Bx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social media profile or site.",textdomain:"default",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"},rel:{type:"string"}},usesContext:["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-social-link-editor"},{name:Tx}=Bx,Nx={icon:yx,edit:Sx,variations:Cx},Px=()=>Qe({name:Tx,metadata:Bx,settings:Nx}),Ix=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:e=>{if(e.layout)return e;const{className:t}=e,n="items-justified-",o=new RegExp(`\\b${n}[^ ]*[ ]?\\b`,"g"),a={...e,className:t?.replace(o,"").trim()},r=t?.match(o)?.[0]?.trim();return r&&Object.assign(a,{layout:{type:"flex",justifyContent:r.slice(16)}}),a},save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,itemsJustification:o,size:a}}=e,r=it()(a,{"has-icon-color":n,"has-icon-background-color":t,[`items-justified-${o}`]:o}),l={"--wp--social-links--icon-color":n,"--wp--social-links--icon-background-color":t};return(0,qe.createElement)("ul",{...Ye.useBlockProps.save({className:r,style:l})},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];var Mx=Ix;var zx=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));const Rx=["core/social-link"],Hx=[{name:(0,Je.__)("Small"),value:"has-small-icon-size"},{name:(0,Je.__)("Normal"),value:"has-normal-icon-size"},{name:(0,Je.__)("Large"),value:"has-large-icon-size"},{name:(0,Je.__)("Huge"),value:"has-huge-icon-size"}];var Lx=(0,Ye.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){var t;const{clientId:n,attributes:o,iconBackgroundColor:a,iconColor:r,isSelected:l,setAttributes:i,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,customIconBackgroundColor:m,iconColorValue:p,openInNewTab:d,showLabels:g,size:h}=o,_=o.className?.includes("is-style-logos-only"),b=(0,qe.useRef)({});(0,qe.useEffect)((()=>{_?(b.current={iconBackgroundColor:a,iconBackgroundColorValue:u,customIconBackgroundColor:m},i({iconBackgroundColor:void 0,customIconBackgroundColor:void 0,iconBackgroundColorValue:void 0})):i({...b.current})}),[_]);const f=(0,qe.createElement)("li",{className:"wp-block-social-links__social-placeholder"},(0,qe.createElement)("div",{className:"wp-block-social-links__social-placeholder-icons"},(0,qe.createElement)("div",{className:"wp-social-link wp-social-link-twitter"}),(0,qe.createElement)("div",{className:"wp-social-link wp-social-link-facebook"}),(0,qe.createElement)("div",{className:"wp-social-link wp-social-link-instagram"}))),v=(0,qe.createElement)("li",{className:"wp-block-social-links__social-prompt"},(0,Je.__)("Click plus to add")),y=it()(h,{"has-visible-labels":g,"has-icon-color":r.color||p,"has-icon-background-color":a.color||u}),k=(0,Ye.useBlockProps)({className:y}),x=(0,Ye.useInnerBlocksProps)(k,{allowedBlocks:Rx,placeholder:l?v:f,templateLock:!1,orientation:null!==(t=o.layout?.orientation)&&void 0!==t?t:"horizontal",__experimentalAppenderTagName:"li"}),w=[{value:r.color||p,onChange:e=>{c(e),i({iconColorValue:e})},label:(0,Je.__)("Icon color"),resetAllFilter:()=>{c(void 0),i({iconColorValue:void 0})}}];_||w.push({value:a.color||u,onChange:e=>{s(e),i({iconBackgroundColorValue:e})},label:(0,Je.__)("Icon background"),resetAllFilter:()=>{s(void 0),i({iconBackgroundColorValue:void 0})}});const C=(0,Ye.__experimentalUseMultipleOriginColorsAndGradients)();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ke.ToolbarDropdownMenu,{label:(0,Je.__)("Size"),text:(0,Je.__)("Size"),icon:null,popoverProps:{position:"bottom right"}},(({onClose:e})=>(0,qe.createElement)(Ke.MenuGroup,null,Hx.map((t=>(0,qe.createElement)(Ke.MenuItem,{icon:(h===t.value||!h&&"has-normal-icon-size"===t.value)&&zx,isSelected:h===t.value,key:t.value,onClick:()=>{i({size:t.value})},onClose:e,role:"menuitemradio"},t.name))))))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open links in new tab"),checked:d,onChange:()=>i({openInNewTab:!d})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show labels"),checked:g,onChange:()=>i({showLabels:!g})}))),C.hasColorsOrGradients&&(0,qe.createElement)(Ye.InspectorControls,{group:"color"},w.map((({onChange:e,label:t,value:o,resetAllFilter:a})=>(0,qe.createElement)(Ye.__experimentalColorGradientSettingsDropdown,{key:`social-links-color-${t}`,__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o,label:t,onColorChange:e,isShownByDefault:!0,resetAllFilter:a,enableAlpha:!0}],panelId:n,...C}))),!_&&(0,qe.createElement)(Ye.ContrastChecker,{textColor:p,backgroundColor:u,isLargeText:!1})),(0,qe.createElement)("ul",{...x}))}));const Ax={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-links",title:"Social Icons",category:"widgets",description:"Display icons linking to your social media profiles or sites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},showLabels:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",showLabels:"showLabels",iconColor:"iconColor",iconColorValue:"iconColorValue",iconBackgroundColor:"iconBackgroundColor",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0,layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}},color:{enableContrastChecker:!1,background:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!1}},spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0,margin:!0,padding:!1}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"},{name:Vx}=Ax,Dx={example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},icon:yx,edit:Lx,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,showLabels:o,size:a}}=e,r=it()(a,{"has-visible-labels":o,"has-icon-color":n,"has-icon-background-color":t}),l=Ye.useBlockProps.save({className:r}),i=Ye.useInnerBlocksProps.save(l);return(0,qe.createElement)("ul",{...i})},deprecated:Mx},Fx=()=>Qe({name:Vx,metadata:Ax,settings:Dx});var $x=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"}));const Gx=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){const{height:t,width:n}=e;return{...e,width:void 0!==n?`${n}px`:void 0,height:void 0!==t?`${t}px`:void 0}},save({attributes:e}){return(0,qe.createElement)("div",{...Ye.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}];var Ox=Gx;const Ux=0;function jx({label:e,onChange:t,isResizing:n,value:o=""}){const a=(0,Tt.useInstanceId)(Ke.__experimentalUnitControl,"block-spacer-height-input"),r=(0,Ye.useSetting)("spacing.spacingSizes"),l=((0,Ye.useSetting)("spacing.units")||void 0)?.filter((e=>"%"!==e)),i=(0,Ke.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem","vw","vh"],defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),s=e=>{t(e.all)},[c,u]=(0,Ke.__experimentalParseQuantityAndUnitFromRawValue)(o),m=(0,Ye.isValueSpacingPreset)(o)?o:[c,n?"px":u].join("");return(0,qe.createElement)(qe.Fragment,null,(!r||0===r?.length)&&(0,qe.createElement)(Ke.BaseControl,{label:e,id:a},(0,qe.createElement)(Ke.__experimentalUnitControl,{id:a,isResetValueOnUnitChange:!0,min:Ux,onChange:s,style:{maxWidth:80},value:m,units:i})),r?.length>0&&(0,qe.createElement)(We.View,{className:"tools-panel-item-spacing"},(0,qe.createElement)(Ye.__experimentalSpacingSizesControl,{values:{all:m},onChange:s,label:e,sides:["all"],units:i,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})))}function qx({setAttributes:e,orientation:t,height:n,width:o,isResizing:a}){return(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},"horizontal"===t&&(0,qe.createElement)(jx,{label:(0,Je.__)("Width"),value:o,onChange:t=>e({width:t}),isResizing:a}),"horizontal"!==t&&(0,qe.createElement)(jx,{label:(0,Je.__)("Height"),value:n,onChange:t=>e({height:t}),isResizing:a})))}const Wx=({orientation:e,onResizeStart:t,onResize:n,onResizeStop:o,isSelected:a,isResizing:r,setIsResizing:l,...i})=>{const s=t=>"horizontal"===e?t.clientWidth:t.clientHeight,c=e=>`${s(e)}px`;return(0,qe.createElement)(Ke.ResizableBox,{className:it()("block-library-spacer__resize-container",{"resize-horizontal":"horizontal"===e,"is-resizing":r,"is-selected":a}),onResizeStart:(e,o,a)=>{const r=c(a);t(r),n(r)},onResize:(e,t,o)=>{n(c(o)),r||l(!0)},onResizeStop:(e,t,n)=>{const a=s(n);o(`${a}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"horizontal"===e?"x":"y",position:"corner",isVisible:r},showHandle:a,...i})};var Zx=({attributes:e,isSelected:t,setAttributes:n,toggleSelection:o,context:a,__unstableParentLayout:r,className:l})=>{const i=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings();return t?.disableCustomSpacingSizes})),{orientation:s}=a,{orientation:c,type:u}=r||{},m="flex"===u,p=!c&&m?"horizontal":c||s,{height:d,width:g,style:h={}}=e,{layout:_={}}=h,{selfStretch:b,flexSize:f}=_,v=(0,Ye.useSetting)("spacing.spacingSizes"),[y,k]=(0,qe.useState)(!1),[x,w]=(0,qe.useState)(null),[C,E]=(0,qe.useState)(null),S=()=>o(!1),B=()=>o(!0),T=e=>{B(),m&&n({style:{...h,layout:{..._,flexSize:e,selfStretch:"fixed"}}}),n({height:e}),w(null)},N=e=>{B(),m&&n({style:{...h,layout:{..._,flexSize:e,selfStretch:"fixed"}}}),n({width:e}),E(null)},P="horizontal"===p?C||f:x||f,I={height:"horizontal"===p?24:(()=>{if(!m)return x||(0,Ye.getSpacingPresetCssVar)(d)||void 0})(),width:"horizontal"===p?(()=>{if(!m)return C||(0,Ye.getSpacingPresetCssVar)(g)||void 0})():void 0,minWidth:"vertical"===p&&m?48:void 0,flexBasis:m?P:void 0,flexGrow:m&&y?0:void 0};return(0,qe.useEffect)((()=>{if(m&&"fill"!==b&&"fit"!==b&&!f)if("horizontal"===p){const e=(0,Ye.getCustomValueFromPreset)(g,v)||(0,Ye.getCustomValueFromPreset)(d,v)||"100px";n({width:"0px",style:{...h,layout:{..._,flexSize:e,selfStretch:"fixed"}}})}else{const e=(0,Ye.getCustomValueFromPreset)(d,v)||(0,Ye.getCustomValueFromPreset)(g,v)||"100px";n({height:"0px",style:{...h,layout:{..._,flexSize:e,selfStretch:"fixed"}}})}else!m||"fill"!==b&&"fit"!==b?m||!b&&!f||(n("horizontal"===p?{width:f}:{height:f}),n({style:{...h,layout:{..._,flexSize:void 0,selfStretch:void 0}}})):n("horizontal"===p?{width:void 0}:{height:void 0})}),[h,f,d,p,m,_,b,n,v,g]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(We.View,{...(0,Ye.useBlockProps)({style:I,className:it()(l,{"custom-sizes-disabled":i})})},"horizontal"===(M=p)?(0,qe.createElement)(Wx,{minWidth:Ux,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:M,onResizeStart:S,onResize:E,onResizeStop:N,isSelected:t,isResizing:y,setIsResizing:k}):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Wx,{minHeight:Ux,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:M,onResizeStart:S,onResize:w,onResizeStop:T,isSelected:t,isResizing:y,setIsResizing:k}))),!m&&(0,qe.createElement)(qx,{setAttributes:n,height:x||d,width:C||g,orientation:p,isResizing:y}));var M};const Qx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"string",default:"100px"},width:{type:"string"}},usesContext:["orientation"],supports:{anchor:!0,spacing:{margin:["top","bottom"],__experimentalDefaultControls:{margin:!0}}},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},{name:Kx}=Qx,Jx={icon:$x,edit:Zx,save:function({attributes:e}){const{height:t,width:n,style:o}=e,{layout:{selfStretch:a}={}}=o||{},r="fill"===a||"fit"===a?void 0:t;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({style:{height:(0,Ye.getSpacingPresetCssVar)(r),width:(0,Ye.getSpacingPresetCssVar)(n)},"aria-hidden":!0})})},deprecated:Ox},Yx=()=>Qe({name:Kx,metadata:Qx,settings:Jx});var Xx=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.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-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"}));const ew={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},tw={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){const{hasFixedLayout:t,head:n,body:o,foot:a,caption:r}=e;if(!n.length&&!o.length&&!a.length)return null;const l=(0,Ye.__experimentalGetColorClassesAndStyles)(e),i=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),s=it()(l.className,i.className,{"has-fixed-layout":t}),c=!Ye.RichText.isEmpty(r),u=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,qe.createElement)(n,null,t.map((({cells:e},t)=>(0,qe.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:o},a)=>{const r=it()({[`has-text-align-${o}`]:o});return(0,qe.createElement)(Ye.RichText.Content,{className:r||void 0,"data-align":o,tagName:t,value:e,key:a,scope:"th"===t?n:void 0})}))))))};return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("table",{className:""===s?void 0:s,style:{...l.style,...i.style}},(0,qe.createElement)(u,{type:"head",rows:n}),(0,qe.createElement)(u,{type:"body",rows:o}),(0,qe.createElement)(u,{type:"foot",rows:a})),c&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:r}))}},nw={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{const{hasFixedLayout:t,head:n,body:o,foot:a,backgroundColor:r,caption:l}=e;if(!n.length&&!o.length&&!a.length)return null;const i=(0,Ye.getColorClassName)("background-color",r),s=it()(i,{"has-fixed-layout":t,"has-background":!!i}),c=!Ye.RichText.isEmpty(l),u=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,qe.createElement)(n,null,t.map((({cells:e},t)=>(0,qe.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:o},a)=>{const r=it()({[`has-text-align-${o}`]:o});return(0,qe.createElement)(Ye.RichText.Content,{className:r||void 0,"data-align":o,tagName:t,value:e,key:a,scope:"th"===t?n:void 0})}))))))};return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("table",{className:""===s?void 0:s},(0,qe.createElement)(u,{type:"head",rows:n}),(0,qe.createElement)(u,{type:"body",rows:o}),(0,qe.createElement)(u,{type:"foot",rows:a})),c&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:l}))},isEligible:e=>e.backgroundColor&&e.backgroundColor in ew&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:ew[e.backgroundColor]}}})},ow={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save({attributes:e}){const{hasFixedLayout:t,head:n,body:o,foot:a,backgroundColor:r}=e;if(!n.length&&!o.length&&!a.length)return null;const l=(0,Ye.getColorClassName)("background-color",r),i=it()(l,{"has-fixed-layout":t,"has-background":!!l}),s=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,qe.createElement)(n,null,t.map((({cells:e},t)=>(0,qe.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n},o)=>(0,qe.createElement)(Ye.RichText.Content,{tagName:t,value:e,key:o,scope:"th"===t?n:void 0})))))))};return(0,qe.createElement)("table",{className:i},(0,qe.createElement)(s,{type:"head",rows:n}),(0,qe.createElement)(s,{type:"body",rows:o}),(0,qe.createElement)(s,{type:"foot",rows:a}))}};var aw=[tw,nw,ow];var rw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"}));var lw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"}));var iw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"}));var sw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"}));var cw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"}));var uw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"}));var mw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"}));var pw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"}));var dw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"}));var gw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));const hw=["align"];function _w(e,t,n){if(!t)return e;const o=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e)))),{sectionName:a,rowIndex:r}=t;return Object.fromEntries(Object.entries(o).map((([e,o])=>a&&a!==e?[e,o]:[e,o.map(((o,a)=>r&&r!==a?o:{cells:o.cells.map(((o,r)=>function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:e,columnIndex:r,rowIndex:a},t)?n(o):o))}))])))}function bw(e,{sectionName:t,rowIndex:n,columnCount:o}){const a=function(e){return vw(e.head)?vw(e.body)?vw(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),r=void 0===o?a?.cells?.length:o;return r?{[t]:[...e[t].slice(0,n),{cells:Array.from({length:r}).map(((e,n)=>{var o;const r=null!==(o=a?.cells?.[n])&&void 0!==o?o:{};return{...Object.fromEntries(Object.entries(r).filter((([e])=>hw.includes(e)))),content:"",tag:"head"===t?"th":"td"}}))},...e[t].slice(n)]}:e}function fw(e,t){var n;if(!vw(e[t]))return{[t]:[]};return bw(e,{sectionName:t,rowIndex:0,columnCount:null!==(n=e.body?.[0]?.cells?.length)&&void 0!==n?n:1})}function vw(e){return!e||!e.length||e.every(yw)}function yw(e){return!(e.cells&&e.cells.length)}const kw=[{icon:rw,title:(0,Je.__)("Align column left"),align:"left"},{icon:lw,title:(0,Je.__)("Align column center"),align:"center"},{icon:iw,title:(0,Je.__)("Align column right"),align:"right"}],xw={head:(0,Je.__)("Header cell text"),body:(0,Je.__)("Body cell text"),foot:(0,Je.__)("Footer cell text")},ww={head:(0,Je.__)("Header label"),foot:(0,Je.__)("Footer label")};function Cw({name:e,...t}){const n=`t${e}`;return(0,qe.createElement)(n,{...t})}var Ew=function({attributes:e,setAttributes:t,insertBlocksAfter:n,isSelected:o}){const{hasFixedLayout:a,caption:r,head:l,foot:i}=e,[s,c]=(0,qe.useState)(2),[u,m]=(0,qe.useState)(2),[p,d]=(0,qe.useState)(),g=(0,Ye.__experimentalUseColorProps)(e),h=(0,Ye.__experimentalUseBorderProps)(e),_=(0,qe.useRef)(),[b,f]=(0,qe.useState)(!1);function v(n){p&&t(_w(e,p,(e=>({...e,content:n}))))}function y(n){if(!p)return;const{sectionName:o,rowIndex:a}=p,r=a+n;t(bw(e,{sectionName:o,rowIndex:r})),d({sectionName:o,rowIndex:r,columnIndex:0,type:"cell"})}function k(n=0){if(!p)return;const{columnIndex:o}=p,a=o+n;t(function(e,{columnIndex:t}){const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(n).map((([e,n])=>vw(n)?[e,n]:[e,n.map((n=>yw(n)||n.cells.length<t?n:{cells:[...n.cells.slice(0,t),{content:"",tag:"head"===e?"th":"td"},...n.cells.slice(t)]}))])))}(e,{columnIndex:a})),d({rowIndex:0,columnIndex:a,type:"cell"})}(0,qe.useEffect)((()=>{o||d()}),[o]),(0,qe.useEffect)((()=>{b&&(_?.current?.querySelector('td[contentEditable="true"]')?.focus(),f(!1))}),[b]);const x=["head","body","foot"].filter((t=>!vw(e[t]))),w=[{icon:sw,title:(0,Je.__)("Insert row before"),isDisabled:!p,onClick:function(){y(0)}},{icon:cw,title:(0,Je.__)("Insert row after"),isDisabled:!p,onClick:function(){y(1)}},{icon:uw,title:(0,Je.__)("Delete row"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:n,rowIndex:o}=p;d(),t(function(e,{sectionName:t,rowIndex:n}){return{[t]:e[t].filter(((e,t)=>t!==n))}}(e,{sectionName:n,rowIndex:o}))}},{icon:mw,title:(0,Je.__)("Insert column before"),isDisabled:!p,onClick:function(){k(0)}},{icon:pw,title:(0,Je.__)("Insert column after"),isDisabled:!p,onClick:function(){k(1)}},{icon:dw,title:(0,Je.__)("Delete column"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:n,columnIndex:o}=p;d(),t(function(e,{columnIndex:t}){const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(n).map((([e,n])=>vw(n)?[e,n]:[e,n.map((e=>({cells:e.cells.length>=t?e.cells.filter(((e,n)=>n!==t)):e.cells}))).filter((e=>e.cells.length))])))}(e,{sectionName:n,columnIndex:o}))}}],C=x.map((t=>(0,qe.createElement)(Cw,{name:t,key:t},e[t].map((({cells:e},n)=>(0,qe.createElement)("tr",{key:n},e.map((({content:e,tag:o,scope:a,align:r,colspan:l,rowspan:i},s)=>(0,qe.createElement)(Ye.RichText,{tagName:o,key:s,className:it()({[`has-text-align-${r}`]:r},"wp-block-table__cell-content"),scope:"th"===o?a:void 0,colSpan:l,rowSpan:i,value:e,onChange:v,onFocus:()=>{d({sectionName:t,rowIndex:n,columnIndex:s,type:"cell"})},"aria-label":xw[t],placeholder:ww[t]}))))))))),E=!x.length;return(0,qe.createElement)("figure",{...(0,Ye.useBlockProps)({ref:_})},!E&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{label:(0,Je.__)("Change column alignment"),alignmentControls:kw,value:function(){if(p)return function(e,t,n){const{sectionName:o,rowIndex:a,columnIndex:r}=t;return e[o]?.[a]?.cells?.[r]?.[n]}(e,p,"align")}(),onChange:n=>function(n){if(!p)return;const o={type:"column",columnIndex:p.columnIndex},a=_w(e,o,(e=>({...e,align:n})));t(a)}(n)})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ke.ToolbarDropdownMenu,{hasArrowIndicator:!0,icon:gw,label:(0,Je.__)("Edit table"),controls:w}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings"),className:"blocks-table-settings"},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Fixed width table cells"),checked:!!a,onChange:function(){t({hasFixedLayout:!a})}}),!E&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Header section"),checked:!(!l||!l.length),onChange:function(){t(fw(e,"head"))}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Footer section"),checked:!(!i||!i.length),onChange:function(){t(fw(e,"foot"))}})))),!E&&(0,qe.createElement)("table",{className:it()(g.className,h.className,{"has-fixed-layout":a,"has-individual-borders":(0,Ke.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...g.style,...h.style}},C),!E&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),"aria-label":(0,Je.__)("Table caption text"),placeholder:(0,Je.__)("Add caption"),value:r,onChange:e=>t({caption:e}),onFocus:()=>d(),__unstableOnSplitAtEnd:()=>n((0,je.createBlock)((0,je.getDefaultBlockName)()))}),E&&(0,qe.createElement)(Ke.Placeholder,{label:(0,Je.__)("Table"),icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Xx,showColors:!0}),instructions:(0,Je.__)("Insert a table for sharing data.")},(0,qe.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),t(function({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map((()=>({cells:Array.from({length:t}).map((()=>({content:"",tag:"td"})))})))}}({rowCount:parseInt(s,10)||2,columnCount:parseInt(u,10)||2})),f(!0)}},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,type:"number",label:(0,Je.__)("Column count"),value:u,onChange:function(e){m(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,type:"number",label:(0,Je.__)("Row count"),value:s,onChange:function(e){c(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,qe.createElement)(Ke.Button,{className:"blocks-table__placeholder-button",variant:"primary",type:"submit"},(0,Je.__)("Create Table")))))};function Sw(e){const t=parseInt(e,10);if(Number.isInteger(t))return t<0||1===t?void 0:t.toString()}const Bw=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan"]}}}}),Tw={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:Bw(e)},tfoot:{allowEmpty:!0,children:Bw(e)},tbody:{allowEmpty:!0,children:Bw(e)}}}}),transform:e=>{const t=Array.from(e.children).reduce(((e,t)=>{if(!t.children.length)return e;const n=t.nodeName.toLowerCase().slice(1),o=Array.from(t.children).reduce(((e,t)=>{if(!t.children.length)return e;const n=Array.from(t.children).reduce(((e,t)=>{const n=Sw(t.getAttribute("rowspan")),o=Sw(t.getAttribute("colspan"));return e.push({tag:t.nodeName.toLowerCase(),content:t.innerHTML,rowspan:n,colspan:o}),e}),[]);return e.push({cells:n}),e}),[]);return e[n]=o,e}),{});return(0,je.createBlock)("core/table",t)}}]};var Nw=Tw;const Pw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"},{name:Iw}=Pw,Mw={icon:Xx,example:{attributes:{head:[{cells:[{content:(0,Je.__)("Version"),tag:"th"},{content:(0,Je.__)("Jazz Musician"),tag:"th"},{content:(0,Je.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:(0,Je.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:(0,Je.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:(0,Je.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:Nw,edit:Ew,save:function({attributes:e}){const{hasFixedLayout:t,head:n,body:o,foot:a,caption:r}=e;if(!n.length&&!o.length&&!a.length)return null;const l=(0,Ye.__experimentalGetColorClassesAndStyles)(e),i=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),s=it()(l.className,i.className,{"has-fixed-layout":t}),c=!Ye.RichText.isEmpty(r),u=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,qe.createElement)(n,null,t.map((({cells:e},t)=>(0,qe.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:o,colspan:a,rowspan:r},l)=>{const i=it()({[`has-text-align-${o}`]:o});return(0,qe.createElement)(Ye.RichText.Content,{className:i||void 0,"data-align":o,tagName:t,value:e,key:l,scope:"th"===t?n:void 0,colSpan:a,rowSpan:r})}))))))};return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("table",{className:""===s?void 0:s,style:{...l.style,...i.style}},(0,qe.createElement)(u,{type:"head",rows:n}),(0,qe.createElement)(u,{type:"body",rows:o}),(0,qe.createElement)(u,{type:"foot",rows:a})),c&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:r,className:(0,Ye.__experimentalGetElementClassName)("caption")}))},deprecated:aw},zw=()=>Qe({name:Iw,metadata:Pw,settings:Mw});var Rw=n(5619),Hw=n.n(Rw),Lw=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M15.1 15.8H20v-1.5h-4.9v1.5zm-4-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 3c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1zm5-3c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#1e1e1e"}));const Aw="wp-block-table-of-contents__entry";function Vw({nestedHeadingList:e}){return(0,qe.createElement)(qe.Fragment,null,e.map(((e,t)=>{const{content:n,link:o}=e.heading,a=o?(0,qe.createElement)("a",{className:Aw,href:o},n):(0,qe.createElement)("span",{className:Aw},n);return(0,qe.createElement)("li",{key:t},a,e.children?(0,qe.createElement)("ol",null,(0,qe.createElement)(Vw,{nestedHeadingList:e.children})):null)})))}function Dw(e){const t=[];return e.forEach(((n,o)=>{if(""!==n.content&&n.level===e[0].level)if(e[o+1]?.level>n.level){let a=e.length;for(let t=o+1;t<e.length;t++)if(e[t].level===n.level){a=t;break}t.push({heading:n,children:Dw(e.slice(o+1,a))})}else t.push({heading:n,children:null})})),t}const Fw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/table-of-contents",title:"Table of Contents",category:"layout",description:"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",keywords:["document outline","summary"],textdomain:"default",attributes:{headings:{type:"array",items:{type:"object"}},onlyIncludeCurrentPage:{type:"boolean",default:!1}},supports:{html:!1,color:{text:!0,background:!0,gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},example:{}},{name:$w}=Fw,Gw={icon:Lw,edit:function({attributes:{headings:e=[],onlyIncludeCurrentPage:t},clientId:n,setAttributes:o}){const a=(0,Ye.useBlockProps)(),r=(0,ut.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:o}=e(Ye.store);return o("core/list",t(n))}),[n]),{__unstableMarkNextChangeAsNotPersistent:l,replaceBlocks:i}=(0,ut.useDispatch)(Ye.store),s=(0,ut.useSelect)((o=>{var a;const{getBlockAttributes:r,getBlockName:l,getClientIdsWithDescendants:i,__experimentalGetGlobalBlocksByName:s}=o(Ye.store),c=o("core/editor"),u=0!==s("core/nextpage").length,m=i();let p=1;if(u&&t){const e=m.indexOf(n);for(const[t,n]of m.entries()){if(t>=e)break;"core/nextpage"===l(n)&&p++}}const d=[];let g=1;const h=null!==(a=c?.getPermalink())&&void 0!==a?a:null;let _=null;"string"==typeof h&&(_=u?(0,st.addQueryArgs)(h,{page:g}):h);for(const e of m){const n=l(e);if("core/nextpage"===n){if(g++,t&&g>p)break;"string"==typeof h&&(_=(0,st.addQueryArgs)((0,st.removeQueryArgs)(h,["page"]),{page:g}))}else if((!t||g===p)&&"core/heading"===n){const t=r(e),n="string"==typeof _&&"string"==typeof t.anchor&&""!==t.anchor;d.push({content:(0,dd.__unstableStripHTML)(t.content.replace(/(<br *\/?>)+/g," ")),level:t.level,link:n?`${_}#${t.anchor}`:null})}}return Hw()(e,d)?null:d}),[n,t,e]);(0,qe.useEffect)((()=>{null!==s&&(l(),o({headings:s}))}),[s]);const c=Dw(e),u=r&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>i(n,(0,je.createBlock)("core/list",{ordered:!0,values:(0,qe.renderToString)((0,qe.createElement)(Vw,{nestedHeadingList:c}))}))},(0,Je.__)("Convert to static list")))),m=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Only include current page"),checked:t,onChange:e=>o({onlyIncludeCurrentPage:e}),help:t?(0,Je.__)("Only including headings from the current page (if the post is paginated)."):(0,Je.__)("Toggle to only include headings from the current page (if the post is paginated).")})));return 0===e.length?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{...a},(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Lw}),label:(0,Je.__)("Table of Contents"),instructions:(0,Je.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})),m):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("nav",{...a},(0,qe.createElement)("ol",{inert:"true"},(0,qe.createElement)(Vw,{nestedHeadingList:c}))),u,m)},save:function({attributes:{headings:e=[]}}){return 0===e.length?null:(0,qe.createElement)("nav",{...Ye.useBlockProps.save()},(0,qe.createElement)("ol",null,(0,qe.createElement)(Vw,{nestedHeadingList:Dw(e)})))}},Ow=()=>Qe({name:$w,metadata:Fw,settings:Gw});var Uw={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,je.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,je.createBlock)("core/categories")}]};var jw=(0,ut.withSelect)((e=>({taxonomies:e(ct.store).getTaxonomies({per_page:-1})})))((function({attributes:e,setAttributes:t,taxonomies:n}){const{taxonomy:o,showTagCounts:a,numberOfTags:r,smallestFontSize:l,largestFontSize:i}=e,s=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["%","px","em","rem"]}),c=(e,n)=>{const[o,a]=(0,Ke.__experimentalParseQuantityAndUnitFromRawValue)(n);if(!Number.isFinite(o))return;const r={[e]:n};Object.entries({smallestFontSize:l,largestFontSize:i}).forEach((([t,n])=>{const[o,l]=(0,Ke.__experimentalParseQuantityAndUnitFromRawValue)(n);t!==e&&l!==a&&(r[t]=`${o}${a}`)})),t(r)},u=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Taxonomy"),options:[{label:(0,Je.__)("- Select -"),value:"",disabled:!0},...(null!=n?n:[]).filter((e=>!!e.show_cloud)).map((e=>({value:e.slug,label:e.name})))],value:o,onChange:e=>t({taxonomy:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:a,onChange:()=>t({showTagCounts:!a})}),(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Number of tags"),value:r,onChange:e=>t({numberOfTags:e}),min:1,max:100,required:!0}),(0,qe.createElement)(Ke.Flex,null,(0,qe.createElement)(Ke.FlexItem,{isBlock:!0},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Smallest size"),value:l,onChange:e=>{c("smallestFontSize",e)},units:s,min:.1,max:100})),(0,qe.createElement)(Ke.FlexItem,{isBlock:!0},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Largest size"),value:i,onChange:e=>{c("largestFontSize",e)},units:s,min:.1,max:100})))));return(0,qe.createElement)(qe.Fragment,null,u,(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{skipBlockSupportAttributes:!0,block:"core/tag-cloud",attributes:e}))))}));const qw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of your most used tags.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1},smallestFontSize:{type:"string",default:"8pt"},largestFontSize:{type:"string",default:"22pt"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"outline",label:"Outline"}],supports:{html:!1,align:!0,spacing:{margin:!0,padding:!0},typography:{lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},editorStyle:"wp-block-tag-cloud-editor"},{name:Ww}=qw,Zw={icon:th,example:{},edit:jw,transforms:Uw},Qw=()=>Qe({name:Ww,metadata:qw,settings:Zw});var Kw=function(){return Kw=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Kw.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function Jw(e){return e.toLowerCase()}var Yw=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Xw=/[^A-Z0-9]+/gi;function eC(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?Yw:n,a=t.stripRegexp,r=void 0===a?Xw:a,l=t.transform,i=void 0===l?Jw:l,s=t.delimiter,c=void 0===s?" ":s,u=tC(tC(e,o,"$1\0$2"),r,"\0"),m=0,p=u.length;"\0"===u.charAt(m);)m++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(m,p).split("\0").map(i).join(c)}function tC(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function nC(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}var oC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function aC(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),eC(e,Kw({delimiter:"."},t))}(e,Kw({delimiter:"-"},t))}function rC(e,t){const{templateParts:n,isResolving:o}=(0,ut.useSelect)((e=>{const{getEntityRecords:t,isResolving:n}=e(ct.store),o={per_page:-1};return{templateParts:t("postType","wp_template_part",o),isResolving:n("getEntityRecords",["postType","wp_template_part",o])}}),[]);return{templateParts:(0,qe.useMemo)((()=>n&&n.filter((n=>rg(n.theme,n.slug)!==t&&(!e||"uncategorized"===e||n.area===e)))||[]),[n,e,t]),isResolving:o}}function lC(e,t){return(0,ut.useSelect)((n=>{const o=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:a,getPatternsByBlockTypes:r}=n(Ye.store);return r(o,a(t))}),[e,t])}function iC(e,t){const{saveEntityRecord:n}=(0,ut.useDispatch)(ct.store);return async(o=[],a=(0,Je.__)("Untitled Template Part"))=>{const r={title:a,slug:aC(a).replace(/[^\w-]+/g,"")||"wp-custom-part",content:(0,je.serialize)(o),area:e},l=await n("postType","wp_template_part",r);t({slug:l.slug,theme:l.theme,area:void 0})}}function sC(e){return(0,ut.useSelect)((t=>{var n;const o=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),a=o.find((t=>t.area===e)),r=o.find((e=>"uncategorized"===e.area));return{icon:a?.icon||r?.icon,label:a?.label||(0,Je.__)("Template Part"),tagName:null!==(n=a?.area_tag)&&void 0!==n?n:"div"}}),[e])}function cC({areaLabel:e,onClose:t,onSubmit:n}){const[o,a]=(0,qe.useState)((0,Je.__)("Untitled Template Part"));return(0,qe.createElement)(Ke.Modal,{title:(0,Je.sprintf)((0,Je.__)("Name and create your new %s"),e.toLowerCase()),overlayClassName:"wp-block-template-part__placeholder-create-new__title-form",onRequestClose:t},(0,qe.createElement)("form",{onSubmit:e=>{e.preventDefault(),n(o)}},(0,qe.createElement)(Ke.__experimentalVStack,{spacing:"5"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Name"),value:o,onChange:a}),(0,qe.createElement)(Ke.__experimentalHStack,{justify:"right"},(0,qe.createElement)(Ke.Button,{variant:"primary",type:"submit",disabled:!o.length,"aria-disabled":!o.length},(0,Je.__)("Create"))))))}function uC({area:e,clientId:t,templatePartId:n,onOpenSelectionModal:o,setAttributes:a}){const{templateParts:r,isResolving:l}=rC(e,n),i=lC(e,t),[s,c]=(0,qe.useState)(!1),u=sC(e),m=iC(e,a);return(0,qe.createElement)(Ke.Placeholder,{icon:u.icon,label:u.label,instructions:(0,Je.sprintf)((0,Je.__)("Choose an existing %s or create a new one."),u.label.toLowerCase())},l&&(0,qe.createElement)(Ke.Spinner,null),!l&&!(!r.length&&!i.length)&&(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:o},(0,Je.__)("Choose")),!l&&(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:()=>{c(!0)}},(0,Je.__)("Start blank")),s&&(0,qe.createElement)(cC,{areaLabel:u.label,onClose:()=>c(!1),onSubmit:e=>{m([],e)}}))}function mC({setAttributes:e,onClose:t,templatePartId:n=null,area:o,clientId:a}){const[r,l]=(0,qe.useState)(""),{templateParts:i}=rC(o,n),s=(0,qe.useMemo)((()=>Mv(i.map((e=>({name:rg(e.theme,e.slug),title:e.title.rendered,blocks:(0,je.parse)(e.content.raw),templatePart:e}))),r)),[i,r]),c=(0,Tt.useAsyncList)(s),u=lC(o,a),m=(0,qe.useMemo)((()=>Mv(u,r)),[u,r]),p=(0,Tt.useAsyncList)(m),{createSuccessNotice:d}=(0,ut.useDispatch)(Bt.store),g=iC(o,e),h=!!s.length,_=!!m.length;return(0,qe.createElement)("div",{className:"block-library-template-part__selection-content"},(0,qe.createElement)("div",{className:"block-library-template-part__selection-search"},(0,qe.createElement)(Ke.SearchControl,{__nextHasNoMarginBottom:!0,onChange:l,value:r,label:(0,Je.__)("Search for replacements"),placeholder:(0,Je.__)("Search")})),h&&(0,qe.createElement)("div",null,(0,qe.createElement)("h2",null,(0,Je.__)("Existing template parts")),(0,qe.createElement)(Ye.__experimentalBlockPatternsList,{blockPatterns:s,shownPatterns:c,onClickPattern:n=>{var o;o=n.templatePart,e({slug:o.slug,theme:o.theme,area:void 0}),d((0,Je.sprintf)((0,Je.__)('Template Part "%s" inserted.'),o.title?.rendered||o.slug),{type:"snackbar"}),t()}})),_&&(0,qe.createElement)("div",null,(0,qe.createElement)("h2",null,(0,Je.__)("Patterns")),(0,qe.createElement)(Ye.__experimentalBlockPatternsList,{blockPatterns:m,shownPatterns:p,onClickPattern:(e,n)=>{g(n,e.title),t()}})),!h&&!_&&(0,qe.createElement)(Ke.__experimentalHStack,{alignment:"center"},(0,qe.createElement)("p",null,(0,Je.__)("No results found."))))}function pC(e){const t=(0,je.getPossibleBlockTransformations)([e]).filter((e=>{if(!e.transforms)return!0;const t=e.transforms?.from?.find((e=>e.blocks&&e.blocks.includes("*"))),n=e.transforms?.to?.find((e=>e.blocks&&e.blocks.includes("*")));return!t&&!n}));if(t.length)return(0,je.switchToBlockType)(e,t[0].name)}function dC(e=[]){return e.flatMap((e=>"core/legacy-widget"===e.name?pC(e):(0,je.createBlock)(e.name,e.attributes,dC(e.innerBlocks)))).filter((e=>!!e))}const gC={per_page:-1,_fields:"id,name,description,status,widgets"};function hC({area:e,setAttributes:t}){const[n,o]=(0,qe.useState)(""),[a,r]=(0,qe.useState)(!1),l=(0,ut.useRegistry)(),{sidebars:i,hasResolved:s}=(0,ut.useSelect)((e=>{const{getSidebars:t,hasFinishedResolution:n}=e(ct.store);return{sidebars:t(gC),hasResolved:n("getSidebars",[gC])}}),[]),{createErrorNotice:c}=(0,ut.useDispatch)(Bt.store),u=iC(e,t),m=(0,qe.useMemo)((()=>{const e=(null!=i?i:[]).filter((e=>"wp_inactive_widgets"!==e.id&&e.widgets.length>0)).map((e=>({value:e.id,label:e.name})));return e.length?[{value:"",label:(0,Je.__)("Select widget area")},...e]:[]}),[i]);if(!s)return(0,qe.createElement)(Ke.__experimentalSpacer,{marginBottom:"0"});if(s&&!m.length)return null;return(0,qe.createElement)(Ke.__experimentalSpacer,{marginBottom:"4"},(0,qe.createElement)(Ke.__experimentalHStack,{as:"form",onSubmit:async function(e){if(e.preventDefault(),a||!n)return;r(!0);const t=m.find((({value:e})=>e===n)),{getWidgets:o}=l.resolveSelect(ct.store),i=await o({sidebar:t.value,_embed:"about"}),s=new Set,p=i.flatMap((e=>{const t=function(e){if("block"!==e.id_base){let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},pC((0,je.createBlock)("core/legacy-widget",t))}const t=(0,je.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;const n=t[0];return"core/widget-group"===n.name?(0,je.createBlock)((0,je.getGroupingBlockName)(),void 0,dC(n.innerBlocks)):n.innerBlocks.length>0?(0,je.cloneBlock)(n,void 0,dC(n.innerBlocks)):n}(e);return t||(s.add(e.id_base),[])}));await u(p,(0,Je.sprintf)((0,Je.__)("Widget area: %s"),t.label)),s.size&&c((0,Je.sprintf)((0,Je.__)("Unable to import the following widgets: %s."),Array.from(s).join(", ")),{type:"snackbar"}),r(!1)}},(0,qe.createElement)(Ke.FlexBlock,null,(0,qe.createElement)(Ke.SelectControl,{label:(0,Je.__)("Import widget area"),value:n,options:m,onChange:e=>o(e),disabled:!m.length,__next36pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),(0,qe.createElement)(Ke.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"}},(0,qe.createElement)(Ke.Button,{variant:"primary",type:"submit",isBusy:a,"aria-disabled":a||!n},(0,Je._x)("Import","button label")))))}function _C({tagName:e,setAttributes:t,isEntityAvailable:n,templatePartId:o,defaultWrapper:a,hasInnerBlocks:r}){const[l,i]=(0,ct.useEntityProp)("postType","wp_template_part","area",o),[s,c]=(0,ct.useEntityProp)("postType","wp_template_part","title",o),{areaOptions:u}=(0,ut.useSelect)((e=>({areaOptions:e("core/editor").__experimentalGetDefaultTemplatePartAreas().map((({label:e,area:t})=>({label:e,value:t})))})),[]),m={header:(0,Je.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Je.__)("The <main> element should be used for the primary content of your document only. "),section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,Je.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,Je.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},n&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Title"),value:s,onChange:e=>{c(e)},onFocus:e=>e.target.select()}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Area"),labelPosition:"top",options:u,value:l,onChange:i})),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.sprintf)((0,Je.__)("Default based on area (%s)"),`<${a}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}],value:e||"",onChange:e=>t({tagName:e}),help:m[e]}),!r&&(0,qe.createElement)(hC,{area:l,setAttributes:t}))}function bC({postId:e,hasInnerBlocks:t,layout:n,tagName:o,blockProps:a}){const r=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t()?.supportsLayout}),[]),l=(0,Ye.useSetting)("layout")||{},i=n&&n.inherit?l:n,[s,c,u]=(0,ct.useEntityBlockEditor)("postType","wp_template_part",{id:e}),m=(0,Ye.useInnerBlocksProps)(a,{value:s,onInput:c,onChange:u,renderAppender:t?void 0:Ye.InnerBlocks.ButtonBlockAppender,layout:r?i:void 0});return(0,qe.createElement)(o,{...m})}var fC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var vC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var yC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));function kC(e,t){if("core/template-part"!==t)return e;if(e.variations){const t=(e,t)=>{const{area:n,theme:o,slug:a}=e;if(n)return n===t.area;if(!a)return!1;const r=(0,ut.select)(ct.store).getEntityRecord("postType","wp_template_part",`${o}//${a}`);return r?.slug?r.slug===t.slug:r?.area===t.area},n=e.variations.map((e=>{return{...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:(n=e.icon,"header"===n?fC:"footer"===n?vC:"sidebar"===n?yC:oC)}};var n}));return{...e,variations:n}}return e}const xC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,reusable:!1},editorStyle:"wp-block-template-part-editor"},{name:wC}=xC,CC={icon:oC,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;const n=(0,ut.select)(ct.store).getEntityRecord("postType","wp_template_part",t+"//"+e);return n?(0,On.decodeEntities)(n.title?.rendered)||function(e,t){return void 0===t&&(t={}),eC(e,Kw({delimiter:" ",transform:nC},t))}(n.slug):void 0},edit:function({attributes:e,setAttributes:t,clientId:n,isSelected:o}){const{slug:a,theme:r,tagName:l,layout:i={}}=e,s=rg(r,a),c=(0,Ye.__experimentalUseHasRecursion)(s),[u,m]=(0,qe.useState)(!1),{isResolved:p,innerBlocks:d,isMissing:g,area:h}=(0,ut.useSelect)((t=>{const{getEditedEntityRecord:o,hasFinishedResolution:a}=t(ct.store),{getBlocks:r}=t(Ye.store),l=["postType","wp_template_part",s],i=s?o(...l):null,c=i?.area||e.area,u=!!s&&a("getEditedEntityRecord",l);return{innerBlocks:r(n),isResolved:u,isMissing:u&&(!i||0===Object.keys(i).length),area:c}}),[s,n]),{templateParts:_}=rC(h,s),b=lC(h,n),f=!!_.length||!!b.length,v=sC(h),y=(0,Ye.useBlockProps)(),k=!a,x=!k&&!g&&p,w=l||v.tagName,C=o&&x&&f&&("header"===h||"footer"===h);return 0===d.length&&(a&&!r||a&&g)?(0,qe.createElement)(w,{...y},(0,qe.createElement)(Ye.Warning,null,(0,Je.sprintf)((0,Je.__)("Template part has been deleted or is unavailable: %s"),a))):x&&c?(0,qe.createElement)(w,{...y},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block cannot be rendered inside itself."))):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.__experimentalRecursionProvider,{uniqueId:s},(0,qe.createElement)(_C,{tagName:l,setAttributes:t,isEntityAvailable:x,templatePartId:s,defaultWrapper:v.tagName,hasInnerBlocks:d.length>0}),k&&(0,qe.createElement)(w,{...y},(0,qe.createElement)(uC,{area:e.area,templatePartId:s,clientId:n,setAttributes:t,onOpenSelectionModal:()=>m(!0)})),C&&(0,qe.createElement)(Ye.BlockSettingsMenuControls,null,(()=>(0,qe.createElement)(Ke.MenuItem,{onClick:()=>{m(!0)}},(0,qe.createInterpolateElement)((0,Je.__)("Replace <BlockTitle />"),{BlockTitle:(0,qe.createElement)(Ye.BlockTitle,{clientId:n,maximumLength:25})})))),x&&(0,qe.createElement)(bC,{tagName:w,blockProps:y,postId:s,hasInnerBlocks:d.length>0,layout:i}),!k&&!p&&(0,qe.createElement)(w,{...y},(0,qe.createElement)(Ke.Spinner,null))),u&&(0,qe.createElement)(Ke.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,Je.sprintf)((0,Je.__)("Choose a %s"),v.label.toLowerCase()),onRequestClose:()=>m(!1),isFullScreen:!0},(0,qe.createElement)(mC,{templatePartId:s,clientId:n,area:h,setAttributes:t,onClose:()=>m(!1)})))}},EC=()=>{(0,Zl.addFilter)("blocks.registerBlockType","core/template-part",kC);const e=["core/post-template","core/post-content"];return(0,Zl.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromPostTemplates",((t,n,o,{getBlock:a,getBlockParentsByBlockName:r})=>{if("core/template-part"!==n.name)return t;for(const t of e){if(a(o)?.name===t||r(o,t).length)return!1}return!0})),Qe({name:wC,metadata:xC,settings:CC})};var SC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"}));const BC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:TC}=BC,NC={icon:SC,edit:function({attributes:e,setAttributes:t,mergedStyle:n}){const{textAlign:o}=e,a=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o}),style:n});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)("div",{...a},(0,qe.createElement)("div",{className:"wp-block-term-description__placeholder"},(0,qe.createElement)("span",null,(0,Je.__)("Term Description")))))}},PC=()=>Qe({name:TC,metadata:BC,settings:NC});const IC={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:n,width:o})=>(0,je.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:e,columns:t},n.map((({children:e})=>(0,je.createBlock)("core/column",{},[(0,je.createBlock)("core/paragraph",{content:e})]))))}]};var MC=IC;const zC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},{name:RC}=zC,HC={transforms:MC,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function({attributes:e,setAttributes:t}){const{width:n,content:o,columns:a}=e;return Gm()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockAlignmentToolbar,{value:n,onChange:e=>t({width:e}),controls:["center","wide","full"]})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:a,onChange:e=>t({columns:e}),min:2,max:4,required:!0}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:`align${n} columns-${a}`})},Array.from({length:a}).map(((e,n)=>(0,qe.createElement)("div",{className:"wp-block-column",key:`column-${n}`},(0,qe.createElement)(Ye.RichText,{tagName:"p",value:o?.[n]?.children,onChange:e=>{t({content:[...o.slice(0,n),{children:e},...o.slice(n+1)]})},"aria-label":(0,Je.sprintf)((0,Je.__)("Column %d text"),n+1),placeholder:(0,Je.__)("New Column")}))))))},save:function({attributes:e}){const{width:t,content:n,columns:o}=e;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:`align${t} columns-${o}`})},Array.from({length:o}).map(((e,t)=>(0,qe.createElement)("div",{className:"wp-block-column",key:`column-${t}`},(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",value:n?.[t]?.children})))))}},LC=()=>Qe({name:RC,metadata:zC,settings:HC});var AC=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"}));const VC={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,content:n}=e;return(0,qe.createElement)(Ye.RichText.Content,{tagName:"pre",style:{textAlign:t},value:n})}},DC={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){const{textAlign:t,content:n}=e,o=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)("pre",{...Ye.useBlockProps.save({className:o})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var FC=[DC,VC];const $C={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,je.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,je.createBlock)("core/paragraph",e)}]};var GC=$C;const OC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},{name:UC}=OC,jC={icon:AC,example:{attributes:{content:(0,Je.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},transforms:GC,deprecated:FC,merge(e,t){return{content:e.content+t.content}},edit:function({attributes:e,setAttributes:t,mergeBlocks:n,onRemove:o,style:a}){const{textAlign:r,content:l}=e,i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${r}`]:r}),style:a});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:r,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)(Ye.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:e=>{t({content:e})},"aria-label":(0,Je.__)("Verse text"),placeholder:(0,Je.__)("Write verse…"),onRemove:o,onMerge:n,textAlign:r,...i,__unstablePastePlainText:!0}))},save:function({attributes:e}){const{textAlign:t,content:n}=e,o=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)("pre",{...Ye.useBlockProps.save({className:o})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},qC=()=>Qe({name:UC,metadata:OC,settings:jC});var WC=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));function ZC({tracks:e=[]}){return e.map((e=>(0,qe.createElement)("track",{key:e.src,...e})))}const{attributes:QC}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",__experimentalRole:"content"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src",__experimentalRole:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{__experimentalRole:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},editorStyle:"wp-block-video-editor",style:"wp-block-video"},KC={attributes:QC,save({attributes:e}){const{autoplay:t,caption:n,controls:o,loop:a,muted:r,poster:l,preload:i,src:s,playsInline:c,tracks:u}=e;return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)("video",{autoPlay:t,controls:o,loop:a,muted:r,poster:l,preload:"metadata"!==i?i:void 0,src:s,playsInline:c},(0,qe.createElement)(ZC,{tracks:u})),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n}))}};var JC=[KC];const YC=[{value:"auto",label:(0,Je.__)("Auto")},{value:"metadata",label:(0,Je.__)("Metadata")},{value:"none",label:(0,Je._x)("None","Preload value")}];var XC=({setAttributes:e,attributes:t})=>{const{autoplay:n,controls:o,loop:a,muted:r,playsInline:l,preload:i}=t,s=(0,Je.__)("Autoplay may cause usability issues for some users."),c=qe.Platform.select({web:(0,qe.useCallback)((e=>e?s:null),[]),native:s}),u=(0,qe.useMemo)((()=>{const t=t=>n=>{e({[t]:n})};return{autoplay:t("autoplay"),loop:t("loop"),muted:t("muted"),controls:t("controls"),playsInline:t("playsInline")}}),[]),m=(0,qe.useCallback)((t=>{e({preload:t})}),[]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Autoplay"),onChange:u.autoplay,checked:!!n,help:c}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Loop"),onChange:u.loop,checked:!!a}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Muted"),onChange:u.muted,checked:!!r}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Playback controls"),onChange:u.controls,checked:!!o}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Play inline"),onChange:u.playsInline,checked:!!l}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Preload"),value:i,onChange:m,options:YC,hideCancelButton:!0}))};const eE=["text/vtt"],tE="subtitles",nE=[{label:(0,Je.__)("Subtitles"),value:"subtitles"},{label:(0,Je.__)("Captions"),value:"captions"},{label:(0,Je.__)("Descriptions"),value:"descriptions"},{label:(0,Je.__)("Chapters"),value:"chapters"},{label:(0,Je.__)("Metadata"),value:"metadata"}];function oE({tracks:e,onEditPress:t}){let n;return n=0===e.length?(0,qe.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},(0,Je.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):e.map(((e,n)=>(0,qe.createElement)(Ke.__experimentalHStack,{key:n,className:"block-library-video-tracks-editor__track-list-track"},(0,qe.createElement)("span",null,e.label," "),(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:()=>t(n),"aria-label":(0,Je.sprintf)((0,Je.__)("Edit %s"),e.label)},(0,Je.__)("Edit"))))),(0,qe.createElement)(Ke.MenuGroup,{label:(0,Je.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},n)}function aE({track:e,onChange:t,onClose:n,onRemove:o}){const{src:a="",label:r="",srcLang:l="",kind:i=tE}=e,s=a.startsWith("blob:")?"":(0,st.getFilename)(a)||"";return(0,qe.createElement)(Ke.NavigableMenu,null,(0,qe.createElement)(Ke.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4"},(0,qe.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},(0,Je.__)("Edit track")),(0,qe.createElement)("span",null,(0,Je.__)("File"),": ",(0,qe.createElement)("b",null,s)),(0,qe.createElement)(Ke.__experimentalGrid,{columns:2,gap:4},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,autoFocus:!0,onChange:n=>t({...e,label:n}),label:(0,Je.__)("Label"),value:r,help:(0,Je.__)("Title of track")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,onChange:n=>t({...e,srcLang:n}),label:(0,Je.__)("Source language"),value:l,help:(0,Je.__)("Language tag (en, fr, etc.)")})),(0,qe.createElement)(Ke.__experimentalVStack,{spacing:"8"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:nE,value:i,label:(0,Je.__)("Kind"),onChange:n=>{t({...e,kind:n})}}),(0,qe.createElement)(Ke.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:()=>{const o={};let a=!1;""===r&&(o.label=(0,Je.__)("English"),a=!0),""===l&&(o.srcLang="en",a=!0),void 0===e.kind&&(o.kind=tE,a=!0),a&&t({...e,...o}),n()}},(0,Je.__)("Close")),(0,qe.createElement)(Ke.Button,{isDestructive:!0,variant:"link",onClick:o},(0,Je.__)("Remove track"))))))}function rE({tracks:e=[],onChange:t}){const n=(0,ut.useSelect)((e=>e(Ye.store).getSettings().mediaUpload),[]),[o,a]=(0,qe.useState)(null);return n?(0,qe.createElement)(Ke.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:({isOpen:e,onToggle:t})=>(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{label:(0,Je.__)("Text tracks"),showTooltip:!0,"aria-expanded":e,"aria-haspopup":"true",onClick:t},(0,Je.__)("Text tracks"))),renderContent:()=>null!==o?(0,qe.createElement)(aE,{track:e[o],onChange:n=>{const a=[...e];a[o]=n,t(a)},onClose:()=>a(null),onRemove:()=>{t(e.filter(((e,t)=>t!==o))),a(null)}}):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.NavigableMenu,null,(0,qe.createElement)(oE,{tracks:e,onEditPress:a}),(0,qe.createElement)(Ke.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Je.__)("Add tracks")},(0,qe.createElement)(Ye.MediaUpload,{onSelect:({url:n})=>{const o=e.length;t([...e,{src:n}]),a(o)},allowedTypes:eE,render:({open:e})=>(0,qe.createElement)(Ke.MenuItem,{icon:Zp,onClick:e},(0,Je.__)("Open Media Library"))}),(0,qe.createElement)(Ye.MediaUploadCheck,null,(0,qe.createElement)(Ke.FormFileUpload,{onChange:o=>{const r=o.target.files,l=e.length;n({allowedTypes:eE,filesList:r,onFileChange:([{url:n}])=>{const o=[...e];o[l]||(o[l]={}),o[l]={...e[l],src:n},t(o),a(l)}})},accept:".vtt,text/vtt",render:({openFileDialog:e})=>(0,qe.createElement)(Ke.MenuItem,{icon:Xu,onClick:()=>{e()}},(0,Je.__)("Upload"))})))))}):null}const lE=e=>(0,qe.createElement)(Ke.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!0,icon:WC,label:(0,Je.__)("Video"),instructions:(0,Je.__)("Upload a video file, pick one from your media library, or add one with a URL.")},e),iE=["video"],sE=["image"];var cE=function e({isSelected:t,attributes:n,className:o,setAttributes:a,insertBlocksAfter:r,onReplace:l}){const i=(0,Tt.useInstanceId)(e),s=(0,qe.useRef)(),c=(0,qe.useRef)(),{id:u,caption:m,controls:p,poster:d,src:g,tracks:h}=n,_=(0,Tt.usePrevious)(m),[b,f]=(0,qe.useState)(!!m),v=!u&&(0,Et.isBlobURL)(g),y=(0,ut.useSelect)((e=>e(Ye.store).getSettings().mediaUpload),[]);(0,qe.useEffect)((()=>{if(!u&&(0,Et.isBlobURL)(g)){const e=(0,Et.getBlobByURL)(g);e&&y({filesList:[e],onFileChange:([e])=>x(e),onError:E,allowedTypes:iE})}}),[]),(0,qe.useEffect)((()=>{s.current&&s.current.load()}),[d]),(0,qe.useEffect)((()=>{m&&!_&&f(!0)}),[m,_]);const k=(0,qe.useCallback)((e=>{e&&!m&&e.focus()}),[m]);function x(e){e&&e.url?a({src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0,caption:e.caption}):a({src:void 0,id:void 0,poster:void 0,caption:void 0})}function w(e){if(e!==g){const t=At({attributes:{url:e}});if(void 0!==t&&l)return void l(t);a({src:e,id:void 0,poster:void 0})}}(0,qe.useEffect)((()=>{t||m||f(!1)}),[t,m]);const{createErrorNotice:C}=(0,ut.useDispatch)(Bt.store);function E(e){C(e,{type:"snackbar"})}const S=it()(o,{"is-transient":v}),B=(0,Ye.useBlockProps)({className:S});if(!g)return(0,qe.createElement)("div",{...B},(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:WC}),onSelect:x,onSelectURL:w,accept:"video/*",allowedTypes:iE,value:n,onError:E,placeholder:lE}));const T=`video-block__poster-image-description-${i}`;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{f(!b),b&&m&&a({caption:void 0})},icon:St,isPressed:b,label:b?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")})),(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(rE,{tracks:h,onChange:e=>{a({tracks:e})}})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:u,mediaURL:g,allowedTypes:iE,accept:"video/*",onSelect:x,onSelectURL:w,onError:E})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(XC,{setAttributes:a,attributes:n}),(0,qe.createElement)(Ye.MediaUploadCheck,null,(0,qe.createElement)(Ke.BaseControl,{className:"editor-video-poster-control"},(0,qe.createElement)(Ke.BaseControl.VisualLabel,null,(0,Je.__)("Poster image")),(0,qe.createElement)(Ye.MediaUpload,{title:(0,Je.__)("Select poster image"),onSelect:function(e){a({poster:e.url})},allowedTypes:sE,render:({open:e})=>(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:e,ref:c,"aria-describedby":T},d?(0,Je.__)("Replace"):(0,Je.__)("Select"))}),(0,qe.createElement)("p",{id:T,hidden:!0},d?(0,Je.sprintf)((0,Je.__)("The current poster image url is %s"),d):(0,Je.__)("There is no poster image currently selected")),!!d&&(0,qe.createElement)(Ke.Button,{onClick:function(){a({poster:void 0}),c.current.focus()},variant:"tertiary"},(0,Je.__)("Remove")))))),(0,qe.createElement)("figure",{...B},(0,qe.createElement)(Ke.Disabled,{isDisabled:!t},(0,qe.createElement)("video",{controls:p,poster:d,src:g,ref:s},(0,qe.createElement)(ZC,{tracks:h}))),v&&(0,qe.createElement)(Ke.Spinner,null),b&&(!Ye.RichText.isEmpty(m)||t)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),"aria-label":(0,Je.__)("Video caption text"),ref:k,placeholder:(0,Je.__)("Add caption"),value:m,onChange:e=>a({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,je.createBlock)((0,je.getDefaultBlockName)()))})))};const uE={from:[{type:"files",isMatch(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform(e){const t=e[0];return(0,je.createBlock)("core/video",{src:(0,Et.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:n,webm:o,ogv:a,flv:r}})=>e||t||n||o||a||r},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};var mE=uE;const pE={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",__experimentalRole:"content"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src",__experimentalRole:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{__experimentalRole:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},editorStyle:"wp-block-video-editor",style:"wp-block-video"},{name:dE}=pE,gE={icon:WC,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,Je.__)("Wood thrush singing in Central Park, NYC.")}},transforms:mE,deprecated:JC,edit:cE,save:function({attributes:e}){const{autoplay:t,caption:n,controls:o,loop:a,muted:r,poster:l,preload:i,src:s,playsInline:c,tracks:u}=e;return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)("video",{autoPlay:t,controls:o,loop:a,muted:r,poster:l,preload:"metadata"!==i?i:void 0,src:s,playsInline:c},(0,qe.createElement)(ZC,{tracks:u})),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n}))}},hE=()=>Qe({name:dE,metadata:pE,settings:gE});var _E,bE=new Uint8Array(16);function fE(){if(!_E&&!(_E="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _E(bE)}var vE=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var yE=function(e){return"string"==typeof e&&vE.test(e)},kE=[],xE=0;xE<256;++xE)kE.push((xE+256).toString(16).substr(1));var wE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(kE[e[t+0]]+kE[e[t+1]]+kE[e[t+2]]+kE[e[t+3]]+"-"+kE[e[t+4]]+kE[e[t+5]]+"-"+kE[e[t+6]]+kE[e[t+7]]+"-"+kE[e[t+8]]+kE[e[t+9]]+"-"+kE[e[t+10]]+kE[e[t+11]]+kE[e[t+12]]+kE[e[t+13]]+kE[e[t+14]]+kE[e[t+15]]).toLowerCase();if(!yE(n))throw TypeError("Stringified UUID is invalid");return n};var CE=function(e,t,n){var o=(e=e||{}).random||(e.rng||fE)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return wE(o)};const{name:EE}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{html:!1,multiple:!1,reusable:!1},style:"wp-block-footnotes"},{usesContextKey:SE}=Yt(Ye.privateApis),BE="core/footnote",TE="core/post-content",NE={title:(0,Je.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},contentEditable:!1,[SE]:["postType"],edit:function({value:e,onChange:t,isObjectActive:n,context:{postType:o}}){const a=(0,ut.useRegistry)(),{getSelectedBlockClientId:r,getBlocks:l,getBlockRootClientId:i,getBlockName:s,getBlockParentsByBlockName:c}=(0,ut.useSelect)(Ye.store),u=(0,ut.useSelect)((e=>e(je.store).getBlockType(EE))),m=(0,ut.useSelect)((e=>{const{getBlockParentsByBlockName:t,getSelectedBlockClientId:n}=e(Ye.store),o=t(n(),"core/block");return o&&o.length>0}),[]),{selectionChange:p,insertBlock:d}=(0,ut.useDispatch)(Ye.store);if(!u)return null;if("post"!==o&&"page"!==o)return null;if(m)return null;return(0,qe.createElement)(Ye.RichTextToolbarButton,{icon:Fm,title:(0,Je.__)("Footnote"),onClick:function(){a.batch((()=>{let o;if(n){const t=e.replacements[e.start];o=t?.attributes?.["data-fn"]}else{o=CE();const n=(0,Cn.insertObject)(e,{type:BE,attributes:{"data-fn":o},innerHTML:`<a href="#${o}" id="${o}-link">*</a>`},e.end,e.end);n.start=n.end-1,t(n)}const a=r(),u=c(a,TE);let m=null;{const e=[...u.length?l(u[0]):l()];for(;e.length;){const t=e.shift();if(t.name===EE){m=t;break}e.push(...t.innerBlocks)}}if(!m){let e=i(a);for(;e&&s(e)!==TE;)e=i(e);m=(0,je.createBlock)(EE),d(m,void 0,e)}p(m.clientId,o,0,0)}))},isActive:n})}},PE={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{html:!1,multiple:!1,reusable:!1},style:"wp-block-footnotes"},{name:IE}=PE,ME={icon:Fm,edit:function({context:{postType:e,postId:t}}){const[n,o]=(0,ct.useEntityProp)("postType",e,"meta",t),a=n?.footnotes?JSON.parse(n.footnotes):[],r=(0,Ye.useBlockProps)();return"post"!==e&&"page"!==e?(0,qe.createElement)("div",{...r},(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Fm}),label:(0,Je.__)("Footnotes")})):a.length?(0,qe.createElement)("ol",{...r},a.map((({id:e,content:t})=>(0,qe.createElement)("li",{key:e},(0,qe.createElement)(Ye.RichText,{id:e,tagName:"span",value:t,identifier:e,onFocus:e=>{e.target.textContent.trim()||e.target.scrollIntoView()},onChange:t=>{o({...n,footnotes:JSON.stringify(a.map((n=>n.id===e?{content:t,id:e}:n)))})}})," ",(0,qe.createElement)("a",{href:`#${e}-link`},"↩︎"))))):(0,qe.createElement)("div",{...r},(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Fm}),label:(0,Je.__)("Footnotes"),instructions:(0,Je.__)("Footnotes found in blocks within this document will be displayed here.")}))}};(0,Cn.registerFormatType)(BE,NE);const zE=()=>{Qe({name:IE,metadata:PE,settings:ME})};var RE=n(7078),HE=n.n(RE);const LE=()=>[J,H,M,P,V,D,we,e,a,r,l,i,s,...window.wp&&window.wp.oldEditor?[c]:[],u,m,p,g,S,B,T,N,I,R,L,A,$,G,O,W,Q,K,Z,ge,he,Ce,Se,Be,Te,Ne,ze,Re,He,Le,Ve,$e,Ge,Oe,Ue,U,j,q,Pe,Me,Ie,_e,De,t,de,ie,se,re,Y,X,te,ne,ae,le,me,ce,ue,pe,fe,ve,ye,ke,be,Ee,d,h,_,b,f,v,y,E,x,w,C,k,oe,Ae,z,F,Fe,xe,ee].filter(Boolean).filter((({metadata:e})=>!HE()(e))),AE=(e=LE())=>{e.forEach((({init:e})=>e())),(0,je.setDefaultBlockName)(d_),window.wp&&window.wp.oldEditor&&(0,je.setFreeformContentHandlerName)(no),(0,je.setUnregisteredTypeHandlerName)(bd),(0,je.setGroupingBlockName)(tu)},VE=void 0}(),(window.wp=window.wp||{}).blockLibrary=o}();
\ No newline at end of file
+*/!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var l=a.apply(null,n);l&&e.push(l)}}else if("object"===r){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var i in n)o.call(n,i)&&n[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},5619:function(e){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var o,a,r;if(Array.isArray(t)){if((o=t.length)!=n.length)return!1;for(a=o;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(a of t.entries())if(!n.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],n.get(a[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(a of t.entries())if(!n.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((o=t.length)!=n.length)return!1;for(a=o;0!=a--;)if(t[a]!==n[a])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((o=(r=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(a=o;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,r[a]))return!1;for(a=o;0!=a--;){var l=r[a];if(!e(t[l],n[l]))return!1}return!0}return t!=t&&n!=n}},4793:function(e){var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","ß":"ss","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),a=new RegExp(n,"");function r(e){return t[e]}var l=function(e){return e.replace(o,r)};e.exports=l,e.exports.has=function(e){return!!e.match(a)},e.exports.remove=l}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){"use strict";n.r(o),n.d(o,{__experimentalGetCoreBlocks:function(){return AE},__experimentalRegisterExperimentalCoreBlocks:function(){return DE},registerCoreBlocks:function(){return VE}});var e={};n.r(e),n.d(e,{init:function(){return at},metadata:function(){return tt},name:function(){return nt},settings:function(){return ot}});var t={};n.r(t),n.d(t,{init:function(){return xt},metadata:function(){return yt},name:function(){return vt},settings:function(){return kt}});var a={};n.r(a),n.d(a,{init:function(){return Zt},metadata:function(){return jt},name:function(){return qt},settings:function(){return Wt}});var r={};n.r(r),n.d(r,{init:function(){return yn},metadata:function(){return _n},name:function(){return bn},settings:function(){return fn}});var l={};n.r(l),n.d(l,{init:function(){return Rn},metadata:function(){return In},name:function(){return Mn},settings:function(){return zn}});var i={};n.r(i),n.d(i,{init:function(){return $n},metadata:function(){return Vn},name:function(){return Dn},settings:function(){return Fn}});var s={};n.r(s),n.d(s,{init:function(){return Zn},metadata:function(){return jn},name:function(){return qn},settings:function(){return Wn}});var c={};n.r(c),n.d(c,{init:function(){return ao},metadata:function(){return to},name:function(){return no},settings:function(){return oo}});var u={};n.r(u),n.d(u,{init:function(){return po},metadata:function(){return co},name:function(){return uo},settings:function(){return mo}});var m={};n.r(m),n.d(m,{init:function(){return ko},metadata:function(){return fo},name:function(){return yo},settings:function(){return vo}});var p={};n.r(p),n.d(p,{init:function(){return Do},metadata:function(){return Lo},name:function(){return Ao},settings:function(){return Vo}});var d={};n.r(d),n.d(d,{init:function(){return Jo},metadata:function(){return Zo},name:function(){return Qo},settings:function(){return Ko}});var g={};n.r(g),n.d(g,{init:function(){return ta},metadata:function(){return Yo},name:function(){return Xo},settings:function(){return ea}});var h={};n.r(h),n.d(h,{init:function(){return sa},metadata:function(){return ra},name:function(){return la},settings:function(){return ia}});var _={};n.r(_),n.d(_,{init:function(){return da},metadata:function(){return ua},name:function(){return ma},settings:function(){return pa}});var b={};n.r(b),n.d(b,{init:function(){return ka},metadata:function(){return fa},name:function(){return ya},settings:function(){return va}});var f={};n.r(f),n.d(f,{init:function(){return Sa},metadata:function(){return wa},name:function(){return Ca},settings:function(){return Ea}});var y={};n.r(y),n.d(y,{init:function(){return Ma},metadata:function(){return Na},name:function(){return Pa},settings:function(){return Ia}});var v={};n.r(v),n.d(v,{init:function(){return Ua},metadata:function(){return $a},name:function(){return Ga},settings:function(){return Oa}});var k={};n.r(k),n.d(k,{init:function(){return Ka},metadata:function(){return Wa},name:function(){return Za},settings:function(){return Qa}});var x={};n.r(x),n.d(x,{init:function(){return ar},metadata:function(){return tr},name:function(){return nr},settings:function(){return or}});var w={};n.r(w),n.d(w,{init:function(){return ur},metadata:function(){return ir},name:function(){return sr},settings:function(){return cr}});var C={};n.r(C),n.d(C,{init:function(){return _r},metadata:function(){return dr},name:function(){return gr},settings:function(){return hr}});var E={};n.r(E),n.d(E,{init:function(){return Cr},metadata:function(){return kr},name:function(){return xr},settings:function(){return wr}});var S={};n.r(S),n.d(S,{init:function(){return mi},metadata:function(){return si},name:function(){return ci},settings:function(){return ui}});var B={};n.r(B),n.d(B,{init:function(){return fi},metadata:function(){return hi},name:function(){return _i},settings:function(){return bi}});var T={};n.r(T),n.d(T,{init:function(){return is},metadata:function(){return as},name:function(){return rs},settings:function(){return ls}});var N={};n.r(N),n.d(N,{init:function(){return Es},metadata:function(){return xs},name:function(){return ws},settings:function(){return Cs}});var P={};n.r(P),n.d(P,{init:function(){return Dc},metadata:function(){return Lc},name:function(){return Ac},settings:function(){return Vc}});var I={};n.r(I),n.d(I,{init:function(){return ou},metadata:function(){return eu},name:function(){return tu},settings:function(){return nu}});var M={};n.r(M),n.d(M,{init:function(){return Nu},metadata:function(){return Su},name:function(){return Bu},settings:function(){return Tu}});var z={};n.r(z),n.d(z,{init:function(){return Hu},metadata:function(){return Mu},name:function(){return zu},settings:function(){return Ru}});var R={};n.r(R),n.d(R,{init:function(){return Ou},metadata:function(){return Fu},name:function(){return $u},settings:function(){return Gu}});var H={};n.r(H),n.d(H,{init:function(){return _m},metadata:function(){return dm},name:function(){return gm},settings:function(){return hm}});var L={};n.r(L),n.d(L,{init:function(){return km},metadata:function(){return fm},name:function(){return ym},settings:function(){return vm}});var A={};n.r(A),n.d(A,{init:function(){return Im},metadata:function(){return Tm},name:function(){return Nm},settings:function(){return Pm}});var V={};n.r(V),n.d(V,{init:function(){return tp},metadata:function(){return Ym},name:function(){return Xm},settings:function(){return ep}});var D={};n.r(D),n.d(D,{init:function(){return kp},metadata:function(){return fp},name:function(){return yp},settings:function(){return vp}});var F={};n.r(F),n.d(F,{init:function(){return Sp},metadata:function(){return wp},name:function(){return Cp},settings:function(){return Ep}});var $={};n.r($),n.d($,{init:function(){return dd},metadata:function(){return ud},name:function(){return md},settings:function(){return pd}});var G={};n.r(G),n.d(G,{init:function(){return vd},metadata:function(){return bd},name:function(){return fd},settings:function(){return yd}});var O={};n.r(O),n.d(O,{init:function(){return Bd},metadata:function(){return Cd},name:function(){return Ed},settings:function(){return Sd}});var U={};n.r(U),n.d(U,{init:function(){return Yg},metadata:function(){return Qg},name:function(){return Kg},settings:function(){return Jg}});var j={};n.r(j),n.d(j,{init:function(){return mh},metadata:function(){return sh},name:function(){return ch},settings:function(){return uh}});var q={};n.r(q),n.d(q,{init:function(){return xh},metadata:function(){return yh},name:function(){return vh},settings:function(){return kh}});var W={};n.r(W),n.d(W,{init:function(){return Th},metadata:function(){return Eh},name:function(){return Sh},settings:function(){return Bh}});var Z={};n.r(Z),n.d(Z,{init:function(){return zh},metadata:function(){return Ph},name:function(){return Ih},settings:function(){return Mh}});var Q={};n.r(Q),n.d(Q,{init:function(){return jh},metadata:function(){return Gh},name:function(){return Oh},settings:function(){return Uh}});var K={};n.r(K),n.d(K,{init:function(){return Kh},metadata:function(){return Wh},name:function(){return Zh},settings:function(){return Qh}});var J={};n.r(J),n.d(J,{init:function(){return __},metadata:function(){return d_},name:function(){return g_},settings:function(){return h_}});var Y={};n.r(Y),n.d(Y,{init:function(){return w_},metadata:function(){return v_},name:function(){return k_},settings:function(){return x_}});var X={};n.r(X),n.d(X,{init:function(){return N_},metadata:function(){return S_},name:function(){return B_},settings:function(){return T_}});var ee={};n.r(ee),n.d(ee,{init:function(){return R_},metadata:function(){return I_},name:function(){return M_},settings:function(){return z_}});var te={};n.r(te),n.d(te,{init:function(){return $_},metadata:function(){return V_},name:function(){return D_},settings:function(){return F_}});var ne={};n.r(ne),n.d(ne,{init:function(){return q_},metadata:function(){return O_},name:function(){return U_},settings:function(){return j_}});var oe={};n.r(oe),n.d(oe,{init:function(){return J_},metadata:function(){return Z_},name:function(){return Q_},settings:function(){return K_}});var ae={};n.r(ae),n.d(ae,{init:function(){return nb},metadata:function(){return X_},name:function(){return eb},settings:function(){return tb}});var re={};n.r(re),n.d(re,{init:function(){return db},metadata:function(){return ub},name:function(){return mb},settings:function(){return pb}});var le={};n.r(le),n.d(le,{init:function(){return xb},metadata:function(){return yb},name:function(){return vb},settings:function(){return kb}});var ie={};n.r(ie),n.d(ie,{init:function(){return Tb},metadata:function(){return Eb},name:function(){return Sb},settings:function(){return Bb}});var se={};n.r(se),n.d(se,{init:function(){return Db},metadata:function(){return Lb},name:function(){return Ab},settings:function(){return Vb}});var ce={};n.r(ce),n.d(ce,{init:function(){return Wb},metadata:function(){return Ub},name:function(){return jb},settings:function(){return qb}});var ue={};n.r(ue),n.d(ue,{init:function(){return ef},metadata:function(){return Jb},name:function(){return Yb},settings:function(){return Xb}});var me={};n.r(me),n.d(me,{init:function(){return uf},metadata:function(){return lf},name:function(){return sf},settings:function(){return cf}});var pe={};n.r(pe),n.d(pe,{init:function(){return bf},metadata:function(){return gf},name:function(){return hf},settings:function(){return _f}});var de={};n.r(de),n.d(de,{init:function(){return Cf},metadata:function(){return kf},name:function(){return xf},settings:function(){return wf}});var ge={};n.r(ge),n.d(ge,{init:function(){return If},metadata:function(){return Tf},name:function(){return Nf},settings:function(){return Pf}});var he={};n.r(he),n.d(he,{init:function(){return Jf},metadata:function(){return Zf},name:function(){return Qf},settings:function(){return Kf}});var _e={};n.r(_e),n.d(_e,{init:function(){return av},metadata:function(){return tv},name:function(){return nv},settings:function(){return ov}});var be={};n.r(be),n.d(be,{init:function(){return cv},metadata:function(){return lv},name:function(){return iv},settings:function(){return sv}});var fe={};n.r(fe),n.d(fe,{init:function(){return fv},metadata:function(){return hv},name:function(){return _v},settings:function(){return bv}});var ye={};n.r(ye),n.d(ye,{init:function(){return wv},metadata:function(){return vv},name:function(){return kv},settings:function(){return xv}});var ve={};n.r(ve),n.d(ve,{init:function(){return Tv},metadata:function(){return Ev},name:function(){return Sv},settings:function(){return Bv}});var ke={};n.r(ke),n.d(ke,{init:function(){return zv},metadata:function(){return Pv},name:function(){return Iv},settings:function(){return Mv}});var xe={};n.r(xe),n.d(xe,{init:function(){return Gv},metadata:function(){return Dv},name:function(){return Fv},settings:function(){return $v}});var we={};n.r(we),n.d(we,{init:function(){return ok},metadata:function(){return ek},name:function(){return tk},settings:function(){return nk}});var Ce={};n.r(Ce),n.d(Ce,{init:function(){return uk},metadata:function(){return ik},name:function(){return sk},settings:function(){return ck}});var Ee={};n.r(Ee),n.d(Ee,{init:function(){return gk},metadata:function(){return mk},name:function(){return pk},settings:function(){return dk}});var Se={};n.r(Se),n.d(Se,{init:function(){return yk},metadata:function(){return _k},name:function(){return bk},settings:function(){return fk}});var Be={};n.r(Be),n.d(Be,{init:function(){return Mk},metadata:function(){return Nk},name:function(){return Pk},settings:function(){return Ik}});var Te={};n.r(Te),n.d(Te,{init:function(){return Fk},metadata:function(){return Ak},name:function(){return Vk},settings:function(){return Dk}});var Ne={};n.r(Ne),n.d(Ne,{init:function(){return Wk},metadata:function(){return Uk},name:function(){return jk},settings:function(){return qk}});var Pe={};n.r(Pe),n.d(Pe,{init:function(){return ax},metadata:function(){return tx},name:function(){return nx},settings:function(){return ox}});var Ie={};n.r(Ie),n.d(Ie,{init:function(){return mx},metadata:function(){return sx},name:function(){return cx},settings:function(){return ux}});var Me={};n.r(Me),n.d(Me,{init:function(){return vx},metadata:function(){return bx},name:function(){return fx},settings:function(){return yx}});var ze={};n.r(ze),n.d(ze,{init:function(){return Ix},metadata:function(){return Tx},name:function(){return Nx},settings:function(){return Px}});var Re={};n.r(Re),n.d(Re,{init:function(){return $x},metadata:function(){return Vx},name:function(){return Dx},settings:function(){return Fx}});var He={};n.r(He),n.d(He,{init:function(){return Xx},metadata:function(){return Kx},name:function(){return Jx},settings:function(){return Yx}});var Le={};n.r(Le),n.d(Le,{init:function(){return Rw},metadata:function(){return Iw},name:function(){return Mw},settings:function(){return zw}});var Ae={};n.r(Ae),n.d(Ae,{init:function(){return Uw},metadata:function(){return $w},name:function(){return Gw},settings:function(){return Ow}});var Ve={};n.r(Ve),n.d(Ve,{init:function(){return Kw},metadata:function(){return Ww},name:function(){return Zw},settings:function(){return Qw}});var De={};n.r(De),n.d(De,{init:function(){return SC},metadata:function(){return wC},name:function(){return CC},settings:function(){return EC}});var Fe={};n.r(Fe),n.d(Fe,{init:function(){return IC},metadata:function(){return TC},name:function(){return NC},settings:function(){return PC}});var $e={};n.r($e),n.d($e,{init:function(){return AC},metadata:function(){return RC},name:function(){return HC},settings:function(){return LC}});var Ge={};n.r(Ge),n.d(Ge,{init:function(){return WC},metadata:function(){return UC},name:function(){return jC},settings:function(){return qC}});var Oe={};n.r(Oe),n.d(Oe,{init:function(){return _E},metadata:function(){return dE},name:function(){return gE},settings:function(){return hE}});var Ue={};n.r(Ue),n.d(Ue,{init:function(){return RE},metadata:function(){return IE},name:function(){return ME},settings:function(){return zE}});var je=window.wp.blocks,qe=window.wp.element,We=window.wp.primitives;var Ze=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"}));function Qe(e){if(!e)return;const{metadata:t,settings:n,name:o}=e;return(0,je.registerBlockType)({name:o,...t},n)}var Ke=window.wp.components,Je=window.wp.i18n,Ye=window.wp.blockEditor,Xe=window.wp.serverSideRender,et=n.n(Xe);const tt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/archives",title:"Archives",category:"widgets",description:"Display a date archive of your posts.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showLabel:{type:"boolean",default:!0},showPostCounts:{type:"boolean",default:!1},type:{type:"string",default:"monthly"}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-archives-editor"},{name:nt}=tt,ot={icon:Ze,example:{},edit:function({attributes:e,setAttributes:t}){const{showLabel:n,showPostCounts:o,displayAsDropdown:a,type:r}=e;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display as dropdown"),checked:a,onChange:()=>t({displayAsDropdown:!a})}),a&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show label"),checked:n,onChange:()=>t({showLabel:!n})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:o,onChange:()=>t({showPostCounts:!o})}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Group by:"),options:[{label:(0,Je.__)("Year"),value:"yearly"},{label:(0,Je.__)("Month"),value:"monthly"},{label:(0,Je.__)("Week"),value:"weekly"},{label:(0,Je.__)("Day"),value:"daily"}],value:r,onChange:e=>t({type:e})}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/archives",skipBlockSupportAttributes:!0,attributes:e}))))}},at=()=>Qe({name:nt,metadata:tt,settings:ot});var rt=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})),lt=n(4403),it=n.n(lt),st=window.wp.url,ct=window.wp.coreData,ut=window.wp.data;function mt(e){const t=e?e[0]:24,n=e?e[e.length-1]:96;return{minSize:t,maxSize:Math.floor(2.5*n)}}function pt(){const{avatarURL:e}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n}));return e}const dt={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var gt=function({value:e,onChange:t}){const[n,o]=(0,qe.useState)(),a=(0,ut.useSelect)((e=>{const{getUsers:t}=e(ct.store);return t(dt)}),[]);if(!a)return null;const r=a.map((e=>({label:e.name,value:e.id})));return(0,qe.createElement)(Ke.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("User"),help:(0,Je.__)("Select the avatar user to display, if it is blank it will use the post/page author."),value:e,onChange:t,options:n||r,onFilterValueChange:e=>o(r.filter((t=>t.label.toLowerCase().startsWith(e.toLowerCase()))))})};const ht=({setAttributes:e,avatar:t,attributes:n,selectUser:o})=>(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image size"),onChange:t=>e({size:t}),min:t.minSize,max:t.maxSize,initialPosition:n?.size,value:n?.size}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to user profile"),onChange:()=>e({isLink:!n.isLink}),checked:n.isLink}),n.isLink&&(0,qe.createElement)(Ke.ToggleControl,{label:(0,Je.__)("Open in new tab"),onChange:t=>e({linkTarget:t?"_blank":"_self"}),checked:"_blank"===n.linkTarget}),o&&(0,qe.createElement)(gt,{value:n?.userId,onChange:t=>{e({userId:t})}}))),_t=({setAttributes:e,attributes:t,avatar:n,blockProps:o,isSelected:a})=>{const r=(0,Ye.__experimentalUseBorderProps)(t),l=(0,st.addQueryArgs)((0,st.removeQueryArgs)(n?.src,["s"]),{s:2*t?.size});return(0,qe.createElement)("div",{...o},(0,qe.createElement)(Ke.ResizableBox,{size:{width:t.size,height:t.size},showHandle:a,onResizeStop:(n,o,a,r)=>{e({size:parseInt(t.size+(r.height||r.width),10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Je.isRTL)(),bottom:!0,left:(0,Je.isRTL)()},minWidth:n.minSize,maxWidth:n.maxSize},(0,qe.createElement)("img",{src:l,alt:n.alt,className:it()("avatar","avatar-"+t.size,"photo","wp-block-avatar__image",r.className),style:r.style})))},bt=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{commentId:a}=t,r=(0,Ye.useBlockProps)(),l=function({commentId:e}){const[t]=(0,ct.useEntityProp)("root","comment","author_avatar_urls",e),[n]=(0,ct.useEntityProp)("root","comment","author_name",e),o=t?Object.values(t):null,a=t?Object.keys(t):null,{minSize:r,maxSize:l}=mt(a),i=pt();return{src:o?o[o.length-1]:i,minSize:r,maxSize:l,alt:n?(0,Je.sprintf)((0,Je.__)("%s Avatar"),n):(0,Je.__)("Default Avatar")}}({commentId:a});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ht,{avatar:l,setAttributes:n,attributes:e,selectUser:!1}),e.isLink?(0,qe.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:r,isSelected:o,setAttributes:n})):(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:r,isSelected:o,setAttributes:n}))},ft=({attributes:e,context:t,setAttributes:n,isSelected:o})=>{const{postId:a,postType:r}=t,l=function({userId:e,postId:t,postType:n}){const{authorDetails:o}=(0,ut.useSelect)((o=>{const{getEditedEntityRecord:a,getUser:r}=o(ct.store);if(e)return{authorDetails:r(e)};const l=a("postType",n,t)?.author;return{authorDetails:l?r(l):null}}),[n,t,e]),a=o?.avatar_urls?Object.values(o.avatar_urls):null,r=o?.avatar_urls?Object.keys(o.avatar_urls):null,{minSize:l,maxSize:i}=mt(r),s=pt();return{src:a?a[a.length-1]:s,minSize:l,maxSize:i,alt:o?(0,Je.sprintf)((0,Je.__)("%s Avatar"),o?.name):(0,Je.__)("Default Avatar")}}({userId:e?.userId,postId:a,postType:r}),i=(0,Ye.useBlockProps)();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ht,{selectUser:!0,attributes:e,avatar:l,setAttributes:n}),(0,qe.createElement)("div",null,e.isLink?(0,qe.createElement)("a",{href:"#avatar-pseudo-link",className:"wp-block-avatar__link",onClick:e=>e.preventDefault()},(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:n})):(0,qe.createElement)(_t,{attributes:e,avatar:l,blockProps:i,isSelected:o,setAttributes:n})))};const yt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/avatar",title:"Avatar",category:"theme",description:"Add a user’s avatar.",textdomain:"default",attributes:{userId:{type:"number"},size:{type:"number",default:96},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","commentId"],supports:{html:!1,align:!0,alignWide:!1,spacing:{margin:!0,padding:!0},__experimentalBorder:{__experimentalSkipSerialization:!0,radius:!0,width:!0,color:!0,style:!0,__experimentalDefaultControls:{radius:!0}},color:{text:!1,background:!1,__experimentalDuotone:"img"}},editorStyle:"wp-block-avatar-editor",style:"wp-block-avatar"},{name:vt}=yt,kt={icon:rt,edit:function(e){return e?.context?.commentId||null===e?.context?.commentId?(0,qe.createElement)(bt,{...e}):(0,qe.createElement)(ft,{...e})}},xt=()=>Qe({name:vt,metadata:yt,settings:kt});var wt=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z"})),Ct=[{attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src"},caption:{type:"string",source:"html",selector:"figcaption"},id:{type:"number"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{align:!0},save({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:a,src:r}=e;return(0,qe.createElement)("figure",null,(0,qe.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:o,preload:a}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n}))}}],Et=window.wp.blob;var St=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z"})),Bt=window.wp.notices,Tt=window.wp.compose;const Nt=[{ratio:"2.33",className:"wp-embed-aspect-21-9"},{ratio:"2.00",className:"wp-embed-aspect-18-9"},{ratio:"1.78",className:"wp-embed-aspect-16-9"},{ratio:"1.33",className:"wp-embed-aspect-4-3"},{ratio:"1.00",className:"wp-embed-aspect-1-1"},{ratio:"0.56",className:"wp-embed-aspect-9-16"},{ratio:"0.50",className:"wp-embed-aspect-1-2"}],Pt="wp-embed";var It=window.lodash,Mt=n(3827),zt=n.n(Mt);function Rt(e,t){var n,o,a=0;function r(){var r,l,i=n,s=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(l=0;l<s;l++)if(i.args[l]!==arguments[l]){i=i.next;continue e}return i!==n&&(i===o&&(o=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n,i.prev=null,n.prev=i,n=i),i.val}i=i.next}for(r=new Array(s),l=0;l<s;l++)r[l]=arguments[l];return i={args:r,val:e.apply(null,r)},n?(n.prev=i,i.next=n):o=i,a===t.maxSize?(o=o.prev).next=null:a++,n=i,i.val}return t=t||{},r.clear=function(){n=null,o=null,a=0},r}const{name:Ht}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},Lt=e=>e&&e.includes('class="wp-embedded-content"'),At=(e,t={})=>{const{preview:n,attributes:o={}}=e,{url:a,providerNameSlug:r,type:l,...i}=o;if(!a||!(0,je.getBlockType)(Ht))return;const s=(e=>(0,je.getBlockVariations)(Ht)?.find((({patterns:t})=>((e,t=[])=>t.some((t=>e.match(t))))(e,t))))(a),c="wordpress"===r||l===Pt;if(!c&&s&&(s.attributes.providerNameSlug!==r||!r))return(0,je.createBlock)(Ht,{url:a,...i,...s.attributes});const u=(0,je.getBlockVariations)(Ht)?.find((({name:e})=>"wordpress"===e));return u&&n&&Lt(n.html)&&!c?(0,je.createBlock)(Ht,{url:a,...u.attributes,...t}):void 0},Vt=e=>{if(!e)return e;const t=Nt.reduce(((e,{className:t})=>(e[t]=!1,e)),{"wp-has-aspect-ratio":!1});return zt()(e,t)};function Dt(e,t,n=!0){if(!n)return Vt(t);const o=document.implementation.createHTMLDocument("");o.body.innerHTML=e;const a=o.body.querySelector("iframe");if(a&&a.height&&a.width){const e=(a.width/a.height).toFixed(2);for(let n=0;n<Nt.length;n++){const o=Nt[n];if(e>=o.ratio){return e-o.ratio>.1?Vt(t):zt()(Vt(t),o.className,"wp-has-aspect-ratio")}}}return t}const Ft=Rt(((e,t,n,o,a=!0)=>{if(!e)return{};const r={};let{type:l="rich"}=e;const{html:i,provider_name:s}=e,c=(0,It.kebabCase)((s||t).toLowerCase());return Lt(i)&&(l=Pt),(i||"photo"===l)&&(r.type=l,r.providerNameSlug=c),(u=n)&&Nt.some((({className:e})=>u.includes(e)))||(r.className=Dt(i,n,o&&a)),r;var u})),$t=["audio"];var Gt=function({attributes:e,className:t,setAttributes:n,onReplace:o,isSelected:a,insertBlocksAfter:r}){const{id:l,autoplay:i,caption:s,loop:c,preload:u,src:m}=e,p=(0,Tt.usePrevious)(s),[d,g]=(0,qe.useState)(!!s),h=!l&&(0,Et.isBlobURL)(m),_=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t().mediaUpload}),[]);(0,qe.useEffect)((()=>{if(!l&&(0,Et.isBlobURL)(m)){const e=(0,Et.getBlobByURL)(m);e&&_({filesList:[e],onFileChange:([e])=>x(e),onError:e=>k(e),allowedTypes:$t})}}),[]),(0,qe.useEffect)((()=>{s&&!p&&g(!0)}),[s,p]);const b=(0,qe.useCallback)((e=>{e&&!s&&e.focus()}),[s]);function f(e){return t=>{n({[e]:t})}}function y(e){if(e!==m){const t=At({attributes:{url:e}});if(void 0!==t&&o)return void o(t);n({src:e,id:void 0})}}(0,qe.useEffect)((()=>{a||s||g(!1)}),[a,s]);const{createErrorNotice:v}=(0,ut.useDispatch)(Bt.store);function k(e){v(e,{type:"snackbar"})}function x(e){e&&e.url?n({src:e.url,id:e.id,caption:e.caption}):n({src:void 0,id:void 0,caption:void 0})}const w=it()(t,{"is-transient":h}),C=(0,Ye.useBlockProps)({className:w});return m?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{g(!d),d&&s&&n({caption:void 0})},icon:St,isPressed:d,label:d?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:$t,accept:"audio/*",onSelect:x,onSelectURL:y,onError:k})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Autoplay"),onChange:f("autoplay"),checked:i,help:function(e){return e?(0,Je.__)("Autoplay may cause usability issues for some users."):null}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Loop"),onChange:f("loop"),checked:c}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je._x)("Preload","noun; Audio block parameter"),value:u||"",onChange:e=>n({preload:e||void 0}),options:[{value:"",label:(0,Je.__)("Browser default")},{value:"auto",label:(0,Je.__)("Auto")},{value:"metadata",label:(0,Je.__)("Metadata")},{value:"none",label:(0,Je._x)("None","Preload value")}]}))),(0,qe.createElement)("figure",{...C},(0,qe.createElement)(Ke.Disabled,{isDisabled:!a},(0,qe.createElement)("audio",{controls:"controls",src:m})),h&&(0,qe.createElement)(Ke.Spinner,null),d&&(!Ye.RichText.isEmpty(s)||a)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),ref:b,"aria-label":(0,Je.__)("Audio caption text"),placeholder:(0,Je.__)("Add caption"),value:s,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,je.createBlock)((0,je.getDefaultBlockName)()))}))):(0,qe.createElement)("div",{...C},(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:wt}),onSelect:x,onSelectURL:y,accept:"audio/*",allowedTypes:$t,value:e,onError:k}))};const Ot={from:[{type:"files",isMatch(e){return 1===e.length&&0===e[0].type.indexOf("audio/")},transform(e){const t=e[0];return(0,je.createBlock)("core/audio",{src:(0,Et.createBlobURL)(t)})}},{type:"shortcode",tag:"audio",attributes:{src:{type:"string",shortcode:({named:{src:e,mp3:t,m4a:n,ogg:o,wav:a,wma:r}})=>e||t||n||o||a||r},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};var Ut=Ot;const jt={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/audio",title:"Audio",category:"media",description:"Embed a simple audio player.",keywords:["music","sound","podcast","recording"],textdomain:"default",attributes:{src:{type:"string",source:"attribute",selector:"audio",attribute:"src",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},id:{type:"number",__experimentalRole:"content"},autoplay:{type:"boolean",source:"attribute",selector:"audio",attribute:"autoplay"},loop:{type:"boolean",source:"attribute",selector:"audio",attribute:"loop"},preload:{type:"string",source:"attribute",selector:"audio",attribute:"preload"}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},editorStyle:"wp-block-audio-editor",style:"wp-block-audio"},{name:qt}=jt,Wt={icon:wt,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg"},viewportWidth:350},transforms:Ut,deprecated:Ct,edit:Gt,save:function({attributes:e}){const{autoplay:t,caption:n,loop:o,preload:a,src:r}=e;return r&&(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("audio",{controls:"controls",src:r,autoPlay:t,loop:o,preload:a}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n,className:(0,Ye.__experimentalGetElementClassName)("caption")}))}},Zt=()=>Qe({name:qt,metadata:jt,settings:Wt});var Qt=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z"})),Kt=window.wp.privateApis;const{lock:Jt,unlock:Yt}=(0,Kt.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/block-library"),{cleanEmptyObject:Xt}=Yt(Ye.privateApis);function en(e){if(!e?.style?.typography?.fontFamily)return e;const{fontFamily:t,...n}=e.style.typography;return{...e,style:Xt({...e.style,typography:n}),fontFamily:t.split("|").pop()}}const tn=e=>{const{borderRadius:t,...n}=e,o=[t,n.style?.border?.radius].find((e=>"number"==typeof e&&0!==e));return o?{...n,style:{...n.style,border:{...n.style?.border,radius:`${o}px`}}}:n};const nn=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customGradient)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customGradient&&(t.color.gradient=e.customGradient);const{customTextColor:n,customBackgroundColor:o,customGradient:a,...r}=e;return{...r,style:t}},on=e=>{const{color:t,textColor:n,...o}={...e,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.color&&"#"===e.color[0]?e.color:void 0};return nn(o)},an={url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"}},rn={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{radius:!0}},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),d=it()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...m.style,...p.style},h=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:h})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:o,rel:a}))}},ln={attributes:{url:{type:"string",source:"attribute",selector:"a",attribute:"href"},title:{type:"string",source:"attribute",selector:"a",attribute:"title"},text:{type:"string",source:"html",selector:"a"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{radius:!0,__experimentalSkipSerialization:!0},__experimentalSelector:".wp-block-button__link"},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),d=it()("wp-block-button__link",m.className,u.className,{"no-border-radius":0===r?.border?.radius}),g={...u.style,...m.style,...p.style},h=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:h})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:d,href:s,title:i,style:g,value:l,target:o,rel:a}))},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}},sn=[rn,ln,{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},isEligible({style:e}){return"number"==typeof e?.border?.radius},save({attributes:e,className:t}){const{fontSize:n,linkTarget:o,rel:a,style:r,text:l,title:i,url:s,width:c}=e;if(!l)return null;const u=r?.border?.radius,m=(0,Ye.__experimentalGetColorClassesAndStyles)(e),p=it()("wp-block-button__link",m.className,{"no-border-radius":0===r?.border?.radius}),d={borderRadius:u||void 0,...m.style},g=it()(t,{[`has-custom-width wp-block-button__width-${c}`]:c,"has-custom-font-size":n||r?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:g})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:p,href:s,title:i,style:d,value:l,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:a,text:r,title:l,url:i,width:s}=e,c=(0,Ye.__experimentalGetColorClassesAndStyles)(e),u=it()("wp-block-button__link",c.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...c.style},p=it()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:p})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:i,title:l,style:m,value:r,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{anchor:!0,align:!0,alignWide:!1,color:{__experimentalSkipSerialization:!0},reusable:!1,__experimentalSelector:".wp-block-button__link"},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"},width:{type:"number"}},save({attributes:e,className:t}){const{borderRadius:n,linkTarget:o,rel:a,text:r,title:l,url:i,width:s}=e,c=(0,Ye.__experimentalGetColorClassesAndStyles)(e),u=it()("wp-block-button__link",c.className,{"no-border-radius":0===n}),m={borderRadius:n?n+"px":void 0,...c.style},p=it()(t,{[`has-custom-width wp-block-button__width-${s}`]:s});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:p})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:i,title:l,style:m,value:r,target:o,rel:a}))},migrate:(0,Tt.compose)(en,tn)},{supports:{align:!0,alignWide:!1,color:{gradients:!0}},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},style:{type:"object"}},save({attributes:e}){const{borderRadius:t,linkTarget:n,rel:o,text:a,title:r,url:l}=e,i=it()("wp-block-button__link",{"no-border-radius":0===t}),s={borderRadius:t?t+"px":void 0};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:i,href:l,title:r,style:s,value:a,target:n,rel:o})},migrate:tn},{supports:{align:!0,alignWide:!1},attributes:{...an,linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"},borderRadius:{type:"number"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},customGradient:{type:"string"},gradient:{type:"string"}},isEligible:e=>!!(e.customTextColor||e.customBackgroundColor||e.customGradient||e.align),migrate:(0,Tt.compose)(tn,nn,(function(e){if(!e.align)return e;const{align:t,...n}=e;return{...n,className:it()(n.className,`align${e.align}`)}})),save({attributes:e}){const{backgroundColor:t,borderRadius:n,customBackgroundColor:o,customTextColor:a,customGradient:r,linkTarget:l,gradient:i,rel:s,text:c,textColor:u,title:m,url:p}=e,d=(0,Ye.getColorClassName)("color",u),g=!r&&(0,Ye.getColorClassName)("background-color",t),h=(0,Ye.__experimentalGetGradientClass)(i),_=it()("wp-block-button__link",{"has-text-color":u||a,[d]:d,"has-background":t||o||r||i,[g]:g,"no-border-radius":0===n,[h]:h}),b={background:r||void 0,backgroundColor:g||r||i?void 0:o,color:d?void 0:a,borderRadius:n?n+"px":void 0};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:_,href:p,title:m,style:b,value:c,target:l,rel:s}))}},{attributes:{...an,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel"},placeholder:{type:"string"}},isEligible(e){return e.className&&e.className.includes("is-style-squared")},migrate(e){let t=e.className;return t&&(t=t.replace(/is-style-squared[\s]?/,"").trim()),tn(nn({...e,className:t||void 0,borderRadius:0}))},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,customTextColor:o,linkTarget:a,rel:r,text:l,textColor:i,title:s,url:c}=e,u=(0,Ye.getColorClassName)("color",i),m=(0,Ye.getColorClassName)("background-color",t),p=it()("wp-block-button__link",{"has-text-color":i||o,[u]:u,"has-background":t||n,[m]:m}),d={backgroundColor:m?void 0:n,color:u?void 0:o};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:p,href:c,title:s,style:d,value:l,target:a,rel:r}))}},{attributes:{...an,align:{type:"string",default:"none"},backgroundColor:{type:"string"},textColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"}},migrate:on,save({attributes:e}){const{url:t,text:n,title:o,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:i}=e,s=(0,Ye.getColorClassName)("color",r),c=(0,Ye.getColorClassName)("background-color",a),u=it()("wp-block-button__link",{"has-text-color":r||i,[s]:s,"has-background":a||l,[c]:c}),m={backgroundColor:c?void 0:l,color:s?void 0:i};return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:u,href:t,title:o,style:m,value:n}))}},{attributes:{...an,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:a,color:r,textColor:l}=e,i={backgroundColor:r,color:l};return(0,qe.createElement)("div",{className:`align${a}`},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:"wp-block-button__link",href:t,title:o,style:i,value:n}))},migrate:on},{attributes:{...an,color:{type:"string"},textColor:{type:"string"},align:{type:"string",default:"none"}},save({attributes:e}){const{url:t,text:n,title:o,align:a,color:r,textColor:l}=e;return(0,qe.createElement)("div",{className:`align${a}`,style:{backgroundColor:r}},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",href:t,title:o,style:{color:l},value:n}))},migrate:on}];var cn=sn,un=window.wp.keycodes;var mn=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var pn=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const dn="noreferrer noopener";function gn({selectedWidth:e,setAttributes:t}){return(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Width settings")},(0,qe.createElement)(Ke.ButtonGroup,{"aria-label":(0,Je.__)("Button width")},[25,50,75,100].map((n=>(0,qe.createElement)(Ke.Button,{key:n,isSmall:!0,variant:n===e?"primary":void 0,onClick:()=>{var o;t({width:e===(o=n)?void 0:o})}},n,"%")))))}var hn=function(e){const{attributes:t,setAttributes:n,className:o,isSelected:a,onReplace:r,mergeBlocks:l}=e,{textAlign:i,linkTarget:s,placeholder:c,rel:u,style:m,text:p,url:d,width:g}=t,[h,_]=(0,qe.useState)(null),b=(0,Ye.__experimentalUseBorderProps)(t),f=(0,Ye.__experimentalUseColorProps)(t),y=(0,Ye.__experimentalGetSpacingClassesAndStyles)(t),v=(0,qe.useRef)(),k=(0,qe.useRef)(),x=(0,Ye.useBlockProps)({ref:(0,Tt.useMergeRefs)([_,v]),onKeyDown:function(e){un.isKeyboardEvent.primary(e,"k")?B(e):un.isKeyboardEvent.primaryShift(e,"k")&&(T(),k.current?.focus())}}),[w,C]=(0,qe.useState)(!1),E=!!d,S="_blank"===s;function B(e){e.preventDefault(),C(!0)}function T(){n({url:void 0,linkTarget:void 0,rel:void 0}),C(!1)}return(0,qe.useEffect)((()=>{a||C(!1)}),[a]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{...x,className:it()(x.className,{[`has-custom-width wp-block-button__width-${g}`]:g,"has-custom-font-size":x.style.fontSize})},(0,qe.createElement)(Ye.RichText,{ref:k,"aria-label":(0,Je.__)("Button text"),placeholder:c||(0,Je.__)("Add text…"),value:p,onChange:e=>{n({text:e.replace(/<\/?a[^>]*>/g,"")})},withoutInteractiveFormatting:!0,className:it()(o,"wp-block-button__link",f.className,b.className,{[`has-text-align-${i}`]:i,"no-border-radius":0===m?.border?.radius},(0,Ye.__experimentalGetElementClassName)("button")),style:{...b.style,...f.style,...y.style},onSplit:e=>(0,je.createBlock)("core/button",{...t,text:e}),onReplace:r,onMerge:l,identifier:"text"})),(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:i,onChange:e=>{n({textAlign:e})}}),!E&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:mn,title:(0,Je.__)("Link"),shortcut:un.displayShortcut.primary("k"),onClick:B}),E&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:pn,title:(0,Je.__)("Unlink"),shortcut:un.displayShortcut.primaryShift("k"),onClick:T,isActive:!0})),a&&(w||E)&&(0,qe.createElement)(Ke.Popover,{placement:"bottom",onClose:()=>{C(!1),k.current?.focus()},anchor:h,focusOnMount:!!w&&"firstElement",__unstableSlotName:"__unstable-block-tools-after",shift:!0},(0,qe.createElement)(Ye.__experimentalLinkControl,{className:"wp-block-navigation-link__inline-link-input",value:{url:d,opensInNewTab:S},onChange:({url:e="",opensInNewTab:t})=>{n({url:(0,st.prependHTTP)(e)}),S!==t&&function(e){const t=e?"_blank":void 0;let o=u;t&&!u?o=dn:t||u!==dn||(o=void 0),n({linkTarget:t,rel:o})}(t)},onRemove:()=>{T(),k.current?.focus()},forceIsEditingLink:w})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(gn,{selectedWidth:g,setAttributes:n})),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:u||"",onChange:e=>n({rel:e})})))};const _n={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/button",title:"Button",category:"design",parent:["core/buttons"],description:"Prompt visitors to take action with a button-style link.",keywords:["link"],textdomain:"default",attributes:{textAlign:{type:"string"},url:{type:"string",source:"attribute",selector:"a",attribute:"href",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"a",attribute:"title",__experimentalRole:"content"},text:{type:"string",source:"html",selector:"a",__experimentalRole:"content"},linkTarget:{type:"string",source:"attribute",selector:"a",attribute:"target",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"a",attribute:"rel",__experimentalRole:"content"},placeholder:{type:"string"},backgroundColor:{type:"string"},textColor:{type:"string"},gradient:{type:"string"},width:{type:"number"}},supports:{anchor:!0,align:!1,alignWide:!1,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},reusable:!1,shadow:!0,spacing:{__experimentalSkipSerialization:!0,padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-button .wp-block-button__link"},styles:[{name:"fill",label:"Fill",isDefault:!0},{name:"outline",label:"Outline"}],editorStyle:"wp-block-button-editor",style:"wp-block-button"},{name:bn}=_n,fn={icon:Qt,example:{attributes:{className:"is-style-fill",text:(0,Je.__)("Call to Action")}},edit:hn,save:function({attributes:e,className:t}){const{textAlign:n,fontSize:o,linkTarget:a,rel:r,style:l,text:i,title:s,url:c,width:u}=e;if(!i)return null;const m=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),p=(0,Ye.__experimentalGetColorClassesAndStyles)(e),d=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),g=it()("wp-block-button__link",p.className,m.className,{[`has-text-align-${n}`]:n,"no-border-radius":0===l?.border?.radius},(0,Ye.__experimentalGetElementClassName)("button")),h={...m.style,...p.style,...d.style},_=it()(t,{[`has-custom-width wp-block-button__width-${u}`]:u,"has-custom-font-size":o||l?.typography?.fontSize});return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:_})},(0,qe.createElement)(Ye.RichText.Content,{tagName:"a",className:g,href:c,title:s,style:h,value:i,target:a,rel:r}))},deprecated:cn,merge:(e,{text:t=""})=>({...e,text:(e.text||"")+t})},yn=()=>Qe({name:bn,metadata:_n,settings:fn});var vn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"}));const kn=e=>{if(e.layout)return e;const{contentJustification:t,orientation:n,...o}=e;return(t||n)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),o},xn=[{attributes:{contentJustification:{type:"string"},orientation:{type:"string",default:"horizontal"}},supports:{anchor:!0,align:["wide","full"],__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}}},isEligible:({contentJustification:e,orientation:t})=>!!e||!!t,migrate:kn,save({attributes:{contentJustification:e,orientation:t}}){return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:it()({[`is-content-justification-${e}`]:e,"is-vertical":"vertical"===t})})},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{supports:{align:["center","left","right"],anchor:!0},save(){return(0,qe.createElement)("div",null,(0,qe.createElement)(Ye.InnerBlocks.Content,null))},isEligible({align:e}){return e&&["center","left","right"].includes(e)},migrate(e){return kn({...e,align:void 0,contentJustification:e.align})}}];var wn=xn,Cn=window.wp.richText;const{name:En}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},Sn={from:[{type:"block",isMultiBlock:!0,blocks:["core/button"],transform:e=>(0,je.createBlock)(En,{},e.map((e=>(0,je.createBlock)("core/button",e))))},{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,je.createBlock)(En,{},e.map((e=>{const t=(0,Cn.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelector("a"),a=o?.getAttribute("href");return(0,je.createBlock)("core/button",{text:n,url:a})}))),isMatch:e=>e.every((e=>{const t=(0,Cn.__unstableCreateElement)(document,e.content),n=t.innerText||"",o=t.querySelectorAll("a");return n.length<=30&&o.length<=1}))}]};var Bn=Sn;const Tn=[bn],Nn={name:bn,attributesToCopy:["backgroundColor","border","className","fontFamily","fontSize","gradient","style","textColor","width"]};var Pn=function({attributes:e,className:t}){var n;const{fontSize:o,layout:a,style:r}=e,l=(0,Ye.useBlockProps)({className:it()(t,{"has-custom-font-size":o||r?.typography?.fontSize})}),i=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings().__experimentalPreferredStyleVariations;return t?.value?.[bn]}),[]),s=(0,Ye.useInnerBlocksProps)(l,{allowedBlocks:Tn,__experimentalDefaultBlock:Nn,__experimentalDirectInsert:!0,template:[[bn,{className:i&&`is-style-${i}`}]],templateInsertUpdatesSelection:!0,orientation:null!==(n=a?.orientation)&&void 0!==n?n:"horizontal"});return(0,qe.createElement)("div",{...s})};const In={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/buttons",title:"Buttons",category:"design",description:"Prompt visitors to take action with a group of button-style links.",keywords:["link"],textdomain:"default",supports:{anchor:!0,align:["wide","full"],html:!1,__experimentalExposeControlsToChildren:!0,spacing:{blockGap:!0,margin:["top","bottom"],__experimentalDefaultControls:{blockGap:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},editorStyle:"wp-block-buttons-editor",style:"wp-block-buttons"},{name:Mn}=In,zn={icon:vn,example:{innerBlocks:[{name:"core/button",attributes:{text:(0,Je.__)("Find out more")}},{name:"core/button",attributes:{text:(0,Je.__)("Contact us")}}]},deprecated:wn,transforms:Bn,edit:Pn,save:function({attributes:e,className:t}){const{fontSize:n,style:o}=e,a=Ye.useBlockProps.save({className:it()(t,{"has-custom-font-size":n||o?.typography?.fontSize})}),r=Ye.useInnerBlocksProps.save(a);return(0,qe.createElement)("div",{...r})}},Rn=()=>Qe({name:Mn,metadata:In,settings:zn});var Hn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));const Ln=Rt((e=>{if(!e)return{};const t=new Date(e);return{year:t.getFullYear(),month:t.getMonth()+1}}));var An={from:[{type:"block",blocks:["core/archives"],transform:()=>(0,je.createBlock)("core/calendar")}],to:[{type:"block",blocks:["core/archives"],transform:()=>(0,je.createBlock)("core/archives")}]};const Vn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/calendar",title:"Calendar",category:"widgets",description:"A calendar of your site’s posts.",keywords:["posts","archive"],textdomain:"default",attributes:{month:{type:"integer"},year:{type:"integer"}},supports:{align:!0,color:{link:!0,__experimentalSkipSerialization:["text","background"],__experimentalDefaultControls:{background:!0,text:!0},__experimentalSelector:"table, th"},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-calendar"},{name:Dn}=Vn,Fn={icon:Hn,example:{},edit:function({attributes:e}){const t=(0,Ye.useBlockProps)(),{date:n,hasPosts:o,hasPostsResolved:a}=(0,ut.useSelect)((e=>{const{getEntityRecords:t,hasFinishedResolution:n}=e(ct.store),o={status:"publish",per_page:1},a=t("postType","post",o),r=n("getEntityRecords",["postType","post",o]);let l;const i=e("core/editor");if(i){"post"===i.getEditedPostAttribute("type")&&(l=i.getEditedPostAttribute("date"))}return{date:l,hasPostsResolved:r,hasPosts:r&&1===a?.length}}),[]);return o?(0,qe.createElement)("div",{...t},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/calendar",attributes:{...e,...Ln(n)}}))):(0,qe.createElement)("div",{...t},(0,qe.createElement)(Ke.Placeholder,{icon:Hn,label:(0,Je.__)("Calendar")},a?(0,Je.__)("No published posts found."):(0,qe.createElement)(Ke.Spinner,null)))},transforms:An},$n=()=>Qe({name:Dn,metadata:Vn,settings:Fn});var Gn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"})),On=window.wp.htmlEntities;var Un=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"}));const jn={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/categories",title:"Categories List",category:"widgets",description:"Display a list of all categories.",textdomain:"default",attributes:{displayAsDropdown:{type:"boolean",default:!1},showHierarchy:{type:"boolean",default:!1},showPostCounts:{type:"boolean",default:!1},showOnlyTopLevel:{type:"boolean",default:!1},showEmpty:{type:"boolean",default:!1}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-categories-editor",style:"wp-block-categories"},{name:qn}=jn,Wn={icon:Gn,example:{},edit:function e({attributes:{displayAsDropdown:t,showHierarchy:n,showPostCounts:o,showOnlyTopLevel:a,showEmpty:r},setAttributes:l,className:i}){const s=(0,Tt.useInstanceId)(e,"blocks-category-select"),c={per_page:-1,hide_empty:!r,context:"view"};a&&(c.parent=0);const{records:u,isResolving:m}=(0,ct.useEntityRecords)("taxonomy","category",c),p=e=>u?.length?null===e?u:u.filter((({parent:t})=>t===e)):[],d=e=>t=>l({[e]:t}),g=e=>e?(0,On.decodeEntities)(e).trim():(0,Je.__)("(Untitled)"),h=e=>{const t=p(e.id),{id:a,link:r,count:l,name:i}=e;return(0,qe.createElement)("li",{key:a,className:`cat-item cat-item-${a}`},(0,qe.createElement)("a",{href:r,target:"_blank",rel:"noreferrer noopener"},g(i)),o&&` (${l})`,n&&!!t.length&&(0,qe.createElement)("ul",{className:"children"},t.map((e=>h(e)))))},_=(e,t)=>{const{id:a,count:r,name:l}=e,i=p(a);return[(0,qe.createElement)("option",{key:a,className:`level-${t}`},Array.from({length:3*t}).map((()=>" ")),g(l),o&&` (${r})`),n&&!!i.length&&i.map((e=>_(e,t+1)))]},b=!u?.length||t||m?"div":"ul",f=it()(i,{"wp-block-categories-list":!!u?.length&&!t&&!m,"wp-block-categories-dropdown":!!u?.length&&t&&!m}),y=(0,Ye.useBlockProps)({className:f});return(0,qe.createElement)(b,{...y},(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display as dropdown"),checked:t,onChange:d("displayAsDropdown")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:o,onChange:d("showPostCounts")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show only top level categories"),checked:a,onChange:d("showOnlyTopLevel")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show empty categories"),checked:r,onChange:d("showEmpty")}),!a&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show hierarchy"),checked:n,onChange:d("showHierarchy")}))),m&&(0,qe.createElement)(Ke.Placeholder,{icon:Un,label:(0,Je.__)("Categories")},(0,qe.createElement)(Ke.Spinner,null)),!m&&0===u?.length&&(0,qe.createElement)("p",null,(0,Je.__)("Your site does not have any posts, so there is nothing to display here at the moment.")),!m&&u?.length>0&&(t?(()=>{const e=p(n?0:null);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.VisuallyHidden,{as:"label",htmlFor:s},(0,Je.__)("Categories")),(0,qe.createElement)("select",{id:s},(0,qe.createElement)("option",null,(0,Je.__)("Select Category")),e.map((e=>_(e,0)))))})():p(n?0:null).map((e=>h(e)))))}},Zn=()=>Qe({name:qn,metadata:jn,settings:Wn});var Qn=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z"}));var Kn=({clientId:e})=>{const{replaceBlocks:t}=(0,ut.useDispatch)(Ye.store),n=(0,ut.useSelect)((t=>t(Ye.store).getBlock(e)),[e]);return(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>t(n.clientId,(0,je.rawHandler)({HTML:(0,je.serialize)(n)}))},(0,Je.__)("Convert to blocks"))};function Jn(e){const t=(0,ut.useSelect)((e=>e(Ye.store).getSettings().styles));return(0,qe.useEffect)((()=>{const{baseURL:n,suffix:o,settings:a}=window.wpEditorL10n.tinymce;return window.tinymce.EditorManager.overrideDefaults({base_url:n,suffix:o}),window.wp.oldEditor.initialize(e.id,{tinymce:{...a,setup(e){e.on("init",(()=>{const n=e.getDoc();t.forEach((({css:e})=>{const t=n.createElement("style");t.innerHTML=e,n.head.appendChild(t)}))}))}}}),()=>{window.wp.oldEditor.remove(e.id)}}),[]),(0,qe.createElement)("textarea",{...e})}function Yn(e){const{clientId:t,attributes:{content:n},setAttributes:o,onReplace:a}=e,[r,l]=(0,qe.useState)(!1),i=`editor-${t}`,s=()=>n?l(!1):a([]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>l(!0)},(0,Je.__)("Edit")))),n&&(0,qe.createElement)(qe.RawHTML,null,n),(r||!n)&&(0,qe.createElement)(Ke.Modal,{title:(0,Je.__)("Classic Editor"),onRequestClose:s,shouldCloseOnClickOutside:!1,overlayClassName:"block-editor-freeform-modal"},(0,qe.createElement)(Jn,{id:i,defaultValue:n}),(0,qe.createElement)(Ke.Flex,{className:"block-editor-freeform-modal__actions",justify:"flex-end",expanded:!1},(0,qe.createElement)(Ke.FlexItem,null,(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:s},(0,Je.__)("Cancel"))),(0,qe.createElement)(Ke.FlexItem,null,(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:()=>{o({content:window.wp.oldEditor.getContent(i)}),l(!1)}},(0,Je.__)("Save"))))))}const{wp:Xn}=window;function eo({clientId:e,attributes:{content:t},setAttributes:n,onReplace:o}){const{getMultiSelectedBlockClientIds:a}=(0,ut.useSelect)(Ye.store),r=(0,qe.useRef)(!1);return(0,qe.useEffect)((()=>{if(!r.current)return;const n=window.tinymce.get(`editor-${e}`),o=n?.getContent();o!==t&&n.setContent(t||"")}),[t]),(0,qe.useEffect)((()=>{const{baseURL:l,suffix:i}=window.wpEditorL10n.tinymce;function s(e){let r;t&&e.on("loadContent",(()=>e.setContent(t))),e.on("blur",(()=>{r=e.selection.getBookmark(2,!0);const t=document.querySelector(".interface-interface-skeleton__content"),o=t.scrollTop;return a()?.length||n({content:e.getContent()}),e.once("focus",(()=>{r&&(e.selection.moveToBookmark(r),t.scrollTop!==o&&(t.scrollTop=o))})),!1})),e.on("mousedown touchstart",(()=>{r=null}));const l=(0,Tt.debounce)((()=>{const t=e.getContent();t!==e._lastChange&&(e._lastChange=t,n({content:t}))}),250);e.on("Paste Change input Undo Redo",l),e.on("remove",l.cancel),e.on("keydown",(t=>{un.isKeyboardEvent.primary(t,"z")&&t.stopPropagation(),t.keyCode!==un.BACKSPACE&&t.keyCode!==un.DELETE||!function(e){const t=e.getBody();return!(t.childNodes.length>1)&&(0===t.childNodes.length||!(t.childNodes[0].childNodes.length>1)&&/^\n?$/.test(t.innerText||t.textContent))}(e)||(o([]),t.preventDefault(),t.stopImmediatePropagation());const{altKey:n}=t;n&&t.keyCode===un.F10&&t.stopPropagation()})),e.on("init",(()=>{const t=e.getBody();t.ownerDocument.activeElement===t&&(t.blur(),e.focus())}))}function c(){const{settings:t}=window.wpEditorL10n.tinymce;Xn.oldEditor.initialize(`editor-${e}`,{tinymce:{...t,inline:!0,content_css:!1,fixed_toolbar_container:`#toolbar-${e}`,setup:s}})}function u(){"complete"===document.readyState&&c()}return r.current=!0,window.tinymce.EditorManager.overrideDefaults({base_url:l,suffix:i}),"complete"===document.readyState?c():document.addEventListener("readystatechange",u),()=>{document.removeEventListener("readystatechange",u),Xn.oldEditor.remove(`editor-${e}`)}}),[]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{key:"toolbar",id:`toolbar-${e}`,className:"block-library-classic__toolbar",onClick:function(){const t=window.tinymce.get(`editor-${e}`);t&&t.focus()},"data-placeholder":(0,Je.__)("Classic"),onKeyDown:function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()}}),(0,qe.createElement)("div",{key:"editor",id:`editor-${e}`,className:"wp-block-freeform block-library-rich-text__tinymce"}))}const to={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/freeform",title:"Classic",category:"text",description:"Use the classic WordPress editor.",textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,reusable:!1},editorStyle:"wp-block-freeform-editor"},{name:no}=to,oo={icon:Qn,edit:function(e){const{clientId:t}=e,n=(0,ut.useSelect)((e=>e(Ye.store).canRemoveBlock(t)),[t]),[o,a]=(0,qe.useState)(!1),r=(0,Tt.useRefEffect)((e=>{a(e.ownerDocument!==document)}),[]);return(0,qe.createElement)(qe.Fragment,null,n&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Kn,{clientId:t}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({ref:r})},o?(0,qe.createElement)(Yn,{...e}):(0,qe.createElement)(eo,{...e})))},save:function({attributes:e}){const{content:t}=e;return(0,qe.createElement)(qe.RawHTML,null,t)}},ao=()=>Qe({name:no,metadata:to,settings:oo});var ro=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));function lo(e){return e.replace(/\[/g,"[")}function io(e){return e.replace(/^(\s*https?:)\/\/([^\s<>"]+\s*)$/m,"$1//$2")}var so={from:[{type:"enter",regExp:/^```$/,transform:()=>(0,je.createBlock)("core/code")},{type:"block",blocks:["core/html","core/paragraph"],transform:({content:e})=>(0,je.createBlock)("core/code",{content:e})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&1===e.children.length&&"CODE"===e.firstChild.nodeName,schema:{pre:{children:{code:{children:{"#text":{}}}}}}}],to:[{type:"block",blocks:["core/paragraph"],transform:({content:e})=>(0,je.createBlock)("core/paragraph",{content:e.replace(/\n/g,"<br>")})}]};const co={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/code",title:"Code",category:"text",description:"Display code snippets that respect your spacing and tabs.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"code"}},supports:{align:["wide"],anchor:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0,__experimentalDefaultControls:{width:!0,color:!0}},color:{text:!0,background:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}}},style:"wp-block-code"},{name:uo}=co,mo={icon:ro,example:{attributes:{content:(0,Je.__)("// A “block” is the abstract term used\n// to describe units of markup that\n// when composed together, form the\n// content or layout of a page.\nregisterBlockType( name, settings );")}},transforms:so,edit:function({attributes:e,setAttributes:t,onRemove:n}){const o=(0,Ye.useBlockProps)();return(0,qe.createElement)("pre",{...o},(0,qe.createElement)(Ye.RichText,{tagName:"code",value:e.content,onChange:e=>t({content:e}),onRemove:n,placeholder:(0,Je.__)("Write code…"),"aria-label":(0,Je.__)("Code"),preserveWhiteSpace:!0,__unstablePastePlainText:!0}))},save:function({attributes:e}){return(0,qe.createElement)("pre",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.RichText.Content,{tagName:"code",value:(t=e.content,(0,Tt.pipe)(lo,io)(t||""))}));var t}},po=()=>Qe({name:uo,metadata:co,settings:mo});var go=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z"}));const ho=[{attributes:{verticalAlignment:{type:"string"},width:{type:"number",min:0,max:100}},isEligible({width:e}){return isFinite(e)},migrate(e){return{...e,width:`${e.width}%`}},save({attributes:e}){const{verticalAlignment:t,width:n}=e,o=it()({[`is-vertically-aligned-${t}`]:t}),a={flexBasis:n+"%"};return(0,qe.createElement)("div",{className:o,style:a},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];var _o=ho;var bo=function({attributes:{verticalAlignment:e,width:t,templateLock:n,allowedBlocks:o},setAttributes:a,clientId:r}){const l=it()("block-core-columns",{[`is-vertically-aligned-${e}`]:e}),i=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["%","px","em","rem","vw"]}),{columnsIds:s,hasChildBlocks:c,rootClientId:u}=(0,ut.useSelect)((e=>{const{getBlockOrder:t,getBlockRootClientId:n}=e(Ye.store),o=n(r);return{hasChildBlocks:t(r).length>0,rootClientId:o,columnsIds:t(o)}}),[r]),{updateBlockAttributes:m}=(0,ut.useDispatch)(Ye.store),p=Number.isFinite(t)?t+"%":t,d=(0,Ye.useBlockProps)({className:l,style:p?{flexBasis:p}:void 0}),g=s.length,h=s.indexOf(r)+1,_=(0,Je.sprintf)((0,Je.__)("%1$s (%2$d of %3$d)"),d["aria-label"],h,g),b=(0,Ye.useInnerBlocksProps)({...d,"aria-label":_},{templateLock:n,allowedBlocks:o,renderAppender:c?void 0:Ye.InnerBlocks.ButtonBlockAppender});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentToolbar,{onChange:e=>{a({verticalAlignment:e}),m(u,{verticalAlignment:null})},value:e})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Column settings")},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Width"),labelPosition:"edge",__unstableInputWidth:"80px",value:t||"",onChange:e=>{e=0>parseFloat(e)?"0":e,a({width:e})},units:i}))),(0,qe.createElement)("div",{...b}))};const fo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/column",title:"Column",category:"design",parent:["core/columns"],description:"A single column within a columns block.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},width:{type:"string"},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:!0,padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0}},{name:yo}=fo,vo={icon:go,edit:bo,save:function({attributes:e}){const{verticalAlignment:t,width:n}=e,o=it()({[`is-vertically-aligned-${t}`]:t});let a;if(n&&/\d/.test(n)){let e=Number.isFinite(n)?n+"%":n;if(!Number.isFinite(n)&&n?.endsWith("%")){const t=1e12;e=Math.round(Number.parseFloat(n)*t)/t+"%"}a={flexBasis:e}}const r=Ye.useBlockProps.save({className:o,style:a}),l=Ye.useInnerBlocksProps.save(r);return(0,qe.createElement)("div",{...l})},deprecated:_o},ko=()=>Qe({name:yo,metadata:fo,settings:vo});var xo=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z"}));function wo(e){let t,{doc:n}=wo;n||(n=document.implementation.createHTMLDocument(""),wo.doc=n),n.body.innerHTML=e;for(const e of n.body.firstChild.classList)if(t=e.match(/^layout-column-(\d+)$/))return Number(t[1])-1}var Co=[{attributes:{verticalAlignment:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>{if(!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:o,...a}=e;return{...a,style:t,isStackedOnMobile:!0}},save({attributes:e}){const{verticalAlignment:t,backgroundColor:n,customBackgroundColor:o,textColor:a,customTextColor:r}=e,l=(0,Ye.getColorClassName)("background-color",n),i=(0,Ye.getColorClassName)("color",a),s=it()({"has-background":n||o,"has-text-color":a||r,[l]:l,[i]:i,[`are-vertically-aligned-${t}`]:t}),c={backgroundColor:l?void 0:o,color:i?void 0:r};return(0,qe.createElement)("div",{className:s||void 0,style:c},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},isEligible(e,t){return!!t.some((e=>/layout-column-\d+/.test(e.originalContent)))&&t.some((e=>void 0!==wo(e.originalContent)))},migrate(e,t){const n=t.reduce(((e,t)=>{const{originalContent:n}=t;let o=wo(n);return void 0===o&&(o=0),e[o]||(e[o]=[]),e[o].push(t),e}),[]).map((e=>(0,je.createBlock)("core/column",{},e))),{columns:o,...a}=e;return[{...a,isStackedOnMobile:!0},n]},save({attributes:e}){const{columns:t}=e;return(0,qe.createElement)("div",{className:`has-${t}-columns`},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}},{attributes:{columns:{type:"number",default:2}},migrate(e,t){const{columns:n,...o}=e;return[e={...o,isStackedOnMobile:!0},t]},save({attributes:e}){const{verticalAlignment:t,columns:n}=e,o=it()(`has-${n}-columns`,{[`are-vertically-aligned-${t}`]:t});return(0,qe.createElement)("div",{className:o},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];const Eo=e=>{const t=parseFloat(e);return Number.isFinite(t)?parseFloat(t.toFixed(2)):void 0};function So(e,t){const{width:n=100/t}=e.attributes;return Eo(n)}function Bo(e,t,n=e.length){const o=function(e,t=e.length){return e.reduce(((e,n)=>e+So(n,t)),0)}(e,n);return Object.fromEntries(Object.entries(function(e,t=e.length){return e.reduce(((e,n)=>{const o=So(n,t);return Object.assign(e,{[n.clientId]:o})}),{})}(e,n)).map((([e,n])=>[e,Eo(t*n/o)])))}function To(e,t){return e.map((e=>({...e,attributes:{...e.attributes,width:`${t[e.clientId]}%`}})))}const No=["core/column"];const Po=(0,ut.withDispatch)(((e,t,n)=>({updateAlignment(o){const{clientId:a,setAttributes:r}=t,{updateBlockAttributes:l}=e(Ye.store),{getBlockOrder:i}=n.select(Ye.store);r({verticalAlignment:o});i(a).forEach((e=>{l(e,{verticalAlignment:o})}))},updateColumns(o,a){const{clientId:r}=t,{replaceInnerBlocks:l}=e(Ye.store),{getBlocks:i}=n.select(Ye.store);let s=i(r);const c=s.every((e=>{const t=e.attributes.width;return Number.isFinite(t?.endsWith?.("%")?parseFloat(t):t)}));const u=a>o;if(u&&c){const e=Eo(100/a);s=[...To(s,Bo(s,100-e)),...Array.from({length:a-o}).map((()=>(0,je.createBlock)("core/column",{width:`${e}%`})))]}else if(u)s=[...s,...Array.from({length:a-o}).map((()=>(0,je.createBlock)("core/column")))];else if(a<o&&(s=s.slice(0,-(o-a)),c)){s=To(s,Bo(s,100))}l(r,s)}})))((function({attributes:e,setAttributes:t,updateAlignment:n,updateColumns:o,clientId:a}){const{isStackedOnMobile:r,verticalAlignment:l,templateLock:i}=e,{count:s,canInsertColumnBlock:c,minCount:u}=(0,ut.useSelect)((e=>{const{canInsertBlockType:t,canRemoveBlock:n,getBlocks:o,getBlockCount:r}=e(Ye.store),l=o(a).reduce(((e,t,o)=>(n(t.clientId)||e.push(o),e)),[]);return{count:r(a),canInsertColumnBlock:t("core/column",a),minCount:Math.max(...l)+1}}),[a]),m=it()({[`are-vertically-aligned-${l}`]:l,"is-not-stacked-on-mobile":!r}),p=(0,Ye.useBlockProps)({className:m}),d=(0,Ye.useInnerBlocksProps)(p,{allowedBlocks:No,orientation:"horizontal",renderAppender:!1,templateLock:i});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentToolbar,{onChange:n,value:l})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,c&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:s,onChange:e=>o(s,Math.max(u,e)),min:Math.max(1,u),max:Math.max(6,s)}),s>6&&(0,qe.createElement)(Ke.Notice,{status:"warning",isDismissible:!1},(0,Je.__)("This column count exceeds the recommended amount and may cause visual breakage."))),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Stack on mobile"),checked:r,onChange:()=>t({isStackedOnMobile:!r})}))),(0,qe.createElement)("div",{...d}))}));function Io({clientId:e,name:t,setAttributes:n}){const{blockType:o,defaultVariation:a,variations:r}=(0,ut.useSelect)((e=>{const{getBlockVariations:n,getBlockType:o,getDefaultBlockVariation:a}=e(je.store);return{blockType:o(t),defaultVariation:a(t,"block"),variations:n(t,"block")}}),[t]),{replaceInnerBlocks:l}=(0,ut.useDispatch)(Ye.store),i=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ye.__experimentalBlockVariationPicker,{icon:o?.icon?.src,label:o?.title,variations:r,onSelect:(t=a)=>{t.attributes&&n(t.attributes),t.innerBlocks&&l(e,(0,je.createBlocksFromInnerBlocksTemplate)(t.innerBlocks),!0)},allowSkip:!0}))}var Mo=e=>{const{clientId:t}=e,n=(0,ut.useSelect)((e=>e(Ye.store).getBlocks(t).length>0),[t])?Po:Io;return(0,qe.createElement)(n,{...e})};var zo=[{name:"one-column-full",title:(0,Je.__)("100"),description:(0,Je.__)("One column"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z"})),innerBlocks:[["core/column"]],scope:["block"]},{name:"two-columns-equal",title:(0,Je.__)("50 / 50"),description:(0,Je.__)("Two columns; equal split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z"})),isDefault:!0,innerBlocks:[["core/column"],["core/column"]],scope:["block"]},{name:"two-columns-one-third-two-thirds",title:(0,Je.__)("33 / 66"),description:(0,Je.__)("Two columns; one-third, two-thirds split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z"})),innerBlocks:[["core/column",{width:"33.33%"}],["core/column",{width:"66.66%"}]],scope:["block"]},{name:"two-columns-two-thirds-one-third",title:(0,Je.__)("66 / 33"),description:(0,Je.__)("Two columns; two-thirds, one-third split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z"})),innerBlocks:[["core/column",{width:"66.66%"}],["core/column",{width:"33.33%"}]],scope:["block"]},{name:"three-columns-equal",title:(0,Je.__)("33 / 33 / 33"),description:(0,Je.__)("Three columns; equal split"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z"})),innerBlocks:[["core/column"],["core/column"],["core/column"]],scope:["block"]},{name:"three-columns-wider-center",title:(0,Je.__)("25 / 50 / 25"),description:(0,Je.__)("Three columns; wide center column"),icon:(0,qe.createElement)(Ke.SVG,{width:"48",height:"48",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",d:"M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z"})),innerBlocks:[["core/column",{width:"25%"}],["core/column",{width:"50%"}],["core/column",{width:"25%"}]],scope:["block"]}];const Ro={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert:e=>{const t=+(100/e.length).toFixed(2),n=e.map((({name:e,attributes:n,innerBlocks:o})=>["core/column",{width:`${t}%`},[[e,{...n},o]]]));return(0,je.createBlock)("core/columns",{},(0,je.createBlocksFromInnerBlocksTemplate)(n))},isMatch:({length:e},t)=>(1!==t.length||"core/columns"!==t[0].name)&&(e&&e<=6)},{type:"block",blocks:["core/media-text"],priority:1,transform:(e,t)=>{const{align:n,backgroundColor:o,textColor:a,style:r,mediaAlt:l,mediaId:i,mediaPosition:s,mediaSizeSlug:c,mediaType:u,mediaUrl:m,mediaWidth:p,verticalAlignment:d}=e;let g;if("image"!==u&&u)g=["core/video",{id:i,src:m}];else{g=["core/image",{...{id:i,alt:l,url:m,sizeSlug:c},...{href:e.href,linkClass:e.linkClass,linkDestination:e.linkDestination,linkTarget:e.linkTarget,rel:e.rel}}]}const h=[["core/column",{width:`${p}%`},[g]],["core/column",{width:100-p+"%"},t]];return"right"===s&&h.reverse(),(0,je.createBlock)("core/columns",{align:n,backgroundColor:o,textColor:a,style:r,verticalAlignment:d},(0,je.createBlocksFromInnerBlocksTemplate)(h))}}],ungroup:(e,t)=>t.flatMap((e=>e.innerBlocks))};var Ho=Ro;const Lo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/columns",title:"Columns",category:"design",description:"Display content in multiple columns, with blocks added to each column.",textdomain:"default",attributes:{verticalAlignment:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{blockGap:{__experimentalDefault:"2em",sides:["horizontal","vertical"]},margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex",flexWrap:"nowrap"}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-columns-editor",style:"wp-block-columns"},{name:Ao}=Lo,Vo={icon:xo,variations:zo,example:{viewportWidth:600,innerBlocks:[{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent et eros eu felis.")}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"}},{name:"core/paragraph",attributes:{content:(0,Je.__)("Suspendisse commodo neque lacus, a dictum orci interdum et.")}}]},{name:"core/column",innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("Etiam et egestas lorem. Vivamus sagittis sit amet dolor quis lobortis. Integer sed fermentum arcu, id vulputate lacus. Etiam fermentum sem eu quam hendrerit.")}},{name:"core/paragraph",attributes:{content:(0,Je.__)("Nam risus massa, ullamcorper consectetur eros fermentum, porta aliquet ligula. Sed vel mauris nec enim.")}}]}]},deprecated:Co,edit:Mo,save:function({attributes:e}){const{isStackedOnMobile:t,verticalAlignment:n}=e,o=it()({[`are-vertically-aligned-${n}`]:n,"is-not-stacked-on-mobile":!t}),a=Ye.useBlockProps.save({className:o}),r=Ye.useInnerBlocksProps.save(a);return(0,qe.createElement)("div",{...r})},transforms:Ho},Do=()=>Qe({name:Ao,metadata:Lo,settings:Vo});var Fo=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z"}));var $o=[{attributes:{tagName:{type:"string",default:"div"}},apiVersion:3,supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}}},save({attributes:{tagName:e}}){const t=Ye.useBlockProps.save(),{className:n}=t,o=n?.split(" ")||[],a=o?.filter((e=>"wp-block-comments"!==e)),r={...t,className:a.join(" ")};return(0,qe.createElement)(e,{...r},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];function Go({attributes:{tagName:e},setAttributes:t}){const n={section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")};return(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.__)("Default (<div>)"),value:"div"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:e,onChange:e=>t({tagName:e}),help:n[e]})))}const Oo=()=>{const e=(0,Tt.useInstanceId)(Oo);return(0,qe.createElement)("div",{className:"comment-respond"},(0,qe.createElement)("h3",{className:"comment-reply-title"},(0,Je.__)("Leave a Reply")),(0,qe.createElement)("form",{noValidate:!0,className:"comment-form",inert:"true"},(0,qe.createElement)("p",null,(0,qe.createElement)("label",{htmlFor:`comment-${e}`},(0,Je.__)("Comment")),(0,qe.createElement)("textarea",{id:`comment-${e}`,name:"comment",cols:"45",rows:"8"})),(0,qe.createElement)("p",{className:"form-submit wp-block-button"},(0,qe.createElement)("input",{name:"submit",type:"submit",className:it()("wp-block-button__link",(0,Ye.__experimentalGetElementClassName)("button")),label:(0,Je.__)("Post Comment"),value:(0,Je.__)("Post Comment")}))))};var Uo=({postId:e,postType:t})=>{const[n,o]=(0,ct.useEntityProp)("postType",t,"comment_status",e),a=void 0===t||void 0===e,{defaultCommentStatus:r}=(0,ut.useSelect)((e=>e(Ye.store).getSettings().__experimentalDiscussionSettings)),l=(0,ut.useSelect)((e=>!!t&&!!e(ct.store).getPostType(t)?.supports.comments));if(!a&&"open"!==n){if("closed"===n){const e=[(0,qe.createElement)(Ke.Button,{key:"enableComments",onClick:()=>o("open"),variant:"primary"},(0,Je._x)("Enable comments","action that affects the current post"))];return(0,qe.createElement)(Ye.Warning,{actions:e},(0,Je.__)("Post Comments Form block: Comments are not enabled for this item."))}if(!l)return(0,qe.createElement)(Ye.Warning,null,(0,Je.sprintf)((0,Je.__)("Post Comments Form block: Comments are not enabled for this post type (%s)."),t));if("open"!==r)return(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Post Comments Form block: Comments are not enabled."))}return(0,qe.createElement)(Oo,null)};function jo({postType:e,postId:t}){let[n]=(0,ct.useEntityProp)("postType",e,"title",t);n=n||(0,Je.__)("Post Title");const{avatarURL:o}=(0,ut.useSelect)((e=>e(Ye.store).getSettings().__experimentalDiscussionSettings));return(0,qe.createElement)("div",{className:"wp-block-comments__legacy-placeholder",inert:"true"},(0,qe.createElement)("h3",null,(0,Je.sprintf)((0,Je.__)("One response to %s"),n)),(0,qe.createElement)("div",{className:"navigation"},(0,qe.createElement)("div",{className:"alignleft"},(0,qe.createElement)("a",{href:"#top"},"« ",(0,Je.__)("Older Comments"))),(0,qe.createElement)("div",{className:"alignright"},(0,qe.createElement)("a",{href:"#top"},(0,Je.__)("Newer Comments")," »"))),(0,qe.createElement)("ol",{className:"commentlist"},(0,qe.createElement)("li",{className:"comment even thread-even depth-1"},(0,qe.createElement)("article",{className:"comment-body"},(0,qe.createElement)("footer",{className:"comment-meta"},(0,qe.createElement)("div",{className:"comment-author vcard"},(0,qe.createElement)("img",{alt:(0,Je.__)("Commenter Avatar"),src:o,className:"avatar avatar-32 photo",height:"32",width:"32",loading:"lazy"}),(0,qe.createElement)("b",{className:"fn"},(0,qe.createElement)("a",{href:"#top",className:"url"},(0,Je.__)("A WordPress Commenter")))," ",(0,qe.createElement)("span",{className:"says"},(0,Je.__)("says"),":")),(0,qe.createElement)("div",{className:"comment-metadata"},(0,qe.createElement)("a",{href:"#top"},(0,qe.createElement)("time",{dateTime:"2000-01-01T00:00:00+00:00"},(0,Je.__)("January 1, 2000 at 00:00 am")))," ",(0,qe.createElement)("span",{className:"edit-link"},(0,qe.createElement)("a",{className:"comment-edit-link",href:"#top"},(0,Je.__)("Edit"))))),(0,qe.createElement)("div",{className:"comment-content"},(0,qe.createElement)("p",null,(0,Je.__)("Hi, this is a comment."),(0,qe.createElement)("br",null),(0,Je.__)("To get started with moderating, editing, and deleting comments, please visit the Comments screen in the dashboard."),(0,qe.createElement)("br",null),(0,qe.createInterpolateElement)((0,Je.__)("Commenter avatars come from <a>Gravatar</a>."),{a:(0,qe.createElement)("a",{href:"https://gravatar.com/"})}))),(0,qe.createElement)("div",{className:"reply"},(0,qe.createElement)("a",{className:"comment-reply-link",href:"#top","aria-label":(0,Je.__)("Reply to A WordPress Commenter")},(0,Je.__)("Reply")))))),(0,qe.createElement)("div",{className:"navigation"},(0,qe.createElement)("div",{className:"alignleft"},(0,qe.createElement)("a",{href:"#top"},"« ",(0,Je.__)("Older Comments"))),(0,qe.createElement)("div",{className:"alignright"},(0,qe.createElement)("a",{href:"#top"},(0,Je.__)("Newer Comments")," »"))),(0,qe.createElement)(Uo,{postId:t,postType:e}))}function qo({attributes:e,setAttributes:t,context:{postType:n,postId:o}}){const{textAlign:a}=e,r=[(0,qe.createElement)(Ke.Button,{key:"convert",onClick:()=>{t({legacy:!1})},variant:"primary"},(0,Je.__)("Switch to editable mode"))],l=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${a}`]:a})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)("div",{...l},(0,qe.createElement)(Ye.Warning,{actions:r},(0,Je.__)("Comments block: You’re currently using the legacy version of the block. The following is just a placeholder - the final styling will likely look different. For a better representation and more customization options, switch the block to its editable mode.")),(0,qe.createElement)(jo,{postId:o,postType:n})))}var Wo=[["core/comments-title"],["core/comment-template",{},[["core/columns",{},[["core/column",{width:"40px"},[["core/avatar",{size:40,style:{border:{radius:"20px"}}}]]],["core/column",{},[["core/comment-author-name",{fontSize:"small"}],["core/group",{layout:{type:"flex"},style:{spacing:{margin:{top:"0px",bottom:"0px"}}}},[["core/comment-date",{fontSize:"small"}],["core/comment-edit-link",{fontSize:"small"}]]],["core/comment-content"],["core/comment-reply-link",{fontSize:"small"}]]]]]]],["core/comments-pagination"],["core/post-comments-form"]];const Zo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments",title:"Comments",category:"theme",description:"An advanced block that allows displaying post comments using different visual configurations.",textdomain:"default",attributes:{tagName:{type:"string",default:"div"},legacy:{type:"boolean",default:!1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-comments-editor",usesContext:["postId","postType"]},{name:Qo}=Zo,Ko={icon:Fo,edit:function(e){const{attributes:t,setAttributes:n}=e,{tagName:o,legacy:a}=t,r=(0,Ye.useBlockProps)(),l=(0,Ye.useInnerBlocksProps)(r,{template:Wo});return a?(0,qe.createElement)(qo,{...e}):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Go,{attributes:t,setAttributes:n}),(0,qe.createElement)(o,{...l}))},save:function({attributes:{tagName:e,legacy:t}}){const n=Ye.useBlockProps.save(),o=Ye.useInnerBlocksProps.save(n);return t?null:(0,qe.createElement)(e,{...o})},deprecated:$o},Jo=()=>Qe({name:Qo,metadata:Zo,settings:Ko});const Yo={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/comment-author-avatar",title:"Comment Author Avatar (deprecated)",category:"theme",ancestor:["core/comment-template"],description:"This block is deprecated. Please use the Avatar block instead.",textdomain:"default",attributes:{width:{type:"number",default:96},height:{type:"number",default:96}},usesContext:["commentId"],supports:{html:!1,inserter:!1,__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0},color:{background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{__experimentalSkipSerialization:!0,margin:!0,padding:!0}}},{name:Xo}=Yo,ea={icon:rt,edit:function({attributes:e,context:{commentId:t},setAttributes:n,isSelected:o}){const{height:a,width:r}=e,[l]=(0,ct.useEntityProp)("root","comment","author_avatar_urls",t),[i]=(0,ct.useEntityProp)("root","comment","author_name",t),s=l?Object.values(l):null,c=l?Object.keys(l):null,u=c?c[0]:24,m=c?c[c.length-1]:96,p=(0,Ye.useBlockProps)(),d=(0,Ye.__experimentalGetSpacingClassesAndStyles)(e),g=Math.floor(2.5*m),{avatarURL:h}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n})),_=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Avatar Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image size"),onChange:e=>n({width:e,height:e}),min:u,max:g,initialPosition:r,value:r}))),b=(0,qe.createElement)(Ke.ResizableBox,{size:{width:r,height:a},showHandle:o,onResizeStop:(e,t,o,l)=>{n({height:parseInt(a+l.height,10),width:parseInt(r+l.width,10)})},lockAspectRatio:!0,enable:{top:!1,right:!(0,Je.isRTL)(),bottom:!0,left:(0,Je.isRTL)()},minWidth:u,maxWidth:g},(0,qe.createElement)("img",{src:s?s[s.length-1]:h,alt:`${i} ${(0,Je.__)("Avatar")}`,...p}));return(0,qe.createElement)(qe.Fragment,null,_,(0,qe.createElement)("div",{...d},b))}},ta=()=>Qe({name:Xo,metadata:Yo,settings:ea});var na=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z",fillRule:"evenodd",clipRule:"evenodd"}),(0,qe.createElement)(We.Path,{d:"M15 15V15C15 13.8954 14.1046 13 13 13L11 13C9.89543 13 9 13.8954 9 15V15",fillRule:"evenodd",clipRule:"evenodd"}),(0,qe.createElement)(We.Circle,{cx:"12",cy:"9",r:"2",fillRule:"evenodd",clipRule:"evenodd"}));const oa={attributes:{isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var aa=[oa];const ra={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-author-name",title:"Comment Author Name",category:"theme",ancestor:["core/comment-template"],description:"Displays the name of the author of the comment.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},usesContext:["commentId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:la}=ra,ia={icon:na,edit:function({attributes:{isLink:e,linkTarget:t,textAlign:n},context:{commentId:o},setAttributes:a}){const r=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${n}`]:n})});let l=(0,ut.useSelect)((e=>{const{getEntityRecord:t}=e(ct.store),n=t("root","comment",o),a=n?.author_name;if(n&&!a){var r;const e=t("root","user",n.author);return null!==(r=e?.name)&&void 0!==r?r:(0,Je.__)("Anonymous")}return null!=a?a:""}),[o]);const i=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:n,onChange:e=>a({textAlign:e})})),s=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to authors URL"),onChange:()=>a({isLink:!e}),checked:e}),e&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>a({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t})));o&&l||(l=(0,Je._x)("Comment Author","block title"));const c=e?(0,qe.createElement)("a",{href:"#comment-author-pseudo-link",onClick:e=>e.preventDefault()},l):l;return(0,qe.createElement)(qe.Fragment,null,s,i,(0,qe.createElement)("div",{...r},c))},deprecated:aa},sa=()=>Qe({name:la,metadata:ra,settings:ia});var ca=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M6.68822 16.625L5.5 17.8145L5.5 5.5L18.5 5.5L18.5 16.625L6.68822 16.625ZM7.31 18.125L19 18.125C19.5523 18.125 20 17.6773 20 17.125L20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5V19.5247C4 19.8173 4.16123 20.086 4.41935 20.2237C4.72711 20.3878 5.10601 20.3313 5.35252 20.0845L7.31 18.125ZM16 9.99997H8V8.49997H16V9.99997ZM8 14H13V12.5H8V14Z"}));const ua={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-content",title:"Comment Content",category:"theme",ancestor:["core/comment-template"],description:"Displays the contents of a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{padding:["horizontal","vertical"],__experimentalDefaultControls:{padding:!0}},html:!1}},{name:ma}=ua,pa={icon:ca,edit:function({setAttributes:e,attributes:{textAlign:t},context:{commentId:n}}){const o=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${t}`]:t})}),[a]=(0,ct.useEntityProp)("root","comment","content",n),r=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})}));return n&&a?(0,qe.createElement)(qe.Fragment,null,r,(0,qe.createElement)("div",{...o},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(qe.RawHTML,{key:"html"},a.rendered)))):(0,qe.createElement)(qe.Fragment,null,r,(0,qe.createElement)("div",{...o},(0,qe.createElement)("p",null,(0,Je._x)("Comment Content","block title"))))}},da=()=>Qe({name:ma,metadata:ua,settings:pa});var ga=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"}),(0,qe.createElement)(We.Path,{d:"M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"})),ha=window.wp.date;const _a={attributes:{format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var ba=[_a];const fa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-date",title:"Comment Date",category:"theme",ancestor:["core/comment-template"],description:"Displays the date on which the comment was posted.",textdomain:"default",attributes:{format:{type:"string"},isLink:{type:"boolean",default:!0}},usesContext:["commentId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:ya}=fa,va={icon:ga,edit:function({attributes:{format:e,isLink:t},context:{commentId:n},setAttributes:o}){const a=(0,Ye.useBlockProps)();let[r]=(0,ct.useEntityProp)("root","comment","date",n);const[l=(0,ha.getSettings)().formats.date]=(0,ct.useEntityProp)("root","site","date_format"),i=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ye.__experimentalDateFormatPicker,{format:e,defaultFormat:l,onChange:e=>o({format:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to comment"),onChange:()=>o({isLink:!t}),checked:t})));n&&r||(r=(0,Je._x)("Comment Date","block title"));let s=r instanceof Date?(0,qe.createElement)("time",{dateTime:(0,ha.dateI18n)("c",r)},(0,ha.dateI18n)(e||l,r)):(0,qe.createElement)("time",null,r);return t&&(s=(0,qe.createElement)("a",{href:"#comment-date-pseudo-link",onClick:e=>e.preventDefault()},s)),(0,qe.createElement)(qe.Fragment,null,i,(0,qe.createElement)("div",{...a},s))},deprecated:ba},ka=()=>Qe({name:ya,metadata:fa,settings:va});var xa=(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"m6.249 11.065.44-.44h3.186l-1.5 1.5H7.31l-1.957 1.96A.792.792 0 0 1 4 13.524V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v1.5L12.5 8V5.5h-7v6.315l.749-.75ZM20 19.75H7v-1.5h13v1.5Zm0-12.653-8.967 9.064L8 17l.867-2.935L17.833 5 20 7.097Z"}));const wa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-edit-link",title:"Comment Edit Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to edit the comment in the WordPress Dashboard. This link is only visible to users with the edit comment capability.",textdomain:"default",usesContext:["commentId"],attributes:{linkTarget:{type:"string",default:"_self"},textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Ca}=wa,Ea={icon:xa,edit:function({attributes:{linkTarget:e,textAlign:t},setAttributes:n}){const o=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${t}`]:t})}),a=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:t,onChange:e=>n({textAlign:e})})),r=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===e})));return(0,qe.createElement)(qe.Fragment,null,a,r,(0,qe.createElement)("div",{...o},(0,qe.createElement)("a",{href:"#edit-comment-pseudo-link",onClick:e=>e.preventDefault()},(0,Je.__)("Edit"))))}},Sa=()=>Qe({name:Ca,metadata:wa,settings:Ea});var Ba=(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M6.68822 10.625L6.24878 11.0649L5.5 11.8145L5.5 5.5L12.5 5.5V8L14 6.5V5C14 4.44772 13.5523 4 13 4H5C4.44772 4 4 4.44771 4 5V13.5247C4 13.8173 4.16123 14.086 4.41935 14.2237C4.72711 14.3878 5.10601 14.3313 5.35252 14.0845L7.31 12.125H8.375L9.875 10.625H7.31H6.68822ZM14.5605 10.4983L11.6701 13.75H16.9975C17.9963 13.75 18.7796 14.1104 19.3553 14.7048C19.9095 15.2771 20.2299 16.0224 20.4224 16.7443C20.7645 18.0276 20.7543 19.4618 20.7487 20.2544C20.7481 20.345 20.7475 20.4272 20.7475 20.4999L19.2475 20.5001C19.2475 20.4191 19.248 20.3319 19.2484 20.2394V20.2394C19.2526 19.4274 19.259 18.2035 18.973 17.1307C18.8156 16.5401 18.586 16.0666 18.2778 15.7483C17.9909 15.4521 17.5991 15.25 16.9975 15.25H11.8106L14.5303 17.9697L13.4696 19.0303L8.96956 14.5303L13.4394 9.50171L14.5605 10.4983Z"}));var Ta=function({setAttributes:e,attributes:{textAlign:t}}){const n=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${t}`]:t})}),o=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:t,onChange:t=>e({textAlign:t})}));return(0,qe.createElement)(qe.Fragment,null,o,(0,qe.createElement)("div",{...n},(0,qe.createElement)("a",{href:"#comment-reply-pseudo-link",onClick:e=>e.preventDefault()},(0,Je.__)("Reply"))))};const Na={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-reply-link",title:"Comment Reply Link",category:"theme",ancestor:["core/comment-template"],description:"Displays a link to reply to a comment.",textdomain:"default",usesContext:["commentId"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},html:!1}},{name:Pa}=Na,Ia={edit:Ta,icon:Ba},Ma=()=>Qe({name:Pa,metadata:Na,settings:Ia});var za=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})),Ra=window.wp.apiFetch,Ha=n.n(Ra);const La=({defaultPage:e,postId:t,perPage:n,queryArgs:o})=>{const[a,r]=(0,qe.useState)({}),l=`${t}_${n}`,i=a[l]||0;return(0,qe.useEffect)((()=>{i||"newest"!==e||Ha()({path:(0,st.addQueryArgs)("/wp/v2/comments",{...o,post:t,per_page:n,_fields:"id"}),method:"HEAD",parse:!1}).then((e=>{const t=parseInt(e.headers.get("X-WP-TotalPages"));r({...a,[l]:t<=1?1:t})}))}),[e,t,n,r]),"newest"===e?i:1},Aa=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];function Va({comment:e,activeCommentId:t,setActiveCommentId:n,firstCommentId:o,blocks:a}){const{children:r,...l}=(0,Ye.useInnerBlocksProps)({},{template:Aa});return(0,qe.createElement)("li",{...l},e.commentId===(t||o)?r:null,(0,qe.createElement)(Da,{blocks:a,commentId:e.commentId,setActiveCommentId:n,isHidden:e.commentId===(t||o)}),e?.children?.length>0?(0,qe.createElement)(Fa,{comments:e.children,activeCommentId:t,setActiveCommentId:n,blocks:a,firstCommentId:o}):null)}const Da=(0,qe.memo)((({blocks:e,commentId:t,setActiveCommentId:n,isHidden:o})=>{const a=(0,Ye.__experimentalUseBlockPreview)({blocks:e}),r=()=>{n(t)},l={display:o?"none":void 0};return(0,qe.createElement)("div",{...a,tabIndex:0,role:"button",style:l,onClick:r,onKeyPress:r})})),Fa=({comments:e,blockProps:t,activeCommentId:n,setActiveCommentId:o,blocks:a,firstCommentId:r})=>(0,qe.createElement)("ol",{...t},e&&e.map((({commentId:e,...t},l)=>(0,qe.createElement)(Ye.BlockContextProvider,{key:t.commentId||l,value:{commentId:e<0?null:e}},(0,qe.createElement)(Va,{comment:{commentId:e,...t},activeCommentId:n,setActiveCommentId:o,blocks:a,firstCommentId:r})))));const $a={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comment-template",title:"Comment Template",category:"design",parent:["core/comments"],description:"Contains the block elements used to display a comment, like the title, date, author, avatar and more.",textdomain:"default",usesContext:["postId"],supports:{align:!0,html:!1,reusable:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-comment-template"},{name:Ga}=$a,Oa={icon:za,edit:function({clientId:e,context:{postId:t}}){const n=(0,Ye.useBlockProps)(),[o,a]=(0,qe.useState)(),{commentOrder:r,threadCommentsDepth:l,threadComments:i,commentsPerPage:s,pageComments:c}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t().__experimentalDiscussionSettings})),u=(({postId:e})=>{const t={status:"approve",order:"asc",context:"embed",parent:0,_embed:"children"},{pageComments:n,commentsPerPage:o,defaultCommentsPage:a}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n})),r=n?Math.min(o,100):100,l=La({defaultPage:a,postId:e,perPage:r,queryArgs:t});return(0,qe.useMemo)((()=>l?{...t,post:e,per_page:r,page:l}:null),[e,r,l])})({postId:t}),{topLevelComments:m,blocks:p}=(0,ut.useSelect)((t=>{const{getEntityRecords:n}=t(ct.store),{getBlocks:o}=t(Ye.store);return{topLevelComments:u?n("root","comment",u):null,blocks:o(e)}}),[e,u]);let d=(e=>(0,qe.useMemo)((()=>e?.map((({id:e,_embedded:t})=>{const[n]=t?.children||[[]];return{commentId:e,children:n.map((e=>({commentId:e.id})))}}))),[e]))("desc"===r&&m?[...m].reverse():m);return m?(t||(d=(({perPage:e,pageComments:t,threadComments:n,threadCommentsDepth:o})=>{const a=n?Math.min(o,3):1,r=e=>e<a?[{commentId:-(e+3),children:r(e+1)}]:[],l=[{commentId:-1,children:r(1)}];return(!t||e>=2)&&a<3&&l.push({commentId:-2,children:[]}),(!t||e>=3)&&a<2&&l.push({commentId:-3,children:[]}),l})({perPage:s,pageComments:c,threadComments:i,threadCommentsDepth:l})),d.length?(0,qe.createElement)(Fa,{comments:d,blockProps:n,blocks:p,activeCommentId:o,setActiveCommentId:a,firstCommentId:d[0]?.commentId}):(0,qe.createElement)("p",{...n},(0,Je.__)("No results found."))):(0,qe.createElement)("p",{...n},(0,qe.createElement)(Ke.Spinner,null))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},Ua=()=>Qe({name:Ga,metadata:$a,settings:Oa});var ja=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M16 10.5v3h3v-3h-3zm-5 3h3v-3h-3v3zM7 9l-3 3 3 3 1-1-2-2 2-2-1-1z"}));const qa={none:"",arrow:"←",chevron:"«"};const Wa={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-previous",title:"Comments Previous Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the previous comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Za}=Wa,Qa={icon:ja,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":n}}){const o=qa[n];return(0,qe.createElement)("a",{href:"#comments-pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,Ye.useBlockProps)()},o&&(0,qe.createElement)("span",{className:`wp-block-comments-pagination-previous-arrow is-arrow-${n}`},o),(0,qe.createElement)(Ye.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Je.__)("Older comments page link"),placeholder:(0,Je.__)("Older Comments"),value:e,onChange:e=>t({label:e})}))}},Ka=()=>Qe({name:Za,metadata:Wa,settings:Qa});var Ja=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"}));function Ya({value:e,onChange:t}){return(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Arrow"),value:e,onChange:t,help:(0,Je.__)("A decorative arrow appended to the next and previous comments link."),isBlock:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"none",label:(0,Je._x)("None","Arrow option for Comments Pagination Next/Previous blocks")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Je._x)("Arrow","Arrow option for Comments Pagination Next/Previous blocks")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Je._x)("Chevron","Arrow option for Comments Pagination Next/Previous blocks")}))}const Xa=[["core/comments-pagination-previous"],["core/comments-pagination-numbers"],["core/comments-pagination-next"]],er=["core/comments-pagination-previous","core/comments-pagination-numbers","core/comments-pagination-next"];const tr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination",title:"Comments Pagination",category:"theme",parent:["core/comments"],description:"Displays a paginated navigation to next/previous set of comments, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"}},providesContext:{"comments/paginationArrow":"paginationArrow"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-comments-pagination-editor",style:"wp-block-comments-pagination"},{name:nr}=tr,or={icon:Ja,edit:function({attributes:{paginationArrow:e},setAttributes:t,clientId:n}){const o=(0,ut.useSelect)((e=>{const{getBlocks:t}=e(Ye.store),o=t(n);return o?.find((e=>["core/comments-pagination-previous","core/comments-pagination-next"].includes(e.name)))}),[]),a=(0,Ye.useBlockProps)(),r=(0,Ye.useInnerBlocksProps)(a,{template:Xa,allowedBlocks:er});return(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{__experimentalDiscussionSettings:n}=t();return n?.pageComments}),[])?(0,qe.createElement)(qe.Fragment,null,o&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ya,{value:e,onChange:e=>{t({paginationArrow:e})}}))),(0,qe.createElement)("div",{...r})):(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Comments Pagination block: paging comments is disabled in the Discussion Settings"))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},ar=()=>Qe({name:nr,metadata:tr,settings:or});var rr=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"}));const lr={none:"",arrow:"→",chevron:"»"};const ir={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-next",title:"Comments Next Page",category:"theme",parent:["core/comments-pagination"],description:"Displays the next comment's page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["postId","comments/paginationArrow"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:sr}=ir,cr={icon:rr,edit:function({attributes:{label:e},setAttributes:t,context:{"comments/paginationArrow":n}}){const o=lr[n];return(0,qe.createElement)("a",{href:"#comments-pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ye.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Je.__)("Newer comments page link"),placeholder:(0,Je.__)("Newer Comments"),value:e,onChange:e=>t({label:e})}),o&&(0,qe.createElement)("span",{className:`wp-block-comments-pagination-next-arrow is-arrow-${n}`},o))}},ur=()=>Qe({name:sr,metadata:ir,settings:cr});var mr=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 13.5h6v-3H4v3zm8.2-2.5.8-.3V14h1V9.3l-2.2.7.4 1zm7.1-1.2c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3-.1-.8-.3-1.1z"}));const pr=({content:e,tag:t="a",extraClass:n=""})=>"a"===t?(0,qe.createElement)(t,{className:`page-numbers ${n}`,href:"#comments-pagination-numbers-pseudo-link",onClick:e=>e.preventDefault()},e):(0,qe.createElement)(t,{className:`page-numbers ${n}`},e);const dr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-pagination-numbers",title:"Comments Page Numbers",category:"theme",parent:["core/comments-pagination"],description:"Displays a list of page numbers for comments pagination.",textdomain:"default",usesContext:["postId"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:gr}=dr,hr={icon:mr,edit:function(){return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(pr,{content:"1"}),(0,qe.createElement)(pr,{content:"2"}),(0,qe.createElement)(pr,{content:"3",tag:"span",extraClass:"current"}),(0,qe.createElement)(pr,{content:"4"}),(0,qe.createElement)(pr,{content:"5"}),(0,qe.createElement)(pr,{content:"...",tag:"span",extraClass:"dots"}),(0,qe.createElement)(pr,{content:"8"}))}},_r=()=>Qe({name:gr,metadata:dr,settings:hr});var br=(0,qe.createElement)(We.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m4 5.5h2v6.5h1.5v-6.5h2v-1.5h-5.5zm16 10.5h-16v-1.5h16zm-7 4h-9v-1.5h9z"}));const{attributes:fr,supports:yr}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}}}};var vr=[{attributes:{...fr,singleCommentLabel:{type:"string"},multipleCommentsLabel:{type:"string"}},supports:yr,migrate:e=>{const{singleCommentLabel:t,multipleCommentsLabel:n,...o}=e;return o},isEligible:({multipleCommentsLabel:e,singleCommentLabel:t})=>e||t,save:()=>null}];const kr={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/comments-title",title:"Comments Title",category:"theme",ancestor:["core/comments"],description:"Displays a title with the number of comments",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"},showPostTitle:{type:"boolean",default:!0},showCommentsCount:{type:"boolean",default:!0},level:{type:"number",default:2}},supports:{anchor:!1,align:!0,html:!1,__experimentalBorder:{radius:!0,color:!0,width:!0,style:!0},color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0}}}},{name:xr}=kr,wr={icon:br,edit:function({attributes:{textAlign:e,showPostTitle:t,showCommentsCount:n,level:o},setAttributes:a,context:{postType:r,postId:l}}){const i="h"+o,[s,c]=(0,qe.useState)(),[u]=(0,ct.useEntityProp)("postType",r,"title",l),m=void 0===l,p=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${e}`]:e})}),{threadCommentsDepth:d,threadComments:g,commentsPerPage:h,pageComments:_}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t().__experimentalDiscussionSettings}));(0,qe.useEffect)((()=>{if(m){const e=g?Math.min(d,3)-1:0,t=_?h:3,n=parseInt(e)+parseInt(t);return void c(Math.min(n,3))}const e=l;Ha()({path:(0,st.addQueryArgs)("/wp/v2/comments",{post:l,_fields:"id"}),method:"HEAD",parse:!1}).then((t=>{e===l&&c(parseInt(t.headers.get("X-WP-Total")))})).catch((()=>{c(0)}))}),[l]);const b=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:e,onChange:e=>a({textAlign:e})}),(0,qe.createElement)(Ye.HeadingLevelDropdown,{value:o,onChange:e=>a({level:e})})),f=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post title"),checked:t,onChange:e=>a({showPostTitle:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show comments count"),checked:n,onChange:e=>a({showCommentsCount:e})}))),y=m?(0,Je.__)("“Post Title”"):`"${u}"`;let v;return v=n&&void 0!==s?t?1===s?(0,Je.sprintf)((0,Je.__)("One response to %s"),y):(0,Je.sprintf)((0,Je._n)("%1$s response to %2$s","%1$s responses to %2$s",s),s,y):1===s?(0,Je.__)("One response"):(0,Je.sprintf)((0,Je._n)("%s response","%s responses",s),s):t?1===s?(0,Je.sprintf)((0,Je.__)("Response to %s"),y):(0,Je.sprintf)((0,Je.__)("Responses to %s"),y):1===s?(0,Je.__)("Response"):(0,Je.__)("Responses"),(0,qe.createElement)(qe.Fragment,null,b,f,(0,qe.createElement)(i,{...p},v))},deprecated:vr},Cr=()=>Qe({name:xr,metadata:kr,settings:wr});var Er=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h6.2v8.9l2.5-3.1 2.5 3.1V4.5h2.2c.4 0 .8.4.8.8v13.4z"}));const Sr={"top left":"is-position-top-left","top center":"is-position-top-center","top right":"is-position-top-right","center left":"is-position-center-left","center center":"is-position-center-center",center:"is-position-center-center","center right":"is-position-center-right","bottom left":"is-position-bottom-left","bottom center":"is-position-bottom-center","bottom right":"is-position-bottom-right"},Br="image",Tr="video",Nr=50,Pr={x:.5,y:.5},Ir=["image","video"];function Mr({x:e,y:t}=Pr){return`${Math.round(100*e)}% ${Math.round(100*t)}%`}function zr(e){return 50===e||void 0===!e?null:"has-background-dim-"+10*Math.round(e/10)}function Rr(e){return!e||"center center"===e||"center"===e}function Hr(e){return Rr(e)?"":Sr[e]}function Lr(e){return e?{backgroundImage:`url(${e})`}:{}}function Ar(e){return 0!==e&&50!==e&&e?"has-background-dim-"+10*Math.round(e/10):null}function Vr(e){return{...e,dimRatio:e.url?e.dimRatio:100}}function Dr(e){return e.tagName||(e={...e,tagName:"div"}),{...e}}const Fr={url:{type:"string"},id:{type:"number"},hasParallax:{type:"boolean",default:!1},dimRatio:{type:"number",default:50},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"}},$r={url:{type:"string"},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},Gr={anchor:!0,align:!0,html:!1,spacing:{padding:!0,__experimentalDefaultControls:{padding:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!1,background:!1}},Or={attributes:$r,supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:g,id:h,minHeight:_,minHeightUnit:b}=e,f=(0,Ye.getColorClassName)("background-color",p),y=(0,Ye.__experimentalGetGradientClass)(n),v=Br===t,k=Tr===t,x=!(c||m),w={minHeight:(_&&b?`${_}${b}`:_)||void 0},C={backgroundColor:f?void 0:r,background:a||void 0},E=i&&x?Mr(i):void 0,S=d?`url(${d})`:void 0,B=Mr(i),T=it()({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Rr(o)},Hr(o)),N=it()("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":m}),P=n||a;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:T,style:w})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",f,zr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&P&&0!==l,"has-background-gradient":P,[y]:y}),style:C}),!s&&v&&d&&(x?(0,qe.createElement)("img",{className:N,alt:g,src:d,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}):(0,qe.createElement)("div",{role:"img",className:N,style:{backgroundPosition:B,backgroundImage:S}})),k&&d&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Dr},Ur={attributes:$r,supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:g,id:h,minHeight:_,minHeightUnit:b}=e,f=(0,Ye.getColorClassName)("background-color",p),y=(0,Ye.__experimentalGetGradientClass)(n),v=_&&b?`${_}${b}`:_,k=Br===t,x=Tr===t,w=!(c||m),C={...!k||w||s?{}:Lr(d),minHeight:v||void 0},E={backgroundColor:f?void 0:r,background:a||void 0},S=i&&w?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,B=it()({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Rr(o)},Hr(o)),T=n||a;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:B,style:C})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",f,zr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&T&&0!==l,"has-background-gradient":T,[y]:y}),style:E}),!s&&k&&w&&d&&(0,qe.createElement)("img",{className:it()("wp-block-cover__image-background",h?`wp-image-${h}`:null),alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),x&&d&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Dr},jr={attributes:$r,supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isDark:c,isRepeated:u,overlayColor:m,url:p,alt:d,id:g,minHeight:h,minHeightUnit:_}=e,b=(0,Ye.getColorClassName)("background-color",m),f=(0,Ye.__experimentalGetGradientClass)(n),y=_?`${h}${_}`:h,v=Br===t,k=Tr===t,x=!(s||u),w={...v&&!x?Lr(p):{},minHeight:y||void 0},C={backgroundColor:b?void 0:r,background:a||void 0},E=i&&x?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,S=it()({"is-light":!c,"has-parallax":s,"is-repeated":u,"has-custom-content-position":!Rr(o)},Hr(o)),B=n||a;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:S,style:w})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",b,zr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":p&&B&&0!==l,"has-background-gradient":B,[f]:f}),style:C}),v&&x&&p&&(0,qe.createElement)("img",{className:it()("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:d,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),k&&p&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Dr},qr={attributes:$r,supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isDark:c,isRepeated:u,overlayColor:m,url:p,alt:d,id:g,minHeight:h,minHeightUnit:_}=e,b=(0,Ye.getColorClassName)("background-color",m),f=(0,Ye.__experimentalGetGradientClass)(n),y=_?`${h}${_}`:h,v=Br===t,k=Tr===t,x=!(s||u),w={...v&&!x?Lr(p):{},minHeight:y||void 0},C={backgroundColor:b?void 0:r,background:a||void 0},E=i&&x?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,S=it()({"is-light":!c,"has-parallax":s,"is-repeated":u,"has-custom-content-position":!Rr(o)},Hr(o));return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:S,style:w})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()(b,zr(l),"wp-block-cover__gradient-background",f,{"has-background-dim":void 0!==l,"has-background-gradient":n||a,[f]:!p&&f}),style:C}),v&&x&&p&&(0,qe.createElement)("img",{className:it()("wp-block-cover__image-background",g?`wp-image-${g}`:null),alt:d,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),k&&p&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:p,style:{objectPosition:E},"data-object-fit":"cover","data-object-position":E}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},migrate:Dr},Wr={attributes:{...Fr,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""}},supports:Gr,save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isRepeated:c,overlayColor:u,url:m,alt:p,id:d,minHeight:g,minHeightUnit:h}=e,_=(0,Ye.getColorClassName)("background-color",u),b=(0,Ye.__experimentalGetGradientClass)(n),f=h?`${g}${h}`:g,y=Br===t,v=Tr===t,k=!(s||c),x={...y&&!k?Lr(m):{},backgroundColor:_?void 0:r,background:a&&!m?a:void 0,minHeight:f||void 0},w=i&&k?`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`:void 0,C=it()(Ar(l),_,{"has-background-dim":0!==l,"has-parallax":s,"is-repeated":c,"has-background-gradient":n||a,[b]:!m&&b,"has-custom-content-position":!Rr(o)},Hr(o));return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:C,style:x})},m&&(n||a)&&0!==l&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__gradient-background",b),style:a?{background:a}:void 0}),y&&k&&m&&(0,qe.createElement)("img",{className:it()("wp-block-cover__image-background",d?`wp-image-${d}`:null),alt:p,src:m,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),v&&m&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:{objectPosition:w},"data-object-fit":"cover","data-object-position":w}),(0,qe.createElement)("div",{className:"wp-block-cover__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))},migrate:(0,Tt.compose)(Vr,Dr)},Zr={attributes:{...Fr,isRepeated:{type:"boolean",default:!1},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,hasParallax:s,isRepeated:c,overlayColor:u,url:m,minHeight:p,minHeightUnit:d}=e,g=(0,Ye.getColorClassName)("background-color",u),h=(0,Ye.__experimentalGetGradientClass)(n),_=d?`${p}${d}`:p,b=Br===t,f=Tr===t,y=b?Lr(m):{},v={};let k;g||(y.backgroundColor=r),a&&!m&&(y.background=a),y.minHeight=_||void 0,i&&(k=`${Math.round(100*i.x)}% ${Math.round(100*i.y)}%`,b&&!s&&(y.backgroundPosition=k),f&&(v.objectPosition=k));const x=it()(Ar(l),g,{"has-background-dim":0!==l,"has-parallax":s,"is-repeated":c,"has-background-gradient":n||a,[h]:!m&&h,"has-custom-content-position":!Rr(o)},Hr(o));return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:x,style:y})},m&&(n||a)&&0!==l&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__gradient-background",h),style:a?{background:a}:void 0}),f&&m&&(0,qe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:m,style:v}),(0,qe.createElement)("div",{className:"wp-block-cover__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))},migrate:(0,Tt.compose)(Vr,Dr)},Qr={attributes:{...Fr,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:o,customOverlayColor:a,dimRatio:r,focalPoint:l,hasParallax:i,overlayColor:s,url:c,minHeight:u}=e,m=(0,Ye.getColorClassName)("background-color",s),p=(0,Ye.__experimentalGetGradientClass)(n),d=t===Br?Lr(c):{};m||(d.backgroundColor=a),l&&!i&&(d.backgroundPosition=`${Math.round(100*l.x)}% ${Math.round(100*l.y)}%`),o&&!c&&(d.background=o),d.minHeight=u||void 0;const g=it()(Ar(r),m,{"has-background-dim":0!==r,"has-parallax":i,"has-background-gradient":o,[p]:!c&&p});return(0,qe.createElement)("div",{className:g,style:d},c&&(n||o)&&0!==r&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__gradient-background",p),style:o?{background:o}:void 0}),Tr===t&&c&&(0,qe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,qe.createElement)("div",{className:"wp-block-cover__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))},migrate:(0,Tt.compose)(Vr,Dr)},Kr={attributes:{...Fr,minHeight:{type:"number"},gradient:{type:"string"},customGradient:{type:"string"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,gradient:n,customGradient:o,customOverlayColor:a,dimRatio:r,focalPoint:l,hasParallax:i,overlayColor:s,url:c,minHeight:u}=e,m=(0,Ye.getColorClassName)("background-color",s),p=(0,Ye.__experimentalGetGradientClass)(n),d=t===Br?Lr(c):{};m||(d.backgroundColor=a),l&&!i&&(d.backgroundPosition=`${100*l.x}% ${100*l.y}%`),o&&!c&&(d.background=o),d.minHeight=u||void 0;const g=it()(Ar(r),m,{"has-background-dim":0!==r,"has-parallax":i,"has-background-gradient":o,[p]:!c&&p});return(0,qe.createElement)("div",{className:g,style:d},c&&(n||o)&&0!==r&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__gradient-background",p),style:o?{background:o}:void 0}),Tr===t&&c&&(0,qe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),(0,qe.createElement)("div",{className:"wp-block-cover__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))},migrate:(0,Tt.compose)(Vr,Dr)},Jr={attributes:{...Fr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"}},supports:{align:!0},save({attributes:e}){const{backgroundType:t,contentAlign:n,customOverlayColor:o,dimRatio:a,focalPoint:r,hasParallax:l,overlayColor:i,title:s,url:c}=e,u=(0,Ye.getColorClassName)("background-color",i),m=t===Br?Lr(c):{};u||(m.backgroundColor=o),r&&!l&&(m.backgroundPosition=`${100*r.x}% ${100*r.y}%`);const p=it()(Ar(a),u,{"has-background-dim":0!==a,"has-parallax":l,[`has-${n}-content`]:"center"!==n});return(0,qe.createElement)("div",{className:p,style:m},Tr===t&&c&&(0,qe.createElement)("video",{className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:c}),!Ye.RichText.isEmpty(s)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",className:"wp-block-cover-text",value:s}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:o,...a}=t;return[a,[(0,je.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,Je.__)("Write title…")})]]}},Yr={attributes:{...Fr,title:{type:"string",source:"html",selector:"p"},contentAlign:{type:"string",default:"center"},align:{type:"string"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:o,dimRatio:a,align:r,contentAlign:l,overlayColor:i,customOverlayColor:s}=e,c=(0,Ye.getColorClassName)("background-color",i),u=Lr(t);c||(u.backgroundColor=s);const m=it()("wp-block-cover-image",Ar(a),c,{"has-background-dim":0!==a,"has-parallax":o,[`has-${l}-content`]:"center"!==l},r?`align${r}`:null);return(0,qe.createElement)("div",{className:m,style:u},!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",className:"wp-block-cover-image-text",value:n}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:o,align:a,...r}=t;return[r,[(0,je.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,Je.__)("Write title…")})]]}},Xr={attributes:{...Fr,title:{type:"string",source:"html",selector:"h2"},align:{type:"string"},contentAlign:{type:"string",default:"center"}},supports:{className:!1},save({attributes:e}){const{url:t,title:n,hasParallax:o,dimRatio:a,align:r}=e,l=Lr(t),i=it()("wp-block-cover-image",Ar(a),{"has-background-dim":0!==a,"has-parallax":o},r?`align${r}`:null);return(0,qe.createElement)("section",{className:i,style:l},(0,qe.createElement)(Ye.RichText.Content,{tagName:"h2",value:n}))},migrate(e){const t={...e,dimRatio:e.url?e.dimRatio:100,tagName:e.tagName?e.tagName:"div"},{title:n,contentAlign:o,align:a,...r}=t;return[r,[(0,je.createBlock)("core/paragraph",{content:e.title,align:e.contentAlign,fontSize:"large",placeholder:(0,Je.__)("Write title…")})]]}};var el=[Or,Ur,jr,qr,Wr,Zr,Qr,Kr,Jr,Yr,Xr],tl={grad:.9,turn:360,rad:360/(2*Math.PI)},nl=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},ol=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},al=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},rl=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},ll=function(e){return{r:al(e.r,0,255),g:al(e.g,0,255),b:al(e.b,0,255),a:al(e.a)}},il=function(e){return{r:ol(e.r),g:ol(e.g),b:ol(e.b),a:ol(e.a,3)}},sl=/^#([0-9a-f]{3,8})$/i,cl=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},ul=function(e){var t=e.r,n=e.g,o=e.b,a=e.a,r=Math.max(t,n,o),l=r-Math.min(t,n,o),i=l?r===t?(n-o)/l:r===n?2+(o-t)/l:4+(t-n)/l:0;return{h:60*(i<0?i+6:i),s:r?l/r*100:0,v:r/255*100,a:a}},ml=function(e){var t=e.h,n=e.s,o=e.v,a=e.a;t=t/360*6,n/=100,o/=100;var r=Math.floor(t),l=o*(1-n),i=o*(1-(t-r)*n),s=o*(1-(1-t+r)*n),c=r%6;return{r:255*[o,i,l,l,s,o][c],g:255*[s,o,o,i,l,l][c],b:255*[l,l,s,o,o,i][c],a:a}},pl=function(e){return{h:rl(e.h),s:al(e.s,0,100),l:al(e.l,0,100),a:al(e.a)}},dl=function(e){return{h:ol(e.h),s:ol(e.s),l:ol(e.l),a:ol(e.a,3)}},gl=function(e){return ml((n=(t=e).s,{h:t.h,s:(n*=((o=t.l)<50?o:100-o)/100)>0?2*n/(o+n)*100:0,v:o+n,a:t.a}));var t,n,o},hl=function(e){return{h:(t=ul(e)).h,s:(a=(200-(n=t.s))*(o=t.v)/100)>0&&a<200?n*o/100/(a<=100?a:200-a)*100:0,l:a/2,a:t.a};var t,n,o,a},_l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,bl=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,fl=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,yl=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vl={string:[[function(e){var t=sl.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?ol(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?ol(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=fl.exec(e)||yl.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:ll({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=_l.exec(e)||bl.exec(e);if(!t)return null;var n,o,a=pl({h:(n=t[1],o=t[2],void 0===o&&(o="deg"),Number(n)*(tl[o]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return gl(a)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,o=e.b,a=e.a,r=void 0===a?1:a;return nl(t)&&nl(n)&&nl(o)?ll({r:Number(t),g:Number(n),b:Number(o),a:Number(r)}):null},"rgb"],[function(e){var t=e.h,n=e.s,o=e.l,a=e.a,r=void 0===a?1:a;if(!nl(t)||!nl(n)||!nl(o))return null;var l=pl({h:Number(t),s:Number(n),l:Number(o),a:Number(r)});return gl(l)},"hsl"],[function(e){var t=e.h,n=e.s,o=e.v,a=e.a,r=void 0===a?1:a;if(!nl(t)||!nl(n)||!nl(o))return null;var l=function(e){return{h:rl(e.h),s:al(e.s,0,100),v:al(e.v,0,100),a:al(e.a)}}({h:Number(t),s:Number(n),v:Number(o),a:Number(r)});return ml(l)},"hsv"]]},kl=function(e,t){for(var n=0;n<t.length;n++){var o=t[n][0](e);if(o)return[o,t[n][1]]}return[null,void 0]},xl=function(e){return"string"==typeof e?kl(e.trim(),vl.string):"object"==typeof e&&null!==e?kl(e,vl.object):[null,void 0]},wl=function(e,t){var n=hl(e);return{h:n.h,s:al(n.s+100*t,0,100),l:n.l,a:n.a}},Cl=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},El=function(e,t){var n=hl(e);return{h:n.h,s:n.s,l:al(n.l+100*t,0,100),a:n.a}},Sl=function(){function e(e){this.parsed=xl(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return ol(Cl(this.rgba),2)},e.prototype.isDark=function(){return Cl(this.rgba)<.5},e.prototype.isLight=function(){return Cl(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=il(this.rgba)).r,n=e.g,o=e.b,r=(a=e.a)<1?cl(ol(255*a)):"","#"+cl(t)+cl(n)+cl(o)+r;var e,t,n,o,a,r},e.prototype.toRgb=function(){return il(this.rgba)},e.prototype.toRgbString=function(){return t=(e=il(this.rgba)).r,n=e.g,o=e.b,(a=e.a)<1?"rgba("+t+", "+n+", "+o+", "+a+")":"rgb("+t+", "+n+", "+o+")";var e,t,n,o,a},e.prototype.toHsl=function(){return dl(hl(this.rgba))},e.prototype.toHslString=function(){return t=(e=dl(hl(this.rgba))).h,n=e.s,o=e.l,(a=e.a)<1?"hsla("+t+", "+n+"%, "+o+"%, "+a+")":"hsl("+t+", "+n+"%, "+o+"%)";var e,t,n,o,a},e.prototype.toHsv=function(){return e=ul(this.rgba),{h:ol(e.h),s:ol(e.s),v:ol(e.v),a:ol(e.a,3)};var e},e.prototype.invert=function(){return Bl({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Bl(wl(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Bl(wl(this.rgba,-e))},e.prototype.grayscale=function(){return Bl(wl(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Bl(El(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Bl(El(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Bl({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):ol(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=hl(this.rgba);return"number"==typeof e?Bl({h:e,s:t.s,l:t.l,a:t.a}):ol(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Bl(e).toHex()},e}(),Bl=function(e){return e instanceof Sl?e:new Sl(e)},Tl=[];
+/*! Fast Average Color | © 2023 Denis Seleznev | MIT License | https://github.com/fast-average-color/fast-average-color */
+function Nl(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Pl(e){return"#"+e.map(Nl).join("")}function Il(e){return e?(t=e,Array.isArray(t[0])?e:[e]):[];var t}function Ml(e,t,n){for(var o=0;o<n.length;o++)if(zl(e,t,n[o]))return!0;return!1}function zl(e,t,n){switch(n.length){case 3:if(function(e,t,n){if(255!==e[t+3])return!0;if(e[t]===n[0]&&e[t+1]===n[1]&&e[t+2]===n[2])return!0;return!1}(e,t,n))return!0;break;case 4:if(function(e,t,n){if(e[t+3]&&n[3])return e[t]===n[0]&&e[t+1]===n[1]&&e[t+2]===n[2]&&e[t+3]===n[3];return e[t+3]===n[3]}(e,t,n))return!0;break;case 5:if(function(e,t,n){var o=n[0],a=n[1],r=n[2],l=n[3],i=n[4],s=e[t+3],c=Rl(s,l,i);if(!l)return c;if(!s&&c)return!0;if(Rl(e[t],o,i)&&Rl(e[t+1],a,i)&&Rl(e[t+2],r,i)&&c)return!0;return!1}(e,t,n))return!0;break;default:return!1}}function Rl(e,t,n){return e>=t-n&&e<=t+n}function Hl(e,t,n){for(var o={},a=n.dominantDivider||24,r=n.ignoredColor,l=n.step,i=[0,0,0,0,0],s=0;s<t;s+=l){var c=e[s],u=e[s+1],m=e[s+2],p=e[s+3];if(!r||!Ml(e,s,r)){var d=Math.round(c/a)+","+Math.round(u/a)+","+Math.round(m/a);o[d]?o[d]=[o[d][0]+c*p,o[d][1]+u*p,o[d][2]+m*p,o[d][3]+p,o[d][4]+1]:o[d]=[c*p,u*p,m*p,p,1],i[4]<o[d][4]&&(i=o[d])}}var g=i[0],h=i[1],_=i[2],b=i[3],f=i[4];return b?[Math.round(g/b),Math.round(h/b),Math.round(_/b),Math.round(b/f)]:n.defaultColor}function Ll(e,t,n){for(var o=0,a=0,r=0,l=0,i=0,s=n.ignoredColor,c=n.step,u=0;u<t;u+=c){var m=e[u+3],p=e[u]*m,d=e[u+1]*m,g=e[u+2]*m;s&&Ml(e,u,s)||(o+=p,a+=d,r+=g,l+=m,i++)}return l?[Math.round(o/l),Math.round(a/l),Math.round(r/l),Math.round(l/i)]:n.defaultColor}function Al(e,t,n){for(var o=0,a=0,r=0,l=0,i=0,s=n.ignoredColor,c=n.step,u=0;u<t;u+=c){var m=e[u],p=e[u+1],d=e[u+2],g=e[u+3];s&&Ml(e,u,s)||(o+=m*m*g,a+=p*p*g,r+=d*d*g,l+=g,i++)}return l?[Math.round(Math.sqrt(o/l)),Math.round(Math.sqrt(a/l)),Math.round(Math.sqrt(r/l)),Math.round(l/i)]:n.defaultColor}function Vl(e){return Dl(e,"defaultColor",[0,0,0,0])}function Dl(e,t,n){return void 0===e[t]?n:e[t]}function Fl(e){if(Gl(e)){var t=e.naturalWidth,n=e.naturalHeight;return e.naturalWidth||-1===e.src.search(/\.svg(\?|$)/i)||(t=n=100),{width:t,height:n}}return function(e){return"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement}(e)?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function $l(e){return function(e){return"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement}(e)?"canvas":function(e){return Ol&&e instanceof OffscreenCanvas}(e)?"offscreencanvas":function(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}(e)?"imagebitmap":e.src}function Gl(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement}var Ol="undefined"!=typeof OffscreenCanvas;var Ul="undefined"==typeof window;function jl(e){return Error("FastAverageColor: "+e)}function ql(e,t){t||console.error(e)}var Wl=function(){function e(){this.canvas=null,this.ctx=null}return e.prototype.getColorAsync=function(e,t){if(!e)return Promise.reject(jl("call .getColorAsync() without resource"));if("string"==typeof e){if("undefined"==typeof Image)return Promise.reject(jl("resource as string is not supported in this environment"));var n=new Image;return n.crossOrigin=t&&t.crossOrigin||"",n.src=e,this.bindImageEvents(n,t)}if(Gl(e)&&!e.complete)return this.bindImageEvents(e,t);var o=this.getColor(e,t);return o.error?Promise.reject(o.error):Promise.resolve(o)},e.prototype.getColor=function(e,t){var n=Vl(t=t||{});if(!e)return ql(r=jl("call .getColor() without resource"),t.silent),this.prepareResult(n,r);var o=function(e,t){var n,o=Dl(t,"left",0),a=Dl(t,"top",0),r=Dl(t,"width",e.width),l=Dl(t,"height",e.height),i=r,s=l;return"precision"===t.mode||(r>l?(n=r/l,i=100,s=Math.round(i/n)):(n=l/r,s=100,i=Math.round(s/n)),(i>r||s>l||i<10||s<10)&&(i=r,s=l)),{srcLeft:o,srcTop:a,srcWidth:r,srcHeight:l,destWidth:i,destHeight:s}}(Fl(e),t);if(!(o.srcWidth&&o.srcHeight&&o.destWidth&&o.destHeight))return ql(r=jl('incorrect sizes for resource "'.concat($l(e),'"')),t.silent),this.prepareResult(n,r);if(!this.canvas&&(this.canvas=Ul?Ol?new OffscreenCanvas(1,1):null:document.createElement("canvas"),!this.canvas))return ql(r=jl("OffscreenCanvas is not supported in this browser"),t.silent),this.prepareResult(n,r);if(!this.ctx){if(this.ctx=this.canvas.getContext("2d",{willReadFrequently:!0}),!this.ctx)return ql(r=jl("Canvas Context 2D is not supported in this browser"),t.silent),this.prepareResult(n);this.ctx.imageSmoothingEnabled=!1}this.canvas.width=o.destWidth,this.canvas.height=o.destHeight;try{this.ctx.clearRect(0,0,o.destWidth,o.destHeight),this.ctx.drawImage(e,o.srcLeft,o.srcTop,o.srcWidth,o.srcHeight,0,0,o.destWidth,o.destHeight);var a=this.ctx.getImageData(0,0,o.destWidth,o.destHeight).data;return this.prepareResult(this.getColorFromArray4(a,t))}catch(o){var r;return ql(r=jl("security error (CORS) for resource ".concat($l(e),".\nDetails: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image")),t.silent),!t.silent&&console.error(o),this.prepareResult(n,r)}},e.prototype.getColorFromArray4=function(e,t){t=t||{};var n=e.length,o=Vl(t);if(n<4)return o;var a,r=n-n%4,l=4*(t.step||1);switch(t.algorithm||"sqrt"){case"simple":a=Ll;break;case"sqrt":a=Al;break;case"dominant":a=Hl;break;default:throw jl("".concat(t.algorithm," is unknown algorithm"))}return a(e,r,{defaultColor:o,ignoredColor:Il(t.ignoredColor),step:l,dominantDivider:t.dominantDivider})},e.prototype.prepareResult=function(e,t){var n,o=e.slice(0,3),a=[e[0],e[1],e[2],e[3]/255],r=(299*(n=e)[0]+587*n[1]+114*n[2])/1e3<128;return{value:[e[0],e[1],e[2],e[3]],rgb:"rgb("+o.join(",")+")",rgba:"rgba("+a.join(",")+")",hex:Pl(o),hexa:Pl(e),isDark:r,isLight:!r,error:t}},e.prototype.destroy=function(){this.canvas&&(this.canvas.width=1,this.canvas.height=1,this.canvas=null),this.ctx=null},e.prototype.bindImageEvents=function(e,t){var n=this;return new Promise((function(o,a){var r=function(){s();var r=n.getColor(e,t);r.error?a(r.error):o(r)},l=function(){s(),a(jl('Error loading image "'.concat(e.src,'"')))},i=function(){s(),a(jl('Image "'.concat(e.src,'" loading aborted')))},s=function(){e.removeEventListener("load",r),e.removeEventListener("error",l),e.removeEventListener("abort",i)};e.addEventListener("load",r),e.addEventListener("error",l),e.addEventListener("abort",i)}))},e}(),Zl=window.wp.hooks;function Ql(){return Ql.fastAverageColor||(Ql.fastAverageColor=new Wl),Ql.fastAverageColor}function Kl({onChange:e,onUnitChange:t,unit:n="px",value:o=""}){const a=`block-cover-height-input-${(0,Tt.useInstanceId)(Ke.__experimentalUnitControl)}`,r="px"===n,l=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["px","em","rem","vw","vh"],defaultValues:{px:430,"%":20,em:20,rem:20,vw:20,vh:50}}),i=(0,qe.useMemo)((()=>{const[e]=(0,Ke.__experimentalParseQuantityAndUnitFromRawValue)(o);return[e,n].join("")}),[n,o]),s=r?Nr:0;return(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Minimum height of cover"),id:a,isResetValueOnUnitChange:!0,min:s,onChange:t=>{const n=""!==t?parseFloat(t):void 0;isNaN(n)&&void 0!==n||e(n)},onUnitChange:t,__unstableInputWidth:"80px",units:l,value:i})}function Jl({attributes:e,setAttributes:t,clientId:n,setOverlayColor:o,coverRef:a,currentSettings:r}){const{useFeaturedImage:l,dimRatio:i,focalPoint:s,hasParallax:c,isRepeated:u,minHeight:m,minHeightUnit:p,alt:d,tagName:g}=e,{isVideoBackground:h,isImageBackground:_,mediaElement:b,url:f,isImgElement:y,overlayColor:v}=r,{gradientValue:k,setGradient:x}=(0,Ye.__experimentalUseGradient)(),w=h||_&&(!c||u),C=e=>{const[t,n]=b.current?[b.current.style,"objectPosition"]:[a.current.style,"backgroundPosition"];t[n]=Mr(e)},E=(0,Ye.__experimentalUseMultipleOriginColorsAndGradients)(),S={header:(0,Je.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Je.__)("The <main> element should be used for the primary content of your document only. "),section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,Je.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,Je.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,!!f&&(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Media settings")},_&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Fixed background"),checked:c,onChange:()=>{t({hasParallax:!c,...c?{}:{focalPoint:void 0}})}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Repeated background"),checked:u,onChange:()=>{t({isRepeated:!u})}})),w&&(0,qe.createElement)(Ke.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Focal point picker"),url:f,value:s,onDragStart:C,onDrag:C,onChange:e=>t({focalPoint:e})}),!l&&f&&_&&y&&(0,qe.createElement)(Ke.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Alternative text"),value:d,onChange:e=>t({alt:e}),help:(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,Je.__)("Describe the purpose of the image.")),(0,qe.createElement)("br",null),(0,Je.__)("Leave empty if decorative."))}),(0,qe.createElement)(Ke.PanelRow,null,(0,qe.createElement)(Ke.Button,{variant:"secondary",isSmall:!0,className:"block-library-cover__reset-button",onClick:()=>t({url:void 0,id:void 0,backgroundType:void 0,focalPoint:void 0,hasParallax:void 0,isRepeated:void 0,useFeaturedImage:!1})},(0,Je.__)("Clear Media"))))),E.hasColorsOrGradients&&(0,qe.createElement)(Ye.InspectorControls,{group:"color"},(0,qe.createElement)(Ye.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:v.color,gradientValue:k,label:(0,Je.__)("Overlay"),onColorChange:o,onGradientChange:x,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0})}],panelId:n,...E}),(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>void 0!==i&&i!==(f?50:100),label:(0,Je.__)("Overlay opacity"),onDeselect:()=>t({dimRatio:f?50:100}),resetAllFilter:()=>({dimRatio:f?50:100}),isShownByDefault:!0,panelId:n},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Overlay opacity"),value:i,onChange:e=>t({dimRatio:e}),min:0,max:100,step:10,required:!0}))),(0,qe.createElement)(Ye.InspectorControls,{group:"dimensions"},(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!m,label:(0,Je.__)("Minimum height"),onDeselect:()=>t({minHeight:void 0,minHeightUnit:void 0}),resetAllFilter:()=>({minHeight:void 0,minHeightUnit:void 0}),isShownByDefault:!0,panelId:n},(0,qe.createElement)(Kl,{value:m,unit:p,onChange:e=>t({minHeight:e}),onUnitChange:e=>t({minHeightUnit:e})}))),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:g,onChange:e=>t({tagName:e}),help:S[g]})))}function Yl({attributes:e,setAttributes:t,onSelectMedia:n,currentSettings:o,toggleUseFeaturedImage:a}){const{contentPosition:r,id:l,useFeaturedImage:i,minHeight:s,minHeightUnit:c}=e,{hasInnerBlocks:u,url:m}=o,[p,d]=(0,qe.useState)(s),[g,h]=(0,qe.useState)(c),_="vh"===c&&100===s;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.__experimentalBlockAlignmentMatrixControl,{label:(0,Je.__)("Change content position"),value:r,onChange:e=>t({contentPosition:e}),isDisabled:!u}),(0,qe.createElement)(Ye.__experimentalBlockFullHeightAligmentControl,{isActive:_,onToggle:()=>_?t("vh"===g&&100===p?{minHeight:void 0,minHeightUnit:void 0}:{minHeight:p,minHeightUnit:g}):(d(s),h(c),t({minHeight:100,minHeightUnit:"vh"})),isDisabled:!u})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:l,mediaURL:m,allowedTypes:Ir,accept:"image/*,video/*",onSelect:n,onToggleFeaturedImage:a,useFeaturedImage:i,name:m?(0,Je.__)("Replace"):(0,Je.__)("Add Media")})))}function Xl({disableMediaButtons:e=!1,children:t,onSelectMedia:n,onError:o,style:a,toggleUseFeaturedImage:r}){return(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Er}),labels:{title:(0,Je.__)("Cover"),instructions:(0,Je.__)("Drag and drop onto this block, upload, or select existing media from your library.")},onSelect:n,accept:"image/*,video/*",allowedTypes:Ir,disableMediaButtons:e,onToggleFeaturedImage:r,onError:o,style:a},t)}const ei={top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},{ResizableBoxPopover:ti}=Yt(Ye.privateApis);function ni({className:e,height:t,minHeight:n,onResize:o,onResizeStart:a,onResizeStop:r,showHandle:l,size:i,width:s,...c}){const[u,m]=(0,qe.useState)(!1),p=(0,qe.useMemo)((()=>({height:t,minHeight:n,width:s})),[n,t,s]),d={className:it()(e,{"is-resizing":u}),enable:ei,onResizeStart:(e,t,n)=>{a(n.clientHeight),o(n.clientHeight)},onResize:(e,t,n)=>{o(n.clientHeight),u||m(!0)},onResizeStop:(e,t,n)=>{r(n.clientHeight),m(!1)},showHandle:l,size:i,__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"y",position:"bottom",isVisible:u}};return(0,qe.createElement)(ti,{className:"block-library-cover__resizable-box-popover",__unstableRefreshSize:p,resizableBoxProps:d,...c})}!function(e){e.forEach((function(e){Tl.indexOf(e)<0&&(e(Sl,vl),Tl.push(e))}))}([function(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},o={};for(var a in n)o[n[a]]=a;var r={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,l,i=o[this.toHex()];if(i)return i;if(null==t?void 0:t.closest){var s=this.toRgb(),c=1/0,u="black";if(!r.length)for(var m in n)r[m]=new e(n[m]).toRgb();for(var p in n){var d=(a=s,l=r[p],Math.pow(a.r-l.r,2)+Math.pow(a.g-l.g,2)+Math.pow(a.b-l.b,2));d<c&&(c=d,u=p)}return u}},t.string.push([function(t){var o=t.toLowerCase(),a="transparent"===o?"#0000":n[o];return a?new e(a).toRgb():null},"name"])}]);var oi=(0,Tt.compose)([(0,Ye.withColors)({overlayColor:"background-color"})])((function({attributes:e,clientId:t,isSelected:n,overlayColor:o,setAttributes:a,setOverlayColor:r,toggleSelection:l,context:{postId:i,postType:s}}){const{contentPosition:c,id:u,useFeaturedImage:m,dimRatio:p,focalPoint:d,hasParallax:g,isDark:h,isRepeated:_,minHeight:b,minHeightUnit:f,alt:y,allowedBlocks:v,templateLock:k,tagName:x="div"}=e,[w]=(0,ct.useEntityProp)("postType",s,"featured_media",i),C=(0,ut.useSelect)((e=>w&&e(ct.store).getMedia(w,{context:"view"})),[w]),E=C?.source_url,S=m?E:e.url?.replaceAll("&","&"),B=m?Br:e.backgroundType,{__unstableMarkNextChangeAsNotPersistent:T}=(0,ut.useDispatch)(Ye.store),{createErrorNotice:N}=(0,ut.useDispatch)(Bt.store),{gradientClass:P,gradientValue:I}=(0,Ye.__experimentalUseGradient)(),M=function(e,t){return n=>{if(!n||!n.url)return void e({url:void 0,id:void 0});let o;if((0,Et.isBlobURL)(n.url)&&(n.type=(0,Et.getBlobTypeByURL)(n.url)),n.media_type)o=n.media_type===Br?Br:Tr;else{if(n.type!==Br&&n.type!==Tr)return;o=n.type}e({dimRatio:100===t?50:t,url:n.url,id:n.id,alt:n?.alt,backgroundType:o,focalPoint:void 0,...o===Tr?{hasParallax:void 0}:{}})}}(a,p),z=((e,t)=>!e&&(0,Et.isBlobURL)(t))(u,S),R=e=>{N(e,{type:"snackbar"})},H=function(e,t=50,n){const[o,a]=(0,qe.useState)(!1);return(0,qe.useEffect)((()=>{if(e&&t<=50){const t=(0,Zl.applyFilters)("media.crossOrigin",void 0,e);Ql().getColorAsync(e,{defaultColor:[255,255,255,255],silent:!0,crossOrigin:t}).then((e=>a(e.isDark)))}}),[e,e&&t<=50,a]),(0,qe.useEffect)((()=>{if(t>50||!e){if(!n)return void a(!0);a(Bl(n).isDark())}}),[n,t>50||!e,a]),(0,qe.useEffect)((()=>{e||n||a(!1)}),[!e&&!n,a]),o}(S,p,o.color);(0,qe.useEffect)((()=>{T(),a({isDark:H})}),[H]);const L=Br===B,A=Tr===B,[V,{height:D,width:F}]=(0,Tt.useResizeObserver)(),$=(0,qe.useMemo)((()=>({height:"px"===f?b:"auto",width:"auto"})),[b,f]),G=b&&f?`${b}${f}`:b,O=!(g||_),U={minHeight:G||void 0},j=S?`url(${S})`:void 0,q=Mr(d),W={backgroundColor:o.color},Z={objectPosition:d&&O?Mr(d):void 0},Q=!!(S||o.color||I),K=(0,ut.useSelect)((e=>e(Ye.store).getBlock(t).innerBlocks.length>0),[t]),J=(0,qe.useRef)(),Y=(0,Ye.useBlockProps)({ref:J}),X=function(e){return[["core/paragraph",{align:"center",placeholder:(0,Je.__)("Write title…"),...e}]]}({fontSize:!!(0,Ye.useSetting)("typography.fontSizes")?.length?"large":void 0}),ee=(0,Ye.useInnerBlocksProps)({className:"wp-block-cover__inner-container"},{template:K?void 0:X,templateInsertUpdatesSelection:!0,allowedBlocks:v,templateLock:k}),te=(0,qe.useRef)(),ne={isVideoBackground:A,isImageBackground:L,mediaElement:te,hasInnerBlocks:K,url:S,isImgElement:O,overlayColor:o},oe=()=>{a({id:void 0,url:void 0,useFeaturedImage:!m,dimRatio:100===p?50:p,backgroundType:m?Br:void 0})},ae=(0,qe.createElement)(Yl,{attributes:e,setAttributes:a,onSelectMedia:M,currentSettings:ne,toggleUseFeaturedImage:oe}),re=(0,qe.createElement)(Jl,{attributes:e,setAttributes:a,clientId:t,setOverlayColor:r,coverRef:J,currentSettings:ne,toggleUseFeaturedImage:oe}),le={className:"block-library-cover__resize-container",clientId:t,height:D,minHeight:G,onResizeStart:()=>{a({minHeightUnit:"px"}),l(!1)},onResize:e=>{a({minHeight:e})},onResizeStop:e=>{l(!0),a({minHeight:e})},showHandle:!0,size:$,width:F};if(!m&&!K&&!Q)return(0,qe.createElement)(qe.Fragment,null,ae,re,n&&(0,qe.createElement)(ni,{...le}),(0,qe.createElement)(x,{...Y,className:it()("is-placeholder",Y.className),style:{...Y.style,minHeight:G||void 0}},V,(0,qe.createElement)(Xl,{onSelectMedia:M,onError:R,toggleUseFeaturedImage:oe},(0,qe.createElement)("div",{className:"wp-block-cover__placeholder-background-options"},(0,qe.createElement)(Ye.ColorPalette,{disableCustomColors:!0,value:o.color,onChange:r,clearable:!1})))));const ie=it()({"is-dark-theme":h,"is-light":!h,"is-transient":z,"has-parallax":g,"is-repeated":_,"has-custom-content-position":!Rr(c)},Hr(c));return(0,qe.createElement)(qe.Fragment,null,ae,re,(0,qe.createElement)(x,{...Y,className:it()(ie,Y.className),style:{...U,...Y.style},"data-url":S},V,(!m||S)&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",zr(p),{[o.class]:o.class,"has-background-dim":void 0!==p,"wp-block-cover__gradient-background":S&&I&&0!==p,"has-background-gradient":I,[P]:P}),style:{backgroundImage:I,...W}}),!S&&m&&(0,qe.createElement)(Ke.Placeholder,{className:"wp-block-cover__image--placeholder-image",withIllustration:!0}),S&&L&&(O?(0,qe.createElement)("img",{ref:te,className:"wp-block-cover__image-background",alt:y,src:S,style:Z}):(0,qe.createElement)("div",{ref:te,role:"img",className:it()(ie,"wp-block-cover__image-background"),style:{backgroundImage:j,backgroundPosition:q}})),S&&A&&(0,qe.createElement)("video",{ref:te,className:"wp-block-cover__video-background",autoPlay:!0,muted:!0,loop:!0,src:S,style:Z}),z&&(0,qe.createElement)(Ke.Spinner,null),(0,qe.createElement)(Xl,{disableMediaButtons:!0,onSelectMedia:M,onError:R,toggleUseFeaturedImage:oe}),(0,qe.createElement)("div",{...ee})),n&&(0,qe.createElement)(ni,{...le}))}));const{cleanEmptyObject:ai}=Yt(Ye.privateApis),ri={from:[{type:"block",blocks:["core/image"],transform:({caption:e,url:t,alt:n,align:o,id:a,anchor:r,style:l})=>(0,je.createBlock)("core/cover",{dimRatio:50,url:t,alt:n,align:o,id:a,anchor:r,style:{color:{duotone:l?.color?.duotone}}},[(0,je.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/video"],transform:({caption:e,src:t,align:n,id:o,anchor:a})=>(0,je.createBlock)("core/cover",{dimRatio:50,url:t,align:n,id:o,backgroundType:Tr,anchor:a},[(0,je.createBlock)("core/paragraph",{content:e,fontSize:"large",align:"center"})])},{type:"block",blocks:["core/group"],transform:(e,t)=>{const{align:n,anchor:o,backgroundColor:a,gradient:r,style:l}=e;if(1===t?.length&&"core/cover"===t[0]?.name)return(0,je.createBlock)("core/cover",t[0].attributes,t[0].innerBlocks);const i={align:n,anchor:o,dimRatio:a||r||l?.color?.background||l?.color?.gradient?void 0:50,overlayColor:a,customOverlayColor:l?.color?.background,gradient:r,customGradient:l?.color?.gradient},s={...e,backgroundColor:void 0,gradient:void 0,style:ai({...e?.style,color:l?.color?{...l?.color,background:void 0,gradient:void 0}:void 0})};return(0,je.createBlock)("core/cover",i,[(0,je.createBlock)("core/group",s,t)])}}],to:[{type:"block",blocks:["core/image"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:o,gradient:a,customGradient:r})=>t?e===Br:!(n||o||a||r),transform:({title:e,url:t,alt:n,align:o,id:a,anchor:r,style:l})=>(0,je.createBlock)("core/image",{caption:e,url:t,alt:n,align:o,id:a,anchor:r,style:{color:{duotone:l?.color?.duotone}}})},{type:"block",blocks:["core/video"],isMatch:({backgroundType:e,url:t,overlayColor:n,customOverlayColor:o,gradient:a,customGradient:r})=>t?e===Tr:!(n||o||a||r),transform:({title:e,url:t,align:n,id:o,anchor:a})=>(0,je.createBlock)("core/video",{caption:e,src:t,id:o,align:n,anchor:a})},{type:"block",blocks:["core/group"],isMatch:({url:e,useFeaturedImage:t})=>!e&&!t,transform:(e,t)=>{const n={backgroundColor:e?.overlayColor,gradient:e?.gradient,style:ai({...e?.style,color:e?.customOverlayColor||e?.customGradient||e?.style?.color?{background:e?.customOverlayColor,gradient:e?.customGradient,...e?.style?.color}:void 0})};if(1===t?.length&&"core/group"===t[0]?.name){const e=ai(t[0].attributes||{});return e?.backgroundColor||e?.gradient||e?.style?.color?.background||e?.style?.color?.gradient?(0,je.createBlock)("core/group",e,t[0]?.innerBlocks):(0,je.createBlock)("core/group",{...n,...e,style:ai({...e?.style,color:n?.style?.color||e?.style?.color?{...n?.style?.color,...e?.style?.color}:void 0})},t[0]?.innerBlocks)}return(0,je.createBlock)("core/group",{...e,...n},t)}}]};var li=ri;var ii=[{name:"cover",title:(0,Je.__)("Cover"),description:(0,Je.__)("Add an image or video with a text overlay."),attributes:{layout:{type:"constrained"}},isDefault:!0,icon:Er}];const si={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/cover",title:"Cover",category:"media",description:"Add an image or video with a text overlay.",textdomain:"default",attributes:{url:{type:"string"},useFeaturedImage:{type:"boolean",default:!1},id:{type:"number"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},hasParallax:{type:"boolean",default:!1},isRepeated:{type:"boolean",default:!1},dimRatio:{type:"number",default:100},overlayColor:{type:"string"},customOverlayColor:{type:"string"},backgroundType:{type:"string",default:"image"},focalPoint:{type:"object"},minHeight:{type:"number"},minHeightUnit:{type:"string"},gradient:{type:"string"},customGradient:{type:"string"},contentPosition:{type:"string"},isDark:{type:"boolean",default:!0},allowedBlocks:{type:"array"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},tagName:{type:"string",default:"div"}},usesContext:["postId","postType"],supports:{anchor:!0,align:!0,html:!1,spacing:{padding:!0,margin:["top","bottom"],blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},color:{__experimentalDuotone:"> .wp-block-cover__image-background, > .wp-block-cover__video-background",text:!0,background:!1,__experimentalSkipSerialization:["gradients"]},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowJustification:!1}},editorStyle:"wp-block-cover-editor",style:"wp-block-cover"},{name:ci}=si,ui={icon:Er,example:{attributes:{customOverlayColor:"#065174",dimRatio:40,url:"https://s.w.org/images/core/5.3/Windbuchencom.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("<strong>Snow Patrol</strong>"),align:"center",style:{typography:{fontSize:48},color:{text:"white"}}}}]},transforms:li,save:function({attributes:e}){const{backgroundType:t,gradient:n,contentPosition:o,customGradient:a,customOverlayColor:r,dimRatio:l,focalPoint:i,useFeaturedImage:s,hasParallax:c,isDark:u,isRepeated:m,overlayColor:p,url:d,alt:g,id:h,minHeight:_,minHeightUnit:b,tagName:f}=e,y=(0,Ye.getColorClassName)("background-color",p),v=(0,Ye.__experimentalGetGradientClass)(n),k=Br===t,x=Tr===t,w=!(c||m),C={minHeight:(_&&b?`${_}${b}`:_)||void 0},E={backgroundColor:y?void 0:r,background:a||void 0},S=i&&w?Mr(i):void 0,B=d?`url(${d})`:void 0,T=Mr(i),N=it()({"is-light":!u,"has-parallax":c,"is-repeated":m,"has-custom-content-position":!Rr(o)},Hr(o)),P=it()("wp-block-cover__image-background",h?`wp-image-${h}`:null,{"has-parallax":c,"is-repeated":m}),I=n||a;return(0,qe.createElement)(f,{...Ye.useBlockProps.save({className:N,style:C})},(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-cover__background",y,zr(l),{"has-background-dim":void 0!==l,"wp-block-cover__gradient-background":d&&I&&0!==l,"has-background-gradient":I,[v]:v}),style:E}),!s&&k&&d&&(w?(0,qe.createElement)("img",{className:P,alt:g,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}):(0,qe.createElement)("div",{role:"img",className:P,style:{backgroundPosition:T,backgroundImage:B}})),x&&d&&(0,qe.createElement)("video",{className:it()("wp-block-cover__video-background","intrinsic-ignore"),autoPlay:!0,muted:!0,loop:!0,playsInline:!0,src:d,style:{objectPosition:S},"data-object-fit":"cover","data-object-position":S}),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-cover__inner-container"})}))},edit:oi,deprecated:el,variations:ii},mi=()=>Qe({name:ci,metadata:si,settings:ui});var pi=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4 16h10v1.5H4V16Zm0-4.5h16V13H4v-1.5ZM10 7h10v1.5H10V7Z",fillRule:"evenodd",clipRule:"evenodd"}),(0,qe.createElement)(We.Path,{d:"m4 5.25 4 2.5-4 2.5v-5Z"}));const di=[["core/paragraph",{placeholder:(0,Je.__)("Type / to add a hidden block")}]];var gi=function({attributes:e,setAttributes:t,clientId:n}){const{showContent:o,summary:a}=e,r=(0,Ye.useBlockProps)(),l=(0,Ye.useInnerBlocksProps)(r,{template:di,__experimentalCaptureToolbars:!0}),i=(0,ut.useSelect)((e=>{const{isBlockSelected:t,hasSelectedInnerBlock:o}=e(Ye.store);return o(n,!0)||t(n)}),[n]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{label:(0,Je.__)("Open by default"),checked:o,onChange:()=>t({showContent:!o})}))),(0,qe.createElement)("details",{...l,open:i||o},(0,qe.createElement)("summary",{onClick:e=>e.preventDefault()},(0,qe.createElement)(Ye.RichText,{"aria-label":(0,Je.__)("Write summary"),placeholder:(0,Je.__)("Write summary…"),allowedFormats:[],withoutInteractiveFormatting:!0,value:a,onChange:e=>t({summary:e}),multiline:!1})),l.children))};const hi={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/details",title:"Details",category:"text",description:"Hide and show additional content.",keywords:["disclosure","summary","hide"],textdomain:"default",attributes:{showContent:{type:"boolean",default:!1},summary:{type:"string"}},supports:{align:["wide","full"],color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__experimentalBorder:{color:!0,width:!0,style:!0},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-details-editor",style:"wp-block-details"},{name:_i}=hi,bi={icon:pi,example:{attributes:{summary:"La Mancha",showContent:!0},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}}]},save:function({attributes:e}){const{showContent:t}=e,n=e.summary?e.summary:"Details",o=Ye.useBlockProps.save();return(0,qe.createElement)("details",{...o,open:t},(0,qe.createElement)("summary",null,(0,qe.createElement)(Ye.RichText.Content,{value:n})),(0,qe.createElement)(Ye.InnerBlocks.Content,null))},edit:gi},fi=()=>Qe({name:_i,metadata:hi,settings:bi});var yi=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"}));function vi(e){return e?(0,Je.__)("This embed will preserve its aspect ratio when the browser is resized."):(0,Je.__)("This embed may not preserve its aspect ratio when the browser is resized.")}var ki=({blockSupportsResponsive:e,showEditButton:t,themeSupportsResponsive:n,allowResponsive:o,toggleResponsive:a,switchBackToURLInput:r})=>(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,t&&(0,qe.createElement)(Ke.ToolbarButton,{className:"components-toolbar__control",label:(0,Je.__)("Edit URL"),icon:yi,onClick:r}))),n&&e&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Media settings"),className:"blocks-responsive"},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Resize for smaller devices"),checked:o,help:vi,onChange:a}))));const xi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),wi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM13.2 7.7c-.4.4-.7 1.1-.7 1.9v3.7c-.4-.3-.8-.4-1.3-.4-1.2 0-2.2 1-2.2 2.2 0 1.2 1 2.2 2.2 2.2.5 0 1-.2 1.4-.5.9-.6 1.4-1.6 1.4-2.6V9.6c0-.4.1-.6.2-.8.3-.3 1-.3 1.6-.3h.2V7h-.2c-.7 0-1.8 0-2.6.7z"})),Ci=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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-2zM9.2 4.5H19c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V9.8l4.6-5.3zm9.8 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),Ei=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zM10 15l5-3-5-3v6z"})),Si={foreground:"#1da1f2",src:(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.G,null,(0,qe.createElement)(Ke.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"})))},Bi={foreground:"#ff0000",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M21.8 8s-.195-1.377-.795-1.984c-.76-.797-1.613-.8-2.004-.847-2.798-.203-6.996-.203-6.996-.203h-.01s-4.197 0-6.996.202c-.39.046-1.242.05-2.003.846C2.395 6.623 2.2 8 2.2 8S2 9.62 2 11.24v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.76.797 1.76.77 2.205.855 1.6.153 6.8.2 6.8.2s4.203-.005 7-.208c.392-.047 1.244-.05 2.005-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517C22 9.62 21.8 8 21.8 8zM9.935 14.595v-5.62l5.403 2.82-5.403 2.8z"}))},Ti={foreground:"#3b5998",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M20 3H4c-.6 0-1 .4-1 1v16c0 .5.4 1 1 1h8.6v-7h-2.3v-2.7h2.3v-2c0-2.3 1.4-3.6 3.5-3.6 1 0 1.8.1 2.1.1v2.4h-1.4c-1.1 0-1.3.5-1.3 1.3v1.7h2.7l-.4 2.8h-2.3v7H20c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1z"}))},Ni=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.G,null,(0,qe.createElement)(Ke.Path,{d:"M12 4.622c2.403 0 2.688.01 3.637.052.877.04 1.354.187 1.67.31.42.163.72.358 1.036.673.315.315.51.615.673 1.035.123.317.27.794.31 1.67.043.95.052 1.235.052 3.638s-.01 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.67-.163.42-.358.72-.673 1.036-.315.315-.615.51-1.035.673-.317.123-.794.27-1.67.31-.95.043-1.234.052-3.638.052s-2.688-.01-3.637-.052c-.877-.04-1.354-.187-1.67-.31-.42-.163-.72-.358-1.036-.673-.315-.315-.51-.615-.673-1.035-.123-.317-.27-.794-.31-1.67-.043-.95-.052-1.235-.052-3.638s.01-2.688.052-3.637c.04-.877.187-1.354.31-1.67.163-.42.358-.72.673-1.036.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.67-.31.95-.043 1.235-.052 3.638-.052M12 3c-2.444 0-2.75.01-3.71.054s-1.613.196-2.185.418c-.592.23-1.094.538-1.594 1.04-.5.5-.807 1-1.037 1.593-.223.572-.375 1.226-.42 2.184C3.01 9.25 3 9.555 3 12s.01 2.75.054 3.71.196 1.613.418 2.186c.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.266.054 3.71.054s2.75-.01 3.71-.054 1.613-.196 2.186-.418c.592-.23 1.094-.538 1.594-1.038s.808-1.002 1.038-1.594c.222-.572.375-1.227.418-2.185.044-.96.054-1.266.054-3.71s-.01-2.75-.054-3.71-.196-1.613-.418-2.186c-.23-.592-.538-1.094-1.038-1.594s-1.002-.808-1.594-1.038c-.572-.222-1.227-.375-2.185-.418C14.75 3.01 14.445 3 12 3zm0 4.378c-2.552 0-4.622 2.07-4.622 4.622s2.07 4.622 4.622 4.622 4.622-2.07 4.622-4.622S14.552 7.378 12 7.378zM12 15c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3zm4.804-8.884c-.596 0-1.08.484-1.08 1.08s.484 1.08 1.08 1.08c.596 0 1.08-.484 1.08-1.08s-.483-1.08-1.08-1.08z"}))),Pi={foreground:"#0073AA",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.G,null,(0,qe.createElement)(Ke.Path,{d:"M12.158 12.786l-2.698 7.84c.806.236 1.657.365 2.54.365 1.047 0 2.05-.18 2.986-.51-.024-.037-.046-.078-.065-.123l-2.762-7.57zM3.008 12c0 3.56 2.07 6.634 5.068 8.092L3.788 8.342c-.5 1.117-.78 2.354-.78 3.658zm15.06-.454c0-1.112-.398-1.88-.74-2.48-.456-.74-.883-1.368-.883-2.11 0-.825.627-1.595 1.51-1.595.04 0 .078.006.116.008-1.598-1.464-3.73-2.36-6.07-2.36-3.14 0-5.904 1.613-7.512 4.053.21.008.41.012.58.012.94 0 2.395-.114 2.395-.114.484-.028.54.684.057.74 0 0-.487.058-1.03.086l3.275 9.74 1.968-5.902-1.4-3.838c-.485-.028-.944-.085-.944-.085-.486-.03-.43-.77.056-.742 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.486-.028.543.684.058.74 0 0-.488.058-1.03.086l3.25 9.665.897-2.997c.456-1.17.684-2.137.684-2.907zm1.82-3.86c.04.286.06.593.06.924 0 .912-.17 1.938-.683 3.22l-2.746 7.94c2.672-1.558 4.47-4.454 4.47-7.77 0-1.564-.4-3.033-1.1-4.314zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})))},Ii={foreground:"#1db954",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424c-.18.295-.563.387-.857.207-2.35-1.434-5.305-1.76-8.786-.963-.335.077-.67-.133-.746-.47-.077-.334.132-.67.47-.745 3.808-.87 7.076-.496 9.712 1.115.293.18.386.563.206.857M17.81 13.7c-.226.367-.706.482-1.072.257-2.687-1.652-6.785-2.13-9.965-1.166-.413.127-.848-.106-.973-.517-.125-.413.108-.848.52-.973 3.632-1.102 8.147-.568 11.234 1.328.366.226.48.707.256 1.072m.105-2.835C14.692 8.95 9.375 8.775 6.297 9.71c-.493.15-1.016-.13-1.166-.624-.148-.495.13-1.017.625-1.167 3.532-1.073 9.404-.866 13.115 1.337.445.264.59.838.327 1.282-.264.443-.838.59-1.282.325"}))},Mi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"m6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})),zi={foreground:"#1ab7ea",src:(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.G,null,(0,qe.createElement)(Ke.Path,{d:"M22.396 7.164c-.093 2.026-1.507 4.8-4.245 8.32C15.323 19.16 12.93 21 10.97 21c-1.214 0-2.24-1.12-3.08-3.36-.56-2.052-1.118-4.105-1.68-6.158-.622-2.24-1.29-3.36-2.004-3.36-.156 0-.7.328-1.634.98l-.978-1.26c1.027-.903 2.04-1.806 3.037-2.71C6 3.95 7.03 3.328 7.716 3.265c1.62-.156 2.616.95 2.99 3.32.404 2.558.685 4.148.84 4.77.468 2.12.982 3.18 1.543 3.18.435 0 1.09-.687 1.963-2.064.872-1.376 1.34-2.422 1.402-3.142.125-1.187-.343-1.782-1.4-1.782-.5 0-1.013.115-1.542.34 1.023-3.35 2.977-4.976 5.862-4.883 2.14.063 3.148 1.45 3.024 4.16z"})))},Ri=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"})),Hi={foreground:"#35465c",src:(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M19 3H5a2 2 0 00-2 2v14c0 1.1.9 2 2 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.69 14.66c-2.72 0-3.1-1.9-3.1-3.16v-3.56H8.49V8.99c1.7-.62 2.54-1.99 2.64-2.87 0-.06.06-.41.06-.58h1.9v3.1h2.17v2.3h-2.18v3.1c0 .47.13 1.3 1.2 1.26h1.1v2.36c-1.01.02-2.07 0-2.07 0z"}))},Li=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M18.42 14.58c-.51-.66-1.05-1.23-1.05-2.5V7.87c0-1.8.15-3.45-1.2-4.68-1.05-1.02-2.79-1.35-4.14-1.35-2.6 0-5.52.96-6.12 4.14-.06.36.18.54.4.57l2.66.3c.24-.03.42-.27.48-.5.24-1.12 1.17-1.63 2.2-1.63.56 0 1.22.21 1.55.7.4.56.33 1.31.33 1.97v.36c-1.59.18-3.66.27-5.16.93a4.63 4.63 0 0 0-2.93 4.44c0 2.82 1.8 4.23 4.1 4.23 1.95 0 3.03-.45 4.53-1.98.51.72.66 1.08 1.59 1.83.18.09.45.09.63-.1v.04l2.1-1.8c.24-.21.2-.48.03-.75zm-5.4-1.2c-.45.75-1.14 1.23-1.92 1.23-1.05 0-1.65-.81-1.65-1.98 0-2.31 2.1-2.73 4.08-2.73v.6c0 1.05.03 1.92-.5 2.88z"}),(0,qe.createElement)(Ke.Path,{d:"M21.69 19.2a17.62 17.62 0 0 1-21.6-1.57c-.23-.2 0-.5.28-.33a23.88 23.88 0 0 0 20.93 1.3c.45-.19.84.3.39.6z"}),(0,qe.createElement)(Ke.Path,{d:"M22.8 17.96c-.36-.45-2.22-.2-3.1-.12-.23.03-.3-.18-.05-.36 1.5-1.05 3.96-.75 4.26-.39.3.36-.1 2.82-1.5 4.02-.21.18-.42.1-.3-.15.3-.8 1.02-2.58.69-3z"})),Ai=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"m.0206909 21 19.8160091-13.07806 3.5831 6.20826z",fill:"#4bc7ee"}),(0,qe.createElement)(Ke.Path,{d:"m23.7254 19.0205-10.1074-17.18468c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418h22.5655c1.279 0 1.8019-.8905 1.1599-1.9795z",fill:"#d4cdcb"}),(0,qe.createElement)(Ke.Path,{d:"m.0206909 21 15.2439091-16.38571 4.3029 7.32271z",fill:"#c3d82e"}),(0,qe.createElement)(Ke.Path,{d:"m13.618 1.83582c-.6421-1.114428-1.7087-1.114428-2.3249 0l-11.2931 19.16418 15.2646-16.38573z",fill:"#e4ecb0"}),(0,qe.createElement)(Ke.Path,{d:"m.0206909 21 19.5468091-9.063 1.6621 2.8344z",fill:"#209dbd"}),(0,qe.createElement)(Ke.Path,{d:"m.0206909 21 17.9209091-11.82623 1.6259 2.76323z",fill:"#7cb3c9"})),Vi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"m12.1479 18.5957c-2.4949 0-4.28131-1.7558-4.28131-4.0658 0-2.2176 1.78641-4.0965 4.09651-4.0965 2.2793 0 4.0349 1.7864 4.0349 4.1581 0 2.2794-1.7556 4.0042-3.8501 4.0042zm8.3521-18.5957-4.5329 1v7c-1.1088-1.41691-2.8028-1.8787-4.8049-1.8787-2.09443 0-3.97329.76993-5.5133 2.27917-1.72483 1.66323-2.6489 3.78863-2.6489 6.16033 0 2.5873.98562 4.8049 2.89526 6.499 1.44763 1.2936 3.17251 1.9402 5.17454 1.9402 1.9713 0 3.4498-.5236 4.8973-1.9402v1.9402h4.5329c0-7.6359 0-15.3641 0-23z",fill:"#333436"})),Di=(0,qe.createElement)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(Ke.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"})),Fi=(0,qe.createElement)(Ke.SVG,{viewBox:"0 0 44 44"},(0,qe.createElement)(Ke.Path,{d:"M32.59521,22.001l4.31885-4.84473-6.34131-1.38379.646-6.459-5.94336,2.61035L22,6.31934l-3.27344,5.60351L12.78418,9.3125l.645,6.458L7.08643,17.15234,11.40479,21.999,7.08594,26.84375l6.34131,1.38379-.64551,6.458,5.94287-2.60938L22,37.68066l3.27344-5.60351,5.94287,2.61035-.64551-6.458,6.34277-1.38183Zm.44385,2.75244L30.772,23.97827l-1.59558-2.07391,1.97888.735Zm-8.82147,6.1579L22.75,33.424V30.88977l1.52228-2.22168ZM18.56226,13.48816,19.819,15.09534l-2.49219-.88642L15.94037,12.337Zm6.87719.00116,2.62043-1.15027-1.38654,1.86981L24.183,15.0946Zm3.59357,2.6029-1.22546,1.7381.07525-2.73486,1.44507-1.94867ZM22,29.33008l-2.16406-3.15686L22,23.23688l2.16406,2.93634Zm-4.25458-9.582-.10528-3.836,3.60986,1.284v3.73242Zm5.00458-2.552,3.60986-1.284-.10528,3.836L22.75,20.92853Zm-7.78174-1.10559-.29352-2.94263,1.44245,1.94739.07519,2.73321Zm2.30982,5.08319,3.50817,1.18164-2.16247,2.9342-3.678-1.08447Zm2.4486,7.49285L21.25,30.88977v2.53485L19.78052,30.91Zm3.48707-6.31121,3.50817-1.18164,2.33228,3.03137-3.678,1.08447Zm10.87219-4.28113-2.714,3.04529L28.16418,19.928l1.92176-2.72565ZM24.06036,12.81769l-2.06012,2.6322-2.059-2.63318L22,9.292ZM9.91455,18.07227l4.00079-.87195,1.921,2.72735-3.20794,1.19019Zm2.93024,4.565,1.9801-.73462L13.228,23.97827l-2.26838.77429Zm-1.55591,3.58819L13.701,25.4021l2.64935.78058-2.14447.67853Zm3.64868,1.977L18.19,27.17334l.08313,3.46332L14.52979,32.2793Zm10.7876,2.43549.08447-3.464,3.25165,1.03052.407,4.07684Zm4.06824-3.77478-2.14545-.68,2.65063-.781,2.41266.825Z"})),$i={foreground:"#f43e37",src:(0,qe.createElement)(Ke.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M24,12A12,12,0,1,1,12,0,12,12,0,0,1,24,12Z"}),(0,qe.createElement)(Ke.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M2.67,12a9.33,9.33,0,0,1,18.66,0H19a7,7,0,1,0-7,7v2.33A9.33,9.33,0,0,1,2.67,12ZM12,17.6A5.6,5.6,0,1,1,17.6,12h-2A3.56,3.56,0,1,0,12,15.56Z",fill:"#fff"}))};var Gi=()=>(0,qe.createElement)("div",{className:"wp-block-embed is-loading"},(0,qe.createElement)(Ke.Spinner,null));var Oi=({icon:e,label:t,value:n,onSubmit:o,onChange:a,cannotEmbed:r,fallback:l,tryAgain:i})=>(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:e,showColors:!0}),label:t,className:"wp-block-embed",instructions:(0,Je.__)("Paste a link to the content you want to display on your site.")},(0,qe.createElement)("form",{onSubmit:o},(0,qe.createElement)("input",{type:"url",value:n||"",className:"components-placeholder__input","aria-label":t,placeholder:(0,Je.__)("Enter URL to embed here…"),onChange:a}),(0,qe.createElement)(Ke.Button,{variant:"primary",type:"submit"},(0,Je._x)("Embed","button label"))),(0,qe.createElement)("div",{className:"components-placeholder__learn-more"},(0,qe.createElement)(Ke.ExternalLink,{href:(0,Je.__)("https://wordpress.org/documentation/article/embeds/")},(0,Je.__)("Learn more about embeds"))),r&&(0,qe.createElement)("div",{className:"components-placeholder__error"},(0,qe.createElement)("div",{className:"components-placeholder__instructions"},(0,Je.__)("Sorry, this content could not be embedded.")),(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:i},(0,Je._x)("Try again","button label"))," ",(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:l},(0,Je._x)("Convert to link","button label"))));const Ui={class:"className",frameborder:"frameBorder",marginheight:"marginHeight",marginwidth:"marginWidth"};function ji({html:e}){const t=(0,qe.useRef)(),n=(0,qe.useMemo)((()=>{const t=(new window.DOMParser).parseFromString(e,"text/html").querySelector("iframe"),n={};return t?(Array.from(t.attributes).forEach((({name:e,value:t})=>{"style"!==e&&(n[Ui[e]||e]=t)})),n):n}),[e]);return(0,qe.useEffect)((()=>{const{ownerDocument:e}=t.current,{defaultView:o}=e;function a({data:{secret:e,message:o,value:a}={}}){"height"===o&&e===n["data-secret"]&&(t.current.height=a)}return o.addEventListener("message",a),()=>{o.removeEventListener("message",a)}}),[]),(0,qe.createElement)("div",{className:"wp-block-embed__wrapper"},(0,qe.createElement)("iframe",{ref:(0,Tt.useMergeRefs)([t,(0,Tt.useFocusableIframe)()]),title:n.title,...n}))}class qi extends qe.Component{constructor(){super(...arguments),this.hideOverlay=this.hideOverlay.bind(this),this.state={interactive:!1}}static getDerivedStateFromProps(e,t){return!e.isSelected&&t.interactive?{interactive:!1}:null}hideOverlay(){this.setState({interactive:!0})}render(){const{preview:e,previewable:t,url:n,type:o,caption:a,onCaptionChange:r,isSelected:l,className:i,icon:s,label:c,insertBlocksAfter:u}=this.props,{scripts:m}=e,{interactive:p}=this.state,d="photo"===o?(e=>{const t=e.url||e.thumbnail_url,n=(0,qe.createElement)("p",null,(0,qe.createElement)("img",{src:t,alt:e.title,width:"100%"}));return(0,qe.renderToString)(n)})(e):e.html,g=new URL(n).host.split("."),h=g.splice(g.length-2,g.length-1).join("."),_=(0,Je.sprintf)((0,Je.__)("Embedded content from %s"),h),b=zt()(o,i,"wp-block-embed__wrapper"),f="wp-embed"===o?(0,qe.createElement)(ji,{html:d}):(0,qe.createElement)("div",{className:"wp-block-embed__wrapper"},(0,qe.createElement)(Ke.SandBox,{html:d,scripts:m,title:_,type:b,onFocus:this.hideOverlay}),!p&&(0,qe.createElement)("div",{className:"block-library-embed__interactive-overlay",onMouseUp:this.hideOverlay}));return(0,qe.createElement)("figure",{className:zt()(i,"wp-block-embed",{"is-type-video":"video"===o})},t?f:(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:s,showColors:!0}),label:c},(0,qe.createElement)("p",{className:"components-placeholder__error"},(0,qe.createElement)("a",{href:n},n)),(0,qe.createElement)("p",{className:"components-placeholder__error"},(0,Je.sprintf)((0,Je.__)("Embedded content from %s can't be previewed in the editor."),h))),(!Ye.RichText.isEmpty(a)||l)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),placeholder:(0,Je.__)("Add caption"),value:a,onChange:r,inlineToolbar:!0,__unstableOnSplitAtEnd:()=>u((0,je.createBlock)((0,je.getDefaultBlockName)()))}))}}var Wi=qi;var Zi=e=>{const{attributes:{providerNameSlug:t,previewable:n,responsive:o,url:a},attributes:r,isSelected:l,onReplace:i,setAttributes:s,insertBlocksAfter:c,onFocus:u}=e,m={title:(0,Je._x)("Embed","block title"),icon:xi},{icon:p,title:d}=(g=t,(0,je.getBlockVariations)(Ht)?.find((({name:e})=>e===g))||m);var g;const[h,_]=(0,qe.useState)(a),[b,f]=(0,qe.useState)(!1),{invalidateResolution:y}=(0,ut.useDispatch)(ct.store),{preview:v,fetching:k,themeSupportsResponsive:x,cannotEmbed:w}=(0,ut.useSelect)((e=>{const{getEmbedPreview:t,isPreviewEmbedFallback:n,isRequestingEmbedPreview:o,getThemeSupports:r}=e(ct.store);if(!a)return{fetching:!1,cannotEmbed:!1};const l=t(a),i=n(a),s=!!l&&!(!1===l?.html&&void 0===l?.type)&&!(404===l?.data?.status);return{preview:s?l:void 0,fetching:o(a),themeSupportsResponsive:r()["responsive-embeds"],cannotEmbed:!s||i}}),[a]),C=()=>((e,t,n,o)=>{const{allowResponsive:a,className:r}=e;return{...e,...Ft(t,n,r,o,a)}})(r,v,d,o);(0,qe.useEffect)((()=>{if(!v?.html||!w||k)return;const e=a.replace(/\/$/,"");_(e),f(!1),s({url:e})}),[v?.html,a,w,k]),(0,qe.useEffect)((()=>{if(v&&!b){const t=C();if(s(t),i){const n=At(e,t);n&&i(n)}}}),[v,b]);const E=(0,Ye.useBlockProps)();if(k)return(0,qe.createElement)(We.View,{...E},(0,qe.createElement)(Gi,null));const S=(0,Je.sprintf)((0,Je.__)("%s URL"),d);if(!v||w||b)return(0,qe.createElement)(We.View,{...E},(0,qe.createElement)(Oi,{icon:p,label:S,onFocus:u,onSubmit:e=>{e&&e.preventDefault();const t=Vt(r.className);f(!1),s({url:h,className:t})},value:h,cannotEmbed:w,onChange:e=>_(e.target.value),fallback:()=>function(e,t){const n=(0,qe.createElement)("a",{href:e},e);t((0,je.createBlock)("core/paragraph",{content:(0,qe.renderToString)(n)}))}(h,i),tryAgain:()=>{y("getEmbedPreview",[h])}}));const{caption:B,type:T,allowResponsive:N,className:P}=C(),I=it()(P,e.className);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ki,{showEditButton:v&&!w,themeSupportsResponsive:x,blockSupportsResponsive:o,allowResponsive:N,toggleResponsive:()=>{const{allowResponsive:e,className:t}=r,{html:n}=v,a=!e;s({allowResponsive:a,className:Dt(n,t,o&&a)})},switchBackToURLInput:()=>f(!0)}),(0,qe.createElement)(We.View,{...E},(0,qe.createElement)(Wi,{preview:v,previewable:n,className:I,url:h,type:T,caption:B,onCaptionChange:e=>s({caption:e}),isSelected:l,icon:p,label:S,insertBlocksAfter:c})))};const{name:Qi}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},Ki={from:[{type:"raw",isMatch:e=>"P"===e.nodeName&&/^\s*(https?:\/\/\S+)\s*$/i.test(e.textContent)&&1===e.textContent?.match(/https/gi)?.length,transform:e=>(0,je.createBlock)(Qi,{url:e.textContent.trim()})}],to:[{type:"block",blocks:["core/paragraph"],isMatch:({url:e})=>!!e,transform:({url:e,caption:t})=>{let n=`<a href="${e}">${e}</a>`;return t?.trim()&&(n+=`<br />${t}`),(0,je.createBlock)("core/paragraph",{content:n})}}]};var Ji=Ki;const Yi=[{name:"twitter",title:"Twitter",icon:Si,keywords:["tweet",(0,Je.__)("social")],description:(0,Je.__)("Embed a tweet."),patterns:[/^https?:\/\/(www\.)?twitter\.com\/.+/i],attributes:{providerNameSlug:"twitter",responsive:!0}},{name:"youtube",title:"YouTube",icon:Bi,keywords:[(0,Je.__)("music"),(0,Je.__)("video")],description:(0,Je.__)("Embed a YouTube video."),patterns:[/^https?:\/\/((m|www)\.)?youtube\.com\/.+/i,/^https?:\/\/youtu\.be\/.+/i],attributes:{providerNameSlug:"youtube",responsive:!0}},{name:"facebook",title:"Facebook",icon:Ti,keywords:[(0,Je.__)("social")],description:(0,Je.__)("Embed a Facebook post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"facebook",previewable:!1,responsive:!0}},{name:"instagram",title:"Instagram",icon:Ni,keywords:[(0,Je.__)("image"),(0,Je.__)("social")],description:(0,Je.__)("Embed an Instagram post."),scope:["block"],patterns:[],attributes:{providerNameSlug:"instagram",responsive:!0}},{name:"wordpress",title:"WordPress",icon:Pi,keywords:[(0,Je.__)("post"),(0,Je.__)("blog")],description:(0,Je.__)("Embed a WordPress post."),attributes:{providerNameSlug:"wordpress"}},{name:"soundcloud",title:"SoundCloud",icon:wi,keywords:[(0,Je.__)("music"),(0,Je.__)("audio")],description:(0,Je.__)("Embed SoundCloud content."),patterns:[/^https?:\/\/(www\.)?soundcloud\.com\/.+/i],attributes:{providerNameSlug:"soundcloud",responsive:!0}},{name:"spotify",title:"Spotify",icon:Ii,keywords:[(0,Je.__)("music"),(0,Je.__)("audio")],description:(0,Je.__)("Embed Spotify content."),patterns:[/^https?:\/\/(open|play)\.spotify\.com\/.+/i],attributes:{providerNameSlug:"spotify",responsive:!0}},{name:"flickr",title:"Flickr",icon:Mi,keywords:[(0,Je.__)("image")],description:(0,Je.__)("Embed Flickr content."),patterns:[/^https?:\/\/(www\.)?flickr\.com\/.+/i,/^https?:\/\/flic\.kr\/.+/i],attributes:{providerNameSlug:"flickr",responsive:!0}},{name:"vimeo",title:"Vimeo",icon:zi,keywords:[(0,Je.__)("video")],description:(0,Je.__)("Embed a Vimeo video."),patterns:[/^https?:\/\/(www\.)?vimeo\.com\/.+/i],attributes:{providerNameSlug:"vimeo",responsive:!0}},{name:"animoto",title:"Animoto",icon:Ai,description:(0,Je.__)("Embed an Animoto video."),patterns:[/^https?:\/\/(www\.)?(animoto|video214)\.com\/.+/i],attributes:{providerNameSlug:"animoto",responsive:!0}},{name:"cloudup",title:"Cloudup",icon:xi,description:(0,Je.__)("Embed Cloudup content."),patterns:[/^https?:\/\/cloudup\.com\/.+/i],attributes:{providerNameSlug:"cloudup",responsive:!0}},{name:"collegehumor",title:"CollegeHumor",icon:Ei,description:(0,Je.__)("Embed CollegeHumor content."),scope:["block"],patterns:[],attributes:{providerNameSlug:"collegehumor",responsive:!0}},{name:"crowdsignal",title:"Crowdsignal",icon:xi,keywords:["polldaddy",(0,Je.__)("survey")],description:(0,Je.__)("Embed Crowdsignal (formerly Polldaddy) content."),patterns:[/^https?:\/\/((.+\.)?polldaddy\.com|poll\.fm|.+\.crowdsignal\.net|.+\.survey\.fm)\/.+/i],attributes:{providerNameSlug:"crowdsignal",responsive:!0}},{name:"dailymotion",title:"Dailymotion",icon:Vi,keywords:[(0,Je.__)("video")],description:(0,Je.__)("Embed a Dailymotion video."),patterns:[/^https?:\/\/(www\.)?dailymotion\.com\/.+/i],attributes:{providerNameSlug:"dailymotion",responsive:!0}},{name:"imgur",title:"Imgur",icon:Ci,description:(0,Je.__)("Embed Imgur content."),patterns:[/^https?:\/\/(.+\.)?imgur\.com\/.+/i],attributes:{providerNameSlug:"imgur",responsive:!0}},{name:"issuu",title:"Issuu",icon:xi,description:(0,Je.__)("Embed Issuu content."),patterns:[/^https?:\/\/(www\.)?issuu\.com\/.+/i],attributes:{providerNameSlug:"issuu",responsive:!0}},{name:"kickstarter",title:"Kickstarter",icon:xi,description:(0,Je.__)("Embed Kickstarter content."),patterns:[/^https?:\/\/(www\.)?kickstarter\.com\/.+/i,/^https?:\/\/kck\.st\/.+/i],attributes:{providerNameSlug:"kickstarter",responsive:!0}},{name:"mixcloud",title:"Mixcloud",icon:wi,keywords:[(0,Je.__)("music"),(0,Je.__)("audio")],description:(0,Je.__)("Embed Mixcloud content."),patterns:[/^https?:\/\/(www\.)?mixcloud\.com\/.+/i],attributes:{providerNameSlug:"mixcloud",responsive:!0}},{name:"pocket-casts",title:"Pocket Casts",icon:$i,keywords:[(0,Je.__)("podcast"),(0,Je.__)("audio")],description:(0,Je.__)("Embed a podcast player from Pocket Casts."),patterns:[/^https:\/\/pca.st\/\w+/i],attributes:{providerNameSlug:"pocket-casts",responsive:!0}},{name:"reddit",title:"Reddit",icon:Ri,description:(0,Je.__)("Embed a Reddit thread."),patterns:[/^https?:\/\/(www\.)?reddit\.com\/.+/i],attributes:{providerNameSlug:"reddit",responsive:!0}},{name:"reverbnation",title:"ReverbNation",icon:wi,description:(0,Je.__)("Embed ReverbNation content."),patterns:[/^https?:\/\/(www\.)?reverbnation\.com\/.+/i],attributes:{providerNameSlug:"reverbnation",responsive:!0}},{name:"screencast",title:"Screencast",icon:Ei,description:(0,Je.__)("Embed Screencast content."),patterns:[/^https?:\/\/(www\.)?screencast\.com\/.+/i],attributes:{providerNameSlug:"screencast",responsive:!0}},{name:"scribd",title:"Scribd",icon:xi,description:(0,Je.__)("Embed Scribd content."),patterns:[/^https?:\/\/(www\.)?scribd\.com\/.+/i],attributes:{providerNameSlug:"scribd",responsive:!0}},{name:"slideshare",title:"Slideshare",icon:xi,description:(0,Je.__)("Embed Slideshare content."),patterns:[/^https?:\/\/(.+?\.)?slideshare\.net\/.+/i],attributes:{providerNameSlug:"slideshare",responsive:!0}},{name:"smugmug",title:"SmugMug",icon:Ci,description:(0,Je.__)("Embed SmugMug content."),patterns:[/^https?:\/\/(.+\.)?smugmug\.com\/.*/i],attributes:{providerNameSlug:"smugmug",previewable:!1,responsive:!0}},{name:"speaker-deck",title:"Speaker Deck",icon:xi,description:(0,Je.__)("Embed Speaker Deck content."),patterns:[/^https?:\/\/(www\.)?speakerdeck\.com\/.+/i],attributes:{providerNameSlug:"speaker-deck",responsive:!0}},{name:"tiktok",title:"TikTok",icon:Ei,keywords:[(0,Je.__)("video")],description:(0,Je.__)("Embed a TikTok video."),patterns:[/^https?:\/\/(www\.)?tiktok\.com\/.+/i],attributes:{providerNameSlug:"tiktok",responsive:!0}},{name:"ted",title:"TED",icon:Ei,description:(0,Je.__)("Embed a TED video."),patterns:[/^https?:\/\/(www\.|embed\.)?ted\.com\/.+/i],attributes:{providerNameSlug:"ted",responsive:!0}},{name:"tumblr",title:"Tumblr",icon:Hi,keywords:[(0,Je.__)("social")],description:(0,Je.__)("Embed a Tumblr post."),patterns:[/^https?:\/\/(.+)\.tumblr\.com\/.+/i],attributes:{providerNameSlug:"tumblr",responsive:!0}},{name:"videopress",title:"VideoPress",icon:Ei,keywords:[(0,Je.__)("video")],description:(0,Je.__)("Embed a VideoPress video."),patterns:[/^https?:\/\/videopress\.com\/.+/i],attributes:{providerNameSlug:"videopress",responsive:!0}},{name:"wordpress-tv",title:"WordPress.tv",icon:Ei,description:(0,Je.__)("Embed a WordPress.tv video."),patterns:[/^https?:\/\/wordpress\.tv\/.+/i],attributes:{providerNameSlug:"wordpress-tv",responsive:!0}},{name:"amazon-kindle",title:"Amazon Kindle",icon:Li,keywords:[(0,Je.__)("ebook")],description:(0,Je.__)("Embed Amazon Kindle content."),patterns:[/^https?:\/\/([a-z0-9-]+\.)?(amazon|amzn)(\.[a-z]{2,4})+\/.+/i,/^https?:\/\/(www\.)?(a\.co|z\.cn)\/.+/i],attributes:{providerNameSlug:"amazon-kindle"}},{name:"pinterest",title:"Pinterest",icon:Di,keywords:[(0,Je.__)("social"),(0,Je.__)("bookmark")],description:(0,Je.__)("Embed Pinterest pins, boards, and profiles."),patterns:[/^https?:\/\/([a-z]{2}|www)\.pinterest\.com(\.(au|mx))?\/.*/i],attributes:{providerNameSlug:"pinterest"}},{name:"wolfram-cloud",title:"Wolfram",icon:Fi,description:(0,Je.__)("Embed Wolfram notebook content."),patterns:[/^https?:\/\/(www\.)?wolframcloud\.com\/obj\/.+/i],attributes:{providerNameSlug:"wolfram-cloud",responsive:!0}}];Yi.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.providerNameSlug===t.providerNameSlug)}));var Xi=Yi;const{attributes:es}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},ts={attributes:es,save({attributes:e}){const{url:t,caption:n,type:o,providerNameSlug:a}=e;if(!t)return null;const r=it()("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${a}`]:a,[`wp-block-embed-${a}`]:a});return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n}))}},ns={attributes:es,save({attributes:{url:e,caption:t,type:n,providerNameSlug:o}}){if(!e)return null;const a=it()("wp-block-embed",{[`is-type-${n}`]:n,[`is-provider-${o}`]:o});return(0,qe.createElement)("figure",{className:a},`\n${e}\n`,!Ye.RichText.isEmpty(t)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:t}))}};var os=[ts,ns];const as={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/embed",title:"Embed",category:"embed",description:"Add a block that displays content pulled from other sites, like Twitter or YouTube.",textdomain:"default",attributes:{url:{type:"string",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},type:{type:"string",__experimentalRole:"content"},providerNameSlug:{type:"string",__experimentalRole:"content"},allowResponsive:{type:"boolean",default:!0},responsive:{type:"boolean",default:!1,__experimentalRole:"content"},previewable:{type:"boolean",default:!0,__experimentalRole:"content"}},supports:{align:!0,spacing:{margin:!0}},editorStyle:"wp-block-embed-editor",style:"wp-block-embed"},{name:rs}=as,ls={icon:xi,edit:Zi,save:function({attributes:e}){const{url:t,caption:n,type:o,providerNameSlug:a}=e;if(!t)return null;const r=zt()("wp-block-embed",{[`is-type-${o}`]:o,[`is-provider-${a}`]:a,[`wp-block-embed-${a}`]:a});return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)("div",{className:"wp-block-embed__wrapper"},`\n${t}\n`),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n}))},transforms:Ji,variations:Xi,deprecated:os},is=()=>Qe({name:rs,metadata:as,settings:ls});var ss=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));const cs={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileId:n,fileName:o,textLinkHref:a,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,u=Ye.RichText.isEmpty(o)?(0,Je.__)("PDF embed"):(0,Je.sprintf)((0,Je.__)("Embed of %s."),o),m=!Ye.RichText.isEmpty(o),p=m?n:void 0;return t&&(0,qe.createElement)("div",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})),m&&(0,qe.createElement)("a",{id:p,href:a,target:r,rel:r?"noreferrer noopener":void 0},(0,qe.createElement)(Ye.RichText.Content,{value:o})),l&&(0,qe.createElement)("a",{href:t,className:it()("wp-block-file__button",(0,Ye.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p},(0,qe.createElement)(Ye.RichText.Content,{value:i})))}},us={attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileId:n,fileName:o,textLinkHref:a,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,u=Ye.RichText.isEmpty(o)?(0,Je.__)("PDF embed"):(0,Je.sprintf)((0,Je.__)("Embed of %s."),o),m=!Ye.RichText.isEmpty(o),p=m?n:void 0;return t&&(0,qe.createElement)("div",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})),m&&(0,qe.createElement)("a",{id:p,href:a,target:r,rel:r?"noreferrer noopener":void 0},(0,qe.createElement)(Ye.RichText.Content,{value:o})),l&&(0,qe.createElement)("a",{href:t,className:"wp-block-file__button",download:!0,"aria-describedby":p},(0,qe.createElement)(Ye.RichText.Content,{value:i})))}},ms={attributes:{id:{type:"number"},href:{type:"string"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0},save({attributes:e}){const{href:t,fileName:n,textLinkHref:o,textLinkTarget:a,showDownloadButton:r,downloadButtonText:l,displayPreview:i,previewHeight:s}=e,c=Ye.RichText.isEmpty(n)?(0,Je.__)("PDF embed"):(0,Je.sprintf)((0,Je.__)("Embed of %s."),n);return t&&(0,qe.createElement)("div",{...Ye.useBlockProps.save()},i&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${s}px`},"aria-label":c})),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)("a",{href:o,target:a,rel:a?"noreferrer noopener":void 0},(0,qe.createElement)(Ye.RichText.Content,{value:n})),r&&(0,qe.createElement)("a",{href:t,className:"wp-block-file__button",download:!0},(0,qe.createElement)(Ye.RichText.Content,{value:l})))}};var ps=[cs,us,ms];function ds({hrefs:e,openInNewWindow:t,showDownloadButton:n,changeLinkDestinationOption:o,changeOpenInNewWindow:a,changeShowDownloadButton:r,displayPreview:l,changeDisplayPreview:i,previewHeight:s,changePreviewHeight:c}){const{href:u,textLinkHref:m,attachmentPage:p}=e;let d=[{value:u,label:(0,Je.__)("URL")}];return p&&(d=[{value:u,label:(0,Je.__)("Media file")},{value:p,label:(0,Je.__)("Attachment page")}]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,u.endsWith(".pdf")&&(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("PDF settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show inline embed"),help:l?(0,Je.__)("Note: Most phone and tablet browsers won't display embedded PDFs."):null,checked:!!l,onChange:i}),l&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Height in pixels"),min:_s,max:Math.max(bs,s),value:s,onChange:c})),(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to"),value:m,options:d,onChange:o}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),checked:t,onChange:a}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show download button"),checked:n,onChange:r}))))}const gs=()=>!(window.navigator.userAgent.indexOf("Mobi")>-1)&&(!(window.navigator.userAgent.indexOf("Android")>-1)&&(!(window.navigator.userAgent.indexOf("Macintosh")>-1&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2)&&!((window.ActiveXObject||"ActiveXObject"in window)&&!hs("AcroPDF.PDF")&&!hs("PDF.PdfCtrl")))),hs=e=>{let t;try{t=new window.ActiveXObject(e)}catch(e){t=void 0}return t},_s=200,bs=2e3;function fs({text:e,disabled:t}){const{createNotice:n}=(0,ut.useDispatch)(Bt.store),o=(0,Tt.useCopyToClipboard)(e,(()=>{n("info",(0,Je.__)("Copied URL to clipboard."),{isDismissible:!0,type:"snackbar"})}));return(0,qe.createElement)(Ke.ToolbarButton,{className:"components-clipboard-toolbar-button",ref:o,disabled:t},(0,Je.__)("Copy URL"))}var ys=function({attributes:e,isSelected:t,setAttributes:n,clientId:o}){const{id:a,fileId:r,fileName:l,href:i,textLinkHref:s,textLinkTarget:c,showDownloadButton:u,downloadButtonText:m,displayPreview:p,previewHeight:d}=e,{media:g,mediaUpload:h}=(0,ut.useSelect)((e=>({media:void 0===a?void 0:e(ct.store).getMedia(a),mediaUpload:e(Ye.store).getSettings().mediaUpload})),[a]),{createErrorNotice:_}=(0,ut.useDispatch)(Bt.store),{toggleSelection:b,__unstableMarkNextChangeAsNotPersistent:f}=(0,ut.useDispatch)(Ye.store);function y(e){if(e&&e.url){const t=e.url.endsWith(".pdf");n({href:e.url,fileName:e.title,textLinkHref:e.url,id:e.id,displayPreview:!!t||void 0,previewHeight:t?600:void 0})}}function v(e){n({href:void 0}),_(e,{type:"snackbar"})}function k(e){n({downloadButtonText:e.replace(/<\/?a[^>]*>/g,"")})}(0,qe.useEffect)((()=>{if((0,Et.isBlobURL)(i)){const e=(0,Et.getBlobByURL)(i);h({filesList:[e],onFileChange:([e])=>y(e),onError:v}),(0,Et.revokeBlobURL)(i)}void 0===m&&k((0,Je._x)("Download","button label"))}),[]),(0,qe.useEffect)((()=>{!r&&i&&(f(),n({fileId:`wp-block-file--media-${o}`}))}),[i,r,o]);const x=g&&g.link,w=(0,Ye.useBlockProps)({className:it()((0,Et.isBlobURL)(i)&&(0,Ke.__unstableGetAnimateClassName)({type:"loading"}),{"is-transient":(0,Et.isBlobURL)(i)})}),C=gs()&&p;return i?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(ds,{hrefs:{href:i,textLinkHref:s,attachmentPage:x},openInNewWindow:!!c,showDownloadButton:u,changeLinkDestinationOption:function(e){n({textLinkHref:e})},changeOpenInNewWindow:function(e){n({textLinkTarget:!!e&&"_blank"})},changeShowDownloadButton:function(e){n({showDownloadButton:e})},displayPreview:p,changeDisplayPreview:function(e){n({displayPreview:e})},previewHeight:d,changePreviewHeight:function(e){const t=Math.max(parseInt(e,10),_s);n({previewHeight:t})}}),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:a,mediaURL:i,accept:"*",onSelect:y,onError:v}),(0,qe.createElement)(fs,{text:i,disabled:(0,Et.isBlobURL)(i)})),(0,qe.createElement)("div",{...w},C&&(0,qe.createElement)(Ke.ResizableBox,{size:{height:d},minHeight:_s,maxHeight:bs,minWidth:"100%",grid:[10,10],enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:()=>b(!1),onResizeStop:function(e,t,o,a){b(!0);const r=parseInt(d+a.height,10);n({previewHeight:r})},showHandle:t},(0,qe.createElement)("object",{className:"wp-block-file__preview",data:i,type:"application/pdf","aria-label":(0,Je.__)("Embed of the selected PDF file.")}),!t&&(0,qe.createElement)("div",{className:"wp-block-file__preview-overlay"})),(0,qe.createElement)("div",{className:"wp-block-file__content-wrapper"},(0,qe.createElement)(Ye.RichText,{tagName:"a",value:l,placeholder:(0,Je.__)("Write file name…"),withoutInteractiveFormatting:!0,onChange:e=>n({fileName:e}),href:s}),u&&(0,qe.createElement)("div",{className:"wp-block-file__button-richtext-wrapper"},(0,qe.createElement)(Ye.RichText,{tagName:"div","aria-label":(0,Je.__)("Download button text"),className:it()("wp-block-file__button",(0,Ye.__experimentalGetElementClassName)("button")),value:m,withoutInteractiveFormatting:!0,placeholder:(0,Je.__)("Add text…"),onChange:e=>k(e)}))))):(0,qe.createElement)("div",{...w},(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:ss}),labels:{title:(0,Je.__)("File"),instructions:(0,Je.__)("Upload a file or pick one from your media library.")},onSelect:y,onError:v,accept:"*"}))};const vs={from:[{type:"files",isMatch(e){return e.length>0},priority:15,transform:e=>{const t=[];return e.forEach((e=>{const n=(0,Et.createBlobURL)(e);t.push((0,je.createBlock)("core/file",{href:n,fileName:e.name,textLinkHref:n}))})),t}},{type:"block",blocks:["core/audio"],transform:e=>(0,je.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],transform:e=>(0,je.createBlock)("core/file",{href:e.src,fileName:e.caption,textLinkHref:e.src,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],transform:e=>(0,je.createBlock)("core/file",{href:e.url,fileName:e.caption||(0,st.getFilename)(e.url),textLinkHref:e.url,id:e.id,anchor:e.anchor})}],to:[{type:"block",blocks:["core/audio"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,ut.select)(ct.store),n=t(e);return!!n&&n.mime_type.includes("audio")},transform:e=>(0,je.createBlock)("core/audio",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/video"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,ut.select)(ct.store),n=t(e);return!!n&&n.mime_type.includes("video")},transform:e=>(0,je.createBlock)("core/video",{src:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})},{type:"block",blocks:["core/image"],isMatch:({id:e})=>{if(!e)return!1;const{getMedia:t}=(0,ut.select)(ct.store),n=t(e);return!!n&&n.mime_type.includes("image")},transform:e=>(0,je.createBlock)("core/image",{url:e.href,caption:e.fileName,id:e.id,anchor:e.anchor})}]};var ks=vs;const xs={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/file",title:"File",category:"media",description:"Add a link to a downloadable file.",keywords:["document","pdf","download"],textdomain:"default",attributes:{id:{type:"number"},href:{type:"string"},fileId:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"id"},fileName:{type:"string",source:"html",selector:"a:not([download])"},textLinkHref:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"href"},textLinkTarget:{type:"string",source:"attribute",selector:"a:not([download])",attribute:"target"},showDownloadButton:{type:"boolean",default:!0},downloadButtonText:{type:"string",source:"html",selector:"a[download]"},displayPreview:{type:"boolean"},previewHeight:{type:"number",default:600}},supports:{anchor:!0,align:!0,color:{gradients:!0,link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}}},viewScript:"file:./view.min.js",editorStyle:"wp-block-file-editor",style:"wp-block-file"},{name:ws}=xs,Cs={icon:ss,example:{attributes:{href:"https://upload.wikimedia.org/wikipedia/commons/d/dd/Armstrong_Small_Step.ogg",fileName:(0,Je._x)("Armstrong_Small_Step","Name of the file")}},transforms:ks,deprecated:ps,edit:ys,save:function({attributes:e}){const{href:t,fileId:n,fileName:o,textLinkHref:a,textLinkTarget:r,showDownloadButton:l,downloadButtonText:i,displayPreview:s,previewHeight:c}=e,u=Ye.RichText.isEmpty(o)?"PDF embed":o,m=!Ye.RichText.isEmpty(o),p=m?n:void 0;return t&&(0,qe.createElement)("div",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("object",{className:"wp-block-file__embed",data:t,type:"application/pdf",style:{width:"100%",height:`${c}px`},"aria-label":u})),m&&(0,qe.createElement)("a",{id:p,href:a,target:r,rel:r?"noreferrer noopener":void 0},(0,qe.createElement)(Ye.RichText.Content,{value:o})),l&&(0,qe.createElement)("a",{href:t,className:it()("wp-block-file__button",(0,Ye.__experimentalGetElementClassName)("button")),download:!0,"aria-describedby":p},(0,qe.createElement)(Ye.RichText.Content,{value:i})))}},Es=()=>Qe({name:ws,metadata:xs,settings:Cs});var Ss=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M16.375 4.5H4.625a.125.125 0 0 0-.125.125v8.254l2.859-1.54a.75.75 0 0 1 .68-.016l2.384 1.142 2.89-2.074a.75.75 0 0 1 .874 0l2.313 1.66V4.625a.125.125 0 0 0-.125-.125Zm.125 9.398-2.75-1.975-2.813 2.02a.75.75 0 0 1-.76.067l-2.444-1.17L4.5 14.583v1.792c0 .069.056.125.125.125h11.75a.125.125 0 0 0 .125-.125v-2.477ZM4.625 3C3.728 3 3 3.728 3 4.625v11.75C3 17.273 3.728 18 4.625 18h11.75c.898 0 1.625-.727 1.625-1.625V4.625C18 3.728 17.273 3 16.375 3H4.625ZM20 8v11c0 .69-.31 1-.999 1H6v1.5h13.001c1.52 0 2.499-.982 2.499-2.5V8H20Z",fillRule:"evenodd",clipRule:"evenodd"}));const Bs="none",Ts="media",Ns="attachment",Ps="file",Is="post";const Ms=(e,t="large")=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link"].includes(e))));n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url||e?.source_url;const o=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return o&&(n.fullUrl=o),n};function zs(){return!qe.Platform.isNative||function(){if(!window.wp||"boolean"!=typeof window.wp.galleryBlockV2Enabled)throw"window.wp.galleryBlockV2Enabled is not defined";return window.wp.galleryBlockV2Enabled}()}const Rs="file",Hs="post";function Ls(e){return Math.min(3,e?.images?.length)}function As(e,t){switch(t){case Rs:return{href:e?.source_url||e?.url,linkDestination:Ts};case Hs:return{href:e?.link,linkDestination:Ns};case Ts:return{href:e?.source_url||e?.url,linkDestination:Ts};case Ns:return{href:e?.link,linkDestination:Ns};case Bs:return{href:void 0,linkDestination:Bs}}return{}}function Vs(e){let t=e.linkTo?e.linkTo:"none";"post"===t?t="attachment":"file"===t&&(t="media");const n=e.images.map((n=>function(e,t,n){return(0,je.createBlock)("core/image",{...e.id&&{id:parseInt(e.id)},url:e.url,alt:e.alt,caption:e.caption,sizeSlug:t,...As(e,n)})}(n,e.sizeSlug,t))),{images:o,ids:a,...r}=e;return[{...r,linkTo:t,allowResize:!1},n]}const Ds={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},save({attributes:e}){const{caption:t,columns:n,imageCrop:o}=e,a=it()("has-nested-images",{[`columns-${n}`]:void 0!==n,"columns-default":void 0===n,"is-cropped":o}),r=Ye.useBlockProps.save({className:a}),l=Ye.useInnerBlocksProps.save(r);return(0,qe.createElement)("figure",{...l},l.children,!Ye.RichText.isEmpty(t)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:t}))}},Fs={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"}},supports:{anchor:!0,align:!0},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,caption:a,linkTo:r}=e,l=`columns-${n} ${o?"is-cropped":""}`;return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:l})},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case Rs:t=e.fullUrl||e.url;break;case Hs:t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,!Ye.RichText.isEmpty(e.caption)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Ye.RichText.isEmpty(a)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))},migrate(e){return zs()?Vs(e):e}},$s={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},sizeSlug:{type:"string",default:"large"}},supports:{align:!0},isEligible({linkTo:e}){return!e||"attachment"===e||"media"===e},migrate(e){if(zs())return Vs(e);let t=e.linkTo;return e.linkTo?"attachment"===e.linkTo?t="post":"media"===e.linkTo&&(t="file"):t="none",{...e,linkTo:t}},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,caption:a,linkTo:r}=e;return(0,qe.createElement)("figure",{className:`columns-${n} ${o?"is-cropped":""}`},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,!Ye.RichText.isEmpty(e.caption)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Ye.RichText.isEmpty(a)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},Gs={attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},link:{source:"attribute",selector:"img",attribute:"data-link"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",default:[]},columns:{type:"number"},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},isEligible({ids:e}){return e&&e.some((e=>"string"==typeof e))},migrate(e){var t;return zs()?Vs(e):{...e,ids:(null!==(t=e.ids)&&void 0!==t?t:[]).map((e=>{const t=parseInt(e,10);return Number.isInteger(t)?t:null}))}},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,caption:a,linkTo:r}=e;return(0,qe.createElement)("figure",{className:`columns-${n} ${o?"is-cropped":""}`},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,!Ye.RichText.isEmpty(e.caption)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-item__caption",value:e.caption})))}))),!Ye.RichText.isEmpty(a)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:"blocks-gallery-caption",value:a}))}},Os={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},fullUrl:{source:"attribute",selector:"img",attribute:"data-full-url"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},ids:{type:"array",default:[]},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,linkTo:a}=e;return(0,qe.createElement)("ul",{className:`columns-${n} ${o?"is-cropped":""}`},t.map((e=>{let t;switch(a){case"media":t=e.fullUrl||e.url;break;case"attachment":t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:e.caption})))})))},migrate(e){return zs()?Vs(e):e}},Us={attributes:{images:{type:"array",default:[],source:"query",selector:"ul.wp-block-gallery .blocks-gallery-item",query:{url:{source:"attribute",selector:"img",attribute:"src"},alt:{source:"attribute",selector:"img",attribute:"alt",default:""},id:{source:"attribute",selector:"img",attribute:"data-id"},link:{source:"attribute",selector:"img",attribute:"data-link"},caption:{type:"string",source:"html",selector:"figcaption"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"}},isEligible({images:e,ids:t}){return e&&e.length>0&&(!t&&e||t&&e&&t.length!==e.length||e.some(((e,n)=>!e&&null!==t[n]||parseInt(e,10)!==t[n])))},migrate(e){var t;return zs()?Vs(e):{...e,ids:(null!==(t=e.images)&&void 0!==t?t:[]).map((({id:e})=>e?parseInt(e,10):null))}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,linkTo:a}=e;return(0,qe.createElement)("ul",{className:`columns-${n} ${o?"is-cropped":""}`},t.map((e=>{let t;switch(a){case"media":t=e.url;break;case"attachment":t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,e.caption&&e.caption.length>0&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:e.caption})))})))}},js={attributes:{images:{type:"array",default:[],source:"query",selector:"div.wp-block-gallery figure.blocks-gallery-image img",query:{url:{source:"attribute",attribute:"src"},alt:{source:"attribute",attribute:"alt",default:""},id:{source:"attribute",attribute:"data-id"}}},columns:{type:"number"},imageCrop:{type:"boolean",default:!0},linkTo:{type:"string",default:"none"},align:{type:"string",default:"none"}},supports:{align:!0},save({attributes:e}){const{images:t,columns:n=Ls(e),align:o,imageCrop:a,linkTo:r}=e,l=it()(`columns-${n}`,{alignnone:"none"===o,"is-cropped":a});return(0,qe.createElement)("div",{className:l},t.map((e=>{let t;switch(r){case"media":t=e.url;break;case"attachment":t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id});return(0,qe.createElement)("figure",{key:e.id||e.url,className:"blocks-gallery-image"},t?(0,qe.createElement)("a",{href:t},n):n)})))},migrate(e){return zs()?Vs(e):e}};var qs=[Ds,Fs,$s,Gs,Os,Us,js],Ws=window.wp.viewport;const Zs=(0,qe.createElement)(Ye.BlockIcon,{icon:Ss}),Qs=20,Ks="none",Js="media",Ys="attachment",Xs="custom",ec=["noreferrer","noopener"],tc=["image"];function nc(e,t,n){switch(n||t){case Ps:case Ts:return{href:e?.source_url||e?.url,linkDestination:Js};case Is:case Ns:return{href:e?.link,linkDestination:Ys};case Bs:return{href:void 0,linkDestination:Ks}}return{}}function oc(e,{rel:t}){const n=e?"_blank":void 0;let o;return o=n||t?function(e){let t=e;return void 0!==e&&t&&(ec.forEach((e=>{const n=new RegExp("\\b"+e+"\\b","gi");t=t.replace(n,"")})),t!==e&&(t=t.trim()),t||(t=void 0)),t}(t):void 0,{linkTarget:n,rel:o}}var ac=(0,qe.forwardRef)(((e,t)=>{const{attributes:n,isSelected:o,setAttributes:a,mediaPlaceholder:r,insertBlocksAfter:l,blockProps:i,__unstableLayoutClassNames:s,showCaption:c}=e,{align:u,columns:m,caption:p,imageCrop:d}=n;return(0,qe.createElement)("figure",{...i,className:it()(i.className,s,"blocks-gallery-grid",{[`align${u}`]:u,[`columns-${m}`]:void 0!==m,"columns-default":void 0===m,"is-cropped":d})},i.children,o&&!i.children&&(0,qe.createElement)(We.View,{className:"blocks-gallery-media-placeholder-wrapper"},r),c&&(!Ye.RichText.isEmpty(p)||o)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption","aria-label":(0,Je.__)("Gallery caption text"),placeholder:(0,Je.__)("Write gallery caption…"),value:p,className:it()("blocks-gallery-caption",(0,Ye.__experimentalGetElementClassName)("caption")),ref:t,tagName:"figcaption",onChange:e=>a({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>l((0,je.createBlock)((0,je.getDefaultBlockName)()))}))}));function rc(e,t,n){return(0,qe.useMemo)((()=>function(){if(!e||0===e.length)return;const{imageSizes:o}=n();let a={};t&&(a=e.reduce(((e,t)=>{if(!t.id)return e;const n=o.reduce(((e,n)=>{const o=t.sizes?.[n.slug]?.url,a=t.media_details?.sizes?.[n.slug]?.source_url;return{...e,[n.slug]:o||a}}),{});return{...e,[parseInt(t.id,10)]:n}}),{}));const r=Object.values(a);return o.filter((({slug:e})=>r.some((t=>t[e])))).map((({name:e,slug:t})=>({value:t,label:e})))}()),[e,t])}function lc(e,t){const[n,o]=(0,qe.useState)([]);return(0,qe.useMemo)((()=>function(){let a=!1;const r=n.filter((t=>e.find((e=>t.clientId===e.clientId))));r.length<n.length&&(a=!0);e.forEach((e=>{e.fromSavedContent&&!r.find((t=>t.id===e.id))&&(a=!0,r.push(e))}));const l=e.filter((e=>!r.find((t=>e.clientId&&t.clientId===e.clientId))&&t?.find((t=>t.id===e.id))&&!e.fromSavedConent));(a||l?.length>0)&&o([...r,...l]);return l.length>0?l:null}()),[e,t])}const ic=[];function sc({blockGap:e,clientId:t}){const n=(0,qe.useContext)(Ye.BlockList.__unstableElementContext),o="var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )";let a,r=o,l=o;e&&(a="string"==typeof e?(0,Ye.__experimentalGetGapCSSValue)(e):(0,Ye.__experimentalGetGapCSSValue)(e?.top)||o,l="string"==typeof e?(0,Ye.__experimentalGetGapCSSValue)(e):(0,Ye.__experimentalGetGapCSSValue)(e?.left)||o,r=a===l?a:`${a} ${l}`);const i=`#block-${t} {\n\t\t--wp--style--unstable-gallery-gap: ${"0"===l?"0px":l};\n\t\tgap: ${r}\n\t}`;return i&&n?(0,qe.createPortal)((0,qe.createElement)((()=>(0,qe.createElement)("style",null,i)),null),n):null}const cc=[{value:Ns,label:(0,Je.__)("Attachment Page")},{value:Ts,label:(0,Je.__)("Media File")},{value:Bs,label:(0,Je._x)("None","Media item link option")}],uc=["image"],mc=["core/image"],pc=qe.Platform.isNative?(0,Je.__)("ADD MEDIA"):(0,Je.__)("Drag images, upload new ones or select files from your library."),dc=qe.Platform.isNative?{type:"stepper"}:{};var gc=(0,Tt.compose)([(0,Ws.withViewportMatch)({isNarrow:"< small"})])((function(e){const{setAttributes:t,attributes:n,className:o,clientId:a,isSelected:r,insertBlocksAfter:l,isContentLocked:i}=e,{columns:s,imageCrop:c,linkTarget:u,linkTo:m,sizeSlug:p,caption:d}=n,[g,h]=(0,qe.useState)(!!d),_=(0,Tt.usePrevious)(d);(0,qe.useEffect)((()=>{d&&!_&&h(!0)}),[d,_]),(0,qe.useEffect)((()=>{r||d||h(!1)}),[r,d]);const b=(0,qe.useCallback)((e=>{e&&!d&&e.focus()}),[d]),{__unstableMarkNextChangeAsNotPersistent:f,replaceInnerBlocks:y,updateBlockAttributes:v,selectBlock:k}=(0,ut.useDispatch)(Ye.store),{createSuccessNotice:x,createErrorNotice:w}=(0,ut.useDispatch)(Bt.store),{getBlock:C,getSettings:E,preferredStyle:S}=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings().__experimentalPreferredStyleVariations;return{getBlock:e(Ye.store).getBlock,getSettings:e(Ye.store).getSettings,preferredStyle:t?.value?.["core/image"]}}),[]),B=(0,ut.useSelect)((e=>{var t;return null!==(t=e(Ye.store).getBlock(a)?.innerBlocks)&&void 0!==t?t:[]}),[a]),T=(0,ut.useSelect)((e=>e(Ye.store).wasBlockJustInserted(a,"inserter_menu")),[a]),N=(0,qe.useMemo)((()=>B?.map((e=>({clientId:e.clientId,id:e.attributes.id,url:e.attributes.url,attributes:e.attributes,fromSavedContent:Boolean(e.originalContent)})))),[B]),P=function(e){return(0,ut.useSelect)((t=>{var n;const o=e.map((e=>e.attributes.id)).filter((e=>void 0!==e));return 0===o.length?ic:null!==(n=t(ct.store).getMediaItems({include:o.join(","),per_page:-1,orderby:"include"}))&&void 0!==n?n:ic}),[e])}(B),I=lc(N,P);(0,qe.useEffect)((()=>{I?.forEach((e=>{f(),v(e.clientId,{...z(e.attributes),id:e.id,align:void 0})}))}),[I]);const M=rc(P,r,E);function z(e){const t=e.id?P.find((({id:t})=>t===e.id)):null;let o,a;return o=e.className&&""!==e.className?e.className:S?`is-style-${S}`:void 0,a=e.linkTarget||e.rel?{linkTarget:e.linkTarget,rel:e.rel}:oc(u,n),{...Ms(t,p),...nc(t,m,e?.linkDestination),...a,className:o,sizeSlug:p,caption:e.caption||t.caption?.raw,alt:e.alt||t.alt_text}}function R(e){const t=qe.Platform.isNative&&e.id?P.find((({id:t})=>t===e.id)):null,n=t?t?.media_type:e.type;return uc.some((e=>0===n?.indexOf(e)))||0===e.url?.indexOf("blob:")}function H(e){const t="[object FileList]"===Object.prototype.toString.call(e),n=t?Array.from(e).map((e=>e.url?e:Ms({url:(0,Et.createBlobURL)(e)}))):e;n.every(R)||w((0,Je.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-upload-invalid-file",type:"snackbar"});const o=n.filter((e=>e.url||R(e))).map((e=>e.url?e:Ms({url:(0,Et.createBlobURL)(e)}))),r=o.reduce(((e,t,n)=>(e[t.id]=n,e)),{}),l=t?B:B.filter((e=>o.find((t=>t.id===e.attributes.id)))),i=o.filter((e=>!l.find((t=>e.id===t.attributes.id)))).map((e=>(0,je.createBlock)("core/image",{id:e.id,url:e.url,caption:e.caption,alt:e.alt})));y(a,l.concat(i).sort(((e,t)=>r[e.attributes.id]-r[t.attributes.id]))),i?.length>0&&k(i[0].clientId)}(0,qe.useEffect)((()=>{m||(f(),t({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||Bs}))}),[m]);const L=!!N.length,A=L&&N.some((e=>!!e.id)),V=N.some((e=>qe.Platform.isNative?0===e.url?.indexOf("file:"):!e.id&&0===e.url?.indexOf("blob:"))),D=qe.Platform.select({web:{addToGallery:!1,disableMediaButtons:V,value:{}},native:{addToGallery:A,isAppender:L,disableMediaButtons:L&&!r||V,value:A?N:{},autoOpenMediaUpload:!L&&r&&T}}),F=(0,qe.createElement)(Ye.MediaPlaceholder,{handleUpload:!1,icon:Zs,labels:{title:(0,Je.__)("Gallery"),instructions:pc},onSelect:H,accept:"image/*",allowedTypes:uc,multiple:!0,onError:function(e){w(e,{type:"snackbar"})},...D}),$=(0,Ye.useBlockProps)({className:it()(o,"has-nested-images")}),G=qe.Platform.isNative&&{marginHorizontal:0,marginVertical:0},O=(0,Ye.useInnerBlocksProps)($,{allowedBlocks:mc,orientation:"horizontal",renderAppender:!1,...G});if(!L)return(0,qe.createElement)(We.View,{...O},O.children,F);const U=m&&"none"!==m;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},N.length>1&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:s||(j=N.length,j?Math.min(3,j):3),onChange:function(e){t({columns:e})},min:1,max:Math.min(8,N.length),...dc,required:!0,size:"__unstable-large"}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Crop images"),checked:!!c,onChange:function(){t({imageCrop:!c})},help:function(e){return e?(0,Je.__)("Thumbnails are cropped to align."):(0,Je.__)("Thumbnails are not cropped.")}}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to"),value:m,onChange:function(e){t({linkTo:e});const n={},o=[];C(a).innerBlocks.forEach((t=>{o.push(t.clientId);const a=t.attributes.id?P.find((({id:e})=>e===t.attributes.id)):null;n[t.clientId]=nc(a,e)})),v(o,n,!0);const r=[...cc].find((t=>t.value===e));x((0,Je.sprintf)((0,Je.__)("All gallery image links updated to: %s"),r.label),{id:"gallery-attributes-linkTo",type:"snackbar"})},options:cc,hideCancelButton:!0,size:"__unstable-large"}),U&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),checked:"_blank"===u,onChange:function(e){const n=e?"_blank":void 0;t({linkTarget:n});const o={},r=[];C(a).innerBlocks.forEach((e=>{r.push(e.clientId),o[e.clientId]=oc(n,e.attributes)})),v(r,o,!0);const l=e?(0,Je.__)("All gallery images updated to open in new tab"):(0,Je.__)("All gallery images updated to not open in new tab");x(l,{id:"gallery-attributes-openInNewTab",type:"snackbar"})}}),M?.length>0&&(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Resolution"),help:(0,Je.__)("Select the size of the source images."),value:p,options:M,onChange:function(e){t({sizeSlug:e});const n={},o=[];C(a).innerBlocks.forEach((t=>{o.push(t.clientId);const a=t.attributes.id?P.find((({id:e})=>e===t.attributes.id)):null;n[t.clientId]=function(e,t){const n=e?.media_details?.sizes?.[t]?.source_url;return n?{url:n,width:void 0,height:void 0,sizeSlug:t}:{}}(a,e)})),v(o,n,!0);const r=M.find((t=>t.value===e));x((0,Je.sprintf)((0,Je.__)("All gallery image sizes updated to: %s"),r.label),{id:"gallery-attributes-sizeSlug",type:"snackbar"})},hideCancelButton:!0,size:"__unstable-large"}),qe.Platform.isWeb&&!M&&A&&(0,qe.createElement)(Ke.BaseControl,{className:"gallery-image-sizes"},(0,qe.createElement)(Ke.BaseControl.VisualLabel,null,(0,Je.__)("Resolution")),(0,qe.createElement)(We.View,{className:"gallery-image-sizes__loading"},(0,qe.createElement)(Ke.Spinner,null),(0,Je.__)("Loading options…"))))),(0,qe.createElement)(Ye.BlockControls,{group:"block"},!i&&(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{h(!g),g&&d&&t({caption:void 0})},icon:St,isPressed:g,label:g?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{allowedTypes:uc,accept:"image/*",handleUpload:!1,onSelect:H,name:(0,Je.__)("Add"),multiple:!0,mediaIds:N.filter((e=>e.id)).map((e=>e.id)),addToGallery:A})),qe.Platform.isWeb&&(0,qe.createElement)(sc,{blockGap:n.style?.spacing?.blockGap,clientId:a}),(0,qe.createElement)(ac,{...e,showCaption:g,ref:qe.Platform.isWeb?b:void 0,images:N,mediaPlaceholder:!L||qe.Platform.isNative?F:void 0,blockProps:O,insertBlocksAfter:l}));var j}));const hc=(e,t="large")=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link","caption"].includes(e))));n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e?.url;const o=e?.sizes?.full?.url||e?.media_details?.sizes?.full?.source_url;return o&&(n.fullUrl=o),n};var _c=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.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-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"}));var bc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var fc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var yc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));const vc="none",kc="file",xc="post";class wc extends qe.Component{constructor(){super(...arguments),this.onSelectImage=this.onSelectImage.bind(this),this.onRemoveImage=this.onRemoveImage.bind(this),this.bindContainer=this.bindContainer.bind(this),this.onEdit=this.onEdit.bind(this),this.onSelectImageFromLibrary=this.onSelectImageFromLibrary.bind(this),this.onSelectCustomURL=this.onSelectCustomURL.bind(this),this.state={isEditing:!1}}bindContainer(e){this.container=e}onSelectImage(){this.props.isSelected||this.props.onSelect()}onRemoveImage(e){this.container===this.container.ownerDocument.activeElement&&this.props.isSelected&&-1!==[un.BACKSPACE,un.DELETE].indexOf(e.keyCode)&&(e.preventDefault(),this.props.onRemove())}onEdit(){this.setState({isEditing:!0})}componentDidUpdate(){const{image:e,url:t,__unstableMarkNextChangeAsNotPersistent:n}=this.props;e&&!t&&(n(),this.props.setAttributes({url:e.source_url,alt:e.alt_text}))}deselectOnBlur(){this.props.onDeselect()}onSelectImageFromLibrary(e){const{setAttributes:t,id:n,url:o,alt:a,caption:r,sizeSlug:l}=this.props;if(!e||!e.url)return;let i=hc(e,l);if(((e,t)=>!e&&(0,Et.isBlobURL)(t))(n,o)&&a){const{alt:e,...t}=i;i=t}if(r&&!i.caption){const{caption:e,...t}=i;i=t}t(i),this.setState({isEditing:!1})}onSelectCustomURL(e){const{setAttributes:t,url:n}=this.props;e!==n&&(t({url:e,id:void 0}),this.setState({isEditing:!1}))}render(){const{url:e,alt:t,id:n,linkTo:o,link:a,isFirstItem:r,isLastItem:l,isSelected:i,caption:s,onRemove:c,onMoveForward:u,onMoveBackward:m,setAttributes:p,"aria-label":d}=this.props,{isEditing:g}=this.state;let h;switch(o){case kc:h=e;break;case xc:h=a}const _=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("img",{src:e,alt:t,"data-id":n,onKeyDown:this.onRemoveImage,tabIndex:"0","aria-label":d,ref:this.bindContainer}),(0,Et.isBlobURL)(e)&&(0,qe.createElement)(Ke.Spinner,null)),b=it()({"is-selected":i,"is-transient":(0,Et.isBlobURL)(e)});return(0,qe.createElement)("figure",{className:b,onClick:this.onSelectImage,onFocus:this.onSelectImage},!g&&(h?(0,qe.createElement)("a",{href:h},_):_),g&&(0,qe.createElement)(Ye.MediaPlaceholder,{labels:{title:(0,Je.__)("Edit gallery image")},icon:_c,onSelect:this.onSelectImageFromLibrary,onSelectURL:this.onSelectCustomURL,accept:"image/*",allowedTypes:["image"],value:{id:n,src:e}}),(0,qe.createElement)(Ke.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-left"},(0,qe.createElement)(Ke.Button,{icon:bc,onClick:r?void 0:m,label:(0,Je.__)("Move image backward"),"aria-disabled":r,disabled:!i}),(0,qe.createElement)(Ke.Button,{icon:fc,onClick:l?void 0:u,label:(0,Je.__)("Move image forward"),"aria-disabled":l,disabled:!i})),(0,qe.createElement)(Ke.ButtonGroup,{className:"block-library-gallery-item__inline-menu is-right"},(0,qe.createElement)(Ke.Button,{icon:yi,onClick:this.onEdit,label:(0,Je.__)("Replace image"),disabled:!i}),(0,qe.createElement)(Ke.Button,{icon:yc,onClick:c,label:(0,Je.__)("Remove image"),disabled:!i})),!g&&(i||s)&&(0,qe.createElement)(Ye.RichText,{tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),"aria-label":(0,Je.__)("Image caption text"),placeholder:i?(0,Je.__)("Add caption"):null,value:s,onChange:e=>p({caption:e}),inlineToolbar:!0}))}}var Cc=(0,Tt.compose)([(0,ut.withSelect)(((e,t)=>{const{getMedia:n}=e(ct.store),{id:o}=t;return{image:o?n(parseInt(o,10)):null}})),(0,ut.withDispatch)((e=>{const{__unstableMarkNextChangeAsNotPersistent:t}=e(Ye.store);return{__unstableMarkNextChangeAsNotPersistent:t}}))])(wc);function Ec({isHidden:e,...t}){return e?(0,qe.createElement)(Ke.VisuallyHidden,{as:Ye.RichText,...t}):(0,qe.createElement)(Ye.RichText,{...t})}var Sc=e=>{const{attributes:t,isSelected:n,setAttributes:o,selectedImage:a,mediaPlaceholder:r,onMoveBackward:l,onMoveForward:i,onRemoveImage:s,onSelectImage:c,onDeselectImage:u,onSetImageAttributes:m,insertBlocksAfter:p,blockProps:d}=e,{align:g,columns:h=Ls(t),caption:_,imageCrop:b,images:f}=t;return(0,qe.createElement)("figure",{...d,className:it()(d.className,{[`align${g}`]:g,[`columns-${h}`]:h,"is-cropped":b})},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},f.map(((e,o)=>{const r=(0,Je.sprintf)((0,Je.__)("image %1$d of %2$d in gallery"),o+1,f.length);return(0,qe.createElement)("li",{className:"blocks-gallery-item",key:e.id?`${e.id}-${o}`:e.url},(0,qe.createElement)(Cc,{url:e.url,alt:e.alt,id:e.id,isFirstItem:0===o,isLastItem:o+1===f.length,isSelected:n&&a===o,onMoveBackward:l(o),onMoveForward:i(o),onRemove:s(o),onSelect:c(o),onDeselect:u(o),setAttributes:e=>m(o,e),caption:e.caption,"aria-label":r,sizeSlug:t.sizeSlug}))}))),r,(0,qe.createElement)(Ec,{isHidden:!n&&Ye.RichText.isEmpty(_),tagName:"figcaption",className:it()("blocks-gallery-caption",(0,Ye.__experimentalGetElementClassName)("caption")),"aria-label":(0,Je.__)("Gallery caption text"),placeholder:(0,Je.__)("Write gallery caption…"),value:_,onChange:e=>o({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>p((0,je.createBlock)((0,je.getDefaultBlockName)()))}))};const Bc=[{value:xc,label:(0,Je.__)("Attachment Page")},{value:kc,label:(0,Je.__)("Media File")},{value:vc,label:(0,Je.__)("None")}],Tc=["image"],Nc=qe.Platform.select({web:(0,Je.__)("Drag images, upload new ones or select files from your library."),native:(0,Je.__)("ADD MEDIA")}),Pc=qe.Platform.select({web:{},native:{type:"stepper"}});var Ic=(0,Tt.compose)([Ke.withNotices,(0,Ws.withViewportMatch)({isNarrow:"< small"})])((function(e){const{attributes:t,clientId:n,isSelected:o,noticeUI:a,noticeOperations:r,onFocus:l}=e,{columns:i=Ls(t),imageCrop:s,images:c,linkTo:u,sizeSlug:m}=t,[p,d]=(0,qe.useState)(),[g,h]=(0,qe.useState)(),{__unstableMarkNextChangeAsNotPersistent:_}=(0,ut.useDispatch)(Ye.store),{imageSizes:b,mediaUpload:f,getMedia:y,wasBlockJustInserted:v}=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings();return{imageSizes:t.imageSizes,mediaUpload:t.mediaUpload,getMedia:e(ct.store).getMedia,wasBlockJustInserted:e(Ye.store).wasBlockJustInserted(n,"inserter_menu")}})),k=(0,qe.useMemo)((()=>{var e;return o?(null!==(e=t.ids)&&void 0!==e?e:[]).reduce(((e,t)=>{if(!t)return e;const n=y(t),o=b.reduce(((e,t)=>{const o=n?.sizes?.[t.slug]?.url,a=n?.media_details?.sizes?.[t.slug]?.source_url;return{...e,[t.slug]:o||a}}),{});return{...e,[parseInt(t,10)]:o}}),{}):{}}),[o,t.ids,b]);function x(t){if(t.ids)throw new Error('The "ids" attribute should not be changed directly. It is managed automatically when "images" attribute changes');t.images&&(t={...t,ids:t.images.map((({id:e})=>parseInt(e,10)))}),e.setAttributes(t)}function w(e,t){const n=[...c];n.splice(t,1,c[e]),n.splice(e,1,c[t]),d(t),x({images:n})}function C(e){const t=e.id.toString(),n=c.find((({id:e})=>e===t)),o=n?n.caption:e.caption;if(!g)return o;const a=g.find((({id:e})=>e===t));return a&&a.caption!==e.caption?e.caption:o}function E(e){h(e.map((e=>({id:e.id.toString(),caption:e.caption})))),x({images:e.map((e=>({...hc(e,m),caption:C(e),id:e.id.toString()}))),columns:t.columns?Math.min(e.length,t.columns):t.columns})}(0,qe.useEffect)((()=>{if("web"===qe.Platform.OS&&c&&c.length>0&&c.every((({url:e})=>(0,Et.isBlobURL)(e)))){const e=c.map((({url:e})=>(0,Et.getBlobByURL)(e)));c.forEach((({url:e})=>(0,Et.revokeBlobURL)(e))),f({filesList:e,onFileChange:E,allowedTypes:["image"]})}}),[]),(0,qe.useEffect)((()=>{o||d()}),[o]),(0,qe.useEffect)((()=>{u||(_(),x({linkTo:window?.wp?.media?.view?.settings?.defaultProps?.link||vc}))}),[u]);const S=!!c.length,B=S&&c.some((e=>!!e.id)),T=(0,qe.createElement)(Ye.MediaPlaceholder,{addToGallery:B,isAppender:S,disableMediaButtons:S&&!o,icon:!S&&Zs,labels:{title:!S&&(0,Je.__)("Gallery"),instructions:!S&&Nc},onSelect:E,accept:"image/*",allowedTypes:Tc,multiple:!0,value:B?c:{},onError:function(e){r.removeAllNotices(),r.createErrorNotice(e)},notices:S?void 0:a,onFocus:l,autoOpenMediaUpload:!S&&o&&v}),N=(0,Ye.useBlockProps)();if(!S)return(0,qe.createElement)(We.View,{...N},T);const P=function(){const e=Object.values(k);return b.filter((({slug:t})=>e.some((e=>e[t])))).map((({name:e,slug:t})=>({value:t,label:e})))}(),I=S&&P.length>0;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},c.length>1&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:i,onChange:function(e){x({columns:e})},min:1,max:Math.min(8,c.length),...Pc,required:!0}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Crop images"),checked:!!s,onChange:function(){x({imageCrop:!s})},help:function(e){return e?(0,Je.__)("Thumbnails are cropped to align."):(0,Je.__)("Thumbnails are not cropped.")}}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to"),value:u,onChange:function(e){x({linkTo:e})},options:Bc,hideCancelButton:!0}),I&&(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image size"),value:m,options:P,onChange:function(e){x({images:(null!=c?c:[]).map((t=>{if(!t.id)return t;const n=k[parseInt(t.id,10)]?.[e];return{...t,...n&&{url:n}}})),sizeSlug:e})},hideCancelButton:!0}))),a,(0,qe.createElement)(Sc,{...e,selectedImage:p,mediaPlaceholder:T,onMoveBackward:function(e){return()=>{0!==e&&w(e,e-1)}},onMoveForward:function(e){return()=>{e!==c.length-1&&w(e,e+1)}},onRemoveImage:function(e){return()=>{const n=c.filter(((t,n)=>e!==n));d(),x({images:n,columns:t.columns?Math.min(n.length,t.columns):t.columns})}},onSelectImage:function(e){return()=>{d(e)}},onDeselectImage:function(){return()=>{d()}},onSetImageAttributes:function(e,t){c[e]&&x({images:[...c.slice(0,e),{...c[e],...t},...c.slice(e+1)]})},blockProps:N,onFocusGalleryCaption:function(){d()}}))}));var Mc=(0,Tt.compose)([Ke.withNotices])((function(e){return zs()?(0,qe.createElement)(gc,{...e}):(0,qe.createElement)(Ic,{...e})}));const zc=e=>e?e.split(",").map((e=>parseInt(e,10))):[];(0,Zl.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-to",(function(e){if(zs()&&"core/gallery"===e.name&&e.attributes?.images.length>0){const t=e.attributes.images.map((({url:t,id:n,alt:o})=>(0,je.createBlock)("core/image",{url:t,id:n?parseInt(n,10):null,alt:o,sizeSlug:e.attributes.sizeSlug,linkDestination:e.attributes.linkDestination})));delete e.attributes.ids,delete e.attributes.images,e.innerBlocks=t}return e})),(0,Zl.addFilter)("blocks.switchToBlockType.transformedBlock","core/gallery/update-third-party-transform-from",(function(e,t){const n=(Array.isArray(t)?t:[t]).find((t=>"core/gallery"===t.name&&t.innerBlocks.length>0&&!t.attributes.images?.length>0&&!e.name.includes("core/")));if(n){const e=n.innerBlocks.map((({attributes:{url:e,id:t,alt:n}})=>({url:e,id:t?parseInt(t,10):null,alt:n}))),t=e.map((({id:e})=>e));n.attributes.images=e,n.attributes.ids=t}return e}));const Rc={from:[{type:"block",isMultiBlock:!0,blocks:["core/image"],transform:e=>{let{align:t,sizeSlug:n}=e[0];t=e.every((e=>e.align===t))?t:void 0,n=e.every((e=>e.sizeSlug===n))?n:void 0;const o=e.filter((({url:e})=>e));if(zs()){const e=o.map((e=>(e.width=void 0,e.height=void 0,(0,je.createBlock)("core/image",e))));return(0,je.createBlock)("core/gallery",{align:t,sizeSlug:n},e)}return(0,je.createBlock)("core/gallery",{images:o.map((({id:e,url:t,alt:n,caption:o})=>({id:e.toString(),url:t,alt:n,caption:o}))),ids:o.map((({id:e})=>parseInt(e,10))),align:t,sizeSlug:n})}},{type:"shortcode",tag:"gallery",attributes:{images:{type:"array",shortcode:({named:{ids:e}})=>{if(!zs())return zc(e).map((e=>({id:e.toString()})))}},ids:{type:"array",shortcode:({named:{ids:e}})=>{if(!zs())return zc(e)}},columns:{type:"number",shortcode:({named:{columns:e="3"}})=>parseInt(e,10)},linkTo:{type:"string",shortcode:({named:{link:e}})=>{if(!zs())switch(e){case"post":default:return xc;case"file":return kc}switch(e){case"post":return Ns;case"file":return Ts;default:return Bs}}}},transform({named:{ids:e,columns:t=3,link:n}}){const o=zc(e).map((e=>parseInt(e,10)));let a=Bs;"post"===n?a=Ns:"file"===n&&(a=Ts);return(0,je.createBlock)("core/gallery",{columns:parseInt(t,10),linkTo:a},o.map((e=>(0,je.createBlock)("core/image",{id:e}))))},isMatch({named:e}){return void 0!==e.ids}},{type:"files",priority:1,isMatch(e){return 1!==e.length&&e.every((e=>0===e.type.indexOf("image/")))},transform(e){if(zs()){const t=e.map((e=>(0,je.createBlock)("core/image",{url:(0,Et.createBlobURL)(e)})));return(0,je.createBlock)("core/gallery",{},t)}const t=(0,je.createBlock)("core/gallery",{images:e.map((e=>Ms({url:(0,Et.createBlobURL)(e)})))});return t}}],to:[{type:"block",blocks:["core/image"],transform:({align:e,images:t,ids:n,sizeSlug:o},a)=>zs()?a.length>0?a.map((({attributes:{url:t,alt:n,caption:o,title:a,href:r,rel:l,linkClass:i,id:s,sizeSlug:c,linkDestination:u,linkTarget:m,anchor:p,className:d}})=>(0,je.createBlock)("core/image",{align:e,url:t,alt:n,caption:o,title:a,href:r,rel:l,linkClass:i,id:s,sizeSlug:c,linkDestination:u,linkTarget:m,anchor:p,className:d}))):(0,je.createBlock)("core/image",{align:e}):t.length>0?t.map((({url:t,alt:a,caption:r},l)=>(0,je.createBlock)("core/image",{id:n[l],url:t,alt:a,caption:r,align:e,sizeSlug:o}))):(0,je.createBlock)("core/image",{align:e})}]};var Hc=Rc;const Lc={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/gallery",title:"Gallery",category:"media",description:"Display multiple images in a rich gallery.",keywords:["images","photos"],textdomain:"default",attributes:{images:{type:"array",default:[],source:"query",selector:".blocks-gallery-item",query:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},fullUrl:{type:"string",source:"attribute",selector:"img",attribute:"data-full-url"},link:{type:"string",source:"attribute",selector:"img",attribute:"data-link"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},id:{type:"string",source:"attribute",selector:"img",attribute:"data-id"},caption:{type:"string",source:"html",selector:".blocks-gallery-item__caption"}}},ids:{type:"array",items:{type:"number"},default:[]},shortCodeTransforms:{type:"array",default:[],items:{type:"object"}},columns:{type:"number",minimum:1,maximum:8},caption:{type:"string",source:"html",selector:".blocks-gallery-caption"},imageCrop:{type:"boolean",default:!0},fixedHeight:{type:"boolean",default:!0},linkTarget:{type:"string"},linkTo:{type:"string"},sizeSlug:{type:"string",default:"large"},allowResize:{type:"boolean",default:!1}},providesContext:{allowResize:"allowResize",imageCrop:"imageCrop",fixedHeight:"fixedHeight"},supports:{anchor:!0,align:!0,html:!1,units:["px","em","rem","vh","vw"],spacing:{margin:!0,padding:!0,blockGap:["horizontal","vertical"],__experimentalSkipSerialization:["blockGap"],__experimentalDefaultControls:{blockGap:!0,margin:!1,padding:!1}},color:{text:!1,background:!0,gradients:!0},layout:{allowSwitching:!1,allowInheriting:!1,allowEditing:!1,default:{type:"flex"}}},editorStyle:"wp-block-gallery-editor",style:"wp-block-gallery"},{name:Ac}=Lc,Vc={icon:Ss,example:{attributes:{columns:2},innerBlocks:[{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"}},{name:"core/image",attributes:{url:"https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"}}]},transforms:Hc,edit:Mc,save:function({attributes:e}){if(!zs())return function({attributes:e}){const{images:t,columns:n=Ls(e),imageCrop:o,caption:a,linkTo:r}=e,l=`columns-${n} ${o?"is-cropped":""}`;return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:l})},(0,qe.createElement)("ul",{className:"blocks-gallery-grid"},t.map((e=>{let t;switch(r){case kc:t=e.fullUrl||e.url;break;case xc:t=e.link}const n=(0,qe.createElement)("img",{src:e.url,alt:e.alt,"data-id":e.id,"data-full-url":e.fullUrl,"data-link":e.link,className:e.id?`wp-image-${e.id}`:null});return(0,qe.createElement)("li",{key:e.id||e.url,className:"blocks-gallery-item"},(0,qe.createElement)("figure",null,t?(0,qe.createElement)("a",{href:t},n):n,!Ye.RichText.isEmpty(e.caption)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:it()("blocks-gallery-item__caption",(0,Ye.__experimentalGetElementClassName)("caption")),value:e.caption})))}))),!Ye.RichText.isEmpty(a)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:it()("blocks-gallery-caption",(0,Ye.__experimentalGetElementClassName)("caption")),value:a}))}({attributes:e});const{caption:t,columns:n,imageCrop:o}=e,a=it()("has-nested-images",{[`columns-${n}`]:void 0!==n,"columns-default":void 0===n,"is-cropped":o}),r=Ye.useBlockProps.save({className:a}),l=Ye.useInnerBlocksProps.save(r);return(0,qe.createElement)("figure",{...l},l.children,!Ye.RichText.isEmpty(t)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",className:it()("blocks-gallery-caption",(0,Ye.__experimentalGetElementClassName)("caption")),value:t}))},deprecated:qs},Dc=()=>Qe({name:Ac,metadata:Lc,settings:Vc});var Fc=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v3H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-3h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h3V13c0 1.1.9 2 2 2h2.5v3zm0-4.5H11c-.3 0-.5-.2-.5-.5v-2.5H13c.3 0 .5.2.5.5v2.5zm5-.5c0 .3-.2.5-.5.5h-3V11c0-1.1-.9-2-2-2h-2.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7z"}));const $c=e=>{if(e.tagName||(e={...e,tagName:"div"}),!e.customTextColor&&!e.customBackgroundColor)return e;const t={color:{}};e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor);const{customTextColor:n,customBackgroundColor:o,...a}=e;return{...a,style:t}},Gc=[{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},layout:!0},save({attributes:{tagName:e}}){return(0,qe.createElement)(e,{...Ye.useInnerBlocksProps.save(Ye.useBlockProps.save())})},isEligible:({layout:e})=>!e||e.inherit||e.contentSize&&"constrained"!==e.type,migrate:e=>{const{layout:t=null}=e;return t?t.inherit||t.contentSize?{...e,layout:{...t,type:"constrained"}}:void 0:e}},{attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert",!1]}},supports:{align:["wide","full"],anchor:!0,color:{gradients:!0,link:!0},spacing:{padding:!0},__experimentalBorder:{radius:!0}},save({attributes:e}){const{tagName:t}=e;return(0,qe.createElement)(t,{...Ye.useBlockProps.save()},(0,qe.createElement)("div",{className:"wp-block-group__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:$c,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:o,customTextColor:a}=e,r=(0,Ye.getColorClassName)("background-color",t),l=(0,Ye.getColorClassName)("color",o),i=it()(r,l,{"has-text-color":o||a,"has-background":t||n}),s={backgroundColor:r?void 0:n,color:l?void 0:a};return(0,qe.createElement)("div",{className:i,style:s},(0,qe.createElement)("div",{className:"wp-block-group__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}},migrate:$c,supports:{align:["wide","full"],anchor:!0,html:!1},save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,textColor:o,customTextColor:a}=e,r=(0,Ye.getColorClassName)("background-color",t),l=(0,Ye.getColorClassName)("color",o),i=it()(r,{"has-text-color":o||a,"has-background":t||n}),s={backgroundColor:r?void 0:n,color:l?void 0:a};return(0,qe.createElement)("div",{className:i,style:s},(0,qe.createElement)("div",{className:"wp-block-group__inner-container"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},{attributes:{backgroundColor:{type:"string"},customBackgroundColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1},migrate:$c,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n}=e,o=(0,Ye.getColorClassName)("background-color",t),a=it()(o,{"has-background":t||n}),r={backgroundColor:o?void 0:n};return(0,qe.createElement)("div",{className:a,style:r},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];var Oc=Gc;const Uc=(e="group")=>{const t={group:(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,qe.createElement)(Ke.Path,{d:"M42 0H2C.9 0 0 .9 0 2v28c0 1.1.9 2 2 2h40c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2z"})),"group-row":(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,qe.createElement)(Ke.Path,{d:"M42 0H23.5c-.6 0-1 .4-1 1v30c0 .6.4 1 1 1H42c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zM20.5 0H2C.9 0 0 .9 0 2v28c0 1.1.9 2 2 2h18.5c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z"})),"group-stack":(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,qe.createElement)(Ke.Path,{d:"M42 0H2C.9 0 0 .9 0 2v12.5c0 .6.4 1 1 1h42c.6 0 1-.4 1-1V2c0-1.1-.9-2-2-2zm1 16.5H1c-.6 0-1 .4-1 1V30c0 1.1.9 2 2 2h40c1.1 0 2-.9 2-2V17.5c0-.6-.4-1-1-1z"})),"group-grid":(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"32",viewBox:"0 0 44 32"},(0,qe.createElement)(Ke.Path,{d:"m20.30137,-0.00025l-18.9728,0c-0.86524,0.07234 -1.41711,0.79149 -1.41711,1.89149l0,12.64468c0,0.6 0.73401,0.96383 1.0304,0.96383l19.67469,0.03617c0.29639,0 1.0304,-0.4 1.0304,-1l-0.03576,-12.7532c0,-1.1 -0.76644,-1.78297 -1.30983,-1.78297zm0.52975,16.60851l-19.99654,-0.03617c-0.29639,0 -0.92312,0.36383 -0.92312,0.96383l-0.03576,12.68085c0,1.1 0.8022,1.81915 1.34559,1.81915l19.00857,0c0.54339,0 1.45287,-0.71915 1.45287,-1.81915l0,-12.53617c0,-0.6 -0.5552,-1.07234 -0.8516,-1.07234z"}),(0,qe.createElement)(Ke.Path,{d:"m42.73056,-0.03617l-18.59217,0c-0.84788,0.07234 -1.38868,0.79149 -1.38868,1.89149l0,12.64468c0,0.6 0.71928,0.96383 1.00973,0.96383l19.27997,0.03617c0.29045,0 1.00973,-0.4 1.00973,-1l-0.03504,-12.7532c0,-1.1 -0.75106,-1.78297 -1.28355,-1.78297zm0.51912,16.60851l-19.59537,-0.03617c-0.29045,0 -0.9046,0.36383 -0.9046,0.96383l-0.03504,12.68085c0,1.1 0.78611,1.81915 1.31859,1.81915l18.62721,0c0.53249,0 1.42372,-0.71915 1.42372,-1.81915l0,-12.53617c0,-0.6 -0.54407,-1.07234 -0.83451,-1.07234z"}))};return t?.[e]};var jc=function({name:e,onSelect:t}){const n=(0,ut.useSelect)((t=>t(je.store).getBlockVariations(e,"block")),[e]),o=(0,Ye.useBlockProps)({className:"wp-block-group__placeholder"});return(0,qe.createElement)("div",{...o},(0,qe.createElement)(Ke.Placeholder,{instructions:(0,Je.__)("Group blocks together. Select a layout:")},(0,qe.createElement)("ul",{role:"list",className:"wp-block-group-placeholder__variations","aria-label":(0,Je.__)("Block variations")},n.map((e=>(0,qe.createElement)("li",{key:e.name},(0,qe.createElement)(Ke.Button,{variant:"tertiary",icon:Uc(e.name),iconSize:44,onClick:()=>t(e),className:"wp-block-group-placeholder__variation-button",label:`${e.title}: ${e.description}`})))))))};function qc({tagName:e,onSelectTagName:t}){const n={header:(0,Je.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Je.__)("The <main> element should be used for the primary content of your document only. "),section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,Je.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,Je.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.__)("Default (<div>)"),value:"div"},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"}],value:e,onChange:t,help:n[e]}))}var Wc=function({attributes:e,name:t,setAttributes:n,clientId:o,__unstableLayoutClassNames:a}){const{hasInnerBlocks:r,themeSupportsLayout:l}=(0,ut.useSelect)((e=>{const{getBlock:t,getSettings:n}=e(Ye.store),a=t(o);return{hasInnerBlocks:!(!a||!a.innerBlocks.length),themeSupportsLayout:n()?.supportsLayout}}),[o]),{tagName:i="div",templateLock:s,allowedBlocks:c,layout:u={}}=e,m=(0,Ye.useSetting)("layout")||{},p=u?.type?{...m,...u}:{...m,...u,type:"default"},{type:d="default"}=p,g=l||"flex"===d||"grid"===d,h=(0,Ye.useBlockProps)({className:g?null:a}),[_,b]=function({attributes:e={style:void 0,backgroundColor:void 0,textColor:void 0,fontSize:void 0},usedLayoutType:t="",hasInnerBlocks:n=!1}){const{style:o,backgroundColor:a,textColor:r,fontSize:l}=e,[i,s]=(0,qe.useState)(!(n||a||l||r||o||"flex"===t||"grid"===t));return(0,qe.useEffect)((()=>{(n||a||l||r||o||"flex"===t)&&s(!1)}),[a,l,r,o,t,n]),[i,s]}({attributes:e,usedLayoutType:p?.type,hasInnerBlocks:r});let f;_?f=!1:r||(f=Ye.InnerBlocks.ButtonBlockAppender);const y=(0,Ye.useInnerBlocksProps)(g?h:{className:"wp-block-group__inner-container"},{templateLock:s,allowedBlocks:c,renderAppender:f,__unstableDisableLayoutClassNames:!g}),{selectBlock:v}=(0,ut.useDispatch)(Ye.store);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(qc,{tagName:i,onSelectTagName:e=>n({tagName:e})}),_&&(0,qe.createElement)(We.View,null,y.children,(0,qe.createElement)(jc,{clientId:o,name:t,onSelect:e=>{n(e.attributes),v(o,-1),b(!1)}})),g&&!_&&(0,qe.createElement)(i,{...y}),!g&&!_&&(0,qe.createElement)(i,{...h},(0,qe.createElement)("div",{...y})))};var Zc={from:[{type:"block",isMultiBlock:!0,blocks:["*"],__experimentalConvert(e){const t=["wide","full"],n=e.reduce(((e,n)=>{const{align:o}=n.attributes;return t.indexOf(o)>t.indexOf(e)?o:e}),void 0),o=e.map((e=>(0,je.createBlock)(e.name,e.attributes,e.innerBlocks)));return(0,je.createBlock)("core/group",{align:n,layout:{type:"constrained"}},o)}}]};var Qc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 6.5h5a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H4V16h5a.5.5 0 0 0 .5-.5v-7A.5.5 0 0 0 9 8H4V6.5Zm16 0h-5a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h5V16h-5a.5.5 0 0 1-.5-.5v-7A.5.5 0 0 1 15 8h5V6.5Z"}));var Kc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M17.5 4v5a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V4H8v5a.5.5 0 0 0 .5.5h7A.5.5 0 0 0 16 9V4h1.5Zm0 16v-5a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v5H8v-5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v5h1.5Z"}));var Jc=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m3 5c0-1.10457.89543-2 2-2h13.5c1.1046 0 2 .89543 2 2v13.5c0 1.1046-.8954 2-2 2h-13.5c-1.10457 0-2-.8954-2-2zm2-.5h6v6.5h-6.5v-6c0-.27614.22386-.5.5-.5zm-.5 8v6c0 .2761.22386.5.5.5h6v-6.5zm8 0v6.5h6c.2761 0 .5-.2239.5-.5v-6zm0-8v6.5h6.5v-6c0-.27614-.2239-.5-.5-.5z",fillRule:"evenodd",clipRule:"evenodd"}));const Yc=[{name:"group",title:(0,Je.__)("Group"),description:(0,Je.__)("Gather blocks in a container."),attributes:{layout:{type:"constrained"}},isDefault:!0,scope:["block","inserter","transform"],isActive:e=>!e.layout||!e.layout?.type||"default"===e.layout?.type||"constrained"===e.layout?.type,icon:Fc},{name:"group-row",title:(0,Je._x)("Row","single horizontal line"),description:(0,Je.__)("Arrange blocks horizontally."),attributes:{layout:{type:"flex",flexWrap:"nowrap"}},scope:["block","inserter","transform"],isActive:e=>"flex"===e.layout?.type&&(!e.layout?.orientation||"horizontal"===e.layout?.orientation),icon:Qc},{name:"group-stack",title:(0,Je.__)("Stack"),description:(0,Je.__)("Arrange blocks vertically."),attributes:{layout:{type:"flex",orientation:"vertical"}},scope:["block","inserter","transform"],isActive:e=>"flex"===e.layout?.type&&"vertical"===e.layout?.orientation,icon:Kc}];window?.__experimentalEnableGroupGridVariation&&Yc.push({name:"group-grid",title:(0,Je.__)("Grid"),description:(0,Je.__)("Arrange blocks in a grid."),attributes:{layout:{type:"grid"}},scope:["block","inserter","transform"],isActive:e=>"grid"===e.layout?.type,icon:Jc});var Xc=Yc;const eu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/group",title:"Group",category:"design",description:"Gather blocks in a layout container.",keywords:["container","wrapper","row","section"],textdomain:"default",attributes:{tagName:{type:"string",default:"div"},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]},allowedBlocks:{type:"array"}},supports:{__experimentalOnEnter:!0,__experimentalSettings:!0,align:["wide","full"],anchor:!0,ariaLabel:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:["top","bottom"],padding:!0,blockGap:!0,__experimentalDefaultControls:{padding:!0,blockGap:!0}},dimensions:{minHeight:!0},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},position:{sticky:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},layout:{allowSizingOnChildren:!0}},editorStyle:"wp-block-group-editor",style:"wp-block-group"},{name:tu}=eu,nu={icon:Fc,example:{attributes:{style:{color:{text:"#000000",background:"#ffffff"}}},innerBlocks:[{name:"core/paragraph",attributes:{customTextColor:"#cf2e2e",fontSize:"large",content:(0,Je.__)("One.")}},{name:"core/paragraph",attributes:{customTextColor:"#ff6900",fontSize:"large",content:(0,Je.__)("Two.")}},{name:"core/paragraph",attributes:{customTextColor:"#fcb900",fontSize:"large",content:(0,Je.__)("Three.")}},{name:"core/paragraph",attributes:{customTextColor:"#00d084",fontSize:"large",content:(0,Je.__)("Four.")}},{name:"core/paragraph",attributes:{customTextColor:"#0693e3",fontSize:"large",content:(0,Je.__)("Five.")}},{name:"core/paragraph",attributes:{customTextColor:"#9b51e0",fontSize:"large",content:(0,Je.__)("Six.")}}]},transforms:Zc,edit:Wc,save:function({attributes:{tagName:e}}){return(0,qe.createElement)(e,{...Ye.useInnerBlocksProps.save(Ye.useBlockProps.save())})},deprecated:Oc,variations:Xc},ou=()=>Qe({name:tu,metadata:eu,settings:nu});var au=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M6 5V18.5911L12 13.8473L18 18.5911V5H6Z"}));const ru={className:!1,anchor:!0},lu={align:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},level:{type:"number",default:2},placeholder:{type:"string"}},iu=e=>{if(!e.customTextColor)return e;const t={color:{text:e.customTextColor}},{customTextColor:n,...o}=e;return{...o,style:t}},su=["left","right","center"],cu=e=>{const{align:t,...n}=e;return su.includes(t)?{...n,textAlign:t}:e},uu={supports:ru,attributes:{...lu,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>iu(cu(e)),save({attributes:e}){const{align:t,level:n,content:o,textColor:a,customTextColor:r}=e,l="h"+n,i=(0,Ye.getColorClassName)("color",a),s=it()({[i]:i});return(0,qe.createElement)(Ye.RichText.Content,{className:s||void 0,tagName:l,style:{textAlign:t,color:i?void 0:r},value:o})}},mu={attributes:{...lu,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>iu(cu(e)),save({attributes:e}){const{align:t,content:n,customTextColor:o,level:a,textColor:r}=e,l="h"+a,i=(0,Ye.getColorClassName)("color",r),s=it()({[i]:i,[`has-text-align-${t}`]:t});return(0,qe.createElement)(Ye.RichText.Content,{className:s||void 0,tagName:l,style:{color:i?void 0:o},value:n})},supports:ru},pu={supports:ru,attributes:{...lu,customTextColor:{type:"string"},textColor:{type:"string"}},migrate:e=>iu(cu(e)),save({attributes:e}){const{align:t,content:n,customTextColor:o,level:a,textColor:r}=e,l="h"+a,i=(0,Ye.getColorClassName)("color",r),s=it()({[i]:i,"has-text-color":r||o,[`has-text-align-${t}`]:t});return(0,qe.createElement)(Ye.RichText.Content,{className:s||void 0,tagName:l,style:{color:i?void 0:o},value:n})}},du={supports:{align:["wide","full"],anchor:!0,className:!1,color:{link:!0},fontSize:!0,lineHeight:!0,__experimentalSelector:{"core/heading/h1":"h1","core/heading/h2":"h2","core/heading/h3":"h3","core/heading/h4":"h4","core/heading/h5":"h5","core/heading/h6":"h6"},__unstablePasteTextInline:!0},attributes:lu,isEligible:({align:e})=>su.includes(e),migrate:cu,save({attributes:e}){const{align:t,content:n,level:o}=e,a="h"+o,r=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)(a,{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},gu={supports:{align:["wide","full"],anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__experimentalSelector:"h1,h2,h3,h4,h5,h6",__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},save({attributes:e}){const{textAlign:t,content:n,level:o}=e,a="h"+o,r=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)(a,{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}};var hu=[gu,du,pu,mu,uu],_u=n(4793),bu=n.n(_u);const fu={},yu=e=>bu()((e=>{const t=document.createElement("div");return t.innerHTML=e,t.innerText})(e)).replace(/[^\p{L}\p{N}]+/gu,"-").toLowerCase().replace(/(^-+)|(-+$)/g,""),vu=(e,t)=>{const n=yu(t);if(""===n)return null;delete fu[e];let o=n,a=0;for(;Object.values(fu).includes(o);)a+=1,o=n+"-"+a;return o},ku=(e,t)=>{fu[e]=t};var xu=function({attributes:e,setAttributes:t,mergeBlocks:n,onReplace:o,style:a,clientId:r}){const{textAlign:l,content:i,level:s,placeholder:c,anchor:u}=e,m="h"+s,p=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${l}`]:l}),style:a}),{canGenerateAnchors:d}=(0,ut.useSelect)((e=>{const{getGlobalBlockCount:t,getSettings:n}=e(Ye.store);return{canGenerateAnchors:!!n().generateAnchors||t("core/table-of-contents")>0}}),[]),{__unstableMarkNextChangeAsNotPersistent:g}=(0,ut.useDispatch)(Ye.store);return(0,qe.useEffect)((()=>{if(d)return!u&&i&&(g(),t({anchor:vu(r,i)})),ku(r,u),()=>ku(r,null)}),[u,i,r,d]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.HeadingLevelDropdown,{value:s,onChange:e=>t({level:e})}),(0,qe.createElement)(Ye.AlignmentControl,{value:l,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)(Ye.RichText,{identifier:"content",tagName:m,value:i,onChange:e=>{const n={content:e};!d||u&&e&&vu(r,i)!==u||(n.anchor=vu(r,e)),t(n)},onMerge:n,onSplit:(t,n)=>{let o;var a;n||t?o=(0,je.createBlock)("core/heading",{...e,content:t}):o=(0,je.createBlock)(null!==(a=(0,je.getDefaultBlockName)())&&void 0!==a?a:"core/heading");return n&&(o.clientId=r),o},onReplace:o,onRemove:()=>o([]),"aria-label":(0,Je.__)("Heading text"),placeholder:c||(0,Je.__)("Heading"),textAlign:l,...qe.Platform.isNative&&{deleteEnter:!0},...p}))};const{name:wu}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},Cu={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((({content:e,anchor:t,align:n})=>(0,je.createBlock)(wu,{content:e,anchor:t,textAlign:n})))},{type:"raw",selector:"h1,h2,h3,h4,h5,h6",schema:({phrasingContentSchema:e,isPaste:t})=>{const n={children:e,attributes:t?[]:["style","id"]};return{h1:n,h2:n,h3:n,h4:n,h5:n,h6:n}},transform(e){const t=(0,je.getBlockAttributes)(wu,e.outerHTML),{textAlign:n}=e.style||{};var o;return t.level=(o=e.nodeName,Number(o.substr(1))),"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),(0,je.createBlock)(wu,t)}},...[1,2,3,4,5,6].map((e=>({type:"prefix",prefix:Array(e+1).join("#"),transform(t){return(0,je.createBlock)(wu,{level:e,content:t})}}))),...[1,2,3,4,5,6].map((e=>({type:"enter",regExp:new RegExp(`^/(h|H)${e}$`),transform(t){return(0,je.createBlock)(wu,{level:e,content:t})}})))],to:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>e.map((({content:e,textAlign:t})=>(0,je.createBlock)("core/paragraph",{content:e,align:t})))}]};var Eu=Cu;const Su={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/heading",title:"Heading",category:"text",description:"Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.",keywords:["title","subtitle"],textdomain:"default",attributes:{textAlign:{type:"string"},content:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:"",__experimentalRole:"content"},level:{type:"number",default:2},placeholder:{type:"string"}},supports:{align:["wide","full"],anchor:!0,className:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}},__unstablePasteTextInline:!0,__experimentalSlashInserter:!0},editorStyle:"wp-block-heading-editor",style:"wp-block-heading"},{name:Bu}=Su,Tu={icon:au,example:{attributes:{content:(0,Je.__)("Code is Poetry"),level:2}},__experimentalLabel(e,{context:t}){const{content:n,level:o}=e;return"list-view"===t&&n?n:"accessibility"===t?n&&0!==n.length?(0,Je.sprintf)((0,Je.__)("Level %1$s. %2$s"),o,n):(0,Je.sprintf)((0,Je.__)("Level %s. Empty."),o):void 0},transforms:Eu,deprecated:hu,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:xu,save:function({attributes:e}){const{textAlign:t,content:n,level:o}=e,a="h"+o,r=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)(a,{...Ye.useBlockProps.save({className:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},Nu=()=>Qe({name:Bu,metadata:Su,settings:Tu});var Pu=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}));const Iu=e=>e.preventDefault();const Mu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/home-link",category:"design",parent:["core/navigation"],title:"Home Link",description:"Create a link that always points to the homepage of the site. Usually not necessary if there is already a site title link present in the header.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","fontSize","customFontSize","style"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-home-link-editor",style:"wp-block-home-link"},{name:zu}=Mu,Ru={icon:Pu,edit:function({attributes:e,setAttributes:t,context:n}){const{homeUrl:o}=(0,ut.useSelect)((e=>{const{getUnstableBase:t}=e(ct.store);return{homeUrl:t()?.home}}),[]),{__unstableMarkNextChangeAsNotPersistent:a}=(0,ut.useDispatch)(Ye.store),{textColor:r,backgroundColor:l,style:i}=n,s=(0,Ye.useBlockProps)({className:it()("wp-block-navigation-item",{"has-text-color":!!r||!!i?.color?.text,[`has-${r}-color`]:!!r,"has-background":!!l||!!i?.color?.background,[`has-${l}-background-color`]:!!l}),style:{color:i?.color?.text,backgroundColor:i?.color?.background}}),{label:c}=e;return(0,qe.useEffect)((()=>{void 0===c&&(a(),t({label:(0,Je.__)("Home")}))}),[c]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{...s},(0,qe.createElement)("a",{className:"wp-block-home-link__content wp-block-navigation-item__content",href:o,onClick:Iu},(0,qe.createElement)(Ye.RichText,{identifier:"label",className:"wp-block-home-link__label",value:c,onChange:e=>{t({label:e})},"aria-label":(0,Je.__)("Home link text"),placeholder:(0,Je.__)("Add home link"),withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"]}))))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},example:{attributes:{label:(0,Je._x)("Home Link","block example")}}},Hu=()=>Qe({name:zu,metadata:Mu,settings:Ru});var Lu=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4.8 11.4H2.1V9H1v6h1.1v-2.6h2.7V15h1.1V9H4.8v2.4zm1.9-1.3h1.7V15h1.1v-4.9h1.7V9H6.7v1.1zM16.2 9l-1.5 2.7L13.3 9h-.9l-.8 6h1.1l.5-4 1.5 2.8 1.5-2.8.5 4h1.1L17 9h-.8zm3.8 5V9h-1.1v6h3.6v-1H20z"}));const Au="\n\thtml,body,:root {\n\t\tmargin: 0 !important;\n\t\tpadding: 0 !important;\n\t\toverflow: visible !important;\n\t\tmin-height: auto !important;\n\t}\n";function Vu({content:e,isSelected:t}){const n=(0,ut.useSelect)((e=>e(Ye.store).getSettings()?.styles),[]),o=(0,qe.useMemo)((()=>[Au,...(0,Ye.transformStyles)(n)]),[n]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.SandBox,{html:e,styles:o}),!t&&(0,qe.createElement)("div",{className:"block-library-html__preview-overlay"}))}var Du={from:[{type:"block",blocks:["core/code"],transform:({content:e})=>(0,je.createBlock)("core/html",{content:e})}]};const Fu={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/html",title:"Custom HTML",category:"widgets",description:"Add custom HTML code and preview it as you edit.",keywords:["embed"],textdomain:"default",attributes:{content:{type:"string",source:"raw"}},supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-html-editor"},{name:$u}=Fu,Gu={icon:Lu,example:{attributes:{content:"<marquee>"+(0,Je.__)("Welcome to the wonderful world of blocks…")+"</marquee>"}},edit:function({attributes:e,setAttributes:t,isSelected:n}){const[o,a]=(0,qe.useState)(),r=(0,qe.useContext)(Ke.Disabled.Context);return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:"block-library-html__edit"})},(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{className:"components-tab-button",isPressed:!o,onClick:function(){a(!1)}},"HTML"),(0,qe.createElement)(Ke.ToolbarButton,{className:"components-tab-button",isPressed:o,onClick:function(){a(!0)}},(0,Je.__)("Preview")))),o||r?(0,qe.createElement)(Vu,{content:e.content,isSelected:n}):(0,qe.createElement)(Ye.PlainText,{value:e.content,onChange:e=>t({content:e}),placeholder:(0,Je.__)("Write HTML…"),"aria-label":(0,Je.__)("HTML")}))},save:function({attributes:e}){return(0,qe.createElement)(qe.RawHTML,null,e.content)},transforms:Du},Ou=()=>Qe({name:$u,metadata:Fu,settings:Gu}),Uu={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,width:l,height:i}=e,s=l||i?{width:l,height:i}:{},c=(0,qe.createElement)("img",{src:t,alt:n,...s});let u={};return l?u={width:l}:"left"!==a&&"right"!==a||(u={maxWidth:"50%"}),(0,qe.createElement)("figure",{className:a?`align${a}`:null,style:u},r?(0,qe.createElement)("a",{href:r},c):c,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}))}},ju={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,width:l,height:i,id:s}=e,c=(0,qe.createElement)("img",{src:t,alt:n,className:s?`wp-image-${s}`:null,width:l,height:i});return(0,qe.createElement)("figure",{className:a?`align${a}`:null},r?(0,qe.createElement)("a",{href:r},c):c,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}))}},qu={attributes:{url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"array",source:"children",selector:"figcaption"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},id:{type:"number"},align:{type:"string"},width:{type:"number"},height:{type:"number"},linkDestination:{type:"string",default:"none"}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,width:l,height:i,id:s}=e,c=it()({[`align${a}`]:a,"is-resized":l||i}),u=(0,qe.createElement)("img",{src:t,alt:n,className:s?`wp-image-${s}`:null,width:l,height:i});return(0,qe.createElement)("figure",{className:c},r?(0,qe.createElement)("a",{href:r},u):u,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}))}},Wu={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,id:u,linkTarget:m,sizeSlug:p,title:d}=e,g=l||void 0,h=it()({[`align${a}`]:a,[`size-${p}`]:p,"is-resized":s||c}),_=(0,qe.createElement)("img",{src:t,alt:n,className:u?`wp-image-${u}`:null,width:s,height:c,title:d}),b=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:m,rel:g},_):_,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}));return"left"===a||"right"===a||"center"===a?(0,qe.createElement)("div",{...Ye.useBlockProps.save()},(0,qe.createElement)("figure",{className:h},b)):(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:h})},b)}},Zu={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:""},caption:{type:"string",source:"html",selector:"figcaption"},title:{type:"string",source:"attribute",selector:"img",attribute:"title"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number"},width:{type:"number"},height:{type:"number"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,color:{__experimentalDuotone:"img",text:!1,background:!1},__experimentalBorder:{radius:!0,__experimentalDefaultControls:{radius:!0}},__experimentalStyle:{spacing:{margin:"0 0 1em 0"}}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,id:u,linkTarget:m,sizeSlug:p,title:d}=e,g=l||void 0,h=it()({[`align${a}`]:a,[`size-${p}`]:p,"is-resized":s||c}),_=(0,qe.createElement)("img",{src:t,alt:n,className:u?`wp-image-${u}`:null,width:s,height:c,title:d}),b=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:m,rel:g},_):_,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:o}));return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:h})},b)}},Qu={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,behaviors:{lightbox:!0},color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:u,scale:m,id:p,linkTarget:d,sizeSlug:g,title:h}=e,_=l||void 0,b=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),f=it()({[`align${a}`]:a,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),y=it()(b.className,{[`wp-image-${p}`]:!!p}),v=(0,qe.createElement)("img",{src:t,alt:n,className:y||void 0,style:{...b.style,aspectRatio:u,objectFit:m},width:s,height:c,title:h}),k=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:d,rel:_},v):v,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o}));return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:f})},k)}},Ku={attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"number"},height:{type:"number"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,behaviors:{lightbox:!0},color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},migrate({width:e,height:t,...n}){return{...n,width:`${e}px`,height:`${t}px`}},save({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:u,scale:m,id:p,linkTarget:d,sizeSlug:g,title:h}=e,_=l||void 0,b=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),f=it()({[`align${a}`]:a,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),y=it()(b.className,{[`wp-image-${p}`]:!!p}),v=(0,qe.createElement)("img",{src:t,alt:n,className:y||void 0,style:{...b.style,aspectRatio:u,objectFit:m,width:s,height:c},width:s,height:c,title:h}),k=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:d,rel:_},v):v,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o}));return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:f})},k)}};var Ju=[Ku,Qu,Zu,Wu,qu,ju,Uu];var Yu=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M16.5 7.8v7H18v-7c0-1-.8-1.8-1.8-1.8h-7v1.5h7c.2 0 .3.1.3.3zm-8.7 8.7c-.1 0-.2-.1-.2-.2V2H6v4H2v1.5h4v8.8c0 1 .8 1.8 1.8 1.8h8.8v4H18v-4h4v-1.5H7.8z"}));var Xu=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12-9.8c.4 0 .8-.3.9-.7l1.1-3h3.6l.5 1.7h1.9L13 9h-2.2l-3.4 9.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12H20V6c0-1.1-.9-2-2-2zm-6 7l1.4 3.9h-2.7L12 11z"}));var em=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));function tm(e,t){const[n,o]=(0,qe.useState)();function a(){o(e.current?.clientWidth)}return(0,qe.useEffect)(a,t),(0,qe.useEffect)((()=>{const{defaultView:t}=e.current.ownerDocument;return t.addEventListener("resize",a),()=>{t.removeEventListener("resize",a)}}),[]),n}const{DimensionsTool:nm,ResolutionTool:om}=Yt(Ye.privateApis),am=[{value:"cover",label:(0,Je._x)("Cover","Scale option for dimensions control"),help:(0,Je.__)("Image covers the space evenly.")},{value:"contain",label:(0,Je._x)("Contain","Scale option for dimensions control"),help:(0,Je.__)("Image is contained without distortion.")}];function rm({temporaryURL:e,attributes:t,setAttributes:n,isSelected:o,insertBlocksAfter:a,onReplace:r,onSelectImage:l,onSelectURL:i,onUploadError:s,containerRef:c,context:u,clientId:m,blockEditingMode:p}){const{url:d="",alt:g,caption:h,align:_,id:b,href:f,rel:y,linkClass:v,linkDestination:k,title:x,width:w,height:C,aspectRatio:E,scale:S,linkTarget:B,sizeSlug:T}=t,N=w?parseInt(w,10):void 0,P=C?parseInt(C,10):void 0,I=(0,qe.useRef)(),M=(0,Tt.usePrevious)(h),[z,R]=(0,qe.useState)(!!h),{allowResize:H=!0}=u,{getBlock:L}=(0,ut.useSelect)(Ye.store),{image:A,multiImageSelection:V}=(0,ut.useSelect)((e=>{const{getMedia:t}=e(ct.store),{getMultiSelectedBlockClientIds:n,getBlockName:a}=e(Ye.store),r=n();return{image:b&&o?t(b,{context:"view"}):null,multiImageSelection:r.length&&r.every((e=>"core/image"===a(e)))}}),[b,o]),{canInsertCover:D,imageEditing:F,imageSizes:$,maxWidth:G,mediaUpload:O}=(0,ut.useSelect)((e=>{const{getBlockRootClientId:t,getSettings:n,canInsertBlockType:o}=e(Ye.store),a=t(m),r=n();return{imageEditing:r.imageEditing,imageSizes:r.imageSizes,maxWidth:r.maxWidth,mediaUpload:r.mediaUpload,canInsertCover:o("core/cover",a)}}),[m]),{replaceBlocks:U,toggleSelection:j}=(0,ut.useDispatch)(Ye.store),{createErrorNotice:q,createSuccessNotice:W}=(0,ut.useDispatch)(Bt.store),Z=(0,Tt.useViewportMatch)("medium"),Q=["wide","full"].includes(_),[{loadedNaturalWidth:K,loadedNaturalHeight:J},Y]=(0,qe.useState)({}),[X,ee]=(0,qe.useState)(!1),[te,ne]=(0,qe.useState)(),oe=tm(c,[_]),ae="default"===p,re=H&&ae&&!(Q&&Z),le=$.filter((({slug:e})=>A?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e}))),ie=!!O;(0,qe.useEffect)((()=>{im(b,d)&&o&&ie?te||window.fetch(d.includes("?")?d:d+"?").then((e=>e.blob())).then((e=>ne(e))).catch((()=>{})):ne()}),[b,d,o,te,ie]),(0,qe.useEffect)((()=>{h&&!M&&R(!0)}),[h,M]);const se=(0,qe.useCallback)((e=>{e&&!h&&e.focus()}),[h]),{naturalWidth:ce,naturalHeight:ue}=(0,qe.useMemo)((()=>({naturalWidth:I.current?.naturalWidth||K||void 0,naturalHeight:I.current?.naturalHeight||J||void 0})),[K,J,I.current?.complete]);(0,qe.useEffect)((()=>{o||(ee(!1),h||R(!1))}),[o,h]);const me=b&&ce&&ue&&F,pe=!V&&me&&!X;const de=(0,Ke.__experimentalUseCustomUnits)({availableUnits:["px"]}),ge=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},ae&&(0,qe.createElement)(Ye.BlockAlignmentControl,{value:_,onChange:function(e){const t=["wide","full"].includes(e)?{width:void 0,height:void 0,aspectRatio:void 0,scale:void 0}:{};n({...t,align:e})}}),ae&&(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{R(!z),z&&h&&n({caption:void 0})},icon:St,isPressed:z,label:z?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")}),!V&&!X&&(0,qe.createElement)(Ye.__experimentalImageURLInputUI,{url:f||"",onChangeUrl:function(e){n(e)},linkDestination:k,mediaUrl:A&&A.source_url||d,mediaLink:A&&A.link,linkTarget:B,linkClass:v,rel:y}),pe&&(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>ee(!0),icon:Yu,label:(0,Je.__)("Crop")}),!V&&D&&(0,qe.createElement)(Ke.ToolbarButton,{icon:Xu,label:(0,Je.__)("Add text over image"),onClick:function(){U(m,(0,je.switchToBlockType)(L(m),"core/cover"))}})),!V&&!X&&(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:b,mediaURL:d,allowedTypes:tc,accept:"image/*",onSelect:l,onSelectURL:i,onError:s})),!V&&te&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:function(){O({filesList:[te],onFileChange([e]){l(e),(0,Et.isBlobURL)(e.url)||(ne(),W((0,Je.__)("Image uploaded."),{type:"snackbar"}))},allowedTypes:tc,onError(e){q(e,{type:"snackbar"})}})},icon:em,label:(0,Je.__)("Upload external image")}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.__experimentalToolsPanel,{label:(0,Je.__)("Settings"),resetAll:()=>n({width:void 0,height:void 0,scale:void 0,aspectRatio:void 0})},!V&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{label:(0,Je.__)("Alternative text"),isShownByDefault:!0,hasValue:()=>""!==g,onDeselect:()=>n({alt:void 0})},(0,qe.createElement)(Ke.TextareaControl,{label:(0,Je.__)("Alternative text"),value:g,onChange:function(e){n({alt:e})},help:(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,Je.__)("Describe the purpose of the image.")),(0,qe.createElement)("br",null),(0,Je.__)("Leave empty if decorative.")),__nextHasNoMarginBottom:!0})),re&&(0,qe.createElement)(nm,{value:{width:w,height:C,scale:S,aspectRatio:E},onChange:e=>{n({width:e.width,height:e.height,scale:e.scale,aspectRatio:e.aspectRatio})},defaultScale:"cover",defaultAspectRatio:"auto",scaleOptions:am,unitsOptions:de}),(0,qe.createElement)(om,{value:T,onChange:function(e){const t=A?.media_details?.sizes?.[e]?.source_url;if(!t)return null;n({url:t,sizeSlug:e})},options:le}))),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Title attribute"),value:x||"",onChange:function(e){n({title:e})},help:(0,qe.createElement)(qe.Fragment,null,(0,Je.__)("Describe the role of this image on the page."),(0,qe.createElement)(Ke.ExternalLink,{href:"https://www.w3.org/TR/html52/dom.html#the-title-attribute"},(0,Je.__)("(Note: many devices and browsers do not display this text.)")))}))),he=(0,st.getFilename)(d);let _e;_e=g||(he?(0,Je.sprintf)((0,Je.__)("This image has an empty alt attribute; its file name is %s"),he):(0,Je.__)("This image has an empty alt attribute"));const be=(0,Ye.__experimentalUseBorderProps)(t),fe=t.className?.includes("is-style-rounded");let ye=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("img",{src:e||d,alt:_e,onError:()=>function(){const e=At({attributes:{url:d}});void 0!==e&&r(e)}(),onLoad:e=>{Y({loadedNaturalWidth:e.target?.naturalWidth,loadedNaturalHeight:e.target?.naturalHeight})},ref:I,className:be.className,style:{width:w&&C||E?"100%":void 0,height:w&&C||E?"100%":void 0,objectFit:S,...be.style}}),e&&(0,qe.createElement)(Ke.Spinner,null));const ve=I.current?.width||oe;if(me&&X)ye=(0,qe.createElement)(Ye.__experimentalImageEditor,{id:b,url:d,width:N,height:P,clientWidth:ve,naturalHeight:ue,naturalWidth:ce,onSaveImage:e=>n(e),onFinishEditing:()=>{ee(!1)},borderProps:fe?void 0:be});else if(re){const e=E&&function(e){const[t,n=1]=e.split("/").map(Number),o=t/n;return o===1/0||0===o?NaN:o}(E),t=e||N/P||ce/ue||1,a=!N&&P?P*t:N,r=!P&&N?N/t:P,l=ce<ue?Qs:Qs*t,i=ue<ce?Qs:Qs/t,s=2.5*G;let c=!1,u=!1;"center"===_?(c=!0,u=!0):(0,Je.isRTL)()?"left"===_?c=!0:u=!0:"right"===_?u=!0:c=!0,ye=(0,qe.createElement)(Ke.ResizableBox,{style:{display:"block",objectFit:S,aspectRatio:w||C||!E?void 0:E},size:{width:null!=a?a:"auto",height:null!=r?r:"auto"},showHandle:o,minWidth:l,maxWidth:s,minHeight:i,maxHeight:s/t,lockAspectRatio:t,enable:{top:!1,right:c,bottom:!0,left:u},onResizeStart:function(){j(!1)},onResizeStop:(e,o,a)=>{j(!0),n({width:`${a.offsetWidth}px`,height:"auto",aspectRatio:`${t}`})},resizeRatio:"center"===_?2:1},ye)}else ye=(0,qe.createElement)("div",{style:{width:w,height:C,aspectRatio:E}},ye);return(0,qe.createElement)(qe.Fragment,null,!e&&ge,ye,z&&(!Ye.RichText.isEmpty(h)||o)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",className:(0,Ye.__experimentalGetElementClassName)("caption"),ref:se,tagName:"figcaption","aria-label":(0,Je.__)("Image caption text"),placeholder:(0,Je.__)("Add caption"),value:h,onChange:e=>n({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>a((0,je.createBlock)((0,je.getDefaultBlockName)()))}))}const{useBlockEditingMode:lm}=Yt(Ye.privateApis),im=(e,t)=>t&&!e&&!(0,Et.isBlobURL)(t);var sm=function({attributes:e,setAttributes:t,isSelected:n,className:o,insertBlocksAfter:a,onReplace:r,context:l,clientId:i}){const{url:s="",alt:c,caption:u,align:m,id:p,width:d,height:g,sizeSlug:h}=e,[_,b]=(0,qe.useState)(),f=(0,qe.useRef)();(0,qe.useEffect)((()=>{f.current=c}),[c]);const y=(0,qe.useRef)();(0,qe.useEffect)((()=>{y.current=u}),[u]);const v=(0,qe.useRef)(),{imageDefaultSize:k,mediaUpload:x}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),n=t();return{imageDefaultSize:n.imageDefaultSize,mediaUpload:n.mediaUpload}}),[]),w=lm(),{createErrorNotice:C}=(0,ut.useDispatch)(Bt.store);function E(e){C(e,{type:"snackbar"}),t({src:void 0,id:void 0,url:void 0}),b(void 0)}function S(n){if(!n||!n.url)return void t({url:void 0,alt:void 0,id:void 0,title:void 0,caption:void 0});if((0,Et.isBlobURL)(n.url))return void b(n.url);b();let o,a=((e,t)=>{const n=Object.fromEntries(Object.entries(null!=e?e:{}).filter((([e])=>["alt","id","link","caption"].includes(e))));return n.url=e?.sizes?.[t]?.url||e?.media_details?.sizes?.[t]?.source_url||e.url,n})(n,k);if(y.current&&!a.caption){const{caption:e,...t}=a;a=t}var r,l,i,c;o=n.id&&n.id===p?{url:s}:{sizeSlug:(r=n,l=k,"url"in(null!==(i=r?.sizes?.[l])&&void 0!==i?i:{})||"source_url"in(null!==(c=r?.media_details?.sizes?.[l])&&void 0!==c?c:{})?k:"full")};let u,m=e.linkDestination;if(!m)switch(window?.wp?.media?.view?.settings?.defaultProps?.link||Ks){case"file":case Js:m=Js;break;case"post":case Ys:m=Ys;break;case Xs:m=Xs;break;case Ks:m=Ks}switch(m){case Js:u=n.url;break;case Ys:u=n.link}a.href=u,t({...a,...o,linkDestination:m})}function B(e){e!==s&&t({url:e,id:void 0,sizeSlug:k})}let T=((e,t)=>!e&&(0,Et.isBlobURL)(t))(p,s);(0,qe.useEffect)((()=>{if(!T)return;const e=(0,Et.getBlobByURL)(s);e&&x({filesList:[e],onFileChange:([e])=>{S(e)},allowedTypes:tc,onError:e=>{T=!1,E(e)}})}),[]),(0,qe.useEffect)((()=>{T?b(s):(0,Et.revokeBlobURL)(_)}),[T,s]);const N=im(p,s)?s:void 0,P=!!s&&(0,qe.createElement)("img",{alt:(0,Je.__)("Edit image"),title:(0,Je.__)("Edit image"),className:"edit-image-preview",src:s}),I=(0,Ye.__experimentalUseBorderProps)(e),M=it()(o,{"is-transient":_,"is-resized":!!d||!!g,[`size-${h}`]:h,"has-custom-border":!!I.className||I.style&&Object.keys(I.style).length>0}),z=(0,Ye.useBlockProps)({ref:v,className:M});return(0,qe.createElement)("figure",{...z},(_||s)&&(0,qe.createElement)(rm,{temporaryURL:_,attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:a,onReplace:r,onSelectImage:S,onSelectURL:B,onUploadError:E,containerRef:v,context:l,clientId:i,blockEditingMode:w}),!s&&"default"===w&&(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.BlockAlignmentControl,{value:m,onChange:function(e){const n=["wide","full"].includes(e)?{width:void 0,height:void 0}:{};t({...n,align:e})}})),(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:_c}),onSelect:S,onSelectURL:B,onError:E,placeholder:e=>(0,qe.createElement)(Ke.Placeholder,{className:it()("block-editor-media-placeholder",{[I.className]:!!I.className&&!n}),withIllustration:!0,icon:_c,label:(0,Je.__)("Image"),instructions:(0,Je.__)("Upload an image file, pick one from your media library, or add one with a URL."),style:n?void 0:I.style},e),accept:"image/*",allowedTypes:tc,value:{id:p,src:N},mediaPreview:P,disableMediaButtons:_||s}))};function cm(e,t){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=e;const{firstElementChild:o}=n;if(o&&"A"===o.nodeName)return o.getAttribute(t)||void 0}const um={img:{attributes:["src","alt","title"],classes:["alignleft","aligncenter","alignright","alignnone",/^wp-image-\d+$/]}},mm={from:[{type:"raw",isMatch:e=>"FIGURE"===e.nodeName&&!!e.querySelector("img"),schema:({phrasingContentSchema:e})=>({figure:{require:["img"],children:{...um,a:{attributes:["href","rel","target"],children:um},figcaption:{children:e}}}}),transform:e=>{const t=e.className+" "+e.querySelector("img").className,n=/(?:^|\s)align(left|center|right)(?:$|\s)/.exec(t),o=""===e.id?void 0:e.id,a=n?n[1]:void 0,r=/(?:^|\s)wp-image-(\d+)(?:$|\s)/.exec(t),l=r?Number(r[1]):void 0,i=e.querySelector("a"),s=i&&i.href?"custom":void 0,c=i&&i.href?i.href:void 0,u=i&&i.rel?i.rel:void 0,m=i&&i.className?i.className:void 0,p=(0,je.getBlockAttributes)("core/image",e.outerHTML,{align:a,id:l,linkDestination:s,href:c,rel:u,linkClass:m,anchor:o});return(0,je.createBlock)("core/image",p)}},{type:"files",isMatch(e){if(e.some((e=>0===e.type.indexOf("image/")))&&e.some((e=>0!==e.type.indexOf("image/")))){const{createErrorNotice:e}=(0,ut.dispatch)(Bt.store);e((0,Je.__)("If uploading to a gallery all files need to be image formats"),{id:"gallery-transform-invalid-file",type:"snackbar"})}return e.every((e=>0===e.type.indexOf("image/")))},transform(e){const t=e.map((e=>(0,je.createBlock)("core/image",{url:(0,Et.createBlobURL)(e)})));return t}},{type:"shortcode",tag:"caption",attributes:{url:{type:"string",source:"attribute",attribute:"src",selector:"img"},alt:{type:"string",source:"attribute",attribute:"alt",selector:"img"},caption:{shortcode:function(e,{shortcode:t}){const{body:n}=document.implementation.createHTMLDocument("");n.innerHTML=t.content;let o=n.querySelector("img");for(;o&&o.parentNode&&o.parentNode!==n;)o=o.parentNode;return o&&o.parentNode.removeChild(o),n.innerHTML.trim()}},href:{shortcode:(e,{shortcode:t})=>cm(t.content,"href")},rel:{shortcode:(e,{shortcode:t})=>cm(t.content,"rel")},linkClass:{shortcode:(e,{shortcode:t})=>cm(t.content,"class")},id:{type:"number",shortcode:({named:{id:e}})=>{if(e)return parseInt(e.replace("attachment_",""),10)}},align:{type:"string",shortcode:({named:{align:e="alignnone"}})=>e.replace("align","")}}}]};var pm=mm;const dm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/image",title:"Image",category:"media",usesContext:["allowResize","imageCrop","fixedHeight"],description:"Insert an image to make a visual statement.",keywords:["img","photo","picture"],textdomain:"default",attributes:{align:{type:"string"},url:{type:"string",source:"attribute",selector:"img",attribute:"src",__experimentalRole:"content"},alt:{type:"string",source:"attribute",selector:"img",attribute:"alt",default:"",__experimentalRole:"content"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},title:{type:"string",source:"attribute",selector:"img",attribute:"title",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure > a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure > a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure > a",attribute:"class"},id:{type:"number",__experimentalRole:"content"},width:{type:"string"},height:{type:"string"},aspectRatio:{type:"string"},scale:{type:"string"},sizeSlug:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure > a",attribute:"target"}},supports:{anchor:!0,behaviors:{lightbox:!0},color:{text:!1,background:!1},filter:{duotone:!0},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}}},selectors:{border:".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",filter:{duotone:".wp-block-image img, .wp-block-image .components-placeholder"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-image-editor",style:"wp-block-image"},{name:gm}=dm,hm={icon:_c,example:{attributes:{sizeSlug:"large",url:"https://s.w.org/images/core/5.3/MtBlanc1.jpg",caption:(0,Je.__)("Mont Blanc appears—still, snowy, and serene.")}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{caption:t,alt:n,url:o}=e;return o?n?n+(t?". "+t:""):t||"":(0,Je.__)("Empty")}},getEditWrapperProps(e){return{"data-align":e.align}},transforms:pm,edit:sm,save:function({attributes:e}){const{url:t,alt:n,caption:o,align:a,href:r,rel:l,linkClass:i,width:s,height:c,aspectRatio:u,scale:m,id:p,linkTarget:d,sizeSlug:g,title:h}=e,_=l||void 0,b=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),f=it()({[`align${a}`]:a,[`size-${g}`]:g,"is-resized":s||c,"has-custom-border":!!b.className||b.style&&Object.keys(b.style).length>0}),y=it()(b.className,{[`wp-image-${p}`]:!!p}),v=(0,qe.createElement)("img",{src:t,alt:n,className:y||void 0,style:{...b.style,aspectRatio:u,objectFit:m,width:s,height:c},title:h}),k=(0,qe.createElement)(qe.Fragment,null,r?(0,qe.createElement)("a",{className:i,href:r,target:d,rel:_},v):v,!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:o}));return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:f})},k)},deprecated:Ju},_m=()=>Qe({name:gm,metadata:dm,settings:hm});var bm=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"}));const fm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-comments",title:"Latest Comments",category:"widgets",description:"Display a list of your most recent comments.",keywords:["recent comments"],textdomain:"default",attributes:{commentsToShow:{type:"number",default:5,minimum:1,maximum:100},displayAvatar:{type:"boolean",default:!0},displayDate:{type:"boolean",default:!0},displayExcerpt:{type:"boolean",default:!0}},supports:{align:!0,html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-latest-comments-editor",style:"wp-block-latest-comments"},{name:ym}=fm,vm={icon:bm,example:{},edit:function({attributes:e,setAttributes:t}){const{commentsToShow:n,displayAvatar:o,displayDate:a,displayExcerpt:r}=e,l={...e,style:{...e?.style,spacing:void 0}};return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display avatar"),checked:o,onChange:()=>t({displayAvatar:!o})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display date"),checked:a,onChange:()=>t({displayDate:!a})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display excerpt"),checked:r,onChange:()=>t({displayExcerpt:!r})}),(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Number of comments"),value:n,onChange:e=>t({commentsToShow:e}),min:1,max:100,required:!0}))),(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/latest-comments",attributes:l,urlQueryArgs:{_locale:"site"}})))}},km=()=>Qe({name:ym,metadata:fm,settings:vm});var xm=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"}));const{attributes:wm}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"};var Cm=[{attributes:{...wm,categories:{type:"string"}},supports:{align:!0,html:!1},migrate:e=>({...e,categories:[{id:Number(e.categories)}]}),isEligible:({categories:e})=>e&&"string"==typeof e,save:()=>null}];var Em=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"}));const Sm={per_page:-1,context:"view"},Bm={per_page:-1,has_published_posts:["post"],context:"view"};const Tm={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/latest-posts",title:"Latest Posts",category:"widgets",description:"Display a list of your most recent posts.",keywords:["recent posts"],textdomain:"default",attributes:{categories:{type:"array",items:{type:"object"}},selectedAuthor:{type:"number"},postsToShow:{type:"number",default:5},displayPostContent:{type:"boolean",default:!1},displayPostContentRadio:{type:"string",default:"excerpt"},excerptLength:{type:"number",default:55},displayAuthor:{type:"boolean",default:!1},displayPostDate:{type:"boolean",default:!1},postLayout:{type:"string",default:"list"},columns:{type:"number",default:3},order:{type:"string",default:"desc"},orderBy:{type:"string",default:"date"},displayFeaturedImage:{type:"boolean",default:!1},featuredImageAlign:{type:"string",enum:["left","center","right"]},featuredImageSizeSlug:{type:"string",default:"thumbnail"},featuredImageSizeWidth:{type:"number",default:null},featuredImageSizeHeight:{type:"number",default:null},addLinkToFeaturedImage:{type:"boolean",default:!1}},supports:{align:!0,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-latest-posts-editor",style:"wp-block-latest-posts"},{name:Nm}=Tm,Pm={icon:xm,example:{},edit:function e({attributes:t,setAttributes:n}){var o;const a=(0,Tt.useInstanceId)(e),{postsToShow:r,order:l,orderBy:i,categories:s,selectedAuthor:c,displayFeaturedImage:u,displayPostContentRadio:m,displayPostContent:p,displayPostDate:d,displayAuthor:g,postLayout:h,columns:_,excerptLength:b,featuredImageAlign:f,featuredImageSizeSlug:y,featuredImageSizeWidth:v,featuredImageSizeHeight:k,addLinkToFeaturedImage:x}=t,{imageSizes:w,latestPosts:C,defaultImageWidth:E,defaultImageHeight:S,categoriesList:B,authorList:T}=(0,ut.useSelect)((e=>{var t,n;const{getEntityRecords:o,getUsers:a}=e(ct.store),u=e(Ye.store).getSettings(),m=s&&s.length>0?s.map((e=>e.id)):[],p=Object.fromEntries(Object.entries({categories:m,author:c,order:l,orderby:i,per_page:r,_embed:"wp:featuredmedia"}).filter((([,e])=>void 0!==e)));return{defaultImageWidth:null!==(t=u.imageDimensions?.[y]?.width)&&void 0!==t?t:0,defaultImageHeight:null!==(n=u.imageDimensions?.[y]?.height)&&void 0!==n?n:0,imageSizes:u.imageSizes,latestPosts:o("postType","post",p),categoriesList:o("taxonomy","category",Sm),authorList:a(Bm)}}),[y,r,l,i,s,c]),{createWarningNotice:N,removeNotice:P}=(0,ut.useDispatch)(Bt.store);let I;const M=e=>{e.preventDefault(),P(I),I=`block-library/core/latest-posts/redirection-prevented/${a}`,N((0,Je.__)("Links are disabled in the editor."),{id:I,type:"snackbar"})},z=w.filter((({slug:e})=>"full"!==e)).map((({name:e,slug:t})=>({value:t,label:e}))),R=null!==(o=B?.reduce(((e,t)=>({...e,[t.name]:t})),{}))&&void 0!==o?o:{},H=!!C?.length,L=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Post content")},(0,qe.createElement)(Ke.ToggleControl,{label:(0,Je.__)("Post content"),checked:p,onChange:e=>n({displayPostContent:e})}),p&&(0,qe.createElement)(Ke.RadioControl,{label:(0,Je.__)("Show:"),selected:m,options:[{label:(0,Je.__)("Excerpt"),value:"excerpt"},{label:(0,Je.__)("Full post"),value:"full_post"}],onChange:e=>n({displayPostContentRadio:e})}),p&&"excerpt"===m&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Max number of words"),value:b,onChange:e=>n({excerptLength:e}),min:10,max:100})),(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Post meta")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display author name"),checked:g,onChange:e=>n({displayAuthor:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display post date"),checked:d,onChange:e=>n({displayPostDate:e})})),(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Featured image")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display featured image"),checked:u,onChange:e=>n({displayFeaturedImage:e})}),u&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.__experimentalImageSizeControl,{onChange:e=>{const t={};e.hasOwnProperty("width")&&(t.featuredImageSizeWidth=e.width),e.hasOwnProperty("height")&&(t.featuredImageSizeHeight=e.height),n(t)},slug:y,width:v,height:k,imageWidth:E,imageHeight:S,imageSizeOptions:z,imageSizeHelp:(0,Je.__)("Select the size of the source image."),onChangeImage:e=>n({featuredImageSizeSlug:e,featuredImageSizeWidth:void 0,featuredImageSizeHeight:void 0})}),(0,qe.createElement)(Ke.BaseControl,{className:"editor-latest-posts-image-alignment-control"},(0,qe.createElement)(Ke.BaseControl.VisualLabel,null,(0,Je.__)("Image alignment")),(0,qe.createElement)(Ye.BlockAlignmentToolbar,{value:f,onChange:e=>n({featuredImageAlign:e}),controls:["left","center","right"],isCollapsed:!1})),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Add link to featured image"),checked:x,onChange:e=>n({addLinkToFeaturedImage:e})}))),(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Sorting and filtering")},(0,qe.createElement)(Ke.QueryControls,{order:l,orderBy:i,numberOfItems:r,onOrderChange:e=>n({order:e}),onOrderByChange:e=>n({orderBy:e}),onNumberOfItemsChange:e=>n({postsToShow:e}),categorySuggestions:R,onCategoryChange:e=>{if(e.some((e=>"string"==typeof e&&!R[e])))return;const t=e.map((e=>"string"==typeof e?R[e]:e));if(t.includes(null))return!1;n({categories:t})},selectedCategories:s,onAuthorChange:e=>n({selectedAuthor:""!==e?Number(e):void 0}),authorList:null!=T?T:[],selectedAuthorId:c}),"grid"===h&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:_,onChange:e=>n({columns:e}),min:2,max:H?Math.min(6,C.length):6,required:!0}))),A=(0,Ye.useBlockProps)({className:it()({"wp-block-latest-posts__list":!0,"is-grid":"grid"===h,"has-dates":d,"has-author":g,[`columns-${_}`]:"grid"===h})});if(!H)return(0,qe.createElement)("div",{...A},L,(0,qe.createElement)(Ke.Placeholder,{icon:Un,label:(0,Je.__)("Latest Posts")},Array.isArray(C)?(0,Je.__)("No posts found."):(0,qe.createElement)(Ke.Spinner,null)));const V=C.length>r?C.slice(0,r):C,D=[{icon:Em,title:(0,Je.__)("List view"),onClick:()=>n({postLayout:"list"}),isActive:"list"===h},{icon:Jc,title:(0,Je.__)("Grid view"),onClick:()=>n({postLayout:"grid"}),isActive:"grid"===h}],F=(0,ha.getSettings)().formats.date;return(0,qe.createElement)("div",null,L,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,{controls:D})),(0,qe.createElement)("ul",{...A},V.map((e=>{const t=e.title.rendered.trim();let n=e.excerpt.rendered;const o=T?.find((t=>t.id===e.author)),a=document.createElement("div");a.innerHTML=n,n=a.textContent||a.innerText||"";const{url:r,alt:l}=function(e,t){var n;const o=e._embedded?.["wp:featuredmedia"]?.[0];return{url:null!==(n=o?.media_details?.sizes?.[t]?.source_url)&&void 0!==n?n:o?.source_url,alt:o?.alt_text}}(e,y),i=it()({"wp-block-latest-posts__featured-image":!0,[`align${f}`]:!!f}),s=u&&r,c=s&&(0,qe.createElement)("img",{src:r,alt:l,style:{maxWidth:v,maxHeight:k}}),h=b<n.trim().split(" ").length&&""===e.excerpt.raw?(0,qe.createElement)(qe.Fragment,null,n.trim().split(" ",b).join(" "),(0,qe.createInterpolateElement)((0,Je.__)(" … <a>Read more</a>"),{a:(0,qe.createElement)("a",{href:e.link,rel:"noopener noreferrer",onClick:M})})):n;return(0,qe.createElement)("li",{key:e.id},s&&(0,qe.createElement)("div",{className:i},x?(0,qe.createElement)("a",{className:"wp-block-latest-posts__post-title",href:e.link,rel:"noreferrer noopener",onClick:M},c):c),(0,qe.createElement)("a",{href:e.link,rel:"noreferrer noopener",dangerouslySetInnerHTML:t?{__html:t}:void 0,onClick:M},t?null:(0,Je.__)("(no title)")),g&&o&&(0,qe.createElement)("div",{className:"wp-block-latest-posts__post-author"},(0,Je.sprintf)((0,Je.__)("by %s"),o.name)),d&&e.date_gmt&&(0,qe.createElement)("time",{dateTime:(0,ha.format)("c",e.date_gmt),className:"wp-block-latest-posts__post-date"},(0,ha.dateI18n)(F,e.date_gmt)),p&&"excerpt"===m&&(0,qe.createElement)("div",{className:"wp-block-latest-posts__post-excerpt"},h),p&&"full_post"===m&&(0,qe.createElement)("div",{className:"wp-block-latest-posts__post-full-content",dangerouslySetInnerHTML:{__html:e.content.raw.trim()}}))}))))},deprecated:Cm},Im=()=>Qe({name:Nm,metadata:Tm,settings:Pm});function Mm(e){const{values:t,start:n,reversed:o,ordered:a,type:r,...l}=e,i=document.createElement(a?"ol":"ul");i.innerHTML=t,n&&i.setAttribute("start",n),o&&i.setAttribute("reversed",!0),r&&i.setAttribute("type",r);const[s]=(0,je.rawHandler)({HTML:i.outerHTML});return[{...l,...s.attributes},s.innerBlocks]}const zm={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0},color:{gradients:!0,link:!0},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:o,reversed:a,start:r}=e,l=t?"ol":"ul";return(0,qe.createElement)(l,{...Ye.useBlockProps.save({type:o,reversed:a,start:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n,multiline:"li"}))},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}},Rm={attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},save({attributes:e}){const{ordered:t,values:n,type:o,reversed:a,start:r}=e,l=t?"ol":"ul";return(0,qe.createElement)(l,{...Ye.useBlockProps.save({type:o,reversed:a,start:r})},(0,qe.createElement)(Ye.RichText.Content,{value:n,multiline:"li"}))},migrate:Mm};var Hm=[Rm,zm];var Lm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM15.4697 14.9697L18.4393 12L15.4697 9.03033L16.5303 7.96967L20.0303 11.4697L20.5607 12L20.0303 12.5303L16.5303 16.0303L15.4697 14.9697Z"}));var Am=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-4-4.6l-4 4 4 4 1-1-3-3 3-3-1-1z"}));var Vm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 8.8h8.9V7.2H4v1.6zm0 7h8.9v-1.5H4v1.5zM18 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"}));var Dm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var Fm=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M3.8 15.8h8.9v-1.5H3.8v1.5zm0-7h8.9V7.2H3.8v1.6zm14.7-2.1V10h1V5.3l-2.2.7.3 1 .9-.3zm1.2 6.1c-.5-.6-1.2-.5-1.7-.4-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5H20v-1h-.9c.3-.6.8-1.4.9-2.1 0-.3 0-.8-.3-1.1z"}));var $m=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.1 15.8H20v-1.5h-8.9v1.5zm0-8.6v1.5H20V7.2h-8.9zM5 6.7V10h1V5.3L3.8 6l.4 1 .8-.3zm-.4 5.7c-.3.1-.5.2-.7.3l.1 1.1c.2-.2.5-.4.8-.5.3-.1.6 0 .7.1.2.3 0 .8-.2 1.1-.5.8-.9 1.6-1.4 2.5h2.7v-1h-1c.3-.6.8-1.4.9-2.1.1-.3 0-.8-.2-1.1-.5-.6-1.3-.5-1.7-.4z"})),Gm=window.wp.deprecated,Om=n.n(Gm);var Um=({setAttributes:e,reversed:t,start:n,type:o})=>(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Ordered list settings")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Start value"),type:"number",onChange:t=>{const n=parseInt(t,10);e({start:isNaN(n)?void 0:n})},value:Number.isInteger(n)?n.toString(10):"",step:"1"}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Numbering style"),options:[{value:"1",label:(0,Je.__)("Numbers")},{value:"A",label:(0,Je.__)("Uppercase letters")},{value:"a",label:(0,Je.__)("Lowercase letters")},{value:"I",label:(0,Je.__)("Uppercase Roman numerals")},{value:"i",label:(0,Je.__)("Lowercase Roman numerals")}],value:o,onChange:t=>e({type:t})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Reverse list numbering"),checked:t||!1,onChange:t=>{e({reversed:t||void 0})}})));var jm=(0,qe.forwardRef)((function(e,t){const{ordered:n,...o}=e,a=n?"ol":"ul";return(0,qe.createElement)(a,{ref:t,...o})}));const qm=[["core/list-item"]];function Wm({clientId:e}){const[t,n]=function(e){const{canOutdent:t}=(0,ut.useSelect)((t=>{const{getBlockRootClientId:n,getBlock:o}=t(Ye.store),a=n(e);return{canOutdent:!!a&&"core/list-item"===o(a).name}}),[e]),{replaceBlocks:n,selectionChange:o}=(0,ut.useDispatch)(Ye.store),{getBlockRootClientId:a,getBlockAttributes:r,getBlock:l}=(0,ut.useSelect)(Ye.store);return[t,(0,qe.useCallback)((()=>{const t=a(e),i=r(t),s=(0,je.createBlock)("core/list-item",i),{innerBlocks:c}=l(e);n([t],[s,...c]),o(c[c.length-1].clientId)}),[e])]}(e);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?Lm:Am,title:(0,Je.__)("Outdent"),describedBy:(0,Je.__)("Outdent list item"),disabled:!t,onClick:n}))}function Zm({phrasingContentSchema:e}){const t={...e,ul:{},ol:{attributes:["type","start","reversed"]}};return["ul","ol"].forEach((e=>{t[e].children={li:{children:t}}})),t}function Qm(e){return e.flatMap((({name:e,attributes:t,innerBlocks:n=[]})=>"core/list-item"===e?[t.content,...Qm(n)]:Qm(n)))}const Km={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph","core/heading"],transform:e=>{let t=[];if(e.length>1)t=e.map((({content:e})=>(0,je.createBlock)("core/list-item",{content:e})));else if(1===e.length){const n=(0,Cn.create)({html:e[0].content});t=(0,Cn.split)(n,"\n").map((e=>(0,je.createBlock)("core/list-item",{content:(0,Cn.toHTMLString)({value:e})})))}return(0,je.createBlock)("core/list",{anchor:e.anchor},t)}},{type:"raw",selector:"ol,ul",schema:e=>({ol:Zm(e).ol,ul:Zm(e).ul}),transform:function e(t){var n;const o={ordered:"OL"===t.tagName,anchor:""===t.id?void 0:t.id,start:t.getAttribute("start")?parseInt(t.getAttribute("start"),10):void 0,reversed:!!t.hasAttribute("reversed")||void 0,type:null!==(n=t.getAttribute("type"))&&void 0!==n?n:void 0},a=Array.from(t.children).map((t=>{const n=Array.from(t.childNodes).filter((e=>e.nodeType!==e.TEXT_NODE||0!==e.textContent.trim().length));n.reverse();const[o,...a]=n;if(!("UL"===o?.tagName||"OL"===o?.tagName))return(0,je.createBlock)("core/list-item",{content:t.innerHTML});const r=a.map((e=>e.nodeType===e.TEXT_NODE?e.textContent:e.outerHTML));r.reverse();const l={content:r.join("").trim()},i=[e(o)];return(0,je.createBlock)("core/list-item",l,i)}));return(0,je.createBlock)("core/list",o,a)}},...["*","-"].map((e=>({type:"prefix",prefix:e,transform(e){return(0,je.createBlock)("core/list",{},[(0,je.createBlock)("core/list-item",{content:e})])}}))),...["1.","1)"].map((e=>({type:"prefix",prefix:e,transform(e){return(0,je.createBlock)("core/list",{ordered:!0},[(0,je.createBlock)("core/list-item",{content:e})])}})))],to:[...["core/paragraph","core/heading"].map((e=>({type:"block",blocks:[e],transform:(t,n)=>Qm(n).map((t=>(0,je.createBlock)(e,{content:t})))})))]};var Jm=Km;const Ym={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:Xm}=Ym,ep={icon:Em,example:{innerBlocks:[{name:"core/list-item",attributes:{content:(0,Je.__)("Alice.")}},{name:"core/list-item",attributes:{content:(0,Je.__)("The White Rabbit.")}},{name:"core/list-item",attributes:{content:(0,Je.__)("The Cheshire Cat.")}},{name:"core/list-item",attributes:{content:(0,Je.__)("The Mad Hatter.")}},{name:"core/list-item",attributes:{content:(0,Je.__)("The Queen of Hearts.")}}]},transforms:Jm,edit:function({attributes:e,setAttributes:t,clientId:n,style:o}){const a=(0,Ye.useBlockProps)({...qe.Platform.isNative&&{style:o}}),r=(0,Ye.useInnerBlocksProps)(a,{allowedBlocks:["core/list-item"],template:qm,templateLock:!1,templateInsertUpdatesSelection:!0,...qe.Platform.isNative&&{marginVertical:8,marginHorizontal:8,renderAppender:!1}});!function(e,t){const n=(0,ut.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:a}=(0,ut.useDispatch)(Ye.store);(0,qe.useEffect)((()=>{if(!e.values)return;const[r,l]=Mm(e);Om()("Value attribute on the list block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),n.batch((()=>{o(t,r),a(t,l)}))}),[e.values])}(e,n);const{ordered:l,type:i,reversed:s,start:c}=e,u=(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?Vm:Dm,title:(0,Je.__)("Unordered"),describedBy:(0,Je.__)("Convert to unordered list"),isActive:!1===l,onClick:()=>{t({ordered:!1})}}),(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?Fm:$m,title:(0,Je.__)("Ordered"),describedBy:(0,Je.__)("Convert to ordered list"),isActive:!0===l,onClick:()=>{t({ordered:!0})}}),(0,qe.createElement)(Wm,{clientId:n}));return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(jm,{ordered:l,reversed:s,start:c,type:i,...r}),u,l&&(0,qe.createElement)(Um,{setAttributes:t,reversed:s,start:c,type:i}))},save:function({attributes:e}){const{ordered:t,type:n,reversed:o,start:a}=e,r=t?"ol":"ul";return(0,qe.createElement)(r,{...Ye.useBlockProps.save({type:n,reversed:o,start:a})},(0,qe.createElement)(Ye.InnerBlocks.Content,null))},deprecated:Hm},tp=()=>Qe({name:Xm,metadata:Ym,settings:ep});var np=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 11v1.5h8V11h-8zm-6-1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}));var op=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M20 5.5H4V4H20V5.5ZM12 12.5H4V11H12V12.5ZM20 20V18.5H4V20H20ZM20.0303 9.03033L17.0607 12L20.0303 14.9697L18.9697 16.0303L15.4697 12.5303L14.9393 12L15.4697 11.4697L18.9697 7.96967L20.0303 9.03033Z"}));var ap=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 7.2v1.5h16V7.2H4zm8 8.6h8v-1.5h-8v1.5zm-8-3.5l3 3-3 3 1 1 4-4-4-4-1 1z"}));function rp(e){const t=(0,ut.useSelect)((t=>t(Ye.store).getBlockIndex(e)>0),[e]),{replaceBlocks:n,selectionChange:o,multiSelect:a}=(0,ut.useDispatch)(Ye.store),{getBlock:r,getPreviousBlockClientId:l,getSelectionStart:i,getSelectionEnd:s,hasMultiSelection:c,getMultiSelectedBlockClientIds:u}=(0,ut.useSelect)(Ye.store);return[t,(0,qe.useCallback)((()=>{const t=c(),m=t?u():[e],p=m.map((e=>(0,je.cloneBlock)(r(e)))),d=l(e),g=(0,je.cloneBlock)(r(d));g.innerBlocks?.length||(g.innerBlocks=[(0,je.createBlock)("core/list")]),g.innerBlocks[g.innerBlocks.length-1].innerBlocks.push(...p);const h=i(),_=s();n([d,...m],[g]),t?a(p[0].clientId,p[p.length-1].clientId):o(p[0].clientId,_.attributeKey,_.clientId===h.clientId?h.offset:_.offset,_.offset)}),[e])]}const{name:lp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}};function ip(e){const t=(0,ut.useRegistry)(),{canOutdent:n}=(0,ut.useSelect)((t=>{const{getBlockRootClientId:n,getBlockName:o}=t(Ye.store);return{canOutdent:o(n(n(e)))===lp}}),[e]),{moveBlocksToPosition:o,removeBlock:a,insertBlock:r,updateBlockListSettings:l}=(0,ut.useDispatch)(Ye.store),{getBlockRootClientId:i,getBlockName:s,getBlockOrder:c,getBlockIndex:u,getSelectedBlockClientIds:m,getBlock:p,getBlockListSettings:d}=(0,ut.useSelect)(Ye.store);return[n,(0,qe.useCallback)(((e=m())=>{if(Array.isArray(e)||(e=[e]),!e.length)return;const n=e[0];if(s(n)!==lp)return;const g=function(e){const t=i(e),n=i(t);if(n&&s(n)===lp)return n}(n);if(!g)return;const h=i(n),_=e[e.length-1],b=c(h).slice(u(_)+1);t.batch((()=>{if(b.length){let e=c(n)[0];if(!e){const t=(0,je.cloneBlock)(p(h),{},[]);e=t.clientId,r(t,0,n,!1),l(e,d(h))}o(b,h,e)}if(o(e,h,i(g),u(g)+1),!c(h).length){a(h,!1)}}))}),[])]}function sp(e){const{getBlockRootClientId:t,getBlockName:n,getBlockAttributes:o}=(0,ut.useSelect)(Ye.store);return(0,Tt.useRefEffect)((a=>{function r(a){if(a.clipboardData.getData("__unstableWrapperBlockName"))return;const r=t(e);a.clipboardData.setData("__unstableWrapperBlockName",n(r)),a.clipboardData.setData("__unstableWrapperBlockAttributes",JSON.stringify(o(r)))}return a.addEventListener("copy",r),a.addEventListener("cut",r),()=>{a.removeEventListener("copy",r),a.removeEventListener("cut",r)}}),[])}const{name:cp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}};function up(e,t){const n=(0,ut.useRegistry)(),{getPreviousBlockClientId:o,getNextBlockClientId:a,getBlockOrder:r,getBlockRootClientId:l,getBlockName:i}=(0,ut.useSelect)(Ye.store),{mergeBlocks:s,moveBlocksToPosition:c}=(0,ut.useDispatch)(Ye.store),[,u]=ip(e);function m(e){const t=r(e);return t.length?m(t[t.length-1]):e}function p(e){const t=l(e),n=l(t);if(n&&i(n)===cp)return n}function d(e){const t=a(e);if(t)return t;const n=p(e);return n?d(n):void 0}function g(e){const t=r(e);return t.length?r(t[0])[0]:d(e)}return a=>{if(a){const l=g(e);if(!l)return void t(a);p(l)?u(l):n.batch((()=>{c(r(l),l,o(l)),s(e,l)}))}else{const l=o(e);if(p(e))u(e);else if(l){const t=m(l);n.batch((()=>{c(r(e),e,l),s(t,e)}))}else t(a)}}}const{name:mp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:pp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list",title:"List",category:"text",description:"Create a bulleted or numbered list.",keywords:["bullet list","ordered list","numbered list"],textdomain:"default",attributes:{ordered:{type:"boolean",default:!1,__experimentalRole:"content"},values:{type:"string",source:"html",selector:"ol,ul",multiline:"li",__unstableMultilineWrapperTags:["ol","ul"],default:"",__experimentalRole:"content"},type:{type:"string"},start:{type:"number"},reversed:{type:"boolean"},placeholder:{type:"string"}},supports:{anchor:!0,className:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__unstablePasteTextInline:!0,__experimentalSelector:"ol,ul",__experimentalSlashInserter:!0},editorStyle:"wp-block-list-editor",style:"wp-block-list"},{name:dp}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"};function gp(e){const t=(0,je.switchToBlockType)(e,pp);if(t)return t;const n=(0,je.switchToBlockType)(e,dp);return n?(0,je.switchToBlockType)(n,pp):null}function hp({clientId:e}){const[t,n]=rp(e),[o,a]=ip(e);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?Lm:Am,title:(0,Je.__)("Outdent"),describedBy:(0,Je.__)("Outdent list item"),disabled:!o,onClick:()=>a()}),(0,qe.createElement)(Ke.ToolbarButton,{icon:(0,Je.isRTL)()?op:ap,title:(0,Je.__)("Indent"),describedBy:(0,Je.__)("Indent list item"),isDisabled:!t,onClick:()=>n()}))}const _p={to:[{type:"block",blocks:["core/paragraph"],transform:(e,t=[])=>[(0,je.createBlock)("core/paragraph",e),...t.map((e=>(0,je.cloneBlock)(e)))]}]};var bp=_p;const fp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/list-item",title:"List item",category:"text",parent:["core/list"],description:"Create a list item.",textdomain:"default",attributes:{placeholder:{type:"string"},content:{type:"string",source:"html",selector:"li",default:"",__experimentalRole:"content"}},supports:{className:!1,__experimentalSelector:"li",typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:yp}=fp,vp={icon:np,edit:function({attributes:e,setAttributes:t,onReplace:n,clientId:o,mergeBlocks:a}){const{placeholder:r,content:l}=e,i=(0,Ye.useBlockProps)({ref:sp(o)}),s=(0,Ye.useInnerBlocksProps)(i,{allowedBlocks:["core/list"],renderAppender:!1,__unstableDisableDropZone:!0}),c=function(e){const{replaceBlocks:t,selectionChange:n}=(0,ut.useDispatch)(Ye.store),{getBlock:o,getBlockRootClientId:a,getBlockIndex:r}=(0,ut.useSelect)(Ye.store),l=(0,qe.useRef)(e);l.current=e;const[i,s]=ip(l.current.clientId);return(0,Tt.useRefEffect)((e=>{function c(e){if(e.defaultPrevented||e.keyCode!==un.ENTER)return;const{content:c,clientId:u}=l.current;if(c.length)return;if(e.preventDefault(),i)return void s();const m=o(a(u)),p=r(u),d=(0,je.cloneBlock)({...m,innerBlocks:m.innerBlocks.slice(0,p)}),g=(0,je.createBlock)((0,je.getDefaultBlockName)()),h=[...m.innerBlocks[p].innerBlocks[0]?.innerBlocks||[],...m.innerBlocks.slice(p+1)],_=h.length?[(0,je.cloneBlock)({...m,innerBlocks:h})]:[];t(m.clientId,[d,g,..._],1),n(g.clientId)}return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}),[i])}({content:l,clientId:o}),u=function(e){const{getSelectionStart:t,getSelectionEnd:n}=(0,ut.useSelect)(Ye.store),[o,a]=rp(e);return(0,Tt.useRefEffect)((e=>{function r(e){const{keyCode:r,shiftKey:l,altKey:i,metaKey:s,ctrlKey:c}=e;if(e.defaultPrevented||!o||r!==un.SPACE||l||i||s||c)return;const u=t(),m=n();0===u.offset&&0===m.offset&&(e.preventDefault(),a())}return e.addEventListener("keydown",r),()=>{e.removeEventListener("keydown",r)}}),[o,a])}(o),m=function(e){const t=(0,qe.useRef)(!1),{getBlock:n}=(0,ut.useSelect)(Ye.store);return(0,qe.useCallback)((o=>{const a=n(e);return t.current?(0,je.cloneBlock)(a,{content:o}):(t.current=!0,(0,je.createBlock)(a.name,{...a.attributes,content:o}))}),[e,n])}(o),p=up(o,a);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("li",{...s},(0,qe.createElement)(Ye.RichText,{ref:(0,Tt.useMergeRefs)([c,u]),identifier:"content",tagName:"div",onChange:e=>t({content:e}),value:l,"aria-label":(0,Je.__)("List text"),placeholder:r||(0,Je.__)("List"),onSplit:m,onMerge:p,onReplace:n?(e,...t)=>{n(function(e){const t=[];for(let n of e)if(n.name===mp)t.push(n);else if(n.name===pp)t.push(...n.innerBlocks);else if(n=gp(n))for(const{innerBlocks:e}of n)t.push(...e);return t}(e),...t)}:void 0}),s.children),(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(hp,{clientId:o})))},save:function({attributes:e}){return(0,qe.createElement)("li",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.RichText.Content,{value:e.content}),(0,qe.createElement)(Ye.InnerBlocks.Content,null))},merge(e,t){return{...e,content:e.content+t.content}},transforms:bp},kp=()=>Qe({name:yp,metadata:fp,settings:vp});var xp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11 14.5l1.1 1.1 3-3 .5-.5-.6-.6-3-3-1 1 1.7 1.7H5v1.5h7.7L11 14.5zM16.8 5h-7c-1.1 0-2 .9-2 2v1.5h1.5V7c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v10c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5v-1.5H7.8V17c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2z"}));const wp={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/loginout",title:"Login/out",category:"theme",description:"Show login & logout links.",keywords:["login","logout","form"],textdomain:"default",attributes:{displayLoginAsForm:{type:"boolean",default:!1},redirectToCurrent:{type:"boolean",default:!0}},supports:{className:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Cp}=wp,Ep={icon:xp,edit:function({attributes:e,setAttributes:t}){const{displayLoginAsForm:n,redirectToCurrent:o}=e;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display login as form"),checked:n,onChange:()=>t({displayLoginAsForm:!n})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Redirect to current URL"),checked:o,onChange:()=>t({redirectToCurrent:!o})}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:"logged-in"})},(0,qe.createElement)("a",{href:"#login-pseudo-link"},(0,Je.__)("Log out"))))}},Sp=()=>Qe({name:Cp,metadata:wp,settings:Ep});var Bp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M3 6v11.5h8V6H3Zm11 3h7V7.5h-7V9Zm7 3.5h-7V11h7v1.5ZM14 16h7v-1.5h-7V16Z"}));const Tp="full",Np="media",Pp="attachment",Ip=[["core/paragraph",{placeholder:(0,Je._x)("Content…","content placeholder")}]],Mp=(e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${100*t.x}% ${100*t.y}%`:"50% 50%"}:{},zp=50,Rp=()=>{},Hp=e=>{if(!e.customBackgroundColor)return e;const t={color:{background:e.customBackgroundColor}},{customBackgroundColor:n,...o}=e;return{...o,style:t}},Lp=e=>e.align?e:{...e,align:"wide"},Ap={align:{type:"string",default:"wide"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:""},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number"},mediaType:{type:"string"},mediaWidth:{type:"number",default:50},isStackedOnMobile:{type:"boolean",default:!0}},Vp={...Ap,mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaSizeSlug:{type:"string"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},Dp={anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0}},Fp={attributes:{...Vp,mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",__experimentalRole:"content"},mediaId:{type:"number",__experimentalRole:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",__experimentalRole:"content"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",__experimentalRole:"content"},mediaType:{type:"string",__experimentalRole:"content"}},supports:{...Dp,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:a,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:u,linkClass:m,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Tp,_=g||void 0,b=it()({[`wp-image-${i}`]:i&&"image"===a,[`size-${h}`]:i&&"image"===a});let f=(0,qe.createElement)("img",{src:r,alt:n,className:b||null});p&&(f=(0,qe.createElement)("a",{className:m,href:p,target:d,rel:_},f));const y={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:r})},v=it()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?((e,t)=>e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{})(r,u):{};let x;l!==zp&&(x="right"===o?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===o?(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:v,style:w})},(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(y[a]||Rp)())):(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:v,style:w})},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(y[a]||Rp)()),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Lp,isEligible(e,t,{block:n}){const{attributes:o}=n;return void 0===e.align&&!!o.className?.includes("alignwide")}},$p={attributes:Vp,supports:Dp,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:a,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:u,linkClass:m,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Tp,_=g||void 0,b=it()({[`wp-image-${i}`]:i&&"image"===a,[`size-${h}`]:i&&"image"===a});let f=(0,qe.createElement)("img",{src:r,alt:n,className:b||null});p&&(f=(0,qe.createElement)("a",{className:m,href:p,target:d,rel:_},f));const y={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:r})},v=it()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Mp(r,u):{};let x;l!==zp&&(x="right"===o?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===o?(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:v,style:w})},(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(y[a]||Rp)())):(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:v,style:w})},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(y[a]||Rp)()),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Lp},Gp={attributes:Vp,supports:Dp,save({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:a,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:u,linkClass:m,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Tp,_=g||void 0,b=it()({[`wp-image-${i}`]:i&&"image"===a,[`size-${h}`]:i&&"image"===a});let f=(0,qe.createElement)("img",{src:r,alt:n,className:b||null});p&&(f=(0,qe.createElement)("a",{className:m,href:p,target:d,rel:_},f));const y={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:r})},v=it()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Mp(r,u):{};let x;l!==zp&&(x="right"===o?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:v,style:w})},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(y[a]||Rp)()),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},migrate:Lp},Op={attributes:{...Ap,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,Tt.compose)(Hp,Lp),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:a,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s,mediaId:c,verticalAlignment:u,imageFill:m,focalPoint:p,linkClass:d,href:g,linkTarget:h,rel:_}=e,b=_||void 0;let f=(0,qe.createElement)("img",{src:i,alt:a,className:c&&"image"===l?`wp-image-${c}`:null});g&&(f=(0,qe.createElement)("a",{className:d,href:g,target:h,rel:b},f));const y={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:i})},v=(0,Ye.getColorClassName)("background-color",t),k=it()({"has-media-on-the-right":"right"===r,"has-background":v||n,[v]:v,"is-stacked-on-mobile":o,[`is-vertically-aligned-${u}`]:u,"is-image-fill":m}),x=m?Mp(i,p):{};let w;s!==zp&&(w="right"===r?`auto ${s}%`:`${s}% auto`);const C={backgroundColor:v?void 0:n,gridTemplateColumns:w};return(0,qe.createElement)("div",{className:k,style:C},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:x},(y[l]||Rp)()),(0,qe.createElement)("div",{className:"wp-block-media-text__content"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},Up={attributes:{...Ap,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"}},migrate:(0,Tt.compose)(Hp,Lp),save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:a,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s,mediaId:c,verticalAlignment:u,imageFill:m,focalPoint:p}=e,d={image:()=>(0,qe.createElement)("img",{src:i,alt:a,className:c&&"image"===l?`wp-image-${c}`:null}),video:()=>(0,qe.createElement)("video",{controls:!0,src:i})},g=(0,Ye.getColorClassName)("background-color",t),h=it()({"has-media-on-the-right":"right"===r,[g]:g,"is-stacked-on-mobile":o,[`is-vertically-aligned-${u}`]:u,"is-image-fill":m}),_=m?Mp(i,p):{};let b;s!==zp&&(b="right"===r?`auto ${s}%`:`${s}% auto`);const f={backgroundColor:g?void 0:n,gridTemplateColumns:b};return(0,qe.createElement)("div",{className:h,style:f},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:_},(d[l]||Rp)()),(0,qe.createElement)("div",{className:"wp-block-media-text__content"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}},jp={attributes:{...Ap,backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src"}},migrate:Lp,save({attributes:e}){const{backgroundColor:t,customBackgroundColor:n,isStackedOnMobile:o,mediaAlt:a,mediaPosition:r,mediaType:l,mediaUrl:i,mediaWidth:s}=e,c={image:()=>(0,qe.createElement)("img",{src:i,alt:a}),video:()=>(0,qe.createElement)("video",{controls:!0,src:i})},u=(0,Ye.getColorClassName)("background-color",t),m=it()({"has-media-on-the-right":"right"===r,[u]:u,"is-stacked-on-mobile":o});let p;s!==zp&&(p="right"===r?`auto ${s}%`:`${s}% auto`);const d={backgroundColor:u?void 0:n,gridTemplateColumns:p};return(0,qe.createElement)("div",{className:m,style:d},(0,qe.createElement)("figure",{className:"wp-block-media-text__media"},(c[l]||Rp)()),(0,qe.createElement)("div",{className:"wp-block-media-text__content"},(0,qe.createElement)(Ye.InnerBlocks.Content,null)))}};var qp=[Fp,$p,Gp,Op,Up,jp];var Wp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 18h6V6H4v12zm9-9.5V10h7V8.5h-7zm0 7h7V14h-7v1.5z"}));var Zp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14 6v12h6V6h-6zM4 10h7V8.5H4V10zm0 5.5h7V14H4v1.5z"}));var Qp=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"}));const Kp=["image","video"],Jp=()=>{};function Yp(e,t){return e?{backgroundImage:`url(${e})`,backgroundPosition:t?`${Math.round(100*t.x)}% ${Math.round(100*t.y)}%`:"50% 50%"}:{}}const Xp=(0,qe.forwardRef)((({isSelected:e,isStackedOnMobile:t,...n},o)=>{const a=(0,Tt.useViewportMatch)("small","<");return(0,qe.createElement)(Ke.ResizableBox,{ref:o,showHandle:e&&(!a||!t),...n})}));function ed({mediaId:e,mediaUrl:t,onSelectMedia:n}){return(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:e,mediaURL:t,allowedTypes:Kp,accept:"image/*,video/*",onSelect:n}))}function td({className:e,mediaUrl:t,onSelectMedia:n}){const{createErrorNotice:o}=(0,ut.useDispatch)(Bt.store);return(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Qp}),labels:{title:(0,Je.__)("Media area")},className:e,onSelect:n,accept:"image/*,video/*",allowedTypes:Kp,onError:e=>{o(e,{type:"snackbar"})},disableMediaButtons:t})}var nd=(0,qe.forwardRef)((function(e,t){const{className:n,commitWidthChange:o,focalPoint:a,imageFill:r,isSelected:l,isStackedOnMobile:i,mediaAlt:s,mediaId:c,mediaPosition:u,mediaType:m,mediaUrl:p,mediaWidth:d,onSelectMedia:g,onWidthChange:h,enableResize:_}=e,b=!c&&(0,Et.isBlobURL)(p),{toggleSelection:f}=(0,ut.useDispatch)(Ye.store);if(p){const y=()=>{f(!1)},v=(e,t,n)=>{h(parseInt(n.style.width))},k=(e,t,n)=>{f(!0),o(parseInt(n.style.width))},x={right:_&&"left"===u,left:_&&"right"===u},w="image"===m&&r?Yp(p,a):{},C={image:()=>(0,qe.createElement)("img",{src:p,alt:s}),video:()=>(0,qe.createElement)("video",{controls:!0,src:p})};return(0,qe.createElement)(Xp,{as:"figure",className:it()(n,"editor-media-container__resizer",{"is-transient":b}),style:w,size:{width:d+"%"},minWidth:"10%",maxWidth:"100%",enable:x,onResizeStart:y,onResize:v,onResizeStop:k,axis:"x",isSelected:l,isStackedOnMobile:i,ref:t},(0,qe.createElement)(ed,{onSelectMedia:g,mediaUrl:p,mediaId:c}),(C[m]||Jp)(),b&&(0,qe.createElement)(Ke.Spinner,null),(0,qe.createElement)(td,{...e}))}return(0,qe.createElement)(td,{...e})}));const{useBlockEditingMode:od}=Yt(Ye.privateApis),ad=e=>Math.max(15,Math.min(e,85));function rd(e,t){return e?.media_details?.sizes?.[t]?.source_url}var ld=function({attributes:e,isSelected:t,setAttributes:n}){const{focalPoint:o,href:a,imageFill:r,isStackedOnMobile:l,linkClass:i,linkDestination:s,linkTarget:c,mediaAlt:u,mediaId:m,mediaPosition:p,mediaType:d,mediaUrl:g,mediaWidth:h,rel:_,verticalAlignment:b,allowedBlocks:f}=e,y=e.mediaSizeSlug||Tp,{imageSizes:v,image:k}=(0,ut.useSelect)((e=>{const{getSettings:n}=e(Ye.store);return{image:m&&t?e(ct.store).getMedia(m,{context:"view"}):null,imageSizes:n()?.imageSizes}}),[t,m]),x=(0,qe.useRef)(),w=e=>{const{style:t}=x.current.resizable,{x:n,y:o}=e;t.backgroundPosition=`${100*n}% ${100*o}%`},[C,E]=(0,qe.useState)(null),S=function({attributes:{linkDestination:e,href:t},setAttributes:n}){return o=>{if(!o||!o.url)return void n({mediaAlt:void 0,mediaId:void 0,mediaType:void 0,mediaUrl:void 0,mediaLink:void 0,href:void 0,focalPoint:void 0});let a,r;(0,Et.isBlobURL)(o.url)&&(o.type=(0,Et.getBlobTypeByURL)(o.url)),a=o.media_type?"image"===o.media_type?"image":"video":o.type,"image"===a&&(r=o.sizes?.large?.url||o.media_details?.sizes?.large?.source_url);let l=t;e===Np&&(l=o.url),e===Pp&&(l=o.link),n({mediaAlt:o.alt,mediaId:o.id,mediaType:a,mediaUrl:r||o.url,mediaLink:o.link||void 0,href:l,focalPoint:void 0})}}({attributes:e,setAttributes:n}),B=e=>{n({mediaWidth:ad(e)}),E(null)},T=it()({"has-media-on-the-right":"right"===p,"is-selected":t,"is-stacked-on-mobile":l,[`is-vertically-aligned-${b}`]:b,"is-image-fill":r}),N=`${C||h}%`,P="right"===p?`1fr ${N}`:`${N} 1fr`,I={gridTemplateColumns:P,msGridColumns:P},M=v.filter((({slug:e})=>rd(k,e))).map((({name:e,slug:t})=>({value:t,label:e}))),z=(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Stack on mobile"),checked:l,onChange:()=>n({isStackedOnMobile:!l})}),"image"===d&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Crop image to fill entire column"),checked:r,onChange:()=>n({imageFill:!r})}),r&&g&&"image"===d&&(0,qe.createElement)(Ke.FocalPointPicker,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Focal point picker"),url:g,value:o,onChange:e=>n({focalPoint:e}),onDragStart:w,onDrag:w}),"image"===d&&(0,qe.createElement)(Ke.TextareaControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Alternative text"),value:u,onChange:e=>{n({mediaAlt:e})},help:(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ExternalLink,{href:"https://www.w3.org/WAI/tutorials/images/decision-tree"},(0,Je.__)("Describe the purpose of the image.")),(0,qe.createElement)("br",null),(0,Je.__)("Leave empty if decorative."))}),"image"===d&&(0,qe.createElement)(Ye.__experimentalImageSizeControl,{onChangeImage:e=>{const t=rd(k,e);if(!t)return null;n({mediaUrl:t,mediaSizeSlug:e})},slug:y,imageSizeOptions:M,isResizable:!1,imageSizeHelp:(0,Je.__)("Select the size of the source image.")}),g&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Media width"),value:C||h,onChange:B,min:15,max:85})),R=(0,Ye.useBlockProps)({className:T,style:I}),H=(0,Ye.useInnerBlocksProps)({className:"wp-block-media-text__content"},{template:Ip,allowedBlocks:f}),L=od();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,z),(0,qe.createElement)(Ye.BlockControls,{group:"block"},"default"===L&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockVerticalAlignmentControl,{onChange:e=>{n({verticalAlignment:e})},value:b}),(0,qe.createElement)(Ke.ToolbarButton,{icon:Wp,title:(0,Je.__)("Show media on left"),isActive:"left"===p,onClick:()=>n({mediaPosition:"left"})}),(0,qe.createElement)(Ke.ToolbarButton,{icon:Zp,title:(0,Je.__)("Show media on right"),isActive:"right"===p,onClick:()=>n({mediaPosition:"right"})})),"image"===d&&(0,qe.createElement)(Ye.__experimentalImageURLInputUI,{url:a||"",onChangeUrl:e=>{n(e)},linkDestination:s,mediaType:d,mediaUrl:k&&k.source_url,mediaLink:k&&k.link,linkTarget:c,linkClass:i,rel:_})),(0,qe.createElement)("div",{...R},"right"===p&&(0,qe.createElement)("div",{...H}),(0,qe.createElement)(nd,{className:"wp-block-media-text__media",onSelectMedia:S,onWidthChange:e=>{E(ad(e))},commitWidthChange:B,ref:x,enableResize:"default"===L,focalPoint:o,imageFill:r,isSelected:t,isStackedOnMobile:l,mediaAlt:u,mediaId:m,mediaPosition:p,mediaType:d,mediaUrl:g,mediaWidth:h}),"right"!==p&&(0,qe.createElement)("div",{...H})))};const id=()=>{};const sd={from:[{type:"block",blocks:["core/image"],transform:({alt:e,url:t,id:n,anchor:o})=>(0,je.createBlock)("core/media-text",{mediaAlt:e,mediaId:n,mediaUrl:t,mediaType:"image",anchor:o})},{type:"block",blocks:["core/video"],transform:({src:e,id:t,anchor:n})=>(0,je.createBlock)("core/media-text",{mediaId:t,mediaUrl:e,mediaType:"video",anchor:n})},{type:"block",blocks:["core/cover"],transform:({align:e,alt:t,anchor:n,backgroundType:o,customGradient:a,customOverlayColor:r,gradient:l,id:i,overlayColor:s,style:c,textColor:u,url:m},p)=>{let d={};return a?d={style:{color:{gradient:a}}}:r&&(d={style:{color:{background:r}}}),c?.color?.text&&(d.style={color:{...d.style?.color,text:c.color.text}}),(0,je.createBlock)("core/media-text",{align:e,anchor:n,backgroundColor:s,gradient:l,mediaAlt:t,mediaId:i,mediaType:o,mediaUrl:m,textColor:u,...d},p)}}],to:[{type:"block",blocks:["core/image"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"image"===e,transform:({mediaAlt:e,mediaId:t,mediaUrl:n,anchor:o})=>(0,je.createBlock)("core/image",{alt:e,id:t,url:n,anchor:o})},{type:"block",blocks:["core/video"],isMatch:({mediaType:e,mediaUrl:t})=>!t||"video"===e,transform:({mediaId:e,mediaUrl:t,anchor:n})=>(0,je.createBlock)("core/video",{id:e,src:t,anchor:n})},{type:"block",blocks:["core/cover"],transform:({align:e,anchor:t,backgroundColor:n,focalPoint:o,gradient:a,mediaAlt:r,mediaId:l,mediaType:i,mediaUrl:s,style:c,textColor:u},m)=>{const p={};c?.color?.gradient?p.customGradient=c.color.gradient:c?.color?.background&&(p.customOverlayColor=c.color.background),c?.color?.text&&(p.style={color:{text:c.color.text}});const d={align:e,alt:r,anchor:t,backgroundType:i,dimRatio:s?50:100,focalPoint:o,gradient:a,id:l,overlayColor:n,textColor:u,url:s,...p};return(0,je.createBlock)("core/cover",d,m)}}]};var cd=sd;const ud={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/media-text",title:"Media & Text",category:"media",description:"Set media and words side-by-side for a richer layout.",keywords:["image","video"],textdomain:"default",attributes:{align:{type:"string",default:"none"},mediaAlt:{type:"string",source:"attribute",selector:"figure img",attribute:"alt",default:"",__experimentalRole:"content"},mediaPosition:{type:"string",default:"left"},mediaId:{type:"number",__experimentalRole:"content"},mediaUrl:{type:"string",source:"attribute",selector:"figure video,figure img",attribute:"src",__experimentalRole:"content"},mediaLink:{type:"string"},linkDestination:{type:"string"},linkTarget:{type:"string",source:"attribute",selector:"figure a",attribute:"target"},href:{type:"string",source:"attribute",selector:"figure a",attribute:"href",__experimentalRole:"content"},rel:{type:"string",source:"attribute",selector:"figure a",attribute:"rel"},linkClass:{type:"string",source:"attribute",selector:"figure a",attribute:"class"},mediaType:{type:"string",__experimentalRole:"content"},mediaWidth:{type:"number",default:50},mediaSizeSlug:{type:"string"},isStackedOnMobile:{type:"boolean",default:!0},verticalAlignment:{type:"string"},imageFill:{type:"boolean"},focalPoint:{type:"object"},allowedBlocks:{type:"array"}},supports:{anchor:!0,align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-media-text-editor",style:"wp-block-media-text"},{name:md}=ud,pd={icon:Bp,example:{viewportWidth:601,attributes:{mediaType:"image",mediaUrl:"https://s.w.org/images/core/5.3/Biologia_Centrali-Americana_-_Cantorchilus_semibadius_1902.jpg"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("The wren<br>Earns his living<br>Noiselessly.")}},{name:"core/paragraph",attributes:{content:(0,Je.__)("— Kobayashi Issa (一茶)")}}]},transforms:cd,edit:ld,save:function({attributes:e}){const{isStackedOnMobile:t,mediaAlt:n,mediaPosition:o,mediaType:a,mediaUrl:r,mediaWidth:l,mediaId:i,verticalAlignment:s,imageFill:c,focalPoint:u,linkClass:m,href:p,linkTarget:d,rel:g}=e,h=e.mediaSizeSlug||Tp,_=g||void 0,b=it()({[`wp-image-${i}`]:i&&"image"===a,[`size-${h}`]:i&&"image"===a});let f=(0,qe.createElement)("img",{src:r,alt:n,className:b||null});p&&(f=(0,qe.createElement)("a",{className:m,href:p,target:d,rel:_},f));const y={image:()=>f,video:()=>(0,qe.createElement)("video",{controls:!0,src:r})},v=it()({"has-media-on-the-right":"right"===o,"is-stacked-on-mobile":t,[`is-vertically-aligned-${s}`]:s,"is-image-fill":c}),k=c?Yp(r,u):{};let x;50!==l&&(x="right"===o?`auto ${l}%`:`${l}% auto`);const w={gridTemplateColumns:x};return"right"===o?(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:v,style:w})},(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}),(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(y[a]||id)())):(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:v,style:w})},(0,qe.createElement)("figure",{className:"wp-block-media-text__media",style:k},(y[a]||id)()),(0,qe.createElement)("div",{...Ye.useInnerBlocksProps.save({className:"wp-block-media-text__content"})}))},deprecated:qp},dd=()=>Qe({name:md,metadata:ud,settings:pd});var gd=window.wp.dom;const hd=(0,ut.withDispatch)(((e,{clientId:t,attributes:n})=>{const{replaceBlock:o}=e(Ye.store);return{convertToHTML(){o(t,(0,je.createBlock)("core/html",{content:n.originalUndelimitedContent}))}}}))((function({attributes:e,convertToHTML:t,clientId:n}){const{originalName:o,originalUndelimitedContent:a}=e,r=!!a,l=(0,ut.useSelect)((e=>{const{canInsertBlockType:t,getBlockRootClientId:o}=e(Ye.store);return t("core/html",o(n))}),[n]),i=[];let s;return r&&l?(s=(0,Je.sprintf)((0,Je.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact, convert its content to a Custom HTML block, or remove it entirely.'),o),i.push((0,qe.createElement)(Ke.Button,{key:"convert",onClick:t,variant:"primary"},(0,Je.__)("Keep as HTML")))):s=(0,Je.sprintf)((0,Je.__)('Your site doesn’t include support for the "%s" block. You can leave this block intact or remove it entirely.'),o),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:"has-warning"})},(0,qe.createElement)(Ye.Warning,{actions:i},s),(0,qe.createElement)(qe.RawHTML,null,(0,gd.safeHTML)(a)))}));var _d=hd;const bd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/missing",title:"Unsupported",category:"text",description:"Your site doesn’t include support for this block.",textdomain:"default",attributes:{originalName:{type:"string"},originalUndelimitedContent:{type:"string"},originalContent:{type:"string",source:"html"}},supports:{className:!1,customClassName:!1,inserter:!1,html:!1,reusable:!1}},{name:fd}=bd,yd={name:fd,__experimentalLabel(e,{context:t}){if("accessibility"===t){const{originalName:t}=e,n=t?(0,je.getBlockType)(t):void 0;return n?n.settings.title||t:""}},edit:_d,save:function({attributes:e}){return(0,qe.createElement)(qe.RawHTML,null,e.originalContent)}},vd=()=>Qe({name:fd,metadata:bd,settings:yd});var kd=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4 9v1.5h16V9H4zm12 5.5h4V13h-4v1.5zm-6 0h4V13h-4v1.5zm-6 0h4V13H4v1.5z"}));const xd=(0,Je.__)("Read more");var wd={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/more"===e.dataset.block,transform(e){const{customText:t,noTeaser:n}=e.dataset,o={};return t&&(o.customText=t),""===n&&(o.noTeaser=!0),(0,je.createBlock)("core/more",o)}}]};const Cd={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/more",title:"More",category:"design",description:"Content before this block will be shown in the excerpt on your archives page.",keywords:["read more"],textdomain:"default",attributes:{customText:{type:"string"},noTeaser:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,multiple:!1},editorStyle:"wp-block-more-editor"},{name:Ed}=Cd,Sd={icon:kd,example:{},__experimentalLabel(e,{context:t}){if("accessibility"===t)return e.customText},transforms:wd,edit:function({attributes:{customText:e,noTeaser:t},insertBlocksAfter:n,setAttributes:o}){const a={width:`${(e||xd).length+1.2}em`};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Hide the excerpt on the full content page"),checked:!!t,onChange:()=>o({noTeaser:!t}),help:e=>e?(0,Je.__)("The excerpt is hidden."):(0,Je.__)("The excerpt is visible.")}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)("input",{"aria-label":(0,Je.__)("“Read more” link text"),type:"text",value:e,placeholder:xd,onChange:e=>{o({customText:""!==e.target.value?e.target.value:void 0})},onKeyDown:({keyCode:e})=>{e===un.ENTER&&n([(0,je.createBlock)((0,je.getDefaultBlockName)())])},style:a})))},save:function({attributes:{customText:e,noTeaser:t}}){const n=e?`\x3c!--more ${e}--\x3e`:"\x3c!--more--\x3e",o=t?"\x3c!--noteaser--\x3e":"";return(0,qe.createElement)(qe.RawHTML,null,[n,o].filter(Boolean).join("\n"))}},Bd=()=>Qe({name:Ed,metadata:Cd,settings:Sd});var Td=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"})),Nd=window.wp.a11y;var Pd=function({icon:e,size:t=24,...n}){return(0,qe.cloneElement)(e,{width:t,height:t,...n})};var Id=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));const Md={name:"core/navigation-link"},zd=["core/navigation-link","core/search","core/social-links","core/page-list","core/spacer","core/home-link","core/site-title","core/site-logo","core/navigation-submenu","core/loginout"],Rd=["core/navigation-link/page","core/navigation-link"],Hd=["postType","wp_navigation",{per_page:100,status:["publish","draft"],order:"desc",orderby:"date"}];function Ld(e){const t=(0,ct.useResourcePermissions)("navigation",e);return(0,ut.useSelect)((n=>{const{canCreate:o,canUpdate:a,canDelete:r,isResolving:l,hasResolved:i}=t,{navigationMenus:s,isResolvingNavigationMenus:c,hasResolvedNavigationMenus:u}=function(e){const{getEntityRecords:t,hasFinishedResolution:n,isResolving:o}=e(ct.store);return{navigationMenus:t(...Hd),isResolvingNavigationMenus:o("getEntityRecords",Hd),hasResolvedNavigationMenus:n("getEntityRecords",Hd)}}(n),{navigationMenu:m,isNavigationMenuResolved:p,isNavigationMenuMissing:d}=function(e,t){if(!t)return{isNavigationMenuResolved:!1,isNavigationMenuMissing:!0};const{getEntityRecord:n,getEditedEntityRecord:o,hasFinishedResolution:a}=e(ct.store),r=["postType","wp_navigation",t],l=n(...r),i=o(...r),s=a("getEditedEntityRecord",r),c="publish"===i.status||"draft"===i.status;return{isNavigationMenuResolved:s,isNavigationMenuMissing:s&&(!l||!c),navigationMenu:c?i:null}}(n,e);return{navigationMenus:s,isResolvingNavigationMenus:c,hasResolvedNavigationMenus:u,navigationMenu:m,isNavigationMenuResolved:p,isNavigationMenuMissing:d,canSwitchNavigationMenu:e?s?.length>1:s?.length>0,canUserCreateNavigationMenu:o,isResolvingCanUserCreateNavigationMenu:l,hasResolvedCanUserCreateNavigationMenu:i,canUserUpdateNavigationMenu:a,hasResolvedCanUserUpdateNavigationMenu:e?i:void 0,canUserDeleteNavigationMenu:r,hasResolvedCanUserDeleteNavigationMenu:e?i:void 0}}),[e,t])}function Ad(e){const{records:t,isResolving:n,hasResolved:o}=(0,ct.useEntityRecords)("root","menu",{per_page:-1,context:"view"}),{records:a,isResolving:r,hasResolved:l}=(0,ct.useEntityRecords)("postType","page",{parent:0,order:"asc",orderby:"id",per_page:-1,context:"view"}),{records:i,hasResolved:s}=(0,ct.useEntityRecords)("root","menuItem",{menus:e,per_page:-1,context:"view"},{enabled:!!e});return{pages:a,isResolvingPages:r,hasResolvedPages:l,hasPages:!(!l||!a?.length),menus:t,isResolvingMenus:n,hasResolvedMenus:o,hasMenus:!(!o||!t?.length),menuItems:i,hasResolvedMenuItems:s}}var Vd=({isVisible:e=!0})=>(0,qe.createElement)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__preview"},(0,qe.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},(0,qe.createElement)(Pd,{icon:Td}),(0,Je.__)("Navigation")));var Dd=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));var Fd=function({currentMenuId:e,onSelectNavigationMenu:t,onSelectClassicMenu:n,onCreateNew:o,actionLabel:a,createNavigationMenuIsSuccess:r,createNavigationMenuIsError:l}){const i=(0,Je.__)("Create from '%s'"),[s,c]=(0,qe.useState)(!1);a=a||i;const{menus:u}=Ad(),{navigationMenus:m,isResolvingNavigationMenus:p,hasResolvedNavigationMenus:d,canUserCreateNavigationMenu:g,canSwitchNavigationMenu:h}=Ld(),[_]=(0,ct.useEntityProp)("postType","wp_navigation","title"),b=(0,qe.useMemo)((()=>m?.map((({id:e,title:t,status:n},o)=>{const r=function(e,t,n){return e?.rendered?"publish"===n?(0,On.decodeEntities)(e?.rendered):(0,Je.sprintf)((0,Je.__)("%1$s (%2$s)"),(0,On.decodeEntities)(e?.rendered),n):(0,Je.sprintf)((0,Je.__)("(no title %s)"),t)}(t,o+1,n);return{value:e,label:r,ariaLabel:(0,Je.sprintf)(a,r)}}))||[]),[m,a]),f=!!m?.length,y=!!u?.length,v=!!h,k=!!g,x=f&&!e,w=!f&&d,C=d&&null===e;let E="";E=s||p?(0,Je.__)("Loading …"):x||w||C?(0,Je.__)("Choose or create a Navigation menu"):_,(0,qe.useEffect)((()=>{s&&(r||l)&&c(!1)}),[d,r,g,l,s,C,w,x]);const S=(0,qe.createElement)(Ke.DropdownMenu,{label:E,icon:Dd,toggleProps:{isSmall:!0}},(({onClose:a})=>(0,qe.createElement)(qe.Fragment,null,v&&f&&(0,qe.createElement)(Ke.MenuGroup,{label:(0,Je.__)("Menus")},(0,qe.createElement)(Ke.MenuItemsChoice,{value:e,onSelect:e=>{c(!0),t(e),a()},choices:b,disabled:s})),k&&y&&(0,qe.createElement)(Ke.MenuGroup,{label:(0,Je.__)("Import Classic Menus")},u?.map((e=>{const t=(0,On.decodeEntities)(e.name);return(0,qe.createElement)(Ke.MenuItem,{onClick:()=>{c(!0),n(e),a()},key:e.id,"aria-label":(0,Je.sprintf)(i,t),disabled:s},t)}))),g&&(0,qe.createElement)(Ke.MenuGroup,{label:(0,Je.__)("Tools")},(0,qe.createElement)(Ke.MenuItem,{disabled:s,onClick:()=>{a(),o(),c(!0)}},(0,Je.__)("Create new menu"))))));return S};function $d({isSelected:e,currentMenuId:t,clientId:n,canUserCreateNavigationMenu:o=!1,isResolvingCanUserCreateNavigationMenu:a,onSelectNavigationMenu:r,onSelectClassicMenu:l,onCreateEmpty:i}){const{isResolvingMenus:s,hasResolvedMenus:c}=Ad();(0,qe.useEffect)((()=>{e&&(s&&(0,Nd.speak)((0,Je.__)("Loading Navigation block setup options.")),c&&(0,Nd.speak)((0,Je.__)("Navigation block setup options ready.")))}),[c,s,e]);const u=s&&a;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.Placeholder,{className:"wp-block-navigation-placeholder"},(0,qe.createElement)(Vd,{isVisible:!e}),(0,qe.createElement)("div",{"aria-hidden":!e||void 0,className:"wp-block-navigation-placeholder__controls"},(0,qe.createElement)("div",{className:"wp-block-navigation-placeholder__actions"},(0,qe.createElement)("div",{className:"wp-block-navigation-placeholder__actions__indicator"},(0,qe.createElement)(Pd,{icon:Td})," ",(0,Je.__)("Navigation")),(0,qe.createElement)("hr",null),u&&(0,qe.createElement)(Ke.Spinner,null),(0,qe.createElement)(Fd,{currentMenuId:t,clientId:n,onSelectNavigationMenu:r,onSelectClassicMenu:l}),(0,qe.createElement)("hr",null),o&&(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:i},(0,Je.__)("Start empty"))))))}var Gd=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));function Od({icon:e}){return"menu"===e?(0,qe.createElement)(Pd,{icon:Gd}):(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",focusable:"false"},(0,qe.createElement)(We.Rect,{x:"4",y:"7.5",width:"16",height:"1.5"}),(0,qe.createElement)(We.Rect,{x:"4",y:"15",width:"16",height:"1.5"}))}function Ud({children:e,id:t,isOpen:n,isResponsive:o,onToggle:a,isHiddenByDefault:r,overlayBackgroundColor:l,overlayTextColor:i,hasIcon:s,icon:c}){if(!o)return e;const u=it()("wp-block-navigation__responsive-container",{"has-text-color":!!i.color||!!i?.class,[(0,Ye.getColorClassName)("color",i?.slug)]:!!i?.slug,"has-background":!!l.color||l?.class,[(0,Ye.getColorClassName)("background-color",l?.slug)]:!!l?.slug,"is-menu-open":n,"hidden-by-default":r}),m={color:!i?.slug&&i?.color,backgroundColor:!l?.slug&&l?.color&&l.color},p=it()("wp-block-navigation__responsive-container-open",{"always-shown":r}),d=`${t}-modal`,g={className:"wp-block-navigation__responsive-dialog",...n&&{role:"dialog","aria-modal":!0,"aria-label":(0,Je.__)("Menu")}};return(0,qe.createElement)(qe.Fragment,null,!n&&(0,qe.createElement)(Ke.Button,{"aria-haspopup":"true","aria-label":s&&(0,Je.__)("Open menu"),className:p,onClick:()=>a(!0)},s&&(0,qe.createElement)(Od,{icon:c}),!s&&(0,Je.__)("Menu")),(0,qe.createElement)("div",{className:u,style:m,id:d},(0,qe.createElement)("div",{className:"wp-block-navigation__responsive-close",tabIndex:"-1"},(0,qe.createElement)("div",{...g},(0,qe.createElement)(Ke.Button,{className:"wp-block-navigation__responsive-container-close","aria-label":s&&(0,Je.__)("Close menu"),onClick:()=>a(!1)},s&&(0,qe.createElement)(Pd,{icon:Id}),!s&&(0,Je.__)("Close")),(0,qe.createElement)("div",{className:"wp-block-navigation__responsive-container-content",id:`${d}-content`},e)))))}function jd({clientId:e,hasCustomPlaceholder:t,orientation:n,templateLock:o}){const{isImmediateParentOfSelectedBlock:a,selectedBlockHasChildren:r,isSelected:l}=(0,ut.useSelect)((t=>{const{getBlockCount:n,hasSelectedInnerBlock:o,getSelectedBlockClientId:a}=t(Ye.store),r=a();return{isImmediateParentOfSelectedBlock:o(e,!1),selectedBlockHasChildren:!!n(r),isSelected:r===e}}),[e]),[i,s,c]=(0,ct.useEntityBlockEditor)("postType","wp_navigation"),u=(0,qe.useMemo)((()=>i.every((({name:e})=>"core/navigation-link"===e||"core/navigation-submenu"===e||"core/page-list"===e))),[i]),m=l||a&&!r,p=(0,qe.useMemo)((()=>(0,qe.createElement)(Vd,null)),[]),d=!t&&!!!i?.length&&!l,g=(0,Ye.useInnerBlocksProps)({className:"wp-block-navigation__container"},{value:i,onInput:s,onChange:c,allowedBlocks:zd,prioritizedInserterBlocks:Rd,__experimentalDefaultBlock:Md,__experimentalDirectInsert:u,orientation:n,templateLock:o,renderAppender:!!(l||a&&!r||m)&&Ye.InnerBlocks.ButtonBlockAppender,placeholder:d?p:void 0});return(0,qe.createElement)("div",{...g})}function qd(){const[e,t]=(0,ct.useEntityProp)("postType","wp_navigation","title");return(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Menu name"),value:e,onChange:t})}const Wd=(e,t,n)=>{if(e===t)return!0;if("object"==typeof e&&null!=e&&"object"==typeof t&&null!=t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e){if(!t.hasOwnProperty(o))return!1;if(n&&n(o,e))return!0;if(!Wd(e[o],t[o],n))return!1}return!0}return!1},Zd={};function Qd({blocks:e,createNavigationMenu:t,hasSelection:n}){const o=(0,qe.useRef)();(0,qe.useEffect)((()=>{o?.current||(o.current=e)}),[e]);const a=function(e,t){return!Wd(e,t,((e,t)=>{if("core/page-list"===t?.name&&"innerBlocks"===e)return!0}))}(o?.current,e),r=(0,qe.useMemo)((()=>e.every((({name:e})=>"core/navigation-link"===e||"core/navigation-submenu"===e||"core/page-list"===e))),[e]),l=(0,qe.useContext)(Ke.Disabled.Context),i=(0,Ye.useInnerBlocksProps)({className:"wp-block-navigation__container"},{renderAppender:!!n&&void 0,allowedBlocks:zd,__experimentalDefaultBlock:Md,__experimentalDirectInsert:r}),{isSaving:s,hasResolvedAllNavigationMenus:c}=(0,ut.useSelect)((e=>{if(l)return Zd;const{hasFinishedResolution:t,isSavingEntityRecord:n}=e(ct.store);return{isSaving:n("postType","wp_navigation"),hasResolvedAllNavigationMenus:t("getEntityRecords",Hd)}}),[l]);(0,qe.useEffect)((()=>{!l&&!s&&c&&n&&a&&t(null,e)}),[e,t,l,s,c,a,n]);const u=s?Ke.Disabled:"div";return(0,qe.createElement)(u,{...i})}function Kd({onDelete:e}){const[t,n]=(0,qe.useState)(!1),o=(0,ct.useEntityId)("postType","wp_navigation"),[a]=(0,ct.useEntityProp)("postType","wp_navigation","title"),{deleteEntityRecord:r}=(0,ut.useDispatch)(ct.store);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.Button,{className:"wp-block-navigation-delete-menu-button",variant:"secondary",isDestructive:!0,onClick:()=>{n(!0)}},(0,Je.__)("Delete menu")),t&&(0,qe.createElement)(Ke.Modal,{title:(0,Je.sprintf)((0,Je.__)("Delete %s"),a),onRequestClose:()=>n(!1)},(0,qe.createElement)("p",null,(0,Je.__)("Are you sure you want to delete this navigation menu?")),(0,qe.createElement)(Ke.__experimentalHStack,{justify:"right"},(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:()=>{n(!1)}},(0,Je.__)("Cancel")),(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:()=>{r("postType","wp_navigation",o,{force:!0}),e(a)}},(0,Je.__)("Confirm")))))}var Jd=function({name:e,message:t=""}={}){const n=(0,qe.useRef)(),{createWarningNotice:o,removeNotice:a}=(0,ut.useDispatch)(Bt.store);return[(0,qe.useCallback)((a=>{n.current||(n.current=e,o(a||t,{id:n.current,type:"snackbar"}))}),[n,o,t,e]),(0,qe.useCallback)((()=>{n.current&&(a(n.current),n.current=null)}),[n,a])]};function Yd({setAttributes:e,hasIcon:t,icon:n}){return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show icon button"),help:(0,Je.__)("Configure the visual appearance of the button opening the overlay menu."),onChange:t=>e({hasIcon:t}),checked:t}),(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Icon"),value:n,onChange:t=>e({icon:t}),isBlock:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"handle","aria-label":(0,Je.__)("handle"),label:(0,qe.createElement)(Od,{icon:"handle"})}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"menu","aria-label":(0,Je.__)("menu"),label:(0,qe.createElement)(Od,{icon:"menu"})})))}function Xd(e){if(!e)return null;const t=eg(function(e,t="id",n="parent"){const o=Object.create(null),a=[];for(const r of e)o[r[t]]={...r,children:[]},r[n]?(o[r[n]]=o[r[n]]||{},o[r[n]].children=o[r[n]].children||[],o[r[n]].children.push(o[r[t]])):a.push(o[r[t]]);return a}(e));return(0,Zl.applyFilters)("blocks.navigation.__unstableMenuItemsToBlocks",t,e)}function eg(e,t=0){let n={};const o=[...e].sort(((e,t)=>e.menu_order-t.menu_order)),a=o.map((e=>{if("block"===e.type){const[t]=(0,je.parse)(e.content.raw);return t||(0,je.createBlock)("core/freeform",{content:e.content})}const o=e.children?.length?"core/navigation-submenu":"core/navigation-link",a=function({title:e,xfn:t,classes:n,attr_title:o,object:a,object_id:r,description:l,url:i,type:s,target:c},u,m){a&&"post_tag"===a&&(a="tag");return{label:e?.rendered||"",...a?.length&&{type:a},kind:s?.replace("_","-")||"custom",url:i||"",...t?.length&&t.join(" ").trim()&&{rel:t.join(" ").trim()},...n?.length&&n.join(" ").trim()&&{className:n.join(" ").trim()},...o?.length&&{title:o},...r&&"custom"!==a&&{id:r},...l?.length&&{description:l},..."_blank"===c&&{opensInNewTab:!0},..."core/navigation-submenu"===u&&{isTopLevelItem:0===m},..."core/navigation-link"===u&&{isTopLevelLink:0===m}}}(e,o,t),{innerBlocks:r=[],mapping:l={}}=e.children?.length?eg(e.children,t+1):{};n={...n,...l};const i=(0,je.createBlock)(o,a,r);return n[e.id]=i.clientId,i}));return{innerBlocks:a,mapping:n}}const tg="success",ng="error",og="pending";let ag=null;var rg=function(e){const t=(0,ut.useRegistry)(),{editEntityRecord:n}=(0,ut.useDispatch)(ct.store),[o,a]=(0,qe.useState)("idle"),[r,l]=(0,qe.useState)(null),i=(0,qe.useCallback)((async(o,a,r="publish")=>{let l,i;try{i=await t.resolveSelect(ct.store).getMenuItems({menus:o,per_page:-1,context:"view"})}catch(e){throw new Error((0,Je.sprintf)((0,Je.__)('Unable to fetch classic menu "%s" from API.'),a),{cause:e})}if(null===i)throw new Error((0,Je.sprintf)((0,Je.__)('Unable to fetch classic menu "%s" from API.'),a));const{innerBlocks:s}=Xd(i);try{l=await e(a,s,r),await n("postType","wp_navigation",l.id,{status:"publish"},{throwOnError:!0})}catch(e){throw new Error((0,Je.sprintf)((0,Je.__)('Unable to create Navigation Menu "%s".'),a),{cause:e})}return l}),[e,n,t]);return{convert:(0,qe.useCallback)((async(e,t,n)=>{if(ag!==e)return ag=e,e&&t?(a(og),l(null),await i(e,t,n).then((e=>(a(tg),ag=null,e))).catch((e=>{throw l(e?.message),a(ng),ag=null,new Error((0,Je.sprintf)((0,Je.__)('Unable to create Navigation Menu "%s".'),t),{cause:e})}))):(l("Unable to convert menu. Missing menu details."),void a(ng))}),[i]),status:o,error:r}};function lg(e,t){return e&&t?e+"//"+t:null}const ig=["postType","wp_navigation",{status:"draft",per_page:-1}],sg=["postType","wp_navigation",{per_page:-1,status:"publish"}];function cg(e){const t=(0,qe.useContext)(Ke.Disabled.Context),n=function(e){return(0,ut.useSelect)((t=>{if(!e)return;const{getBlock:n,getBlockParentsByBlockName:o}=t(Ye.store),a=o(e,"core/template-part",!0);if(!a?.length)return;const r=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),{getEditedEntityRecord:l}=t(ct.store);for(const e of a){const t=n(e),{theme:o,slug:a}=t.attributes,i=l("postType","wp_template_part",lg(o,a));if(i?.area)return r.find((e=>"uncategorized"!==e.area&&e.area===i.area))?.label}}),[e])}(t?void 0:e),o=(0,ut.useRegistry)();return(0,qe.useCallback)((async()=>{if(t)return"";const{getEntityRecords:e}=o.resolveSelect(ct.store),[a,r]=await Promise.all([e(...ig),e(...sg)]),l=n?(0,Je.sprintf)((0,Je.__)("%s navigation"),n):(0,Je.__)("Navigation"),i=[...a,...r].reduce(((e,t)=>t?.title?.raw?.startsWith(l)?e+1:e),0);return(i>0?`${l} ${i+1}`:l)||""}),[t,n,o])}const ug="success",mg="error",pg="pending",dg="idle";const gg=[];function hg(e){return e.ownerDocument.defaultView.getComputedStyle(e)}function _g(e,t,n){if(!e)return;t(hg(e).color);let o=e,a=hg(o).backgroundColor;for(;"rgba(0, 0, 0, 0)"===a&&o.parentNode&&o.parentNode.nodeType===o.parentNode.ELEMENT_NODE;)o=o.parentNode,a=hg(o).backgroundColor;n(a)}function bg(e,t){const{textColor:n,customTextColor:o,backgroundColor:a,customBackgroundColor:r,overlayTextColor:l,customOverlayTextColor:i,overlayBackgroundColor:s,customOverlayBackgroundColor:c,style:u}=e,m={};return t&&i?m.customTextColor=i:t&&l?m.textColor=l:o?m.customTextColor=o:n?m.textColor=n:u?.color?.text&&(m.customTextColor=u.color.text),t&&c?m.customBackgroundColor=c:t&&s?m.backgroundColor=s:r?m.customBackgroundColor=r:a?m.backgroundColor=a:u?.color?.background&&(m.customTextColor=u.color.background),m}function fg(e){return{className:it()("wp-block-navigation__submenu-container",{"has-text-color":!(!e.textColor&&!e.customTextColor),[`has-${e.textColor}-color`]:!!e.textColor,"has-background":!(!e.backgroundColor&&!e.customBackgroundColor),[`has-${e.backgroundColor}-background-color`]:!!e.backgroundColor}),style:{color:e.customTextColor,backgroundColor:e.customBackgroundColor}}}var yg=({className:e="",disabled:t,isMenuItem:n=!1})=>{let o=Ke.Button;return n&&(o=Ke.MenuItem),(0,qe.createElement)(o,{variant:"link",disabled:t,className:e,href:(0,st.addQueryArgs)("edit.php",{post_type:"wp_navigation"})},(0,Je.__)("Manage menus"))};var vg=function({onCreateNew:e}){return(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Navigation menu has been deleted or is unavailable. "),(0,qe.createElement)(Ke.Button,{onClick:e,variant:"link"},(0,Je.__)("Create a new menu?")))};var kg=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M2 12c0 3.6 2.4 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.5 0-4.5-1.5-4.5-4s2-4.5 4.5-4.5h3.5V6H8c-3.6 0-6 2.4-6 6zm19.5-1h-8v1.5h8V11zm0 5h-8v1.5h8V16zm0-10h-8v1.5h8V6z"}));var xg=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));var wg=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const Cg={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},Eg=["core/navigation-link","core/navigation-submenu"];function Sg({block:e,onClose:t,expandedState:n,expand:o,setInsertedBlock:a}){const{insertBlock:r,replaceBlock:l,replaceInnerBlocks:i}=(0,ut.useDispatch)(Ye.store),s=e.clientId,c=!Eg.includes(e.name);return(0,qe.createElement)(Ke.MenuItem,{icon:kg,disabled:c,onClick:()=>{const c=(0,je.createBlock)("core/navigation-link");if("core/navigation-submenu"===e.name)r(c,e.innerBlocks.length,s,false);else{const t=(0,je.createBlock)("core/navigation-submenu",e.attributes,e.innerBlocks);l(s,t),i(t.clientId,[c],false)}a(c),n[e.clientId]||o(e.clientId),t()}},(0,Je.__)("Add submenu link"))}function Bg(e){const{block:t}=e,{clientId:n}=t,{moveBlocksDown:o,moveBlocksUp:a,removeBlocks:r}=(0,ut.useDispatch)(Ye.store),l=(0,Je.sprintf)((0,Je.__)("Remove %s"),(0,Ye.BlockTitle)({clientId:n,maximumLength:25})),i=(0,ut.useSelect)((e=>{const{getBlockRootClientId:t}=e(Ye.store);return t(n)}),[n]);return(0,qe.createElement)(Ke.DropdownMenu,{icon:Dd,label:(0,Je.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Cg,noIcons:!0,...e},(({onClose:s})=>(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.MenuGroup,null,(0,qe.createElement)(Ke.MenuItem,{icon:xg,onClick:()=>{a([n],i),s()}},(0,Je.__)("Move up")),(0,qe.createElement)(Ke.MenuItem,{icon:wg,onClick:()=>{o([n],i),s()}},(0,Je.__)("Move down")),(0,qe.createElement)(Sg,{block:t,onClose:s,expanded:!0,expandedState:e.expandedState,expand:e.expand,setInsertedBlock:e.setInsertedBlock})),(0,qe.createElement)(Ke.MenuGroup,null,(0,qe.createElement)(Ke.MenuItem,{onClick:()=>{r([n],!1),s()}},l)))))}var Tg=window.wp.escapeHtml;const Ng=(e={},t,n={})=>{const{label:o="",kind:a="",type:r=""}=n,{title:l="",url:i="",opensInNewTab:s,id:c,kind:u=a,type:m=r}=e,p=l.replace(/http(s?):\/\//gi,""),d=i.replace(/http(s?):\/\//gi,""),g=l&&l!==o&&p!==d?(0,Tg.escapeHTML)(l):o||(0,Tg.escapeHTML)(d),h="post_tag"===m?"tag":m.replace("-","_"),_=["post","page","tag","category"].indexOf(h)>-1,b=!u&&!_||"custom"===u?"custom":u;t({...i&&{url:encodeURI((0,st.safeDecodeURI)(i))},...g&&{label:g},...void 0!==s&&{opensInNewTab:s},...c&&Number.isInteger(c)&&{id:c},...b&&{kind:b},...h&&"URL"!==h&&{type:h}})};function Pg(e,t){switch(e){case"post":case"page":return{type:"post",subtype:e};case"category":return{type:"term",subtype:"category"};case"tag":return{type:"term",subtype:"post_tag"};case"post_format":return{type:"post-format"};default:return"taxonomy"===t?{type:"term",subtype:e}:"post-type"===t?{type:"post",subtype:e}:{}}}function Ig({clientId:e}){const{getBlock:t,blockTransforms:n}=(0,ut.useSelect)((t=>{const{getBlock:n,getBlockRootClientId:o,getBlockTransformItems:a}=t(Ye.store);return{getBlock:n,blockTransforms:a(n(e),o(e))}}),[e]),{replaceBlock:o}=(0,ut.useDispatch)(Ye.store),a=["core/page-list","core/site-logo","core/social-links","core/search"],r=n.filter((e=>a.includes(e.name)));return r?.length&&e?(0,qe.createElement)("div",{className:"link-control-transform"},(0,qe.createElement)("h3",{className:"link-control-transform__subheading"},(0,Je.__)("Transform")),(0,qe.createElement)("div",{className:"link-control-transform__items"},r.map(((n,a)=>(0,qe.createElement)(Ke.Button,{key:`transform-${a}`,onClick:()=>o(e,(0,je.switchToBlockType)(t(e),n.name)),className:"link-control-transform__item"},(0,qe.createElement)(Ye.BlockIcon,{icon:n.icon}),n.title))))):null}function Mg(e){const{saveEntityRecord:t}=(0,ut.useDispatch)(ct.store),n=(0,ct.useResourcePermissions)("pages"),o=(0,ct.useResourcePermissions)("posts");const{label:a,url:r,opensInNewTab:l,type:i,kind:s}=e.link;let c=!1;i&&"page"!==i?"post"===i&&(c=o.canCreate):c=n.canCreate;const u=(0,qe.useMemo)((()=>({url:r,opensInNewTab:l,title:a&&(0,gd.__unstableStripHTML)(a)})),[a,l,r]);return(0,qe.createElement)(Ke.Popover,{placement:"bottom",onClose:e.onClose,anchor:e.anchor,shift:!0},(0,qe.createElement)(Ye.__experimentalLinkControl,{hasTextControl:!0,hasRichPreviews:!0,className:e.className,value:u,showInitialSuggestions:!0,withCreateSuggestion:c,createSuggestion:async function(n){const o=e.link.type||"page",a=await t("postType",o,{title:n,status:"draft"});return{id:a.id,type:o,title:(0,On.decodeEntities)(a.title.rendered),url:a.link,kind:"post-type"}},createSuggestionButtonText:e=>{let t;return t="post"===i?(0,Je.__)("Create draft post: <mark>%s</mark>"):(0,Je.__)("Create draft page: <mark>%s</mark>"),(0,qe.createInterpolateElement)((0,Je.sprintf)(t,e),{mark:(0,qe.createElement)("mark",null)})},noDirectEntry:!!i,noURLSuggestion:!!i,suggestionsQuery:Pg(i,s),onChange:e.onChange,onRemove:e.onRemove,onCancel:e.onCancel,renderControlBottom:r?null:()=>(0,qe.createElement)(Ig,{clientId:e.clientId})}))}const zg=(0,Je.__)("Switch to '%s'"),Rg=["core/navigation-link","core/navigation-submenu"],{PrivateListView:Hg}=Yt(Ye.privateApis);function Lg({block:e,insertedBlock:t,setInsertedBlock:n}){const{updateBlockAttributes:o}=(0,ut.useDispatch)(Ye.store),a=Rg?.includes(t?.name),r=t?.clientId===e.clientId;if(!(a&&r))return null;return(0,qe.createElement)(Mg,{clientId:t?.clientId,link:t?.attributes,onClose:()=>{n(null)},onChange:e=>{var a;Ng(e,(a=t?.clientId,e=>{a&&o(a,e)}),t?.attributes),n(null)},onCancel:()=>{n(null)}})}const Ag=({clientId:e,currentMenuId:t,isLoading:n,isNavigationMenuMissing:o,onCreateNew:a})=>{const r=(0,ut.useSelect)((t=>!!t(Ye.store).getBlockCount(e)),[e]),{navigationMenu:l}=Ld(t);if(t&&o)return(0,qe.createElement)(vg,{onCreateNew:a});if(n)return(0,qe.createElement)(Ke.Spinner,null);const i=l?(0,Je.sprintf)((0,Je.__)("Structure for navigation menu: %s"),l?.title?.rendered||(0,Je.__)("Untitled menu")):(0,Je.__)("You have not yet created any menus. Displaying a list of your Pages");return(0,qe.createElement)("div",{className:"wp-block-navigation__menu-inspector-controls"},!r&&(0,qe.createElement)("p",{className:"wp-block-navigation__menu-inspector-controls__empty-message"},(0,Je.__)("This navigation menu is empty.")),(0,qe.createElement)(Hg,{rootClientId:e,isExpanded:!0,description:i,showAppender:!0,blockSettingsMenu:Bg,additionalBlockContent:Lg}))};var Vg=e=>{const{createNavigationMenuIsSuccess:t,createNavigationMenuIsError:n,currentMenuId:o=null,onCreateNew:a,onSelectClassicMenu:r,onSelectNavigationMenu:l,isManageMenusButtonDisabled:i,blockEditingMode:s}=e;return(0,qe.createElement)(Ye.InspectorControls,{group:"list"},(0,qe.createElement)(Ke.PanelBody,{title:null},(0,qe.createElement)(Ke.__experimentalHStack,{className:"wp-block-navigation-off-canvas-editor__header"},(0,qe.createElement)(Ke.__experimentalHeading,{className:"wp-block-navigation-off-canvas-editor__title",level:2},(0,Je.__)("Menu")),"default"===s&&(0,qe.createElement)(Fd,{currentMenuId:o,onSelectClassicMenu:r,onSelectNavigationMenu:l,onCreateNew:a,createNavigationMenuIsSuccess:t,createNavigationMenuIsError:n,actionLabel:zg,isManageMenusButtonDisabled:i})),(0,qe.createElement)(Ag,{...e})))};const{useBlockEditingMode:Dg}=Yt(Ye.privateApis);var Fg=(0,Ye.withColors)({textColor:"color"},{backgroundColor:"color"},{overlayBackgroundColor:"color"},{overlayTextColor:"color"})((function({attributes:e,setAttributes:t,clientId:n,isSelected:o,className:a,backgroundColor:r,setBackgroundColor:l,textColor:i,setTextColor:s,overlayBackgroundColor:c,setOverlayBackgroundColor:u,overlayTextColor:m,setOverlayTextColor:p,hasSubmenuIndicatorSetting:d=!0,customPlaceholder:g=null}){const{openSubmenusOnClick:h,overlayMenu:_,showSubmenuIcon:b,templateLock:f,layout:{justifyContent:y,orientation:v="horizontal",flexWrap:k="wrap"}={},hasIcon:x,icon:w="handle"}=e,C=e.ref,E=(0,qe.useCallback)((e=>{t({ref:e})}),[t]),S=`navigationMenu/${C}`,B=(0,Ye.__experimentalUseHasRecursion)(S),T=Dg(),{menus:N}=Ad(),[P,I]=Jd({name:"block-library/core/navigation/status"}),[M,z]=Jd({name:"block-library/core/navigation/classic-menu-conversion"}),[R,H]=Jd({name:"block-library/core/navigation/permissions/update"}),{create:L,status:A,error:V,value:D,isPending:F,isSuccess:$,isError:G}=function(e){const[t,n]=(0,qe.useState)(dg),[o,a]=(0,qe.useState)(null),[r,l]=(0,qe.useState)(null),{saveEntityRecord:i,editEntityRecord:s}=(0,ut.useDispatch)(ct.store),c=cg(e),u=(0,qe.useCallback)((async(e=null,t=[],o)=>{if(e&&"string"!=typeof e)throw l("Invalid title supplied when creating Navigation Menu."),n(mg),new Error("Value of supplied title argument was not a string.");n(pg),a(null),l(null),e||(e=await c().catch((e=>{throw l(e?.message),n(mg),new Error("Failed to create title when saving new Navigation Menu.",{cause:e})})));const r={title:e,content:(0,je.serialize)(t),status:o};return i("postType","wp_navigation",r).then((e=>(a(e),n(ug),"publish"!==o&&s("postType","wp_navigation",e.id,{status:"publish"}),e))).catch((e=>{throw l(e?.message),n(mg),new Error("Unable to save new Navigation Menu",{cause:e})}))}),[i,s,c]);return{create:u,status:t,value:o,error:r,isIdle:t===dg,isPending:t===pg,isSuccess:t===ug,isError:t===mg}}(n),O=()=>{L("")},{hasUncontrolledInnerBlocks:U,uncontrolledInnerBlocks:j,isInnerBlockSelected:q,innerBlocks:W}=function(e){return(0,ut.useSelect)((t=>{const{getBlock:n,getBlocks:o,hasSelectedInnerBlock:a}=t(Ye.store),r=n(e).innerBlocks,l=!!r?.length,i=l?gg:o(e);return{innerBlocks:l?r:i,hasUncontrolledInnerBlocks:l,uncontrolledInnerBlocks:r,controlledInnerBlocks:i,isInnerBlockSelected:a(e,!0)}}),[e])}(n),Z=!!W.find((e=>"core/navigation-submenu"===e.name)),{replaceInnerBlocks:Q,selectBlock:K,__unstableMarkNextChangeAsNotPersistent:J}=(0,ut.useDispatch)(Ye.store),[Y,X]=(0,qe.useState)(!1),[ee,te]=(0,qe.useState)(!1),{hasResolvedNavigationMenus:ne,isNavigationMenuResolved:oe,isNavigationMenuMissing:ae,canUserUpdateNavigationMenu:re,hasResolvedCanUserUpdateNavigationMenu:le,canUserDeleteNavigationMenu:ie,hasResolvedCanUserDeleteNavigationMenu:se,canUserCreateNavigationMenu:ce,isResolvingCanUserCreateNavigationMenu:ue,hasResolvedCanUserCreateNavigationMenu:me}=Ld(C),pe=ne&&ae,{convert:de,status:ge,error:he}=rg(L),_e=ge===og,be=(0,qe.useCallback)(((e,t={focusNavigationBlock:!1})=>{const{focusNavigationBlock:o}=t;E(e),o&&K(n)}),[K,n,E]),fe=!ae&&oe,ye=U&&!fe,{getNavigationFallbackId:ve}=Yt((0,ut.useSelect)(ct.store)),ke=C||ye?null:ve();(0,qe.useEffect)((()=>{C||ye||!ke||(J(),E(ke))}),[C,E,ye,ke,J]);const xe=(0,qe.useRef)(),we="nav",Ce=!C&&!F&&!_e&&ne&&0===N?.length&&!U,Ee=!ne||F||_e||!(!C||fe||_e),Se=e.style?.typography?.textDecoration,Be=(0,Ye.__experimentalUseBlockOverlayActive)(n),Te="never"!==_,Ne=(0,Ye.useBlockProps)({ref:xe,className:it()(a,{"items-justified-right":"right"===y,"items-justified-space-between":"space-between"===y,"items-justified-left":"left"===y,"items-justified-center":"center"===y,"is-vertical":"vertical"===v,"no-wrap":"nowrap"===k,"is-responsive":Te,"has-text-color":!!i.color||!!i?.class,[(0,Ye.getColorClassName)("color",i?.slug)]:!!i?.slug,"has-background":!!r.color||r.class,[(0,Ye.getColorClassName)("background-color",r?.slug)]:!!r?.slug,[`has-text-decoration-${Se}`]:Se,"block-editor-block-content-overlay":Be}),style:{color:!i?.slug&&i?.color,backgroundColor:!r?.slug&&r?.color}}),Pe="web"===qe.Platform.OS,[Ie,Me]=(0,qe.useState)(),[ze,Re]=(0,qe.useState)(),[He,Le]=(0,qe.useState)(),[Ae,Ve]=(0,qe.useState)(),De=async e=>{const t=await de(e.id,e.name,"draft");t&&be(t.id,{focusNavigationBlock:!0})},Fe=e=>{be(e)};(0,qe.useEffect)((()=>{I(),F&&(0,Nd.speak)((0,Je.__)("Creating Navigation Menu.")),$&&(be(D?.id,{focusNavigationBlock:!0}),P((0,Je.__)("Navigation Menu successfully created."))),G&&P((0,Je.__)("Failed to create Navigation Menu."))}),[A,V,D?.id,G,$,F,be,I,P]),(0,qe.useEffect)((()=>{z(),ge===og&&(0,Nd.speak)((0,Je.__)("Classic menu importing.")),ge===tg&&M((0,Je.__)("Classic menu imported successfully.")),ge===ng&&M((0,Je.__)("Classic menu import failed."))}),[ge,he,z,M]),(0,qe.useEffect)((()=>{if(!Pe)return;_g(xe.current,Re,Me);const e=xe.current?.querySelector('[data-type="core/navigation-submenu"] [data-type="core/navigation-link"]');e&&(m.color||c.color)&&_g(e,Ve,Le)}),[Pe,m.color,c.color]),(0,qe.useEffect)((()=>{o||q||H(),(o||q)&&(C&&!pe&&le&&!re&&R((0,Je.__)("You do not have permission to edit this Menu. Any changes made will not be saved.")),C||!me||ce||R((0,Je.__)("You do not have permission to create Navigation Menus.")))}),[o,q,re,le,ce,me,C,H,R,pe]);const $e=ce||re,Ge=it()("wp-block-navigation__overlay-menu-preview",{open:ee}),Oe=(0,Ye.__experimentalUseMultipleOriginColorsAndGradients)(),Ue=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,d&&(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Display")},Te&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.Button,{className:Ge,onClick:()=>{te(!ee)}},x&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Od,{icon:w}),(0,qe.createElement)(Pd,{icon:Id})),!x&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("span",null,(0,Je.__)("Menu")),(0,qe.createElement)("span",null,(0,Je.__)("Close")))),ee&&(0,qe.createElement)(Yd,{setAttributes:t,hasIcon:x,icon:w})),(0,qe.createElement)("h3",null,(0,Je.__)("Overlay Menu")),(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Configure overlay menu"),value:_,help:(0,Je.__)("Collapses the navigation options in a menu icon opening an overlay."),onChange:e=>t({overlayMenu:e}),isBlock:!0,hideLabelFromVision:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"never",label:(0,Je.__)("Off")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"mobile",label:(0,Je.__)("Mobile")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"always",label:(0,Je.__)("Always")})),Z&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("h3",null,(0,Je.__)("Submenus")),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,checked:h,onChange:e=>{t({openSubmenusOnClick:e,...e&&{showSubmenuIcon:!0}})},label:(0,Je.__)("Open on click")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,checked:b,onChange:e=>{t({showSubmenuIcon:e})},disabled:e.openSubmenusOnClick,label:(0,Je.__)("Show arrow")})))),Oe.hasColorsOrGradients&&(0,qe.createElement)(Ye.InspectorControls,{group:"color"},(0,qe.createElement)(Ye.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:i.color,label:(0,Je.__)("Text"),onColorChange:s,resetAllFilter:()=>s()},{colorValue:r.color,label:(0,Je.__)("Background"),onColorChange:l,resetAllFilter:()=>l()},{colorValue:m.color,label:(0,Je.__)("Submenu & overlay text"),onColorChange:p,resetAllFilter:()=>p()},{colorValue:c.color,label:(0,Je.__)("Submenu & overlay background"),onColorChange:u,resetAllFilter:()=>u()}],panelId:n,...Oe,gradients:[],disableCustomGradients:!0}),Pe&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.ContrastChecker,{backgroundColor:Ie,textColor:ze}),(0,qe.createElement)(Ye.ContrastChecker,{backgroundColor:He,textColor:Ae})))),We=!$e||!ne;if(ye&&!F)return(0,qe.createElement)(we,{...Ne},(0,qe.createElement)(Vg,{clientId:n,createNavigationMenuIsSuccess:$,createNavigationMenuIsError:G,currentMenuId:C,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:We,onCreateNew:O,onSelectClassicMenu:De,onSelectNavigationMenu:Fe,isLoading:Ee,blockEditingMode:T}),"default"===T&&Ue,(0,qe.createElement)(Ud,{id:n,onToggle:X,isOpen:Y,hasIcon:x,icon:w,isResponsive:Te,isHiddenByDefault:"always"===_,overlayBackgroundColor:c,overlayTextColor:m},(0,qe.createElement)(Qd,{createNavigationMenu:L,blocks:j,hasSelection:o||q})));if(C&&ae)return(0,qe.createElement)(we,{...Ne},(0,qe.createElement)(Vg,{clientId:n,createNavigationMenuIsSuccess:$,createNavigationMenuIsError:G,currentMenuId:C,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:We,onCreateNew:O,onSelectClassicMenu:De,onSelectNavigationMenu:Fe,isLoading:Ee,blockEditingMode:T}),(0,qe.createElement)(vg,{onCreateNew:O}));if(fe&&B)return(0,qe.createElement)("div",{...Ne},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block cannot be rendered inside itself.")));const Ze=g||$d;return Ce&&g?(0,qe.createElement)(we,{...Ne},(0,qe.createElement)(Ze,{isSelected:o,currentMenuId:C,clientId:n,canUserCreateNavigationMenu:ce,isResolvingCanUserCreateNavigationMenu:ue,onSelectNavigationMenu:Fe,onSelectClassicMenu:De,onCreateEmpty:O})):(0,qe.createElement)(ct.EntityProvider,{kind:"postType",type:"wp_navigation",id:C},(0,qe.createElement)(Ye.__experimentalRecursionProvider,{uniqueId:S},(0,qe.createElement)(Vg,{clientId:n,createNavigationMenuIsSuccess:$,createNavigationMenuIsError:G,currentMenuId:C,isNavigationMenuMissing:ae,isManageMenusButtonDisabled:We,onCreateNew:O,onSelectClassicMenu:De,onSelectNavigationMenu:Fe,isLoading:Ee,blockEditingMode:T}),"default"===T&&Ue,"default"===T&&fe&&(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},le&&re&&(0,qe.createElement)(qd,null),se&&ie&&(0,qe.createElement)(Kd,{onDelete:(e="")=>{Q(n,[]),P((0,Je.sprintf)((0,Je.__)("Navigation menu %s successfully deleted."),e))}}),(0,qe.createElement)(yg,{disabled:We,className:"wp-block-navigation-manage-menus-button"})),Ee&&(0,qe.createElement)(we,{...Ne},(0,qe.createElement)("div",{className:"wp-block-navigation__loading-indicator-container"},(0,qe.createElement)(Ke.Spinner,{className:"wp-block-navigation__loading-indicator"}))),!Ee&&(0,qe.createElement)(we,{...Ne},(0,qe.createElement)(Ud,{id:n,onToggle:X,label:(0,Je.__)("Menu"),hasIcon:x,icon:w,isOpen:Y,isResponsive:Te,isHiddenByDefault:"always"===_,overlayBackgroundColor:c,overlayTextColor:m},fe&&(0,qe.createElement)(jd,{clientId:n,hasCustomPlaceholder:!!g,templateLock:f,orientation:v})))))}));const $g={fontStyle:"var:preset|font-style|",fontWeight:"var:preset|font-weight|",textDecoration:"var:preset|text-decoration|",textTransform:"var:preset|text-transform|"},Gg=({navigationMenuId:e,...t})=>({...t,ref:e}),Og=e=>{if(e.layout)return e;const{itemsJustification:t,orientation:n,...o}=e;return(t||n)&&Object.assign(o,{layout:{type:"flex",...t&&{justifyContent:t},...n&&{orientation:n}}}),o},Ug={attributes:{navigationMenuId:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}}},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},isEligible:({navigationMenuId:e})=>!!e,migrate:Gg},jg={attributes:{navigationMenuId:{type:"number"},orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},isEligible:({itemsJustification:e,orientation:t})=>!!e||!!t,migrate:(0,Tt.compose)(Gg,Og)},qg={attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"never"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}}},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},migrate:(0,Tt.compose)(Gg,Og,en),isEligible({style:e}){return e?.typography?.fontFamily}},Wg=[Ug,jg,qg,{attributes:{orientation:{type:"string",default:"horizontal"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},isResponsive:{type:"boolean",default:"false"},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0}},isEligible(e){return e.isResponsive},migrate:(0,Tt.compose)(Gg,Og,en,(function(e){return delete e.isResponsive,{...e,overlayMenu:"mobile"}})),save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},{attributes:{orientation:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0}},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0,fontSize:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,color:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},isEligible(e){if(!e.style||!e.style.typography)return!1;for(const t in $g){const n=e.style.typography[t];if(n&&n.startsWith($g[t]))return!0}return!1},migrate:(0,Tt.compose)(Gg,Og,en,(function(e){var t;return{...e,style:{...e.style,typography:Object.fromEntries(Object.entries(null!==(t=e.style.typography)&&void 0!==t?t:{}).map((([e,t])=>{const n=$g[e];if(n&&t.startsWith(n)){const o=t.slice(n.length);return"textDecoration"===e&&"strikethrough"===o?[e,"line-through"]:[e,o]}return[e,t]})))}}}))},{attributes:{className:{type:"string"},textColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},fontSize:{type:"string"},customFontSize:{type:"number"},itemsJustification:{type:"string"},showSubmenuIcon:{type:"boolean"}},isEligible(e){return e.rgbTextColor||e.rgbBackgroundColor},supports:{align:["wide","full"],anchor:!0,html:!1,inserter:!0},migrate:(0,Tt.compose)(Gg,(e=>{const{rgbTextColor:t,rgbBackgroundColor:n,...o}=e;return{...o,customTextColor:e.textColor?void 0:e.rgbTextColor,customBackgroundColor:e.backgroundColor?void 0:e.rgbBackgroundColor}})),save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}}];var Zg=Wg;const Qg={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation",title:"Navigation",category:"theme",description:"A collection of blocks that allow visitors to get around your site.",keywords:["menu","navigation","links"],textdomain:"default",attributes:{ref:{type:"number"},textColor:{type:"string"},customTextColor:{type:"string"},rgbTextColor:{type:"string"},backgroundColor:{type:"string"},customBackgroundColor:{type:"string"},rgbBackgroundColor:{type:"string"},showSubmenuIcon:{type:"boolean",default:!0},openSubmenusOnClick:{type:"boolean",default:!1},overlayMenu:{type:"string",default:"mobile"},icon:{type:"string",default:"handle"},hasIcon:{type:"boolean",default:!0},__unstableLocation:{type:"string"},overlayBackgroundColor:{type:"string"},customOverlayBackgroundColor:{type:"string"},overlayTextColor:{type:"string"},customOverlayTextColor:{type:"string"},maxNestingLevel:{type:"number",default:5},templateLock:{type:["string","boolean"],enum:["all","insert","contentOnly",!1]}},providesContext:{textColor:"textColor",customTextColor:"customTextColor",backgroundColor:"backgroundColor",customBackgroundColor:"customBackgroundColor",overlayTextColor:"overlayTextColor",customOverlayTextColor:"customOverlayTextColor",overlayBackgroundColor:"overlayBackgroundColor",customOverlayBackgroundColor:"customOverlayBackgroundColor",fontSize:"fontSize",customFontSize:"customFontSize",showSubmenuIcon:"showSubmenuIcon",openSubmenusOnClick:"openSubmenusOnClick",style:"style",maxNestingLevel:"maxNestingLevel"},supports:{align:["wide","full"],html:!1,inserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalTextTransform:!0,__experimentalFontFamily:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalSkipSerialization:["textDecoration"],__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0}},layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,allowSizingOnChildren:!0,default:{type:"flex"}},__experimentalStyle:{elements:{link:{color:{text:"inherit"}}}}},viewScript:["file:./view.min.js","file:./view-modal.min.js"],editorStyle:"wp-block-navigation-editor",style:"wp-block-navigation"},{name:Kg}=Qg,Jg={icon:Td,example:{attributes:{overlayMenu:"never"},innerBlocks:[{name:"core/navigation-link",attributes:{label:(0,Je.__)("Home"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,Je.__)("About"),url:"https://make.wordpress.org/"}},{name:"core/navigation-link",attributes:{label:(0,Je.__)("Contact"),url:"https://make.wordpress.org/"}}]},edit:Fg,save:function({attributes:e}){if(!e.ref)return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},deprecated:Zg},Yg=()=>Qe({name:Kg,metadata:Qg,settings:Jg});var Xg=(0,qe.createElement)(We.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12.5 14.5h-1V16h1c2.2 0 4-1.8 4-4s-1.8-4-4-4h-1v1.5h1c1.4 0 2.5 1.1 2.5 2.5s-1.1 2.5-2.5 2.5zm-4 1.5v-1.5h-1C6.1 14.5 5 13.4 5 12s1.1-2.5 2.5-2.5h1V8h-1c-2.2 0-4 1.8-4 4s1.8 4 4 4h1zm-1-3.2h5v-1.5h-5v1.5zM18 4H9c-1.1 0-2 .9-2 2v.5h1.5V6c0-.3.2-.5.5-.5h9c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H9c-.3 0-.5-.2-.5-.5v-.5H7v.5c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z"}));const{name:eh}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"};var th=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var nh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var oh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4zm.8-4l.7.7 2-2V12h1V9.2l2 2 .7-.7-2-2H12v-1H9.2l2-2-.7-.7-2 2V4h-1v2.8l-2-2-.7.7 2 2H4v1h2.8l-2 2z"}));function ah(e){switch(e){case"post":return xm;case"page":return th;case"tag":return nh;case"category":return Gn;default:return oh}}function rh(e,t){if("core/navigation-link"!==t)return e;if(e.variations){const t=(e,t)=>e.type===t.type,n=e.variations.map((e=>({...e,...!e.icon&&{icon:ah(e.name)},...!e.isActive&&{isActive:t}})));return{...e,variations:n}}return e}const lh={from:[{type:"block",blocks:["core/site-logo"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/spacer"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/home-link"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/search"],transform:()=>(0,je.createBlock)("core/navigation-link")},{type:"block",blocks:["core/page-list"],transform:()=>(0,je.createBlock)("core/navigation-link")}],to:[{type:"block",blocks:["core/navigation-submenu"],transform:(e,t)=>(0,je.createBlock)("core/navigation-submenu",e,t)},{type:"block",blocks:["core/spacer"],transform:()=>(0,je.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],transform:()=>(0,je.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],transform:()=>(0,je.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],transform:()=>(0,je.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],transform:()=>(0,je.createBlock)("core/search",{showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"})},{type:"block",blocks:["core/page-list"],transform:()=>(0,je.createBlock)("core/page-list")}]};var ih=lh;const sh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-link",title:"Custom Link",category:"design",parent:["core/navigation"],description:"Add a page, link, or another item to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelLink:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","style"],supports:{reusable:!1,html:!1,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-navigation-link-editor",style:"wp-block-navigation-link"},{name:ch}=sh,uh={icon:Xg,__experimentalLabel:({label:e})=>e,merge(e,{label:t=""}){return{...e,label:e.label+t}},edit:function({attributes:e,isSelected:t,setAttributes:n,insertBlocksAfter:o,mergeBlocks:a,onReplace:r,context:l,clientId:i}){const{id:s,label:c,type:u,url:m,description:p,rel:d,title:g,kind:h}=e,[_,b]=((e,t,n)=>{const o="post-type"===e||"post"===t||"page"===t,a=Number.isInteger(n),r=(0,ut.useSelect)((e=>{if(!o)return null;const{getEntityRecord:a}=e(ct.store);return a("postType",t,n)?.status}),[o,t,n]);return[o&&a&&r&&"trash"===r,"draft"===r]})(h,u,s),{maxNestingLevel:f}=l,{replaceBlock:y,__unstableMarkNextChangeAsNotPersistent:v}=(0,ut.useDispatch)(Ye.store),[k,x]=(0,qe.useState)(!1),[w,C]=(0,qe.useState)(null),E=(0,qe.useRef)(null),S=(e=>{const[t,n]=(0,qe.useState)(!1);return(0,qe.useEffect)((()=>{const{ownerDocument:t}=e.current;function o(e){r(e)}function a(){n(!1)}function r(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",o),t.addEventListener("dragend",a),t.addEventListener("dragenter",r),()=>{t.removeEventListener("dragstart",o),t.removeEventListener("dragend",a),t.removeEventListener("dragenter",r)}}),[]),t})(E),B=(0,Je.__)("Add label…"),T=(0,qe.useRef)(),[N,P]=(0,qe.useState)(!1),{innerBlocks:I,isAtMaxNesting:M,isTopLevelLink:z,isParentOfSelectedBlock:R,hasChildren:H}=(0,ut.useSelect)((e=>{const{getBlocks:t,getBlockCount:n,getBlockName:o,getBlockRootClientId:a,hasSelectedInnerBlock:r,getBlockParentsByBlockName:l}=e(Ye.store);return{innerBlocks:t(i),isAtMaxNesting:l(i,[eh,"core/navigation-submenu"]).length>=f,isTopLevelLink:"core/navigation"===o(a(i)),isParentOfSelectedBlock:r(i,!0),hasChildren:!!n(i)}}),[i]);function L(){const t=(0,je.createBlock)("core/navigation-submenu",e,I.length>0?I:[(0,je.createBlock)("core/navigation-link")]);y(i,t)}(0,qe.useEffect)((()=>{m||x(!0)}),[m]),(0,qe.useEffect)((()=>{H&&(v(),L())}),[H]),(0,qe.useEffect)((()=>{t||x(!1)}),[t]),(0,qe.useEffect)((()=>{k&&m&&((0,st.isURL)((0,st.prependHTTP)(c))&&/^.+\.[a-z]+/.test(c)?function(){T.current.focus();const{ownerDocument:e}=T.current,{defaultView:t}=e,n=t.getSelection(),o=e.createRange();o.selectNodeContents(T.current),n.removeAllRanges(),n.addRange(o)}():(0,gd.placeCaretAtHorizontalEdge)(T.current,!0))}),[m]);const{textColor:A,customTextColor:V,backgroundColor:D,customBackgroundColor:F}=bg(l,!z),$=(0,Ye.useBlockProps)({ref:(0,Tt.useMergeRefs)([C,E]),className:it()("wp-block-navigation-item",{"is-editing":t||R,"is-dragging-within":S,"has-link":!!m,"has-child":H,"has-text-color":!!A||!!V,[(0,Ye.getColorClassName)("color",A)]:!!A,"has-background":!!D||F,[(0,Ye.getColorClassName)("background-color",D)]:!!D}),style:{color:!A&&V,backgroundColor:!D&&F},onKeyDown:function(e){(un.isKeyboardEvent.primary(e,"k")||(!m||b||_)&&e.keyCode===un.ENTER)&&x(!0)}}),G=(0,Ye.useInnerBlocksProps)({...$,className:"remove-outline"},{allowedBlocks:["core/navigation-link","core/navigation-submenu","core/page-list"],__experimentalDefaultBlock:{name:"core/navigation-link"},__experimentalDirectInsert:!0,renderAppender:!1});(!m||_||b)&&($.onClick=()=>x(!0));const O=it()("wp-block-navigation-item__content",{"wp-block-navigation-link__placeholder":!m||_||b}),U=function(e){let t="";switch(e){case"post":t=(0,Je.__)("Select post");break;case"page":t=(0,Je.__)("Select page");break;case"category":t=(0,Je.__)("Select category");break;case"tag":t=(0,Je.__)("Select tag");break;default:t=(0,Je.__)("Add link")}return t}(u),j=`(${_?(0,Je.__)("Invalid"):(0,Je.__)("Draft")})`,q=_||b?(0,Je.__)("This item has been deleted, or is a draft"):(0,Je.__)("This item is missing a link");return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:mn,title:(0,Je.__)("Link"),shortcut:un.displayShortcut.primary("k"),onClick:()=>x(!0)}),!M&&(0,qe.createElement)(Ke.ToolbarButton,{name:"submenu",icon:kg,title:(0,Je.__)("Add submenu"),onClick:L}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:c?(0,gd.__unstableStripHTML)(c):"",onChange:e=>{n({label:e})},label:(0,Je.__)("Label"),autoComplete:"off",onFocus:()=>P(!0),onBlur:()=>P(!1)}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:m||"",onChange:t=>{Ng({url:t},n,e)},label:(0,Je.__)("URL"),autoComplete:"off"}),(0,qe.createElement)(Ke.TextareaControl,{__nextHasNoMarginBottom:!0,value:p||"",onChange:e=>{n({description:e})},label:(0,Je.__)("Description"),help:(0,Je.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:g||"",onChange:e=>{n({title:e})},label:(0,Je.__)("Title attribute"),autoComplete:"off",help:(0,Je.__)("Additional information to help clarify the purpose of the link.")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:d||"",onChange:e=>{n({rel:e})},label:(0,Je.__)("Rel attribute"),autoComplete:"off",help:(0,Je.__)("The relationship of the linked URL as space-separated link types.")}))),(0,qe.createElement)("div",{...$},(0,qe.createElement)("a",{className:O},m?(0,qe.createElement)(qe.Fragment,null,!_&&!b&&!N&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.RichText,{ref:T,identifier:"label",className:"wp-block-navigation-item__label",value:c,onChange:e=>n({label:e}),onMerge:a,onReplace:r,__unstableOnSplitAtEnd:()=>o((0,je.createBlock)("core/navigation-link")),"aria-label":(0,Je.__)("Navigation link text"),placeholder:B,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{m||x(!0)}}),p&&(0,qe.createElement)("span",{className:"wp-block-navigation-item__description"},p)),(_||b||N)&&(0,qe.createElement)("div",{className:"wp-block-navigation-link__placeholder-text wp-block-navigation-link__label"},(0,qe.createElement)(Ke.Tooltip,{position:"top center",text:q},(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("span",{"aria-label":(0,Je.__)("Navigation link text")},`${(0,On.decodeEntities)(c)} ${_||b?j:""}`.trim()),(0,qe.createElement)("span",{className:"wp-block-navigation-link__missing_text-tooltip"},q))))):(0,qe.createElement)("div",{className:"wp-block-navigation-link__placeholder-text"},(0,qe.createElement)(Ke.Tooltip,{position:"top center",text:q},(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("span",null,U),(0,qe.createElement)("span",{className:"wp-block-navigation-link__missing_text-tooltip"},q)))),k&&(0,qe.createElement)(Mg,{className:"wp-block-navigation-link__inline-link-input",clientId:i,link:e,onClose:()=>x(!1),anchor:w,onRemove:function(){n({url:void 0,label:void 0,id:void 0,kind:void 0,type:void 0,opensInNewTab:!1}),x(!1)},onChange:t=>{Ng(t,n,e)}})),(0,qe.createElement)("div",{...G})))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},example:{attributes:{label:(0,Je._x)("Example Link","navigation link preview example"),url:"https://example.com"}},deprecated:[{isEligible(e){return e.nofollow},attributes:{label:{type:"string"},type:{type:"string"},nofollow:{type:"boolean"},description:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"}},migrate({nofollow:e,...t}){return{rel:e?"nofollow":"",...t}},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}}],transforms:ih},mh=()=>((0,Zl.addFilter)("blocks.registerBlockType","core/navigation-link",rh),Qe({name:ch,metadata:sh,settings:uh}));var ph=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m13.955 20.748 8-17.5-.91-.416L19.597 6H13.5v1.5h5.411l-1.6 3.5H13.5v1.5h3.126l-1.6 3.5H13.5l.028 1.5h.812l-1.295 2.832.91.416ZM17.675 16l-.686 1.5h4.539L21.5 16h-3.825Zm2.286-5-.686 1.5H21.5V11h-1.54ZM2 12c0 3.58 2.42 5.5 6 5.5h.5V19l3-2.5-3-2.5v2H8c-2.48 0-4.5-1.52-4.5-4S5.52 7.5 8 7.5h3.5V6H8c-3.58 0-6 2.42-6 6Z"}));const dh=()=>(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,qe.createElement)(Ke.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"})),{name:gh}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},hh=["core/navigation-link","core/navigation-submenu","core/page-list"],_h={name:"core/navigation-link"};const bh={to:[{type:"block",blocks:["core/navigation-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:e=>(0,je.createBlock)("core/navigation-link",e)},{type:"block",blocks:["core/spacer"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/spacer")},{type:"block",blocks:["core/site-logo"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/site-logo")},{type:"block",blocks:["core/home-link"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/home-link")},{type:"block",blocks:["core/social-links"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/social-links")},{type:"block",blocks:["core/search"],isMatch:(e,t)=>0===t?.innerBlocks?.length,transform:()=>(0,je.createBlock)("core/search")}]};var fh=bh;const yh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/navigation-submenu",title:"Submenu",category:"design",parent:["core/navigation"],description:"Add a submenu to your navigation.",textdomain:"default",attributes:{label:{type:"string"},type:{type:"string"},description:{type:"string"},rel:{type:"string"},id:{type:"number"},opensInNewTab:{type:"boolean",default:!1},url:{type:"string"},title:{type:"string"},kind:{type:"string"},isTopLevelItem:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","maxNestingLevel","openSubmenusOnClick","style"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-navigation-submenu-editor",style:"wp-block-navigation-submenu"},{name:vh}=yh,kh={icon:({context:e})=>"list-view"===e?th:kg,__experimentalLabel:({label:e})=>e,edit:function({attributes:e,isSelected:t,setAttributes:n,mergeBlocks:o,onReplace:a,context:r,clientId:l}){const{label:i,type:s,url:c,description:u,rel:m,title:p}=e,{showSubmenuIcon:d,maxNestingLevel:g,openSubmenusOnClick:h}=r,{__unstableMarkNextChangeAsNotPersistent:_,replaceBlock:b}=(0,ut.useDispatch)(Ye.store),[f,y]=(0,qe.useState)(!1),[v,k]=(0,qe.useState)(null),x=(0,qe.useRef)(null),w=(e=>{const[t,n]=(0,qe.useState)(!1);return(0,qe.useEffect)((()=>{const{ownerDocument:t}=e.current;function o(e){r(e)}function a(){n(!1)}function r(t){e.current.contains(t.target)?n(!0):n(!1)}return t.addEventListener("dragstart",o),t.addEventListener("dragend",a),t.addEventListener("dragenter",r),()=>{t.removeEventListener("dragstart",o),t.removeEventListener("dragend",a),t.removeEventListener("dragenter",r)}}),[]),t})(x),C=(0,Je.__)("Add text…"),E=(0,qe.useRef)(),S=(0,ct.useResourcePermissions)("pages"),B=(0,ct.useResourcePermissions)("posts"),{isAtMaxNesting:T,isTopLevelItem:N,isParentOfSelectedBlock:P,isImmediateParentOfSelectedBlock:I,hasChildren:M,selectedBlockHasChildren:z,onlyDescendantIsEmptyLink:R}=(0,ut.useSelect)((e=>{const{hasSelectedInnerBlock:t,getSelectedBlockClientId:n,getBlockParentsByBlockName:o,getBlock:a,getBlockCount:r,getBlockOrder:i}=e(Ye.store);let s;const c=i(n());if(1===c?.length){const e=a(c[0]);s="core/navigation-link"===e?.name&&!e?.attributes?.label}return{isAtMaxNesting:o(l,gh).length>=g,isTopLevelItem:0===o(l,gh).length,isParentOfSelectedBlock:t(l,!0),isImmediateParentOfSelectedBlock:t(l,!1),hasChildren:!!r(l),selectedBlockHasChildren:!!c?.length,onlyDescendantIsEmptyLink:s}}),[l]),H=(0,Tt.usePrevious)(M);(0,qe.useEffect)((()=>{h||c||y(!0)}),[]),(0,qe.useEffect)((()=>{t||y(!1)}),[t]),(0,qe.useEffect)((()=>{f&&c&&((0,st.isURL)((0,st.prependHTTP)(i))&&/^.+\.[a-z]+/.test(i)?function(){E.current.focus();const{ownerDocument:e}=E.current,{defaultView:t}=e,n=t.getSelection(),o=e.createRange();o.selectNodeContents(E.current),n.removeAllRanges(),n.addRange(o)}():(0,gd.placeCaretAtHorizontalEdge)(E.current,!0))}),[c]);let L=!1;s&&"page"!==s?"post"===s&&(L=B.canCreate):L=S.canCreate;const{textColor:A,customTextColor:V,backgroundColor:D,customBackgroundColor:F}=bg(r,!N),$=(0,Ye.useBlockProps)({ref:(0,Tt.useMergeRefs)([k,x]),className:it()("wp-block-navigation-item",{"is-editing":t||P,"is-dragging-within":w,"has-link":!!c,"has-child":M,"has-text-color":!!A||!!V,[(0,Ye.getColorClassName)("color",A)]:!!A,"has-background":!!D||F,[(0,Ye.getColorClassName)("background-color",D)]:!!D,"open-on-click":h}),style:{color:!A&&V,backgroundColor:!D&&F},onKeyDown:function(e){un.isKeyboardEvent.primary(e,"k")&&y(!0)}}),G=bg(r,!0),O=T?hh.filter((e=>"core/navigation-submenu"!==e)):hh,U=fg(G),j=(0,Ye.useInnerBlocksProps)(U,{allowedBlocks:O,__experimentalDefaultBlock:_h,__experimentalDirectInsert:!0,__experimentalCaptureToolbars:!0,renderAppender:!!(t||I&&!z||M)&&Ye.InnerBlocks.ButtonBlockAppender}),q=h?"button":"a";function W(){const t=(0,je.createBlock)("core/navigation-link",e);b(l,t)}(0,qe.useEffect)((()=>{!M&&H&&(_(),W())}),[M,H]);const Z=!z||R;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,!h&&(0,qe.createElement)(Ke.ToolbarButton,{name:"link",icon:mn,title:(0,Je.__)("Link"),shortcut:un.displayShortcut.primary("k"),onClick:()=>y(!0)}),(0,qe.createElement)(Ke.ToolbarButton,{name:"revert",icon:ph,title:(0,Je.__)("Convert to Link"),onClick:W,className:"wp-block-navigation__submenu__revert",isDisabled:!Z}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:i||"",onChange:e=>{n({label:e})},label:(0,Je.__)("Label"),autoComplete:"off"}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:c||"",onChange:e=>{n({url:e})},label:(0,Je.__)("URL"),autoComplete:"off"}),(0,qe.createElement)(Ke.TextareaControl,{__nextHasNoMarginBottom:!0,value:u||"",onChange:e=>{n({description:e})},label:(0,Je.__)("Description"),help:(0,Je.__)("The description will be displayed in the menu if the current theme supports it.")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:p||"",onChange:e=>{n({title:e})},label:(0,Je.__)("Title attribute"),autoComplete:"off",help:(0,Je.__)("Additional information to help clarify the purpose of the link.")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:m||"",onChange:e=>{n({rel:e})},label:(0,Je.__)("Rel attribute"),autoComplete:"off",help:(0,Je.__)("The relationship of the linked URL as space-separated link types.")}))),(0,qe.createElement)("div",{...$},(0,qe.createElement)(q,{className:"wp-block-navigation-item__content"},(0,qe.createElement)(Ye.RichText,{ref:E,identifier:"label",className:"wp-block-navigation-item__label",value:i,onChange:e=>n({label:e}),onMerge:o,onReplace:a,"aria-label":(0,Je.__)("Navigation link text"),placeholder:C,withoutInteractiveFormatting:!0,allowedFormats:["core/bold","core/italic","core/image","core/strikethrough"],onClick:()=>{h||c||y(!0)}}),!h&&f&&(0,qe.createElement)(Mg,{className:"wp-block-navigation-link__inline-link-input",clientId:l,link:e,onClose:()=>y(!1),anchor:v,hasCreateSuggestion:L,onRemove:()=>{n({url:""}),(0,Nd.speak)((0,Je.__)("Link removed."),"assertive")},onChange:t=>{Ng(t,n,e)}})),(d||h)&&(0,qe.createElement)("span",{className:"wp-block-navigation__submenu-icon"},(0,qe.createElement)(dh,null)),(0,qe.createElement)("div",{...j})))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},transforms:fh},xh=()=>Qe({name:vh,metadata:yh,settings:kh});var wh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M17.5 9V6a2 2 0 0 0-2-2h-7a2 2 0 0 0-2 2v3H8V6a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 .5.5v3h1.5Zm0 6.5V18a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-2.5H8V18a.5.5 0 0 0 .5.5h7a.5.5 0 0 0 .5-.5v-2.5h1.5ZM4 13h16v-1.5H4V13Z"}));var Ch={from:[{type:"raw",schema:{"wp-block":{attributes:["data-block"]}},isMatch:e=>e.dataset&&"core/nextpage"===e.dataset.block,transform(){return(0,je.createBlock)("core/nextpage",{})}}]};const Eh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/nextpage",title:"Page Break",category:"design",description:"Separate your content into a multi-page experience.",keywords:["next page","pagination"],parent:["core/post-content"],textdomain:"default",supports:{customClassName:!1,className:!1,html:!1},editorStyle:"wp-block-nextpage-editor"},{name:Sh}=Eh,Bh={icon:wh,example:{},transforms:Ch,edit:function(){return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)("span",null,(0,Je.__)("Page break")))},save:function(){return(0,qe.createElement)(qe.RawHTML,null,"\x3c!--nextpage--\x3e")}},Th=()=>Qe({name:Sh,metadata:Eh,settings:Bh});var Nh=({attributes:e,clientId:t})=>{const n=(0,ut.useSelect)((t=>t(Ye.store).__experimentalGetParsedPattern(e.slug)),[e.slug]),{replaceBlocks:o,__unstableMarkNextChangeAsNotPersistent:a}=(0,ut.useDispatch)(Ye.store),{setBlockEditingMode:r}=Yt((0,ut.useDispatch)(Ye.store)),{getBlockRootClientId:l,getBlockEditingMode:i}=Yt((0,ut.useSelect)(Ye.store));(0,qe.useEffect)((()=>{n?.blocks&&window.queueMicrotask((()=>{const e=l(t),s=n.blocks.map((e=>(0,je.cloneBlock)(e))),c=i(e);a(),r(e,"default"),a(),o(t,s),a(),r(e,c)}))}),[t,n?.blocks,a,o,i,r,l]);const s=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...s})};const Ph={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pattern",title:"Pattern placeholder",category:"theme",description:"Show a block pattern.",supports:{html:!1,inserter:!1},textdomain:"default",attributes:{slug:{type:"string"}}},{name:Ih}=Ph,Mh={edit:Nh},zh=()=>Qe({name:Ih,metadata:Ph,settings:Mh});var Rh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M7 13.8h6v-1.5H7v1.5zM18 16V4c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2zM5.5 16V4c0-.3.2-.5.5-.5h10c.3 0 .5.2.5.5v12c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5zM7 10.5h8V9H7v1.5zm0-3.3h8V5.8H7v1.4zM20.2 6v13c0 .7-.6 1.2-1.2 1.2H8v1.5h11c1.5 0 2.7-1.2 2.7-2.8V6h-1.5z"}));function Hh(e,t){for(const n of e){if(n.attributes.id===t)return n;if(n.innerBlocks&&n.innerBlocks.length){const e=Hh(n.innerBlocks,t);if(e)return e}}return null}function Lh(e=[],t=null){let n=function(e=[]){const t={},n=[];return e.forEach((({id:e,title:o,link:a,type:r,parent:l})=>{var i;const s=null!==(i=t[e]?.innerBlocks)&&void 0!==i?i:[];t[e]=(0,je.createBlock)("core/navigation-link",{id:e,label:o.rendered,url:a,type:r,kind:"post-type"},s),l?(t[l]||(t[l]={innerBlocks:[]}),t[l].innerBlocks.push(t[e])):n.push(t[e])})),n}(e);if(t){const e=Hh(n,t);e&&e.innerBlocks&&(n=e.innerBlocks)}const o=e=>{e.forEach(((e,t,n)=>{const{attributes:a,innerBlocks:r}=e;if(0!==r.length){o(r);const e=(0,je.createBlock)("core/navigation-submenu",a,r);n[t]=e}}))};return o(n),n}function Ah({clientId:e,pages:t,parentPageID:n}){const{replaceBlock:o,selectBlock:a}=(0,ut.useDispatch)(Ye.store),{parentNavBlockClientId:r}=(0,ut.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockParentsByBlockName:n}=e(Ye.store);return{parentNavBlockClientId:n(t(),"core/navigation",!0)[0]}}),[e]);return()=>{const l=Lh(t,n);o(e,l),a(r)}}const Vh=(0,Je.__)('This menu is automatically kept in sync with pages on your site. You can manage the menu yourself by clicking "Edit" below.');function Dh({onClick:e,onClose:t,disabled:n}){return(0,qe.createElement)(Ke.Modal,{onRequestClose:t,title:(0,Je.__)("Edit this menu"),className:"wp-block-page-list-modal",aria:{describedby:"wp-block-page-list-modal__description"}},(0,qe.createElement)("p",{id:"wp-block-page-list-modal__description"},Vh),(0,qe.createElement)("div",{className:"wp-block-page-list-modal-buttons"},(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:t},(0,Je.__)("Cancel")),(0,qe.createElement)(Ke.Button,{variant:"primary",disabled:n,onClick:e},(0,Je.__)("Edit"))))}const Fh=()=>{};function $h({blockProps:e,innerBlocksProps:t,hasResolvedPages:n,blockList:o,pages:a,parentPageID:r}){if(!n)return(0,qe.createElement)("div",{...e},(0,qe.createElement)("div",{className:"wp-block-page-list__loading-indicator-container"},(0,qe.createElement)(Ke.Spinner,{className:"wp-block-page-list__loading-indicator"})));if(null===a)return(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ke.Notice,{status:"warning",isDismissible:!1},(0,Je.__)("Page List: Cannot retrieve Pages.")));if(0===a.length)return(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ke.Notice,{status:"info",isDismissible:!1},(0,Je.__)("Page List: Cannot retrieve Pages.")));if(0===o.length){const t=a.find((e=>e.id===r));return t?.title?.rendered?(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ye.Warning,null,(0,Je.sprintf)((0,Je.__)('Page List: "%s" page has no children.'),t.title.rendered))):(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ke.Notice,{status:"warning",isDismissible:!1},(0,Je.__)("Page List: Cannot retrieve Pages.")))}return a.length>0?(0,qe.createElement)("ul",{...t}):void 0}const Gh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list",title:"Page List",category:"widgets",description:"Display a list of all pages.",keywords:["menu","navigation"],textdomain:"default",attributes:{parentPageID:{type:"integer",default:0},isNested:{type:"boolean",default:!1}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:Oh}=Gh,Uh={icon:Rh,example:{},edit:function({context:e,clientId:t,attributes:n,setAttributes:o}){const{parentPageID:a}=n,[r,l]=(0,qe.useState)(!1),i=(0,qe.useCallback)((()=>l(!0)),[]),{records:s,hasResolved:c}=(0,ct.useEntityRecords)("postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}),u="showSubmenuIcon"in e&&s?.length>0&&s?.length<=100,m=(0,qe.useMemo)((()=>{if(null===s)return new Map;const e=s.sort(((e,t)=>e.menu_order===t.menu_order?e.title.rendered.localeCompare(t.title.rendered):e.menu_order-t.menu_order));return e.reduce(((e,t)=>{const{parent:n}=t;return e.has(n)?e.get(n).push(t):e.set(n,[t]),e}),new Map)}),[s]),p=Ah({clientId:t,pages:s,parentPageID:a}),d=(0,Ye.useBlockProps)({className:it()("wp-block-page-list",{"has-text-color":!!e.textColor,[(0,Ye.getColorClassName)("color",e.textColor)]:!!e.textColor,"has-background":!!e.backgroundColor,[(0,Ye.getColorClassName)("background-color",e.backgroundColor)]:!!e.backgroundColor}),style:{...e.style?.color}}),g=(e=a)=>{const t=m.get(e);return t?.length?t.reduce(((e,t)=>{const n=m.has(t.id),o={id:t.id,label:""!==t.title?.rendered?.trim()?t.title?.rendered:(0,Je.__)("(no title)"),title:t.title?.rendered,link:t.url,hasChildren:n};let a=null;const r=g(t.id);return a=(0,je.createBlock)("core/page-list-item",o,r),e.push(a),e}),[]):[]},h=(e=0,t=0)=>{const n=m.get(e);return n?.length?n.reduce(((e,n)=>{const o=m.has(n.id),a={value:n.id,label:"— ".repeat(t)+n.title.rendered,rawName:n.title.rendered};return e.push(a),o&&e.push(...h(n.id,t+1)),e}),[]):[]},_=(0,qe.useMemo)(h,[m]),b=(0,qe.useMemo)(g,[m,a]),{isNested:f,hasSelectedChild:y,parentBlock:v,hasDraggedChild:k,isChildOfNavigation:x}=(0,ut.useSelect)((e=>{const{getBlockParentsByBlockName:n,hasSelectedInnerBlock:o,getBlockRootClientId:a,hasDraggedInnerBlock:r}=e(Ye.store),l=n(t,"core/navigation-submenu",!0),i=n(t,"core/navigation",!0);return{isNested:l.length>0,isChildOfNavigation:i.length>0,hasSelectedChild:o(t,!0),hasDraggedChild:r(t,!0),parentBlock:a(t)}}),[t]),w=(0,Ye.useInnerBlocksProps)(d,{allowedBlocks:["core/page-list-item"],renderAppender:!1,__unstableDisableDropZone:!0,templateLock:!x&&"all",onInput:Fh,onChange:Fh,value:b}),{selectBlock:C}=(0,ut.useDispatch)(Ye.store);return(0,qe.useEffect)((()=>{(y||k)&&(i(),C(v))}),[y,k,v,C,i]),(0,qe.useEffect)((()=>{o({isNested:f})}),[f,o]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,_.length>0&&(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.ComboboxControl,{className:"editor-page-attributes__parent",label:(0,Je.__)("Parent page"),value:a,options:_,onChange:e=>o({parentPageID:null!=e?e:0}),help:(0,Je.__)("Choose a page to show only its subpages.")})),u&&(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Edit this menu")},(0,qe.createElement)("p",null,Vh),(0,qe.createElement)(Ke.Button,{variant:"primary",disabled:!c,onClick:p},(0,Je.__)("Edit")))),u&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ke.ToolbarButton,{title:(0,Je.__)("Edit"),onClick:i},(0,Je.__)("Edit"))),r&&(0,qe.createElement)(Dh,{onClick:p,onClose:()=>l(!1),disabled:!c})),(0,qe.createElement)($h,{blockProps:d,innerBlocksProps:w,hasResolvedPages:c,blockList:b,pages:s,parentPageID:a}))}},jh=()=>Qe({name:Oh,metadata:Gh,settings:Uh}),qh=()=>(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,qe.createElement)(Ke.Path,{d:"M1.50002 4L6.00002 8L10.5 4",strokeWidth:"1.5"}));const Wh={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/page-list-item",title:"Page List Item",category:"widgets",parent:["core/page-list"],description:"Displays a page inside a list of all pages.",keywords:["page","menu","navigation"],textdomain:"default",attributes:{id:{type:"number"},label:{type:"string"},title:{type:"string"},link:{type:"string"},hasChildren:{type:"boolean"}},usesContext:["textColor","customTextColor","backgroundColor","customBackgroundColor","overlayTextColor","customOverlayTextColor","overlayBackgroundColor","customOverlayBackgroundColor","fontSize","customFontSize","showSubmenuIcon","style","openSubmenusOnClick"],supports:{reusable:!1,html:!1,lock:!1,inserter:!1,__experimentalToolbar:!1},editorStyle:"wp-block-page-list-editor",style:"wp-block-page-list"},{name:Zh}=Wh,Qh={__experimentalLabel:({label:e})=>e,icon:th,example:{},edit:function({context:e,attributes:t}){const{id:n,label:o,link:a,hasChildren:r,title:l}=t,i="showSubmenuIcon"in e,s=(0,ut.useSelect)((e=>{if(!e(ct.store).canUser("read","settings"))return;const t=e(ct.store).getEntityRecord("root","site");return"page"===t?.show_on_front&&t?.page_on_front}),[]),c=fg(bg(e,!0)),u=(0,Ye.useBlockProps)(c,{className:"wp-block-pages-list__item"}),m=(0,Ye.useInnerBlocksProps)(u);return(0,qe.createElement)("li",{key:n,className:it()("wp-block-pages-list__item",{"has-child":r,"wp-block-navigation-item":i,"open-on-click":e.openSubmenusOnClick,"open-on-hover-click":!e.openSubmenusOnClick&&e.showSubmenuIcon,"menu-item-home":n===s})},r&&e.openSubmenusOnClick?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle","aria-expanded":"false"},(0,On.decodeEntities)(o)),(0,qe.createElement)("span",{className:"wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon"},(0,qe.createElement)(qh,null))):(0,qe.createElement)("a",{className:it()("wp-block-pages-list__item__link",{"wp-block-navigation-item__content":i}),href:a},(0,On.decodeEntities)(l)),r&&(0,qe.createElement)(qe.Fragment,null,!e.openSubmenusOnClick&&e.showSubmenuIcon&&(0,qe.createElement)("button",{className:"wp-block-navigation-item__content wp-block-navigation-submenu__toggle wp-block-page-list__submenu-icon wp-block-navigation__submenu-icon","aria-expanded":"false"},(0,qe.createElement)(qh,null)),(0,qe.createElement)("ul",{...m})))}},Kh=()=>Qe({name:Zh,metadata:Wh,settings:Qh});var Jh=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"m9.99609 14v-.2251l.00391.0001v6.225h1.5v-14.5h2.5v14.5h1.5v-14.5h3v-1.5h-8.50391c-2.76142 0-5 2.23858-5 5 0 2.7614 2.23858 5 5 5z"}));const Yh={className:!1},Xh={align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:""},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},textColor:{type:"string"},backgroundColor:{type:"string"},fontSize:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]},style:{type:"object"}},e_=e=>{if(!e.customTextColor&&!e.customBackgroundColor&&!e.customFontSize)return e;const t={};(e.customTextColor||e.customBackgroundColor)&&(t.color={}),e.customTextColor&&(t.color.text=e.customTextColor),e.customBackgroundColor&&(t.color.background=e.customBackgroundColor),e.customFontSize&&(t.typography={fontSize:e.customFontSize});const{customTextColor:n,customBackgroundColor:o,customFontSize:a,...r}=e;return{...r,style:t}},{style:t_,...n_}=Xh,o_=[{supports:Yh,attributes:{...n_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},save({attributes:e}){const{align:t,content:n,dropCap:o,direction:a}=e,r=it()({"has-drop-cap":t!==((0,Je.isRTL)()?"left":"right")&&"center"!==t&&o,[`has-text-align-${t}`]:t});return(0,qe.createElement)("p",{...Ye.useBlockProps.save({className:r,dir:a})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},{supports:Yh,attributes:{...n_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:e_,save({attributes:e}){const{align:t,content:n,dropCap:o,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:i,fontSize:s,customFontSize:c,direction:u}=e,m=(0,Ye.getColorClassName)("color",r),p=(0,Ye.getColorClassName)("background-color",a),d=(0,Ye.getFontSizeClass)(s),g=it()({"has-text-color":r||i,"has-background":a||l,"has-drop-cap":o,[`has-text-align-${t}`]:t,[d]:d,[m]:m,[p]:p}),h={backgroundColor:p?void 0:l,color:m?void 0:i,fontSize:d?void 0:c};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n,dir:u})}},{supports:Yh,attributes:{...n_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"}},migrate:e_,save({attributes:e}){const{align:t,content:n,dropCap:o,backgroundColor:a,textColor:r,customBackgroundColor:l,customTextColor:i,fontSize:s,customFontSize:c,direction:u}=e,m=(0,Ye.getColorClassName)("color",r),p=(0,Ye.getColorClassName)("background-color",a),d=(0,Ye.getFontSizeClass)(s),g=it()({"has-text-color":r||i,"has-background":a||l,"has-drop-cap":o,[d]:d,[m]:m,[p]:p}),h={backgroundColor:p?void 0:l,color:m?void 0:i,fontSize:d?void 0:c,textAlign:t};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:n,dir:u})}},{supports:Yh,attributes:{...n_,customTextColor:{type:"string"},customBackgroundColor:{type:"string"},customFontSize:{type:"number"},width:{type:"string"}},migrate:e_,save({attributes:e}){const{width:t,align:n,content:o,dropCap:a,backgroundColor:r,textColor:l,customBackgroundColor:i,customTextColor:s,fontSize:c,customFontSize:u}=e,m=(0,Ye.getColorClassName)("color",l),p=(0,Ye.getColorClassName)("background-color",r),d=c&&`is-${c}-text`,g=it()({[`align${t}`]:t,"has-background":r||i,"has-drop-cap":a,[d]:d,[m]:m,[p]:p}),h={backgroundColor:p?void 0:i,color:m?void 0:s,fontSize:d?void 0:u,textAlign:n};return(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",style:h,className:g||void 0,value:o})}},{supports:Yh,attributes:{...n_,fontSize:{type:"number"}},save({attributes:e}){const{width:t,align:n,content:o,dropCap:a,backgroundColor:r,textColor:l,fontSize:i}=e,s=it()({[`align${t}`]:t,"has-background":r,"has-drop-cap":a}),c={backgroundColor:r,color:l,fontSize:i,textAlign:n};return(0,qe.createElement)("p",{style:c,className:s||void 0},o)},migrate(e){return e_({...e,customFontSize:Number.isFinite(e.fontSize)?e.fontSize:void 0,customTextColor:e.textColor&&"#"===e.textColor[0]?e.textColor:void 0,customBackgroundColor:e.backgroundColor&&"#"===e.backgroundColor[0]?e.backgroundColor:void 0})}},{supports:Yh,attributes:{...Xh,content:{type:"string",source:"html",default:""}},save({attributes:e}){return(0,qe.createElement)(qe.RawHTML,null,e.content)},migrate(e){return e}}];var a_=o_;var r_=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M5.52 2h7.43c.55 0 1 .45 1 1s-.45 1-1 1h-1v13c0 .55-.45 1-1 1s-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v12c0 .55-.45 1-1 1s-1-.45-1-1v-5.96h-.43C3.02 11.04 1 9.02 1 6.52S3.02 2 5.52 2zM14 14l5-4-5-4v8z"}));function l_(e){const{batch:t}=(0,ut.useRegistry)(),{moveBlocksToPosition:n,replaceInnerBlocks:o,duplicateBlocks:a,insertBlock:r}=(0,ut.useDispatch)(Ye.store),{getBlockRootClientId:l,getBlockIndex:i,getBlockOrder:s,getBlockName:c,getBlock:u,getNextBlockClientId:m}=(0,ut.useSelect)(Ye.store),p=(0,qe.useRef)(e);return p.current=e,(0,Tt.useRefEffect)((e=>{function d(e){if(e.defaultPrevented)return;if(e.keyCode!==un.ENTER)return;const{content:d,clientId:g}=p.current;if(d.length)return;const h=l(g);if(!(0,je.hasBlockSupport)(c(h),"__experimentalOnEnter",!1))return;const _=s(h);e.preventDefault();const b=_.indexOf(g);if(b===_.length-1)return void n([g],h,l(h),i(h)+1);const f=u(h);t((()=>{a([h]);const e=i(h);o(h,f.innerBlocks.slice(0,b)),o(m(h),f.innerBlocks.slice(b+1)),r((0,je.createBlock)("core/paragraph"),e+1,l(h),!0)}))}return e.addEventListener("keydown",d),()=>{e.removeEventListener("keydown",d)}}),[])}function i_({direction:e,setDirection:t}){return(0,Je.isRTL)()&&(0,qe.createElement)(Ke.ToolbarButton,{icon:r_,title:(0,Je._x)("Left to right","editor button"),isActive:"ltr"===e,onClick:()=>{t("ltr"===e?void 0:"ltr")}})}function s_(e){return e===((0,Je.isRTL)()?"left":"right")||"center"===e}var c_=function({attributes:e,mergeBlocks:t,onReplace:n,onRemove:o,setAttributes:a,clientId:r}){const{align:l,content:i,direction:s,dropCap:c,placeholder:u}=e,m=(0,Ye.useSetting)("typography.dropCap"),p=(0,Ye.useBlockProps)({ref:l_({clientId:r,content:i}),className:it()({"has-drop-cap":!s_(l)&&c,[`has-text-align-${l}`]:l}),style:{direction:s}});let d;return d=s_(l)?(0,Je.__)("Not available for aligned text."):c?(0,Je.__)("Showing large initial letter."):(0,Je.__)("Toggle to show a large initial letter."),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:l,onChange:e=>a({align:e,dropCap:!s_(e)&&c})}),(0,qe.createElement)(i_,{direction:s,setDirection:e=>a({direction:e})})),m&&(0,qe.createElement)(Ye.InspectorControls,{group:"typography"},(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!c,label:(0,Je.__)("Drop cap"),onDeselect:()=>a({dropCap:void 0}),resetAllFilter:()=>({dropCap:void 0}),panelId:r},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Drop cap"),checked:!!c,onChange:()=>a({dropCap:!c}),help:d,disabled:!!s_(l)}))),(0,qe.createElement)(Ye.RichText,{identifier:"content",tagName:"p",...p,value:i,onChange:e=>a({content:e}),onSplit:(t,n)=>{let o;(n||t)&&(o={...e,content:t});const a=(0,je.createBlock)("core/paragraph",o);return n&&(a.clientId=r),a},onMerge:t,onReplace:n,onRemove:o,"aria-label":i?(0,Je.__)("Paragraph block"):(0,Je.__)("Empty block; start writing or type forward slash to choose a block"),"data-empty":!i,placeholder:u||(0,Je.__)("Type / to choose a block"),"data-custom-placeholder":!!u||void 0,__unstableEmbedURLOnPaste:!0,__unstableAllowPrefixTransformations:!0}))};const{name:u_}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},m_={from:[{type:"raw",priority:20,selector:"p",schema:({phrasingContentSchema:e,isPaste:t})=>({p:{children:e,attributes:t?[]:["style","id"]}}),transform(e){const t=(0,je.getBlockAttributes)(u_,e.outerHTML),{textAlign:n}=e.style||{};return"left"!==n&&"center"!==n&&"right"!==n||(t.align=n),(0,je.createBlock)(u_,t)}}]};var p_=m_;const d_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/paragraph",title:"Paragraph",category:"text",description:"Start with the basic building block of all narrative.",keywords:["text"],textdomain:"default",attributes:{align:{type:"string"},content:{type:"string",source:"html",selector:"p",default:"",__experimentalRole:"content"},dropCap:{type:"boolean",default:!1},placeholder:{type:"string"},direction:{type:"string",enum:["ltr","rtl"]}},supports:{anchor:!0,className:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalSelector:"p",__unstablePasteTextInline:!0},editorStyle:"wp-block-paragraph-editor",style:"wp-block-paragraph"},{name:g_}=d_,h_={icon:Jh,example:{attributes:{content:(0,Je.__)("In a village of La Mancha, the name of which I have no desire to call to mind, there lived not long since one of those gentlemen that keep a lance in the lance-rack, an old buckler, a lean hack, and a greyhound for coursing.")}},__experimentalLabel(e,{context:t}){if("accessibility"===t){const{content:t}=e;return t&&0!==t.length?t:(0,Je.__)("Empty")}},transforms:p_,deprecated:a_,merge(e,t){return{content:(e.content||"")+(t.content||"")}},edit:c_,save:function({attributes:e}){const{align:t,content:n,dropCap:o,direction:a}=e,r=it()({"has-drop-cap":t!==((0,Je.isRTL)()?"left":"right")&&"center"!==t&&o,[`has-text-align-${t}`]:t});return(0,qe.createElement)("p",{...Ye.useBlockProps.save({className:r,dir:a})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},__=()=>Qe({name:g_,metadata:d_,settings:h_});var b_=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"}));const f_={who:"authors",per_page:100};var y_=function({isSelected:e,context:{postType:t,postId:n,queryId:o},attributes:a,setAttributes:r}){const l=Number.isFinite(o),{authorId:i,authorDetails:s,authors:c}=(0,ut.useSelect)((e=>{const{getEditedEntityRecord:o,getUser:a,getUsers:r}=e(ct.store),l=o("postType",t,n)?.author;return{authorId:l,authorDetails:l?a(l):null,authors:r(f_)}}),[t,n]),{editEntityRecord:u}=(0,ut.useDispatch)(ct.store),{textAlign:m,showAvatar:p,showBio:d,byline:g,isLink:h,linkTarget:_}=a,b=[],f=s?.name||(0,Je.__)("Post Author");s?.avatar_urls&&Object.keys(s.avatar_urls).forEach((e=>{b.push({value:e,label:`${e} x ${e}`})}));const y=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${m}`]:m})}),v=c?.length?c.map((({id:e,name:t})=>({value:e,label:t}))):[],k=e=>{u("postType",t,n,{author:e})},x=v.length>=25,w=!!n&&!l&&v.length>0;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},w&&(x&&(0,qe.createElement)(Ke.ComboboxControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Author"),options:v,value:i,onChange:k,allowReset:!1})||(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Author"),value:i,options:v,onChange:k})),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show avatar"),checked:p,onChange:()=>r({showAvatar:!p})}),p&&(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Avatar size"),value:a.avatarSize,options:b,onChange:e=>{r({avatarSize:Number(e)})}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show bio"),checked:d,onChange:()=>r({showBio:!d})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link author name to author page"),checked:h,onChange:()=>r({isLink:!h})}),h&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===_}))),(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:m,onChange:e=>{r({textAlign:e})}})),(0,qe.createElement)("div",{...y},p&&s?.avatar_urls&&(0,qe.createElement)("div",{className:"wp-block-post-author__avatar"},(0,qe.createElement)("img",{width:a.avatarSize,src:s.avatar_urls[a.avatarSize],alt:s.name})),(0,qe.createElement)("div",{className:"wp-block-post-author__content"},(!Ye.RichText.isEmpty(g)||e)&&(0,qe.createElement)(Ye.RichText,{className:"wp-block-post-author__byline",multiline:!1,"aria-label":(0,Je.__)("Post author byline text"),placeholder:(0,Je.__)("Write byline…"),value:g,onChange:e=>r({byline:e})}),(0,qe.createElement)("p",{className:"wp-block-post-author__name"},h?(0,qe.createElement)("a",{href:"#post-author-pseudo-link",onClick:e=>e.preventDefault()},f):f),d&&(0,qe.createElement)("p",{className:"wp-block-post-author__bio",dangerouslySetInnerHTML:{__html:s?.description}}))))};const v_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author",title:"Post Author",category:"theme",description:"Display post author details such as name, avatar, and bio.",textdomain:"default",attributes:{textAlign:{type:"string"},avatarSize:{type:"number",default:48},showAvatar:{type:"boolean",default:!0},showBio:{type:"boolean"},byline:{type:"string"},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId","queryId"],supports:{html:!1,spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},color:{gradients:!0,link:!0,__experimentalDuotone:".wp-block-post-author__avatar img",__experimentalDefaultControls:{background:!0,text:!0}}},style:"wp-block-post-author"},{name:k_}=v_,x_={icon:b_,edit:y_},w_=()=>Qe({name:k_,metadata:v_,settings:x_});var C_=function({context:{postType:e,postId:t},attributes:{textAlign:n,isLink:o,linkTarget:a},setAttributes:r}){const{authorName:l}=(0,ut.useSelect)((n=>{const{getEditedEntityRecord:o,getUser:a}=n(ct.store),r=o("postType",e,t)?.author;return{authorName:r?a(r):null}}),[e,t]),i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${n}`]:n})}),s=l?.name||(0,Je.__)("Author Name"),c=o?(0,qe.createElement)("a",{href:"#author-pseudo-link",onClick:e=>e.preventDefault(),className:"wp-block-post-author-name__link"},s):s;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:n,onChange:e=>{r({textAlign:e})}})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link to author archive"),onChange:()=>r({isLink:!o}),checked:o}),o&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a}))),(0,qe.createElement)("div",{...i}," ",c," "))};var E_={from:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,je.createBlock)("core/post-author-name",{textAlign:e})}],to:[{type:"block",blocks:["core/post-author"],transform:({textAlign:e})=>(0,je.createBlock)("core/post-author",{textAlign:e})}]};const S_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-name",title:"Post Author Name",category:"theme",description:"The author name.",textdomain:"default",attributes:{textAlign:{type:"string"},isLink:{type:"boolean",default:!1},linkTarget:{type:"string",default:"_self"}},usesContext:["postType","postId"],supports:{html:!1,spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:B_}=S_,T_={icon:b_,transforms:E_,edit:C_},N_=()=>Qe({name:B_,metadata:S_,settings:T_});var P_=function({context:{postType:e,postId:t},attributes:{textAlign:n},setAttributes:o}){const{authorDetails:a}=(0,ut.useSelect)((n=>{const{getEditedEntityRecord:o,getUser:a}=n(ct.store),r=o("postType",e,t)?.author;return{authorDetails:r?a(r):null}}),[e,t]),r=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${n}`]:n})}),l=a?.description||(0,Je.__)("Author Biography");return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:n,onChange:e=>{o({textAlign:e})}})),(0,qe.createElement)("div",{...r,dangerouslySetInnerHTML:{__html:l}}))};const I_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-author-biography",title:"Post Author Biography",category:"theme",description:"The author biography.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postType","postId"],supports:{spacing:{margin:!0,padding:!0},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:M_}=I_,z_={icon:b_,edit:P_},R_=()=>Qe({name:M_,metadata:I_,settings:z_});var H_=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));const L_=["core/avatar","core/comment-author-name","core/comment-content","core/comment-date","core/comment-edit-link","core/comment-reply-link"],A_=[["core/avatar"],["core/comment-author-name"],["core/comment-date"],["core/comment-content"],["core/comment-reply-link"],["core/comment-edit-link"]];const V_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comment",title:"Post Comment (deprecated)",category:"theme",description:"This block is deprecated. Please use the Comments block instead.",textdomain:"default",attributes:{commentId:{type:"number"}},providesContext:{commentId:"commentId"},supports:{html:!1,inserter:!1}},{name:D_}=V_,F_={icon:bm,edit:function({attributes:{commentId:e},setAttributes:t}){const[n,o]=(0,qe.useState)(e),a=(0,Ye.useBlockProps)(),r=(0,Ye.useInnerBlocksProps)(a,{template:A_,allowedBlocks:L_});return e?(0,qe.createElement)("div",{...r}):(0,qe.createElement)("div",{...a},(0,qe.createElement)(Ke.Placeholder,{icon:H_,label:(0,Je._x)("Post Comment","block title"),instructions:(0,Je.__)("To show a comment, input the comment ID.")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,value:e,onChange:e=>o(parseInt(e))}),(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:()=>{t({commentId:n})}},(0,Je.__)("Save"))))},save:function(){const e=Ye.useBlockProps.save(),t=Ye.useInnerBlocksProps.save(e);return(0,qe.createElement)("div",{...t})}},$_=()=>Qe({name:D_,metadata:V_,settings:F_});var G_=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-2.2 6.6H7l1.6-2.2c.3-.4.5-.7.6-.9.1-.2.2-.4.2-.5 0-.2-.1-.3-.1-.4-.1-.1-.2-.1-.4-.1s-.4 0-.6.1c-.3.1-.5.3-.7.4l-.2.2-.2-1.2.1-.1c.3-.2.5-.3.8-.4.3-.1.6-.1.9-.1.3 0 .6.1.9.2.2.1.4.3.6.5.1.2.2.5.2.7 0 .3-.1.6-.2.9-.1.3-.4.7-.7 1.1l-.5.6h1.6v1.2z"}));const O_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comments-count",title:"Post Comments Count",category:"theme",description:"Display a post's comments count.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:U_}=O_,j_={icon:G_,edit:function({attributes:e,context:t,setAttributes:n}){const{textAlign:o}=e,{postId:a}=t,[r,l]=(0,qe.useState)(),i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});(0,qe.useEffect)((()=>{if(!a)return;const e=a;Ha()({path:(0,st.addQueryArgs)("/wp/v2/comments",{post:a}),parse:!1}).then((t=>{e===a&&l(t.headers.get("X-WP-Total"))}))}),[a]);const s=a&&void 0!==r,c={...i.style,textDecoration:s?i.style?.textDecoration:void 0};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})),(0,qe.createElement)("div",{...i,style:c},s?r:(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Post Comments Count block: post not found."))))}},q_=()=>Qe({name:U_,metadata:O_,settings:j_});var W_=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 8H4v1.5h9V8zM4 4v1.5h16V4H4zm9 8H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1V13c0-.6-.4-1-1-1zm-.5 6.6H6.7l-1.2 1.2v-6.3h7v5.1z"}));const Z_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-comments-form",title:"Post Comments Form",category:"theme",description:"Display a post's comments form.",textdomain:"default",attributes:{textAlign:{type:"string"}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-comments-form-editor",style:["wp-block-post-comments-form","wp-block-buttons","wp-block-button"]},{name:Q_}=Z_,K_={icon:W_,edit:function({attributes:e,context:t,setAttributes:n}){const{textAlign:o}=e,{postId:a,postType:r}=t,l=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})),(0,qe.createElement)("div",{...l},(0,qe.createElement)(Uo,{postId:a,postType:r})))}},J_=()=>Qe({name:Q_,metadata:Z_,settings:K_});var Y_=function({context:e,attributes:t,setAttributes:n}){const{textAlign:o}=t,{postType:a,postId:r}=e,[l,i]=(0,qe.useState)(),s=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});(0,qe.useEffect)((()=>{if(!r)return;const e=r;Ha()({path:(0,st.addQueryArgs)("/wp/v2/comments",{post:r}),parse:!1}).then((t=>{e===r&&i(t.headers.get("X-WP-Total"))}))}),[r]);const c=(0,ut.useSelect)((e=>e(ct.store).getEditedEntityRecord("postType",a,r)),[a,r]);if(!c)return null;const{link:u}=c;let m;if(void 0!==l){const e=parseInt(l);m=0===e?(0,Je.__)("No comments"):(0,Je.sprintf)((0,Je._n)("%s comment","%s comments",e),e.toLocaleString())}return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{n({textAlign:e})}})),(0,qe.createElement)("div",{...s},u&&void 0!==m?(0,qe.createElement)("a",{href:u+"#comments",onClick:e=>e.preventDefault()},m):(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Post Comments Link block: post not found."))))};const X_={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:"fse",name:"core/post-comments-link",title:"Post Comments Link",category:"theme",description:"Displays the link to the current post comments.",textdomain:"default",usesContext:["postType","postId"],attributes:{textAlign:{type:"string"}},supports:{html:!1,color:{link:!0,text:!1,__experimentalDefaultControls:{background:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:eb}=X_,tb={edit:Y_,icon:G_},nb=()=>Qe({name:eb,metadata:X_,settings:tb});var ob=(0,qe.createElement)(We.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 6h12V4.5H4V6Zm16 4.5H4V9h16v1.5ZM4 15h16v-1.5H4V15Zm0 4.5h16V18H4v1.5Z"}));function ab(e,t,n){return(0,ut.useSelect)((o=>o(ct.store).canUserEditEntityRecord(e,t,n)),[e,t,n])}function rb({userCanEdit:e,postType:t,postId:n}){const[,,o]=(0,ct.useEntityProp)("postType",t,"content",n),a=(0,Ye.useBlockProps)();return o?.protected&&!e?(0,qe.createElement)("div",{...a},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("This content is password protected."))):(0,qe.createElement)("div",{...a,dangerouslySetInnerHTML:{__html:o?.rendered}})}function lb({context:e={}}){const{postType:t,postId:n}=e,[o,a,r]=(0,ct.useEntityBlockEditor)("postType",t,{id:n}),l=(0,ut.useSelect)((e=>e(ct.store).getEntityRecord("postType",t,n)),[t,n]),i=!!l?.content?.raw||o?.length,s=(0,Ye.useInnerBlocksProps)((0,Ye.useBlockProps)({className:"entry-content"}),{value:o,onInput:a,onChange:r,template:i?void 0:[["core/paragraph"]]});return(0,qe.createElement)("div",{...s})}function ib(e){const{context:{queryId:t,postType:n,postId:o}={}}=e,a=ab("postType",n,o);if(void 0===a)return null;const r=Number.isFinite(t);return a&&!r?(0,qe.createElement)(lb,{...e}):(0,qe.createElement)(rb,{userCanEdit:a,postType:n,postId:o})}function sb({layoutClassNames:e}){const t=(0,Ye.useBlockProps)({className:e});return(0,qe.createElement)("div",{...t},(0,qe.createElement)("p",null,(0,Je.__)("This is the Post Content block, it will display all the blocks in any single post or page.")),(0,qe.createElement)("p",null,(0,Je.__)("That might be a simple arrangement like consecutive paragraphs in a blog post, or a more elaborate composition that includes image galleries, videos, tables, columns, and any other block types.")),(0,qe.createElement)("p",null,(0,Je.__)("If there are any Custom Post Types registered at your site, the Post Content block can display the contents of those entries as well.")))}function cb(){const e=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...e},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block cannot be rendered inside itself.")))}const ub={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-content",title:"Post Content",category:"theme",description:"Displays the contents of a post or page.",textdomain:"default",usesContext:["postId","postType","queryId"],supports:{align:["wide","full"],html:!1,layout:!0,dimensions:{minHeight:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-content-editor"},{name:mb}=ub,pb={icon:ob,edit:function({context:e,attributes:t,__unstableLayoutClassNames:n}){const{postId:o,postType:a}=e,{layout:r={}}=t,l=(0,Ye.__experimentalUseHasRecursion)(o);return o&&a&&l?(0,qe.createElement)(cb,null):(0,qe.createElement)(Ye.__experimentalRecursionProvider,{uniqueId:o},o&&a?(0,qe.createElement)(ib,{context:e,layout:r}):(0,qe.createElement)(sb,{layoutClassNames:n}))}},db=()=>Qe({name:mb,metadata:ub,settings:pb});function gb(e){return/(?:^|[^\\])[aAgh]/.test(e)}const hb={attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1}},supports:{html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var _b=[hb];const bb=[{name:"post-date-modified",title:(0,Je.__)("Post Modified Date"),description:(0,Je.__)("Display a post's last updated date."),attributes:{displayType:"modified"},scope:["block","inserter"],isActive:e=>"modified"===e.displayType,icon:ga}];var fb=bb;const yb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-date",title:"Post Date",category:"theme",description:"Add the date of this post.",textdomain:"default",attributes:{textAlign:{type:"string"},format:{type:"string"},isLink:{type:"boolean",default:!1},displayType:{type:"string",default:"date"}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:vb}=yb,kb={icon:ga,edit:function({attributes:{textAlign:e,format:t,isLink:n,displayType:o},context:{postId:a,postType:r,queryId:l},setAttributes:i}){const s=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${e}`]:e,"wp-block-post-date__modified-date":"modified"===o})}),[c,u]=(0,qe.useState)(null),m=(0,qe.useMemo)((()=>({anchor:c})),[c]),p=Number.isFinite(l),d=(0,ha.getSettings)(),[g=d.formats.date]=(0,ct.useEntityProp)("root","site","date_format"),[h=d.formats.time]=(0,ct.useEntityProp)("root","site","time_format"),[_,b]=(0,ct.useEntityProp)("postType",r,o,a),f=(0,ut.useSelect)((e=>r?e(ct.store).getPostType(r):null),[r]),y="date"===o?(0,Je.__)("Post Date"):(0,Je.__)("Post Modified Date");let v=_?(0,qe.createElement)("time",{dateTime:(0,ha.dateI18n)("c",_),ref:u},(0,ha.dateI18n)(t||g,_)):y;return n&&_&&(v=(0,qe.createElement)("a",{href:"#post-date-pseudo-link",onClick:e=>e.preventDefault()},v)),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:e,onChange:e=>{i({textAlign:e})}}),_&&!p&&(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.Dropdown,{popoverProps:m,renderContent:({onClose:e})=>(0,qe.createElement)(Ye.__experimentalPublishDateTimePicker,{currentDate:_,onChange:b,is12Hour:gb(h),onClose:e}),renderToggle:({isOpen:e,onToggle:t})=>(0,qe.createElement)(Ke.ToolbarButton,{"aria-expanded":e,icon:yi,title:(0,Je.__)("Change Date"),onClick:t,onKeyDown:n=>{e||n.keyCode!==un.DOWN||(n.preventDefault(),t())}})}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ye.__experimentalDateFormatPicker,{format:t,defaultFormat:g,onChange:e=>i({format:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:f?.labels.singular_name?(0,Je.sprintf)((0,Je.__)("Link to %s"),f.labels.singular_name.toLowerCase()):(0,Je.__)("Link to post"),onChange:()=>i({isLink:!n}),checked:n}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display last modified date"),onChange:e=>i({displayType:e?"modified":"date"}),checked:"modified"===o,help:(0,Je.__)("Only shows if the post has been modified")}))),(0,qe.createElement)("div",{...s},v))},deprecated:_b,variations:fb},xb=()=>Qe({name:vb,metadata:yb,settings:kb});var wb=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12.75 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.395.395 0 00.199-.166c.05-.083.114-.253.114-.584V7.2H8.8V4h3.95v5.333zM7.95 9.333c0 .521-.102.977-.327 1.354-.23.386-.555.628-.893.774-.545.234-1.183.227-1.544.222l-.12-.001v-1.5h.123c.414.001.715.002.948-.099a.394.394 0 00.198-.166c.05-.083.115-.253.115-.584V7.2H4V4h3.95v5.333zM13 20H4v-1.5h9V20zM20 16H4v-1.5h16V16z"}));var Cb={from:[{type:"block",blocks:["core/post-content"],transform:()=>(0,je.createBlock)("core/post-excerpt")}],to:[{type:"block",blocks:["core/post-content"],transform:()=>(0,je.createBlock)("core/post-content")}]};const Eb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-excerpt",title:"Excerpt",category:"theme",description:"Display the excerpt.",textdomain:"default",attributes:{textAlign:{type:"string"},moreText:{type:"string"},showMoreOnNewLine:{type:"boolean",default:!0},excerptLength:{type:"number",default:55}},usesContext:["postId","postType","queryId"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-post-excerpt-editor",style:"wp-block-post-excerpt"},{name:Sb}=Eb,Bb={icon:wb,transforms:Cb,edit:function({attributes:{textAlign:e,moreText:t,showMoreOnNewLine:n,excerptLength:o},setAttributes:a,isSelected:r,context:{postId:l,postType:i,queryId:s}}){const c=Number.isFinite(s),u=ab("postType",i,l),[m,p,{rendered:d,protected:g}={}]=(0,ct.useEntityProp)("postType",i,"excerpt",l),h=(0,ut.useSelect)((e=>"page"===i||!!e(ct.store).getPostType(i)?.supports?.excerpt),[i]),_=u&&!c&&h,b=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${e}`]:e})}),f=(0,Je._x)("words","Word count type. Do not translate!"),y=(0,qe.useMemo)((()=>{if(!d)return"";const e=(new window.DOMParser).parseFromString(d,"text/html");return e.body.textContent||e.body.innerText||""}),[d]);if(!i||!l)return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:e,onChange:e=>a({textAlign:e})})),(0,qe.createElement)("div",{...b},(0,qe.createElement)("p",null,(0,Je.__)("This block will display the excerpt."))));if(g&&!u)return(0,qe.createElement)("div",{...b},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("The content is currently protected and does not have the available excerpt.")));const v=(0,qe.createElement)(Ye.RichText,{className:"wp-block-post-excerpt__more-link",tagName:"a","aria-label":(0,Je.__)("“Read more” link text"),placeholder:(0,Je.__)('Add "read more" link text'),value:t,onChange:e=>a({moreText:e}),withoutInteractiveFormatting:!0}),k=it()("wp-block-post-excerpt__excerpt",{"is-inline":!n}),x=(m||y).trim();let w="";if("words"===f)w=x.split(" ",o).join(" ");else if("characters_excluding_spaces"===f){const e=x.split("",o).join(""),t=e.length-e.replaceAll(" ","").length;w=x.split("",o+t).join("")}else"characters_including_spaces"===f&&(w=x.split("",o).join(""));const C=w!==x,E=_?(0,qe.createElement)(Ye.RichText,{className:k,"aria-label":(0,Je.__)("Excerpt text"),value:r?x:(C?w+"…":x)||(0,Je.__)("No excerpt found"),onChange:p,tagName:"p"}):(0,qe.createElement)("p",{className:k},C?w+"…":x||(0,Je.__)("No excerpt found"));return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:e,onChange:e=>a({textAlign:e})})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show link on new line"),checked:n,onChange:e=>a({showMoreOnNewLine:e})}),(0,qe.createElement)(Ke.RangeControl,{label:(0,Je.__)("Max number of words"),value:o,onChange:e=>{a({excerptLength:e})},min:"10",max:"100"}))),(0,qe.createElement)("div",{...b},E,!n&&" ",n?(0,qe.createElement)("p",{className:"wp-block-post-excerpt__more-text"},v):v))}},Tb=()=>Qe({name:Sb,metadata:Eb,settings:Bb});var Nb=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M19 3H5c-.6 0-1 .4-1 1v7c0 .5.4 1 1 1h14c.5 0 1-.4 1-1V4c0-.6-.4-1-1-1zM5.5 10.5v-.4l1.8-1.3 1.3.8c.3.2.7.2.9-.1L11 8.1l2.4 2.4H5.5zm13 0h-2.9l-4-4c-.3-.3-.8-.3-1.1 0L8.9 8l-1.2-.8c-.3-.2-.6-.2-.9 0l-1.3 1V4.5h13v6zM4 20h9v-1.5H4V20zm0-4h16v-1.5H4V16z"}));const Pb=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"cover",label:(0,Je._x)("Cover","Scale option for Image dimension control")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"contain",label:(0,Je._x)("Contain","Scale option for Image dimension control")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"fill",label:(0,Je._x)("Fill","Scale option for Image dimension control")})),Ib="cover",Mb={cover:(0,Je.__)("Image is scaled and cropped to fill the entire space without being distorted."),contain:(0,Je.__)("Image is scaled to fill the space without clipping nor distorting."),fill:(0,Je.__)("Image will be stretched and distorted to completely fill the space.")};var zb=({clientId:e,attributes:{aspectRatio:t,width:n,height:o,scale:a,sizeSlug:r},setAttributes:l,imageSizeOptions:i=[]})=>{const s=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["px","%","vw","em","rem"]}),c=(e,t)=>{const n=parseFloat(t);isNaN(n)&&t||l({[e]:n<0?"0":t})},u=(0,Je._x)("Scale","Image scaling options"),m=o||t&&"auto"!==t;return(0,qe.createElement)(Ye.InspectorControls,{group:"dimensions"},(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!t,label:(0,Je.__)("Aspect ratio"),onDeselect:()=>l({aspectRatio:void 0}),resetAllFilter:()=>({aspectRatio:void 0}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Aspect ratio"),value:t,options:[{label:(0,Je.__)("Original"),value:"auto"},{label:(0,Je.__)("Square"),value:"1"},{label:(0,Je.__)("16:9"),value:"16/9"},{label:(0,Je.__)("4:3"),value:"4/3"},{label:(0,Je.__)("3:2"),value:"3/2"},{label:(0,Je.__)("9:16"),value:"9/16"},{label:(0,Je.__)("3:4"),value:"3/4"},{label:(0,Je.__)("2:3"),value:"2/3"}],onChange:e=>l({aspectRatio:e})})),(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!o,label:(0,Je.__)("Height"),onDeselect:()=>l({height:void 0}),resetAllFilter:()=>({height:void 0}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Height"),labelPosition:"top",value:o||"",min:0,onChange:e=>c("height",e),units:s})),(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{className:"single-column",hasValue:()=>!!n,label:(0,Je.__)("Width"),onDeselect:()=>l({width:void 0}),resetAllFilter:()=>({width:void 0}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Width"),labelPosition:"top",value:n||"",min:0,onChange:e=>c("width",e),units:s})),m&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!a&&a!==Ib,label:u,onDeselect:()=>l({scale:Ib}),resetAllFilter:()=>({scale:Ib}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:u,value:a,help:Mb[a],onChange:e=>l({scale:e}),isBlock:!0},Pb)),!!i.length&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!r,label:(0,Je.__)("Resolution"),onDeselect:()=>l({sizeSlug:void 0}),resetAllFilter:()=>({sizeSlug:void 0}),isShownByDefault:!1,panelId:e},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Resolution"),value:r||"full",options:i,onChange:e=>l({sizeSlug:e}),help:(0,Je.__)("Select the size of the source image.")})))};var Rb=(0,Tt.compose)([(0,Ye.withColors)({overlayColor:"background-color"})])((({clientId:e,attributes:t,setAttributes:n,overlayColor:o,setOverlayColor:a})=>{const{dimRatio:r}=t,{gradientClass:l,gradientValue:i,setGradient:s}=(0,Ye.__experimentalUseGradient)(),c=(0,Ye.__experimentalUseMultipleOriginColorsAndGradients)(),u=(0,Ye.__experimentalUseBorderProps)(t),m={backgroundColor:o.color,backgroundImage:i,...u.style};return c.hasColorsOrGradients?(0,qe.createElement)(qe.Fragment,null,!!r&&(0,qe.createElement)("span",{"aria-hidden":"true",className:it()("wp-block-post-featured-image__overlay",(p=r,void 0===p?null:"has-background-dim-"+10*Math.round(p/10)),{[o.class]:o.class,"has-background-dim":void 0!==r,"has-background-gradient":i,[l]:l},u.className),style:m}),(0,qe.createElement)(Ye.InspectorControls,{group:"color"},(0,qe.createElement)(Ye.__experimentalColorGradientSettingsDropdown,{__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o.color,gradientValue:i,label:(0,Je.__)("Overlay"),onColorChange:a,onGradientChange:s,isShownByDefault:!0,resetAllFilter:()=>({overlayColor:void 0,customOverlayColor:void 0,gradient:void 0,customGradient:void 0})}],panelId:e,...c}),(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>void 0!==r,label:(0,Je.__)("Overlay opacity"),onDeselect:()=>n({dimRatio:0}),resetAllFilter:()=>({dimRatio:0}),isShownByDefault:!0,panelId:e},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Overlay opacity"),value:r,onChange:e=>n({dimRatio:e}),min:0,max:100,step:10,required:!0})))):null;var p}));const Hb=["image"];const Lb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-featured-image",title:"Post Featured Image",category:"theme",description:"Display a post's featured image.",textdomain:"default",attributes:{isLink:{type:"boolean",default:!1},aspectRatio:{type:"string"},width:{type:"string"},height:{type:"string"},scale:{type:"string",default:"cover"},sizeSlug:{type:"string"},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"},overlayColor:{type:"string"},customOverlayColor:{type:"string"},dimRatio:{type:"number",default:0},gradient:{type:"string"},customGradient:{type:"string"}},usesContext:["postId","postType","queryId"],supports:{align:["left","right","center","wide","full"],color:{__experimentalDuotone:"img, .wp-block-post-featured-image__placeholder, .components-placeholder__illustration, .components-placeholder::before",text:!1,background:!1},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSelector:"img, .block-editor-media-placeholder, .wp-block-post-featured-image__overlay",__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},html:!1,spacing:{margin:!0,padding:!0}},editorStyle:"wp-block-post-featured-image-editor",style:"wp-block-post-featured-image"},{name:Ab}=Lb,Vb={icon:Nb,edit:function({clientId:e,attributes:t,setAttributes:n,context:{postId:o,postType:a,queryId:r}}){const l=Number.isFinite(r),{isLink:i,aspectRatio:s,height:c,width:u,scale:m,sizeSlug:p,rel:d,linkTarget:g}=t,[h,_]=(0,ct.useEntityProp)("postType",a,"featured_media",o),{media:b,postType:f}=(0,ut.useSelect)((e=>{const{getMedia:t,getPostType:n}=e(ct.store);return{media:h&&t(h,{context:"view"}),postType:a&&n(a)}}),[h,a]),y=function(e,t){return e?.media_details?.sizes?.[t]?.source_url||e?.source_url}(b,p),v=(0,ut.useSelect)((e=>e(Ye.store).getSettings().imageSizes),[]).filter((({slug:e})=>b?.media_details?.sizes?.[e]?.source_url)).map((({name:e,slug:t})=>({value:t,label:e}))),k=(0,Ye.useBlockProps)({style:{width:u,height:c,aspectRatio:s}}),x=(0,Ye.__experimentalUseBorderProps)(t),w=e=>(0,qe.createElement)(Ke.Placeholder,{className:it()("block-editor-media-placeholder",x.className),withIllustration:!0,style:{height:!!s&&"100%",width:!!s&&"100%",...x.style}},e),C=e=>{e?.id&&_(e.id)},{createErrorNotice:E}=(0,ut.useDispatch)(Bt.store),S=e=>{E(e,{type:"snackbar"})},B=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(zb,{clientId:e,attributes:t,setAttributes:n,imageSizeOptions:v}),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:f?.labels.singular_name?(0,Je.sprintf)((0,Je.__)("Link to %s"),f.labels.singular_name):(0,Je.__)("Link to post"),onChange:()=>n({isLink:!i}),checked:i}),i&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===g}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:d,onChange:e=>n({rel:e})})))));let T;if(!h&&(l||!o))return(0,qe.createElement)(qe.Fragment,null,B,(0,qe.createElement)("div",{...k},w(),(0,qe.createElement)(Rb,{attributes:t,setAttributes:n,clientId:e})));const N=(0,Je.__)("Add a featured image"),P={...x.style,height:s?"100%":c,width:!!s&&"100%",objectFit:!(!c&&!s)&&m};return T=h?b?(0,qe.createElement)("img",{className:x.className,src:y,alt:b.alt_text?(0,Je.sprintf)((0,Je.__)("Featured image: %s"),b.alt_text):(0,Je.__)("Featured image"),style:P}):w():(0,qe.createElement)(Ye.MediaPlaceholder,{onSelect:C,accept:"image/*",allowedTypes:Hb,onError:S,placeholder:w,mediaLibraryButton:({open:e})=>(0,qe.createElement)(Ke.Button,{icon:em,variant:"primary",label:N,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}),(0,qe.createElement)(qe.Fragment,null,B,!!b&&!l&&(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:h,mediaURL:y,allowedTypes:Hb,accept:"image/*",onSelect:C,onError:S},(0,qe.createElement)(Ke.MenuItem,{onClick:()=>_(0)},(0,Je.__)("Reset")))),(0,qe.createElement)("figure",{...k},T,(0,qe.createElement)(Rb,{attributes:t,setAttributes:n,clientId:e})))}},Db=()=>Qe({name:Ab,metadata:Lb,settings:Vb});var Fb=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"}));var $b=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"}));const Gb=[{isDefault:!0,name:"post-next",title:(0,Je.__)("Next post"),description:(0,Je.__)("Displays the post link that follows the current post."),icon:Fb,attributes:{type:"next"},scope:["inserter","transform"]},{name:"post-previous",title:(0,Je.__)("Previous post"),description:(0,Je.__)("Displays the post link that precedes the current post."),icon:$b,attributes:{type:"previous"},scope:["inserter","transform"]}];Gb.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Ob=Gb;const Ub={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-navigation-link",title:"Post Navigation Link",category:"theme",description:"Displays the next or previous post link that is adjacent to the current post.",textdomain:"default",attributes:{textAlign:{type:"string"},type:{type:"string",default:"next"},label:{type:"string"},showTitle:{type:"boolean",default:!1},linkLabel:{type:"boolean",default:!1},arrow:{type:"string",default:"none"}},supports:{reusable:!1,html:!1,color:{link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-post-navigation-link"},{name:jb}=Ub,qb={edit:function({attributes:{type:e,label:t,showTitle:n,textAlign:o,linkLabel:a,arrow:r},setAttributes:l}){const i="next"===e;let s=i?(0,Je.__)("Next"):(0,Je.__)("Previous");const c={none:"",arrow:i?"→":"←",chevron:i?"»":"«"}[r];n&&(s=i?(0,Je.__)("Next: "):(0,Je.__)("Previous: "));const u=i?(0,Je.__)("Next post"):(0,Je.__)("Previous post"),m=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display the title as a link"),help:(0,Je.__)("If you have entered a custom label, it will be prepended before the title."),checked:!!n,onChange:()=>l({showTitle:!n})}),n&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Include the label as part of the link"),checked:!!a,onChange:()=>l({linkLabel:!a})}),(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Arrow"),value:r,onChange:e=>{l({arrow:e})},help:(0,Je.__)("A decorative arrow for the next and previous link."),isBlock:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"none",label:(0,Je._x)("None","Arrow option for Next/Previous link")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Je._x)("Arrow","Arrow option for Next/Previous link")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Je._x)("Chevron","Arrow option for Next/Previous link")})))),(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:o,onChange:e=>{l({textAlign:e})}})),(0,qe.createElement)("div",{...m},!i&&c&&(0,qe.createElement)("span",{className:`wp-block-post-navigation-link__arrow-previous is-arrow-${r}`},c),(0,qe.createElement)(Ye.RichText,{tagName:"a","aria-label":u,placeholder:s,value:t,allowedFormats:["core/bold","core/italic"],onChange:e=>l({label:e})}),n&&(0,qe.createElement)("a",{href:"#post-navigation-pseudo-link",onClick:e=>e.preventDefault()},(0,Je.__)("An example title")),i&&c&&(0,qe.createElement)("span",{className:`wp-block-post-navigation-link__arrow-next is-arrow-${r}`,"aria-hidden":!0},c)))},variations:Ob},Wb=()=>Qe({name:jb,metadata:Ub,settings:qb}),Zb=[["core/post-title"],["core/post-date"],["core/post-excerpt"]];function Qb(){const e=(0,Ye.useInnerBlocksProps)({className:"wp-block-post"},{template:Zb,__unstableDisableLayoutClassNames:!0});return(0,qe.createElement)("li",{...e})}const Kb=(0,qe.memo)((function({blocks:e,blockContextId:t,isHidden:n,setActiveBlockContextId:o}){const a=(0,Ye.__experimentalUseBlockPreview)({blocks:e,props:{className:"wp-block-post"}}),r=()=>{o(t)},l={display:n?"none":void 0};return(0,qe.createElement)("li",{...a,tabIndex:0,role:"button",onClick:r,onKeyPress:r,style:l})}));const Jb={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-template",title:"Post Template",category:"theme",parent:["core/query"],description:"Contains the block elements used to render a post, like the title, date, featured image, content or excerpt, and more.",textdomain:"default",usesContext:["queryId","query","queryContext","displayLayout","templateSlug","previewPostType"],supports:{reusable:!1,html:!1,align:["wide","full"],layout:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},spacing:{blockGap:{__experimentalDefault:"1.25em"},__experimentalDefaultControls:{blockGap:!0}}},style:"wp-block-post-template",editorStyle:"wp-block-post-template-editor"},{name:Yb}=Jb,Xb={icon:za,edit:function({setAttributes:e,clientId:t,context:{query:{perPage:n,offset:o=0,postType:a,order:r,orderBy:l,author:i,search:s,exclude:c,sticky:u,inherit:m,taxQuery:p,parents:d,pages:g,...h}={},queryContext:_=[{page:1}],templateSlug:b,previewPostType:f},attributes:{layout:y},__unstableLayoutClassNames:v}){const{type:k,columnCount:x=3}=y||{},[{page:w}]=_,[C,E]=(0,qe.useState)(),{posts:S,blocks:B}=(0,ut.useSelect)((e=>{const{getEntityRecords:g,getTaxonomies:_}=e(ct.store),{getBlocks:y}=e(Ye.store),v=_({type:a,per_page:-1,context:"view"}),k=m&&b?.startsWith("category-")&&g("taxonomy","category",{context:"view",per_page:1,_fields:["id"],slug:b.replace("category-","")}),x={offset:n?n*(w-1)+o:0,order:r,orderby:l};if(p&&!m){const e=Object.entries(p).reduce(((e,[t,n])=>{const o=v?.find((({slug:e})=>e===t));return o?.rest_base&&(e[o?.rest_base]=n),e}),{});Object.keys(e).length&&Object.assign(x,e)}n&&(x.per_page=n),i&&(x.author=i),s&&(x.search=s),c?.length&&(x.exclude=c),d?.length&&(x.parent=d),u&&(x.sticky="only"===u),m&&(b?.startsWith("archive-")?(x.postType=b.replace("archive-",""),a=x.postType):k&&(x.categories=k[0]?.id));return{posts:g("postType",f||a,{...x,...h}),blocks:y(t)}}),[n,w,o,r,l,t,i,s,a,c,u,m,b,p,d,h,f]),T=(0,qe.useMemo)((()=>S?.map((e=>({postType:e.type,postId:e.id})))),[S]),N=(0,Ye.useBlockProps)({className:it()(v,{[`columns-${x}`]:"grid"===k&&x})});if(!S)return(0,qe.createElement)("p",{...N},(0,qe.createElement)(Ke.Spinner,null));if(!S.length)return(0,qe.createElement)("p",{...N}," ",(0,Je.__)("No results found."));const P=t=>e({layout:{...y,...t}}),I=[{icon:Em,title:(0,Je.__)("List view"),onClick:()=>P({type:"default"}),isActive:"default"===k||"constrained"===k},{icon:Jc,title:(0,Je.__)("Grid view"),onClick:()=>P({type:"grid",columnCount:x}),isActive:"grid"===k}];return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,{controls:I})),(0,qe.createElement)("ul",{...N},T&&T.map((e=>(0,qe.createElement)(Ye.BlockContextProvider,{key:e.postId,value:e},e.postId===(C||T[0]?.postId)?(0,qe.createElement)(Qb,null):null,(0,qe.createElement)(Kb,{blocks:B,blockContextId:e.postId,setActiveBlockContextId:E,isHidden:e.postId===(C||T[0]?.postId)}))))))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},ef=()=>Qe({name:Yb,metadata:Jb,settings:Xb});var tf=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M20 4H4v1.5h16V4zm-2 9h-3c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3zM4 9.5h9V8H4v1.5zM9 13H6c-1.1 0-2 .9-2 2v3c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2zm.5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-3c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3z",fillRule:"evenodd",clipRule:"evenodd"}));const nf=["core/bold","core/image","core/italic","core/link","core/strikethrough","core/text-color"];const of=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M8.1 12.3c.1.1.3.3.5.3.2.1.4.1.6.1.2 0 .4 0 .6-.1.2-.1.4-.2.5-.3l3-3c.3-.3.5-.7.5-1.1 0-.4-.2-.8-.5-1.1L9.7 3.5c-.1-.2-.3-.3-.5-.3H5c-.4 0-.8.4-.8.8v4.2c0 .2.1.4.2.5l3.7 3.6zM5.8 4.8h3.1l3.4 3.4v.1l-3 3 .5.5-.7-.5-3.3-3.4V4.8zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));const af={category:tf,post_tag:of};function rf(e,t){if("core/post-terms"!==t)return e;const n=e.variations.map((e=>{var t;return{...e,icon:null!==(t=af[e.name])&&void 0!==t?t:tf}}));return{...e,variations:n}}const lf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-terms",title:"Post Terms",category:"theme",description:"Post terms.",textdomain:"default",attributes:{term:{type:"string"},textAlign:{type:"string"},separator:{type:"string",default:", "},prefix:{type:"string",default:""},suffix:{type:"string",default:""}},usesContext:["postId","postType"],supports:{html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-post-terms"},{name:sf}=lf,cf={icon:tf,edit:function({attributes:e,clientId:t,context:n,isSelected:o,setAttributes:a,insertBlocksAfter:r}){const{term:l,textAlign:i,separator:s,prefix:c,suffix:u}=e,{postId:m,postType:p}=n,d=(0,ut.useSelect)((e=>{if(!l)return{};const{getTaxonomy:t}=e(ct.store),n=t(l);return n?.visibility?.publicly_queryable?n:{}}),[l]),{postTerms:g,hasPostTerms:h,isLoading:_}=function({postId:e,term:t}){const{slug:n}=t;return(0,ut.useSelect)((o=>{const a=t?.visibility?.publicly_queryable;if(!a)return{postTerms:[],_isLoading:!1,hasPostTerms:!1};const{getEntityRecords:r,isResolving:l}=o(ct.store),i=["taxonomy",n,{post:e,per_page:-1,context:"view"}],s=r(...i);return{postTerms:s,isLoading:l("getEntityRecords",i),hasPostTerms:!!s?.length}}),[e,t?.visibility?.publicly_queryable,n])}({postId:m,term:d}),b=m&&p,f=(0,Ye.useBlockDisplayInformation)(t),y=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${i}`]:i,[`taxonomy-${l}`]:l})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:i,onChange:e=>{a({textAlign:e})}})),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,autoComplete:"off",label:(0,Je.__)("Separator"),value:s||"",onChange:e=>{a({separator:e})},help:(0,Je.__)("Enter character(s) used to separate terms.")})),(0,qe.createElement)("div",{...y},_&&b&&(0,qe.createElement)(Ke.Spinner,null),!_&&h&&(o||c)&&(0,qe.createElement)(Ye.RichText,{allowedFormats:nf,className:"wp-block-post-terms__prefix",multiline:!1,"aria-label":(0,Je.__)("Prefix"),placeholder:(0,Je.__)("Prefix")+" ",value:c,onChange:e=>a({prefix:e}),tagName:"span"}),(!b||!l)&&(0,qe.createElement)("span",null,f.title),b&&!_&&h&&g.map((e=>(0,qe.createElement)("a",{key:e.id,href:e.link,onClick:e=>e.preventDefault()},(0,On.decodeEntities)(e.name)))).reduce(((e,t)=>(0,qe.createElement)(qe.Fragment,null,e,(0,qe.createElement)("span",{className:"wp-block-post-terms__separator"},s||" "),t))),b&&!_&&!h&&(d?.labels?.no_terms||(0,Je.__)("Term items not found.")),!_&&h&&(o||u)&&(0,qe.createElement)(Ye.RichText,{allowedFormats:nf,className:"wp-block-post-terms__suffix",multiline:!1,"aria-label":(0,Je.__)("Suffix"),placeholder:" "+(0,Je.__)("Suffix"),value:u,onChange:e=>a({suffix:e}),tagName:"span",__unstableOnSplitAtEnd:()=>r((0,je.createBlock)((0,je.getDefaultBlockName)()))})))}},uf=()=>((0,Zl.addFilter)("blocks.registerBlockType","core/template-part",rf),Qe({name:sf,metadata:lf,settings:cf}));var mf=window.wp.wordcount;var pf=function({attributes:e,setAttributes:t,context:n}){const{textAlign:o}=e,{postId:a,postType:r}=n,[l]=(0,ct.useEntityProp)("postType",r,"content",a),[i]=(0,ct.useEntityBlockEditor)("postType",r,{id:a}),s=(0,qe.useMemo)((()=>{let e;e=l instanceof Function?l({blocks:i}):i?(0,je.__unstableSerializeAndClean)(i):l;const t=(0,Je._x)("words","Word count type. Do not translate!"),n=Math.max(1,Math.round((0,mf.count)(e,t)/189));return(0,Je.sprintf)((0,Je._n)("%d minute","%d minutes",n),n)}),[l,i]),c=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)("div",{...c},s))},df=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16.5c-4.1 0-7.5-3.4-7.5-7.5S7.9 4.5 12 4.5s7.5 3.4 7.5 7.5-3.4 7.5-7.5 7.5zM12 7l-1 5c0 .3.2.6.4.8l4.2 2.8-2.7-4.1L12 7z"}));const gf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/post-time-to-read",title:"Time To Read",category:"theme",description:"Show minutes required to finish reading the post.",textdomain:"default",usesContext:["postId","postType"],attributes:{textAlign:{type:"string"}},supports:{color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},html:!1,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:hf}=gf,_f={icon:df,edit:pf},bf=()=>Qe({name:hf,metadata:gf,settings:_f}),{useBlockEditingMode:ff}=Yt(Ye.privateApis);const yf={attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var vf=[yf];const kf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/post-title",title:"Title",category:"theme",description:"Displays the title of a post, page, or any other content-type.",textdomain:"default",usesContext:["postId","postType","queryId"],attributes:{textAlign:{type:"string"},level:{type:"number",default:2},isLink:{type:"boolean",default:!1},rel:{type:"string",attribute:"rel",default:""},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},style:"wp-block-post-title"},{name:xf}=kf,wf={icon:br,edit:function({attributes:{level:e,textAlign:t,isLink:n,rel:o,linkTarget:a},setAttributes:r,context:{postType:l,postId:i,queryId:s},insertBlocksAfter:c}){const u="h"+e,m=ab("postType",!Number.isFinite(s)&&l,i),[p="",d,g]=(0,ct.useEntityProp)("postType",l,"title",i),[h]=(0,ct.useEntityProp)("postType",l,"link",i),_=()=>{c((0,je.createBlock)((0,je.getDefaultBlockName)()))},b=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${t}`]:t})}),f=ff();let y=(0,qe.createElement)(u,{...b},(0,Je.__)("Title"));return l&&i&&(y=m?(0,qe.createElement)(Ye.PlainText,{tagName:u,placeholder:(0,Je.__)("No Title"),value:p,onChange:d,__experimentalVersion:2,__unstableOnSplitAtEnd:_,...b}):(0,qe.createElement)(u,{...b,dangerouslySetInnerHTML:{__html:g?.rendered}})),n&&l&&i&&(y=m?(0,qe.createElement)(u,{...b},(0,qe.createElement)(Ye.PlainText,{tagName:"a",href:h,target:a,rel:o,placeholder:p.length?null:(0,Je.__)("No Title"),value:p,onChange:d,__experimentalVersion:2,__unstableOnSplitAtEnd:_})):(0,qe.createElement)(u,{...b},(0,qe.createElement)("a",{href:h,target:a,rel:o,onClick:e=>e.preventDefault(),dangerouslySetInnerHTML:{__html:g?.rendered}}))),(0,qe.createElement)(qe.Fragment,null,"default"===f&&(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.HeadingLevelDropdown,{value:e,onChange:e=>r({level:e})}),(0,qe.createElement)(Ye.AlignmentControl,{value:t,onChange:e=>{r({textAlign:e})}})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Make title a link"),onChange:()=>r({isLink:!n}),checked:n}),n&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>r({linkTarget:e?"_blank":"_self"}),checked:"_blank"===a}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:o,onChange:e=>r({rel:e})})))),y)},deprecated:vf},Cf=()=>Qe({name:xf,metadata:kf,settings:wf});var Ef=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 16.5h6V15H7v1.5zm4-4h6V11h-6v1.5zM9 11H7v1.5h2V11zm6 5.5h2V15h-2v1.5z"}));const Sf={from:[{type:"block",blocks:["core/code","core/paragraph"],transform:({content:e,anchor:t})=>(0,je.createBlock)("core/preformatted",{content:e,anchor:t})},{type:"raw",isMatch:e=>"PRE"===e.nodeName&&!(1===e.children.length&&"CODE"===e.firstChild.nodeName),schema:({phrasingContentSchema:e})=>({pre:{children:e}})}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,je.createBlock)("core/paragraph",{...e,content:e.content.replace(/\n/g,"<br>")})},{type:"block",blocks:["core/code"],transform:e=>(0,je.createBlock)("core/code",e)}]};var Bf=Sf;const Tf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/preformatted",title:"Preformatted",category:"text",description:"Add text that respects your spacing and tabs, and also allows styling.",textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"}},supports:{anchor:!0,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},style:"wp-block-preformatted"},{name:Nf}=Tf,Pf={icon:Ef,example:{attributes:{content:(0,Je.__)("EXT. XANADU - FAINT DAWN - 1940 (MINIATURE)\nWindow, very small in the distance, illuminated.\nAll around this is an almost totally black screen. Now, as the camera moves slowly towards the window which is almost a postage stamp in the frame, other forms appear;")}},transforms:Bf,edit:function({attributes:e,mergeBlocks:t,setAttributes:n,onRemove:o,style:a}){const{content:r}=e,l=(0,Ye.useBlockProps)({style:a});return(0,qe.createElement)(Ye.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:r,onChange:e=>{n({content:e})},onRemove:o,"aria-label":(0,Je.__)("Preformatted text"),placeholder:(0,Je.__)("Write preformatted text…"),onMerge:t,...l,__unstablePastePlainText:!0})},save:function({attributes:e}){const{content:t}=e;return(0,qe.createElement)("pre",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.RichText.Content,{value:t}))},merge(e,t){return{content:e.content+t.content}}},If=()=>Qe({name:Nf,metadata:Tf,settings:Pf});var Mf=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18 8H6c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm.5 6c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-4c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v4zM4 4v1.5h16V4H4zm0 16h16v-1.5H4V20z"}));const zf="is-style-solid-color",Rf={value:{type:"string",source:"html",selector:"blockquote",multiline:"p"},citation:{type:"string",source:"html",selector:"cite",default:""},mainColor:{type:"string"},customMainColor:{type:"string"},textColor:{type:"string"},customTextColor:{type:"string"}};function Hf(e){if(!e)return;const t=e.match(/border-color:([^;]+)[;]?/);return t&&t[1]?t[1]:void 0}function Lf(e){return(0,Cn.toHTMLString)({value:(0,Cn.replace)((0,Cn.create)({html:e,multilineTag:"p"}),new RegExp(Cn.__UNSTABLE_LINE_SEPARATOR,"g"),"\n")})}const Af={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,citation:n,value:o}=e,a=!Ye.RichText.isEmpty(n);return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:it()({[`has-text-align-${t}`]:t})})},(0,qe.createElement)("blockquote",null,(0,qe.createElement)(Ye.RichText.Content,{value:o,multiline:!0}),a&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:n})))},migrate({value:e,...t}){return{value:Lf(e),...t}}},Vf={attributes:{...Rf},save({attributes:e}){const{mainColor:t,customMainColor:n,customTextColor:o,textColor:a,value:r,citation:l,className:i}=e,s=i?.includes(zf);let c,u;if(s){const e=(0,Ye.getColorClassName)("background-color",t);c=it()({"has-background":e||n,[e]:e}),u={backgroundColor:e?void 0:n}}else n&&(u={borderColor:n});const m=(0,Ye.getColorClassName)("color",a),p=it()({"has-text-color":a||o,[m]:m}),d=m?void 0:{color:o};return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:c,style:u})},(0,qe.createElement)("blockquote",{className:p,style:d},(0,qe.createElement)(Ye.RichText.Content,{value:r,multiline:!0}),!Ye.RichText.isEmpty(l)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,mainColor:n,customMainColor:o,customTextColor:a,...r}){const l=t?.includes(zf);let i;return o&&(i=l?{color:{background:o}}:{border:{color:o}}),a&&i&&(i.color={...i.color,text:a}),{value:Lf(e),className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:i,...r}}},Df={attributes:{...Rf,figureStyle:{source:"attribute",selector:"figure",attribute:"style"}},save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:o,customTextColor:a,value:r,citation:l,className:i,figureStyle:s}=e,c=i?.includes(zf);let u,m;if(c){const e=(0,Ye.getColorClassName)("background-color",t);u=it()({"has-background":e||n,[e]:e}),m={backgroundColor:e?void 0:n}}else if(n)m={borderColor:n};else if(t){m={borderColor:Hf(s)}}const p=(0,Ye.getColorClassName)("color",o),d=(o||a)&&it()("has-text-color",{[p]:p}),g=p?void 0:{color:a};return(0,qe.createElement)("figure",{className:u,style:m},(0,qe.createElement)("blockquote",{className:d,style:g},(0,qe.createElement)(Ye.RichText.Content,{value:r,multiline:!0}),!Ye.RichText.isEmpty(l)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,figureStyle:n,mainColor:o,customMainColor:a,customTextColor:r,...l}){const i=t?.includes(zf);let s;if(a&&(s=i?{color:{background:a}}:{border:{color:a}}),r&&s&&(s.color={...s.color,text:r}),!i&&o&&n){const o=Hf(n);if(o)return{value:Lf(e),...l,className:t,style:{border:{color:o}}}}return{value:Lf(e),className:t,backgroundColor:i?o:void 0,borderColor:i?void 0:o,textAlign:i?"left":void 0,style:s,...l}}},Ff={attributes:Rf,save({attributes:e}){const{mainColor:t,customMainColor:n,textColor:o,customTextColor:a,value:r,citation:l,className:i}=e,s=i?.includes(zf);let c,u;if(s)c=(0,Ye.getColorClassName)("background-color",t),c||(u={backgroundColor:n});else if(n)u={borderColor:n};else if(t){var m;const e=null!==(m=(0,ut.select)(Ye.store).getSettings().colors)&&void 0!==m?m:[];u={borderColor:(0,Ye.getColorObjectByAttributeValues)(e,t).color}}const p=(0,Ye.getColorClassName)("color",o),d=o||a?it()("has-text-color",{[p]:p}):void 0,g=p?void 0:{color:a};return(0,qe.createElement)("figure",{className:c,style:u},(0,qe.createElement)("blockquote",{className:d,style:g},(0,qe.createElement)(Ye.RichText.Content,{value:r,multiline:!0}),!Ye.RichText.isEmpty(l)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:l})))},migrate({value:e,className:t,mainColor:n,customMainColor:o,customTextColor:a,...r}){const l=t?.includes(zf);let i={};return o&&(i=l?{color:{background:o}}:{border:{color:o}}),a&&i&&(i.color={...i.color,text:a}),{value:Lf(e),className:t,backgroundColor:l?n:void 0,borderColor:l?void 0:n,textAlign:l?"left":void 0,style:i,...r}}},$f={attributes:{...Rf},save({attributes:e}){const{value:t,citation:n}=e;return(0,qe.createElement)("blockquote",null,(0,qe.createElement)(Ye.RichText.Content,{value:t,multiline:!0}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:n}))},migrate({value:e,...t}){return{value:Lf(e),...t}}},Gf={attributes:{...Rf,citation:{type:"string",source:"html",selector:"footer"},align:{type:"string",default:"none"}},save({attributes:e}){const{value:t,citation:n,align:o}=e;return(0,qe.createElement)("blockquote",{className:`align${o}`},(0,qe.createElement)(Ye.RichText.Content,{value:t,multiline:!0}),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"footer",value:n}))},migrate({value:e,...t}){return{value:Lf(e),...t}}};var Of=[Af,Vf,Df,Ff,$f,Gf];const Uf="web"===qe.Platform.OS;var jf=function({attributes:e,setAttributes:t,isSelected:n,insertBlocksAfter:o}){const{textAlign:a,citation:r,value:l}=e,i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${a}`]:a})}),s=!Ye.RichText.isEmpty(r)||n;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)("figure",{...i},(0,qe.createElement)("blockquote",null,(0,qe.createElement)(Ye.RichText,{identifier:"value",tagName:"p",value:l,onChange:e=>t({value:e}),"aria-label":(0,Je.__)("Pullquote text"),placeholder:(0,Je.__)("Add quote"),textAlign:"center"}),s&&(0,qe.createElement)(Ye.RichText,{identifier:"citation",tagName:Uf?"cite":void 0,style:{display:"block"},value:r,"aria-label":(0,Je.__)("Pullquote citation text"),placeholder:(0,Je.__)("Add citation"),onChange:e=>t({citation:e}),className:"wp-block-pullquote__citation",__unstableMobileNoFocusOnMount:!0,textAlign:"center",__unstableOnSplitAtEnd:()=>o((0,je.createBlock)((0,je.getDefaultBlockName)()))}))))};const qf={from:[{type:"block",isMultiBlock:!0,blocks:["core/paragraph"],transform:e=>(0,je.createBlock)("core/pullquote",{value:(0,Cn.toHTMLString)({value:(0,Cn.join)(e.map((({content:e})=>(0,Cn.create)({html:e}))),"\n")}),anchor:e.anchor})},{type:"block",blocks:["core/heading"],transform:({content:e,anchor:t})=>(0,je.createBlock)("core/pullquote",{value:e,anchor:t})}],to:[{type:"block",blocks:["core/paragraph"],transform:({value:e,citation:t})=>{const n=[];return e&&n.push((0,je.createBlock)("core/paragraph",{content:e})),t&&n.push((0,je.createBlock)("core/paragraph",{content:t})),0===n.length?(0,je.createBlock)("core/paragraph",{content:""}):n}},{type:"block",blocks:["core/heading"],transform:({value:e,citation:t})=>{if(!e)return(0,je.createBlock)("core/heading",{content:t});const n=(0,je.createBlock)("core/heading",{content:e});return t?[n,(0,je.createBlock)("core/heading",{content:t})]:n}}]};var Wf=qf;const Zf={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/pullquote",title:"Pullquote",category:"text",description:"Give special visual emphasis to a quote from your text.",textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"p",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,align:["left","right","wide","full"],color:{gradients:!0,background:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},__experimentalBorder:{color:!0,radius:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,radius:!0,style:!0,width:!0}},__experimentalStyle:{typography:{fontSize:"1.5em",lineHeight:"1.6"}}},editorStyle:"wp-block-pullquote-editor",style:"wp-block-pullquote"},{name:Qf}=Zf,Kf={icon:Mf,example:{attributes:{value:(0,Je.__)("One of the hardest things to do in technology is disrupt yourself."),citation:(0,Je.__)("Matt Mullenweg")}},transforms:Wf,edit:jf,save:function({attributes:e}){const{textAlign:t,citation:n,value:o}=e,a=!Ye.RichText.isEmpty(n);return(0,qe.createElement)("figure",{...Ye.useBlockProps.save({className:it()({[`has-text-align-${t}`]:t})})},(0,qe.createElement)("blockquote",null,(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",value:o}),a&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:n})))},deprecated:Of},Jf=()=>Qe({name:Qf,metadata:Zf,settings:Kf});var Yf=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18.1823 11.6392C18.1823 13.0804 17.0139 14.2487 15.5727 14.2487C14.3579 14.2487 13.335 13.4179 13.0453 12.2922L13.0377 12.2625L13.0278 12.2335L12.3985 10.377L12.3942 10.3785C11.8571 8.64997 10.246 7.39405 8.33961 7.39405C5.99509 7.39405 4.09448 9.29465 4.09448 11.6392C4.09448 13.9837 5.99509 15.8843 8.33961 15.8843C8.88499 15.8843 9.40822 15.781 9.88943 15.5923L9.29212 14.0697C8.99812 14.185 8.67729 14.2487 8.33961 14.2487C6.89838 14.2487 5.73003 13.0804 5.73003 11.6392C5.73003 10.1979 6.89838 9.02959 8.33961 9.02959C9.55444 9.02959 10.5773 9.86046 10.867 10.9862L10.8772 10.9836L11.4695 12.7311C11.9515 14.546 13.6048 15.8843 15.5727 15.8843C17.9172 15.8843 19.8178 13.9837 19.8178 11.6392C19.8178 9.29465 17.9172 7.39404 15.5727 7.39404C15.0287 7.39404 14.5066 7.4968 14.0264 7.6847L14.6223 9.20781C14.9158 9.093 15.2358 9.02959 15.5727 9.02959C17.0139 9.02959 18.1823 10.1979 18.1823 11.6392Z"}));var Xf=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));const{name:ey}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout"},supports:{align:["wide","full"],html:!1,layout:!0},editorStyle:"wp-block-query-editor"},ty=e=>{const t=e?.reduce(((e,t)=>{const{mapById:n,mapByName:o,names:a}=e;return n[t.id]=t,o[t.name]=t,a.push(t.name),e}),{mapById:{},mapByName:{},names:[]});return{entities:e,...t}},ny=(e,t)=>{const n=t.split(".");let o=e;return n.forEach((e=>{o=o?.[e]})),o},oy=(e,t)=>(e||[]).map((e=>({...e,name:(0,On.decodeEntities)(ny(e,t))}))),ay=()=>{const e=(0,ut.useSelect)((e=>{const{getPostTypes:t}=e(ct.store),n=["attachment"],o=t({per_page:-1})?.filter((({viewable:e,slug:t})=>e&&!n.includes(t)));return o}),[]);return{postTypesTaxonomiesMap:(0,qe.useMemo)((()=>{if(e?.length)return e.reduce(((e,t)=>(e[t.slug]=t.taxonomies,e)),{})}),[e]),postTypesSelectOptions:(0,qe.useMemo)((()=>(e||[]).map((({labels:e,slug:t})=>({label:e.singular_name,value:t})))),[e])}},ry=e=>(0,ut.useSelect)((t=>{const{getTaxonomies:n}=t(ct.store);return n({type:e,per_page:-1,context:"view"})}),[e]);function ly(e,t){return!e||e.includes(t)}function iy(e,t){const n=(0,ut.useSelect)((e=>e(je.store).getActiveBlockVariation(ey,t)?.name),[t]),o=`${ey}/${n}`,a=(0,ut.useSelect)((t=>{if(!n)return;const{getBlockRootClientId:a,getPatternsByBlockTypes:r}=t(Ye.store),l=a(e);return r(o,l)}),[e,n]);return a?.length?o:ey}const sy=(e,t)=>(0,ut.useSelect)((n=>{const{getBlockRootClientId:o,getPatternsByBlockTypes:a}=n(Ye.store),r=o(e);return a(t,r)}),[t,e]);function cy({attributes:{query:e},setQuery:t,openPatternSelectionModal:n,name:o,clientId:a}){const r=!!sy(a,o).length,l=(0,Tt.useInstanceId)(cy,"blocks-query-pagination-max-page-input");return(0,qe.createElement)(qe.Fragment,null,!e.inherit&&(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.Dropdown,{contentClassName:"block-library-query-toolbar__popover",renderToggle:({onToggle:e})=>(0,qe.createElement)(Ke.ToolbarButton,{icon:Xf,label:(0,Je.__)("Display settings"),onClick:e}),renderContent:()=>(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.BaseControl,null,(0,qe.createElement)(Ke.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,Je.__)("Items per Page"),labelPosition:"edge",min:1,max:100,onChange:e=>{isNaN(e)||e<1||e>100||t({perPage:e})},step:"1",value:e.perPage,isDragEnabled:!1})),(0,qe.createElement)(Ke.BaseControl,null,(0,qe.createElement)(Ke.__experimentalNumberControl,{__unstableInputWidth:"60px",label:(0,Je.__)("Offset"),labelPosition:"edge",min:0,max:100,onChange:e=>{isNaN(e)||e<0||e>100||t({offset:e})},step:"1",value:e.offset,isDragEnabled:!1})),(0,qe.createElement)(Ke.BaseControl,{id:l,help:(0,Je.__)("Limit the pages you want to show, even if the query has more results. To show all pages use 0 (zero).")},(0,qe.createElement)(Ke.__experimentalNumberControl,{id:l,__unstableInputWidth:"60px",label:(0,Je.__)("Max page to show"),labelPosition:"edge",min:0,onChange:e=>{isNaN(e)||e<0||t({pages:e})},step:"1",value:e.pages,isDragEnabled:!1})))})),r&&(0,qe.createElement)(Ke.ToolbarGroup,{className:"wp-block-template-part__block-control-group"},(0,qe.createElement)(Ke.ToolbarButton,{onClick:n},(0,Je.__)("Replace"))))}const uy=[{label:(0,Je.__)("Newest to oldest"),value:"date/desc"},{label:(0,Je.__)("Oldest to newest"),value:"date/asc"},{label:(0,Je.__)("A → Z"),value:"title/asc"},{label:(0,Je.__)("Z → A"),value:"title/desc"}];var my=function({order:e,orderBy:t,onChange:n}){return(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Order by"),value:`${t}/${e}`,options:uy,onChange:e=>{const[t,o]=e.split("/");n({order:o,orderBy:t})}})};const py={who:"authors",per_page:-1,_fields:"id,name",context:"view"};var dy=function({value:e,onChange:t}){const n=(0,ut.useSelect)((e=>{const{getUsers:t}=e(ct.store);return t(py)}),[]);if(!n)return null;const o=ty(n),a=(e?e.toString().split(","):[]).reduce(((e,t)=>{const n=o.mapById[t];return n&&e.push({id:t,value:n.name}),e}),[]);return(0,qe.createElement)(Ke.FormTokenField,{label:(0,Je.__)("Authors"),value:a,suggestions:o.names,onChange:e=>{const n=Array.from(e.reduce(((e,t)=>{const n=((e,t)=>{const n=t?.id||e[t]?.id;if(n)return n})(o.mapByName,t);return n&&e.add(n),e}),new Set));t({author:n.join(",")})},__experimentalShowHowTo:!1})};const gy=[],hy={order:"asc",_fields:"id,title",context:"view"};var _y=function({parents:e,postType:t,onChange:n}){const[o,a]=(0,qe.useState)(""),[r,l]=(0,qe.useState)(gy),[i,s]=(0,qe.useState)(gy),c=(0,Tt.useDebounce)(a,250),{searchResults:u,searchHasResolved:m}=(0,ut.useSelect)((n=>{if(!o)return{searchResults:gy,searchHasResolved:!0};const{getEntityRecords:a,hasFinishedResolution:r}=n(ct.store),l=["postType",t,{...hy,search:o,orderby:"relevance",exclude:e,per_page:20}];return{searchResults:a(...l),searchHasResolved:r("getEntityRecords",l)}}),[o,e]),p=(0,ut.useSelect)((n=>{if(!e?.length)return gy;const{getEntityRecords:o}=n(ct.store);return o("postType",t,{...hy,include:e,per_page:e.length})}),[e]);(0,qe.useEffect)((()=>{if(e?.length||l(gy),!p?.length)return;const t=ty(oy(p,"title.rendered")),n=e.reduce(((e,n)=>{const o=t.mapById[n];return o&&e.push({id:n,value:o.name}),e}),[]);l(n)}),[e,p]);const d=(0,qe.useMemo)((()=>u?.length?ty(oy(u,"title.rendered")):gy),[u]);return(0,qe.useEffect)((()=>{m&&s(d.names)}),[d.names,m]),(0,qe.createElement)(Ke.FormTokenField,{label:(0,Je.__)("Parents"),value:r,onInputChange:c,suggestions:i,onChange:e=>{const t=Array.from(e.reduce(((e,t)=>{const n=((e,t)=>{const n=t?.id||e?.[t]?.id;if(n)return n})(d.mapByName,t);return n&&e.add(n),e}),new Set));s(gy),n({parents:t})},__experimentalShowHowTo:!1})};const by=[],fy={order:"asc",_fields:"id,name",context:"view"},yy=(e,t)=>{const n=t?.id||e?.find((e=>e.name===t))?.id;if(n)return n;const o=t.toLocaleLowerCase();return e?.find((e=>e.name.toLocaleLowerCase()===o))?.id};function vy({onChange:e,query:t}){const{postType:n,taxQuery:o}=t,a=ry(n);return a&&0!==a.length?(0,qe.createElement)(qe.Fragment,null,a.map((t=>{const n=o?.[t.slug]||[];return(0,qe.createElement)(ky,{key:t.slug,taxonomy:t,termIds:n,onChange:n=>e({taxQuery:{...o,[t.slug]:n}})})}))):null}function ky({taxonomy:e,termIds:t,onChange:n}){const[o,a]=(0,qe.useState)(""),[r,l]=(0,qe.useState)(by),[i,s]=(0,qe.useState)(by),c=(0,Tt.useDebounce)(a,250),{searchResults:u,searchHasResolved:m}=(0,ut.useSelect)((n=>{if(!o)return{searchResults:by,searchHasResolved:!0};const{getEntityRecords:a,hasFinishedResolution:r}=n(ct.store),l=["taxonomy",e.slug,{...fy,search:o,orderby:"name",exclude:t,per_page:20}];return{searchResults:a(...l),searchHasResolved:r("getEntityRecords",l)}}),[o,t]),p=(0,ut.useSelect)((n=>{if(!t?.length)return by;const{getEntityRecords:o}=n(ct.store);return o("taxonomy",e.slug,{...fy,include:t,per_page:t.length})}),[t]);(0,qe.useEffect)((()=>{if(t?.length||l(by),!p?.length)return;const e=t.reduce(((e,t)=>{const n=p.find((e=>e.id===t));return n&&e.push({id:t,value:n.name}),e}),[]);l(e)}),[t,p]),(0,qe.useEffect)((()=>{m&&s(u.map((e=>e.name)))}),[u,m]);return(0,qe.createElement)("div",{className:"block-library-query-inspector__taxonomy-control"},(0,qe.createElement)(Ke.FormTokenField,{label:e.name,value:r,onInputChange:c,suggestions:i,onChange:e=>{const t=new Set;for(const n of e){const e=yy(u,n);e&&t.add(e)}s(by),n(Array.from(t))},__experimentalShowHowTo:!1}))}const xy=[{label:(0,Je.__)("Include"),value:""},{label:(0,Je.__)("Exclude"),value:"exclude"},{label:(0,Je.__)("Only"),value:"only"}];function wy({value:e,onChange:t}){return(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Sticky posts"),options:xy,value:e,onChange:t,help:(0,Je.__)("Blog posts can be “stickied”, a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.")})}var Cy=({attributes:{query:{postType:e}={}}={}})=>{if(!e)return null;const t=(0,st.addQueryArgs)("post-new.php",{post_type:e});return(0,qe.createElement)("div",{className:"wp-block-query__create-new-link"},(0,qe.createInterpolateElement)((0,Je.__)("<a>Add new post</a>"),{a:(0,qe.createElement)("a",{href:t})}))};const{BlockInfo:Ey}=Yt(Ye.privateApis);function Sy(e){const{attributes:t,setQuery:n,setDisplayLayout:o}=e,{query:a,displayLayout:r}=t,{order:l,orderBy:i,author:s,postType:c,sticky:u,inherit:m,taxQuery:p,parents:d}=a,g=function(e){return(0,ut.useSelect)((t=>t(je.store).getActiveBlockVariation(ey,e)?.allowedControls),[e])}(t),[h,_]=(0,qe.useState)("post"===c),{postTypesTaxonomiesMap:b,postTypesSelectOptions:f}=ay(),y=ry(c),v=function(e){return(0,ut.useSelect)((t=>{const n=t(ct.store).getPostType(e);return n?.viewable&&n?.hierarchical}),[e])}(c);(0,qe.useEffect)((()=>{_("post"===c)}),[c]);const[k,x]=(0,qe.useState)(a.search),w=(0,qe.useCallback)((0,Tt.debounce)((()=>{a.search!==k&&n({search:k})}),250),[k,a.search]);(0,qe.useEffect)((()=>(w(),w.cancel)),[k,w]);const C=ly(g,"inherit"),E=!m&&ly(g,"postType"),S=!m&&ly(g,"order"),B=!m&&h&&ly(g,"sticky"),T=C||E||S||B,N=!!y?.length&&ly(g,"taxQuery"),P=ly(g,"author"),I=ly(g,"search"),M=ly(g,"parents")&&v,z=N||P||I||M;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ey,null,(0,qe.createElement)(Cy,{...e})),T&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},C&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Inherit query from template"),help:(0,Je.__)("Toggle to use the global query context that is set with the current template, such as an archive or search. Disable to customize the settings independently."),checked:!!m,onChange:e=>n({inherit:!!e})}),E&&(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,options:f,value:c,label:(0,Je.__)("Post type"),onChange:e=>{const t={postType:e},o=b[e],a=Object.entries(p||{}).reduce(((e,[t,n])=>(o.includes(t)&&(e[t]=n),e)),{});t.taxQuery=Object.keys(a).length?a:void 0,"post"!==e&&(t.sticky=""),t.parents=[],n(t)},help:(0,Je.__)("WordPress contains different types of content and they are divided into collections called “Post types”. By default there are a few different ones such as blog posts and pages, but plugins could add more.")}),false,S&&(0,qe.createElement)(my,{order:l,orderBy:i,onChange:n}),B&&(0,qe.createElement)(wy,{value:u,onChange:e=>n({sticky:e})}))),!m&&z&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.__experimentalToolsPanel,{className:"block-library-query-toolspanel__filters",label:(0,Je.__)("Filters"),resetAll:()=>{n({author:"",parents:[],search:"",taxQuery:null}),x("")}},N&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{label:(0,Je.__)("Taxonomies"),hasValue:()=>Object.values(p||{}).some((e=>!!e.length)),onDeselect:()=>n({taxQuery:null})},(0,qe.createElement)(vy,{onChange:n,query:a})),P&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!s,label:(0,Je.__)("Authors"),onDeselect:()=>n({author:""})},(0,qe.createElement)(dy,{value:s,onChange:n})),I&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!k,label:(0,Je.__)("Keyword"),onDeselect:()=>x("")},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Keyword"),value:k,onChange:x})),M&&(0,qe.createElement)(Ke.__experimentalToolsPanelItem,{hasValue:()=>!!d?.length,label:(0,Je.__)("Parents"),onDeselect:()=>n({parents:[]})},(0,qe.createElement)(_y,{parents:d,postType:c,onChange:n})))))}const By=[["core/post-template"]];function Ty({attributes:e,setAttributes:t,openPatternSelectionModal:n,name:o,clientId:a}){const{queryId:r,query:l,displayLayout:i,tagName:s="div",query:{inherit:c}={}}=e,{__unstableMarkNextChangeAsNotPersistent:u}=(0,ut.useDispatch)(Ye.store),m=(0,Tt.useInstanceId)(Ty),p=(0,Ye.useBlockProps)(),d=(0,Ye.useInnerBlocksProps)(p,{template:By}),{postsPerPage:g}=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store),{getEntityRecord:n,canUser:o}=e(ct.store);return{postsPerPage:(o("read","settings")?+n("root","site")?.posts_per_page:+t().postsPerPage)||3}}),[]);(0,qe.useEffect)((()=>{const e={};(c&&l.perPage!==g||!l.perPage&&g)&&(e.perPage=g),Object.keys(e).length&&(u(),h(e))}),[l.perPage,g,c]),(0,qe.useEffect)((()=>{Number.isFinite(r)||(u(),t({queryId:m}))}),[r,m]);const h=e=>t({query:{...l,...e}}),_={main:(0,Je.__)("The <main> element should be used for the primary content of your document only. "),section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content.")};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Sy,{attributes:e,setQuery:h,setDisplayLayout:e=>t({displayLayout:{...i,...e}})}),(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(cy,{name:o,clientId:a,attributes:e,setQuery:h,openPatternSelectionModal:n})),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.__)("Default (<div>)"),value:"div"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<aside>",value:"aside"}],value:s,onChange:e=>t({tagName:e}),help:_[s]})),(0,qe.createElement)(s,{...d}))}function Ny({attributes:e,clientId:t,name:n,openPatternSelectionModal:o,setAttributes:a}){const[r,l]=(0,qe.useState)(!1),i=(0,Ye.useBlockProps)(),s=iy(t,e),{blockType:c,allVariations:u,hasPatterns:m}=(0,ut.useSelect)((e=>{const{getBlockVariations:o,getBlockType:a}=e(je.store),{getBlockRootClientId:r,getPatternsByBlockTypes:l}=e(Ye.store),i=r(t);return{blockType:a(n),allVariations:o(n),hasPatterns:!!l(s,i).length}}),[n,s,t]),p=(0,Ye.__experimentalGetMatchingVariation)(e,u),d=p?.icon?.src||p?.icon||c?.icon?.src,g=p?.title||c?.title;return r?(0,qe.createElement)(Py,{clientId:t,attributes:e,setAttributes:a,icon:d,label:g}):(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ke.Placeholder,{icon:d,label:g,instructions:(0,Je.__)("Choose a pattern for the query loop or start blank.")},!!m&&(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:o},(0,Je.__)("Choose")),(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:()=>{l(!0)}},(0,Je.__)("Start blank"))))}function Py({clientId:e,attributes:t,setAttributes:n,icon:o,label:a}){const r=function(e){const{activeVariationName:t,blockVariations:n}=(0,ut.useSelect)((t=>{const{getActiveBlockVariation:n,getBlockVariations:o}=t(je.store);return{activeVariationName:n(ey,e)?.name,blockVariations:o(ey,"block")}}),[e]);return(0,qe.useMemo)((()=>{const e=e=>!e.attributes?.namespace;if(!t)return n.filter(e);const o=n.filter((e=>e.attributes?.namespace?.includes(t)));return o.length?o:n.filter(e)}),[t,n])}(t),{replaceInnerBlocks:l}=(0,ut.useDispatch)(Ye.store),i=(0,Ye.useBlockProps)();return(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ye.__experimentalBlockVariationPicker,{icon:o,label:a,variations:r,onSelect:o=>{o.attributes&&n({...o.attributes,query:{...o.attributes.query,postType:t.query.postType||o.attributes.query.postType},namespace:t.namespace}),o.innerBlocks&&l(e,(0,je.createBlocksFromInnerBlocksTemplate)(o.innerBlocks),!1)}}))}function Iy(e=""){return e=(e=bu()(e)).trim().toLowerCase()}function My(e,t){const n=Iy(t),o=Iy(e.title);let a=0;if(n===o)a+=30;else if(o.startsWith(n))a+=20;else{n.split(" ").every((e=>o.includes(e)))&&(a+=10)}return a}function zy(e=[],t=""){if(!t)return e;const n=e.map((e=>[e,My(e,t)])).filter((([,e])=>e>0));return n.sort((([,e],[,t])=>t-e)),n.map((([e])=>e))}function Ry({clientId:e,attributes:t,setIsPatternSelectionModalOpen:n}){const[o,a]=(0,qe.useState)(""),{replaceBlock:r,selectBlock:l}=(0,ut.useDispatch)(Ye.store),i=(0,qe.useMemo)((()=>({previewPostType:t.query.postType})),[t.query.postType]),s=iy(e,t),c=sy(e,s),u=(0,qe.useMemo)((()=>zy(c,o)),[c,o]),m=(0,Tt.useAsyncList)(u);return(0,qe.createElement)(Ke.Modal,{overlayClassName:"block-library-query-pattern__selection-modal",title:(0,Je.__)("Choose a pattern"),onRequestClose:()=>n(!1),isFullScreen:!0},(0,qe.createElement)("div",{className:"block-library-query-pattern__selection-content"},(0,qe.createElement)("div",{className:"block-library-query-pattern__selection-search"},(0,qe.createElement)(Ke.SearchControl,{__nextHasNoMarginBottom:!0,onChange:a,value:o,label:(0,Je.__)("Search for patterns"),placeholder:(0,Je.__)("Search")})),(0,qe.createElement)(Ye.BlockContextProvider,{value:i},(0,qe.createElement)(Ye.__experimentalBlockPatternsList,{blockPatterns:u,shownPatterns:m,onClickPattern:(n,o)=>{const{newBlocks:a,queryClientIds:i}=((e,t)=>{const{query:{postType:n,inherit:o}}=t,a=e.map((e=>(0,je.cloneBlock)(e))),r=[],l=[...a];for(;l.length>0;){const e=l.shift();"core/query"===e.name&&(e.attributes.query={...e.attributes.query,postType:n,inherit:o},r.push(e.clientId)),e.innerBlocks?.forEach((e=>{l.push(e)}))}return{newBlocks:a,queryClientIds:r}})(o,t);r(e,a),i[0]&&l(i[0])}}))))}var Hy=e=>{const{clientId:t,attributes:n}=e,[o,a]=(0,qe.useState)(!1),r=(0,ut.useSelect)((e=>!!e(Ye.store).getBlocks(t).length),[t])?Ty:Ny;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(r,{...e,openPatternSelectionModal:()=>a(!0)}),o&&(0,qe.createElement)(Ry,{clientId:t,attributes:n,setIsPatternSelectionModalOpen:a}))};const Ly=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,qe.createElement)(Ke.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zM7 26h12v1H7v-1zm34-5H7v3h34v-3zM7 38h12v1H7v-1zm34-5H7v3h34v-3z"})),Ay=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,qe.createElement)(Ke.Path,{d:"M41 9H7v3h34V9zm-4 5H7v1h30v-1zm4 3H7v1h34v-1zM7 20h30v1H7v-1zm0 12h30v1H7v-1zm34 3H7v1h34v-1zM7 38h30v1H7v-1zm34-11H7v3h34v-3z"})),Vy=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,qe.createElement)(Ke.Path,{d:"M41 9H7v3h34V9zm-22 5H7v1h12v-1zm22 3H7v1h34v-1zM7 20h34v1H7v-1zm0 12h12v1H7v-1zm34 3H7v1h34v-1zM7 38h34v1H7v-1zm34-11H7v3h34v-3z"})),Dy=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},(0,qe.createElement)(Ke.Path,{d:"M7 9h34v6H7V9zm12 8H7v1h12v-1zm18 3H7v1h30v-1zm0 18H7v1h30v-1zM7 35h12v1H7v-1zm34-8H7v6h34v-6z"})),Fy={query:{perPage:3,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!1}};var $y=[{name:"posts-list",title:(0,Je.__)("Posts List"),description:(0,Je.__)("Display a list of your most recent posts, excluding sticky posts."),icon:xm,attributes:{query:{perPage:4,pages:1,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",sticky:"exclude",inherit:!1}},scope:["inserter"]},{name:"title-date",title:(0,Je.__)("Title & Date"),icon:Ly,attributes:{...Fy},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-excerpt",title:(0,Je.__)("Title & Excerpt"),icon:Ay,attributes:{...Fy},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"title-date-excerpt",title:(0,Je.__)("Title, Date, & Excerpt"),icon:Vy,attributes:{...Fy},innerBlocks:[["core/post-template",{},[["core/post-title"],["core/post-date"],["core/post-excerpt"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]},{name:"image-date-title",title:(0,Je.__)("Image, Date, & Title"),icon:Dy,attributes:{...Fy},innerBlocks:[["core/post-template",{},[["core/post-featured-image"],["core/post-date"],["core/post-title"]]],["core/query-pagination"],["core/query-no-results"]],scope:["block"]}];const{cleanEmptyObject:Gy}=Yt(Ye.privateApis),Oy=e=>{const{query:t}=e,{categoryIds:n,tagIds:o,...a}=t;return(t.categoryIds?.length||t.tagIds?.length)&&(a.taxQuery={category:t.categoryIds?.length?t.categoryIds:void 0,post_tag:t.tagIds?.length?t.tagIds:void 0}),{...e,query:a}},Uy=(e,t)=>{const{style:n,backgroundColor:o,gradient:a,textColor:r,...l}=e;if(!(o||a||r||n?.color||n?.elements?.link))return[e,t];if(n&&(l.style=Gy({...n,color:void 0,elements:{...n.elements,link:void 0}})),jy(t)){const e=t[0],i=n?.color||n?.elements?.link||e.attributes.style?Gy({...e.attributes.style,color:n?.color,elements:n?.elements?.link?{link:n?.elements?.link}:void 0}):void 0;return[l,[(0,je.createBlock)("core/group",{...e.attributes,backgroundColor:o,gradient:a,textColor:r,style:i},e.innerBlocks)]]}return[l,[(0,je.createBlock)("core/group",{backgroundColor:o,gradient:a,textColor:r,style:Gy({color:n?.color,elements:n?.elements?.link?{link:n?.elements?.link}:void 0})},t)]]},jy=(e=[])=>1===e.length&&"core/group"===e[0].name,qy=e=>{const{layout:t=null}=e;if(!t)return e;const{inherit:n=null,contentSize:o=null,...a}=t;return n||o?{...e,layout:{...a,contentSize:o,type:"constrained"}}:e},Wy=(e=[])=>{let t=null;for(const n of e){if("core/post-template"===n.name){t=n;break}n.innerBlocks.length&&(t=Wy(n.innerBlocks))}return t},Zy=(e=[],t)=>(e.forEach(((n,o)=>{"core/post-template"===n.name?e.splice(o,1,t):n.innerBlocks.length&&(n.innerBlocks=Zy(n.innerBlocks,t))})),e),Qy=(e,t)=>{const{displayLayout:n=null,...o}=e;if(!n)return[e,t];const a=Wy(t);if(!a)return[e,t];const{type:r,columns:l}=n,i="flex"===r?"grid":"default",s=(0,je.createBlock)("core/post-template",{...a.attributes,layout:{type:i,...l&&{columnCount:l}}},a.innerBlocks);return[o,Zy(t,s)]},Ky={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},layout:{type:"object",default:{type:"list"}}},supports:{html:!1},migrate(e,t){const n=Oy(e),{layout:o,...a}=n,r={...a,displayLayout:n.layout};return Qy(r,t)},save(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},Jy={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",categoryIds:[],tagIds:[],order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},layout:!0},isEligible:({query:{categoryIds:e,tagIds:t}={}})=>e||t,migrate(e,t){const n=Oy(e),[o,a]=Uy(n,t),r=qy(o);return Qy(r,a)},save({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})}},Yy={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},isEligible(e){const{style:t,backgroundColor:n,gradient:o,textColor:a}=e;return n||o||a||t?.color||t?.elements?.link},migrate(e,t){const[n,o]=Uy(e,t),a=qy(n);return Qy(a,o)},save({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})}},Xy={attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},layout:!0},save({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})},isEligible:({layout:e})=>e?.inherit||e?.contentSize&&"constrained"!==e?.type,migrate(e,t){const n=qy(e);return Qy(n,t)}};var ev=[{attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},displayLayout:{type:"object",default:{type:"list"}},namespace:{type:"string"}},supports:{align:["wide","full"],anchor:!0,html:!1,layout:!0},save({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})},isEligible:({displayLayout:e})=>!!e,migrate:Qy},Xy,Yy,Jy,Ky];const tv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query",title:"Query Loop",category:"theme",description:"An advanced block that allows displaying post types based on different query parameters and visual configurations.",textdomain:"default",attributes:{queryId:{type:"number"},query:{type:"object",default:{perPage:null,pages:0,offset:0,postType:"post",order:"desc",orderBy:"date",author:"",search:"",exclude:[],sticky:"",inherit:!0,taxQuery:null,parents:[]}},tagName:{type:"string",default:"div"},namespace:{type:"string"}},providesContext:{queryId:"queryId",query:"query",displayLayout:"displayLayout"},supports:{align:["wide","full"],html:!1,layout:!0},editorStyle:"wp-block-query-editor"},{name:nv}=tv,ov={icon:Yf,edit:Hy,save:function({attributes:{tagName:e="div"}}){const t=Ye.useBlockProps.save(),n=Ye.useInnerBlocksProps.save(t);return(0,qe.createElement)(e,{...n})},variations:$y,deprecated:ev},av=()=>Qe({name:nv,metadata:tv,settings:ov}),rv=[["core/paragraph",{placeholder:(0,Je.__)("Add text or blocks that will display when a query returns no results.")}]];const lv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-no-results",title:"No results",category:"theme",description:"Contains the block elements used to render content when no query results are found.",parent:["core/query"],textdomain:"default",usesContext:["queryId","query"],supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:iv}=lv,sv={icon:Yf,edit:function(){const e=(0,Ye.useBlockProps)(),t=(0,Ye.useInnerBlocksProps)(e,{template:rv});return(0,qe.createElement)("div",{...t})},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)}},cv=()=>Qe({name:iv,metadata:lv,settings:sv});function uv({value:e,onChange:t}){return(0,qe.createElement)(Ke.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Arrow"),value:e,onChange:t,help:(0,Je.__)("A decorative arrow appended to the next and previous page link."),isBlock:!0},(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"none",label:(0,Je._x)("None","Arrow option for Query Pagination Next/Previous blocks")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,Je._x)("Arrow","Arrow option for Query Pagination Next/Previous blocks")}),(0,qe.createElement)(Ke.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,Je._x)("Chevron","Arrow option for Query Pagination Next/Previous blocks")}))}function mv({value:e,onChange:t}){return(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show label text"),help:(0,Je.__)('Toggle off to hide the label text, e.g. "Next Page".'),onChange:t,checked:!0===e})}const pv=[["core/query-pagination-previous"],["core/query-pagination-numbers"],["core/query-pagination-next"]],dv=["core/query-pagination-previous","core/query-pagination-numbers","core/query-pagination-next"];var gv=[{save(){return(0,qe.createElement)("div",{...Ye.useBlockProps.save()},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];const hv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination",title:"Pagination",category:"theme",parent:["core/query"],description:"Displays a paginated navigation to next/previous set of posts, when applicable.",textdomain:"default",attributes:{paginationArrow:{type:"string",default:"none"},showLabel:{type:"boolean",default:!0}},usesContext:["queryId","query"],providesContext:{paginationArrow:"paginationArrow",showLabel:"showLabel"},supports:{align:!0,reusable:!1,html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},layout:{allowSwitching:!1,allowInheriting:!1,default:{type:"flex"}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-query-pagination-editor",style:"wp-block-query-pagination"},{name:_v}=hv,bv={icon:Ja,edit:function({attributes:{paginationArrow:e,showLabel:t},setAttributes:n,clientId:o}){const a=(0,ut.useSelect)((e=>{const{getBlocks:t}=e(Ye.store),n=t(o);return n?.find((e=>["core/query-pagination-next","core/query-pagination-previous"].includes(e.name)))}),[]),r=(0,Ye.useBlockProps)(),l=(0,Ye.useInnerBlocksProps)(r,{template:pv,allowedBlocks:dv});return(0,qe.useEffect)((()=>{"none"!==e||t||n({showLabel:!0})}),[e,n,t]),(0,qe.createElement)(qe.Fragment,null,a&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(uv,{value:e,onChange:e=>{n({paginationArrow:e})}}),"none"!==e&&(0,qe.createElement)(mv,{value:t,onChange:e=>{n({showLabel:e})}}))),(0,qe.createElement)("nav",{...l}))},save:function(){return(0,qe.createElement)(Ye.InnerBlocks.Content,null)},deprecated:gv},fv=()=>Qe({name:_v,metadata:hv,settings:bv}),yv={none:"",arrow:"→",chevron:"»"};const vv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-next",title:"Next Page",category:"theme",parent:["core/query-pagination"],description:"Displays the next posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:kv}=vv,xv={icon:rr,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:n,showLabel:o}}){const a=yv[n];return(0,qe.createElement)("a",{href:"#pagination-next-pseudo-link",onClick:e=>e.preventDefault(),...(0,Ye.useBlockProps)()},o&&(0,qe.createElement)(Ye.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Je.__)("Next page link"),placeholder:(0,Je.__)("Next Page"),value:e,onChange:e=>t({label:e})}),a&&(0,qe.createElement)("span",{className:`wp-block-query-pagination-next-arrow is-arrow-${n}`,"aria-hidden":!0},a))}},wv=()=>Qe({name:kv,metadata:vv,settings:xv}),Cv=(e,t="a",n="")=>(0,qe.createElement)(t,{className:`page-numbers ${n}`},e);const Ev={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-numbers",title:"Page Numbers",category:"theme",parent:["core/query-pagination"],description:"Displays a list of page numbers for pagination",textdomain:"default",usesContext:["queryId","query"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-query-pagination-numbers-editor"},{name:Sv}=Ev,Bv={icon:mr,edit:function(){const e=(0,qe.createElement)(qe.Fragment,null,Cv(1),Cv(2),Cv(3,"span","current"),Cv(4),Cv(5),Cv("...","span","dots"),Cv(8));return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},e)}},Tv=()=>Qe({name:Sv,metadata:Ev,settings:Bv}),Nv={none:"",arrow:"←",chevron:"«"};const Pv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-pagination-previous",title:"Previous Page",category:"theme",parent:["core/query-pagination"],description:"Displays the previous posts page link.",textdomain:"default",attributes:{label:{type:"string"}},usesContext:["queryId","query","paginationArrow","showLabel"],supports:{reusable:!1,html:!1,color:{gradients:!0,text:!1,__experimentalDefaultControls:{background:!0}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:Iv}=Pv,Mv={icon:ja,edit:function({attributes:{label:e},setAttributes:t,context:{paginationArrow:n,showLabel:o}}){const a=Nv[n];return(0,qe.createElement)("a",{href:"#pagination-previous-pseudo-link",onClick:e=>e.preventDefault(),...(0,Ye.useBlockProps)()},a&&(0,qe.createElement)("span",{className:`wp-block-query-pagination-previous-arrow is-arrow-${n}`,"aria-hidden":!0},a),o&&(0,qe.createElement)(Ye.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,Je.__)("Previous page link"),placeholder:(0,Je.__)("Previous Page"),value:e,onChange:e=>t({label:e})}))}},zv=()=>Qe({name:Iv,metadata:Pv,settings:Mv}),Rv=["archive","search"];const Hv=[{isDefault:!0,name:"archive-title",title:(0,Je.__)("Archive Title"),description:(0,Je.__)("Display the archive title based on the queried object."),icon:br,attributes:{type:"archive"},scope:["inserter"]},{isDefault:!1,name:"search-title",title:(0,Je.__)("Search Results Title"),description:(0,Je.__)("Display the search results title based on the queried object."),icon:br,attributes:{type:"search"},scope:["inserter"]}];Hv.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.type===t.type)}));var Lv=Hv;const Av={attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var Vv=[Av];const Dv={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/query-title",title:"Query Title",category:"theme",description:"Display the query title.",textdomain:"default",attributes:{type:{type:"string"},textAlign:{type:"string"},level:{type:"number",default:1},showPrefix:{type:"boolean",default:!0},showSearchTerm:{type:"boolean",default:!0}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0,textTransform:!0}}},style:"wp-block-query-title"},{name:Fv}=Dv,$v={icon:br,edit:function({attributes:{type:e,level:t,textAlign:n,showPrefix:o,showSearchTerm:a},setAttributes:r}){const l=`h${t}`,i=(0,Ye.useBlockProps)({className:it()("wp-block-query-title__placeholder",{[`has-text-align-${n}`]:n})});if(!Rv.includes(e))return(0,qe.createElement)("div",{...i},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Provided type is not supported.")));let s;return"archive"===e&&(s=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show archive type in title"),onChange:()=>r({showPrefix:!o}),checked:o}))),(0,qe.createElement)(l,{...i},o?(0,Je.__)("Archive type: Name"):(0,Je.__)("Archive title")))),"search"===e&&(s=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show search term in title"),onChange:()=>r({showSearchTerm:!a}),checked:a}))),(0,qe.createElement)(l,{...i},a?(0,Je.__)("Search results for: “search term”"):(0,Je.__)("Search results")))),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.HeadingLevelDropdown,{value:t,onChange:e=>r({level:e})}),(0,qe.createElement)(Ye.AlignmentControl,{value:n,onChange:e=>{r({textAlign:e})}})),s)},variations:Lv,deprecated:Vv},Gv=()=>Qe({name:Fv,metadata:Dv,settings:$v});var Ov=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M13 6v6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H13zm-9 6h5.2v4c0 .8-.2 1.4-.5 1.7-.6.6-1.6.6-2.5.5h-.3v1.5h.5c1 0 2.3-.1 3.3-1 .6-.6 1-1.6 1-2.8V6H4v6z"}));const Uv=e=>{const{value:t,...n}=e;return[{...n},t?(0,je.parseWithAttributeSchema)(t,{type:"array",source:"query",selector:"p",query:{content:{type:"string",source:"html"}}}).map((({content:e})=>(0,je.createBlock)("core/paragraph",{content:e}))):(0,je.createBlock)("core/paragraph")]},jv={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,__experimentalSlashInserter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}}},save({attributes:e}){const{align:t,value:n,citation:o}=e,a=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)("blockquote",{...Ye.useBlockProps.save({className:a})},(0,qe.createElement)(Ye.RichText.Content,{multiline:!0,value:n}),!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:o}))},migrate:Uv},qv={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"}},migrate:Uv,save({attributes:e}){const{align:t,value:n,citation:o}=e;return(0,qe.createElement)("blockquote",{style:{textAlign:t||null}},(0,qe.createElement)(Ye.RichText.Content,{multiline:!0,value:n}),!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:o}))}},Wv={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"cite",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(2===e.style){const{style:t,...n}=e;return Uv({...n,className:e.className?e.className+" is-style-large":"is-style-large"})}return Uv(e)},save({attributes:e}){const{align:t,value:n,citation:o,style:a}=e;return(0,qe.createElement)("blockquote",{className:2===a?"is-large":"",style:{textAlign:t||null}},(0,qe.createElement)(Ye.RichText.Content,{multiline:!0,value:n}),!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:o}))}},Zv={attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:""},citation:{type:"string",source:"html",selector:"footer",default:""},align:{type:"string"},style:{type:"number",default:1}},migrate(e){if(!isNaN(parseInt(e.style))){const{style:t,...n}=e;return Uv({...n})}return Uv(e)},save({attributes:e}){const{align:t,value:n,citation:o,style:a}=e;return(0,qe.createElement)("blockquote",{className:`blocks-quote-style-${a}`,style:{textAlign:t||null}},(0,qe.createElement)(Ye.RichText.Content,{multiline:!0,value:n}),!Ye.RichText.isEmpty(o)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"footer",value:o}))}};var Qv=[jv,qv,Wv,Zv];const Kv="web"===qe.Platform.OS,Jv=[["core/paragraph",{}]];const Yv={from:[{type:"block",blocks:["core/pullquote"],transform:({value:e,citation:t,anchor:n,fontSize:o,style:a})=>(0,je.createBlock)("core/quote",{citation:t,anchor:n,fontSize:o,style:a},[(0,je.createBlock)("core/paragraph",{content:e})])},{type:"prefix",prefix:">",transform:e=>(0,je.createBlock)("core/quote",{},[(0,je.createBlock)("core/paragraph",{content:e})])},{type:"raw",schema:()=>({blockquote:{children:"*"}}),selector:"blockquote",transform:(e,t)=>(0,je.createBlock)("core/quote",{},t({HTML:e.innerHTML,mode:"BLOCKS"}))},{type:"block",isMultiBlock:!0,blocks:["*"],isMatch:({},e)=>1===e.length?["core/paragraph","core/heading","core/list","core/pullquote"].includes(e[0].name):!e.some((({name:e})=>"core/quote"===e)),__experimentalConvert:e=>(0,je.createBlock)("core/quote",{},e.map((e=>(0,je.createBlock)(e.name,e.attributes,e.innerBlocks))))}],to:[{type:"block",blocks:["core/pullquote"],isMatch:({},e)=>e.innerBlocks.every((({name:e})=>"core/paragraph"===e)),transform:({citation:e,anchor:t,fontSize:n,style:o},a)=>{const r=a.map((({attributes:e})=>`${e.content}`)).join("<br>");return(0,je.createBlock)("core/pullquote",{value:r,citation:e,anchor:t,fontSize:n,style:o})}},{type:"block",blocks:["core/paragraph"],transform:({citation:e},t)=>e?[...t,(0,je.createBlock)("core/paragraph",{content:e})]:t},{type:"block",blocks:["core/group"],transform:({citation:e,anchor:t},n)=>(0,je.createBlock)("core/group",{anchor:t},e?[...n,(0,je.createBlock)("core/paragraph",{content:e})]:n)}],ungroup:({citation:e},t)=>e?[...t,(0,je.createBlock)("core/paragraph",{content:e})]:t};var Xv=Yv;const ek={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/quote",title:"Quote",category:"text",description:'Give quoted text visual emphasis. "In quoting others, we cite ourselves." — Julio Cortázar',keywords:["blockquote","cite"],textdomain:"default",attributes:{value:{type:"string",source:"html",selector:"blockquote",multiline:"p",default:"",__experimentalRole:"content"},citation:{type:"string",source:"html",selector:"cite",default:"",__experimentalRole:"content"},align:{type:"string"}},supports:{anchor:!0,html:!1,__experimentalOnEnter:!0,typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"plain",label:"Plain"}],editorStyle:"wp-block-quote-editor",style:"wp-block-quote"},{name:tk}=ek,nk={icon:Ov,example:{attributes:{citation:"Julio Cortázar"},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,Je.__)("In quoting others, we cite ourselves.")}}]},transforms:Xv,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n,clientId:o,className:a,style:r}){const{align:l,citation:i}=e;((e,t)=>{const n=(0,ut.useRegistry)(),{updateBlockAttributes:o,replaceInnerBlocks:a}=(0,ut.useDispatch)(Ye.store);(0,qe.useEffect)((()=>{if(!e.value)return;const[r,l]=Uv(e);Om()("Value attribute on the quote block",{since:"6.0",version:"6.5",alternative:"inner blocks"}),n.batch((()=>{o(t,r),a(t,l)}))}),[e.value])})(e,o);const s=(0,ut.useSelect)((e=>{const{isBlockSelected:t,hasSelectedInnerBlock:n}=e(Ye.store);return n(o)||t(o)}),[]),c=(0,Ye.useBlockProps)({className:it()(a,{[`has-text-align-${l}`]:l}),...!Kv&&{style:r}}),u=(0,Ye.useInnerBlocksProps)(c,{template:Jv,templateInsertUpdatesSelection:!0});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:l,onChange:e=>{t({align:e})}})),(0,qe.createElement)(Ke.BlockQuotation,{...u},u.children,(!Ye.RichText.isEmpty(i)||s)&&(0,qe.createElement)(Ye.RichText,{identifier:"citation",tagName:Kv?"cite":void 0,style:{display:"block"},value:i,onChange:e=>{t({citation:e})},__unstableMobileNoFocusOnMount:!0,"aria-label":(0,Je.__)("Quote citation"),placeholder:(0,Je.__)("Add citation"),className:"wp-block-quote__citation",__unstableOnSplitAtEnd:()=>n((0,je.createBlock)((0,je.getDefaultBlockName)())),...Kv?{}:{textAlign:l}})))},save:function({attributes:e}){const{align:t,citation:n}=e,o=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)("blockquote",{...Ye.useBlockProps.save({className:o})},(0,qe.createElement)(Ye.InnerBlocks.Content,null),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"cite",value:n}))},deprecated:Qv},ok=()=>Qe({name:tk,metadata:ek,settings:nk});var ak=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"})),rk=window.wp.reusableBlocks;var lk=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"}));const ik={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/block",title:"Pattern",category:"reusable",description:"Create and save content to reuse across your site. Update the pattern, and the changes apply everywhere it’s used.",keywords:["reusable"],textdomain:"default",attributes:{ref:{type:"number"}},supports:{customClassName:!1,html:!1,inserter:!1}},{name:sk}=ik,ck={edit:function({attributes:{ref:e},clientId:t}){const n=(0,Ye.__experimentalUseHasRecursion)(e),{record:o,hasResolved:a}=(0,ct.useEntityRecord)("postType","wp_block",e),r=a&&!o,{canRemove:l,innerBlockCount:i}=(0,ut.useSelect)((e=>{const{canRemoveBlock:n,getBlockCount:o}=e(Ye.store);return{canRemove:n(t),innerBlockCount:o(t)}}),[t]),{__experimentalConvertBlockToStatic:s}=(0,ut.useDispatch)(rk.store),[c,u,m]=(0,ct.useEntityBlockEditor)("postType","wp_block",{id:e}),[p,d]=(0,ct.useEntityProp)("postType","wp_block","title",e),g=(0,Ye.useBlockProps)({className:"block-library-block__reusable-block-container"}),h=(0,Ye.useInnerBlocksProps)(g,{value:c,onInput:u,onChange:m,renderAppender:c?.length?void 0:Ye.InnerBlocks.ButtonBlockAppender});return n?(0,qe.createElement)("div",{...g},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block cannot be rendered inside itself."))):r?(0,qe.createElement)("div",{...g},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block has been deleted or is unavailable."))):a?(0,qe.createElement)(Ye.__experimentalRecursionProvider,{uniqueId:e},l&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>s(t),label:i>1?(0,Je.__)("Detach patterns"):(0,Je.__)("Detach pattern"),icon:lk,showTooltip:!0}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Name"),value:p,onChange:d}))),(0,qe.createElement)("div",{...h})):(0,qe.createElement)("div",{...g},(0,qe.createElement)(Ke.Placeholder,null,(0,qe.createElement)(Ke.Spinner,null)))},icon:ak},uk=()=>Qe({name:sk,metadata:ik,settings:ck});const mk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/read-more",title:"Read More",category:"theme",description:"Displays the link of a post, page, or any other content-type.",textdomain:"default",attributes:{content:{type:"string"},linkTarget:{type:"string",default:"_self"}},usesContext:["postId"],supports:{html:!1,color:{gradients:!0,text:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,textDecoration:!0}},spacing:{margin:["top","bottom"],padding:!0,__experimentalDefaultControls:{padding:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalDefaultControls:{width:!0}}},style:"wp-block-read-more"},{name:pk}=mk,dk={icon:mn,edit:function({attributes:{content:e,linkTarget:t},setAttributes:n,insertBlocksAfter:o}){const a=(0,Ye.useBlockProps)();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>n({linkTarget:e?"_blank":"_self"}),checked:"_blank"===t}))),(0,qe.createElement)(Ye.RichText,{tagName:"a","aria-label":(0,Je.__)("“Read more” link text"),placeholder:(0,Je.__)("Read more"),value:e,onChange:e=>n({content:e}),__unstableOnSplitAtEnd:()=>o((0,je.createBlock)((0,je.getDefaultBlockName)())),withoutInteractiveFormatting:!0,...a}))}},gk=()=>Qe({name:pk,metadata:mk,settings:dk});var hk=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M5 10.2h-.8v1.5H5c1.9 0 3.8.8 5.1 2.1 1.4 1.4 2.1 3.2 2.1 5.1v.8h1.5V19c0-2.3-.9-4.5-2.6-6.2-1.6-1.6-3.8-2.6-6.1-2.6zm10.4-1.6C12.6 5.8 8.9 4.2 5 4.2h-.8v1.5H5c3.5 0 6.9 1.4 9.4 3.9s3.9 5.8 3.9 9.4v.8h1.5V19c0-3.9-1.6-7.6-4.4-10.4zM4 20h3v-3H4v3z"}));const _k={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/rss",title:"RSS",category:"widgets",description:"Display entries from any RSS or Atom feed.",keywords:["atom","feed"],textdomain:"default",attributes:{columns:{type:"number",default:2},blockLayout:{type:"string",default:"list"},feedURL:{type:"string",default:""},itemsToShow:{type:"number",default:5},displayExcerpt:{type:"boolean",default:!1},displayAuthor:{type:"boolean",default:!1},displayDate:{type:"boolean",default:!1},excerptLength:{type:"number",default:55}},supports:{align:!0,html:!1},editorStyle:"wp-block-rss-editor",style:"wp-block-rss"},{name:bk}=_k,fk={icon:hk,example:{attributes:{feedURL:"https://wordpress.org"}},edit:function({attributes:e,setAttributes:t}){const[n,o]=(0,qe.useState)(!e.feedURL),{blockLayout:a,columns:r,displayAuthor:l,displayDate:i,displayExcerpt:s,excerptLength:c,feedURL:u,itemsToShow:m}=e;function p(n){return()=>{const o=e[n];t({[n]:!o})}}const d=(0,Ye.useBlockProps)();if(n)return(0,qe.createElement)("div",{...d},(0,qe.createElement)(Ke.Placeholder,{icon:hk,label:"RSS"},(0,qe.createElement)("form",{onSubmit:function(e){e.preventDefault(),u&&(t({feedURL:(0,st.prependHTTP)(u)}),o(!1))},className:"wp-block-rss__placeholder-form"},(0,qe.createElement)(Ke.__experimentalHStack,{wrap:!0},(0,qe.createElement)(Ke.__experimentalInputControl,{__next36pxDefaultSize:!0,placeholder:(0,Je.__)("Enter URL here…"),value:u,onChange:e=>t({feedURL:e}),className:"wp-block-rss__placeholder-input"}),(0,qe.createElement)(Ke.Button,{variant:"primary",type:"submit"},(0,Je.__)("Use URL"))))));const g=[{icon:yi,title:(0,Je.__)("Edit RSS URL"),onClick:()=>o(!0)},{icon:Em,title:(0,Je.__)("List view"),onClick:()=>t({blockLayout:"list"}),isActive:"list"===a},{icon:Jc,title:(0,Je.__)("Grid view"),onClick:()=>t({blockLayout:"grid"}),isActive:"grid"===a}];return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,{controls:g})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Number of items"),value:m,onChange:e=>t({itemsToShow:e}),min:1,max:20,required:!0}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display author"),checked:l,onChange:p("displayAuthor")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display date"),checked:i,onChange:p("displayDate")}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Display excerpt"),checked:s,onChange:p("displayExcerpt")}),s&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Max number of words in excerpt"),value:c,onChange:e=>t({excerptLength:e}),min:10,max:100,required:!0}),"grid"===a&&(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:r,onChange:e=>t({columns:e}),min:2,max:6,required:!0}))),(0,qe.createElement)("div",{...d},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{block:"core/rss",attributes:e}))))}},yk=()=>Qe({name:bk,metadata:_k,settings:fk});var vk=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));const kk=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"7",y:"10",width:"10",height:"4",rx:"1",fill:"currentColor"})),xk=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"9.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,qe.createElement)(Ke.Rect,{x:"16",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),wk=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",strokeWidth:"1.5",fill:"none"}),(0,qe.createElement)(Ke.Rect,{x:"14",y:"10",width:"4",height:"4",rx:"1",fill:"currentColor"})),Ck=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"15.25",width:"6.5",height:"14.5",transform:"rotate(-90 4.75 15.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"})),Ek=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"7.75",width:"14.5",height:"8.5",rx:"1.25",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,qe.createElement)(Ke.Rect,{x:"8",y:"11",width:"8",height:"2",fill:"currentColor"})),Sk=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Rect,{x:"4.75",y:"17.25",width:"5.5",height:"14.5",transform:"rotate(-90 4.75 17.25)",stroke:"currentColor",fill:"none",strokeWidth:"1.5"}),(0,qe.createElement)(Ke.Rect,{x:"4",y:"7",width:"10",height:"2",fill:"currentColor"}));const Bk="expand-searchfield";var Tk=[{name:"default",isDefault:!0,attributes:{buttonText:(0,Je.__)("Search"),label:(0,Je.__)("Search")}}];const Nk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/search",title:"Search",category:"widgets",description:"Help visitors find your content.",keywords:["find"],textdomain:"default",attributes:{label:{type:"string",__experimentalRole:"content"},showLabel:{type:"boolean",default:!0},placeholder:{type:"string",default:"",__experimentalRole:"content"},width:{type:"number"},widthUnit:{type:"string"},buttonText:{type:"string",__experimentalRole:"content"},buttonPosition:{type:"string",default:"button-outside"},buttonUseIcon:{type:"boolean",default:!1},query:{type:"object",default:{}},buttonBehavior:{type:"string",default:"expand-searchfield"},isSearchFieldHidden:{type:"boolean",default:!1}},supports:{align:["left","center","right"],color:{gradients:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{__experimentalSkipSerialization:!0,__experimentalSelector:".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{color:!0,radius:!0,width:!0,__experimentalSkipSerialization:!0,__experimentalDefaultControls:{color:!0,radius:!0,width:!0}},html:!1},viewScript:"file:./view.min.js",editorStyle:"wp-block-search-editor",style:"wp-block-search"},{name:Pk}=Nk,Ik={icon:vk,example:{attributes:{buttonText:(0,Je.__)("Search"),label:(0,Je.__)("Search")},viewportWidth:400},variations:Tk,edit:function({className:e,attributes:t,setAttributes:n,toggleSelection:o,isSelected:a,clientId:r}){const{label:l,showLabel:i,placeholder:s,width:c,widthUnit:u,align:m,buttonText:p,buttonPosition:d,buttonUseIcon:g,buttonBehavior:h,isSearchFieldHidden:_,style:b}=t,f=(0,ut.useSelect)((e=>{const{getBlockParentsByBlockName:t,wasBlockJustInserted:n}=e(Ye.store);return!!t(r,"core/navigation")?.length&&n(r)}),[r]),{__unstableMarkNextChangeAsNotPersistent:y}=(0,ut.useDispatch)(Ye.store);(0,qe.useEffect)((()=>{f&&(y(),n({showLabel:!1,buttonUseIcon:!0,buttonPosition:"button-inside"}))}),[f]);const v=b?.border?.radius,k=(0,Ye.__experimentalUseBorderProps)(t);"number"==typeof v&&(k.style.borderRadius=`${v}px`);const x=(0,Ye.__experimentalUseColorProps)(t),w=(0,Ye.useSetting)("typography.fluid"),C=(0,Ye.useSetting)("layout"),E=(0,Ye.getTypographyClassesAndStyles)(t,{typography:{fluid:w},layout:{wideSize:C?.wideSize}}),S=`wp-block-search__width-${(0,Tt.useInstanceId)(Ke.__experimentalUnitControl)}`,B="button-inside"===d,T="button-outside"===d,N="no-button"===d,P="button-only"===d,I=(0,qe.useRef)(),M=(0,qe.useRef)(),z=(0,Ke.__experimentalUseCustomUnits)({availableUnits:["%","px"],defaultValues:{"%":50,px:350}});(0,qe.useEffect)((()=>{P&&!a&&n({isSearchFieldHidden:!0})}),[P,a,n]),(0,qe.useEffect)((()=>{P&&a&&n({isSearchFieldHidden:!1})}),[P,a,n,c]);const R=[{role:"menuitemradio",title:(0,Je.__)("Button outside"),isActive:"button-outside"===d,icon:xk,onClick:()=>{n({buttonPosition:"button-outside",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,Je.__)("Button inside"),isActive:"button-inside"===d,icon:wk,onClick:()=>{n({buttonPosition:"button-inside",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,Je.__)("No button"),isActive:"no-button"===d,icon:Ck,onClick:()=>{n({buttonPosition:"no-button",isSearchFieldHidden:!1})}},{role:"menuitemradio",title:(0,Je.__)("Button only"),isActive:"button-only"===d,icon:kk,onClick:()=>{n({buttonPosition:"button-only",isSearchFieldHidden:!0})}}],H=()=>{const e=it()("wp-block-search__input",B?void 0:k.className,E.className),t={...B?{borderRadius:v}:k.style,...E.style,textDecoration:void 0};return(0,qe.createElement)("input",{type:"search",className:e,style:t,"aria-label":(0,Je.__)("Optional placeholder text"),placeholder:s?void 0:(0,Je.__)("Optional placeholder…"),value:s,onChange:e=>n({placeholder:e.target.value}),ref:I})},L=(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{title:(0,Je.__)("Toggle search label"),icon:Sk,onClick:()=>{n({showLabel:!i})},className:i?"is-pressed":void 0}),(0,qe.createElement)(Ke.ToolbarDropdownMenu,{icon:(()=>{switch(d){case"button-inside":return wk;case"button-outside":return xk;case"no-button":return Ck;case"button-only":return kk}})(),label:(0,Je.__)("Change button position"),controls:R}),!N&&(0,qe.createElement)(Ke.ToolbarButton,{title:(0,Je.__)("Use button with icon"),icon:Ek,onClick:()=>{n({buttonUseIcon:!g})},className:g?"is-pressed":void 0}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Display Settings")},(0,qe.createElement)(Ke.BaseControl,{label:(0,Je.__)("Width"),id:S},(0,qe.createElement)(Ke.__experimentalUnitControl,{id:S,min:"220px",onChange:e=>{const t="%"===u&&parseInt(e,10)>100?100:e;n({width:parseInt(t,10)})},onUnitChange:e=>{n({width:"%"===e?50:350,widthUnit:e})},__unstableInputWidth:"80px",value:`${c}${u}`,units:z}),(0,qe.createElement)(Ke.ButtonGroup,{className:"wp-block-search__components-button-group","aria-label":(0,Je.__)("Percentage Width")},[25,50,75,100].map((e=>(0,qe.createElement)(Ke.Button,{key:e,isSmall:!0,variant:e===c&&"%"===u?"primary":void 0,onClick:()=>n({width:e,widthUnit:"%"})},e,"%")))))))),A=e=>e?`calc(${e} + 4px)`:void 0,V=(0,Ye.useBlockProps)({className:it()(e,B?"wp-block-search__button-inside":void 0,T?"wp-block-search__button-outside":void 0,N?"wp-block-search__no-button":void 0,P?"wp-block-search__button-only":void 0,g||N?void 0:"wp-block-search__text-button",g&&!N?"wp-block-search__icon-button":void 0,P&&Bk===h?"wp-block-search__button-behavior-expand":void 0,P&&_?"wp-block-search__searchfield-hidden":void 0),style:{...E.style,textDecoration:void 0}}),D=it()("wp-block-search__label",E.className);return(0,qe.createElement)("div",{...V},L,i&&(0,qe.createElement)(Ye.RichText,{className:D,"aria-label":(0,Je.__)("Label text"),placeholder:(0,Je.__)("Add label…"),withoutInteractiveFormatting:!0,value:l,onChange:e=>n({label:e}),style:E.style}),(0,qe.createElement)(Ke.ResizableBox,{size:{width:`${c}${u}`},className:it()("wp-block-search__inside-wrapper",B?k.className:void 0),style:(()=>{const e=B?k.style:{borderRadius:k.style?.borderRadius,borderTopLeftRadius:k.style?.borderTopLeftRadius,borderTopRightRadius:k.style?.borderTopRightRadius,borderBottomLeftRadius:k.style?.borderBottomLeftRadius,borderBottomRightRadius:k.style?.borderBottomRightRadius},t=void 0!==v&&0!==parseInt(v,10);if(B&&t){if("object"==typeof v){const{topLeft:t,topRight:n,bottomLeft:o,bottomRight:a}=v;return{...e,borderTopLeftRadius:A(t),borderTopRightRadius:A(n),borderBottomLeftRadius:A(o),borderBottomRightRadius:A(a)}}const t=Number.isInteger(v)?`${v}px`:v;e.borderRadius=`calc(${t} + 4px)`}return e})(),minWidth:220,enable:P?{}:{right:"right"!==m,left:"right"===m},onResizeStart:(e,t,a)=>{n({width:parseInt(a.offsetWidth,10),widthUnit:"px"}),o(!1)},onResizeStop:(e,t,a,r)=>{n({width:parseInt(c+r.width,10)}),o(!0)},showHandle:a},(B||T||P)&&(0,qe.createElement)(qe.Fragment,null,H(),(()=>{const e=it()("wp-block-search__button",x.className,E.className,B?void 0:k.className,g?"has-icon":void 0,(0,Ye.__experimentalGetElementClassName)("button")),t={...x.style,...E.style,...B?{borderRadius:v}:k.style},o=()=>{P&&Bk===h&&n({isSearchFieldHidden:!_})};return(0,qe.createElement)(qe.Fragment,null,g&&(0,qe.createElement)("button",{type:"button",className:e,style:t,"aria-label":p?(0,gd.__unstableStripHTML)(p):(0,Je.__)("Search"),onClick:o,ref:M},(0,qe.createElement)(Pd,{icon:vk})),!g&&(0,qe.createElement)(Ye.RichText,{className:e,style:t,"aria-label":(0,Je.__)("Button text"),placeholder:(0,Je.__)("Add button text…"),withoutInteractiveFormatting:!0,value:p,onChange:e=>n({buttonText:e}),onClick:o}))})()),N&&H()))}},Mk=()=>Qe({name:Pk,metadata:Nk,settings:Ik});var zk=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M4.5 12.5v4H3V7h1.5v3.987h15V7H21v9.5h-1.5v-4h-15Z"}));var Rk={from:[{type:"enter",regExp:/^-{3,}$/,transform:()=>(0,je.createBlock)("core/separator")},{type:"raw",selector:"hr",schema:{hr:{}}}]};const Hk={attributes:{color:{type:"string"},customColor:{type:"string"}},save({attributes:e}){const{color:t,customColor:n}=e,o=(0,Ye.getColorClassName)("background-color",t),a=(0,Ye.getColorClassName)("color",t),r=it()({"has-text-color has-background":t||n,[o]:o,[a]:a}),l={backgroundColor:o?void 0:n,color:a?void 0:n};return(0,qe.createElement)("hr",{...Ye.useBlockProps.save({className:r,style:l})})},migrate(e){const{color:t,customColor:n,...o}=e;return{...o,backgroundColor:t||void 0,opacity:"css",style:n?{color:{background:n}}:void 0}}};var Lk=[Hk];const Ak={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/separator",title:"Separator",category:"design",description:"Create a break between ideas or sections with a horizontal separator.",keywords:["horizontal-line","hr","divider"],textdomain:"default",attributes:{opacity:{type:"string",default:"alpha-channel"}},supports:{anchor:!0,align:["center","wide","full"],color:{enableContrastChecker:!1,__experimentalSkipSerialization:!0,gradients:!0,background:!0,text:!1,__experimentalDefaultControls:{background:!0}},spacing:{margin:["top","bottom"]}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"wide",label:"Wide Line"},{name:"dots",label:"Dots"}],editorStyle:"wp-block-separator-editor",style:"wp-block-separator"},{name:Vk}=Ak,Dk={icon:zk,example:{attributes:{customColor:"#065174",className:"is-style-wide"}},transforms:Rk,edit:function({attributes:e,setAttributes:t}){const{backgroundColor:n,opacity:o,style:a}=e,r=(0,Ye.__experimentalUseColorProps)(e),l=r?.style?.backgroundColor,i=!!a?.color?.background;!function(e,t,n){const[o,a]=(0,qe.useState)(!1),r=(0,Tt.usePrevious)(t);(0,qe.useEffect)((()=>{"css"!==e||t||r||a(!0)}),[t,r,e]),(0,qe.useEffect)((()=>{"css"===e&&(o&&t||r&&t!==r)&&(n({opacity:"alpha-channel"}),a(!1))}),[o,t,r])}(o,l,t);const s=(0,Ye.getColorClassName)("color",n),c=it()({"has-text-color":n||l,[s]:s,"has-css-opacity":"css"===o,"has-alpha-channel-opacity":"alpha-channel"===o},r.className),u={color:l,backgroundColor:l};return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.HorizontalRule,{...(0,Ye.useBlockProps)({className:c,style:i?u:void 0})}))},save:function({attributes:e}){const{backgroundColor:t,style:n,opacity:o}=e,a=n?.color?.background,r=(0,Ye.__experimentalGetColorClassesAndStyles)(e),l=(0,Ye.getColorClassName)("color",t),i=it()({"has-text-color":t||a,[l]:l,"has-css-opacity":"css"===o,"has-alpha-channel-opacity":"alpha-channel"===o},r.className),s={backgroundColor:r?.style?.backgroundColor,color:l?void 0:a};return(0,qe.createElement)("hr",{...Ye.useBlockProps.save({className:i,style:s})})},deprecated:Lk},Fk=()=>Qe({name:Vk,metadata:Ak,settings:Dk});var $k=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M16 4.2v1.5h2.5v12.5H16v1.5h4V4.2h-4zM4.2 19.8h4v-1.5H5.8V5.8h2.5V4.2h-4l-.1 15.6zm5.1-3.1l1.4.6 4-10-1.4-.6-4 10z"}));var Gk=window.wp.autop;var Ok={from:[{type:"shortcode",tag:"[a-z][a-z0-9_-]*",attributes:{text:{type:"string",shortcode:(e,{content:t})=>(0,Gk.removep)((0,Gk.autop)(t))}},priority:20}]};const Uk={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/shortcode",title:"Shortcode",category:"widgets",description:"Insert additional custom elements with a WordPress shortcode.",textdomain:"default",attributes:{text:{type:"string",source:"raw"}},supports:{className:!1,customClassName:!1,html:!1},editorStyle:"wp-block-shortcode-editor"},{name:jk}=Uk,qk={icon:$k,transforms:Ok,edit:function e({attributes:t,setAttributes:n}){const o=`blocks-shortcode-input-${(0,Tt.useInstanceId)(e)}`;return(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:"components-placeholder"})},(0,qe.createElement)("label",{htmlFor:o,className:"components-placeholder__label"},(0,qe.createElement)(Pd,{icon:$k}),(0,Je.__)("Shortcode")),(0,qe.createElement)(Ye.PlainText,{className:"blocks-shortcode__textarea",id:o,value:t.text,"aria-label":(0,Je.__)("Shortcode text"),placeholder:(0,Je.__)("Write shortcode here…"),onChange:e=>n({text:e})}))},save:function({attributes:e}){return(0,qe.createElement)(qe.RawHTML,null,e.text)}},Wk=()=>Qe({name:jk,metadata:Uk,settings:qk});var Zk=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z"}));const Qk=["image"],Kk="image/*",Jk=({alt:e,attributes:{align:t,width:n,height:o,isLink:a,linkTarget:r,shouldSyncIcon:l},containerRef:i,isSelected:s,setAttributes:c,setLogo:u,logoUrl:m,siteUrl:p,logoId:d,iconId:g,setIcon:h,canUserEdit:_})=>{const b=tm(i,[t]),f=(0,Tt.useViewportMatch)("medium"),y=!["wide","full"].includes(t)&&f,[{naturalWidth:v,naturalHeight:k},x]=(0,qe.useState)({}),[w,C]=(0,qe.useState)(!1),{toggleSelection:E}=(0,ut.useDispatch)(Ye.store),S=it()("custom-logo-link",{"is-transient":(0,Et.isBlobURL)(m)}),{imageEditing:B,maxWidth:T,title:N}=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings(),n=e(ct.store).getEntityRecord("root","__unstableBase");return{title:n?.name,imageEditing:t.imageEditing,maxWidth:t.maxWidth}}),[]);(0,qe.useEffect)((()=>{l&&d!==g&&c({shouldSyncIcon:!1})}),[]),(0,qe.useEffect)((()=>{s||C(!1)}),[s]);const P=(0,qe.createElement)("img",{className:"custom-logo",src:m,alt:e,onLoad:e=>{x({naturalWidth:e.target.naturalWidth,naturalHeight:e.target.naturalHeight})}});let I,M=P;if(a&&(M=(0,qe.createElement)("a",{href:p,className:S,rel:"home",title:N,onClick:e=>e.preventDefault()},P)),b&&v&&k){I=v>b?b:v}if(!y||!I)return(0,qe.createElement)("div",{style:{width:n,height:o}},M);const z=n||120,R=v/k,H=z/R,L=v<k?Qs:Math.ceil(Qs*R),A=k<v?Qs:Math.ceil(Qs/R),V=2.5*T;let D=!1,F=!1;"center"===t?(D=!0,F=!0):(0,Je.isRTL)()?"left"===t?D=!0:F=!0:"right"===t?F=!0:D=!0;const $=d&&v&&k&&B,G=$&&w?(0,qe.createElement)(Ye.__experimentalImageEditor,{id:d,url:m,width:z,height:H,clientWidth:b,naturalHeight:k,naturalWidth:v,onSaveImage:e=>{u(e.id)},onFinishEditing:()=>{C(!1)}}):(0,qe.createElement)(Ke.ResizableBox,{size:{width:z,height:H},showHandle:s,minWidth:L,maxWidth:V,minHeight:A,maxHeight:V/R,lockAspectRatio:!0,enable:{top:!1,right:D,bottom:!0,left:F},onResizeStart:function(){E(!1)},onResizeStop:(e,t,n,o)=>{E(!0),c({width:parseInt(z+o.width,10),height:parseInt(H+o.height,10)})}},M),O=(0,qe.createInterpolateElement)((0,Je.__)("Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. To use a custom icon that is different from your site logo, use the <a>Site Icon settings</a>."),{a:(0,qe.createElement)("a",{href:p+"/wp-admin/customize.php?autofocus[section]=title_tagline",target:"_blank",rel:"noopener noreferrer"})});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Image width"),onChange:e=>c({width:e}),min:L,max:V,initialPosition:Math.min(120,V),value:n||"",disabled:!y}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link image to home"),onChange:()=>c({isLink:!a}),checked:a}),a&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>c({linkTarget:e?"_blank":"_self"}),checked:"_blank"===r})),_&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Use as site icon"),onChange:e=>{c({shouldSyncIcon:e}),h(e?d:void 0)},checked:!!l,help:O})))),(0,qe.createElement)(Ye.BlockControls,{group:"block"},$&&!w&&(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>C(!0),icon:Yu,label:(0,Je.__)("Crop")})),G)};function Yk({onRemoveLogo:e,...t}){return(0,qe.createElement)(Ye.MediaReplaceFlow,{...t,allowedTypes:Qk,accept:Kk},(0,qe.createElement)(Ke.MenuItem,{onClick:e},(0,Je.__)("Reset")))}const Xk=({mediaItemData:e={},itemGroupProps:t})=>{const{alt_text:n,source_url:o,slug:a,media_details:r}=e,l=r?.sizes?.full?.file||a;return(0,qe.createElement)(Ke.__experimentalItemGroup,{...t,as:"span"},(0,qe.createElement)(Ke.__experimentalHStack,{justify:"flex-start",as:"span"},(0,qe.createElement)("img",{src:o,alt:n}),(0,qe.createElement)(Ke.FlexItem,{as:"span"},(0,qe.createElement)(Ke.__experimentalTruncate,{numberOfLines:1,className:"block-library-site-logo__inspector-media-replace-title"},l))))};var ex={to:[{type:"block",blocks:["core/site-title"],transform:({isLink:e,linkTarget:t})=>(0,je.createBlock)("core/site-title",{isLink:e,linkTarget:t})}]};const tx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-logo",title:"Site Logo",category:"theme",description:"Display an image to represent this site. Update this block and the changes apply everywhere.",textdomain:"default",attributes:{width:{type:"number"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"},shouldSyncIcon:{type:"boolean"}},example:{viewportWidth:500,attributes:{width:350,className:"block-editor-block-types-list__site-logo-example"}},supports:{html:!1,align:!0,alignWide:!1,color:{__experimentalDuotone:"img, .components-placeholder__illustration, .components-placeholder::before",text:!1,background:!1},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"rounded",label:"Rounded"}],editorStyle:"wp-block-site-logo-editor",style:"wp-block-site-logo"},{name:nx}=tx,ox={icon:Zk,example:{},edit:function({attributes:e,className:t,setAttributes:n,isSelected:o}){const{width:a,shouldSyncIcon:r}=e,l=(0,qe.useRef)(),{siteLogoId:i,canUserEdit:s,url:c,siteIconId:u,mediaItemData:m,isRequestingMediaItem:p,mediaUpload:d}=(0,ut.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:o}=e(ct.store),a=t("update","settings"),r=a?o("root","site"):void 0,l=n("root","__unstableBase"),i=a?r?.site_logo:l?.site_logo,s=r?.site_icon,c=i&&e(ct.store).getMedia(i,{context:"view"}),u=i&&!e(ct.store).hasFinishedResolution("getMedia",[i,{context:"view"}]);return{siteLogoId:i,canUserEdit:a,url:l?.home,mediaItemData:c,isRequestingMediaItem:u,siteIconId:s,mediaUpload:e(Ye.store).getSettings().mediaUpload}}),[]),{editEntityRecord:g}=(0,ut.useDispatch)(ct.store),h=(e,t=!1)=>{(r||t)&&_(e),g("root","site",void 0,{site_logo:e})},_=e=>g("root","site",void 0,{site_icon:null!=e?e:null}),{alt_text:b,source_url:f}=null!=m?m:{},y=e=>{if(void 0===r){const t=!u;return n({shouldSyncIcon:t}),void v(e,t)}v(e)},v=(e,t=!1)=>{e&&(e.id||!e.url?h(e.id,t):h(void 0))},{createErrorNotice:k}=(0,ut.useDispatch)(Bt.store),x=e=>{k(e,{type:"snackbar"})},w=e=>{d({allowedTypes:["image"],filesList:e,onFileChange([e]){(0,Et.isBlobURL)(e?.url)||y(e)},onError:x})},C={mediaURL:f,onSelect:v,onError:x,onRemoveLogo:()=>{h(null),n({width:void 0})}},E=s&&f&&(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Yk,{...C}));let S;const B=void 0===i||p;B&&(S=(0,qe.createElement)(Ke.Spinner,null)),f&&(S=(0,qe.createElement)(Jk,{alt:b,attributes:e,className:t,containerRef:l,isSelected:o,setAttributes:n,logoUrl:f,setLogo:h,logoId:m?.id||i,siteUrl:c,setIcon:_,iconId:u,canUserEdit:s}));const T=it()(t,{"is-default-size":!a}),N=(0,Ye.useBlockProps)({ref:l,className:T}),P=(0,Je.__)("Add a site logo"),I=(s||f)&&(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Media")},(0,qe.createElement)("div",{className:"block-library-site-logo__inspector-media-replace-container"},!s&&!!f&&(0,qe.createElement)(Xk,{mediaItemData:m,itemGroupProps:{isBordered:!0,className:"block-library-site-logo__inspector-readonly-logo-preview"}}),s&&!!f&&(0,qe.createElement)(Yk,{...C,name:(0,qe.createElement)(Xk,{mediaItemData:m}),popoverProps:{}}),s&&!f&&(0,qe.createElement)(Ye.MediaUploadCheck,null,(0,qe.createElement)(Ye.MediaUpload,{onSelect:y,allowedTypes:Qk,render:({open:e})=>(0,qe.createElement)("div",{className:"block-library-site-logo__inspector-upload-container"},(0,qe.createElement)(Ke.Button,{onClick:e,variant:"secondary"},B?(0,qe.createElement)(Ke.Spinner,null):(0,Je.__)("Add media")),(0,qe.createElement)(Ke.DropZone,{onFilesDrop:w}))})))));return(0,qe.createElement)("div",{...N},E,I,!!f&&S,!f&&!s&&(0,qe.createElement)(Ke.Placeholder,{className:"site-logo_placeholder"},!!B&&(0,qe.createElement)("span",{className:"components-placeholder__preview"},(0,qe.createElement)(Ke.Spinner,null))),!f&&s&&(0,qe.createElement)(Ye.MediaPlaceholder,{onSelect:y,accept:Kk,allowedTypes:Qk,onError:x,placeholder:e=>{const n=it()("block-editor-media-placeholder",t);return(0,qe.createElement)(Ke.Placeholder,{className:n,preview:S,withIllustration:!0,style:{width:a}},e)},mediaLibraryButton:({open:e})=>(0,qe.createElement)(Ke.Button,{icon:em,variant:"primary",label:P,showTooltip:!0,tooltipPosition:"top center",onClick:()=>{e()}})}))},transforms:ex},ax=()=>Qe({name:nx,metadata:tx,settings:ox});var rx=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24"},(0,qe.createElement)(Ke.Path,{d:"M4 10.5h16V9H4v1.5ZM4 15h9v-1.5H4V15Z"}));const lx={attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var ix=[lx];const sx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-tagline",title:"Site Tagline",category:"theme",description:"Describe in a few words what the site is about. The tagline can be used in search results or when sharing on social networks even if it’s not displayed in the theme design.",keywords:["description"],textdomain:"default",attributes:{textAlign:{type:"string"}},example:{},supports:{align:["wide","full"],html:!1,color:{gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},editorStyle:"wp-block-site-tagline-editor"},{name:cx}=sx,ux={icon:rx,edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n}){const{textAlign:o}=e,{canUserEdit:a,tagline:r}=(0,ut.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:o}=e(ct.store),a=t("update","settings"),r=a?o("root","site"):{},l=n("root","__unstableBase");return{canUserEdit:t("update","settings"),tagline:a?r?.description:l?.description}}),[]),{editEntityRecord:l}=(0,ut.useDispatch)(ct.store),i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o,"wp-block-site-tagline__placeholder":!a&&!r})}),s=a?(0,qe.createElement)(Ye.RichText,{allowedFormats:[],onChange:function(e){l("root","site",void 0,{description:e})},"aria-label":(0,Je.__)("Site tagline text"),placeholder:(0,Je.__)("Write site tagline…"),tagName:"p",value:r,disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>n((0,je.createBlock)((0,je.getDefaultBlockName)())),...i}):(0,qe.createElement)("p",{...i},r||(0,Je.__)("Site Tagline placeholder"));return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{onChange:e=>t({textAlign:e}),value:o})),s)},deprecated:ix},mx=()=>Qe({name:cx,metadata:sx,settings:ux});var px=(0,qe.createElement)(We.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"}));const dx=[0,1,2,3,4,5,6];const gx={attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0}},save(){return null},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var hx=[gx];var _x={to:[{type:"block",blocks:["core/site-logo"],transform:({isLink:e,linkTarget:t})=>(0,je.createBlock)("core/site-logo",{isLink:e,linkTarget:t})}]};const bx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/site-title",title:"Site Title",category:"theme",description:"Displays the name of this site. Update the block, and the changes apply everywhere it’s used. This will also appear in the browser title bar and in search results.",textdomain:"default",attributes:{level:{type:"number",default:1},textAlign:{type:"string"},isLink:{type:"boolean",default:!0},linkTarget:{type:"string",default:"_self"}},example:{viewportWidth:500},supports:{align:["wide","full"],html:!1,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0,link:!0}},spacing:{padding:!0,margin:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0,lineHeight:!0,fontAppearance:!0,letterSpacing:!0,textTransform:!0}}},editorStyle:"wp-block-site-title-editor",style:"wp-block-site-title"},{name:fx}=bx,yx={icon:px,example:{},edit:function({attributes:e,setAttributes:t,insertBlocksAfter:n}){const{level:o,textAlign:a,isLink:r,linkTarget:l}=e,{canUserEdit:i,title:s}=(0,ut.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEditedEntityRecord:o}=e(ct.store),a=t("update","settings"),r=a?o("root","site"):{},l=n("root","__unstableBase");return{canUserEdit:a,title:a?r?.title:l?.name}}),[]),{editEntityRecord:c}=(0,ut.useDispatch)(ct.store),u=0===o?"p":`h${o}`,m=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${a}`]:a,"wp-block-site-title__placeholder":!i&&!s})}),p=i?(0,qe.createElement)(u,{...m},(0,qe.createElement)(Ye.RichText,{tagName:r?"a":"span",href:r?"#site-title-pseudo-link":void 0,"aria-label":(0,Je.__)("Site title text"),placeholder:(0,Je.__)("Write site title…"),value:s,onChange:function(e){c("root","site",void 0,{title:e})},allowedFormats:[],disableLineBreaks:!0,__unstableOnSplitAtEnd:()=>n((0,je.createBlock)((0,je.getDefaultBlockName)()))})):(0,qe.createElement)(u,{...m},r?(0,qe.createElement)("a",{href:"#site-title-pseudo-link",onClick:e=>e.preventDefault()},(0,On.decodeEntities)(s)||(0,Je.__)("Site Title placeholder")):(0,qe.createElement)("span",null,(0,On.decodeEntities)(s)||(0,Je.__)("Site Title placeholder")));return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.HeadingLevelDropdown,{options:dx,value:o,onChange:e=>t({level:e})}),(0,qe.createElement)(Ye.AlignmentControl,{value:a,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Make title link to home"),onChange:()=>t({isLink:!r}),checked:r}),r&&(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open in new tab"),onChange:e=>t({linkTarget:e?"_blank":"_self"}),checked:"_blank"===l}))),p)},transforms:_x,deprecated:hx},vx=()=>Qe({name:fx,metadata:bx,settings:yx});var kx=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M9 11.8l6.1-4.5c.1.4.4.7.9.7h2c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1h-2c-.6 0-1 .4-1 1v.4l-6.4 4.8c-.2-.1-.4-.2-.6-.2H6c-.6 0-1 .4-1 1v2c0 .6.4 1 1 1h2c.2 0 .4-.1.6-.2l6.4 4.8v.4c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-2c0-.6-.4-1-1-1h-2c-.5 0-.8.3-.9.7L9 12.2v-.4z"}));var xx=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M6.734 16.106l2.176-2.38-1.093-1.028-3.846 4.158 3.846 4.157 1.093-1.027-2.176-2.38h2.811c1.125 0 2.25.03 3.374 0 1.428-.001 3.362-.25 4.963-1.277 1.66-1.065 2.868-2.906 2.868-5.859 0-2.479-1.327-4.896-3.65-5.93-1.82-.813-3.044-.8-4.806-.788l-.567.002v1.5c.184 0 .368 0 .553-.002 1.82-.007 2.704-.014 4.21.657 1.854.827 2.76 2.657 2.76 4.561 0 2.472-.973 3.824-2.178 4.596-1.258.807-2.864 1.04-4.163 1.04h-.02c-1.115.03-2.229 0-3.344 0H6.734z"}));const wx=()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M15.6 7.2H14v1.5h1.6c2 0 3.7 1.7 3.7 3.7s-1.7 3.7-3.7 3.7H14v1.5h1.6c2.8 0 5.2-2.3 5.2-5.2 0-2.9-2.3-5.2-5.2-5.2zM4.7 12.4c0-2 1.7-3.7 3.7-3.7H10V7.2H8.4c-2.9 0-5.2 2.3-5.2 5.2 0 2.9 2.3 5.2 5.2 5.2H10v-1.5H8.4c-2 0-3.7-1.7-3.7-3.7zm4.6.9h5.3v-1.5H9.3v1.5z"})),Cx=[{isDefault:!0,name:"wordpress",attributes:{service:"wordpress"},title:"WordPress",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M12.158,12.786L9.46,20.625c0.806,0.237,1.657,0.366,2.54,0.366c1.047,0,2.051-0.181,2.986-0.51 c-0.024-0.038-0.046-0.079-0.065-0.124L12.158,12.786z M3.009,12c0,3.559,2.068,6.634,5.067,8.092L3.788,8.341 C3.289,9.459,3.009,10.696,3.009,12z M18.069,11.546c0-1.112-0.399-1.881-0.741-2.48c-0.456-0.741-0.883-1.368-0.883-2.109 c0-0.826,0.627-1.596,1.51-1.596c0.04,0,0.078,0.005,0.116,0.007C16.472,3.904,14.34,3.009,12,3.009 c-3.141,0-5.904,1.612-7.512,4.052c0.211,0.007,0.41,0.011,0.579,0.011c0.94,0,2.396-0.114,2.396-0.114 C7.947,6.93,8.004,7.642,7.52,7.699c0,0-0.487,0.057-1.029,0.085l3.274,9.739l1.968-5.901l-1.401-3.838 C9.848,7.756,9.389,7.699,9.389,7.699C8.904,7.67,8.961,6.93,9.446,6.958c0,0,1.484,0.114,2.368,0.114 c0.94,0,2.397-0.114,2.397-0.114c0.485-0.028,0.542,0.684,0.057,0.741c0,0-0.488,0.057-1.029,0.085l3.249,9.665l0.897-2.996 C17.841,13.284,18.069,12.316,18.069,11.546z M19.889,7.686c0.039,0.286,0.06,0.593,0.06,0.924c0,0.912-0.171,1.938-0.684,3.22 l-2.746,7.94c2.673-1.558,4.47-4.454,4.47-7.771C20.991,10.436,20.591,8.967,19.889,7.686z M12,22C6.486,22,2,17.514,2,12 C2,6.486,6.486,2,12,2c5.514,0,10,4.486,10,10C22,17.514,17.514,22,12,22z"}))},{name:"fivehundredpx",attributes:{service:"fivehundredpx"},title:"500px",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M6.94026,15.1412c.00437.01213.108.29862.168.44064a6.55008,6.55008,0,1,0,6.03191-9.09557,6.68654,6.68654,0,0,0-2.58357.51467A8.53914,8.53914,0,0,0,8.21268,8.61344L8.209,8.61725V3.22948l9.0504-.00008c.32934-.0036.32934-.46353.32934-.61466s0-.61091-.33035-.61467L7.47248,2a.43.43,0,0,0-.43131.42692v7.58355c0,.24466.30476.42131.58793.4819.553.11812.68074-.05864.81617-.2457l.018-.02481A10.52673,10.52673,0,0,1,9.32258,9.258a5.35268,5.35268,0,1,1,7.58985,7.54976,5.417,5.417,0,0,1-3.80867,1.56365,5.17483,5.17483,0,0,1-2.69822-.74478l.00342-4.61111a2.79372,2.79372,0,0,1,.71372-1.78792,2.61611,2.61611,0,0,1,1.98282-.89477,2.75683,2.75683,0,0,1,1.95525.79477,2.66867,2.66867,0,0,1,.79656,1.909,2.724,2.724,0,0,1-2.75849,2.748,4.94651,4.94651,0,0,1-.86254-.13719c-.31234-.093-.44519.34058-.48892.48349-.16811.54966.08453.65862.13687.67489a3.75751,3.75751,0,0,0,1.25234.18375,3.94634,3.94634,0,1,0-2.82444-6.742,3.67478,3.67478,0,0,0-1.13028,2.584l-.00041.02323c-.0035.11667-.00579,2.881-.00644,3.78811l-.00407-.00451a6.18521,6.18521,0,0,1-1.0851-1.86092c-.10544-.27856-.34358-.22925-.66857-.12917-.14192.04372-.57386.17677-.47833.489Zm4.65165-1.08338a.51346.51346,0,0,0,.19513.31818l.02276.022a.52945.52945,0,0,0,.3517.18416.24242.24242,0,0,0,.16577-.0611c.05473-.05082.67382-.67812.73287-.738l.69041.68819a.28978.28978,0,0,0,.21437.11032.53239.53239,0,0,0,.35708-.19486c.29792-.30419.14885-.46821.07676-.54751l-.69954-.69975.72952-.73469c.16-.17311.01874-.35708-.12218-.498-.20461-.20461-.402-.25742-.52855-.14083l-.7254.72665-.73354-.73375a.20128.20128,0,0,0-.14179-.05695.54135.54135,0,0,0-.34379.19648c-.22561.22555-.274.38149-.15656.5059l.73374.7315-.72942.73072A.26589.26589,0,0,0,11.59191,14.05782Zm1.59866-9.915A8.86081,8.86081,0,0,0,9.854,4.776a.26169.26169,0,0,0-.16938.22759.92978.92978,0,0,0,.08619.42094c.05682.14524.20779.531.50006.41955a8.40969,8.40969,0,0,1,2.91968-.55484,7.87875,7.87875,0,0,1,3.086.62286,8.61817,8.61817,0,0,1,2.30562,1.49315.2781.2781,0,0,0,.18318.07586c.15529,0,.30425-.15253.43167-.29551.21268-.23861.35873-.4369.1492-.63538a8.50425,8.50425,0,0,0-2.62312-1.694A9.0177,9.0177,0,0,0,13.19058,4.14283ZM19.50945,18.6236h0a.93171.93171,0,0,0-.36642-.25406.26589.26589,0,0,0-.27613.06613l-.06943.06929A7.90606,7.90606,0,0,1,7.60639,18.505a7.57284,7.57284,0,0,1-1.696-2.51537,8.58715,8.58715,0,0,1-.5147-1.77754l-.00871-.04864c-.04939-.25873-.28755-.27684-.62981-.22448-.14234.02178-.5755.088-.53426.39969l.001.00712a9.08807,9.08807,0,0,0,15.406,4.99094c.00193-.00192.04753-.04718.0725-.07436C19.79425,19.16234,19.87422,18.98728,19.50945,18.6236Z"}))},{name:"amazon",attributes:{service:"amazon"},title:"Amazon",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M13.582,8.182C11.934,8.367,9.78,8.49,8.238,9.166c-1.781,0.769-3.03,2.337-3.03,4.644 c0,2.953,1.86,4.429,4.253,4.429c2.02,0,3.125-0.477,4.685-2.065c0.516,0.747,0.685,1.109,1.629,1.894 c0.212,0.114,0.483,0.103,0.672-0.066l0.006,0.006c0.567-0.505,1.599-1.401,2.18-1.888c0.231-0.188,0.19-0.496,0.009-0.754 c-0.52-0.718-1.072-1.303-1.072-2.634V8.305c0-1.876,0.133-3.599-1.249-4.891C15.23,2.369,13.422,2,12.04,2 C9.336,2,6.318,3.01,5.686,6.351C5.618,6.706,5.877,6.893,6.109,6.945l2.754,0.298C9.121,7.23,9.308,6.977,9.357,6.72 c0.236-1.151,1.2-1.706,2.284-1.706c0.584,0,1.249,0.215,1.595,0.738c0.398,0.584,0.346,1.384,0.346,2.061V8.182z M13.049,14.088 c-0.451,0.8-1.169,1.291-1.967,1.291c-1.09,0-1.728-0.83-1.728-2.061c0-2.42,2.171-2.86,4.227-2.86v0.615 C13.582,12.181,13.608,13.104,13.049,14.088z M20.683,19.339C18.329,21.076,14.917,22,11.979,22c-4.118,0-7.826-1.522-10.632-4.057 c-0.22-0.199-0.024-0.471,0.241-0.317c3.027,1.762,6.771,2.823,10.639,2.823c2.608,0,5.476-0.541,8.115-1.66 C20.739,18.62,21.072,19.051,20.683,19.339z M21.336,21.043c-0.194,0.163-0.379,0.076-0.293-0.139 c0.284-0.71,0.92-2.298,0.619-2.684c-0.301-0.386-1.99-0.183-2.749-0.092c-0.23,0.027-0.266-0.173-0.059-0.319 c1.348-0.946,3.555-0.673,3.811-0.356C22.925,17.773,22.599,19.986,21.336,21.043z"}))},{name:"bandcamp",attributes:{service:"bandcamp"},title:"Bandcamp",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M15.27 17.289 3 17.289 8.73 6.711 21 6.711 15.27 17.289"}))},{name:"behance",attributes:{service:"behance"},title:"Behance",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M7.799,5.698c0.589,0,1.12,0.051,1.606,0.156c0.482,0.102,0.894,0.273,1.241,0.507c0.344,0.235,0.612,0.546,0.804,0.938 c0.188,0.387,0.281,0.871,0.281,1.443c0,0.619-0.141,1.137-0.421,1.551c-0.284,0.413-0.7,0.751-1.255,1.014 c0.756,0.218,1.317,0.601,1.689,1.146c0.374,0.549,0.557,1.205,0.557,1.975c0,0.623-0.12,1.161-0.359,1.612 c-0.241,0.457-0.569,0.828-0.973,1.114c-0.408,0.288-0.876,0.5-1.399,0.637C9.052,17.931,8.514,18,7.963,18H2V5.698H7.799 M7.449,10.668c0.481,0,0.878-0.114,1.192-0.345c0.311-0.228,0.463-0.603,0.463-1.119c0-0.286-0.051-0.523-0.152-0.707 C8.848,8.315,8.711,8.171,8.536,8.07C8.362,7.966,8.166,7.894,7.94,7.854c-0.224-0.044-0.457-0.06-0.697-0.06H4.709v2.874H7.449z M7.6,15.905c0.267,0,0.521-0.024,0.759-0.077c0.243-0.053,0.457-0.137,0.637-0.261c0.182-0.12,0.332-0.283,0.441-0.491 C9.547,14.87,9.6,14.602,9.6,14.278c0-0.633-0.18-1.084-0.533-1.357c-0.356-0.27-0.83-0.404-1.413-0.404H4.709v3.388L7.6,15.905z M16.162,15.864c0.367,0.358,0.897,0.538,1.583,0.538c0.493,0,0.92-0.125,1.277-0.374c0.354-0.248,0.571-0.514,0.654-0.79h2.155 c-0.347,1.072-0.872,1.838-1.589,2.299C19.534,18,18.67,18.23,17.662,18.23c-0.701,0-1.332-0.113-1.899-0.337 c-0.567-0.227-1.041-0.544-1.439-0.958c-0.389-0.415-0.689-0.907-0.904-1.484c-0.213-0.574-0.32-1.21-0.32-1.899 c0-0.666,0.11-1.288,0.329-1.863c0.222-0.577,0.529-1.075,0.933-1.492c0.406-0.42,0.885-0.751,1.444-0.994 c0.558-0.241,1.175-0.363,1.857-0.363c0.754,0,1.414,0.145,1.98,0.44c0.563,0.291,1.026,0.686,1.389,1.181 c0.363,0.493,0.622,1.057,0.783,1.69c0.16,0.632,0.217,1.292,0.171,1.983h-6.428C15.557,14.84,15.795,15.506,16.162,15.864 M18.973,11.184c-0.291-0.321-0.783-0.496-1.384-0.496c-0.39,0-0.714,0.066-0.973,0.2c-0.254,0.132-0.461,0.297-0.621,0.491 c-0.157,0.197-0.265,0.405-0.328,0.628c-0.063,0.217-0.101,0.413-0.111,0.587h3.98C19.478,11.969,19.265,11.509,18.973,11.184z M15.057,7.738h4.985V6.524h-4.985L15.057,7.738z"}))},{name:"chain",attributes:{service:"chain"},title:"Link",icon:wx},{name:"codepen",attributes:{service:"codepen"},title:"CodePen",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22.016,8.84c-0.002-0.013-0.005-0.025-0.007-0.037c-0.005-0.025-0.008-0.048-0.015-0.072 c-0.003-0.015-0.01-0.028-0.013-0.042c-0.008-0.02-0.015-0.04-0.023-0.062c-0.007-0.015-0.013-0.028-0.02-0.042 c-0.008-0.02-0.018-0.037-0.03-0.057c-0.007-0.013-0.017-0.027-0.025-0.038c-0.012-0.018-0.023-0.035-0.035-0.052 c-0.01-0.013-0.02-0.025-0.03-0.037c-0.015-0.017-0.028-0.032-0.043-0.045c-0.01-0.012-0.022-0.023-0.035-0.035 c-0.015-0.015-0.032-0.028-0.048-0.04c-0.012-0.01-0.025-0.02-0.037-0.03c-0.005-0.003-0.01-0.008-0.015-0.012l-9.161-6.096 c-0.289-0.192-0.666-0.192-0.955,0L2.359,8.237C2.354,8.24,2.349,8.245,2.344,8.249L2.306,8.277 c-0.017,0.013-0.033,0.027-0.048,0.04C2.246,8.331,2.234,8.342,2.222,8.352c-0.015,0.015-0.028,0.03-0.042,0.047 c-0.012,0.013-0.022,0.023-0.03,0.037C2.139,8.453,2.125,8.471,2.115,8.488C2.107,8.501,2.099,8.514,2.09,8.526 C2.079,8.548,2.069,8.565,2.06,8.585C2.054,8.6,2.047,8.613,2.04,8.626C2.032,8.648,2.025,8.67,2.019,8.69 c-0.005,0.013-0.01,0.027-0.013,0.042C1.999,8.755,1.995,8.778,1.99,8.803C1.989,8.817,1.985,8.828,1.984,8.84 C1.978,8.879,1.975,8.915,1.975,8.954v6.093c0,0.037,0.003,0.075,0.008,0.112c0.002,0.012,0.005,0.025,0.007,0.038 c0.005,0.023,0.008,0.047,0.015,0.072c0.003,0.015,0.008,0.028,0.013,0.04c0.007,0.022,0.013,0.042,0.022,0.063 c0.007,0.015,0.013,0.028,0.02,0.04c0.008,0.02,0.018,0.038,0.03,0.058c0.007,0.013,0.015,0.027,0.025,0.038 c0.012,0.018,0.023,0.035,0.035,0.052c0.01,0.013,0.02,0.025,0.03,0.037c0.013,0.015,0.028,0.032,0.042,0.045 c0.012,0.012,0.023,0.023,0.035,0.035c0.015,0.013,0.032,0.028,0.048,0.04l0.038,0.03c0.005,0.003,0.01,0.007,0.013,0.01 l9.163,6.095C11.668,21.953,11.833,22,12,22c0.167,0,0.332-0.047,0.478-0.144l9.163-6.095l0.015-0.01 c0.013-0.01,0.027-0.02,0.037-0.03c0.018-0.013,0.035-0.028,0.048-0.04c0.013-0.012,0.025-0.023,0.035-0.035 c0.017-0.015,0.03-0.032,0.043-0.045c0.01-0.013,0.02-0.025,0.03-0.037c0.013-0.018,0.025-0.035,0.035-0.052 c0.008-0.013,0.018-0.027,0.025-0.038c0.012-0.02,0.022-0.038,0.03-0.058c0.007-0.013,0.013-0.027,0.02-0.04 c0.008-0.022,0.015-0.042,0.023-0.063c0.003-0.013,0.01-0.027,0.013-0.04c0.007-0.025,0.01-0.048,0.015-0.072 c0.002-0.013,0.005-0.027,0.007-0.037c0.003-0.042,0.007-0.079,0.007-0.117V8.954C22.025,8.915,22.022,8.879,22.016,8.84z M12.862,4.464l6.751,4.49l-3.016,2.013l-3.735-2.492V4.464z M11.138,4.464v4.009l-3.735,2.494L4.389,8.954L11.138,4.464z M3.699,10.562L5.853,12l-2.155,1.438V10.562z M11.138,19.536l-6.749-4.491l3.015-2.011l3.735,2.492V19.536z M12,14.035L8.953,12 L12,9.966L15.047,12L12,14.035z M12.862,19.536v-4.009l3.735-2.492l3.016,2.011L12.862,19.536z M20.303,13.438L18.147,12 l2.156-1.438L20.303,13.438z"}))},{name:"deviantart",attributes:{service:"deviantart"},title:"DeviantArt",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M 18.19 5.636 18.19 2 18.188 2 14.553 2 14.19 2.366 12.474 5.636 11.935 6 5.81 6 5.81 10.994 9.177 10.994 9.477 11.357 5.81 18.363 5.81 22 5.811 22 9.447 22 9.81 21.634 11.526 18.364 12.065 18 18.19 18 18.19 13.006 14.823 13.006 14.523 12.641 18.19 5.636z"}))},{name:"dribbble",attributes:{service:"dribbble"},title:"Dribbble",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,22C6.486,22,2,17.514,2,12S6.486,2,12,2c5.514,0,10,4.486,10,10S17.514,22,12,22z M20.434,13.369 c-0.292-0.092-2.644-0.794-5.32-0.365c1.117,3.07,1.572,5.57,1.659,6.09C18.689,17.798,20.053,15.745,20.434,13.369z M15.336,19.876c-0.127-0.749-0.623-3.361-1.822-6.477c-0.019,0.006-0.038,0.013-0.056,0.019c-4.818,1.679-6.547,5.02-6.701,5.334 c1.448,1.129,3.268,1.803,5.243,1.803C13.183,20.555,14.311,20.313,15.336,19.876z M5.654,17.724 c0.193-0.331,2.538-4.213,6.943-5.637c0.111-0.036,0.224-0.07,0.337-0.102c-0.214-0.485-0.448-0.971-0.692-1.45 c-4.266,1.277-8.405,1.223-8.778,1.216c-0.003,0.087-0.004,0.174-0.004,0.261C3.458,14.207,4.29,16.21,5.654,17.724z M3.639,10.264 c0.382,0.005,3.901,0.02,7.897-1.041c-1.415-2.516-2.942-4.631-3.167-4.94C5.979,5.41,4.193,7.613,3.639,10.264z M9.998,3.709 c0.236,0.316,1.787,2.429,3.187,5c3.037-1.138,4.323-2.867,4.477-3.085C16.154,4.286,14.17,3.471,12,3.471 C11.311,3.471,10.641,3.554,9.998,3.709z M18.612,6.612C18.432,6.855,17,8.69,13.842,9.979c0.199,0.407,0.389,0.821,0.567,1.237 c0.063,0.148,0.124,0.295,0.184,0.441c2.842-0.357,5.666,0.215,5.948,0.275C20.522,9.916,19.801,8.065,18.612,6.612z"}))},{name:"dropbox",attributes:{service:"dropbox"},title:"Dropbox",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,6.134L6.069,9.797L2,6.54l5.883-3.843L12,6.134z M2,13.054l5.883,3.843L12,13.459L6.069,9.797L2,13.054z M12,13.459 l4.116,3.439L22,13.054l-4.069-3.257L12,13.459z M22,6.54l-5.884-3.843L12,6.134l5.931,3.663L22,6.54z M12.011,14.2l-4.129,3.426 l-1.767-1.153v1.291l5.896,3.539l5.897-3.539v-1.291l-1.769,1.153L12.011,14.2z"}))},{name:"etsy",attributes:{service:"etsy"},title:"Etsy",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M9.16033,4.038c0-.27174.02717-.43478.48913-.43478h6.22283c1.087,0,1.68478.92391,2.11957,2.663l.35326,1.38587h1.05978C19.59511,3.712,19.75815,2,19.75815,2s-2.663.29891-4.23913.29891h-7.962L3.29076,2.163v1.1413L4.731,3.57609c1.00543.19022,1.25.40761,1.33152,1.33152,0,0,.08152,2.71739.08152,7.20109s-.08152,7.17391-.08152,7.17391c0,.81522-.32609,1.11413-1.33152,1.30435l-1.44022.27174V22l4.2663-.13587h7.11957c1.60326,0,5.32609.13587,5.32609.13587.08152-.97826.625-5.40761.70652-5.89674H19.7038L18.644,18.52174c-.84239,1.90217-2.06522,2.038-3.42391,2.038H11.1712c-1.3587,0-2.01087-.54348-2.01087-1.712V12.65217s3.0163,0,3.99457.08152c.76087.05435,1.22283.27174,1.46739,1.33152l.32609,1.413h1.16848l-.08152-3.55978.163-3.587H15.02989l-.38043,1.57609c-.24457,1.03261-.40761,1.22283-1.46739,1.33152-1.38587.13587-4.02174.1087-4.02174.1087Z"}))},{name:"facebook",attributes:{service:"facebook"},title:"Facebook",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"}))},{name:"feed",attributes:{service:"feed"},title:"RSS Feed",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M2,8.667V12c5.515,0,10,4.485,10,10h3.333C15.333,14.637,9.363,8.667,2,8.667z M2,2v3.333 c9.19,0,16.667,7.477,16.667,16.667H22C22,10.955,13.045,2,2,2z M4.5,17C3.118,17,2,18.12,2,19.5S3.118,22,4.5,22S7,20.88,7,19.5 S5.882,17,4.5,17z"}))},{name:"flickr",attributes:{service:"flickr"},title:"Flickr",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M6.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5S9.25,7,6.5,7z M17.5,7c-2.75,0-5,2.25-5,5s2.25,5,5,5s5-2.25,5-5 S20.25,7,17.5,7z"}))},{name:"foursquare",attributes:{service:"foursquare"},title:"Foursquare",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M17.573,2c0,0-9.197,0-10.668,0S5,3.107,5,3.805s0,16.948,0,16.948c0,0.785,0.422,1.077,0.66,1.172 c0.238,0.097,0.892,0.177,1.285-0.275c0,0,5.035-5.843,5.122-5.93c0.132-0.132,0.132-0.132,0.262-0.132h3.26 c1.368,0,1.588-0.977,1.732-1.552c0.078-0.318,0.692-3.428,1.225-6.122l0.675-3.368C19.56,2.893,19.14,2,17.573,2z M16.495,7.22 c-0.053,0.252-0.372,0.518-0.665,0.518c-0.293,0-4.157,0-4.157,0c-0.467,0-0.802,0.318-0.802,0.787v0.508 c0,0.467,0.337,0.798,0.805,0.798c0,0,3.197,0,3.528,0s0.655,0.362,0.583,0.715c-0.072,0.353-0.407,2.102-0.448,2.295 c-0.04,0.193-0.262,0.523-0.655,0.523c-0.33,0-2.88,0-2.88,0c-0.523,0-0.683,0.068-1.033,0.503 c-0.35,0.437-3.505,4.223-3.505,4.223c-0.032,0.035-0.063,0.027-0.063-0.015V4.852c0-0.298,0.26-0.648,0.648-0.648 c0,0,8.228,0,8.562,0c0.315,0,0.61,0.297,0.528,0.683L16.495,7.22z"}))},{name:"goodreads",attributes:{service:"goodreads"},title:"Goodreads",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M17.3,17.5c-0.2,0.8-0.5,1.4-1,1.9c-0.4,0.5-1,0.9-1.7,1.2C13.9,20.9,13.1,21,12,21c-0.6,0-1.3-0.1-1.9-0.2 c-0.6-0.1-1.1-0.4-1.6-0.7c-0.5-0.3-0.9-0.7-1.2-1.2c-0.3-0.5-0.5-1.1-0.5-1.7h1.5c0.1,0.5,0.2,0.9,0.5,1.2 c0.2,0.3,0.5,0.6,0.9,0.8c0.3,0.2,0.7,0.3,1.1,0.4c0.4,0.1,0.8,0.1,1.2,0.1c1.4,0,2.5-0.4,3.1-1.2c0.6-0.8,1-2,1-3.5v-1.7h0 c-0.4,0.8-0.9,1.4-1.6,1.9c-0.7,0.5-1.5,0.7-2.4,0.7c-1,0-1.9-0.2-2.6-0.5C8.7,15,8.1,14.5,7.7,14c-0.5-0.6-0.8-1.3-1-2.1 c-0.2-0.8-0.3-1.6-0.3-2.5c0-0.9,0.1-1.7,0.4-2.5c0.3-0.8,0.6-1.5,1.1-2c0.5-0.6,1.1-1,1.8-1.4C10.3,3.2,11.1,3,12,3 c0.5,0,0.9,0.1,1.3,0.2c0.4,0.1,0.8,0.3,1.1,0.5c0.3,0.2,0.6,0.5,0.9,0.8c0.3,0.3,0.5,0.6,0.6,1h0V3.4h1.5V15 C17.6,15.9,17.5,16.7,17.3,17.5z M13.8,14.1c0.5-0.3,0.9-0.7,1.3-1.1c0.3-0.5,0.6-1,0.8-1.6c0.2-0.6,0.3-1.2,0.3-1.9 c0-0.6-0.1-1.2-0.2-1.9c-0.1-0.6-0.4-1.2-0.7-1.7c-0.3-0.5-0.7-0.9-1.3-1.2c-0.5-0.3-1.1-0.5-1.9-0.5s-1.4,0.2-1.9,0.5 c-0.5,0.3-1,0.7-1.3,1.2C8.5,6.4,8.3,7,8.1,7.6C8,8.2,7.9,8.9,7.9,9.5c0,0.6,0.1,1.3,0.2,1.9C8.3,12,8.6,12.5,8.9,13 c0.3,0.5,0.8,0.8,1.3,1.1c0.5,0.3,1.1,0.4,1.9,0.4C12.7,14.5,13.3,14.4,13.8,14.1z"}))},{name:"google",attributes:{service:"google"},title:"Google",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12.02,10.18v3.72v0.01h5.51c-0.26,1.57-1.67,4.22-5.5,4.22c-3.31,0-6.01-2.75-6.01-6.12s2.7-6.12,6.01-6.12 c1.87,0,3.13,0.8,3.85,1.48l2.84-2.76C16.99,2.99,14.73,2,12.03,2c-5.52,0-10,4.48-10,10s4.48,10,10,10c5.77,0,9.6-4.06,9.6-9.77 c0-0.83-0.11-1.42-0.25-2.05H12.02z"}))},{name:"github",attributes:{service:"github"},title:"GitHub",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,4.419,2.865,8.166,6.839,9.489c0.5,0.09,0.682-0.218,0.682-0.484 c0-0.236-0.009-0.866-0.014-1.699c-2.782,0.602-3.369-1.34-3.369-1.34c-0.455-1.157-1.11-1.465-1.11-1.465 c-0.909-0.62,0.069-0.608,0.069-0.608c1.004,0.071,1.532,1.03,1.532,1.03c0.891,1.529,2.341,1.089,2.91,0.833 c0.091-0.647,0.349-1.086,0.635-1.337c-2.22-0.251-4.555-1.111-4.555-4.943c0-1.091,0.39-1.984,1.03-2.682 C6.546,8.54,6.202,7.524,6.746,6.148c0,0,0.84-0.269,2.75,1.025C10.295,6.95,11.15,6.84,12,6.836 c0.85,0.004,1.705,0.114,2.504,0.336c1.909-1.294,2.748-1.025,2.748-1.025c0.546,1.376,0.202,2.394,0.1,2.646 c0.64,0.699,1.026,1.591,1.026,2.682c0,3.841-2.337,4.687-4.565,4.935c0.359,0.307,0.679,0.917,0.679,1.852 c0,1.335-0.012,2.415-0.012,2.741c0,0.269,0.18,0.579,0.688,0.481C19.138,20.161,22,16.416,22,12C22,6.477,17.523,2,12,2z"}))},{name:"instagram",attributes:{service:"instagram"},title:"Instagram",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,4.622c2.403,0,2.688,0.009,3.637,0.052c0.877,0.04,1.354,0.187,1.671,0.31c0.42,0.163,0.72,0.358,1.035,0.673 c0.315,0.315,0.51,0.615,0.673,1.035c0.123,0.317,0.27,0.794,0.31,1.671c0.043,0.949,0.052,1.234,0.052,3.637 s-0.009,2.688-0.052,3.637c-0.04,0.877-0.187,1.354-0.31,1.671c-0.163,0.42-0.358,0.72-0.673,1.035 c-0.315,0.315-0.615,0.51-1.035,0.673c-0.317,0.123-0.794,0.27-1.671,0.31c-0.949,0.043-1.233,0.052-3.637,0.052 s-2.688-0.009-3.637-0.052c-0.877-0.04-1.354-0.187-1.671-0.31c-0.42-0.163-0.72-0.358-1.035-0.673 c-0.315-0.315-0.51-0.615-0.673-1.035c-0.123-0.317-0.27-0.794-0.31-1.671C4.631,14.688,4.622,14.403,4.622,12 s0.009-2.688,0.052-3.637c0.04-0.877,0.187-1.354,0.31-1.671c0.163-0.42,0.358-0.72,0.673-1.035 c0.315-0.315,0.615-0.51,1.035-0.673c0.317-0.123,0.794-0.27,1.671-0.31C9.312,4.631,9.597,4.622,12,4.622 M12,3 C9.556,3,9.249,3.01,8.289,3.054C7.331,3.098,6.677,3.25,6.105,3.472C5.513,3.702,5.011,4.01,4.511,4.511 c-0.5,0.5-0.808,1.002-1.038,1.594C3.25,6.677,3.098,7.331,3.054,8.289C3.01,9.249,3,9.556,3,12c0,2.444,0.01,2.751,0.054,3.711 c0.044,0.958,0.196,1.612,0.418,2.185c0.23,0.592,0.538,1.094,1.038,1.594c0.5,0.5,1.002,0.808,1.594,1.038 c0.572,0.222,1.227,0.375,2.185,0.418C9.249,20.99,9.556,21,12,21s2.751-0.01,3.711-0.054c0.958-0.044,1.612-0.196,2.185-0.418 c0.592-0.23,1.094-0.538,1.594-1.038c0.5-0.5,0.808-1.002,1.038-1.594c0.222-0.572,0.375-1.227,0.418-2.185 C20.99,14.751,21,14.444,21,12s-0.01-2.751-0.054-3.711c-0.044-0.958-0.196-1.612-0.418-2.185c-0.23-0.592-0.538-1.094-1.038-1.594 c-0.5-0.5-1.002-0.808-1.594-1.038c-0.572-0.222-1.227-0.375-2.185-0.418C14.751,3.01,14.444,3,12,3L12,3z M12,7.378 c-2.552,0-4.622,2.069-4.622,4.622S9.448,16.622,12,16.622s4.622-2.069,4.622-4.622S14.552,7.378,12,7.378z M12,15 c-1.657,0-3-1.343-3-3s1.343-3,3-3s3,1.343,3,3S13.657,15,12,15z M16.804,6.116c-0.596,0-1.08,0.484-1.08,1.08 s0.484,1.08,1.08,1.08c0.596,0,1.08-0.484,1.08-1.08S17.401,6.116,16.804,6.116z"}))},{name:"lastfm",attributes:{service:"lastfm"},title:"Last.fm",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M 12.0002 1.5 C 6.2006 1.5 1.5 6.2011 1.5 11.9998 C 1.5 17.799 6.2006 22.5 12.0002 22.5 C 17.799 22.5 22.5 17.799 22.5 11.9998 C 22.5 6.2011 17.799 1.5 12.0002 1.5 Z M 16.1974 16.2204 C 14.8164 16.2152 13.9346 15.587 13.3345 14.1859 L 13.1816 13.8451 L 11.8541 10.8101 C 11.4271 9.7688 10.3526 9.0712 9.1801 9.0712 C 7.5695 9.0712 6.2593 10.3851 6.2593 12.001 C 6.2593 13.6165 7.5695 14.9303 9.1801 14.9303 C 10.272 14.9303 11.2651 14.3275 11.772 13.3567 C 11.7893 13.3235 11.8239 13.302 11.863 13.3038 C 11.9007 13.3054 11.9353 13.3288 11.9504 13.3632 L 12.4865 14.6046 C 12.5016 14.639 12.4956 14.6778 12.4723 14.7069 C 11.6605 15.6995 10.4602 16.2683 9.1801 16.2683 C 6.8331 16.2683 4.9234 14.3536 4.9234 12.001 C 4.9234 9.6468 6.833 7.732 9.1801 7.732 C 10.9572 7.732 12.3909 8.6907 13.1138 10.3636 C 13.1206 10.3802 13.8412 12.0708 14.4744 13.5191 C 14.8486 14.374 15.1462 14.896 16.1288 14.9292 C 17.0663 14.9613 17.7538 14.4122 17.7538 13.6485 C 17.7538 12.9691 17.3321 12.8004 16.3803 12.4822 C 14.7365 11.9398 13.845 11.3861 13.845 10.0182 C 13.845 8.6809 14.7667 7.8162 16.192 7.8162 C 17.1288 7.8162 17.8155 8.2287 18.2921 9.0768 C 18.305 9.1006 18.3079 9.1281 18.3004 9.1542 C 18.2929 9.1803 18.2748 9.2021 18.2507 9.2138 L 17.3614 9.669 C 17.3178 9.692 17.2643 9.6781 17.2356 9.6385 C 16.9329 9.2135 16.5956 9.0251 16.1423 9.0251 C 15.5512 9.0251 15.122 9.429 15.122 9.9865 C 15.122 10.6738 15.6529 10.8414 16.5339 11.1192 C 16.6491 11.1558 16.7696 11.194 16.8939 11.2343 C 18.2763 11.6865 19.0768 12.2311 19.0768 13.6836 C 19.0769 15.1297 17.8389 16.2204 16.1974 16.2204 Z"}))},{name:"linkedin",attributes:{service:"linkedin"},title:"LinkedIn",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M19.7,3H4.3C3.582,3,3,3.582,3,4.3v15.4C3,20.418,3.582,21,4.3,21h15.4c0.718,0,1.3-0.582,1.3-1.3V4.3 C21,3.582,20.418,3,19.7,3z M8.339,18.338H5.667v-8.59h2.672V18.338z M7.004,8.574c-0.857,0-1.549-0.694-1.549-1.548 c0-0.855,0.691-1.548,1.549-1.548c0.854,0,1.547,0.694,1.547,1.548C8.551,7.881,7.858,8.574,7.004,8.574z M18.339,18.338h-2.669 v-4.177c0-0.996-0.017-2.278-1.387-2.278c-1.389,0-1.601,1.086-1.601,2.206v4.249h-2.667v-8.59h2.559v1.174h0.037 c0.356-0.675,1.227-1.387,2.526-1.387c2.703,0,3.203,1.779,3.203,4.092V18.338z"}))},{name:"mail",attributes:{service:"mail"},title:"Mail",keywords:["email","e-mail"],icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l7.5 5.6 7.5-5.6V17zm0-9.1L12 13.6 4.5 7.9V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v.9z"}))},{name:"mastodon",attributes:{service:"mastodon"},title:"Mastodon",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z"}))},{name:"meetup",attributes:{service:"meetup"},title:"Meetup",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M19.24775,14.722a3.57032,3.57032,0,0,1-2.94457,3.52073,3.61886,3.61886,0,0,1-.64652.05634c-.07314-.0008-.10187.02846-.12507.09547A2.38881,2.38881,0,0,1,13.49453,20.094a2.33092,2.33092,0,0,1-1.827-.50716.13635.13635,0,0,0-.19878-.00408,3.191,3.191,0,0,1-2.104.60248,3.26309,3.26309,0,0,1-3.00324-2.71993,2.19076,2.19076,0,0,1-.03512-.30865c-.00156-.08579-.03413-.1189-.11608-.13493a2.86421,2.86421,0,0,1-1.23189-.56111,2.945,2.945,0,0,1-1.166-2.05749,2.97484,2.97484,0,0,1,.87524-2.50774.112.112,0,0,0,.02091-.16107,2.7213,2.7213,0,0,1-.36648-1.48A2.81256,2.81256,0,0,1,6.57673,7.58838a.35764.35764,0,0,0,.28869-.22819,4.2208,4.2208,0,0,1,6.02892-1.90111.25161.25161,0,0,0,.22023.0243,3.65608,3.65608,0,0,1,3.76031.90678A3.57244,3.57244,0,0,1,17.95918,8.626a2.97339,2.97339,0,0,1,.01829.57356.10637.10637,0,0,0,.0853.12792,1.97669,1.97669,0,0,1,1.27939,1.33733,2.00266,2.00266,0,0,1-.57112,2.12652c-.05284.05166-.04168.08328-.01173.13489A3.51189,3.51189,0,0,1,19.24775,14.722Zm-6.35959-.27836a1.6984,1.6984,0,0,0,1.14556,1.61113,3.82039,3.82039,0,0,0,1.036.17935,1.46888,1.46888,0,0,0,.73509-.12255.44082.44082,0,0,0,.26057-.44274.45312.45312,0,0,0-.29211-.43375.97191.97191,0,0,0-.20678-.063c-.21326-.03806-.42754-.0701-.63973-.11215a.54787.54787,0,0,1-.50172-.60926,2.75864,2.75864,0,0,1,.1773-.901c.1763-.535.414-1.045.64183-1.55913A12.686,12.686,0,0,0,15.85,10.47863a1.58461,1.58461,0,0,0,.04861-.87208,1.04531,1.04531,0,0,0-.85432-.83981,1.60658,1.60658,0,0,0-1.23654.16594.27593.27593,0,0,1-.36286-.03413c-.085-.0747-.16594-.15379-.24918-.23055a.98682.98682,0,0,0-1.33577-.04933,6.1468,6.1468,0,0,1-.4989.41615.47762.47762,0,0,1-.51535.03566c-.17448-.09307-.35512-.175-.53531-.25665a1.74949,1.74949,0,0,0-.56476-.2016,1.69943,1.69943,0,0,0-1.61654.91787,8.05815,8.05815,0,0,0-.32952.80126c-.45471,1.2557-.82507,2.53825-1.20838,3.81639a1.24151,1.24151,0,0,0,.51532,1.44389,1.42659,1.42659,0,0,0,1.22008.17166,1.09728,1.09728,0,0,0,.66994-.69764c.44145-1.04111.839-2.09989,1.25981-3.14926.11581-.28876.22792-.57874.35078-.86438a.44548.44548,0,0,1,.69189-.19539.50521.50521,0,0,1,.15044.43836,1.75625,1.75625,0,0,1-.14731.50453c-.27379.69219-.55265,1.38236-.82766,2.074a2.0836,2.0836,0,0,0-.14038.42876.50719.50719,0,0,0,.27082.57722.87236.87236,0,0,0,.66145.02739.99137.99137,0,0,0,.53406-.532q.61571-1.20914,1.228-2.42031.28423-.55863.57585-1.1133a.87189.87189,0,0,1,.29055-.35253.34987.34987,0,0,1,.37634-.01265.30291.30291,0,0,1,.12434.31459.56716.56716,0,0,1-.04655.1915c-.05318.12739-.10286.25669-.16183.38156-.34118.71775-.68754,1.43273-1.02568,2.152A2.00213,2.00213,0,0,0,12.88816,14.44366Zm4.78568,5.28972a.88573.88573,0,0,0-1.77139.00465.8857.8857,0,0,0,1.77139-.00465Zm-14.83838-7.296a.84329.84329,0,1,0,.00827-1.68655.8433.8433,0,0,0-.00827,1.68655Zm10.366-9.43673a.83506.83506,0,1,0-.0091,1.67.83505.83505,0,0,0,.0091-1.67Zm6.85014,5.22a.71651.71651,0,0,0-1.433.0093.71656.71656,0,0,0,1.433-.0093ZM5.37528,6.17908A.63823.63823,0,1,0,6.015,5.54483.62292.62292,0,0,0,5.37528,6.17908Zm6.68214,14.80843a.54949.54949,0,1,0-.55052.541A.54556.54556,0,0,0,12.05742,20.98752Zm8.53235-8.49689a.54777.54777,0,0,0-.54027.54023.53327.53327,0,0,0,.532.52293.51548.51548,0,0,0,.53272-.5237A.53187.53187,0,0,0,20.58977,12.49063ZM7.82846,2.4715a.44927.44927,0,1,0,.44484.44766A.43821.43821,0,0,0,7.82846,2.4715Zm13.775,7.60492a.41186.41186,0,0,0-.40065.39623.40178.40178,0,0,0,.40168.40168A.38994.38994,0,0,0,22,10.48172.39946.39946,0,0,0,21.60349,10.07642ZM5.79193,17.96207a.40469.40469,0,0,0-.397-.39646.399.399,0,0,0-.396.405.39234.39234,0,0,0,.39939.389A.39857.39857,0,0,0,5.79193,17.96207Z"}))},{name:"medium",attributes:{service:"medium"},title:"Medium",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M20.962,7.257l-5.457,8.867l-3.923-6.375l3.126-5.08c0.112-0.182,0.319-0.286,0.527-0.286c0.05,0,0.1,0.008,0.149,0.02 c0.039,0.01,0.078,0.023,0.114,0.041l5.43,2.715l0.006,0.003c0.004,0.002,0.007,0.006,0.011,0.008 C20.971,7.191,20.98,7.227,20.962,7.257z M9.86,8.592v5.783l5.14,2.57L9.86,8.592z M15.772,17.331l4.231,2.115 C20.554,19.721,21,19.529,21,19.016V8.835L15.772,17.331z M8.968,7.178L3.665,4.527C3.569,4.479,3.478,4.456,3.395,4.456 C3.163,4.456,3,4.636,3,4.938v11.45c0,0.306,0.224,0.669,0.498,0.806l4.671,2.335c0.12,0.06,0.234,0.088,0.337,0.088 c0.29,0,0.494-0.225,0.494-0.602V7.231C9,7.208,8.988,7.188,8.968,7.178z"}))},{name:"patreon",attributes:{service:"patreon"},title:"Patreon",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 569 546",version:"1.1"},(0,qe.createElement)(We.Circle,{cx:"363",cy:"205",r:"205"}),(0,qe.createElement)(We.Rect,{width:"100",height:"546",x:"0",y:"0"}))},{name:"pinterest",attributes:{service:"pinterest"},title:"Pinterest",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12.289,2C6.617,2,3.606,5.648,3.606,9.622c0,1.846,1.025,4.146,2.666,4.878c0.25,0.111,0.381,0.063,0.439-0.169 c0.044-0.175,0.267-1.029,0.365-1.428c0.032-0.128,0.017-0.237-0.091-0.362C6.445,11.911,6.01,10.75,6.01,9.668 c0-2.777,2.194-5.464,5.933-5.464c3.23,0,5.49,2.108,5.49,5.122c0,3.407-1.794,5.768-4.13,5.768c-1.291,0-2.257-1.021-1.948-2.277 c0.372-1.495,1.089-3.112,1.089-4.191c0-0.967-0.542-1.775-1.663-1.775c-1.319,0-2.379,1.309-2.379,3.059 c0,1.115,0.394,1.869,0.394,1.869s-1.302,5.279-1.54,6.261c-0.405,1.666,0.053,4.368,0.094,4.604 c0.021,0.126,0.167,0.169,0.25,0.063c0.129-0.165,1.699-2.419,2.142-4.051c0.158-0.59,0.817-2.995,0.817-2.995 c0.43,0.784,1.681,1.446,3.013,1.446c3.963,0,6.822-3.494,6.822-7.833C20.394,5.112,16.849,2,12.289,2"}))},{name:"pocket",attributes:{service:"pocket"},title:"Pocket",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M21.927,4.194C21.667,3.48,20.982,3,20.222,3h-0.01h-1.721H3.839C3.092,3,2.411,3.47,2.145,4.17 C2.066,4.378,2.026,4.594,2.026,4.814v6.035l0.069,1.2c0.29,2.73,1.707,5.115,3.899,6.778c0.039,0.03,0.079,0.059,0.119,0.089 l0.025,0.018c1.175,0.859,2.491,1.441,3.91,1.727c0.655,0.132,1.325,0.2,1.991,0.2c0.615,0,1.232-0.057,1.839-0.17 c0.073-0.014,0.145-0.028,0.219-0.044c0.02-0.004,0.042-0.012,0.064-0.023c1.359-0.297,2.621-0.864,3.753-1.691l0.025-0.018 c0.04-0.029,0.08-0.058,0.119-0.089c2.192-1.664,3.609-4.049,3.898-6.778l0.069-1.2V4.814C22.026,4.605,22,4.398,21.927,4.194z M17.692,10.481l-4.704,4.512c-0.266,0.254-0.608,0.382-0.949,0.382c-0.342,0-0.684-0.128-0.949-0.382l-4.705-4.512 C5.838,9.957,5.82,9.089,6.344,8.542c0.524-0.547,1.392-0.565,1.939-0.04l3.756,3.601l3.755-3.601 c0.547-0.524,1.415-0.506,1.939,0.04C18.256,9.089,18.238,9.956,17.692,10.481z"}))},{name:"reddit",attributes:{service:"reddit"},title:"Reddit",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22 12.068a2.184 2.184 0 0 0-2.186-2.186c-.592 0-1.13.233-1.524.609-1.505-1.075-3.566-1.774-5.86-1.864l1.004-4.695 3.261.699A1.56 1.56 0 1 0 18.255 3c-.61-.001-1.147.357-1.398.877l-3.638-.77a.382.382 0 0 0-.287.053.348.348 0 0 0-.161.251l-1.112 5.233c-2.33.072-4.426.77-5.95 1.864a2.201 2.201 0 0 0-1.523-.61 2.184 2.184 0 0 0-.896 4.176c-.036.215-.053.43-.053.663 0 3.37 3.924 6.111 8.763 6.111s8.763-2.724 8.763-6.11c0-.216-.017-.449-.053-.664A2.207 2.207 0 0 0 22 12.068Zm-15.018 1.56a1.56 1.56 0 0 1 3.118 0c0 .86-.699 1.558-1.559 1.558-.86.018-1.559-.699-1.559-1.559Zm8.728 4.139c-1.076 1.075-3.119 1.147-3.71 1.147-.61 0-2.652-.09-3.71-1.147a.4.4 0 0 1 0-.573.4.4 0 0 1 .574 0c.68.68 2.114.914 3.136.914 1.022 0 2.473-.233 3.136-.914a.4.4 0 0 1 .574 0 .436.436 0 0 1 0 .573Zm-.287-2.563a1.56 1.56 0 0 1 0-3.118c.86 0 1.56.699 1.56 1.56 0 .841-.7 1.558-1.56 1.558Z"}))},{name:"skype",attributes:{service:"skype"},title:"Skype",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M10.113,2.699c0.033-0.006,0.067-0.013,0.1-0.02c0.033,0.017,0.066,0.033,0.098,0.051L10.113,2.699z M2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223z M21.275,13.771 c0.007-0.035,0.011-0.071,0.018-0.106c-0.018-0.031-0.033-0.064-0.052-0.095L21.275,13.771z M13.563,21.199 c0.032,0.019,0.065,0.035,0.096,0.053c0.036-0.006,0.071-0.011,0.105-0.017L13.563,21.199z M22,16.386 c0,1.494-0.581,2.898-1.637,3.953c-1.056,1.057-2.459,1.637-3.953,1.637c-0.967,0-1.914-0.251-2.75-0.725 c0.036-0.006,0.071-0.011,0.105-0.017l-0.202-0.035c0.032,0.019,0.065,0.035,0.096,0.053c-0.543,0.096-1.099,0.147-1.654,0.147 c-1.275,0-2.512-0.25-3.676-0.743c-1.125-0.474-2.135-1.156-3.002-2.023c-0.867-0.867-1.548-1.877-2.023-3.002 c-0.493-1.164-0.743-2.401-0.743-3.676c0-0.546,0.049-1.093,0.142-1.628c0.018,0.032,0.033,0.064,0.051,0.095L2.72,10.223 c-0.006,0.034-0.011,0.069-0.017,0.103C2.244,9.5,2,8.566,2,7.615c0-1.493,0.582-2.898,1.637-3.953 c1.056-1.056,2.46-1.638,3.953-1.638c0.915,0,1.818,0.228,2.622,0.655c-0.033,0.007-0.067,0.013-0.1,0.02l0.199,0.031 c-0.032-0.018-0.066-0.034-0.098-0.051c0.002,0,0.003-0.001,0.004-0.001c0.586-0.112,1.187-0.169,1.788-0.169 c1.275,0,2.512,0.249,3.676,0.742c1.124,0.476,2.135,1.156,3.002,2.024c0.868,0.867,1.548,1.877,2.024,3.002 c0.493,1.164,0.743,2.401,0.743,3.676c0,0.575-0.054,1.15-0.157,1.712c-0.018-0.031-0.033-0.064-0.052-0.095l0.034,0.201 c0.007-0.035,0.011-0.071,0.018-0.106C21.754,14.494,22,15.432,22,16.386z M16.817,14.138c0-1.331-0.613-2.743-3.033-3.282 l-2.209-0.49c-0.84-0.192-1.807-0.444-1.807-1.237c0-0.794,0.679-1.348,1.903-1.348c2.468,0,2.243,1.696,3.468,1.696 c0.645,0,1.209-0.379,1.209-1.031c0-1.521-2.435-2.663-4.5-2.663c-2.242,0-4.63,0.952-4.63,3.488c0,1.221,0.436,2.521,2.839,3.123 l2.984,0.745c0.903,0.223,1.129,0.731,1.129,1.189c0,0.762-0.758,1.507-2.129,1.507c-2.679,0-2.307-2.062-3.743-2.062 c-0.645,0-1.113,0.444-1.113,1.078c0,1.236,1.501,2.886,4.856,2.886C15.236,17.737,16.817,16.199,16.817,14.138z"}))},{name:"snapchat",attributes:{service:"snapchat"},title:"Snapchat",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12.065,2a5.526,5.526,0,0,1,3.132.892A5.854,5.854,0,0,1,17.326,5.4a5.821,5.821,0,0,1,.351,2.33q0,.612-.117,2.487a.809.809,0,0,0,.365.091,1.93,1.93,0,0,0,.664-.176,1.93,1.93,0,0,1,.664-.176,1.3,1.3,0,0,1,.729.234.7.7,0,0,1,.351.6.839.839,0,0,1-.41.7,2.732,2.732,0,0,1-.9.41,3.192,3.192,0,0,0-.9.378.728.728,0,0,0-.41.618,1.575,1.575,0,0,0,.156.56,6.9,6.9,0,0,0,1.334,1.953,5.6,5.6,0,0,0,1.881,1.315,5.875,5.875,0,0,0,1.042.3.42.42,0,0,1,.365.456q0,.911-2.852,1.341a1.379,1.379,0,0,0-.143.507,1.8,1.8,0,0,1-.182.605.451.451,0,0,1-.429.241,5.878,5.878,0,0,1-.807-.085,5.917,5.917,0,0,0-.833-.085,4.217,4.217,0,0,0-.807.065,2.42,2.42,0,0,0-.82.293,6.682,6.682,0,0,0-.755.5q-.351.267-.755.527a3.886,3.886,0,0,1-.989.436A4.471,4.471,0,0,1,11.831,22a4.307,4.307,0,0,1-1.256-.176,3.784,3.784,0,0,1-.976-.436q-.4-.26-.749-.527a6.682,6.682,0,0,0-.755-.5,2.422,2.422,0,0,0-.807-.293,4.432,4.432,0,0,0-.82-.065,5.089,5.089,0,0,0-.853.1,5,5,0,0,1-.762.1.474.474,0,0,1-.456-.241,1.819,1.819,0,0,1-.182-.618,1.411,1.411,0,0,0-.143-.521q-2.852-.429-2.852-1.341a.42.42,0,0,1,.365-.456,5.793,5.793,0,0,0,1.042-.3,5.524,5.524,0,0,0,1.881-1.315,6.789,6.789,0,0,0,1.334-1.953A1.575,1.575,0,0,0,6,12.9a.728.728,0,0,0-.41-.618,3.323,3.323,0,0,0-.9-.384,2.912,2.912,0,0,1-.9-.41.814.814,0,0,1-.41-.684.71.71,0,0,1,.338-.593,1.208,1.208,0,0,1,.716-.241,1.976,1.976,0,0,1,.625.169,2.008,2.008,0,0,0,.69.169.919.919,0,0,0,.416-.091q-.117-1.849-.117-2.474A5.861,5.861,0,0,1,6.385,5.4,5.516,5.516,0,0,1,8.625,2.819,7.075,7.075,0,0,1,12.062,2Z"}))},{name:"soundcloud",attributes:{service:"soundcloud"},title:"SoundCloud",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M8.9,16.1L9,14L8.9,9.5c0-0.1,0-0.1-0.1-0.1c0,0-0.1-0.1-0.1-0.1c-0.1,0-0.1,0-0.1,0.1c0,0-0.1,0.1-0.1,0.1L8.3,14l0.1,2.1 c0,0.1,0,0.1,0.1,0.1c0,0,0.1,0.1,0.1,0.1C8.8,16.3,8.9,16.3,8.9,16.1z M11.4,15.9l0.1-1.8L11.4,9c0-0.1,0-0.2-0.1-0.2 c0,0-0.1,0-0.1,0s-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.2l0,0.1l-0.1,5c0,0,0,0.7,0.1,2v0c0,0.1,0,0.1,0.1,0.1c0.1,0.1,0.1,0.1,0.2,0.1 c0.1,0,0.1,0,0.2-0.1c0.1,0,0.1-0.1,0.1-0.2L11.4,15.9z M2.4,12.9L2.5,14l-0.2,1.1c0,0.1,0,0.1-0.1,0.1c0,0-0.1,0-0.1-0.1L2.1,14 l0.1-1.1C2.2,12.9,2.3,12.9,2.4,12.9C2.3,12.9,2.4,12.9,2.4,12.9z M3.1,12.2L3.3,14l-0.2,1.8c0,0.1,0,0.1-0.1,0.1 c-0.1,0-0.1,0-0.1-0.1L2.8,14L3,12.2C3,12.2,3,12.2,3.1,12.2C3.1,12.2,3.1,12.2,3.1,12.2z M3.9,11.9L4.1,14l-0.2,2.1 c0,0.1,0,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L3.5,14l0.2-2.1c0-0.1,0-0.1,0.1-0.1C3.9,11.8,3.9,11.8,3.9,11.9z M4.7,11.9L4.9,14 l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c-0.1,0-0.1,0-0.1-0.1L4.3,14l0.2-2.2c0-0.1,0-0.1,0.1-0.1C4.7,11.7,4.7,11.8,4.7,11.9z M5.6,12 l0.2,2l-0.2,2.1c0,0.1-0.1,0.1-0.1,0.1c0,0-0.1,0-0.1,0c0,0,0-0.1,0-0.1L5.1,14l0.2-2c0,0,0-0.1,0-0.1s0.1,0,0.1,0 C5.5,11.9,5.5,11.9,5.6,12L5.6,12z M6.4,10.7L6.6,14l-0.2,2.1c0,0,0,0.1,0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1-0.1-0.2-0.2L5.9,14 l0.2-3.3c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0C6.4,10.7,6.4,10.7,6.4,10.7z M7.2,10l0.2,4.1l-0.2,2.1c0,0,0,0.1,0,0.1 c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2l-0.1-2.1L6.8,10c0-0.1,0.1-0.2,0.2-0.2c0,0,0.1,0,0.1,0S7.2,9.9,7.2,10z M8,9.6L8.2,14 L8,16.1c0,0.1-0.1,0.2-0.2,0.2c-0.1,0-0.2-0.1-0.2-0.2L7.5,14l0.1-4.4c0-0.1,0-0.1,0.1-0.1c0,0,0.1-0.1,0.1-0.1c0.1,0,0.1,0,0.1,0.1 C8,9.6,8,9.6,8,9.6z M11.4,16.1L11.4,16.1L11.4,16.1z M9.7,9.6L9.8,14l-0.1,2.1c0,0.1,0,0.1-0.1,0.2s-0.1,0.1-0.2,0.1 c-0.1,0-0.1,0-0.1-0.1s-0.1-0.1-0.1-0.2L9.2,14l0.1-4.4c0-0.1,0-0.1,0.1-0.2s0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S9.7,9.5,9.7,9.6 L9.7,9.6z M10.6,9.8l0.1,4.3l-0.1,2c0,0.1,0,0.1-0.1,0.2c0,0-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c0,0-0.1-0.1-0.1-0.2L10,14 l0.1-4.3c0-0.1,0-0.1,0.1-0.2c0,0,0.1-0.1,0.2-0.1c0.1,0,0.1,0,0.2,0.1S10.6,9.7,10.6,9.8z M12.4,14l-0.1,2c0,0.1,0,0.1-0.1,0.2 c-0.1,0.1-0.1,0.1-0.2,0.1c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2l-0.1-1l-0.1-1l0.1-5.5v0c0-0.1,0-0.2,0.1-0.2 c0.1,0,0.1-0.1,0.2-0.1c0,0,0.1,0,0.1,0c0.1,0,0.1,0.1,0.1,0.2L12.4,14z M22.1,13.9c0,0.7-0.2,1.3-0.7,1.7c-0.5,0.5-1.1,0.7-1.7,0.7 h-6.8c-0.1,0-0.1,0-0.2-0.1c-0.1-0.1-0.1-0.1-0.1-0.2V8.2c0-0.1,0.1-0.2,0.2-0.3c0.5-0.2,1-0.3,1.6-0.3c1.1,0,2.1,0.4,2.9,1.1 c0.8,0.8,1.3,1.7,1.4,2.8c0.3-0.1,0.6-0.2,1-0.2c0.7,0,1.3,0.2,1.7,0.7C21.8,12.6,22.1,13.2,22.1,13.9L22.1,13.9z"}))},{name:"spotify",attributes:{service:"spotify"},title:"Spotify",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12,2C6.477,2,2,6.477,2,12c0,5.523,4.477,10,10,10c5.523,0,10-4.477,10-10C22,6.477,17.523,2,12,2 M16.586,16.424 c-0.18,0.295-0.563,0.387-0.857,0.207c-2.348-1.435-5.304-1.76-8.785-0.964c-0.335,0.077-0.67-0.133-0.746-0.469 c-0.077-0.335,0.132-0.67,0.469-0.746c3.809-0.871,7.077-0.496,9.713,1.115C16.673,15.746,16.766,16.13,16.586,16.424 M17.81,13.7 c-0.226,0.367-0.706,0.482-1.072,0.257c-2.687-1.652-6.785-2.131-9.965-1.166C6.36,12.917,5.925,12.684,5.8,12.273 C5.675,11.86,5.908,11.425,6.32,11.3c3.632-1.102,8.147-0.568,11.234,1.328C17.92,12.854,18.035,13.335,17.81,13.7 M17.915,10.865 c-3.223-1.914-8.54-2.09-11.618-1.156C5.804,9.859,5.281,9.58,5.131,9.086C4.982,8.591,5.26,8.069,5.755,7.919 c3.532-1.072,9.404-0.865,13.115,1.338c0.445,0.264,0.59,0.838,0.327,1.282C18.933,10.983,18.359,11.129,17.915,10.865"}))},{name:"telegram",attributes:{service:"telegram"},title:"Telegram",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 128 128",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M28.9700376,63.3244248 C47.6273373,55.1957357 60.0684594,49.8368063 66.2934036,47.2476366 C84.0668845,39.855031 87.7600616,38.5708563 90.1672227,38.528 C90.6966555,38.5191258 91.8804274,38.6503351 92.6472251,39.2725385 C93.294694,39.7979149 93.4728387,40.5076237 93.5580865,41.0057381 C93.6433345,41.5038525 93.7494885,42.63857 93.6651041,43.5252052 C92.7019529,53.6451182 88.5344133,78.2034783 86.4142057,89.5379542 C85.5170662,94.3339958 83.750571,95.9420841 82.0403991,96.0994568 C78.3237996,96.4414641 75.5015827,93.6432685 71.9018743,91.2836143 C66.2690414,87.5912212 63.0868492,85.2926952 57.6192095,81.6896017 C51.3004058,77.5256038 55.3966232,75.2369981 58.9976911,71.4967761 C59.9401076,70.5179421 76.3155302,55.6232293 76.6324771,54.2720454 C76.6721165,54.1030573 76.7089039,53.4731496 76.3346867,53.1405352 C75.9604695,52.8079208 75.4081573,52.921662 75.0095933,53.0121213 C74.444641,53.1403447 65.4461175,59.0880351 48.0140228,70.8551922 C45.4598218,72.6091037 43.1463059,73.4636682 41.0734751,73.4188859 C38.7883453,73.3695169 34.3926725,72.1268388 31.1249416,71.0646282 C27.1169366,69.7617838 23.931454,69.0729605 24.208838,66.8603276 C24.3533167,65.7078514 25.9403832,64.5292172 28.9700376,63.3244248 Z"}))},{name:"tiktok",attributes:{service:"tiktok"},title:"TikTok",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 32 32",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M16.708 0.027c1.745-0.027 3.48-0.011 5.213-0.027 0.105 2.041 0.839 4.12 2.333 5.563 1.491 1.479 3.6 2.156 5.652 2.385v5.369c-1.923-0.063-3.855-0.463-5.6-1.291-0.76-0.344-1.468-0.787-2.161-1.24-0.009 3.896 0.016 7.787-0.025 11.667-0.104 1.864-0.719 3.719-1.803 5.255-1.744 2.557-4.771 4.224-7.88 4.276-1.907 0.109-3.812-0.411-5.437-1.369-2.693-1.588-4.588-4.495-4.864-7.615-0.032-0.667-0.043-1.333-0.016-1.984 0.24-2.537 1.495-4.964 3.443-6.615 2.208-1.923 5.301-2.839 8.197-2.297 0.027 1.975-0.052 3.948-0.052 5.923-1.323-0.428-2.869-0.308-4.025 0.495-0.844 0.547-1.485 1.385-1.819 2.333-0.276 0.676-0.197 1.427-0.181 2.145 0.317 2.188 2.421 4.027 4.667 3.828 1.489-0.016 2.916-0.88 3.692-2.145 0.251-0.443 0.532-0.896 0.547-1.417 0.131-2.385 0.079-4.76 0.095-7.145 0.011-5.375-0.016-10.735 0.025-16.093z"}))},{name:"tumblr",attributes:{service:"tumblr"},title:"Tumblr",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M17.04 21.28h-3.28c-2.84 0-4.94-1.37-4.94-5.02v-5.67H6.08V7.5c2.93-.73 4.11-3.3 4.3-5.48h3.01v4.93h3.47v3.65H13.4v4.93c0 1.47.73 2.01 1.92 2.01h1.73v3.75z"}))},{name:"twitch",attributes:{service:"twitch"},title:"Twitch",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M16.499,8.089h-1.636v4.91h1.636V8.089z M12,8.089h-1.637v4.91H12V8.089z M4.228,3.178L3,6.451v13.092h4.499V22h2.456 l2.454-2.456h3.681L21,14.636V3.178H4.228z M19.364,13.816l-2.864,2.865H12l-2.453,2.453V16.68H5.863V4.814h13.501V13.816z"}))},{name:"twitter",attributes:{service:"twitter"},title:"Twitter",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22.23,5.924c-0.736,0.326-1.527,0.547-2.357,0.646c0.847-0.508,1.498-1.312,1.804-2.27 c-0.793,0.47-1.671,0.812-2.606,0.996C18.324,4.498,17.257,4,16.077,4c-2.266,0-4.103,1.837-4.103,4.103 c0,0.322,0.036,0.635,0.106,0.935C8.67,8.867,5.647,7.234,3.623,4.751C3.27,5.357,3.067,6.062,3.067,6.814 c0,1.424,0.724,2.679,1.825,3.415c-0.673-0.021-1.305-0.206-1.859-0.513c0,0.017,0,0.034,0,0.052c0,1.988,1.414,3.647,3.292,4.023 c-0.344,0.094-0.707,0.144-1.081,0.144c-0.264,0-0.521-0.026-0.772-0.074c0.522,1.63,2.038,2.816,3.833,2.85 c-1.404,1.1-3.174,1.756-5.096,1.756c-0.331,0-0.658-0.019-0.979-0.057c1.816,1.164,3.973,1.843,6.29,1.843 c7.547,0,11.675-6.252,11.675-11.675c0-0.178-0.004-0.355-0.012-0.531C20.985,7.47,21.68,6.747,22.23,5.924z"}))},{name:"vimeo",attributes:{service:"vimeo"},title:"Vimeo",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22.396,7.164c-0.093,2.026-1.507,4.799-4.245,8.32C15.322,19.161,12.928,21,10.97,21c-1.214,0-2.24-1.119-3.079-3.359 c-0.56-2.053-1.119-4.106-1.68-6.159C5.588,9.243,4.921,8.122,4.206,8.122c-0.156,0-0.701,0.328-1.634,0.98L1.594,7.841 c1.027-0.902,2.04-1.805,3.037-2.708C6.001,3.95,7.03,3.327,7.715,3.264c1.619-0.156,2.616,0.951,2.99,3.321 c0.404,2.557,0.685,4.147,0.841,4.769c0.467,2.121,0.981,3.181,1.542,3.181c0.435,0,1.09-0.688,1.963-2.065 c0.871-1.376,1.338-2.422,1.401-3.142c0.125-1.187-0.343-1.782-1.401-1.782c-0.498,0-1.012,0.115-1.541,0.341 c1.023-3.35,2.977-4.977,5.862-4.884C21.511,3.066,22.52,4.453,22.396,7.164z"}))},{name:"vk",attributes:{service:"vk"},title:"VK",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M22,7.1c0.2,0.4-0.4,1.5-1.6,3.1c-0.2,0.2-0.4,0.5-0.7,0.9c-0.5,0.7-0.9,1.1-0.9,1.4c-0.1,0.3-0.1,0.6,0.1,0.8 c0.1,0.1,0.4,0.4,0.8,0.9h0l0,0c1,0.9,1.6,1.7,2,2.3c0,0,0,0.1,0.1,0.1c0,0.1,0,0.1,0.1,0.3c0,0.1,0,0.2,0,0.4 c0,0.1-0.1,0.2-0.3,0.3c-0.1,0.1-0.4,0.1-0.6,0.1l-2.7,0c-0.2,0-0.4,0-0.6-0.1c-0.2-0.1-0.4-0.1-0.5-0.2l-0.2-0.1 c-0.2-0.1-0.5-0.4-0.7-0.7s-0.5-0.6-0.7-0.8c-0.2-0.2-0.4-0.4-0.6-0.6C14.8,15,14.6,15,14.4,15c0,0,0,0-0.1,0c0,0-0.1,0.1-0.2,0.2 c-0.1,0.1-0.2,0.2-0.2,0.3c-0.1,0.1-0.1,0.3-0.2,0.5c-0.1,0.2-0.1,0.5-0.1,0.8c0,0.1,0,0.2,0,0.3c0,0.1-0.1,0.2-0.1,0.2l0,0.1 c-0.1,0.1-0.3,0.2-0.6,0.2h-1.2c-0.5,0-1,0-1.5-0.2c-0.5-0.1-1-0.3-1.4-0.6s-0.7-0.5-1.1-0.7s-0.6-0.4-0.7-0.6l-0.3-0.3 c-0.1-0.1-0.2-0.2-0.3-0.3s-0.4-0.5-0.7-0.9s-0.7-1-1.1-1.6c-0.4-0.6-0.8-1.3-1.3-2.2C2.9,9.4,2.5,8.5,2.1,7.5C2,7.4,2,7.3,2,7.2 c0-0.1,0-0.1,0-0.2l0-0.1c0.1-0.1,0.3-0.2,0.6-0.2l2.9,0c0.1,0,0.2,0,0.2,0.1S5.9,6.9,5.9,7L6,7c0.1,0.1,0.2,0.2,0.3,0.3 C6.4,7.7,6.5,8,6.7,8.4C6.9,8.8,7,9,7.1,9.2l0.2,0.3c0.2,0.4,0.4,0.8,0.6,1.1c0.2,0.3,0.4,0.5,0.5,0.7s0.3,0.3,0.4,0.4 c0.1,0.1,0.3,0.1,0.4,0.1c0.1,0,0.2,0,0.3-0.1c0,0,0,0,0.1-0.1c0,0,0.1-0.1,0.1-0.2c0.1-0.1,0.1-0.3,0.1-0.5c0-0.2,0.1-0.5,0.1-0.8 c0-0.4,0-0.8,0-1.3c0-0.3,0-0.5-0.1-0.8c0-0.2-0.1-0.4-0.1-0.5L9.6,7.6C9.4,7.3,9.1,7.2,8.7,7.1C8.6,7.1,8.6,7,8.7,6.9 C8.9,6.7,9,6.6,9.1,6.5c0.4-0.2,1.2-0.3,2.5-0.3c0.6,0,1,0.1,1.4,0.1c0.1,0,0.3,0.1,0.3,0.1c0.1,0.1,0.2,0.1,0.2,0.3 c0,0.1,0.1,0.2,0.1,0.3s0,0.3,0,0.5c0,0.2,0,0.4,0,0.6c0,0.2,0,0.4,0,0.7c0,0.3,0,0.6,0,0.9c0,0.1,0,0.2,0,0.4c0,0.2,0,0.4,0,0.5 c0,0.1,0,0.3,0,0.4s0.1,0.3,0.1,0.4c0.1,0.1,0.1,0.2,0.2,0.3c0.1,0,0.1,0,0.2,0c0.1,0,0.2,0,0.3-0.1c0.1-0.1,0.2-0.2,0.4-0.4 s0.3-0.4,0.5-0.7c0.2-0.3,0.5-0.7,0.7-1.1c0.4-0.7,0.8-1.5,1.1-2.3c0-0.1,0.1-0.1,0.1-0.2c0-0.1,0.1-0.1,0.1-0.1l0,0l0.1,0 c0,0,0,0,0.1,0s0.2,0,0.2,0l3,0c0.3,0,0.5,0,0.7,0S21.9,7,21.9,7L22,7.1z"}))},{name:"whatsapp",attributes:{service:"whatsapp"},title:"WhatsApp",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M 12.011719 2 C 6.5057187 2 2.0234844 6.478375 2.0214844 11.984375 C 2.0204844 13.744375 2.4814687 15.462563 3.3554688 16.976562 L 2 22 L 7.2324219 20.763672 C 8.6914219 21.559672 10.333859 21.977516 12.005859 21.978516 L 12.009766 21.978516 C 17.514766 21.978516 21.995047 17.499141 21.998047 11.994141 C 22.000047 9.3251406 20.962172 6.8157344 19.076172 4.9277344 C 17.190172 3.0407344 14.683719 2.001 12.011719 2 z M 12.009766 4 C 14.145766 4.001 16.153109 4.8337969 17.662109 6.3417969 C 19.171109 7.8517969 20.000047 9.8581875 19.998047 11.992188 C 19.996047 16.396187 16.413812 19.978516 12.007812 19.978516 C 10.674812 19.977516 9.3544062 19.642812 8.1914062 19.007812 L 7.5175781 18.640625 L 6.7734375 18.816406 L 4.8046875 19.28125 L 5.2851562 17.496094 L 5.5019531 16.695312 L 5.0878906 15.976562 C 4.3898906 14.768562 4.0204844 13.387375 4.0214844 11.984375 C 4.0234844 7.582375 7.6067656 4 12.009766 4 z M 8.4765625 7.375 C 8.3095625 7.375 8.0395469 7.4375 7.8105469 7.6875 C 7.5815469 7.9365 6.9355469 8.5395781 6.9355469 9.7675781 C 6.9355469 10.995578 7.8300781 12.182609 7.9550781 12.349609 C 8.0790781 12.515609 9.68175 15.115234 12.21875 16.115234 C 14.32675 16.946234 14.754891 16.782234 15.212891 16.740234 C 15.670891 16.699234 16.690438 16.137687 16.898438 15.554688 C 17.106437 14.971687 17.106922 14.470187 17.044922 14.367188 C 16.982922 14.263188 16.816406 14.201172 16.566406 14.076172 C 16.317406 13.951172 15.090328 13.348625 14.861328 13.265625 C 14.632328 13.182625 14.464828 13.140625 14.298828 13.390625 C 14.132828 13.640625 13.655766 14.201187 13.509766 14.367188 C 13.363766 14.534188 13.21875 14.556641 12.96875 14.431641 C 12.71875 14.305641 11.914938 14.041406 10.960938 13.191406 C 10.218937 12.530406 9.7182656 11.714844 9.5722656 11.464844 C 9.4272656 11.215844 9.5585938 11.079078 9.6835938 10.955078 C 9.7955938 10.843078 9.9316406 10.663578 10.056641 10.517578 C 10.180641 10.371578 10.223641 10.267562 10.306641 10.101562 C 10.389641 9.9355625 10.347156 9.7890625 10.285156 9.6640625 C 10.223156 9.5390625 9.737625 8.3065 9.515625 7.8125 C 9.328625 7.3975 9.131125 7.3878594 8.953125 7.3808594 C 8.808125 7.3748594 8.6425625 7.375 8.4765625 7.375 z"}))},{name:"yelp",attributes:{service:"yelp"},title:"Yelp",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M12.271,16.718v1.417q-.011,3.257-.067,3.4a.707.707,0,0,1-.569.446,4.637,4.637,0,0,1-2.024-.424A4.609,4.609,0,0,1,7.8,20.565a.844.844,0,0,1-.19-.4.692.692,0,0,1,.044-.29,3.181,3.181,0,0,1,.379-.524q.335-.412,2.019-2.409.011,0,.669-.781a.757.757,0,0,1,.44-.274.965.965,0,0,1,.552.039.945.945,0,0,1,.418.324.732.732,0,0,1,.139.468Zm-1.662-2.8a.783.783,0,0,1-.58.781l-1.339.435q-3.067.981-3.257.981a.711.711,0,0,1-.6-.4,2.636,2.636,0,0,1-.19-.836,9.134,9.134,0,0,1,.011-1.857,3.559,3.559,0,0,1,.335-1.389.659.659,0,0,1,.625-.357,22.629,22.629,0,0,1,2.253.859q.781.324,1.283.524l.937.379a.771.771,0,0,1,.4.34A.982.982,0,0,1,10.609,13.917Zm9.213,3.313a4.467,4.467,0,0,1-1.021,1.8,4.559,4.559,0,0,1-1.512,1.417.671.671,0,0,1-.7-.078q-.156-.112-2.052-3.2l-.524-.859a.761.761,0,0,1-.128-.513.957.957,0,0,1,.217-.513.774.774,0,0,1,.926-.29q.011.011,1.327.446,2.264.736,2.7.887a2.082,2.082,0,0,1,.524.229.673.673,0,0,1,.245.68Zm-7.5-7.049q.056,1.137-.6,1.361-.647.19-1.272-.792L6.237,4.08a.7.7,0,0,1,.212-.691,5.788,5.788,0,0,1,2.314-1,5.928,5.928,0,0,1,2.5-.352.681.681,0,0,1,.547.5q.034.2.245,3.407T12.327,10.181Zm7.384,1.2a.679.679,0,0,1-.29.658q-.167.112-3.67.959-.747.167-1.015.257l.011-.022a.769.769,0,0,1-.513-.044.914.914,0,0,1-.413-.357.786.786,0,0,1,0-.971q.011-.011.836-1.137,1.394-1.908,1.673-2.275a2.423,2.423,0,0,1,.379-.435A.7.7,0,0,1,17.435,8a4.482,4.482,0,0,1,1.372,1.489,4.81,4.81,0,0,1,.9,1.868v.034Z"}))},{name:"youtube",attributes:{service:"youtube"},title:"YouTube",icon:()=>(0,qe.createElement)(We.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",version:"1.1"},(0,qe.createElement)(We.Path,{d:"M21.8,8.001c0,0-0.195-1.378-0.795-1.985c-0.76-0.797-1.613-0.801-2.004-0.847c-2.799-0.202-6.997-0.202-6.997-0.202 h-0.009c0,0-4.198,0-6.997,0.202C4.608,5.216,3.756,5.22,2.995,6.016C2.395,6.623,2.2,8.001,2.2,8.001S2,9.62,2,11.238v1.517 c0,1.618,0.2,3.237,0.2,3.237s0.195,1.378,0.795,1.985c0.761,0.797,1.76,0.771,2.205,0.855c1.6,0.153,6.8,0.201,6.8,0.201 s4.203-0.006,7.001-0.209c0.391-0.047,1.243-0.051,2.004-0.847c0.6-0.607,0.795-1.985,0.795-1.985s0.2-1.618,0.2-3.237v-1.517 C22,9.62,21.8,8.001,21.8,8.001z M9.935,14.594l-0.001-5.62l5.404,2.82L9.935,14.594z"}))}];Cx.forEach((e=>{e.isActive||(e.isActive=(e,t)=>e.service===t.service)}));var Ex=Cx;const Sx=({url:e,setAttributes:t,setPopover:n,popoverAnchor:o,clientId:a})=>{const{removeBlock:r}=(0,ut.useDispatch)(Ye.store);return(0,qe.createElement)(Ye.URLPopover,{anchor:o,onClose:()=>n(!1)},(0,qe.createElement)("form",{className:"block-editor-url-popover__link-editor",onSubmit:e=>{e.preventDefault(),n(!1)}},(0,qe.createElement)("div",{className:"block-editor-url-input"},(0,qe.createElement)(Ye.URLInput,{__nextHasNoMarginBottom:!0,value:e,onChange:e=>t({url:e}),placeholder:(0,Je.__)("Enter address"),disableSuggestions:!0,onKeyDown:t=>{e||t.defaultPrevented||![un.BACKSPACE,un.DELETE].includes(t.keyCode)||r(a)}})),(0,qe.createElement)(Ke.Button,{icon:xx,label:(0,Je.__)("Apply"),type:"submit"})))};var Bx=({attributes:e,context:t,isSelected:n,setAttributes:o,clientId:a})=>{const{url:r,service:l,label:i,rel:s}=e,{showLabels:c,iconColor:u,iconColorValue:m,iconBackgroundColor:p,iconBackgroundColorValue:d}=t,[g,h]=(0,qe.useState)(!1),_=it()("wp-social-link","wp-social-link-"+l,{"wp-social-link__is-incomplete":!r,[`has-${u}-color`]:u,[`has-${p}-background-color`]:p}),[b,f]=(0,qe.useState)(null),y=(e=>{const t=Ex.find((t=>t.name===e));return t?t.icon:wx})(l),v=(e=>{const t=Ex.find((t=>t.name===e));return t?t.title:(0,Je.__)("Social Icon")})(l),k=null!=i?i:v,x=(0,Ye.useBlockProps)({className:_,style:{color:m,backgroundColor:d}});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.sprintf)((0,Je.__)("%s label"),v),initialOpen:!1},(0,qe.createElement)(Ke.PanelRow,null,(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link label"),help:(0,Je.__)("Briefly describe the link to help screen reader users."),value:i||"",onChange:e=>o({label:e})})))),(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Link rel"),value:s||"",onChange:e=>o({rel:e})})),(0,qe.createElement)("li",{...x},(0,qe.createElement)(Ke.Button,{className:"wp-block-social-link-anchor",ref:f,onClick:()=>h(!0)},(0,qe.createElement)(y,null),(0,qe.createElement)("span",{className:it()("wp-block-social-link-label",{"screen-reader-text":!c})},k),n&&g&&(0,qe.createElement)(Sx,{url:r,setAttributes:o,setPopover:h,popoverAnchor:b,clientId:a}))))};const Tx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-link",title:"Social Icon",category:"widgets",parent:["core/social-links"],description:"Display an icon linking to a social media profile or site.",textdomain:"default",attributes:{url:{type:"string"},service:{type:"string"},label:{type:"string"},rel:{type:"string"}},usesContext:["openInNewTab","showLabels","iconColor","iconColorValue","iconBackgroundColor","iconBackgroundColorValue"],supports:{reusable:!1,html:!1},editorStyle:"wp-block-social-link-editor"},{name:Nx}=Tx,Px={icon:kx,edit:Bx,variations:Ex},Ix=()=>Qe({name:Nx,metadata:Tx,settings:Px}),Mx=[{attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab"},supports:{align:["left","center","right"],anchor:!0},migrate:e=>{if(e.layout)return e;const{className:t}=e,n="items-justified-",o=new RegExp(`\\b${n}[^ ]*[ ]?\\b`,"g"),a={...e,className:t?.replace(o,"").trim()},r=t?.match(o)?.[0]?.trim();return r&&Object.assign(a,{layout:{type:"flex",justifyContent:r.slice(16)}}),a},save:e=>{const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,itemsJustification:o,size:a}}=e,r=it()(a,{"has-icon-color":n,"has-icon-background-color":t,[`items-justified-${o}`]:o}),l={"--wp--social-links--icon-color":n,"--wp--social-links--icon-background-color":t};return(0,qe.createElement)("ul",{...Ye.useBlockProps.save({className:r,style:l})},(0,qe.createElement)(Ye.InnerBlocks.Content,null))}}];var zx=Mx;var Rx=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));const Hx=["core/social-link"],Lx=[{name:(0,Je.__)("Small"),value:"has-small-icon-size"},{name:(0,Je.__)("Normal"),value:"has-normal-icon-size"},{name:(0,Je.__)("Large"),value:"has-large-icon-size"},{name:(0,Je.__)("Huge"),value:"has-huge-icon-size"}];var Ax=(0,Ye.withColors)({iconColor:"icon-color",iconBackgroundColor:"icon-background-color"})((function(e){var t;const{clientId:n,attributes:o,iconBackgroundColor:a,iconColor:r,isSelected:l,setAttributes:i,setIconBackgroundColor:s,setIconColor:c}=e,{iconBackgroundColorValue:u,customIconBackgroundColor:m,iconColorValue:p,openInNewTab:d,showLabels:g,size:h}=o,_=o.className?.includes("is-style-logos-only"),b=(0,qe.useRef)({});(0,qe.useEffect)((()=>{_?(b.current={iconBackgroundColor:a,iconBackgroundColorValue:u,customIconBackgroundColor:m},i({iconBackgroundColor:void 0,customIconBackgroundColor:void 0,iconBackgroundColorValue:void 0})):i({...b.current})}),[_]);const f=(0,qe.createElement)("li",{className:"wp-block-social-links__social-placeholder"},(0,qe.createElement)("div",{className:"wp-block-social-links__social-placeholder-icons"},(0,qe.createElement)("div",{className:"wp-social-link wp-social-link-twitter"}),(0,qe.createElement)("div",{className:"wp-social-link wp-social-link-facebook"}),(0,qe.createElement)("div",{className:"wp-social-link wp-social-link-instagram"}))),y=(0,qe.createElement)("li",{className:"wp-block-social-links__social-prompt"},(0,Je.__)("Click plus to add")),v=it()(h,{"has-visible-labels":g,"has-icon-color":r.color||p,"has-icon-background-color":a.color||u}),k=(0,Ye.useBlockProps)({className:v}),x=(0,Ye.useInnerBlocksProps)(k,{allowedBlocks:Hx,placeholder:l?y:f,templateLock:!1,orientation:null!==(t=o.layout?.orientation)&&void 0!==t?t:"horizontal",__experimentalAppenderTagName:"li"}),w=[{value:r.color||p,onChange:e=>{c(e),i({iconColorValue:e})},label:(0,Je.__)("Icon color"),resetAllFilter:()=>{c(void 0),i({iconColorValue:void 0})}}];_||w.push({value:a.color||u,onChange:e=>{s(e),i({iconBackgroundColorValue:e})},label:(0,Je.__)("Icon background"),resetAllFilter:()=>{s(void 0),i({iconBackgroundColorValue:void 0})}});const C=(0,Ye.__experimentalUseMultipleOriginColorsAndGradients)();return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ke.ToolbarDropdownMenu,{label:(0,Je.__)("Size"),text:(0,Je.__)("Size"),icon:null,popoverProps:{position:"bottom right"}},(({onClose:e})=>(0,qe.createElement)(Ke.MenuGroup,null,Lx.map((t=>(0,qe.createElement)(Ke.MenuItem,{icon:(h===t.value||!h&&"has-normal-icon-size"===t.value)&&Rx,isSelected:h===t.value,key:t.value,onClick:()=>{i({size:t.value})},onClose:e,role:"menuitemradio"},t.name))))))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Open links in new tab"),checked:d,onChange:()=>i({openInNewTab:!d})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show labels"),checked:g,onChange:()=>i({showLabels:!g})}))),C.hasColorsOrGradients&&(0,qe.createElement)(Ye.InspectorControls,{group:"color"},w.map((({onChange:e,label:t,value:o,resetAllFilter:a})=>(0,qe.createElement)(Ye.__experimentalColorGradientSettingsDropdown,{key:`social-links-color-${t}`,__experimentalIsRenderedInSidebar:!0,settings:[{colorValue:o,label:t,onColorChange:e,isShownByDefault:!0,resetAllFilter:a,enableAlpha:!0}],panelId:n,...C}))),!_&&(0,qe.createElement)(Ye.ContrastChecker,{textColor:p,backgroundColor:u,isLargeText:!1})),(0,qe.createElement)("ul",{...x}))}));const Vx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/social-links",title:"Social Icons",category:"widgets",description:"Display icons linking to your social media profiles or sites.",keywords:["links"],textdomain:"default",attributes:{iconColor:{type:"string"},customIconColor:{type:"string"},iconColorValue:{type:"string"},iconBackgroundColor:{type:"string"},customIconBackgroundColor:{type:"string"},iconBackgroundColorValue:{type:"string"},openInNewTab:{type:"boolean",default:!1},showLabels:{type:"boolean",default:!1},size:{type:"string"}},providesContext:{openInNewTab:"openInNewTab",showLabels:"showLabels",iconColor:"iconColor",iconColorValue:"iconColorValue",iconBackgroundColor:"iconBackgroundColor",iconBackgroundColorValue:"iconBackgroundColorValue"},supports:{align:["left","center","right"],anchor:!0,__experimentalExposeControlsToChildren:!0,layout:{allowSwitching:!1,allowInheriting:!1,allowVerticalAlignment:!1,default:{type:"flex"}},color:{enableContrastChecker:!1,background:!0,gradients:!0,text:!1,__experimentalDefaultControls:{background:!1}},spacing:{blockGap:["horizontal","vertical"],margin:!0,padding:!0,units:["px","em","rem","vh","vw"],__experimentalDefaultControls:{blockGap:!0,margin:!0,padding:!1}}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"logos-only",label:"Logos Only"},{name:"pill-shape",label:"Pill Shape"}],editorStyle:"wp-block-social-links-editor",style:"wp-block-social-links"},{name:Dx}=Vx,Fx={example:{innerBlocks:[{name:"core/social-link",attributes:{service:"wordpress",url:"https://wordpress.org"}},{name:"core/social-link",attributes:{service:"facebook",url:"https://www.facebook.com/WordPress/"}},{name:"core/social-link",attributes:{service:"twitter",url:"https://twitter.com/WordPress"}}]},icon:kx,edit:Ax,save:function(e){const{attributes:{iconBackgroundColorValue:t,iconColorValue:n,showLabels:o,size:a}}=e,r=it()(a,{"has-visible-labels":o,"has-icon-color":n,"has-icon-background-color":t}),l=Ye.useBlockProps.save({className:r}),i=Ye.useInnerBlocksProps.save(l);return(0,qe.createElement)("ul",{...i})},deprecated:zx},$x=()=>Qe({name:Dx,metadata:Vx,settings:Fx});var Gx=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M7 18h4.5v1.5h-7v-7H6V17L17 6h-4.5V4.5h7v7H18V7L7 18Z"}));const Ox=[{attributes:{height:{type:"number",default:100},width:{type:"number"}},migrate(e){const{height:t,width:n}=e;return{...e,width:void 0!==n?`${n}px`:void 0,height:void 0!==t?`${t}px`:void 0}},save({attributes:e}){return(0,qe.createElement)("div",{...Ye.useBlockProps.save({style:{height:e.height,width:e.width},"aria-hidden":!0})})}}];var Ux=Ox;const jx=0;function qx({label:e,onChange:t,isResizing:n,value:o=""}){const a=(0,Tt.useInstanceId)(Ke.__experimentalUnitControl,"block-spacer-height-input"),r=(0,Ye.useSetting)("spacing.spacingSizes"),l=((0,Ye.useSetting)("spacing.units")||void 0)?.filter((e=>"%"!==e)),i=(0,Ke.__experimentalUseCustomUnits)({availableUnits:l||["px","em","rem","vw","vh"],defaultValues:{px:100,em:10,rem:10,vw:10,vh:25}}),s=e=>{t(e.all)},[c,u]=(0,Ke.__experimentalParseQuantityAndUnitFromRawValue)(o),m=(0,Ye.isValueSpacingPreset)(o)?o:[c,n?"px":u].join("");return(0,qe.createElement)(qe.Fragment,null,(!r||0===r?.length)&&(0,qe.createElement)(Ke.BaseControl,{label:e,id:a},(0,qe.createElement)(Ke.__experimentalUnitControl,{id:a,isResetValueOnUnitChange:!0,min:jx,onChange:s,style:{maxWidth:80},value:m,units:i})),r?.length>0&&(0,qe.createElement)(We.View,{className:"tools-panel-item-spacing"},(0,qe.createElement)(Ye.__experimentalSpacingSizesControl,{values:{all:m},onChange:s,label:e,sides:["all"],units:i,allowReset:!1,splitOnAxis:!1,showSideInLabel:!1})))}function Wx({setAttributes:e,orientation:t,height:n,width:o,isResizing:a}){return(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},"horizontal"===t&&(0,qe.createElement)(qx,{label:(0,Je.__)("Width"),value:o,onChange:t=>e({width:t}),isResizing:a}),"horizontal"!==t&&(0,qe.createElement)(qx,{label:(0,Je.__)("Height"),value:n,onChange:t=>e({height:t}),isResizing:a})))}const Zx=({orientation:e,onResizeStart:t,onResize:n,onResizeStop:o,isSelected:a,isResizing:r,setIsResizing:l,...i})=>{const s=t=>"horizontal"===e?t.clientWidth:t.clientHeight,c=e=>`${s(e)}px`;return(0,qe.createElement)(Ke.ResizableBox,{className:it()("block-library-spacer__resize-container",{"resize-horizontal":"horizontal"===e,"is-resizing":r,"is-selected":a}),onResizeStart:(e,o,a)=>{const r=c(a);t(r),n(r)},onResize:(e,t,o)=>{n(c(o)),r||l(!0)},onResizeStop:(e,t,n)=>{const a=s(n);o(`${a}px`),l(!1)},__experimentalShowTooltip:!0,__experimentalTooltipProps:{axis:"horizontal"===e?"x":"y",position:"corner",isVisible:r},showHandle:a,...i})};var Qx=({attributes:e,isSelected:t,setAttributes:n,toggleSelection:o,context:a,__unstableParentLayout:r,className:l})=>{const i=(0,ut.useSelect)((e=>{const t=e(Ye.store).getSettings();return t?.disableCustomSpacingSizes})),{orientation:s}=a,{orientation:c,type:u}=r||{},m="flex"===u,p=!c&&m?"horizontal":c||s,{height:d,width:g,style:h={}}=e,{layout:_={}}=h,{selfStretch:b,flexSize:f}=_,y=(0,Ye.useSetting)("spacing.spacingSizes"),[v,k]=(0,qe.useState)(!1),[x,w]=(0,qe.useState)(null),[C,E]=(0,qe.useState)(null),S=()=>o(!1),B=()=>o(!0),T=e=>{B(),m&&n({style:{...h,layout:{..._,flexSize:e,selfStretch:"fixed"}}}),n({height:e}),w(null)},N=e=>{B(),m&&n({style:{...h,layout:{..._,flexSize:e,selfStretch:"fixed"}}}),n({width:e}),E(null)},P="horizontal"===p?C||f:x||f,I={height:"horizontal"===p?24:(()=>{if(!m)return x||(0,Ye.getSpacingPresetCssVar)(d)||void 0})(),width:"horizontal"===p?(()=>{if(!m)return C||(0,Ye.getSpacingPresetCssVar)(g)||void 0})():void 0,minWidth:"vertical"===p&&m?48:void 0,flexBasis:m?P:void 0,flexGrow:m&&v?0:void 0};return(0,qe.useEffect)((()=>{if(m&&"fill"!==b&&"fit"!==b&&!f)if("horizontal"===p){const e=(0,Ye.getCustomValueFromPreset)(g,y)||(0,Ye.getCustomValueFromPreset)(d,y)||"100px";n({width:"0px",style:{...h,layout:{..._,flexSize:e,selfStretch:"fixed"}}})}else{const e=(0,Ye.getCustomValueFromPreset)(d,y)||(0,Ye.getCustomValueFromPreset)(g,y)||"100px";n({height:"0px",style:{...h,layout:{..._,flexSize:e,selfStretch:"fixed"}}})}else!m||"fill"!==b&&"fit"!==b?m||!b&&!f||(n("horizontal"===p?{width:f}:{height:f}),n({style:{...h,layout:{..._,flexSize:void 0,selfStretch:void 0}}})):n("horizontal"===p?{width:void 0}:{height:void 0})}),[h,f,d,p,m,_,b,n,y,g]),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(We.View,{...(0,Ye.useBlockProps)({style:I,className:it()(l,{"custom-sizes-disabled":i})})},"horizontal"===(M=p)?(0,qe.createElement)(Zx,{minWidth:jx,enable:{top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:M,onResizeStart:S,onResize:E,onResizeStop:N,isSelected:t,isResizing:v,setIsResizing:k}):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Zx,{minHeight:jx,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},orientation:M,onResizeStart:S,onResize:w,onResizeStop:T,isSelected:t,isResizing:v,setIsResizing:k}))),!m&&(0,qe.createElement)(Wx,{setAttributes:n,height:x||d,width:C||g,orientation:p,isResizing:v}));var M};const Kx={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/spacer",title:"Spacer",category:"design",description:"Add white space between blocks and customize its height.",textdomain:"default",attributes:{height:{type:"string",default:"100px"},width:{type:"string"}},usesContext:["orientation"],supports:{anchor:!0,spacing:{margin:["top","bottom"],__experimentalDefaultControls:{margin:!0}}},editorStyle:"wp-block-spacer-editor",style:"wp-block-spacer"},{name:Jx}=Kx,Yx={icon:Gx,edit:Qx,save:function({attributes:e}){const{height:t,width:n,style:o}=e,{layout:{selfStretch:a}={}}=o||{},r="fill"===a||"fit"===a?void 0:t;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({style:{height:(0,Ye.getSpacingPresetCssVar)(r),width:(0,Ye.getSpacingPresetCssVar)(n)},"aria-hidden":!0})})},deprecated:Ux},Xx=()=>Qe({name:Jx,metadata:Kx,settings:Yx});var ew=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.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-2zM5 4.5h14c.3 0 .5.2.5.5v3.5h-15V5c0-.3.2-.5.5-.5zm8 5.5h6.5v3.5H13V10zm-1.5 3.5h-7V10h7v3.5zm-7 5.5v-4h7v4.5H5c-.3 0-.5-.2-.5-.5zm14.5.5h-6V15h6.5v4c0 .3-.2.5-.5.5z"}));const tw={"subtle-light-gray":"#f3f4f5","subtle-pale-green":"#e9fbe5","subtle-pale-blue":"#e7f5fe","subtle-pale-pink":"#fcf0ef"},nw={attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},save({attributes:e}){const{hasFixedLayout:t,head:n,body:o,foot:a,caption:r}=e;if(!n.length&&!o.length&&!a.length)return null;const l=(0,Ye.__experimentalGetColorClassesAndStyles)(e),i=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),s=it()(l.className,i.className,{"has-fixed-layout":t}),c=!Ye.RichText.isEmpty(r),u=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,qe.createElement)(n,null,t.map((({cells:e},t)=>(0,qe.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:o},a)=>{const r=it()({[`has-text-align-${o}`]:o});return(0,qe.createElement)(Ye.RichText.Content,{className:r||void 0,"data-align":o,tagName:t,value:e,key:a,scope:"th"===t?n:void 0})}))))))};return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("table",{className:""===s?void 0:s,style:{...l.style,...i.style}},(0,qe.createElement)(u,{type:"head",rows:n}),(0,qe.createElement)(u,{type:"body",rows:o}),(0,qe.createElement)(u,{type:"foot",rows:a})),c&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:r}))}},ow={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"}}}}}},supports:{anchor:!0,align:!0,__experimentalSelector:".wp-block-table > table"},save:({attributes:e})=>{const{hasFixedLayout:t,head:n,body:o,foot:a,backgroundColor:r,caption:l}=e;if(!n.length&&!o.length&&!a.length)return null;const i=(0,Ye.getColorClassName)("background-color",r),s=it()(i,{"has-fixed-layout":t,"has-background":!!i}),c=!Ye.RichText.isEmpty(l),u=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,qe.createElement)(n,null,t.map((({cells:e},t)=>(0,qe.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:o},a)=>{const r=it()({[`has-text-align-${o}`]:o});return(0,qe.createElement)(Ye.RichText.Content,{className:r||void 0,"data-align":o,tagName:t,value:e,key:a,scope:"th"===t?n:void 0})}))))))};return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("table",{className:""===s?void 0:s},(0,qe.createElement)(u,{type:"head",rows:n}),(0,qe.createElement)(u,{type:"body",rows:o}),(0,qe.createElement)(u,{type:"foot",rows:a})),c&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:l}))},isEligible:e=>e.backgroundColor&&e.backgroundColor in tw&&!e.style,migrate:e=>({...e,backgroundColor:void 0,style:{color:{background:tw[e.backgroundColor]}}})},aw={attributes:{hasFixedLayout:{type:"boolean",default:!1},backgroundColor:{type:"string"},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"}}}}}},supports:{align:!0},save({attributes:e}){const{hasFixedLayout:t,head:n,body:o,foot:a,backgroundColor:r}=e;if(!n.length&&!o.length&&!a.length)return null;const l=(0,Ye.getColorClassName)("background-color",r),i=it()(l,{"has-fixed-layout":t,"has-background":!!l}),s=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,qe.createElement)(n,null,t.map((({cells:e},t)=>(0,qe.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n},o)=>(0,qe.createElement)(Ye.RichText.Content,{tagName:t,value:e,key:o,scope:"th"===t?n:void 0})))))))};return(0,qe.createElement)("table",{className:i},(0,qe.createElement)(s,{type:"head",rows:n}),(0,qe.createElement)(s,{type:"body",rows:o}),(0,qe.createElement)(s,{type:"foot",rows:a}))}};var rw=[nw,ow,aw];var lw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M13 5.5H4V4h9v1.5Zm7 7H4V11h16v1.5Zm-7 7H4V18h9v1.5Z"}));var iw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M7.5 5.5h9V4h-9v1.5Zm-3.5 7h16V11H4v1.5Zm3.5 7h9V18h-9v1.5Z"}));var sw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M11.111 5.5H20V4h-8.889v1.5ZM4 12.5h16V11H4v1.5Zm7.111 7H20V18h-8.889v1.5Z"}));var cw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84zM6.656 6.464h2.88v2.88h1.408v-2.88h2.88V5.12h-2.88V2.24H9.536v2.88h-2.88zM0 17.92V0h20.48v17.92H0zm7.68-2.56h5.12v-3.84H7.68v3.84zm-6.4 0H6.4v-3.84H1.28v3.84zM19.2 1.28H1.28v9.024H19.2V1.28zm0 10.24h-5.12v3.84h5.12v-3.84z"}));var uw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M13.824 10.176h-2.88v-2.88H9.536v2.88h-2.88v1.344h2.88v2.88h1.408v-2.88h2.88zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm6.4 0H7.68v3.84h5.12V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.056H1.28v9.024H19.2V6.336z"}));var mw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M17.728 11.456L14.592 8.32l3.2-3.2-1.536-1.536-3.2 3.2L9.92 3.648 8.384 5.12l3.2 3.2-3.264 3.264 1.536 1.536 3.264-3.264 3.136 3.136 1.472-1.536zM0 17.92V0h20.48v17.92H0zm19.2-6.4h-.448l-1.28-1.28H19.2V6.4h-1.792l1.28-1.28h.512V1.28H1.28v3.84h6.208l1.28 1.28H1.28v3.84h7.424l-1.28 1.28H1.28v3.84H19.2v-3.84z"}));var pw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M6.4 3.776v3.648H2.752v1.792H6.4v3.648h1.728V9.216h3.712V7.424H8.128V3.776zM0 17.92V0h20.48v17.92H0zM12.8 1.28H1.28v14.08H12.8V1.28zm6.4 0h-5.12v3.84h5.12V1.28zm0 5.12h-5.12v3.84h5.12V6.4zm0 5.12h-5.12v3.84h5.12v-3.84z"}));var dw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M14.08 12.864V9.216h3.648V7.424H14.08V3.776h-1.728v3.648H8.64v1.792h3.712v3.648zM0 17.92V0h20.48v17.92H0zM6.4 1.28H1.28v3.84H6.4V1.28zm0 5.12H1.28v3.84H6.4V6.4zm0 5.12H1.28v3.84H6.4v-3.84zM19.2 1.28H7.68v14.08H19.2V1.28z"}));var gw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,qe.createElement)(We.Path,{d:"M6.4 9.98L7.68 8.7v-.256L6.4 7.164V9.98zm6.4-1.532l1.28-1.28V9.92L12.8 8.64v-.192zm7.68 9.472V0H0v17.92h20.48zm-1.28-2.56h-5.12v-1.024l-.256.256-1.024-1.024v1.792H7.68v-1.792l-1.024 1.024-.256-.256v1.024H1.28V1.28H6.4v2.368l.704-.704.576.576V1.216h5.12V3.52l.96-.96.32.32V1.216h5.12V15.36zm-5.76-2.112l-3.136-3.136-3.264 3.264-1.536-1.536 3.264-3.264L5.632 5.44l1.536-1.536 3.136 3.136 3.2-3.2 1.536 1.536-3.2 3.2 3.136 3.136-1.536 1.536z"}));var hw=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M4 6v11.5h16V6H4zm1.5 1.5h6V11h-6V7.5zm0 8.5v-3.5h6V16h-6zm13 0H13v-3.5h5.5V16zM13 11V7.5h5.5V11H13z"}));const _w=["align"];function bw(e,t,n){if(!t)return e;const o=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e)))),{sectionName:a,rowIndex:r}=t;return Object.fromEntries(Object.entries(o).map((([e,o])=>a&&a!==e?[e,o]:[e,o.map(((o,a)=>r&&r!==a?o:{cells:o.cells.map(((o,r)=>function(e,t){if(!e||!t)return!1;switch(t.type){case"column":return"column"===t.type&&e.columnIndex===t.columnIndex;case"cell":return"cell"===t.type&&e.sectionName===t.sectionName&&e.columnIndex===t.columnIndex&&e.rowIndex===t.rowIndex}}({sectionName:e,columnIndex:r,rowIndex:a},t)?n(o):o))}))])))}function fw(e,{sectionName:t,rowIndex:n,columnCount:o}){const a=function(e){return vw(e.head)?vw(e.body)?vw(e.foot)?void 0:e.foot[0]:e.body[0]:e.head[0]}(e),r=void 0===o?a?.cells?.length:o;return r?{[t]:[...e[t].slice(0,n),{cells:Array.from({length:r}).map(((e,n)=>{var o;const r=null!==(o=a?.cells?.[n])&&void 0!==o?o:{};return{...Object.fromEntries(Object.entries(r).filter((([e])=>_w.includes(e)))),content:"",tag:"head"===t?"th":"td"}}))},...e[t].slice(n)]}:e}function yw(e,t){var n;if(!vw(e[t]))return{[t]:[]};return fw(e,{sectionName:t,rowIndex:0,columnCount:null!==(n=e.body?.[0]?.cells?.length)&&void 0!==n?n:1})}function vw(e){return!e||!e.length||e.every(kw)}function kw(e){return!(e.cells&&e.cells.length)}const xw=[{icon:lw,title:(0,Je.__)("Align column left"),align:"left"},{icon:iw,title:(0,Je.__)("Align column center"),align:"center"},{icon:sw,title:(0,Je.__)("Align column right"),align:"right"}],ww={head:(0,Je.__)("Header cell text"),body:(0,Je.__)("Body cell text"),foot:(0,Je.__)("Footer cell text")},Cw={head:(0,Je.__)("Header label"),foot:(0,Je.__)("Footer label")};function Ew({name:e,...t}){const n=`t${e}`;return(0,qe.createElement)(n,{...t})}var Sw=function({attributes:e,setAttributes:t,insertBlocksAfter:n,isSelected:o}){const{hasFixedLayout:a,caption:r,head:l,foot:i}=e,[s,c]=(0,qe.useState)(2),[u,m]=(0,qe.useState)(2),[p,d]=(0,qe.useState)(),g=(0,Ye.__experimentalUseColorProps)(e),h=(0,Ye.__experimentalUseBorderProps)(e),_=(0,qe.useRef)(),[b,f]=(0,qe.useState)(!1);function y(n){p&&t(bw(e,p,(e=>({...e,content:n}))))}function v(n){if(!p)return;const{sectionName:o,rowIndex:a}=p,r=a+n;t(fw(e,{sectionName:o,rowIndex:r})),d({sectionName:o,rowIndex:r,columnIndex:0,type:"cell"})}function k(n=0){if(!p)return;const{columnIndex:o}=p,a=o+n;t(function(e,{columnIndex:t}){const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(n).map((([e,n])=>vw(n)?[e,n]:[e,n.map((n=>kw(n)||n.cells.length<t?n:{cells:[...n.cells.slice(0,t),{content:"",tag:"head"===e?"th":"td"},...n.cells.slice(t)]}))])))}(e,{columnIndex:a})),d({rowIndex:0,columnIndex:a,type:"cell"})}(0,qe.useEffect)((()=>{o||d()}),[o]),(0,qe.useEffect)((()=>{b&&(_?.current?.querySelector('td[contentEditable="true"]')?.focus(),f(!1))}),[b]);const x=["head","body","foot"].filter((t=>!vw(e[t]))),w=[{icon:cw,title:(0,Je.__)("Insert row before"),isDisabled:!p,onClick:function(){v(0)}},{icon:uw,title:(0,Je.__)("Insert row after"),isDisabled:!p,onClick:function(){v(1)}},{icon:mw,title:(0,Je.__)("Delete row"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:n,rowIndex:o}=p;d(),t(function(e,{sectionName:t,rowIndex:n}){return{[t]:e[t].filter(((e,t)=>t!==n))}}(e,{sectionName:n,rowIndex:o}))}},{icon:pw,title:(0,Je.__)("Insert column before"),isDisabled:!p,onClick:function(){k(0)}},{icon:dw,title:(0,Je.__)("Insert column after"),isDisabled:!p,onClick:function(){k(1)}},{icon:gw,title:(0,Je.__)("Delete column"),isDisabled:!p,onClick:function(){if(!p)return;const{sectionName:n,columnIndex:o}=p;d(),t(function(e,{columnIndex:t}){const n=Object.fromEntries(Object.entries(e).filter((([e])=>["head","body","foot"].includes(e))));return Object.fromEntries(Object.entries(n).map((([e,n])=>vw(n)?[e,n]:[e,n.map((e=>({cells:e.cells.length>=t?e.cells.filter(((e,n)=>n!==t)):e.cells}))).filter((e=>e.cells.length))])))}(e,{sectionName:n,columnIndex:o}))}}],C=x.map((t=>(0,qe.createElement)(Ew,{name:t,key:t},e[t].map((({cells:e},n)=>(0,qe.createElement)("tr",{key:n},e.map((({content:e,tag:o,scope:a,align:r,colspan:l,rowspan:i},s)=>(0,qe.createElement)(Ye.RichText,{tagName:o,key:s,className:it()({[`has-text-align-${r}`]:r},"wp-block-table__cell-content"),scope:"th"===o?a:void 0,colSpan:l,rowSpan:i,value:e,onChange:y,onFocus:()=>{d({sectionName:t,rowIndex:n,columnIndex:s,type:"cell"})},"aria-label":ww[t],placeholder:Cw[t]}))))))))),E=!x.length;return(0,qe.createElement)("figure",{...(0,Ye.useBlockProps)({ref:_})},!E&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{label:(0,Je.__)("Change column alignment"),alignmentControls:xw,value:function(){if(p)return function(e,t,n){const{sectionName:o,rowIndex:a,columnIndex:r}=t;return e[o]?.[a]?.cells?.[r]?.[n]}(e,p,"align")}(),onChange:n=>function(n){if(!p)return;const o={type:"column",columnIndex:p.columnIndex},a=bw(e,o,(e=>({...e,align:n})));t(a)}(n)})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ke.ToolbarDropdownMenu,{hasArrowIndicator:!0,icon:hw,label:(0,Je.__)("Edit table"),controls:w}))),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings"),className:"blocks-table-settings"},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Fixed width table cells"),checked:!!a,onChange:function(){t({hasFixedLayout:!a})}}),!E&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Header section"),checked:!(!l||!l.length),onChange:function(){t(yw(e,"head"))}}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Footer section"),checked:!(!i||!i.length),onChange:function(){t(yw(e,"foot"))}})))),!E&&(0,qe.createElement)("table",{className:it()(g.className,h.className,{"has-fixed-layout":a,"has-individual-borders":(0,Ke.__experimentalHasSplitBorders)(e?.style?.border)}),style:{...g.style,...h.style}},C),!E&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),"aria-label":(0,Je.__)("Table caption text"),placeholder:(0,Je.__)("Add caption"),value:r,onChange:e=>t({caption:e}),onFocus:()=>d(),__unstableOnSplitAtEnd:()=>n((0,je.createBlock)((0,je.getDefaultBlockName)()))}),E&&(0,qe.createElement)(Ke.Placeholder,{label:(0,Je.__)("Table"),icon:(0,qe.createElement)(Ye.BlockIcon,{icon:ew,showColors:!0}),instructions:(0,Je.__)("Insert a table for sharing data.")},(0,qe.createElement)("form",{className:"blocks-table__placeholder-form",onSubmit:function(e){e.preventDefault(),t(function({rowCount:e,columnCount:t}){return{body:Array.from({length:e}).map((()=>({cells:Array.from({length:t}).map((()=>({content:"",tag:"td"})))})))}}({rowCount:parseInt(s,10)||2,columnCount:parseInt(u,10)||2})),f(!0)}},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,type:"number",label:(0,Je.__)("Column count"),value:u,onChange:function(e){m(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,type:"number",label:(0,Je.__)("Row count"),value:s,onChange:function(e){c(e)},min:"1",className:"blocks-table__placeholder-input"}),(0,qe.createElement)(Ke.Button,{className:"blocks-table__placeholder-button",variant:"primary",type:"submit"},(0,Je.__)("Create Table")))))};function Bw(e){const t=parseInt(e,10);if(Number.isInteger(t))return t<0||1===t?void 0:t.toString()}const Tw=({phrasingContentSchema:e})=>({tr:{allowEmpty:!0,children:{th:{allowEmpty:!0,children:e,attributes:["scope","colspan","rowspan"]},td:{allowEmpty:!0,children:e,attributes:["colspan","rowspan"]}}}}),Nw={from:[{type:"raw",selector:"table",schema:e=>({table:{children:{thead:{allowEmpty:!0,children:Tw(e)},tfoot:{allowEmpty:!0,children:Tw(e)},tbody:{allowEmpty:!0,children:Tw(e)}}}}),transform:e=>{const t=Array.from(e.children).reduce(((e,t)=>{if(!t.children.length)return e;const n=t.nodeName.toLowerCase().slice(1),o=Array.from(t.children).reduce(((e,t)=>{if(!t.children.length)return e;const n=Array.from(t.children).reduce(((e,t)=>{const n=Bw(t.getAttribute("rowspan")),o=Bw(t.getAttribute("colspan"));return e.push({tag:t.nodeName.toLowerCase(),content:t.innerHTML,rowspan:n,colspan:o}),e}),[]);return e.push({cells:n}),e}),[]);return e[n]=o,e}),{});return(0,je.createBlock)("core/table",t)}}]};var Pw=Nw;const Iw={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/table",title:"Table",category:"text",description:"Create structured content in rows and columns to display information.",textdomain:"default",attributes:{hasFixedLayout:{type:"boolean",default:!1},caption:{type:"string",source:"html",selector:"figcaption",default:""},head:{type:"array",default:[],source:"query",selector:"thead tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},body:{type:"array",default:[],source:"query",selector:"tbody tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}},foot:{type:"array",default:[],source:"query",selector:"tfoot tr",query:{cells:{type:"array",default:[],source:"query",selector:"td,th",query:{content:{type:"string",source:"html"},tag:{type:"string",default:"td",source:"tag"},scope:{type:"string",source:"attribute",attribute:"scope"},align:{type:"string",source:"attribute",attribute:"data-align"},colspan:{type:"string",source:"attribute",attribute:"colspan"},rowspan:{type:"string",source:"attribute",attribute:"rowspan"}}}}}},supports:{anchor:!0,align:!0,color:{__experimentalSkipSerialization:!0,gradients:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0}},__experimentalBorder:{__experimentalSkipSerialization:!0,color:!0,style:!0,width:!0,__experimentalDefaultControls:{color:!0,style:!0,width:!0}},__experimentalSelector:".wp-block-table > table"},styles:[{name:"regular",label:"Default",isDefault:!0},{name:"stripes",label:"Stripes"}],editorStyle:"wp-block-table-editor",style:"wp-block-table"},{name:Mw}=Iw,zw={icon:ew,example:{attributes:{head:[{cells:[{content:(0,Je.__)("Version"),tag:"th"},{content:(0,Je.__)("Jazz Musician"),tag:"th"},{content:(0,Je.__)("Release Date"),tag:"th"}]}],body:[{cells:[{content:"5.2",tag:"td"},{content:"Jaco Pastorius",tag:"td"},{content:(0,Je.__)("May 7, 2019"),tag:"td"}]},{cells:[{content:"5.1",tag:"td"},{content:"Betty Carter",tag:"td"},{content:(0,Je.__)("February 21, 2019"),tag:"td"}]},{cells:[{content:"5.0",tag:"td"},{content:"Bebo Valdés",tag:"td"},{content:(0,Je.__)("December 6, 2018"),tag:"td"}]}]},viewportWidth:450},transforms:Pw,edit:Sw,save:function({attributes:e}){const{hasFixedLayout:t,head:n,body:o,foot:a,caption:r}=e;if(!n.length&&!o.length&&!a.length)return null;const l=(0,Ye.__experimentalGetColorClassesAndStyles)(e),i=(0,Ye.__experimentalGetBorderClassesAndStyles)(e),s=it()(l.className,i.className,{"has-fixed-layout":t}),c=!Ye.RichText.isEmpty(r),u=({type:e,rows:t})=>{if(!t.length)return null;const n=`t${e}`;return(0,qe.createElement)(n,null,t.map((({cells:e},t)=>(0,qe.createElement)("tr",{key:t},e.map((({content:e,tag:t,scope:n,align:o,colspan:a,rowspan:r},l)=>{const i=it()({[`has-text-align-${o}`]:o});return(0,qe.createElement)(Ye.RichText.Content,{className:i||void 0,"data-align":o,tagName:t,value:e,key:l,scope:"th"===t?n:void 0,colSpan:a,rowSpan:r})}))))))};return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},(0,qe.createElement)("table",{className:""===s?void 0:s,style:{...l.style,...i.style}},(0,qe.createElement)(u,{type:"head",rows:n}),(0,qe.createElement)(u,{type:"body",rows:o}),(0,qe.createElement)(u,{type:"foot",rows:a})),c&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:r,className:(0,Ye.__experimentalGetElementClassName)("caption")}))},deprecated:rw},Rw=()=>Qe({name:Mw,metadata:Iw,settings:zw});var Hw=n(5619),Lw=n.n(Hw),Aw=(0,qe.createElement)(Ke.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},(0,qe.createElement)(Ke.Path,{d:"M15.1 15.8H20v-1.5h-4.9v1.5zm-4-8.6v1.5H20V7.2h-8.9zM6 13c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 3c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1zm5-3c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#1e1e1e"}));const Vw="wp-block-table-of-contents__entry";function Dw({nestedHeadingList:e}){return(0,qe.createElement)(qe.Fragment,null,e.map(((e,t)=>{const{content:n,link:o}=e.heading,a=o?(0,qe.createElement)("a",{className:Vw,href:o},n):(0,qe.createElement)("span",{className:Vw},n);return(0,qe.createElement)("li",{key:t},a,e.children?(0,qe.createElement)("ol",null,(0,qe.createElement)(Dw,{nestedHeadingList:e.children})):null)})))}function Fw(e){const t=[];return e.forEach(((n,o)=>{if(""!==n.content&&n.level===e[0].level)if(e[o+1]?.level>n.level){let a=e.length;for(let t=o+1;t<e.length;t++)if(e[t].level===n.level){a=t;break}t.push({heading:n,children:Fw(e.slice(o+1,a))})}else t.push({heading:n,children:null})})),t}const $w={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,__experimental:!0,name:"core/table-of-contents",title:"Table of Contents",category:"layout",description:"Summarize your post with a list of headings. Add HTML anchors to Heading blocks to link them here.",keywords:["document outline","summary"],textdomain:"default",attributes:{headings:{type:"array",items:{type:"object"}},onlyIncludeCurrentPage:{type:"boolean",default:!1}},supports:{html:!1,color:{text:!0,background:!0,gradients:!0,link:!0},spacing:{margin:!0,padding:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}},example:{}},{name:Gw}=$w,Ow={icon:Aw,edit:function({attributes:{headings:e=[],onlyIncludeCurrentPage:t},clientId:n,setAttributes:o}){const a=(0,Ye.useBlockProps)(),r=(0,ut.useSelect)((e=>{const{getBlockRootClientId:t,canInsertBlockType:o}=e(Ye.store);return o("core/list",t(n))}),[n]),{__unstableMarkNextChangeAsNotPersistent:l,replaceBlocks:i}=(0,ut.useDispatch)(Ye.store),s=(0,ut.useSelect)((o=>{var a;const{getBlockAttributes:r,getBlockName:l,getClientIdsWithDescendants:i,__experimentalGetGlobalBlocksByName:s}=o(Ye.store),c=o("core/editor"),u=0!==s("core/nextpage").length,m=i();let p=1;if(u&&t){const e=m.indexOf(n);for(const[t,n]of m.entries()){if(t>=e)break;"core/nextpage"===l(n)&&p++}}const d=[];let g=1;const h=null!==(a=c?.getPermalink())&&void 0!==a?a:null;let _=null;"string"==typeof h&&(_=u?(0,st.addQueryArgs)(h,{page:g}):h);for(const e of m){const n=l(e);if("core/nextpage"===n){if(g++,t&&g>p)break;"string"==typeof h&&(_=(0,st.addQueryArgs)((0,st.removeQueryArgs)(h,["page"]),{page:g}))}else if((!t||g===p)&&"core/heading"===n){const t=r(e),n="string"==typeof _&&"string"==typeof t.anchor&&""!==t.anchor;d.push({content:(0,gd.__unstableStripHTML)(t.content.replace(/(<br *\/?>)+/g," ")),level:t.level,link:n?`${_}#${t.anchor}`:null})}}return Lw()(e,d)?null:d}),[n,t,e]);(0,qe.useEffect)((()=>{null!==s&&(l(),o({headings:s}))}),[s]);const c=Fw(e),u=r&&(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>i(n,(0,je.createBlock)("core/list",{ordered:!0,values:(0,qe.renderToString)((0,qe.createElement)(Dw,{nestedHeadingList:c}))}))},(0,Je.__)("Convert to static list")))),m=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Only include current page"),checked:t,onChange:e=>o({onlyIncludeCurrentPage:e}),help:t?(0,Je.__)("Only including headings from the current page (if the post is paginated)."):(0,Je.__)("Toggle to only include headings from the current page (if the post is paginated).")})));return 0===e.length?(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("div",{...a},(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:Aw}),label:(0,Je.__)("Table of Contents"),instructions:(0,Je.__)("Start adding Heading blocks to create a table of contents. Headings with HTML anchors will be linked here.")})),m):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)("nav",{...a},(0,qe.createElement)("ol",{inert:"true"},(0,qe.createElement)(Dw,{nestedHeadingList:c}))),u,m)},save:function({attributes:{headings:e=[]}}){return 0===e.length?null:(0,qe.createElement)("nav",{...Ye.useBlockProps.save()},(0,qe.createElement)("ol",null,(0,qe.createElement)(Dw,{nestedHeadingList:Fw(e)})))}},Uw=()=>Qe({name:Gw,metadata:$w,settings:Ow});var jw={from:[{type:"block",blocks:["core/categories"],transform:()=>(0,je.createBlock)("core/tag-cloud")}],to:[{type:"block",blocks:["core/categories"],transform:()=>(0,je.createBlock)("core/categories")}]};var qw=(0,ut.withSelect)((e=>({taxonomies:e(ct.store).getTaxonomies({per_page:-1})})))((function({attributes:e,setAttributes:t,taxonomies:n}){const{taxonomy:o,showTagCounts:a,numberOfTags:r,smallestFontSize:l,largestFontSize:i}=e,s=(0,Ke.__experimentalUseCustomUnits)({availableUnits:(0,Ye.useSetting)("spacing.units")||["%","px","em","rem"]}),c=(e,n)=>{const[o,a]=(0,Ke.__experimentalParseQuantityAndUnitFromRawValue)(n);if(!Number.isFinite(o))return;const r={[e]:n};Object.entries({smallestFontSize:l,largestFontSize:i}).forEach((([t,n])=>{const[o,l]=(0,Ke.__experimentalParseQuantityAndUnitFromRawValue)(n);t!==e&&l!==a&&(r[t]=`${o}${a}`)})),t(r)},u=(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Taxonomy"),options:[{label:(0,Je.__)("- Select -"),value:"",disabled:!0},...(null!=n?n:[]).filter((e=>!!e.show_cloud)).map((e=>({value:e.slug,label:e.name})))],value:o,onChange:e=>t({taxonomy:e})}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Show post counts"),checked:a,onChange:()=>t({showTagCounts:!a})}),(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Number of tags"),value:r,onChange:e=>t({numberOfTags:e}),min:1,max:100,required:!0}),(0,qe.createElement)(Ke.Flex,null,(0,qe.createElement)(Ke.FlexItem,{isBlock:!0},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Smallest size"),value:l,onChange:e=>{c("smallestFontSize",e)},units:s,min:.1,max:100})),(0,qe.createElement)(Ke.FlexItem,{isBlock:!0},(0,qe.createElement)(Ke.__experimentalUnitControl,{label:(0,Je.__)("Largest size"),value:i,onChange:e=>{c("largestFontSize",e)},units:s,min:.1,max:100})))));return(0,qe.createElement)(qe.Fragment,null,u,(0,qe.createElement)("div",{...(0,Ye.useBlockProps)()},(0,qe.createElement)(Ke.Disabled,null,(0,qe.createElement)(et(),{skipBlockSupportAttributes:!0,block:"core/tag-cloud",attributes:e}))))}));const Ww={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/tag-cloud",title:"Tag Cloud",category:"widgets",description:"A cloud of your most used tags.",textdomain:"default",attributes:{numberOfTags:{type:"number",default:45,minimum:1,maximum:100},taxonomy:{type:"string",default:"post_tag"},showTagCounts:{type:"boolean",default:!1},smallestFontSize:{type:"string",default:"8pt"},largestFontSize:{type:"string",default:"22pt"}},styles:[{name:"default",label:"Default",isDefault:!0},{name:"outline",label:"Outline"}],supports:{html:!1,align:!0,spacing:{margin:!0,padding:!0},typography:{lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalLetterSpacing:!0}},editorStyle:"wp-block-tag-cloud-editor"},{name:Zw}=Ww,Qw={icon:nh,example:{},edit:qw,transforms:jw},Kw=()=>Qe({name:Zw,metadata:Ww,settings:Qw});var Jw=function(){return Jw=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Jw.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function Yw(e){return e.toLowerCase()}var Xw=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],eC=/[^A-Z0-9]+/gi;function tC(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?Xw:n,a=t.stripRegexp,r=void 0===a?eC:a,l=t.transform,i=void 0===l?Yw:l,s=t.delimiter,c=void 0===s?" ":s,u=nC(nC(e,o,"$1\0$2"),r,"\0"),m=0,p=u.length;"\0"===u.charAt(m);)m++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(m,p).split("\0").map(i).join(c)}function nC(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function oC(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}var aC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function rC(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),tC(e,Jw({delimiter:"."},t))}(e,Jw({delimiter:"-"},t))}function lC(e,t){const{templateParts:n,isResolving:o}=(0,ut.useSelect)((e=>{const{getEntityRecords:t,isResolving:n}=e(ct.store),o={per_page:-1};return{templateParts:t("postType","wp_template_part",o),isResolving:n("getEntityRecords",["postType","wp_template_part",o])}}),[]);return{templateParts:(0,qe.useMemo)((()=>n&&n.filter((n=>lg(n.theme,n.slug)!==t&&(!e||"uncategorized"===e||n.area===e)))||[]),[n,e,t]),isResolving:o}}function iC(e,t){return(0,ut.useSelect)((n=>{const o=e?`core/template-part/${e}`:"core/template-part",{getBlockRootClientId:a,getPatternsByBlockTypes:r}=n(Ye.store);return r(o,a(t))}),[e,t])}function sC(e,t){const{saveEntityRecord:n}=(0,ut.useDispatch)(ct.store);return async(o=[],a=(0,Je.__)("Untitled Template Part"))=>{const r={title:a,slug:rC(a).replace(/[^\w-]+/g,"")||"wp-custom-part",content:(0,je.serialize)(o),area:e},l=await n("postType","wp_template_part",r);t({slug:l.slug,theme:l.theme,area:void 0})}}function cC(e){return(0,ut.useSelect)((t=>{var n;const o=t("core/editor").__experimentalGetDefaultTemplatePartAreas(),a=o.find((t=>t.area===e)),r=o.find((e=>"uncategorized"===e.area));return{icon:a?.icon||r?.icon,label:a?.label||(0,Je.__)("Template Part"),tagName:null!==(n=a?.area_tag)&&void 0!==n?n:"div"}}),[e])}function uC({areaLabel:e,onClose:t,onSubmit:n}){const[o,a]=(0,qe.useState)((0,Je.__)("Untitled Template Part"));return(0,qe.createElement)(Ke.Modal,{title:(0,Je.sprintf)((0,Je.__)("Name and create your new %s"),e.toLowerCase()),overlayClassName:"wp-block-template-part__placeholder-create-new__title-form",onRequestClose:t},(0,qe.createElement)("form",{onSubmit:e=>{e.preventDefault(),n(o)}},(0,qe.createElement)(Ke.__experimentalVStack,{spacing:"5"},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Name"),value:o,onChange:a}),(0,qe.createElement)(Ke.__experimentalHStack,{justify:"right"},(0,qe.createElement)(Ke.Button,{variant:"primary",type:"submit",disabled:!o.length,"aria-disabled":!o.length},(0,Je.__)("Create"))))))}function mC({area:e,clientId:t,templatePartId:n,onOpenSelectionModal:o,setAttributes:a}){const{templateParts:r,isResolving:l}=lC(e,n),i=iC(e,t),[s,c]=(0,qe.useState)(!1),u=cC(e),m=sC(e,a);return(0,qe.createElement)(Ke.Placeholder,{icon:u.icon,label:u.label,instructions:(0,Je.sprintf)((0,Je.__)("Choose an existing %s or create a new one."),u.label.toLowerCase())},l&&(0,qe.createElement)(Ke.Spinner,null),!l&&!(!r.length&&!i.length)&&(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:o},(0,Je.__)("Choose")),!l&&(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:()=>{c(!0)}},(0,Je.__)("Start blank")),s&&(0,qe.createElement)(uC,{areaLabel:u.label,onClose:()=>c(!1),onSubmit:e=>{m([],e)}}))}function pC({setAttributes:e,onClose:t,templatePartId:n=null,area:o,clientId:a}){const[r,l]=(0,qe.useState)(""),{templateParts:i}=lC(o,n),s=(0,qe.useMemo)((()=>zy(i.map((e=>({name:lg(e.theme,e.slug),title:e.title.rendered,blocks:(0,je.parse)(e.content.raw),templatePart:e}))),r)),[i,r]),c=(0,Tt.useAsyncList)(s),u=iC(o,a),m=(0,qe.useMemo)((()=>zy(u,r)),[u,r]),p=(0,Tt.useAsyncList)(m),{createSuccessNotice:d}=(0,ut.useDispatch)(Bt.store),g=sC(o,e),h=!!s.length,_=!!m.length;return(0,qe.createElement)("div",{className:"block-library-template-part__selection-content"},(0,qe.createElement)("div",{className:"block-library-template-part__selection-search"},(0,qe.createElement)(Ke.SearchControl,{__nextHasNoMarginBottom:!0,onChange:l,value:r,label:(0,Je.__)("Search for replacements"),placeholder:(0,Je.__)("Search")})),h&&(0,qe.createElement)("div",null,(0,qe.createElement)("h2",null,(0,Je.__)("Existing template parts")),(0,qe.createElement)(Ye.__experimentalBlockPatternsList,{blockPatterns:s,shownPatterns:c,onClickPattern:n=>{var o;o=n.templatePart,e({slug:o.slug,theme:o.theme,area:void 0}),d((0,Je.sprintf)((0,Je.__)('Template Part "%s" inserted.'),o.title?.rendered||o.slug),{type:"snackbar"}),t()}})),_&&(0,qe.createElement)("div",null,(0,qe.createElement)("h2",null,(0,Je.__)("Patterns")),(0,qe.createElement)(Ye.__experimentalBlockPatternsList,{blockPatterns:m,shownPatterns:p,onClickPattern:(e,n)=>{g(n,e.title),t()}})),!h&&!_&&(0,qe.createElement)(Ke.__experimentalHStack,{alignment:"center"},(0,qe.createElement)("p",null,(0,Je.__)("No results found."))))}function dC(e){const t=(0,je.getPossibleBlockTransformations)([e]).filter((e=>{if(!e.transforms)return!0;const t=e.transforms?.from?.find((e=>e.blocks&&e.blocks.includes("*"))),n=e.transforms?.to?.find((e=>e.blocks&&e.blocks.includes("*")));return!t&&!n}));if(t.length)return(0,je.switchToBlockType)(e,t[0].name)}function gC(e=[]){return e.flatMap((e=>"core/legacy-widget"===e.name?dC(e):(0,je.createBlock)(e.name,e.attributes,gC(e.innerBlocks)))).filter((e=>!!e))}const hC={per_page:-1,_fields:"id,name,description,status,widgets"};function _C({area:e,setAttributes:t}){const[n,o]=(0,qe.useState)(""),[a,r]=(0,qe.useState)(!1),l=(0,ut.useRegistry)(),{sidebars:i,hasResolved:s}=(0,ut.useSelect)((e=>{const{getSidebars:t,hasFinishedResolution:n}=e(ct.store);return{sidebars:t(hC),hasResolved:n("getSidebars",[hC])}}),[]),{createErrorNotice:c}=(0,ut.useDispatch)(Bt.store),u=sC(e,t),m=(0,qe.useMemo)((()=>{const e=(null!=i?i:[]).filter((e=>"wp_inactive_widgets"!==e.id&&e.widgets.length>0)).map((e=>({value:e.id,label:e.name})));return e.length?[{value:"",label:(0,Je.__)("Select widget area")},...e]:[]}),[i]);if(!s)return(0,qe.createElement)(Ke.__experimentalSpacer,{marginBottom:"0"});if(s&&!m.length)return null;return(0,qe.createElement)(Ke.__experimentalSpacer,{marginBottom:"4"},(0,qe.createElement)(Ke.__experimentalHStack,{as:"form",onSubmit:async function(e){if(e.preventDefault(),a||!n)return;r(!0);const t=m.find((({value:e})=>e===n)),{getWidgets:o}=l.resolveSelect(ct.store),i=await o({sidebar:t.value,_embed:"about"}),s=new Set,p=i.flatMap((e=>{const t=function(e){if("block"!==e.id_base){let t;return t=e._embedded.about[0].is_multi?{idBase:e.id_base,instance:e.instance}:{id:e.id},dC((0,je.createBlock)("core/legacy-widget",t))}const t=(0,je.parse)(e.instance.raw.content,{__unstableSkipAutop:!0});if(!t.length)return;const n=t[0];return"core/widget-group"===n.name?(0,je.createBlock)((0,je.getGroupingBlockName)(),void 0,gC(n.innerBlocks)):n.innerBlocks.length>0?(0,je.cloneBlock)(n,void 0,gC(n.innerBlocks)):n}(e);return t||(s.add(e.id_base),[])}));await u(p,(0,Je.sprintf)((0,Je.__)("Widget area: %s"),t.label)),s.size&&c((0,Je.sprintf)((0,Je.__)("Unable to import the following widgets: %s."),Array.from(s).join(", ")),{type:"snackbar"}),r(!1)}},(0,qe.createElement)(Ke.FlexBlock,null,(0,qe.createElement)(Ke.SelectControl,{label:(0,Je.__)("Import widget area"),value:n,options:m,onChange:e=>o(e),disabled:!m.length,__next36pxDefaultSize:!0,__nextHasNoMarginBottom:!0})),(0,qe.createElement)(Ke.FlexItem,{style:{marginBottom:"8px",marginTop:"auto"}},(0,qe.createElement)(Ke.Button,{variant:"primary",type:"submit",isBusy:a,"aria-disabled":a||!n},(0,Je._x)("Import","button label")))))}function bC({tagName:e,setAttributes:t,isEntityAvailable:n,templatePartId:o,defaultWrapper:a,hasInnerBlocks:r}){const[l,i]=(0,ct.useEntityProp)("postType","wp_template_part","area",o),[s,c]=(0,ct.useEntityProp)("postType","wp_template_part","title",o),{areaOptions:u}=(0,ut.useSelect)((e=>({areaOptions:e("core/editor").__experimentalGetDefaultTemplatePartAreas().map((({label:e,area:t})=>({label:e,value:t})))})),[]),m={header:(0,Je.__)("The <header> element should represent introductory content, typically a group of introductory or navigational aids."),main:(0,Je.__)("The <main> element should be used for the primary content of your document only. "),section:(0,Je.__)("The <section> element should represent a standalone portion of the document that can't be better represented by another element."),article:(0,Je.__)("The <article> element should represent a self-contained, syndicatable portion of the document."),aside:(0,Je.__)("The <aside> element should represent a portion of a document whose content is only indirectly related to the document's main content."),footer:(0,Je.__)("The <footer> element should represent a footer for its nearest sectioning element (e.g.: <section>, <article>, <main> etc.).")};return(0,qe.createElement)(Ye.InspectorControls,{group:"advanced"},n&&(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Title"),value:s,onChange:e=>{c(e)},onFocus:e=>e.target.select()}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Area"),labelPosition:"top",options:u,value:l,onChange:i})),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("HTML element"),options:[{label:(0,Je.sprintf)((0,Je.__)("Default based on area (%s)"),`<${a}>`),value:""},{label:"<header>",value:"header"},{label:"<main>",value:"main"},{label:"<section>",value:"section"},{label:"<article>",value:"article"},{label:"<aside>",value:"aside"},{label:"<footer>",value:"footer"},{label:"<div>",value:"div"}],value:e||"",onChange:e=>t({tagName:e}),help:m[e]}),!r&&(0,qe.createElement)(_C,{area:l,setAttributes:t}))}function fC({postId:e,hasInnerBlocks:t,layout:n,tagName:o,blockProps:a}){const r=(0,ut.useSelect)((e=>{const{getSettings:t}=e(Ye.store);return t()?.supportsLayout}),[]),l=(0,Ye.useSetting)("layout")||{},i=n&&n.inherit?l:n,[s,c,u]=(0,ct.useEntityBlockEditor)("postType","wp_template_part",{id:e}),m=(0,Ye.useInnerBlocksProps)(a,{value:s,onInput:c,onChange:u,renderAppender:t?void 0:Ye.InnerBlocks.ButtonBlockAppender,layout:r?i:void 0});return(0,qe.createElement)(o,{...m})}var yC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var vC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var kC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));function xC(e,t){if("core/template-part"!==t)return e;if(e.variations){const t=(e,t)=>{const{area:n,theme:o,slug:a}=e;if(n)return n===t.area;if(!a)return!1;const r=(0,ut.select)(ct.store).getEntityRecord("postType","wp_template_part",`${o}//${a}`);return r?.slug?r.slug===t.slug:r?.area===t.area},n=e.variations.map((e=>{return{...e,...!e.isActive&&{isActive:t},..."string"==typeof e.icon&&{icon:(n=e.icon,"header"===n?yC:"footer"===n?vC:"sidebar"===n?kC:aC)}};var n}));return{...e,variations:n}}return e}const wC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/template-part",title:"Template Part",category:"theme",description:"Edit the different global regions of your site, like the header, footer, sidebar, or create your own.",textdomain:"default",attributes:{slug:{type:"string"},theme:{type:"string"},tagName:{type:"string"},area:{type:"string"}},supports:{align:!0,html:!1,reusable:!1},editorStyle:"wp-block-template-part-editor"},{name:CC}=wC,EC={icon:aC,__experimentalLabel:({slug:e,theme:t})=>{if(!e)return;const n=(0,ut.select)(ct.store).getEntityRecord("postType","wp_template_part",t+"//"+e);return n?(0,On.decodeEntities)(n.title?.rendered)||function(e,t){return void 0===t&&(t={}),tC(e,Jw({delimiter:" ",transform:oC},t))}(n.slug):void 0},edit:function({attributes:e,setAttributes:t,clientId:n,isSelected:o}){const{slug:a,theme:r,tagName:l,layout:i={}}=e,s=lg(r,a),c=(0,Ye.__experimentalUseHasRecursion)(s),[u,m]=(0,qe.useState)(!1),{isResolved:p,innerBlocks:d,isMissing:g,area:h}=(0,ut.useSelect)((t=>{const{getEditedEntityRecord:o,hasFinishedResolution:a}=t(ct.store),{getBlocks:r}=t(Ye.store),l=["postType","wp_template_part",s],i=s?o(...l):null,c=i?.area||e.area,u=!!s&&a("getEditedEntityRecord",l);return{innerBlocks:r(n),isResolved:u,isMissing:u&&(!i||0===Object.keys(i).length),area:c}}),[s,n]),{templateParts:_}=lC(h,s),b=iC(h,n),f=!!_.length||!!b.length,y=cC(h),v=(0,Ye.useBlockProps)(),k=!a,x=!k&&!g&&p,w=l||y.tagName,C=o&&x&&f&&("header"===h||"footer"===h);return 0===d.length&&(a&&!r||a&&g)?(0,qe.createElement)(w,{...v},(0,qe.createElement)(Ye.Warning,null,(0,Je.sprintf)((0,Je.__)("Template part has been deleted or is unavailable: %s"),a))):x&&c?(0,qe.createElement)(w,{...v},(0,qe.createElement)(Ye.Warning,null,(0,Je.__)("Block cannot be rendered inside itself."))):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.__experimentalRecursionProvider,{uniqueId:s},(0,qe.createElement)(bC,{tagName:l,setAttributes:t,isEntityAvailable:x,templatePartId:s,defaultWrapper:y.tagName,hasInnerBlocks:d.length>0}),k&&(0,qe.createElement)(w,{...v},(0,qe.createElement)(mC,{area:e.area,templatePartId:s,clientId:n,setAttributes:t,onOpenSelectionModal:()=>m(!0)})),C&&(0,qe.createElement)(Ye.BlockSettingsMenuControls,null,(()=>(0,qe.createElement)(Ke.MenuItem,{onClick:()=>{m(!0)}},(0,qe.createInterpolateElement)((0,Je.__)("Replace <BlockTitle />"),{BlockTitle:(0,qe.createElement)(Ye.BlockTitle,{clientId:n,maximumLength:25})})))),x&&(0,qe.createElement)(fC,{tagName:w,blockProps:v,postId:s,hasInnerBlocks:d.length>0,layout:i}),!k&&!p&&(0,qe.createElement)(w,{...v},(0,qe.createElement)(Ke.Spinner,null))),u&&(0,qe.createElement)(Ke.Modal,{overlayClassName:"block-editor-template-part__selection-modal",title:(0,Je.sprintf)((0,Je.__)("Choose a %s"),y.label.toLowerCase()),onRequestClose:()=>m(!1),isFullScreen:!0},(0,qe.createElement)(pC,{templatePartId:s,clientId:n,area:h,setAttributes:t,onClose:()=>m(!1)})))}},SC=()=>{(0,Zl.addFilter)("blocks.registerBlockType","core/template-part",xC);const e=["core/post-template","core/post-content"];return(0,Zl.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromPostTemplates",((t,n,o,{getBlock:a,getBlockParentsByBlockName:r})=>{if("core/template-part"!==n.name)return t;for(const t of e){if(a(o)?.name===t||r(o,t).length)return!1}return!0})),Qe({name:CC,metadata:wC,settings:EC})};var BC=(0,qe.createElement)(We.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,qe.createElement)(We.Path,{d:"M6.08 10.103h2.914L9.657 12h1.417L8.23 4H6.846L4 12h1.417l.663-1.897Zm1.463-4.137.994 2.857h-2l1.006-2.857ZM11 16H4v-1.5h7V16Zm1 0h8v-1.5h-8V16Zm-4 4H4v-1.5h4V20Zm7-1.5V20H9v-1.5h6Z"}));const TC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/term-description",title:"Term Description",category:"theme",description:"Display the description of categories, tags and custom taxonomies when viewing an archive.",textdomain:"default",attributes:{textAlign:{type:"string"}},supports:{align:["wide","full"],html:!1,color:{link:!0,__experimentalDefaultControls:{background:!0,text:!0}},spacing:{padding:!0,margin:!0},typography:{fontSize:!0,lineHeight:!0,__experimentalFontFamily:!0,__experimentalFontWeight:!0,__experimentalFontStyle:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalLetterSpacing:!0,__experimentalDefaultControls:{fontSize:!0}}}},{name:NC}=TC,PC={icon:BC,edit:function({attributes:e,setAttributes:t,mergedStyle:n}){const{textAlign:o}=e,a=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${o}`]:o}),style:n});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ye.AlignmentControl,{value:o,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)("div",{...a},(0,qe.createElement)("div",{className:"wp-block-term-description__placeholder"},(0,qe.createElement)("span",null,(0,Je.__)("Term Description")))))}},IC=()=>Qe({name:NC,metadata:TC,settings:PC});const MC={to:[{type:"block",blocks:["core/columns"],transform:({className:e,columns:t,content:n,width:o})=>(0,je.createBlock)("core/columns",{align:"wide"===o||"full"===o?o:void 0,className:e,columns:t},n.map((({children:e})=>(0,je.createBlock)("core/column",{},[(0,je.createBlock)("core/paragraph",{content:e})]))))}]};var zC=MC;const RC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/text-columns",title:"Text Columns (deprecated)",icon:"columns",category:"design",description:"This block is deprecated. Please use the Columns block instead.",textdomain:"default",attributes:{content:{type:"array",source:"query",selector:"p",query:{children:{type:"string",source:"html"}},default:[{},{}]},columns:{type:"number",default:2},width:{type:"string"}},supports:{inserter:!1},editorStyle:"wp-block-text-columns-editor",style:"wp-block-text-columns"},{name:HC}=RC,LC={transforms:zC,getEditWrapperProps(e){const{width:t}=e;if("wide"===t||"full"===t)return{"data-align":t}},edit:function({attributes:e,setAttributes:t}){const{width:n,content:o,columns:a}=e;return Om()("The Text Columns block",{since:"5.3",alternative:"the Columns block"}),(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.BlockAlignmentToolbar,{value:n,onChange:e=>t({width:e}),controls:["center","wide","full"]})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,null,(0,qe.createElement)(Ke.RangeControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Columns"),value:a,onChange:e=>t({columns:e}),min:2,max:4,required:!0}))),(0,qe.createElement)("div",{...(0,Ye.useBlockProps)({className:`align${n} columns-${a}`})},Array.from({length:a}).map(((e,n)=>(0,qe.createElement)("div",{className:"wp-block-column",key:`column-${n}`},(0,qe.createElement)(Ye.RichText,{tagName:"p",value:o?.[n]?.children,onChange:e=>{t({content:[...o.slice(0,n),{children:e},...o.slice(n+1)]})},"aria-label":(0,Je.sprintf)((0,Je.__)("Column %d text"),n+1),placeholder:(0,Je.__)("New Column")}))))))},save:function({attributes:e}){const{width:t,content:n,columns:o}=e;return(0,qe.createElement)("div",{...Ye.useBlockProps.save({className:`align${t} columns-${o}`})},Array.from({length:o}).map(((e,t)=>(0,qe.createElement)("div",{className:"wp-block-column",key:`column-${t}`},(0,qe.createElement)(Ye.RichText.Content,{tagName:"p",value:n?.[t]?.children})))))}},AC=()=>Qe({name:HC,metadata:RC,settings:LC});var VC=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"}));const DC={attributes:{content:{type:"string",source:"html",selector:"pre",default:""},textAlign:{type:"string"}},save({attributes:e}){const{textAlign:t,content:n}=e;return(0,qe.createElement)(Ye.RichText.Content,{tagName:"pre",style:{textAlign:t},value:n})}},FC={attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0},typography:{fontSize:!0,__experimentalFontFamily:!0},spacing:{padding:!0}},save({attributes:e}){const{textAlign:t,content:n}=e,o=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)("pre",{...Ye.useBlockProps.save({className:o})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))},migrate:en,isEligible({style:e}){return e?.typography?.fontFamily}};var $C=[FC,DC];const GC={from:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,je.createBlock)("core/verse",e)}],to:[{type:"block",blocks:["core/paragraph"],transform:e=>(0,je.createBlock)("core/paragraph",e)}]};var OC=GC;const UC={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/verse",title:"Verse",category:"text",description:"Insert poetry. Use special spacing formats. Or quote song lyrics.",keywords:["poetry","poem"],textdomain:"default",attributes:{content:{type:"string",source:"html",selector:"pre",default:"",__unstablePreserveWhiteSpace:!0,__experimentalRole:"content"},textAlign:{type:"string"}},supports:{anchor:!0,color:{gradients:!0,link:!0,__experimentalDefaultControls:{background:!0,text:!0}},typography:{fontSize:!0,__experimentalFontFamily:!0,lineHeight:!0,__experimentalFontStyle:!0,__experimentalFontWeight:!0,__experimentalLetterSpacing:!0,__experimentalTextTransform:!0,__experimentalTextDecoration:!0,__experimentalDefaultControls:{fontSize:!0,fontAppearance:!0}},spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}},__experimentalBorder:{radius:!0,width:!0,color:!0,style:!0}},style:"wp-block-verse",editorStyle:"wp-block-verse-editor"},{name:jC}=UC,qC={icon:VC,example:{attributes:{content:(0,Je.__)("WHAT was he doing, the great god Pan,\n\tDown in the reeds by the river?\nSpreading ruin and scattering ban,\nSplashing and paddling with hoofs of a goat,\nAnd breaking the golden lilies afloat\n With the dragon-fly on the river.")}},transforms:OC,deprecated:$C,merge(e,t){return{content:e.content+t.content}},edit:function({attributes:e,setAttributes:t,mergeBlocks:n,onRemove:o,style:a}){const{textAlign:r,content:l}=e,i=(0,Ye.useBlockProps)({className:it()({[`has-text-align-${r}`]:r}),style:a});return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(Ye.AlignmentToolbar,{value:r,onChange:e=>{t({textAlign:e})}})),(0,qe.createElement)(Ye.RichText,{tagName:"pre",identifier:"content",preserveWhiteSpace:!0,value:l,onChange:e=>{t({content:e})},"aria-label":(0,Je.__)("Verse text"),placeholder:(0,Je.__)("Write verse…"),onRemove:o,onMerge:n,textAlign:r,...i,__unstablePastePlainText:!0}))},save:function({attributes:e}){const{textAlign:t,content:n}=e,o=it()({[`has-text-align-${t}`]:t});return(0,qe.createElement)("pre",{...Ye.useBlockProps.save({className:o})},(0,qe.createElement)(Ye.RichText.Content,{value:n}))}},WC=()=>Qe({name:jC,metadata:UC,settings:qC});var ZC=(0,qe.createElement)(We.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,qe.createElement)(We.Path,{d:"M18.7 3H5.3C4 3 3 4 3 5.3v13.4C3 20 4 21 5.3 21h13.4c1.3 0 2.3-1 2.3-2.3V5.3C21 4 20 3 18.7 3zm.8 15.7c0 .4-.4.8-.8.8H5.3c-.4 0-.8-.4-.8-.8V5.3c0-.4.4-.8.8-.8h13.4c.4 0 .8.4.8.8v13.4zM10 15l5-3-5-3v6z"}));function QC({tracks:e=[]}){return e.map((e=>(0,qe.createElement)("track",{key:e.src,...e})))}const{attributes:KC}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",__experimentalRole:"content"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src",__experimentalRole:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{__experimentalRole:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},editorStyle:"wp-block-video-editor",style:"wp-block-video"},JC={attributes:KC,save({attributes:e}){const{autoplay:t,caption:n,controls:o,loop:a,muted:r,poster:l,preload:i,src:s,playsInline:c,tracks:u}=e;return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)("video",{autoPlay:t,controls:o,loop:a,muted:r,poster:l,preload:"metadata"!==i?i:void 0,src:s,playsInline:c},(0,qe.createElement)(QC,{tracks:u})),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{tagName:"figcaption",value:n}))}};var YC=[JC];const XC=[{value:"auto",label:(0,Je.__)("Auto")},{value:"metadata",label:(0,Je.__)("Metadata")},{value:"none",label:(0,Je._x)("None","Preload value")}];var eE=({setAttributes:e,attributes:t})=>{const{autoplay:n,controls:o,loop:a,muted:r,playsInline:l,preload:i}=t,s=(0,Je.__)("Autoplay may cause usability issues for some users."),c=qe.Platform.select({web:(0,qe.useCallback)((e=>e?s:null),[]),native:s}),u=(0,qe.useMemo)((()=>{const t=t=>n=>{e({[t]:n})};return{autoplay:t("autoplay"),loop:t("loop"),muted:t("muted"),controls:t("controls"),playsInline:t("playsInline")}}),[]),m=(0,qe.useCallback)((t=>{e({preload:t})}),[]);return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Autoplay"),onChange:u.autoplay,checked:!!n,help:c}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Loop"),onChange:u.loop,checked:!!a}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Muted"),onChange:u.muted,checked:!!r}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Playback controls"),onChange:u.controls,checked:!!o}),(0,qe.createElement)(Ke.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Play inline"),onChange:u.playsInline,checked:!!l}),(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,Je.__)("Preload"),value:i,onChange:m,options:XC,hideCancelButton:!0}))};const tE=["text/vtt"],nE="subtitles",oE=[{label:(0,Je.__)("Subtitles"),value:"subtitles"},{label:(0,Je.__)("Captions"),value:"captions"},{label:(0,Je.__)("Descriptions"),value:"descriptions"},{label:(0,Je.__)("Chapters"),value:"chapters"},{label:(0,Je.__)("Metadata"),value:"metadata"}];function aE({tracks:e,onEditPress:t}){let n;return n=0===e.length?(0,qe.createElement)("p",{className:"block-library-video-tracks-editor__tracks-informative-message"},(0,Je.__)("Tracks can be subtitles, captions, chapters, or descriptions. They help make your content more accessible to a wider range of users.")):e.map(((e,n)=>(0,qe.createElement)(Ke.__experimentalHStack,{key:n,className:"block-library-video-tracks-editor__track-list-track"},(0,qe.createElement)("span",null,e.label," "),(0,qe.createElement)(Ke.Button,{variant:"tertiary",onClick:()=>t(n),"aria-label":(0,Je.sprintf)((0,Je.__)("Edit %s"),e.label)},(0,Je.__)("Edit"))))),(0,qe.createElement)(Ke.MenuGroup,{label:(0,Je.__)("Text tracks"),className:"block-library-video-tracks-editor__track-list"},n)}function rE({track:e,onChange:t,onClose:n,onRemove:o}){const{src:a="",label:r="",srcLang:l="",kind:i=nE}=e,s=a.startsWith("blob:")?"":(0,st.getFilename)(a)||"";return(0,qe.createElement)(Ke.NavigableMenu,null,(0,qe.createElement)(Ke.__experimentalVStack,{className:"block-library-video-tracks-editor__single-track-editor",spacing:"4"},(0,qe.createElement)("span",{className:"block-library-video-tracks-editor__single-track-editor-edit-track-label"},(0,Je.__)("Edit track")),(0,qe.createElement)("span",null,(0,Je.__)("File"),": ",(0,qe.createElement)("b",null,s)),(0,qe.createElement)(Ke.__experimentalGrid,{columns:2,gap:4},(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,autoFocus:!0,onChange:n=>t({...e,label:n}),label:(0,Je.__)("Label"),value:r,help:(0,Je.__)("Title of track")}),(0,qe.createElement)(Ke.TextControl,{__nextHasNoMarginBottom:!0,onChange:n=>t({...e,srcLang:n}),label:(0,Je.__)("Source language"),value:l,help:(0,Je.__)("Language tag (en, fr, etc.)")})),(0,qe.createElement)(Ke.__experimentalVStack,{spacing:"8"},(0,qe.createElement)(Ke.SelectControl,{__nextHasNoMarginBottom:!0,className:"block-library-video-tracks-editor__single-track-editor-kind-select",options:oE,value:i,label:(0,Je.__)("Kind"),onChange:n=>{t({...e,kind:n})}}),(0,qe.createElement)(Ke.__experimentalHStack,{className:"block-library-video-tracks-editor__single-track-editor-buttons-container"},(0,qe.createElement)(Ke.Button,{variant:"secondary",onClick:()=>{const o={};let a=!1;""===r&&(o.label=(0,Je.__)("English"),a=!0),""===l&&(o.srcLang="en",a=!0),void 0===e.kind&&(o.kind=nE,a=!0),a&&t({...e,...o}),n()}},(0,Je.__)("Close")),(0,qe.createElement)(Ke.Button,{isDestructive:!0,variant:"link",onClick:o},(0,Je.__)("Remove track"))))))}function lE({tracks:e=[],onChange:t}){const n=(0,ut.useSelect)((e=>e(Ye.store).getSettings().mediaUpload),[]),[o,a]=(0,qe.useState)(null);return n?(0,qe.createElement)(Ke.Dropdown,{contentClassName:"block-library-video-tracks-editor",renderToggle:({isOpen:e,onToggle:t})=>(0,qe.createElement)(Ke.ToolbarGroup,null,(0,qe.createElement)(Ke.ToolbarButton,{label:(0,Je.__)("Text tracks"),showTooltip:!0,"aria-expanded":e,"aria-haspopup":"true",onClick:t},(0,Je.__)("Text tracks"))),renderContent:()=>null!==o?(0,qe.createElement)(rE,{track:e[o],onChange:n=>{const a=[...e];a[o]=n,t(a)},onClose:()=>a(null),onRemove:()=>{t(e.filter(((e,t)=>t!==o))),a(null)}}):(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ke.NavigableMenu,null,(0,qe.createElement)(aE,{tracks:e,onEditPress:a}),(0,qe.createElement)(Ke.MenuGroup,{className:"block-library-video-tracks-editor__add-tracks-container",label:(0,Je.__)("Add tracks")},(0,qe.createElement)(Ye.MediaUpload,{onSelect:({url:n})=>{const o=e.length;t([...e,{src:n}]),a(o)},allowedTypes:tE,render:({open:e})=>(0,qe.createElement)(Ke.MenuItem,{icon:Qp,onClick:e},(0,Je.__)("Open Media Library"))}),(0,qe.createElement)(Ye.MediaUploadCheck,null,(0,qe.createElement)(Ke.FormFileUpload,{onChange:o=>{const r=o.target.files,l=e.length;n({allowedTypes:tE,filesList:r,onFileChange:([{url:n}])=>{const o=[...e];o[l]||(o[l]={}),o[l]={...e[l],src:n},t(o),a(l)}})},accept:".vtt,text/vtt",render:({openFileDialog:e})=>(0,qe.createElement)(Ke.MenuItem,{icon:em,onClick:()=>{e()}},(0,Je.__)("Upload"))})))))}):null}const iE=e=>(0,qe.createElement)(Ke.Placeholder,{className:"block-editor-media-placeholder",withIllustration:!0,icon:ZC,label:(0,Je.__)("Video"),instructions:(0,Je.__)("Upload a video file, pick one from your media library, or add one with a URL.")},e),sE=["video"],cE=["image"];var uE=function e({isSelected:t,attributes:n,className:o,setAttributes:a,insertBlocksAfter:r,onReplace:l}){const i=(0,Tt.useInstanceId)(e),s=(0,qe.useRef)(),c=(0,qe.useRef)(),{id:u,caption:m,controls:p,poster:d,src:g,tracks:h}=n,_=(0,Tt.usePrevious)(m),[b,f]=(0,qe.useState)(!!m),y=!u&&(0,Et.isBlobURL)(g),v=(0,ut.useSelect)((e=>e(Ye.store).getSettings().mediaUpload),[]);(0,qe.useEffect)((()=>{if(!u&&(0,Et.isBlobURL)(g)){const e=(0,Et.getBlobByURL)(g);e&&v({filesList:[e],onFileChange:([e])=>x(e),onError:E,allowedTypes:sE})}}),[]),(0,qe.useEffect)((()=>{s.current&&s.current.load()}),[d]),(0,qe.useEffect)((()=>{m&&!_&&f(!0)}),[m,_]);const k=(0,qe.useCallback)((e=>{e&&!m&&e.focus()}),[m]);function x(e){e&&e.url?a({src:e.url,id:e.id,poster:e.image?.src!==e.icon?e.image?.src:void 0,caption:e.caption}):a({src:void 0,id:void 0,poster:void 0,caption:void 0})}function w(e){if(e!==g){const t=At({attributes:{url:e}});if(void 0!==t&&l)return void l(t);a({src:e,id:void 0,poster:void 0})}}(0,qe.useEffect)((()=>{t||m||f(!1)}),[t,m]);const{createErrorNotice:C}=(0,ut.useDispatch)(Bt.store);function E(e){C(e,{type:"snackbar"})}const S=it()(o,{"is-transient":y}),B=(0,Ye.useBlockProps)({className:S});if(!g)return(0,qe.createElement)("div",{...B},(0,qe.createElement)(Ye.MediaPlaceholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:ZC}),onSelect:x,onSelectURL:w,accept:"video/*",allowedTypes:sE,value:n,onError:E,placeholder:iE}));const T=`video-block__poster-image-description-${i}`;return(0,qe.createElement)(qe.Fragment,null,(0,qe.createElement)(Ye.BlockControls,{group:"block"},(0,qe.createElement)(Ke.ToolbarButton,{onClick:()=>{f(!b),b&&m&&a({caption:void 0})},icon:St,isPressed:b,label:b?(0,Je.__)("Remove caption"):(0,Je.__)("Add caption")})),(0,qe.createElement)(Ye.BlockControls,null,(0,qe.createElement)(lE,{tracks:h,onChange:e=>{a({tracks:e})}})),(0,qe.createElement)(Ye.BlockControls,{group:"other"},(0,qe.createElement)(Ye.MediaReplaceFlow,{mediaId:u,mediaURL:g,allowedTypes:sE,accept:"video/*",onSelect:x,onSelectURL:w,onError:E})),(0,qe.createElement)(Ye.InspectorControls,null,(0,qe.createElement)(Ke.PanelBody,{title:(0,Je.__)("Settings")},(0,qe.createElement)(eE,{setAttributes:a,attributes:n}),(0,qe.createElement)(Ye.MediaUploadCheck,null,(0,qe.createElement)(Ke.BaseControl,{className:"editor-video-poster-control"},(0,qe.createElement)(Ke.BaseControl.VisualLabel,null,(0,Je.__)("Poster image")),(0,qe.createElement)(Ye.MediaUpload,{title:(0,Je.__)("Select poster image"),onSelect:function(e){a({poster:e.url})},allowedTypes:cE,render:({open:e})=>(0,qe.createElement)(Ke.Button,{variant:"primary",onClick:e,ref:c,"aria-describedby":T},d?(0,Je.__)("Replace"):(0,Je.__)("Select"))}),(0,qe.createElement)("p",{id:T,hidden:!0},d?(0,Je.sprintf)((0,Je.__)("The current poster image url is %s"),d):(0,Je.__)("There is no poster image currently selected")),!!d&&(0,qe.createElement)(Ke.Button,{onClick:function(){a({poster:void 0}),c.current.focus()},variant:"tertiary"},(0,Je.__)("Remove")))))),(0,qe.createElement)("figure",{...B},(0,qe.createElement)(Ke.Disabled,{isDisabled:!t},(0,qe.createElement)("video",{controls:p,poster:d,src:g,ref:s},(0,qe.createElement)(QC,{tracks:h}))),y&&(0,qe.createElement)(Ke.Spinner,null),b&&(!Ye.RichText.isEmpty(m)||t)&&(0,qe.createElement)(Ye.RichText,{identifier:"caption",tagName:"figcaption",className:(0,Ye.__experimentalGetElementClassName)("caption"),"aria-label":(0,Je.__)("Video caption text"),ref:k,placeholder:(0,Je.__)("Add caption"),value:m,onChange:e=>a({caption:e}),inlineToolbar:!0,__unstableOnSplitAtEnd:()=>r((0,je.createBlock)((0,je.getDefaultBlockName)()))})))};const mE={from:[{type:"files",isMatch(e){return 1===e.length&&0===e[0].type.indexOf("video/")},transform(e){const t=e[0];return(0,je.createBlock)("core/video",{src:(0,Et.createBlobURL)(t)})}},{type:"shortcode",tag:"video",attributes:{src:{type:"string",shortcode:({named:{src:e,mp4:t,m4v:n,webm:o,ogv:a,flv:r}})=>e||t||n||o||a||r},poster:{type:"string",shortcode:({named:{poster:e}})=>e},loop:{type:"string",shortcode:({named:{loop:e}})=>e},autoplay:{type:"string",shortcode:({named:{autoplay:e}})=>e},preload:{type:"string",shortcode:({named:{preload:e}})=>e}}}]};var pE=mE;const dE={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/video",title:"Video",category:"media",description:"Embed a video from your media library or upload a new one.",keywords:["movie"],textdomain:"default",attributes:{autoplay:{type:"boolean",source:"attribute",selector:"video",attribute:"autoplay"},caption:{type:"string",source:"html",selector:"figcaption",__experimentalRole:"content"},controls:{type:"boolean",source:"attribute",selector:"video",attribute:"controls",default:!0},id:{type:"number",__experimentalRole:"content"},loop:{type:"boolean",source:"attribute",selector:"video",attribute:"loop"},muted:{type:"boolean",source:"attribute",selector:"video",attribute:"muted"},poster:{type:"string",source:"attribute",selector:"video",attribute:"poster"},preload:{type:"string",source:"attribute",selector:"video",attribute:"preload",default:"metadata"},src:{type:"string",source:"attribute",selector:"video",attribute:"src",__experimentalRole:"content"},playsInline:{type:"boolean",source:"attribute",selector:"video",attribute:"playsinline"},tracks:{__experimentalRole:"content",type:"array",items:{type:"object"},default:[]}},supports:{anchor:!0,align:!0,spacing:{margin:!0,padding:!0,__experimentalDefaultControls:{margin:!1,padding:!1}}},editorStyle:"wp-block-video-editor",style:"wp-block-video"},{name:gE}=dE,hE={icon:ZC,example:{attributes:{src:"https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",caption:(0,Je.__)("Wood thrush singing in Central Park, NYC.")}},transforms:pE,deprecated:YC,edit:uE,save:function({attributes:e}){const{autoplay:t,caption:n,controls:o,loop:a,muted:r,poster:l,preload:i,src:s,playsInline:c,tracks:u}=e;return(0,qe.createElement)("figure",{...Ye.useBlockProps.save()},s&&(0,qe.createElement)("video",{autoPlay:t,controls:o,loop:a,muted:r,poster:l,preload:"metadata"!==i?i:void 0,src:s,playsInline:c},(0,qe.createElement)(QC,{tracks:u})),!Ye.RichText.isEmpty(n)&&(0,qe.createElement)(Ye.RichText.Content,{className:(0,Ye.__experimentalGetElementClassName)("caption"),tagName:"figcaption",value:n}))}},_E=()=>Qe({name:gE,metadata:dE,settings:hE});var bE,fE=new Uint8Array(16);function yE(){if(!bE&&!(bE="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bE(fE)}var vE=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var kE=function(e){return"string"==typeof e&&vE.test(e)},xE=[],wE=0;wE<256;++wE)xE.push((wE+256).toString(16).substr(1));var CE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(xE[e[t+0]]+xE[e[t+1]]+xE[e[t+2]]+xE[e[t+3]]+"-"+xE[e[t+4]]+xE[e[t+5]]+"-"+xE[e[t+6]]+xE[e[t+7]]+"-"+xE[e[t+8]]+xE[e[t+9]]+"-"+xE[e[t+10]]+xE[e[t+11]]+xE[e[t+12]]+xE[e[t+13]]+xE[e[t+14]]+xE[e[t+15]]).toLowerCase();if(!kE(n))throw TypeError("Stringified UUID is invalid");return n};var EE=function(e,t,n){var o=(e=e||{}).random||(e.rng||yE)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=o[a];return t}return CE(o)};const{name:SE}={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{html:!1,multiple:!1,reusable:!1},style:"wp-block-footnotes"},{usesContextKey:BE}=Yt(Ye.privateApis),TE="core/footnote",NE="core/post-content",PE={title:(0,Je.__)("Footnote"),tagName:"sup",className:"fn",attributes:{"data-fn":"data-fn"},interactive:!0,contentEditable:!1,[BE]:["postType"],edit:function({value:e,onChange:t,isObjectActive:n,context:{postType:o}}){const a=(0,ut.useRegistry)(),{getSelectedBlockClientId:r,getBlocks:l,getBlockRootClientId:i,getBlockName:s,getBlockParentsByBlockName:c}=(0,ut.useSelect)(Ye.store),u=(0,ut.useSelect)((e=>e(je.store).getBlockType(SE))),m=(0,ut.useSelect)((e=>{const{getBlockParentsByBlockName:t,getSelectedBlockClientId:n}=e(Ye.store),o=t(n(),"core/block");return o&&o.length>0}),[]),{selectionChange:p,insertBlock:d}=(0,ut.useDispatch)(Ye.store);if(!u)return null;if("post"!==o&&"page"!==o)return null;if(m)return null;return(0,qe.createElement)(Ye.RichTextToolbarButton,{icon:$m,title:(0,Je.__)("Footnote"),onClick:function(){a.batch((()=>{let o;if(n){const t=e.replacements[e.start];o=t?.attributes?.["data-fn"]}else{o=EE();const n=(0,Cn.insertObject)(e,{type:TE,attributes:{"data-fn":o},innerHTML:`<a href="#${o}" id="${o}-link">*</a>`},e.end,e.end);n.start=n.end-1,t(n)}const a=r(),u=c(a,NE);let m=null;{const e=[...u.length?l(u[0]):l()];for(;e.length;){const t=e.shift();if(t.name===SE){m=t;break}e.push(...t.innerBlocks)}}if(!m){let e=i(a);for(;e&&s(e)!==NE;)e=i(e);m=(0,je.createBlock)(SE),d(m,void 0,e)}p(m.clientId,o,0,0)}))},isActive:n})}},IE={$schema:"https://schemas.wp.org/trunk/block.json",apiVersion:3,name:"core/footnotes",title:"Footnotes",category:"text",description:"",keywords:["references"],textdomain:"default",usesContext:["postId","postType"],supports:{html:!1,multiple:!1,reusable:!1},style:"wp-block-footnotes"},{name:ME}=IE,zE={icon:$m,edit:function({context:{postType:e,postId:t}}){const[n,o]=(0,ct.useEntityProp)("postType",e,"meta",t),a=n?.footnotes?JSON.parse(n.footnotes):[],r=(0,Ye.useBlockProps)();return"post"!==e&&"page"!==e?(0,qe.createElement)("div",{...r},(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:$m}),label:(0,Je.__)("Footnotes")})):a.length?(0,qe.createElement)("ol",{...r},a.map((({id:e,content:t})=>(0,qe.createElement)("li",{key:e,onMouseDown:e=>{e.target===e.currentTarget&&(e.target.firstElementChild.focus(),e.preventDefault())}},(0,qe.createElement)(Ye.RichText,{id:e,tagName:"span",value:t,identifier:e,onFocus:e=>{e.target.textContent.trim()||e.target.scrollIntoView()},onChange:t=>{o({...n,footnotes:JSON.stringify(a.map((n=>n.id===e?{content:t,id:e}:n)))})}})," ",(0,qe.createElement)("a",{href:`#${e}-link`},"↩︎"))))):(0,qe.createElement)("div",{...r},(0,qe.createElement)(Ke.Placeholder,{icon:(0,qe.createElement)(Ye.BlockIcon,{icon:$m}),label:(0,Je.__)("Footnotes"),instructions:(0,Je.__)("Footnotes found in blocks within this document will be displayed here.")}))}};(0,Cn.registerFormatType)(TE,PE);const RE=()=>{Qe({name:ME,metadata:IE,settings:zE})};var HE=n(7078),LE=n.n(HE);const AE=()=>[J,H,M,P,V,D,we,e,a,r,l,i,s,...window.wp&&window.wp.oldEditor?[c]:[],u,m,p,g,S,B,T,N,I,R,L,A,$,G,O,W,Q,K,Z,ge,he,Ce,Se,Be,Te,Ne,ze,Re,He,Le,Ve,$e,Ge,Oe,Ue,U,j,q,Pe,Me,Ie,_e,De,t,de,ie,se,re,Y,X,te,ne,ae,le,me,ce,ue,pe,fe,ye,ve,ke,be,Ee,d,h,_,b,f,y,v,E,x,w,C,k,oe,Ae,z,F,Fe,xe,ee].filter(Boolean).filter((({metadata:e})=>!LE()(e))),VE=(e=AE())=>{e.forEach((({init:e})=>e())),(0,je.setDefaultBlockName)(g_),window.wp&&window.wp.oldEditor&&(0,je.setFreeformContentHandlerName)(no),(0,je.setUnregisteredTypeHandlerName)(fd),(0,je.setGroupingBlockName)(tu)},DE=void 0}(),(window.wp=window.wp||{}).blockLibrary=o}();
\ No newline at end of file
-;// CONCATENATED MODULE: ./node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs
-function t(t){return t.split("-")[0]}function floating_ui_core_browser_min_e(t){return t.split("-")[1]}function floating_ui_core_browser_min_n(e){return["top","bottom"].includes(t(e))?"x":"y"}function r(t){return"y"===t?"height":"width"}function i(i,o,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=floating_ui_core_browser_min_n(o),m=r(u),g=l[m]/2-s[m]/2,d="x"===u;let p;switch(t(o)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y}}switch(floating_ui_core_browser_min_e(o)){case"start":p[u]-=g*(a&&d?-1:1);break;case"end":p[u]+=g*(a&&d?-1:1)}return p}const floating_ui_core_browser_min_o=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=i(c,r,s),m=r,g={},d=0;for(let n=0;n<a.length;n++){const{name:p,fn:h}=a[n],{x:y,y:x,data:w,reset:v}=await h({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=y?y:f,u=null!=x?x:u,g={...g,[p]:{...g[p],...w}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(m=v.placement),v.rects&&(c=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:o}):v.rects),({x:f,y:u}=i(c,m,s))),n=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:g}};function floating_ui_core_browser_min_a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function s(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:s,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:d=!1,padding:p=0}=e,h=floating_ui_core_browser_min_a(p),y=c[d?"floating"===g?"reference":"floating":g],x=l(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:f})),w=l(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===g?{...s.floating,x:r,y:i}:s.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(c.floating)),strategy:f}):s[g]);return{top:x.top-w.top+h.top,bottom:w.bottom-x.bottom+h.bottom,left:x.left-w.left+h.left,right:w.right-x.right+h.right}}const c=Math.min,f=Math.max;function u(t,e,n){return f(t,c(e,n))}const m=t=>({name:"arrow",options:t,async fn(i){const{element:o,padding:l=0}=null!=t?t:{},{x:s,y:c,placement:f,rects:m,platform:g}=i;if(null==o)return{};const d=floating_ui_core_browser_min_a(l),p={x:s,y:c},h=floating_ui_core_browser_min_n(f),y=floating_ui_core_browser_min_e(f),x=r(h),w=await g.getDimensions(o),v="y"===h?"top":"left",b="y"===h?"bottom":"right",R=m.reference[x]+m.reference[h]-p[h]-m.floating[x],A=p[h]-m.reference[h],P=await(null==g.getOffsetParent?void 0:g.getOffsetParent(o));let T=P?"y"===h?P.clientHeight||0:P.clientWidth||0:0;0===T&&(T=m.floating[x]);const O=R/2-A/2,L=d[v],D=T-w[x]-d[b],k=T/2-w[x]/2+O,E=u(L,k,D),C=("start"===y?d[v]:d[b])>0&&k!==E&&m.reference[x]<=m.floating[x];return{[h]:p[h]-(C?k<L?L-k:D-k:0),data:{[h]:E,centerOffset:k-E}}}}),g={left:"right",right:"left",bottom:"top",top:"bottom"};function d(t){return t.replace(/left|right|bottom|top/g,(t=>g[t]))}function p(t,i,o){void 0===o&&(o=!1);const a=floating_ui_core_browser_min_e(t),l=floating_ui_core_browser_min_n(t),s=r(l);let c="x"===l?a===(o?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=d(c)),{main:c,cross:d(c)}}const h={start:"end",end:"start"};function y(t){return t.replace(/start|end/g,(t=>h[t]))}const x=["top","right","bottom","left"],w=x.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]);const v=function(n){return void 0===n&&(n={}),{name:"autoPlacement",options:n,async fn(r){var i,o,a,l,c;const{x:f,y:u,rects:m,middlewareData:g,placement:d,platform:h,elements:x}=r,{alignment:v=null,allowedPlacements:b=w,autoAlignment:R=!0,...A}=n,P=function(n,r,i){return(n?[...i.filter((t=>floating_ui_core_browser_min_e(t)===n)),...i.filter((t=>floating_ui_core_browser_min_e(t)!==n))]:i.filter((e=>t(e)===e))).filter((t=>!n||floating_ui_core_browser_min_e(t)===n||!!r&&y(t)!==t))}(v,R,b),T=await s(r,A),O=null!=(i=null==(o=g.autoPlacement)?void 0:o.index)?i:0,L=P[O];if(null==L)return{};const{main:D,cross:k}=p(L,m,await(null==h.isRTL?void 0:h.isRTL(x.floating)));if(d!==L)return{x:f,y:u,reset:{placement:P[0]}};const E=[T[t(L)],T[D],T[k]],C=[...null!=(a=null==(l=g.autoPlacement)?void 0:l.overflows)?a:[],{placement:L,overflows:E}],H=P[O+1];if(H)return{data:{index:O+1,overflows:C},reset:{placement:H}};const B=C.slice().sort(((t,e)=>t.overflows[0]-e.overflows[0])),V=null==(c=B.find((t=>{let{overflows:e}=t;return e.every((t=>t<=0))})))?void 0:c.placement,F=null!=V?V:B[0].placement;return F!==d?{data:{index:O+1,overflows:C},reset:{placement:F}}:{}}}};const b=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:f}=n,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",flipAlignment:x=!0,...w}=e,v=t(i),b=g||(v===l||!x?[d(l)]:function(t){const e=d(t);return[y(t),e,y(e)]}(l)),R=[l,...b],A=await s(n,w),P=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&P.push(A[v]),m){const{main:t,cross:e}=p(i,a,await(null==c.isRTL?void 0:c.isRTL(f.floating)));P.push(A[t],A[e])}if(T=[...T,{placement:i,overflows:P}],!P.every((t=>t<=0))){var O,L;const t=(null!=(O=null==(L=o.flip)?void 0:L.index)?O:0)+1,e=R[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var D;const t=null==(D=T.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:D[0].placement;t&&(n=t);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};function R(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function A(t){return x.some((e=>t[e]>=0))}const P=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:r}=t;switch(e){case"referenceHidden":{const e=R(await s(t,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:A(e)}}}case"escaped":{const e=R(await s(t,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:A(e)}}}default:return{}}}}};const T=function(r){return void 0===r&&(r=0),{name:"offset",options:r,async fn(i){const{x:o,y:a}=i,l=await async function(r,i){const{placement:o,platform:a,elements:l}=r,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=t(o),f=floating_ui_core_browser_min_e(o),u="x"===floating_ui_core_browser_min_n(o),m=["left","top"].includes(c)?-1:1,g=s&&u?-1:1,d="function"==typeof i?i(r):i;let{mainAxis:p,crossAxis:h,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*g,y:p*m}:{x:p*m,y:h*g}}(i,r);return{x:o+l.x,y:a+l.y,data:l}}}};function O(t){return"x"===t?"y":"x"}const L=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:o,placement:a}=r,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=e,g={x:i,y:o},d=await s(r,m),p=floating_ui_core_browser_min_n(t(a)),h=O(p);let y=g[p],x=g[h];if(l){const t="y"===p?"bottom":"right";y=u(y+d["y"===p?"top":"left"],y,y-d[t])}if(c){const t="y"===h?"bottom":"right";x=u(x+d["y"===h?"top":"left"],x,x-d[t])}const w=f.fn({...r,[p]:y,[h]:x});return{...w,data:{x:w.x-i,y:w.y-o}}}}},D=function(e){return void 0===e&&(e={}),{options:e,fn(r){const{x:i,y:o,placement:a,rects:l,middlewareData:s}=r,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=e,m={x:i,y:o},g=floating_ui_core_browser_min_n(a),d=O(g);let p=m[g],h=m[d];const y="function"==typeof c?c(r):c,x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const t="y"===g?"height":"width",e=l.reference[g]-l.floating[t]+x.mainAxis,n=l.reference[g]+l.reference[t]-x.mainAxis;p<e?p=e:p>n&&(p=n)}if(u){var w,v,b,R;const e="y"===g?"width":"height",n=["top","left"].includes(t(a)),r=l.reference[d]-l.floating[e]+(n&&null!=(w=null==(v=s.offset)?void 0:v[d])?w:0)+(n?0:x.crossAxis),i=l.reference[d]+l.reference[e]+(n?0:null!=(b=null==(R=s.offset)?void 0:R[d])?b:0)-(n?x.crossAxis:0);h<r?h=r:h>i&&(h=i)}return{[g]:p,[d]:h}}}},k=function(n){return void 0===n&&(n={}),{name:"size",options:n,async fn(r){const{placement:i,rects:o,platform:a,elements:l}=r,{apply:c=(()=>{}),...u}=n,m=await s(r,u),g=t(i),d=floating_ui_core_browser_min_e(i);let p,h;"top"===g||"bottom"===g?(p=g,h=d===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=g,p="end"===d?"top":"bottom");const y=f(m.left,0),x=f(m.right,0),w=f(m.top,0),v=f(m.bottom,0),b={availableHeight:o.floating.height-(["left","right"].includes(i)?2*(0!==w||0!==v?w+v:f(m.top,m.bottom)):m[p]),availableWidth:o.floating.width-(["top","bottom"].includes(i)?2*(0!==y||0!==x?y+x:f(m.left,m.right)):m[h])};await c({...r,...b});const R=await a.getDimensions(l.floating);return o.floating.width!==R.width||o.floating.height!==R.height?{reset:{rects:!0}}:{}}}},E=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(r){var i;const{placement:o,elements:s,rects:u,platform:m,strategy:g}=r,{padding:d=2,x:p,y:h}=e,y=l(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u.reference,offsetParent:await(null==m.getOffsetParent?void 0:m.getOffsetParent(s.floating)),strategy:g}):u.reference),x=null!=(i=await(null==m.getClientRects?void 0:m.getClientRects(s.reference)))?i:[],w=floating_ui_core_browser_min_a(d);const v=await m.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===x.length&&x[0].left>x[1].right&&null!=p&&null!=h)return null!=(e=x.find((t=>p>t.left-w.left&&p<t.right+w.right&&h>t.top-w.top&&h<t.bottom+w.bottom)))?e:y;if(x.length>=2){if("x"===floating_ui_core_browser_min_n(o)){const e=x[0],n=x[x.length-1],r="top"===t(o),i=e.top,a=n.bottom,l=r?e.left:n.left,s=r?e.right:n.right;return{top:i,bottom:a,left:l,right:s,width:s-l,height:a-i,x:l,y:i}}const e="left"===t(o),r=f(...x.map((t=>t.right))),i=c(...x.map((t=>t.left))),a=x.filter((t=>e?t.left===i:t.right===r)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:i,right:r,width:r-i,height:s-l,x:i,y:l}}return y}},floating:s.floating,strategy:g});return u.reference.x!==v.reference.x||u.reference.y!==v.reference.y||u.reference.width!==v.reference.width||u.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}};
+;// CONCATENATED MODULE: ./node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
+const floating_ui_utils_sides = (/* unused pure expression or super */ null && (['top', 'right', 'bottom', 'left']));
+const alignments = (/* unused pure expression or super */ null && (['start', 'end']));
+const floating_ui_utils_placements = /*#__PURE__*/(/* unused pure expression or super */ null && (floating_ui_utils_sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), [])));
+const floating_ui_utils_min = Math.min;
+const floating_ui_utils_max = Math.max;
+const round = Math.round;
+const floor = Math.floor;
+const createCoords = v => ({
+ x: v,
+ y: v
+});
+const oppositeSideMap = {
+ left: 'right',
+ right: 'left',
+ bottom: 'top',
+ top: 'bottom'
+};
+const oppositeAlignmentMap = {
+ start: 'end',
+ end: 'start'
+};
+function clamp(start, value, end) {
+ return floating_ui_utils_max(start, floating_ui_utils_min(value, end));
+}
+function floating_ui_utils_evaluate(value, param) {
+ return typeof value === 'function' ? value(param) : value;
+}
+function floating_ui_utils_getSide(placement) {
+ return placement.split('-')[0];
+}
+function floating_ui_utils_getAlignment(placement) {
+ return placement.split('-')[1];
+}
+function floating_ui_utils_getOppositeAxis(axis) {
+ return axis === 'x' ? 'y' : 'x';
+}
+function getAxisLength(axis) {
+ return axis === 'y' ? 'height' : 'width';
+}
+function floating_ui_utils_getSideAxis(placement) {
+ return ['top', 'bottom'].includes(floating_ui_utils_getSide(placement)) ? 'y' : 'x';
+}
+function getAlignmentAxis(placement) {
+ return floating_ui_utils_getOppositeAxis(floating_ui_utils_getSideAxis(placement));
+}
+function floating_ui_utils_getAlignmentSides(placement, rects, rtl) {
+ if (rtl === void 0) {
+ rtl = false;
+ }
+ const alignment = floating_ui_utils_getAlignment(placement);
+ const alignmentAxis = getAlignmentAxis(placement);
+ const length = getAxisLength(alignmentAxis);
+ let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
+ if (rects.reference[length] > rects.floating[length]) {
+ mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
+ }
+ return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
+}
+function getExpandedPlacements(placement) {
+ const oppositePlacement = getOppositePlacement(placement);
+ return [floating_ui_utils_getOppositeAlignmentPlacement(placement), oppositePlacement, floating_ui_utils_getOppositeAlignmentPlacement(oppositePlacement)];
+}
+function floating_ui_utils_getOppositeAlignmentPlacement(placement) {
+ return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
+}
+function getSideList(side, isStart, rtl) {
+ const lr = ['left', 'right'];
+ const rl = ['right', 'left'];
+ const tb = ['top', 'bottom'];
+ const bt = ['bottom', 'top'];
+ switch (side) {
+ case 'top':
+ case 'bottom':
+ if (rtl) return isStart ? rl : lr;
+ return isStart ? lr : rl;
+ case 'left':
+ case 'right':
+ return isStart ? tb : bt;
+ default:
+ return [];
+ }
+}
+function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
+ const alignment = floating_ui_utils_getAlignment(placement);
+ let list = getSideList(floating_ui_utils_getSide(placement), direction === 'start', rtl);
+ if (alignment) {
+ list = list.map(side => side + "-" + alignment);
+ if (flipAlignment) {
+ list = list.concat(list.map(floating_ui_utils_getOppositeAlignmentPlacement));
+ }
+ }
+ return list;
+}
+function getOppositePlacement(placement) {
+ return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
+}
+function expandPaddingObject(padding) {
+ return {
+ top: 0,
+ right: 0,
+ bottom: 0,
+ left: 0,
+ ...padding
+ };
+}
+function floating_ui_utils_getPaddingObject(padding) {
+ return typeof padding !== 'number' ? expandPaddingObject(padding) : {
+ top: padding,
+ right: padding,
+ bottom: padding,
+ left: padding
+ };
+}
+function floating_ui_utils_rectToClientRect(rect) {
+ return {
+ ...rect,
+ top: rect.y,
+ left: rect.x,
+ right: rect.x + rect.width,
+ bottom: rect.y + rect.height
+ };
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/@floating-ui/core/dist/floating-ui.core.mjs
+
+
+
+function computeCoordsFromPlacement(_ref, placement, rtl) {
+ let {
+ reference,
+ floating
+ } = _ref;
+ const sideAxis = floating_ui_utils_getSideAxis(placement);
+ const alignmentAxis = getAlignmentAxis(placement);
+ const alignLength = getAxisLength(alignmentAxis);
+ const side = floating_ui_utils_getSide(placement);
+ const isVertical = sideAxis === 'y';
+ const commonX = reference.x + reference.width / 2 - floating.width / 2;
+ const commonY = reference.y + reference.height / 2 - floating.height / 2;
+ const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
+ let coords;
+ switch (side) {
+ case 'top':
+ coords = {
+ x: commonX,
+ y: reference.y - floating.height
+ };
+ break;
+ case 'bottom':
+ coords = {
+ x: commonX,
+ y: reference.y + reference.height
+ };
+ break;
+ case 'right':
+ coords = {
+ x: reference.x + reference.width,
+ y: commonY
+ };
+ break;
+ case 'left':
+ coords = {
+ x: reference.x - floating.width,
+ y: commonY
+ };
+ break;
+ default:
+ coords = {
+ x: reference.x,
+ y: reference.y
+ };
+ }
+ switch (floating_ui_utils_getAlignment(placement)) {
+ case 'start':
+ coords[alignmentAxis] -= commonAlign * (rtl && isVertical ? -1 : 1);
+ break;
+ case 'end':
+ coords[alignmentAxis] += commonAlign * (rtl && isVertical ? -1 : 1);
+ break;
+ }
+ return coords;
+}
+
+/**
+ * Computes the `x` and `y` coordinates that will place the floating element
+ * next to a reference element when it is given a certain positioning strategy.
+ *
+ * This export does not have any `platform` interface logic. You will need to
+ * write one for the platform you are using Floating UI with.
+ */
+const computePosition = async (reference, floating, config) => {
+ const {
+ placement = 'bottom',
+ strategy = 'absolute',
+ middleware = [],
+ platform
+ } = config;
+ const validMiddleware = middleware.filter(Boolean);
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(floating));
+ let rects = await platform.getElementRects({
+ reference,
+ floating,
+ strategy
+ });
+ let {
+ x,
+ y
+ } = computeCoordsFromPlacement(rects, placement, rtl);
+ let statefulPlacement = placement;
+ let middlewareData = {};
+ let resetCount = 0;
+ for (let i = 0; i < validMiddleware.length; i++) {
+ const {
+ name,
+ fn
+ } = validMiddleware[i];
+ const {
+ x: nextX,
+ y: nextY,
+ data,
+ reset
+ } = await fn({
+ x,
+ y,
+ initialPlacement: placement,
+ placement: statefulPlacement,
+ strategy,
+ middlewareData,
+ rects,
+ platform,
+ elements: {
+ reference,
+ floating
+ }
+ });
+ x = nextX != null ? nextX : x;
+ y = nextY != null ? nextY : y;
+ middlewareData = {
+ ...middlewareData,
+ [name]: {
+ ...middlewareData[name],
+ ...data
+ }
+ };
+ if (reset && resetCount <= 50) {
+ resetCount++;
+ if (typeof reset === 'object') {
+ if (reset.placement) {
+ statefulPlacement = reset.placement;
+ }
+ if (reset.rects) {
+ rects = reset.rects === true ? await platform.getElementRects({
+ reference,
+ floating,
+ strategy
+ }) : reset.rects;
+ }
+ ({
+ x,
+ y
+ } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
+ }
+ i = -1;
+ continue;
+ }
+ }
+ return {
+ x,
+ y,
+ placement: statefulPlacement,
+ strategy,
+ middlewareData
+ };
+};
+
+/**
+ * Resolves with an object of overflow side offsets that determine how much the
+ * element is overflowing a given clipping boundary on each side.
+ * - positive = overflowing the boundary by that number of pixels
+ * - negative = how many pixels left before it will overflow
+ * - 0 = lies flush with the boundary
+ * @see https://floating-ui.com/docs/detectOverflow
+ */
+async function detectOverflow(state, options) {
+ var _await$platform$isEle;
+ if (options === void 0) {
+ options = {};
+ }
+ const {
+ x,
+ y,
+ platform,
+ rects,
+ elements,
+ strategy
+ } = state;
+ const {
+ boundary = 'clippingAncestors',
+ rootBoundary = 'viewport',
+ elementContext = 'floating',
+ altBoundary = false,
+ padding = 0
+ } = floating_ui_utils_evaluate(options, state);
+ const paddingObject = floating_ui_utils_getPaddingObject(padding);
+ const altContext = elementContext === 'floating' ? 'reference' : 'floating';
+ const element = elements[altBoundary ? altContext : elementContext];
+ const clippingClientRect = floating_ui_utils_rectToClientRect(await platform.getClippingRect({
+ element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
+ boundary,
+ rootBoundary,
+ strategy
+ }));
+ const rect = elementContext === 'floating' ? {
+ ...rects.floating,
+ x,
+ y
+ } : rects.reference;
+ const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
+ const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
+ x: 1,
+ y: 1
+ } : {
+ x: 1,
+ y: 1
+ };
+ const elementClientRect = floating_ui_utils_rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
+ rect,
+ offsetParent,
+ strategy
+ }) : rect);
+ return {
+ top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
+ bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
+ left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
+ right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
+ };
+}
+
+/**
+ * Provides data to position an inner element of the floating element so that it
+ * appears centered to the reference element.
+ * @see https://floating-ui.com/docs/arrow
+ */
+const arrow = options => ({
+ name: 'arrow',
+ options,
+ async fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ rects,
+ platform,
+ elements,
+ middlewareData
+ } = state;
+ // Since `element` is required, we don't Partial<> the type.
+ const {
+ element,
+ padding = 0
+ } = floating_ui_utils_evaluate(options, state) || {};
+ if (element == null) {
+ return {};
+ }
+ const paddingObject = floating_ui_utils_getPaddingObject(padding);
+ const coords = {
+ x,
+ y
+ };
+ const axis = getAlignmentAxis(placement);
+ const length = getAxisLength(axis);
+ const arrowDimensions = await platform.getDimensions(element);
+ const isYAxis = axis === 'y';
+ const minProp = isYAxis ? 'top' : 'left';
+ const maxProp = isYAxis ? 'bottom' : 'right';
+ const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
+ const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
+ const startDiff = coords[axis] - rects.reference[axis];
+ const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
+ let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
+
+ // DOM platform can return `window` as the `offsetParent`.
+ if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
+ clientSize = elements.floating[clientProp] || rects.floating[length];
+ }
+ const centerToReference = endDiff / 2 - startDiff / 2;
+
+ // If the padding is large enough that it causes the arrow to no longer be
+ // centered, modify the padding so that it is centered.
+ const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
+ const minPadding = floating_ui_utils_min(paddingObject[minProp], largestPossiblePadding);
+ const maxPadding = floating_ui_utils_min(paddingObject[maxProp], largestPossiblePadding);
+
+ // Make sure the arrow doesn't overflow the floating element if the center
+ // point is outside the floating element's bounds.
+ const min$1 = minPadding;
+ const max = clientSize - arrowDimensions[length] - maxPadding;
+ const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
+ const offset = clamp(min$1, center, max);
+
+ // If the reference is small enough that the arrow's padding causes it to
+ // to point to nothing for an aligned placement, adjust the offset of the
+ // floating element itself. To ensure `shift()` continues to take action,
+ // a single reset is performed when this is true.
+ const shouldAddOffset = !middlewareData.arrow && floating_ui_utils_getAlignment(placement) != null && center != offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
+ const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
+ return {
+ [axis]: coords[axis] + alignmentOffset,
+ data: {
+ [axis]: offset,
+ centerOffset: center - offset - alignmentOffset,
+ ...(shouldAddOffset && {
+ alignmentOffset
+ })
+ },
+ reset: shouldAddOffset
+ };
+ }
+});
+
+function getPlacementList(alignment, autoAlignment, allowedPlacements) {
+ const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
+ return allowedPlacementsSortedByAlignment.filter(placement => {
+ if (alignment) {
+ return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
+ }
+ return true;
+ });
+}
+/**
+ * Optimizes the visibility of the floating element by choosing the placement
+ * that has the most space available automatically, without needing to specify a
+ * preferred placement. Alternative to `flip`.
+ * @see https://floating-ui.com/docs/autoPlacement
+ */
+const autoPlacement = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'autoPlacement',
+ options,
+ async fn(state) {
+ var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
+ const {
+ rects,
+ middlewareData,
+ placement,
+ platform,
+ elements
+ } = state;
+ const {
+ crossAxis = false,
+ alignment,
+ allowedPlacements = placements,
+ autoAlignment = true,
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
+ const overflow = await detectOverflow(state, detectOverflowOptions);
+ const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
+ const currentPlacement = placements$1[currentIndex];
+ if (currentPlacement == null) {
+ return {};
+ }
+ const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
+
+ // Make `computeCoords` start from the right place.
+ if (placement !== currentPlacement) {
+ return {
+ reset: {
+ placement: placements$1[0]
+ }
+ };
+ }
+ const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
+ const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
+ placement: currentPlacement,
+ overflows: currentOverflows
+ }];
+ const nextPlacement = placements$1[currentIndex + 1];
+
+ // There are more placements to check.
+ if (nextPlacement) {
+ return {
+ data: {
+ index: currentIndex + 1,
+ overflows: allOverflows
+ },
+ reset: {
+ placement: nextPlacement
+ }
+ };
+ }
+ const placementsSortedByMostSpace = allOverflows.map(d => {
+ const alignment = getAlignment(d.placement);
+ return [d.placement, alignment && crossAxis ?
+ // Check along the mainAxis and main crossAxis side.
+ d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
+ // Check only the mainAxis.
+ d.overflows[0], d.overflows];
+ }).sort((a, b) => a[1] - b[1]);
+ const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
+ // Aligned placements should not check their opposite crossAxis
+ // side.
+ getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
+ const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
+ if (resetPlacement !== placement) {
+ return {
+ data: {
+ index: currentIndex + 1,
+ overflows: allOverflows
+ },
+ reset: {
+ placement: resetPlacement
+ }
+ };
+ }
+ return {};
+ }
+ };
+};
+
+/**
+ * Optimizes the visibility of the floating element by flipping the `placement`
+ * in order to keep it in view when the preferred placement(s) will overflow the
+ * clipping boundary. Alternative to `autoPlacement`.
+ * @see https://floating-ui.com/docs/flip
+ */
+const floating_ui_core_flip = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'flip',
+ options,
+ async fn(state) {
+ var _middlewareData$arrow, _middlewareData$flip;
+ const {
+ placement,
+ middlewareData,
+ rects,
+ initialPlacement,
+ platform,
+ elements
+ } = state;
+ const {
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = true,
+ fallbackPlacements: specifiedFallbackPlacements,
+ fallbackStrategy = 'bestFit',
+ fallbackAxisSideDirection = 'none',
+ flipAlignment = true,
+ ...detectOverflowOptions
+ } = floating_ui_utils_evaluate(options, state);
+
+ // If a reset by the arrow was caused due to an alignment offset being
+ // added, we should skip any logic now since `flip()` has already done its
+ // work.
+ // https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
+ if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
+ return {};
+ }
+ const side = floating_ui_utils_getSide(placement);
+ const isBasePlacement = floating_ui_utils_getSide(initialPlacement) === initialPlacement;
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
+ const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
+ if (!specifiedFallbackPlacements && fallbackAxisSideDirection !== 'none') {
+ fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
+ }
+ const placements = [initialPlacement, ...fallbackPlacements];
+ const overflow = await detectOverflow(state, detectOverflowOptions);
+ const overflows = [];
+ let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
+ if (checkMainAxis) {
+ overflows.push(overflow[side]);
+ }
+ if (checkCrossAxis) {
+ const sides = floating_ui_utils_getAlignmentSides(placement, rects, rtl);
+ overflows.push(overflow[sides[0]], overflow[sides[1]]);
+ }
+ overflowsData = [...overflowsData, {
+ placement,
+ overflows
+ }];
+
+ // One or more sides is overflowing.
+ if (!overflows.every(side => side <= 0)) {
+ var _middlewareData$flip2, _overflowsData$filter;
+ const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
+ const nextPlacement = placements[nextIndex];
+ if (nextPlacement) {
+ // Try next placement and re-run the lifecycle.
+ return {
+ data: {
+ index: nextIndex,
+ overflows: overflowsData
+ },
+ reset: {
+ placement: nextPlacement
+ }
+ };
+ }
+
+ // First, find the candidates that fit on the mainAxis side of overflow,
+ // then find the placement that fits the best on the main crossAxis side.
+ let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
+
+ // Otherwise fallback.
+ if (!resetPlacement) {
+ switch (fallbackStrategy) {
+ case 'bestFit':
+ {
+ var _overflowsData$map$so;
+ const placement = (_overflowsData$map$so = overflowsData.map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$map$so[0];
+ if (placement) {
+ resetPlacement = placement;
+ }
+ break;
+ }
+ case 'initialPlacement':
+ resetPlacement = initialPlacement;
+ break;
+ }
+ }
+ if (placement !== resetPlacement) {
+ return {
+ reset: {
+ placement: resetPlacement
+ }
+ };
+ }
+ }
+ return {};
+ }
+ };
+};
+
+function getSideOffsets(overflow, rect) {
+ return {
+ top: overflow.top - rect.height,
+ right: overflow.right - rect.width,
+ bottom: overflow.bottom - rect.height,
+ left: overflow.left - rect.width
+ };
+}
+function isAnySideFullyClipped(overflow) {
+ return sides.some(side => overflow[side] >= 0);
+}
+/**
+ * Provides data to hide the floating element in applicable situations, such as
+ * when it is not in the same clipping context as the reference element.
+ * @see https://floating-ui.com/docs/hide
+ */
+const hide = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'hide',
+ options,
+ async fn(state) {
+ const {
+ rects
+ } = state;
+ const {
+ strategy = 'referenceHidden',
+ ...detectOverflowOptions
+ } = evaluate(options, state);
+ switch (strategy) {
+ case 'referenceHidden':
+ {
+ const overflow = await detectOverflow(state, {
+ ...detectOverflowOptions,
+ elementContext: 'reference'
+ });
+ const offsets = getSideOffsets(overflow, rects.reference);
+ return {
+ data: {
+ referenceHiddenOffsets: offsets,
+ referenceHidden: isAnySideFullyClipped(offsets)
+ }
+ };
+ }
+ case 'escaped':
+ {
+ const overflow = await detectOverflow(state, {
+ ...detectOverflowOptions,
+ altBoundary: true
+ });
+ const offsets = getSideOffsets(overflow, rects.floating);
+ return {
+ data: {
+ escapedOffsets: offsets,
+ escaped: isAnySideFullyClipped(offsets)
+ }
+ };
+ }
+ default:
+ {
+ return {};
+ }
+ }
+ }
+ };
+};
+
+function getBoundingRect(rects) {
+ const minX = min(...rects.map(rect => rect.left));
+ const minY = min(...rects.map(rect => rect.top));
+ const maxX = max(...rects.map(rect => rect.right));
+ const maxY = max(...rects.map(rect => rect.bottom));
+ return {
+ x: minX,
+ y: minY,
+ width: maxX - minX,
+ height: maxY - minY
+ };
+}
+function getRectsByLine(rects) {
+ const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
+ const groups = [];
+ let prevRect = null;
+ for (let i = 0; i < sortedRects.length; i++) {
+ const rect = sortedRects[i];
+ if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
+ groups.push([rect]);
+ } else {
+ groups[groups.length - 1].push(rect);
+ }
+ prevRect = rect;
+ }
+ return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
+}
+/**
+ * Provides improved positioning for inline reference elements that can span
+ * over multiple lines, such as hyperlinks or range selections.
+ * @see https://floating-ui.com/docs/inline
+ */
+const inline = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'inline',
+ options,
+ async fn(state) {
+ const {
+ placement,
+ elements,
+ rects,
+ platform,
+ strategy
+ } = state;
+ // A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
+ // ClientRect's bounds, despite the event listener being triggered. A
+ // padding of 2 seems to handle this issue.
+ const {
+ padding = 2,
+ x,
+ y
+ } = evaluate(options, state);
+ const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
+ const clientRects = getRectsByLine(nativeClientRects);
+ const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
+ const paddingObject = getPaddingObject(padding);
+ function getBoundingClientRect() {
+ // There are two rects and they are disjoined.
+ if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
+ // Find the first rect in which the point is fully inside.
+ return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
+ }
+
+ // There are 2 or more connected rects.
+ if (clientRects.length >= 2) {
+ if (getSideAxis(placement) === 'y') {
+ const firstRect = clientRects[0];
+ const lastRect = clientRects[clientRects.length - 1];
+ const isTop = getSide(placement) === 'top';
+ const top = firstRect.top;
+ const bottom = lastRect.bottom;
+ const left = isTop ? firstRect.left : lastRect.left;
+ const right = isTop ? firstRect.right : lastRect.right;
+ const width = right - left;
+ const height = bottom - top;
+ return {
+ top,
+ bottom,
+ left,
+ right,
+ width,
+ height,
+ x: left,
+ y: top
+ };
+ }
+ const isLeftSide = getSide(placement) === 'left';
+ const maxRight = max(...clientRects.map(rect => rect.right));
+ const minLeft = min(...clientRects.map(rect => rect.left));
+ const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
+ const top = measureRects[0].top;
+ const bottom = measureRects[measureRects.length - 1].bottom;
+ const left = minLeft;
+ const right = maxRight;
+ const width = right - left;
+ const height = bottom - top;
+ return {
+ top,
+ bottom,
+ left,
+ right,
+ width,
+ height,
+ x: left,
+ y: top
+ };
+ }
+ return fallback;
+ }
+ const resetRects = await platform.getElementRects({
+ reference: {
+ getBoundingClientRect
+ },
+ floating: elements.floating,
+ strategy
+ });
+ if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
+ return {
+ reset: {
+ rects: resetRects
+ }
+ };
+ }
+ return {};
+ }
+ };
+};
+
+// For type backwards-compatibility, the `OffsetOptions` type was also
+// Derivable.
+async function convertValueToCoords(state, options) {
+ const {
+ placement,
+ platform,
+ elements
+ } = state;
+ const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
+ const side = floating_ui_utils_getSide(placement);
+ const alignment = floating_ui_utils_getAlignment(placement);
+ const isVertical = floating_ui_utils_getSideAxis(placement) === 'y';
+ const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
+ const crossAxisMulti = rtl && isVertical ? -1 : 1;
+ const rawValue = floating_ui_utils_evaluate(options, state);
+
+ // eslint-disable-next-line prefer-const
+ let {
+ mainAxis,
+ crossAxis,
+ alignmentAxis
+ } = typeof rawValue === 'number' ? {
+ mainAxis: rawValue,
+ crossAxis: 0,
+ alignmentAxis: null
+ } : {
+ mainAxis: 0,
+ crossAxis: 0,
+ alignmentAxis: null,
+ ...rawValue
+ };
+ if (alignment && typeof alignmentAxis === 'number') {
+ crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
+ }
+ return isVertical ? {
+ x: crossAxis * crossAxisMulti,
+ y: mainAxis * mainAxisMulti
+ } : {
+ x: mainAxis * mainAxisMulti,
+ y: crossAxis * crossAxisMulti
+ };
+}
+
+/**
+ * Modifies the placement by translating the floating element along the
+ * specified axes.
+ * A number (shorthand for `mainAxis` or distance), or an axes configuration
+ * object may be passed.
+ * @see https://floating-ui.com/docs/offset
+ */
+const offset = function (options) {
+ if (options === void 0) {
+ options = 0;
+ }
+ return {
+ name: 'offset',
+ options,
+ async fn(state) {
+ const {
+ x,
+ y
+ } = state;
+ const diffCoords = await convertValueToCoords(state, options);
+ return {
+ x: x + diffCoords.x,
+ y: y + diffCoords.y,
+ data: diffCoords
+ };
+ }
+ };
+};
+
+/**
+ * Optimizes the visibility of the floating element by shifting it in order to
+ * keep it in view when it will overflow the clipping boundary.
+ * @see https://floating-ui.com/docs/shift
+ */
+const floating_ui_core_shift = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'shift',
+ options,
+ async fn(state) {
+ const {
+ x,
+ y,
+ placement
+ } = state;
+ const {
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = false,
+ limiter = {
+ fn: _ref => {
+ let {
+ x,
+ y
+ } = _ref;
+ return {
+ x,
+ y
+ };
+ }
+ },
+ ...detectOverflowOptions
+ } = floating_ui_utils_evaluate(options, state);
+ const coords = {
+ x,
+ y
+ };
+ const overflow = await detectOverflow(state, detectOverflowOptions);
+ const crossAxis = floating_ui_utils_getSideAxis(floating_ui_utils_getSide(placement));
+ const mainAxis = floating_ui_utils_getOppositeAxis(crossAxis);
+ let mainAxisCoord = coords[mainAxis];
+ let crossAxisCoord = coords[crossAxis];
+ if (checkMainAxis) {
+ const minSide = mainAxis === 'y' ? 'top' : 'left';
+ const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
+ const min = mainAxisCoord + overflow[minSide];
+ const max = mainAxisCoord - overflow[maxSide];
+ mainAxisCoord = clamp(min, mainAxisCoord, max);
+ }
+ if (checkCrossAxis) {
+ const minSide = crossAxis === 'y' ? 'top' : 'left';
+ const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
+ const min = crossAxisCoord + overflow[minSide];
+ const max = crossAxisCoord - overflow[maxSide];
+ crossAxisCoord = clamp(min, crossAxisCoord, max);
+ }
+ const limitedCoords = limiter.fn({
+ ...state,
+ [mainAxis]: mainAxisCoord,
+ [crossAxis]: crossAxisCoord
+ });
+ return {
+ ...limitedCoords,
+ data: {
+ x: limitedCoords.x - x,
+ y: limitedCoords.y - y
+ }
+ };
+ }
+ };
+};
+/**
+ * Built-in `limiter` that will stop `shift()` at a certain point.
+ */
+const limitShift = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ options,
+ fn(state) {
+ const {
+ x,
+ y,
+ placement,
+ rects,
+ middlewareData
+ } = state;
+ const {
+ offset = 0,
+ mainAxis: checkMainAxis = true,
+ crossAxis: checkCrossAxis = true
+ } = evaluate(options, state);
+ const coords = {
+ x,
+ y
+ };
+ const crossAxis = getSideAxis(placement);
+ const mainAxis = getOppositeAxis(crossAxis);
+ let mainAxisCoord = coords[mainAxis];
+ let crossAxisCoord = coords[crossAxis];
+ const rawOffset = evaluate(offset, state);
+ const computedOffset = typeof rawOffset === 'number' ? {
+ mainAxis: rawOffset,
+ crossAxis: 0
+ } : {
+ mainAxis: 0,
+ crossAxis: 0,
+ ...rawOffset
+ };
+ if (checkMainAxis) {
+ const len = mainAxis === 'y' ? 'height' : 'width';
+ const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
+ const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
+ if (mainAxisCoord < limitMin) {
+ mainAxisCoord = limitMin;
+ } else if (mainAxisCoord > limitMax) {
+ mainAxisCoord = limitMax;
+ }
+ }
+ if (checkCrossAxis) {
+ var _middlewareData$offse, _middlewareData$offse2;
+ const len = mainAxis === 'y' ? 'width' : 'height';
+ const isOriginSide = ['top', 'left'].includes(getSide(placement));
+ const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
+ const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
+ if (crossAxisCoord < limitMin) {
+ crossAxisCoord = limitMin;
+ } else if (crossAxisCoord > limitMax) {
+ crossAxisCoord = limitMax;
+ }
+ }
+ return {
+ [mainAxis]: mainAxisCoord,
+ [crossAxis]: crossAxisCoord
+ };
+ }
+ };
+};
+
+/**
+ * Provides data that allows you to change the size of the floating element —
+ * for instance, prevent it from overflowing the clipping boundary or match the
+ * width of the reference element.
+ * @see https://floating-ui.com/docs/size
+ */
+const size = function (options) {
+ if (options === void 0) {
+ options = {};
+ }
+ return {
+ name: 'size',
+ options,
+ async fn(state) {
+ const {
+ placement,
+ rects,
+ platform,
+ elements
+ } = state;
+ const {
+ apply = () => {},
+ ...detectOverflowOptions
+ } = floating_ui_utils_evaluate(options, state);
+ const overflow = await detectOverflow(state, detectOverflowOptions);
+ const side = floating_ui_utils_getSide(placement);
+ const alignment = floating_ui_utils_getAlignment(placement);
+ const isYAxis = floating_ui_utils_getSideAxis(placement) === 'y';
+ const {
+ width,
+ height
+ } = rects.floating;
+ let heightSide;
+ let widthSide;
+ if (side === 'top' || side === 'bottom') {
+ heightSide = side;
+ widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
+ } else {
+ widthSide = side;
+ heightSide = alignment === 'end' ? 'top' : 'bottom';
+ }
+ const overflowAvailableHeight = height - overflow[heightSide];
+ const overflowAvailableWidth = width - overflow[widthSide];
+ const noShift = !state.middlewareData.shift;
+ let availableHeight = overflowAvailableHeight;
+ let availableWidth = overflowAvailableWidth;
+ if (isYAxis) {
+ const maximumClippingWidth = width - overflow.left - overflow.right;
+ availableWidth = alignment || noShift ? floating_ui_utils_min(overflowAvailableWidth, maximumClippingWidth) : maximumClippingWidth;
+ } else {
+ const maximumClippingHeight = height - overflow.top - overflow.bottom;
+ availableHeight = alignment || noShift ? floating_ui_utils_min(overflowAvailableHeight, maximumClippingHeight) : maximumClippingHeight;
+ }
+ if (noShift && !alignment) {
+ const xMin = floating_ui_utils_max(overflow.left, 0);
+ const xMax = floating_ui_utils_max(overflow.right, 0);
+ const yMin = floating_ui_utils_max(overflow.top, 0);
+ const yMax = floating_ui_utils_max(overflow.bottom, 0);
+ if (isYAxis) {
+ availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : floating_ui_utils_max(overflow.left, overflow.right));
+ } else {
+ availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : floating_ui_utils_max(overflow.top, overflow.bottom));
+ }
+ }
+ await apply({
+ ...state,
+ availableWidth,
+ availableHeight
+ });
+ const nextDimensions = await platform.getDimensions(elements.floating);
+ if (width !== nextDimensions.width || height !== nextDimensions.height) {
+ return {
+ reset: {
+ rects: true
+ }
+ };
+ }
+ return {};
+ }
+ };
+};
+
+
+
+;// CONCATENATED MODULE: ./node_modules/@floating-ui/utils/dom/dist/floating-ui.utils.dom.mjs
+function getNodeName(node) {
+ if (isNode(node)) {
+ return (node.nodeName || '').toLowerCase();
+ }
+ // Mocked nodes in testing environments may not be instances of Node. By
+ // returning `#document` an infinite loop won't occur.
+ // https://github.com/floating-ui/floating-ui/issues/2317
+ return '#document';
+}
+function floating_ui_utils_dom_getWindow(node) {
+ var _node$ownerDocument;
+ return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
+}
+function getDocumentElement(node) {
+ var _ref;
+ return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
+}
+function isNode(value) {
+ return value instanceof Node || value instanceof floating_ui_utils_dom_getWindow(value).Node;
+}
+function isElement(value) {
+ return value instanceof Element || value instanceof floating_ui_utils_dom_getWindow(value).Element;
+}
+function isHTMLElement(value) {
+ return value instanceof HTMLElement || value instanceof floating_ui_utils_dom_getWindow(value).HTMLElement;
+}
+function isShadowRoot(value) {
+ // Browsers without `ShadowRoot` support.
+ if (typeof ShadowRoot === 'undefined') {
+ return false;
+ }
+ return value instanceof ShadowRoot || value instanceof floating_ui_utils_dom_getWindow(value).ShadowRoot;
+}
+function isOverflowElement(element) {
+ const {
+ overflow,
+ overflowX,
+ overflowY,
+ display
+ } = floating_ui_utils_dom_getComputedStyle(element);
+ return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
+}
+function isTableElement(element) {
+ return ['table', 'td', 'th'].includes(getNodeName(element));
+}
+function isContainingBlock(element) {
+ const webkit = isWebKit();
+ const css = floating_ui_utils_dom_getComputedStyle(element);
+
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
+ return css.transform !== 'none' || css.perspective !== 'none' || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
+}
+function getContainingBlock(element) {
+ let currentNode = getParentNode(element);
+ while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
+ if (isContainingBlock(currentNode)) {
+ return currentNode;
+ } else {
+ currentNode = getParentNode(currentNode);
+ }
+ }
+ return null;
+}
+function isWebKit() {
+ if (typeof CSS === 'undefined' || !CSS.supports) return false;
+ return CSS.supports('-webkit-backdrop-filter', 'none');
+}
+function isLastTraversableNode(node) {
+ return ['html', 'body', '#document'].includes(getNodeName(node));
+}
+function floating_ui_utils_dom_getComputedStyle(element) {
+ return floating_ui_utils_dom_getWindow(element).getComputedStyle(element);
+}
+function getNodeScroll(element) {
+ if (isElement(element)) {
+ return {
+ scrollLeft: element.scrollLeft,
+ scrollTop: element.scrollTop
+ };
+ }
+ return {
+ scrollLeft: element.pageXOffset,
+ scrollTop: element.pageYOffset
+ };
+}
+function getParentNode(node) {
+ if (getNodeName(node) === 'html') {
+ return node;
+ }
+ const result =
+ // Step into the shadow DOM of the parent of a slotted node.
+ node.assignedSlot ||
+ // DOM Element detected.
+ node.parentNode ||
+ // ShadowRoot detected.
+ isShadowRoot(node) && node.host ||
+ // Fallback.
+ getDocumentElement(node);
+ return isShadowRoot(result) ? result.host : result;
+}
+function getNearestOverflowAncestor(node) {
+ const parentNode = getParentNode(node);
+ if (isLastTraversableNode(parentNode)) {
+ return node.ownerDocument ? node.ownerDocument.body : node.body;
+ }
+ if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
+ return parentNode;
+ }
+ return getNearestOverflowAncestor(parentNode);
+}
+function getOverflowAncestors(node, list, traverseIframes) {
+ var _node$ownerDocument2;
+ if (list === void 0) {
+ list = [];
+ }
+ if (traverseIframes === void 0) {
+ traverseIframes = true;
+ }
+ const scrollableAncestor = getNearestOverflowAncestor(node);
+ const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
+ const win = floating_ui_utils_dom_getWindow(scrollableAncestor);
+ if (isBody) {
+ return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
+ }
+ return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
+}
+
+
+
+;// CONCATENATED MODULE: ./node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
+
+
+
+
+
+
+function getCssDimensions(element) {
+ const css = floating_ui_utils_dom_getComputedStyle(element);
+ // In testing environments, the `width` and `height` properties are empty
+ // strings for SVG elements, returning NaN. Fallback to `0` in this case.
+ let width = parseFloat(css.width) || 0;
+ let height = parseFloat(css.height) || 0;
+ const hasOffset = isHTMLElement(element);
+ const offsetWidth = hasOffset ? element.offsetWidth : width;
+ const offsetHeight = hasOffset ? element.offsetHeight : height;
+ const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
+ if (shouldFallback) {
+ width = offsetWidth;
+ height = offsetHeight;
+ }
+ return {
+ width,
+ height,
+ $: shouldFallback
+ };
+}
+
+function unwrapElement(element) {
+ return !isElement(element) ? element.contextElement : element;
+}
+
+function getScale(element) {
+ const domElement = unwrapElement(element);
+ if (!isHTMLElement(domElement)) {
+ return createCoords(1);
+ }
+ const rect = domElement.getBoundingClientRect();
+ const {
+ width,
+ height,
+ $
+ } = getCssDimensions(domElement);
+ let x = ($ ? round(rect.width) : rect.width) / width;
+ let y = ($ ? round(rect.height) : rect.height) / height;
+
+ // 0, NaN, or Infinity should always fallback to 1.
+
+ if (!x || !Number.isFinite(x)) {
+ x = 1;
+ }
+ if (!y || !Number.isFinite(y)) {
+ y = 1;
+ }
+ return {
+ x,
+ y
+ };
+}
+
+const noOffsets = /*#__PURE__*/createCoords(0);
+function getVisualOffsets(element) {
+ const win = floating_ui_utils_dom_getWindow(element);
+ if (!isWebKit() || !win.visualViewport) {
+ return noOffsets;
+ }
+ return {
+ x: win.visualViewport.offsetLeft,
+ y: win.visualViewport.offsetTop
+ };
+}
+function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
+ if (isFixed === void 0) {
+ isFixed = false;
+ }
+ if (!floatingOffsetParent || isFixed && floatingOffsetParent !== floating_ui_utils_dom_getWindow(element)) {
+ return false;
+ }
+ return isFixed;
+}
+
+function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
+ if (includeScale === void 0) {
+ includeScale = false;
+ }
+ if (isFixedStrategy === void 0) {
+ isFixedStrategy = false;
+ }
+ const clientRect = element.getBoundingClientRect();
+ const domElement = unwrapElement(element);
+ let scale = createCoords(1);
+ if (includeScale) {
+ if (offsetParent) {
+ if (isElement(offsetParent)) {
+ scale = getScale(offsetParent);
+ }
+ } else {
+ scale = getScale(element);
+ }
+ }
+ const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
+ let x = (clientRect.left + visualOffsets.x) / scale.x;
+ let y = (clientRect.top + visualOffsets.y) / scale.y;
+ let width = clientRect.width / scale.x;
+ let height = clientRect.height / scale.y;
+ if (domElement) {
+ const win = floating_ui_utils_dom_getWindow(domElement);
+ const offsetWin = offsetParent && isElement(offsetParent) ? floating_ui_utils_dom_getWindow(offsetParent) : offsetParent;
+ let currentIFrame = win.frameElement;
+ while (currentIFrame && offsetParent && offsetWin !== win) {
+ const iframeScale = getScale(currentIFrame);
+ const iframeRect = currentIFrame.getBoundingClientRect();
+ const css = floating_ui_utils_dom_getComputedStyle(currentIFrame);
+ const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
+ const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
+ x *= iframeScale.x;
+ y *= iframeScale.y;
+ width *= iframeScale.x;
+ height *= iframeScale.y;
+ x += left;
+ y += top;
+ currentIFrame = floating_ui_utils_dom_getWindow(currentIFrame).frameElement;
+ }
+ }
+ return floating_ui_utils_rectToClientRect({
+ width,
+ height,
+ x,
+ y
+ });
+}
+
+function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
+ let {
+ rect,
+ offsetParent,
+ strategy
+ } = _ref;
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
+ const documentElement = getDocumentElement(offsetParent);
+ if (offsetParent === documentElement) {
+ return rect;
+ }
+ let scroll = {
+ scrollLeft: 0,
+ scrollTop: 0
+ };
+ let scale = createCoords(1);
+ const offsets = createCoords(0);
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && strategy !== 'fixed') {
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
+ scroll = getNodeScroll(offsetParent);
+ }
+ if (isHTMLElement(offsetParent)) {
+ const offsetRect = getBoundingClientRect(offsetParent);
+ scale = getScale(offsetParent);
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
+ offsets.y = offsetRect.y + offsetParent.clientTop;
+ }
+ }
+ return {
+ width: rect.width * scale.x,
+ height: rect.height * scale.y,
+ x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x,
+ y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y
+ };
+}
+
+function getClientRects(element) {
+ return Array.from(element.getClientRects());
+}
+
+function getWindowScrollBarX(element) {
+ // If <html> has a CSS width greater than the viewport, then this will be
+ // incorrect for RTL.
+ return getBoundingClientRect(getDocumentElement(element)).left + getNodeScroll(element).scrollLeft;
+}
+
+// Gets the entire size of the scrollable document area, even extending outside
+// of the `<html>` and `<body>` rect bounds if horizontally scrollable.
+function getDocumentRect(element) {
+ const html = getDocumentElement(element);
+ const scroll = getNodeScroll(element);
+ const body = element.ownerDocument.body;
+ const width = floating_ui_utils_max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
+ const height = floating_ui_utils_max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
+ let x = -scroll.scrollLeft + getWindowScrollBarX(element);
+ const y = -scroll.scrollTop;
+ if (floating_ui_utils_dom_getComputedStyle(body).direction === 'rtl') {
+ x += floating_ui_utils_max(html.clientWidth, body.clientWidth) - width;
+ }
+ return {
+ width,
+ height,
+ x,
+ y
+ };
+}
+
+function getViewportRect(element, strategy) {
+ const win = floating_ui_utils_dom_getWindow(element);
+ const html = getDocumentElement(element);
+ const visualViewport = win.visualViewport;
+ let width = html.clientWidth;
+ let height = html.clientHeight;
+ let x = 0;
+ let y = 0;
+ if (visualViewport) {
+ width = visualViewport.width;
+ height = visualViewport.height;
+ const visualViewportBased = isWebKit();
+ if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {
+ x = visualViewport.offsetLeft;
+ y = visualViewport.offsetTop;
+ }
+ }
+ return {
+ width,
+ height,
+ x,
+ y
+ };
+}
+
+// Returns the inner client rect, subtracting scrollbars if present.
+function getInnerBoundingClientRect(element, strategy) {
+ const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
+ const top = clientRect.top + element.clientTop;
+ const left = clientRect.left + element.clientLeft;
+ const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);
+ const width = element.clientWidth * scale.x;
+ const height = element.clientHeight * scale.y;
+ const x = left * scale.x;
+ const y = top * scale.y;
+ return {
+ width,
+ height,
+ x,
+ y
+ };
+}
+function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
+ let rect;
+ if (clippingAncestor === 'viewport') {
+ rect = getViewportRect(element, strategy);
+ } else if (clippingAncestor === 'document') {
+ rect = getDocumentRect(getDocumentElement(element));
+ } else if (isElement(clippingAncestor)) {
+ rect = getInnerBoundingClientRect(clippingAncestor, strategy);
+ } else {
+ const visualOffsets = getVisualOffsets(element);
+ rect = {
+ ...clippingAncestor,
+ x: clippingAncestor.x - visualOffsets.x,
+ y: clippingAncestor.y - visualOffsets.y
+ };
+ }
+ return floating_ui_utils_rectToClientRect(rect);
+}
+function hasFixedPositionAncestor(element, stopNode) {
+ const parentNode = getParentNode(element);
+ if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {
+ return false;
+ }
+ return floating_ui_utils_dom_getComputedStyle(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);
+}
+
+// A "clipping ancestor" is an `overflow` element with the characteristic of
+// clipping (or hiding) child elements. This returns all clipping ancestors
+// of the given element up the tree.
+function getClippingElementAncestors(element, cache) {
+ const cachedResult = cache.get(element);
+ if (cachedResult) {
+ return cachedResult;
+ }
+ let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');
+ let currentContainingBlockComputedStyle = null;
+ const elementIsFixed = floating_ui_utils_dom_getComputedStyle(element).position === 'fixed';
+ let currentNode = elementIsFixed ? getParentNode(element) : element;
+
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
+ while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
+ const computedStyle = floating_ui_utils_dom_getComputedStyle(currentNode);
+ const currentNodeIsContaining = isContainingBlock(currentNode);
+ if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
+ currentContainingBlockComputedStyle = null;
+ }
+ const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
+ if (shouldDropCurrentNode) {
+ // Drop non-containing blocks.
+ result = result.filter(ancestor => ancestor !== currentNode);
+ } else {
+ // Record last containing block for next iteration.
+ currentContainingBlockComputedStyle = computedStyle;
+ }
+ currentNode = getParentNode(currentNode);
+ }
+ cache.set(element, result);
+ return result;
+}
+
+// Gets the maximum area that the element is visible in due to any number of
+// clipping ancestors.
+function getClippingRect(_ref) {
+ let {
+ element,
+ boundary,
+ rootBoundary,
+ strategy
+ } = _ref;
+ const elementClippingAncestors = boundary === 'clippingAncestors' ? getClippingElementAncestors(element, this._c) : [].concat(boundary);
+ const clippingAncestors = [...elementClippingAncestors, rootBoundary];
+ const firstClippingAncestor = clippingAncestors[0];
+ const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {
+ const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);
+ accRect.top = floating_ui_utils_max(rect.top, accRect.top);
+ accRect.right = floating_ui_utils_min(rect.right, accRect.right);
+ accRect.bottom = floating_ui_utils_min(rect.bottom, accRect.bottom);
+ accRect.left = floating_ui_utils_max(rect.left, accRect.left);
+ return accRect;
+ }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));
+ return {
+ width: clippingRect.right - clippingRect.left,
+ height: clippingRect.bottom - clippingRect.top,
+ x: clippingRect.left,
+ y: clippingRect.top
+ };
+}
+
+function getDimensions(element) {
+ return getCssDimensions(element);
+}
+
+function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
+ const isOffsetParentAnElement = isHTMLElement(offsetParent);
+ const documentElement = getDocumentElement(offsetParent);
+ const isFixed = strategy === 'fixed';
+ const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
+ let scroll = {
+ scrollLeft: 0,
+ scrollTop: 0
+ };
+ const offsets = createCoords(0);
+ if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
+ if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
+ scroll = getNodeScroll(offsetParent);
+ }
+ if (isOffsetParentAnElement) {
+ const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
+ offsets.x = offsetRect.x + offsetParent.clientLeft;
+ offsets.y = offsetRect.y + offsetParent.clientTop;
+ } else if (documentElement) {
+ offsets.x = getWindowScrollBarX(documentElement);
+ }
+ }
+ return {
+ x: rect.left + scroll.scrollLeft - offsets.x,
+ y: rect.top + scroll.scrollTop - offsets.y,
+ width: rect.width,
+ height: rect.height
+ };
+}
+
+function getTrueOffsetParent(element, polyfill) {
+ if (!isHTMLElement(element) || floating_ui_utils_dom_getComputedStyle(element).position === 'fixed') {
+ return null;
+ }
+ if (polyfill) {
+ return polyfill(element);
+ }
+ return element.offsetParent;
+}
+
+// Gets the closest ancestor positioned element. Handles some edge cases,
+// such as table ancestors and cross browser bugs.
+function getOffsetParent(element, polyfill) {
+ const window = floating_ui_utils_dom_getWindow(element);
+ if (!isHTMLElement(element)) {
+ return window;
+ }
+ let offsetParent = getTrueOffsetParent(element, polyfill);
+ while (offsetParent && isTableElement(offsetParent) && floating_ui_utils_dom_getComputedStyle(offsetParent).position === 'static') {
+ offsetParent = getTrueOffsetParent(offsetParent, polyfill);
+ }
+ if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && floating_ui_utils_dom_getComputedStyle(offsetParent).position === 'static' && !isContainingBlock(offsetParent))) {
+ return window;
+ }
+ return offsetParent || getContainingBlock(element) || window;
+}
+
+const getElementRects = async function (_ref) {
+ let {
+ reference,
+ floating,
+ strategy
+ } = _ref;
+ const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
+ const getDimensionsFn = this.getDimensions;
+ return {
+ reference: getRectRelativeToOffsetParent(reference, await getOffsetParentFn(floating), strategy),
+ floating: {
+ x: 0,
+ y: 0,
+ ...(await getDimensionsFn(floating))
+ }
+ };
+};
+
+function isRTL(element) {
+ return floating_ui_utils_dom_getComputedStyle(element).direction === 'rtl';
+}
+
+const platform = {
+ convertOffsetParentRelativeRectToViewportRelativeRect,
+ getDocumentElement: getDocumentElement,
+ getClippingRect,
+ getOffsetParent,
+ getElementRects,
+ getClientRects,
+ getDimensions,
+ getScale,
+ isElement: isElement,
+ isRTL
+};
+
+// https://samthor.au/2021/observing-dom/
+function observeMove(element, onMove) {
+ let io = null;
+ let timeoutId;
+ const root = getDocumentElement(element);
+ function cleanup() {
+ clearTimeout(timeoutId);
+ io && io.disconnect();
+ io = null;
+ }
+ function refresh(skip, threshold) {
+ if (skip === void 0) {
+ skip = false;
+ }
+ if (threshold === void 0) {
+ threshold = 1;
+ }
+ cleanup();
+ const {
+ left,
+ top,
+ width,
+ height
+ } = element.getBoundingClientRect();
+ if (!skip) {
+ onMove();
+ }
+ if (!width || !height) {
+ return;
+ }
+ const insetTop = floor(top);
+ const insetRight = floor(root.clientWidth - (left + width));
+ const insetBottom = floor(root.clientHeight - (top + height));
+ const insetLeft = floor(left);
+ const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
+ const options = {
+ rootMargin,
+ threshold: floating_ui_utils_max(0, floating_ui_utils_min(1, threshold)) || 1
+ };
+ let isFirstUpdate = true;
+ function handleObserve(entries) {
+ const ratio = entries[0].intersectionRatio;
+ if (ratio !== threshold) {
+ if (!isFirstUpdate) {
+ return refresh();
+ }
+ if (!ratio) {
+ timeoutId = setTimeout(() => {
+ refresh(false, 1e-7);
+ }, 100);
+ } else {
+ refresh(false, ratio);
+ }
+ }
+ isFirstUpdate = false;
+ }
+
+ // Older browsers don't support a `document` as the root and will throw an
+ // error.
+ try {
+ io = new IntersectionObserver(handleObserve, {
+ ...options,
+ // Handle <iframe>s
+ root: root.ownerDocument
+ });
+ } catch (e) {
+ io = new IntersectionObserver(handleObserve, options);
+ }
+ io.observe(element);
+ }
+ refresh(true);
+ return cleanup;
+}
+
+/**
+ * Automatically updates the position of the floating element when necessary.
+ * Should only be called when the floating element is mounted on the DOM or
+ * visible on the screen.
+ * @returns cleanup function that should be invoked when the floating element is
+ * removed from the DOM or hidden from the screen.
+ * @see https://floating-ui.com/docs/autoUpdate
+ */
+function autoUpdate(reference, floating, update, options) {
+ if (options === void 0) {
+ options = {};
+ }
+ const {
+ ancestorScroll = true,
+ ancestorResize = true,
+ elementResize = typeof ResizeObserver === 'function',
+ layoutShift = typeof IntersectionObserver === 'function',
+ animationFrame = false
+ } = options;
+ const referenceEl = unwrapElement(reference);
+ const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
+ ancestors.forEach(ancestor => {
+ ancestorScroll && ancestor.addEventListener('scroll', update, {
+ passive: true
+ });
+ ancestorResize && ancestor.addEventListener('resize', update);
+ });
+ const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
+ let reobserveFrame = -1;
+ let resizeObserver = null;
+ if (elementResize) {
+ resizeObserver = new ResizeObserver(_ref => {
+ let [firstEntry] = _ref;
+ if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
+ // Prevent update loops when using the `size` middleware.
+ // https://github.com/floating-ui/floating-ui/issues/1740
+ resizeObserver.unobserve(floating);
+ cancelAnimationFrame(reobserveFrame);
+ reobserveFrame = requestAnimationFrame(() => {
+ resizeObserver && resizeObserver.observe(floating);
+ });
+ }
+ update();
+ });
+ if (referenceEl && !animationFrame) {
+ resizeObserver.observe(referenceEl);
+ }
+ resizeObserver.observe(floating);
+ }
+ let frameId;
+ let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
+ if (animationFrame) {
+ frameLoop();
+ }
+ function frameLoop() {
+ const nextRefRect = getBoundingClientRect(reference);
+ if (prevRefRect && (nextRefRect.x !== prevRefRect.x || nextRefRect.y !== prevRefRect.y || nextRefRect.width !== prevRefRect.width || nextRefRect.height !== prevRefRect.height)) {
+ update();
+ }
+ prevRefRect = nextRefRect;
+ frameId = requestAnimationFrame(frameLoop);
+ }
+ update();
+ return () => {
+ ancestors.forEach(ancestor => {
+ ancestorScroll && ancestor.removeEventListener('scroll', update);
+ ancestorResize && ancestor.removeEventListener('resize', update);
+ });
+ cleanupIo && cleanupIo();
+ resizeObserver && resizeObserver.disconnect();
+ resizeObserver = null;
+ if (animationFrame) {
+ cancelAnimationFrame(frameId);
+ }
+ };
+}
+
+/**
+ * Computes the `x` and `y` coordinates that will place the floating element
+ * next to a reference element when it is given a certain CSS positioning
+ * strategy.
+ */
+const floating_ui_dom_computePosition = (reference, floating, options) => {
+ // This caches the expensive `getClippingElementAncestors` function so that
+ // multiple lifecycle resets re-use the same result. It only lives for a
+ // single call. If other functions become expensive, we can add them as well.
+ const cache = new Map();
+ const mergedOptions = {
+ platform,
+ ...options
+ };
+ const platformWithCache = {
+ ...mergedOptions.platform,
+ _c: cache
+ };
+ return computePosition(reference, floating, {
+ ...mergedOptions,
+ platform: platformWithCache
+ });
+};
+
-;// CONCATENATED MODULE: ./node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs
-function floating_ui_dom_browser_min_n(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function floating_ui_dom_browser_min_o(t){if(null==t)return window;if(!floating_ui_dom_browser_min_n(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function floating_ui_dom_browser_min_i(t){return floating_ui_dom_browser_min_o(t).getComputedStyle(t)}function floating_ui_dom_browser_min_r(t){return floating_ui_dom_browser_min_n(t)?"":t?(t.nodeName||"").toLowerCase():""}function floating_ui_dom_browser_min_l(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function floating_ui_dom_browser_min_c(t){return t instanceof floating_ui_dom_browser_min_o(t).HTMLElement}function floating_ui_dom_browser_min_s(t){return t instanceof floating_ui_dom_browser_min_o(t).Element}function floating_ui_dom_browser_min_f(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof floating_ui_dom_browser_min_o(t).ShadowRoot||t instanceof ShadowRoot}function floating_ui_dom_browser_min_u(t){const{overflow:e,overflowX:n,overflowY:o}=floating_ui_dom_browser_min_i(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function floating_ui_dom_browser_min_d(t){return["table","td","th"].includes(floating_ui_dom_browser_min_r(t))}function floating_ui_dom_browser_min_a(t){const e=/firefox/i.test(floating_ui_dom_browser_min_l()),n=floating_ui_dom_browser_min_i(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function floating_ui_dom_browser_min_h(){return!/^((?!chrome|android).)*safari/i.test(floating_ui_dom_browser_min_l())}const floating_ui_dom_browser_min_g=Math.min,floating_ui_dom_browser_min_p=Math.max,floating_ui_dom_browser_min_m=Math.round;function floating_ui_dom_browser_min_w(t,e,n){var i,r,l,f;void 0===e&&(e=!1),void 0===n&&(n=!1);const u=t.getBoundingClientRect();let d=1,a=1;e&&floating_ui_dom_browser_min_c(t)&&(d=t.offsetWidth>0&&floating_ui_dom_browser_min_m(u.width)/t.offsetWidth||1,a=t.offsetHeight>0&&floating_ui_dom_browser_min_m(u.height)/t.offsetHeight||1);const g=floating_ui_dom_browser_min_s(t)?floating_ui_dom_browser_min_o(t):window,p=!floating_ui_dom_browser_min_h()&&n,w=(u.left+(p&&null!=(i=null==(r=g.visualViewport)?void 0:r.offsetLeft)?i:0))/d,y=(u.top+(p&&null!=(l=null==(f=g.visualViewport)?void 0:f.offsetTop)?l:0))/a,v=u.width/d,x=u.height/a;return{width:v,height:x,top:y,right:w+v,bottom:y+x,left:w,x:w,y:y}}function floating_ui_dom_browser_min_y(t){return(e=t,(e instanceof floating_ui_dom_browser_min_o(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function floating_ui_dom_browser_min_v(t){return floating_ui_dom_browser_min_s(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function floating_ui_dom_browser_min_x(t){return floating_ui_dom_browser_min_w(floating_ui_dom_browser_min_y(t)).left+floating_ui_dom_browser_min_v(t).scrollLeft}function floating_ui_dom_browser_min_b(t,e,n){const o=floating_ui_dom_browser_min_c(e),i=floating_ui_dom_browser_min_y(e),l=floating_ui_dom_browser_min_w(t,o&&function(t){const e=floating_ui_dom_browser_min_w(t);return floating_ui_dom_browser_min_m(e.width)!==t.offsetWidth||floating_ui_dom_browser_min_m(e.height)!==t.offsetHeight}(e),"fixed"===n);let s={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==floating_ui_dom_browser_min_r(e)||floating_ui_dom_browser_min_u(i))&&(s=floating_ui_dom_browser_min_v(e)),floating_ui_dom_browser_min_c(e)){const t=floating_ui_dom_browser_min_w(e,!0);f.x=t.x+e.clientLeft,f.y=t.y+e.clientTop}else i&&(f.x=floating_ui_dom_browser_min_x(i));return{x:l.left+s.scrollLeft-f.x,y:l.top+s.scrollTop-f.y,width:l.width,height:l.height}}function floating_ui_dom_browser_min_L(t){return"html"===floating_ui_dom_browser_min_r(t)?t:t.assignedSlot||t.parentNode||(floating_ui_dom_browser_min_f(t)?t.host:null)||floating_ui_dom_browser_min_y(t)}function floating_ui_dom_browser_min_R(t){return floating_ui_dom_browser_min_c(t)&&"fixed"!==floating_ui_dom_browser_min_i(t).position?function(t){let{offsetParent:e}=t,n=t,o=!1;for(;n&&n!==e;){const{assignedSlot:t}=n;if(t){let r=t.offsetParent;if("contents"===floating_ui_dom_browser_min_i(t).display){const e=t.hasAttribute("style"),o=t.style.display;t.style.display=floating_ui_dom_browser_min_i(n).display,r=t.offsetParent,t.style.display=o,e||t.removeAttribute("style")}n=t,e!==r&&(e=r,o=!0)}else if(floating_ui_dom_browser_min_f(n)&&n.host&&o)break;n=floating_ui_dom_browser_min_f(n)&&n.host||n.parentNode}return e}(t):null}function floating_ui_dom_browser_min_T(t){const e=floating_ui_dom_browser_min_o(t);let n=floating_ui_dom_browser_min_R(t);for(;n&&floating_ui_dom_browser_min_d(n)&&"static"===floating_ui_dom_browser_min_i(n).position;)n=floating_ui_dom_browser_min_R(n);return n&&("html"===floating_ui_dom_browser_min_r(n)||"body"===floating_ui_dom_browser_min_r(n)&&"static"===floating_ui_dom_browser_min_i(n).position&&!floating_ui_dom_browser_min_a(n))?e:n||function(t){let e=floating_ui_dom_browser_min_L(t);for(floating_ui_dom_browser_min_f(e)&&(e=e.host);floating_ui_dom_browser_min_c(e)&&!["html","body"].includes(floating_ui_dom_browser_min_r(e));){if(floating_ui_dom_browser_min_a(e))return e;{const t=e.parentNode;e=floating_ui_dom_browser_min_f(t)?t.host:t}}return null}(t)||e}function W(t){if(floating_ui_dom_browser_min_c(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=floating_ui_dom_browser_min_w(t);return{width:e.width,height:e.height}}function floating_ui_dom_browser_min_E(t){const e=floating_ui_dom_browser_min_L(t);return["html","body","#document"].includes(floating_ui_dom_browser_min_r(e))?t.ownerDocument.body:floating_ui_dom_browser_min_c(e)&&floating_ui_dom_browser_min_u(e)?e:floating_ui_dom_browser_min_E(e)}function H(t,e){var n;void 0===e&&(e=[]);const i=floating_ui_dom_browser_min_E(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),l=floating_ui_dom_browser_min_o(i),c=r?[l].concat(l.visualViewport||[],floating_ui_dom_browser_min_u(i)?i:[]):i,s=e.concat(c);return r?s:s.concat(H(c))}function floating_ui_dom_browser_min_A(e,n,r){return"viewport"===n?l(function(t,e){const n=floating_ui_dom_browser_min_o(t),i=floating_ui_dom_browser_min_y(t),r=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,s=0,f=0;if(r){l=r.width,c=r.height;const t=floating_ui_dom_browser_min_h();(t||!t&&"fixed"===e)&&(s=r.offsetLeft,f=r.offsetTop)}return{width:l,height:c,x:s,y:f}}(e,r)):floating_ui_dom_browser_min_s(n)?function(t,e){const n=floating_ui_dom_browser_min_w(t,!1,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:o,left:i,x:i,y:o,right:i+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(n,r):l(function(t){var e;const n=floating_ui_dom_browser_min_y(t),o=floating_ui_dom_browser_min_v(t),r=null==(e=t.ownerDocument)?void 0:e.body,l=floating_ui_dom_browser_min_p(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=floating_ui_dom_browser_min_p(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let s=-o.scrollLeft+floating_ui_dom_browser_min_x(t);const f=-o.scrollTop;return"rtl"===floating_ui_dom_browser_min_i(r||n).direction&&(s+=floating_ui_dom_browser_min_p(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:s,y:f}}(floating_ui_dom_browser_min_y(e)))}function C(t){const e=H(t),n=["absolute","fixed"].includes(floating_ui_dom_browser_min_i(t).position)&&floating_ui_dom_browser_min_c(t)?floating_ui_dom_browser_min_T(t):t;return floating_ui_dom_browser_min_s(n)?e.filter((t=>floating_ui_dom_browser_min_s(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&floating_ui_dom_browser_min_f(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==floating_ui_dom_browser_min_r(t))):[]}const floating_ui_dom_browser_min_D={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?C(e):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=floating_ui_dom_browser_min_A(e,n,i);return t.top=floating_ui_dom_browser_min_p(o.top,t.top),t.right=floating_ui_dom_browser_min_g(o.right,t.right),t.bottom=floating_ui_dom_browser_min_g(o.bottom,t.bottom),t.left=floating_ui_dom_browser_min_p(o.left,t.left),t}),floating_ui_dom_browser_min_A(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=floating_ui_dom_browser_min_c(n),l=floating_ui_dom_browser_min_y(n);if(n===l)return e;let s={scrollLeft:0,scrollTop:0};const f={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==floating_ui_dom_browser_min_r(n)||floating_ui_dom_browser_min_u(l))&&(s=floating_ui_dom_browser_min_v(n)),floating_ui_dom_browser_min_c(n))){const t=floating_ui_dom_browser_min_w(n,!0);f.x=t.x+n.clientLeft,f.y=t.y+n.clientTop}return{...e,x:e.x-s.scrollLeft+f.x,y:e.y-s.scrollTop+f.y}},isElement:floating_ui_dom_browser_min_s,getDimensions:W,getOffsetParent:floating_ui_dom_browser_min_T,getDocumentElement:floating_ui_dom_browser_min_y,getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:floating_ui_dom_browser_min_b(e,floating_ui_dom_browser_min_T(n),o),floating:{...W(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===floating_ui_dom_browser_min_i(t).direction};function N(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:c=!1}=o,f=i&&!c,u=r&&!c,d=f||u?[...floating_ui_dom_browser_min_s(t)?H(t):[],...H(e)]:[];d.forEach((t=>{f&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)}));let a,h=null;if(l){let o=!0;h=new ResizeObserver((()=>{o||n(),o=!1})),floating_ui_dom_browser_min_s(t)&&!c&&h.observe(t),h.observe(e)}let g=c?floating_ui_dom_browser_min_w(t):null;return c&&function e(){const o=floating_ui_dom_browser_min_w(t);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,a=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach((t=>{f&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)})),null==(t=h)||t.disconnect(),h=null,c&&cancelAnimationFrame(a)}}const floating_ui_dom_browser_min_P=(t,n,o)=>floating_ui_core_browser_min_o(t,n,{platform:floating_ui_dom_browser_min_D,...o});
;// CONCATENATED MODULE: external "ReactDOM"
var external_ReactDOM_namespaceObject = window["ReactDOM"];
return;
}
- floating_ui_dom_browser_min_P(reference.current, floating.current, {
+ floating_ui_dom_computePosition(reference.current, floating.current, {
middleware: latestMiddleware,
placement,
strategy
* @see https://floating-ui.com/docs/arrow
*/
-const arrow = options => {
+const floating_ui_react_dom_esm_arrow = options => {
const {
element,
padding
fn(args) {
if (isRef(element)) {
if (element.current != null) {
- return m({
+ return arrow({
element: element.current,
padding
}).fn(args);
return {};
} else if (element) {
- return m({
+ return arrow({
element,
padding
}).fn(args);
;// CONCATENATED MODULE: ./node_modules/framer-motion/dist/es/utils/clamp.mjs
-const clamp = (min, max, v) => Math.min(Math.max(v, min), max);
+const clamp_clamp = (min, max, v) => Math.min(Math.max(v, min), max);
};
const alpha = {
...number,
- transform: (v) => clamp(0, 1, v),
+ transform: (v) => clamp_clamp(0, 1, v),
};
const scale = {
...number,
-const clampRgbUnit = (v) => clamp(0, 255, v);
+const clampRgbUnit = (v) => clamp_clamp(0, 255, v);
const rgbUnit = {
...number,
transform: (v) => Math.round(clampRgbUnit(v)),
return mixers[i](progressInRange);
};
return isClamp
- ? (v) => interpolator(clamp(input[0], input[inputLength - 1], v))
+ ? (v) => interpolator(clamp_clamp(input[0], input[inputLength - 1], v))
: interpolator;
}
/**
* Restrict dampingRatio and duration to within acceptable ranges.
*/
- dampingRatio = clamp(minDamping, maxDamping, dampingRatio);
- duration = clamp(minDuration, maxDuration, millisecondsToSeconds(duration));
+ dampingRatio = clamp_clamp(minDamping, maxDamping, dampingRatio);
+ duration = clamp_clamp(minDuration, maxDuration, millisecondsToSeconds(duration));
if (dampingRatio < 1) {
/**
* Underdamped spring
frameGenerator = mirroredGenerator;
}
}
- let p = clamp(0, 1, iterationProgress);
+ let p = clamp_clamp(0, 1, iterationProgress);
if (currentTime > totalDuration) {
p = repeatType === "reverse" && iterationIsOdd ? 1 : 0;
}
else if (sourceLength > targetLength) {
origin = progress(source.min, source.max - targetLength, target.min);
}
- return clamp(0, 1, origin);
+ return clamp_clamp(0, 1, origin);
}
/**
* Rebase the calculated viewport constraints relative to the layout.min point.
/* harmony default export */ var scroll_lock = (ScrollLock);
;// CONCATENATED MODULE: ./node_modules/proxy-compare/dist/index.modern.js
-const index_modern_e=Symbol(),index_modern_t=Symbol(),index_modern_r=Symbol();let index_modern_n=(e,t)=>new Proxy(e,t);const index_modern_o=Object.getPrototypeOf,index_modern_s=new WeakMap,index_modern_c=e=>e&&(index_modern_s.has(e)?index_modern_s.get(e):index_modern_o(e)===Object.prototype||index_modern_o(e)===Array.prototype),index_modern_l=e=>"object"==typeof e&&null!==e,index_modern_a=new WeakMap,index_modern_f=e=>e[index_modern_r]||e,index_modern_i=(s,l,p)=>{if(!index_modern_c(s))return s;const y=index_modern_f(s),u=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some(e=>!e.writable))(y);let g=p&&p.get(y);return g&&g[1].f===u||(g=((n,o)=>{const s={f:o};let c=!1;const l=(t,r)=>{if(!c){let o=s.a.get(n);o||(o=new Set,s.a.set(n,o)),r&&o.has(index_modern_e)||o.add(t)}},a={get:(e,t)=>t===index_modern_r?n:(l(t),index_modern_i(e[t],s.a,s.c)),has:(e,r)=>r===index_modern_t?(c=!0,s.a.delete(n),!0):(l(r),r in e),getOwnPropertyDescriptor:(e,t)=>(l(t,!0),Object.getOwnPropertyDescriptor(e,t)),ownKeys:t=>(l(index_modern_e),Reflect.ownKeys(t))};return o&&(a.set=a.deleteProperty=()=>!1),[a,s]})(y,u),g[1].p=index_modern_n(u?(e=>{let t=index_modern_a.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const r=Object.getOwnPropertyDescriptors(e);Object.values(r).forEach(e=>{e.configurable=!0}),t=Object.create(index_modern_o(e),r)}index_modern_a.set(e,t)}return t})(y):y,g[0]),p&&p.set(y,g)),g[1].a=l,g[1].c=p,g[1].p},index_modern_p=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((e,t)=>e!==n[t])},index_modern_y=(t,r,n,o)=>{if(Object.is(t,r))return!1;if(!index_modern_l(t)||!index_modern_l(r))return!0;const s=n.get(index_modern_f(t));if(!s)return!0;if(o){const e=o.get(t);if(e&&e.n===r)return e.g;o.set(t,{n:r,g:!1})}let c=null;for(const l of s){const s=l===index_modern_e?index_modern_p(t,r):index_modern_y(t[l],r[l],n,o);if(!0!==s&&!1!==s||(c=s),c)break}return null===c&&(c=!0),o&&o.set(t,{n:r,g:c}),c},index_modern_u=e=>!!index_modern_c(e)&&index_modern_t in e,index_modern_g=e=>index_modern_c(e)&&e[index_modern_r]||null,index_modern_b=(e,t=!0)=>{index_modern_s.set(e,t)},index_modern_O=(e,t)=>{const r=[],n=new WeakSet,o=(e,s)=>{if(n.has(e))return;index_modern_l(e)&&n.add(e);const c=index_modern_l(e)&&t.get(index_modern_f(e));c?c.forEach(t=>{o(e[t],s?[...s,t]:[t])}):s&&r.push(s)};return o(e),r},index_modern_w=e=>{index_modern_n=e};
+const index_modern_e=Symbol(),t=Symbol(),r=Symbol();let index_modern_n=(e,t)=>new Proxy(e,t);const index_modern_o=Object.getPrototypeOf,s=new WeakMap,c=e=>e&&(s.has(e)?s.get(e):index_modern_o(e)===Object.prototype||index_modern_o(e)===Array.prototype),l=e=>"object"==typeof e&&null!==e,index_modern_a=new WeakMap,f=e=>e[r]||e,i=(s,l,p)=>{if(!c(s))return s;const y=f(s),u=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some(e=>!e.writable))(y);let g=p&&p.get(y);return g&&g[1].f===u||(g=((n,o)=>{const s={f:o};let c=!1;const l=(t,r)=>{if(!c){let o=s.a.get(n);o||(o=new Set,s.a.set(n,o)),r&&o.has(index_modern_e)||o.add(t)}},a={get:(e,t)=>t===r?n:(l(t),i(e[t],s.a,s.c)),has:(e,r)=>r===t?(c=!0,s.a.delete(n),!0):(l(r),r in e),getOwnPropertyDescriptor:(e,t)=>(l(t,!0),Object.getOwnPropertyDescriptor(e,t)),ownKeys:t=>(l(index_modern_e),Reflect.ownKeys(t))};return o&&(a.set=a.deleteProperty=()=>!1),[a,s]})(y,u),g[1].p=index_modern_n(u?(e=>{let t=index_modern_a.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const r=Object.getOwnPropertyDescriptors(e);Object.values(r).forEach(e=>{e.configurable=!0}),t=Object.create(index_modern_o(e),r)}index_modern_a.set(e,t)}return t})(y):y,g[0]),p&&p.set(y,g)),g[1].a=l,g[1].c=p,g[1].p},p=(e,t)=>{const r=Reflect.ownKeys(e),n=Reflect.ownKeys(t);return r.length!==n.length||r.some((e,t)=>e!==n[t])},y=(t,r,n,o)=>{if(Object.is(t,r))return!1;if(!l(t)||!l(r))return!0;const s=n.get(f(t));if(!s)return!0;if(o){const e=o.get(t);if(e&&e.n===r)return e.g;o.set(t,{n:r,g:!1})}let c=null;for(const l of s){const s=l===index_modern_e?p(t,r):y(t[l],r[l],n,o);if(!0!==s&&!1!==s||(c=s),c)break}return null===c&&(c=!0),o&&o.set(t,{n:r,g:c}),c},u=e=>!!c(e)&&t in e,g=e=>c(e)&&e[r]||null,b=(e,t=!0)=>{s.set(e,t)},O=(e,t)=>{const r=[],n=new WeakSet,o=(e,s)=>{if(n.has(e))return;l(e)&&n.add(e);const c=l(e)&&t.get(f(e));c?c.forEach(t=>{o(e[t],s?[...s,t]:[t])}):s&&r.push(s)};return o(e),r},w=e=>{index_modern_n=e};
// EXTERNAL MODULE: ./node_modules/use-sync-external-store/shim/index.js
var shim = __webpack_require__(635);
return cache[1];
}
const snapshot2 = Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target));
- index_modern_b(snapshot2, true);
+ b(snapshot2, true);
snapshotCache.set(receiver, [version, snapshot2]);
Reflect.ownKeys(target).forEach((key) => {
const value = Reflect.get(target, key, receiver);
if (refSet.has(value)) {
- index_modern_b(value, false);
+ b(value, false);
snapshot2[key] = value;
} else if (value instanceof Promise) {
if (PROMISE_RESULT in value) {
childListeners.delete(popPropListener(prop));
}
if (vanilla_isObject(value)) {
- value = index_modern_g(value) || value;
+ value = g(value) || value;
}
let nextValue;
if ((_a = Object.getOwnPropertyDescriptor(target, prop)) == null ? void 0 : _a.set) {
const useAffectedDebugValue = (state, affected) => {
const pathList = (0,external_React_.useRef)();
(0,external_React_.useEffect)(() => {
- pathList.current = index_modern_O(state, affected);
+ pathList.current = O(state, affected);
});
(0,external_React_.useDebugValue)(pathList.current);
};
() => {
const nextSnapshot = vanilla_snapshot(proxyObject);
try {
- if (!inRender && lastSnapshot.current && lastAffected.current && !index_modern_y(
+ if (!inRender && lastSnapshot.current && lastAffected.current && !y(
lastSnapshot.current,
nextSnapshot,
lastAffected.current,
useAffectedDebugValue(currSnapshot, currAffected);
}
const proxyCache = (0,external_React_.useMemo)(() => /* @__PURE__ */ new WeakMap(), []);
- return index_modern_i(currSnapshot, currAffected, proxyCache);
+ return i(currSnapshot, currAffected, proxyCache);
}
* All unexported types and functions are also from the `@floating-ui` library,
* and have been copied to this file for convenience.
*/
-function getSide(placement) {
+function limit_shift_getSide(placement) {
return placement.split('-')[0];
}
function getMainAxisFromPlacement(placement) {
- return ['top', 'bottom'].includes(getSide(placement)) ? 'x' : 'y';
+ return ['top', 'bottom'].includes(limit_shift_getSide(placement)) ? 'x' : 'y';
}
function getCrossAxis(axis) {
return axis === 'x' ? 'y' : 'x';
}
-const limitShift = (options = {}) => ({
+const limit_shift_limitShift = (options = {}) => ({
options,
fn(middlewareArguments) {
var _middlewareData$offse, _middlewareData$offse2;
const len = mainAxis === 'y' ? 'width' : 'height';
- const isOriginSide = ['top', 'left'].includes(getSide(placement));
+ const isOriginSide = ['top', 'left'].includes(limit_shift_getSide(placement));
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? (_middlewareData$offse = middlewareData.offset?.[crossAxis]) !== null && _middlewareData$offse !== void 0 ? _middlewareData$offse : 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis) + additionalFrameOffset[crossAxis];
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : (_middlewareData$offse2 = middlewareData.offset?.[crossAxis]) !== null && _middlewareData$offse2 !== void 0 ? _middlewareData$offse2 : 0) - (isOriginSide ? computedOffset.crossAxis : 0) + additionalFrameOffset[crossAxis];
return rects.reference;
}
- }, k({
+ }, size({
apply({
rects,
elements
};
}
- }, T(offsetProp), computedFlipProp ? b() : undefined, computedResizeProp ? k({
+ }, offset(offsetProp), computedFlipProp ? floating_ui_core_flip() : undefined, computedResizeProp ? size({
apply(sizeProps) {
var _refs$floating$curren;
});
}
- }) : undefined, shift ? L({
+ }) : undefined, shift ? floating_ui_core_shift({
crossAxis: true,
- limiter: limitShift(),
+ limiter: limit_shift_limitShift(),
padding: 1 // Necessary to avoid flickering at the edge of the viewport.
- }) : undefined, arrow({
+ }) : undefined, floating_ui_react_dom_esm_arrow({
element: arrowRef
})].filter(m => m !== undefined);
} = useFloating({
placement: normalizedPlacementFromProps === 'overlay' ? undefined : normalizedPlacementFromProps,
middleware,
- whileElementsMounted: (referenceParam, floatingParam, updateParam) => N(referenceParam, floatingParam, updateParam, {
+ whileElementsMounted: (referenceParam, floatingParam, updateParam) => autoUpdate(referenceParam, floatingParam, updateParam, {
animationFrame: true
})
});
;// CONCATENATED MODULE: ./node_modules/colord/index.mjs
-var colord_r={grad:.9,turn:360,rad:360/(2*Math.PI)},colord_t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},colord_n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},colord_e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},colord_u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},colord_a=function(r){return{r:colord_e(r.r,0,255),g:colord_e(r.g,0,255),b:colord_e(r.b,0,255),a:colord_e(r.a)}},colord_o=function(r){return{r:colord_n(r.r),g:colord_n(r.g),b:colord_n(r.b),a:colord_n(r.a,3)}},colord_i=/^#([0-9a-f]{3,8})$/i,colord_s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},colord_h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},colord_b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},colord_g=function(r){return{h:colord_u(r.h),s:colord_e(r.s,0,100),l:colord_e(r.l,0,100),a:colord_e(r.a)}},colord_d=function(r){return{h:colord_n(r.h),s:colord_n(r.s),l:colord_n(r.l),a:colord_n(r.a,3)}},colord_f=function(r){return colord_b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},colord_c=function(r){return{h:(t=colord_h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},colord_l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_y={string:[[function(r){var t=colord_i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?colord_n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?colord_n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=colord_v.exec(r)||colord_m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:colord_a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=colord_l.exec(t)||colord_p.exec(t);if(!n)return null;var e,u,a=colord_g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(colord_r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return colord_f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return colord_t(n)&&colord_t(e)&&colord_t(u)?colord_a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!colord_t(n)||!colord_t(e)||!colord_t(u))return null;var i=colord_g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return colord_f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!colord_t(n)||!colord_t(a)||!colord_t(o))return null;var h=function(r){return{h:colord_u(r.h),s:colord_e(r.s,0,100),v:colord_e(r.v,0,100),a:colord_e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return colord_b(h)},"hsv"]]},colord_N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},colord_x=function(r){return"string"==typeof r?colord_N(r.trim(),colord_y.string):"object"==typeof r&&null!==r?colord_N(r,colord_y.object):[null,void 0]},I=function(r){return colord_x(r)[1]},M=function(r,t){var n=colord_c(r);return{h:n.h,s:colord_e(n.s+100*t,0,100),l:n.l,a:n.a}},colord_H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=colord_c(r);return{h:n.h,s:n.s,l:colord_e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=colord_x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return colord_n(colord_H(this.rgba),2)},r.prototype.isDark=function(){return colord_H(this.rgba)<.5},r.prototype.isLight=function(){return colord_H(this.rgba)>=.5},r.prototype.toHex=function(){return r=colord_o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?colord_s(colord_n(255*a)):"","#"+colord_s(t)+colord_s(e)+colord_s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return colord_o(this.rgba)},r.prototype.toRgbString=function(){return r=colord_o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return colord_d(colord_c(this.rgba))},r.prototype.toHslString=function(){return r=colord_d(colord_c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=colord_h(this.rgba),{h:colord_n(r.h),s:colord_n(r.s),v:colord_n(r.v),a:colord_n(r.a,3)};var r},r.prototype.invert=function(){return colord_w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),colord_w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),colord_w(M(this.rgba,-r))},r.prototype.grayscale=function(){return colord_w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),colord_w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),colord_w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?colord_w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):colord_n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=colord_c(this.rgba);return"number"==typeof r?colord_w({h:r,s:t.s,l:t.l,a:t.a}):colord_n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===colord_w(r).toHex()},r}(),colord_w=function(r){return r instanceof j?r:new j(r)},S=[],colord_k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,colord_y),S.push(r))})},colord_E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
+var colord_r={grad:.9,turn:360,rad:360/(2*Math.PI)},colord_t=function(r){return"string"==typeof r?r.length>0:"number"==typeof r},colord_n=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*r)/n+0},colord_e=function(r,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),r>n?n:r>t?r:t},colord_u=function(r){return(r=isFinite(r)?r%360:0)>0?r:r+360},colord_a=function(r){return{r:colord_e(r.r,0,255),g:colord_e(r.g,0,255),b:colord_e(r.b,0,255),a:colord_e(r.a)}},colord_o=function(r){return{r:colord_n(r.r),g:colord_n(r.g),b:colord_n(r.b),a:colord_n(r.a,3)}},colord_i=/^#([0-9a-f]{3,8})$/i,colord_s=function(r){var t=r.toString(16);return t.length<2?"0"+t:t},h=function(r){var t=r.r,n=r.g,e=r.b,u=r.a,a=Math.max(t,n,e),o=a-Math.min(t,n,e),i=o?a===t?(n-e)/o:a===n?2+(e-t)/o:4+(t-n)/o:0;return{h:60*(i<0?i+6:i),s:a?o/a*100:0,v:a/255*100,a:u}},colord_b=function(r){var t=r.h,n=r.s,e=r.v,u=r.a;t=t/360*6,n/=100,e/=100;var a=Math.floor(t),o=e*(1-n),i=e*(1-(t-a)*n),s=e*(1-(1-t+a)*n),h=a%6;return{r:255*[e,i,o,o,s,e][h],g:255*[s,e,e,i,o,o][h],b:255*[o,o,s,e,e,i][h],a:u}},colord_g=function(r){return{h:colord_u(r.h),s:colord_e(r.s,0,100),l:colord_e(r.l,0,100),a:colord_e(r.a)}},d=function(r){return{h:colord_n(r.h),s:colord_n(r.s),l:colord_n(r.l),a:colord_n(r.a,3)}},colord_f=function(r){return colord_b((n=(t=r).s,{h:t.h,s:(n*=((e=t.l)<50?e:100-e)/100)>0?2*n/(e+n)*100:0,v:e+n,a:t.a}));var t,n,e},colord_c=function(r){return{h:(t=h(r)).h,s:(u=(200-(n=t.s))*(e=t.v)/100)>0&&u<200?n*e/100/(u<=100?u:200-u)*100:0,l:u/2,a:t.a};var t,n,e,u},colord_l=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_p=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,m=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,colord_y={string:[[function(r){var t=colord_i.exec(r);return t?(r=t[1]).length<=4?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?colord_n(parseInt(r[3]+r[3],16)/255,2):1}:6===r.length||8===r.length?{r:parseInt(r.substr(0,2),16),g:parseInt(r.substr(2,2),16),b:parseInt(r.substr(4,2),16),a:8===r.length?colord_n(parseInt(r.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(r){var t=v.exec(r)||m.exec(r);return t?t[2]!==t[4]||t[4]!==t[6]?null:colord_a({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(t){var n=colord_l.exec(t)||colord_p.exec(t);if(!n)return null;var e,u,a=colord_g({h:(e=n[1],u=n[2],void 0===u&&(u="deg"),Number(e)*(colord_r[u]||1)),s:Number(n[3]),l:Number(n[4]),a:void 0===n[5]?1:Number(n[5])/(n[6]?100:1)});return colord_f(a)},"hsl"]],object:[[function(r){var n=r.r,e=r.g,u=r.b,o=r.a,i=void 0===o?1:o;return colord_t(n)&&colord_t(e)&&colord_t(u)?colord_a({r:Number(n),g:Number(e),b:Number(u),a:Number(i)}):null},"rgb"],[function(r){var n=r.h,e=r.s,u=r.l,a=r.a,o=void 0===a?1:a;if(!colord_t(n)||!colord_t(e)||!colord_t(u))return null;var i=colord_g({h:Number(n),s:Number(e),l:Number(u),a:Number(o)});return colord_f(i)},"hsl"],[function(r){var n=r.h,a=r.s,o=r.v,i=r.a,s=void 0===i?1:i;if(!colord_t(n)||!colord_t(a)||!colord_t(o))return null;var h=function(r){return{h:colord_u(r.h),s:colord_e(r.s,0,100),v:colord_e(r.v,0,100),a:colord_e(r.a)}}({h:Number(n),s:Number(a),v:Number(o),a:Number(s)});return colord_b(h)},"hsv"]]},N=function(r,t){for(var n=0;n<t.length;n++){var e=t[n][0](r);if(e)return[e,t[n][1]]}return[null,void 0]},x=function(r){return"string"==typeof r?N(r.trim(),colord_y.string):"object"==typeof r&&null!==r?N(r,colord_y.object):[null,void 0]},I=function(r){return x(r)[1]},M=function(r,t){var n=colord_c(r);return{h:n.h,s:colord_e(n.s+100*t,0,100),l:n.l,a:n.a}},H=function(r){return(299*r.r+587*r.g+114*r.b)/1e3/255},$=function(r,t){var n=colord_c(r);return{h:n.h,s:n.s,l:colord_e(n.l+100*t,0,100),a:n.a}},j=function(){function r(r){this.parsed=x(r)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return r.prototype.isValid=function(){return null!==this.parsed},r.prototype.brightness=function(){return colord_n(H(this.rgba),2)},r.prototype.isDark=function(){return H(this.rgba)<.5},r.prototype.isLight=function(){return H(this.rgba)>=.5},r.prototype.toHex=function(){return r=colord_o(this.rgba),t=r.r,e=r.g,u=r.b,i=(a=r.a)<1?colord_s(colord_n(255*a)):"","#"+colord_s(t)+colord_s(e)+colord_s(u)+i;var r,t,e,u,a,i},r.prototype.toRgb=function(){return colord_o(this.rgba)},r.prototype.toRgbString=function(){return r=colord_o(this.rgba),t=r.r,n=r.g,e=r.b,(u=r.a)<1?"rgba("+t+", "+n+", "+e+", "+u+")":"rgb("+t+", "+n+", "+e+")";var r,t,n,e,u},r.prototype.toHsl=function(){return d(colord_c(this.rgba))},r.prototype.toHslString=function(){return r=d(colord_c(this.rgba)),t=r.h,n=r.s,e=r.l,(u=r.a)<1?"hsla("+t+", "+n+"%, "+e+"%, "+u+")":"hsl("+t+", "+n+"%, "+e+"%)";var r,t,n,e,u},r.prototype.toHsv=function(){return r=h(this.rgba),{h:colord_n(r.h),s:colord_n(r.s),v:colord_n(r.v),a:colord_n(r.a,3)};var r},r.prototype.invert=function(){return colord_w({r:255-(r=this.rgba).r,g:255-r.g,b:255-r.b,a:r.a});var r},r.prototype.saturate=function(r){return void 0===r&&(r=.1),colord_w(M(this.rgba,r))},r.prototype.desaturate=function(r){return void 0===r&&(r=.1),colord_w(M(this.rgba,-r))},r.prototype.grayscale=function(){return colord_w(M(this.rgba,-1))},r.prototype.lighten=function(r){return void 0===r&&(r=.1),colord_w($(this.rgba,r))},r.prototype.darken=function(r){return void 0===r&&(r=.1),colord_w($(this.rgba,-r))},r.prototype.rotate=function(r){return void 0===r&&(r=15),this.hue(this.hue()+r)},r.prototype.alpha=function(r){return"number"==typeof r?colord_w({r:(t=this.rgba).r,g:t.g,b:t.b,a:r}):colord_n(this.rgba.a,3);var t},r.prototype.hue=function(r){var t=colord_c(this.rgba);return"number"==typeof r?colord_w({h:r,s:t.s,l:t.l,a:t.a}):colord_n(t.h)},r.prototype.isEqual=function(r){return this.toHex()===colord_w(r).toHex()},r}(),colord_w=function(r){return r instanceof j?r:new j(r)},S=[],k=function(r){r.forEach(function(r){S.indexOf(r)<0&&(r(j,colord_y),S.push(r))})},E=function(){return new j({r:255*Math.random(),g:255*Math.random(),b:255*Math.random()})};
;// CONCATENATED MODULE: ./node_modules/colord/plugins/names.mjs
/* harmony default export */ function names(e,f){var a={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var d in a)r[a[d]]=d;var l={};e.prototype.toName=function(f){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var d,i,n=r[this.toHex()];if(n)return n;if(null==f?void 0:f.closest){var o=this.toRgb(),t=1/0,b="black";if(!l.length)for(var c in a)l[c]=new e(a[c]).toRgb();for(var g in a){var u=(d=o,i=l[g],Math.pow(d.r-i.r,2)+Math.pow(d.g-i.g,2)+Math.pow(d.b-i.b,2));u<t&&(t=u,b=g)}return b}};f.string.push([function(f){var r=f.toLowerCase(),d="transparent"===r?"#0000":a[r];return d?new e(d).toRgb():null},"name"])}
*/
-colord_k([names]);
+k([names]);
/**
* Generating a CSS compliant rgba() color value.
*
/** @type {HTMLDivElement} */
let colorComputationNode;
-colord_k([names]);
+k([names]);
/**
* @return {HTMLDivElement | undefined} The HTML element for color computation.
*/
-;// CONCATENATED MODULE: ./node_modules/@use-gesture/core/dist/actions-76b8683e.esm.js
+;// CONCATENATED MODULE: ./node_modules/@use-gesture/core/dist/actions-fe213e88.esm.js
function _toPrimitive(input, hint) {
return typeof key === "symbol" ? key : String(key);
}
-function actions_76b8683e_esm_defineProperty(obj, key, value) {
+function actions_fe213e88_esm_defineProperty(obj, key, value) {
key = _toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
return obj;
}
-function actions_76b8683e_esm_ownKeys(object, enumerableOnly) {
- var keys = Object.keys(object);
+function actions_fe213e88_esm_ownKeys(e, r) {
+ var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(object);
- enumerableOnly && (symbols = symbols.filter(function (sym) {
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
- })), keys.push.apply(keys, symbols);
+ var o = Object.getOwnPropertySymbols(e);
+ r && (o = o.filter(function (r) {
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
+ })), t.push.apply(t, o);
}
- return keys;
+ return t;
}
-function actions_76b8683e_esm_objectSpread2(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = null != arguments[i] ? arguments[i] : {};
- i % 2 ? actions_76b8683e_esm_ownKeys(Object(source), !0).forEach(function (key) {
- actions_76b8683e_esm_defineProperty(target, key, source[key]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : actions_76b8683e_esm_ownKeys(Object(source)).forEach(function (key) {
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
+function actions_fe213e88_esm_objectSpread2(e) {
+ for (var r = 1; r < arguments.length; r++) {
+ var t = null != arguments[r] ? arguments[r] : {};
+ r % 2 ? actions_fe213e88_esm_ownKeys(Object(t), !0).forEach(function (r) {
+ actions_fe213e88_esm_defineProperty(e, r, t[r]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : actions_fe213e88_esm_ownKeys(Object(t)).forEach(function (r) {
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
- return target;
+ return e;
}
const EVENT_TYPE_MAP = {
function getCurrentTargetTouchList(event) {
return Array.from(event.touches).filter(e => {
var _event$currentTarget, _event$currentTarget$;
- return e.target === event.currentTarget || ((_event$currentTarget = event.currentTarget) === null || _event$currentTarget === void 0 ? void 0 : (_event$currentTarget$ = _event$currentTarget.contains) === null || _event$currentTarget$ === void 0 ? void 0 : _event$currentTarget$.call(_event$currentTarget, e.target));
+ return e.target === event.currentTarget || ((_event$currentTarget = event.currentTarget) === null || _event$currentTarget === void 0 || (_event$currentTarget$ = _event$currentTarget.contains) === null || _event$currentTarget$ === void 0 ? void 0 : _event$currentTarget$.call(_event$currentTarget, e.target));
});
}
function getTouchList(event) {
return v;
}
}
-function actions_76b8683e_esm_noop() {}
+function actions_fe213e88_esm_noop() {}
function chain(...fns) {
- if (fns.length === 0) return actions_76b8683e_esm_noop;
+ if (fns.length === 0) return actions_fe213e88_esm_noop;
if (fns.length === 1) return fns[0];
return function () {
let result;
const config = this.config;
if (!state._active) this.clean();
if ((state._blocked || !state.intentional) && !state._force && !config.triggerAllEvents) return;
- const memo = this.handler(actions_76b8683e_esm_objectSpread2(actions_76b8683e_esm_objectSpread2(actions_76b8683e_esm_objectSpread2({}, shared), state), {}, {
+ const memo = this.handler(actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({}, shared), state), {}, {
[this.aliasKey]: state.values
}));
if (memo !== undefined) state.memo = memo;
class CoordinatesEngine extends Engine {
constructor(...args) {
super(...args);
- actions_76b8683e_esm_defineProperty(this, "aliasKey", 'xy');
+ actions_fe213e88_esm_defineProperty(this, "aliasKey", 'xy');
}
reset() {
super.reset();
return value;
},
eventOptions(value, _k, config) {
- return actions_76b8683e_esm_objectSpread2(actions_76b8683e_esm_objectSpread2({}, config.shared.eventOptions), value);
+ return actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({}, config.shared.eventOptions), value);
},
preventDefault(value = false) {
return value;
if (false) {}
const DEFAULT_AXIS_THRESHOLD = 0;
-const coordinatesConfigResolver = actions_76b8683e_esm_objectSpread2(actions_76b8683e_esm_objectSpread2({}, commonConfigResolver), {}, {
+const coordinatesConfigResolver = actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({}, commonConfigResolver), {}, {
axis(_v, _k, {
axis
}) {
class DragEngine extends CoordinatesEngine {
constructor(...args) {
super(...args);
- actions_76b8683e_esm_defineProperty(this, "ingKey", 'dragging');
+ actions_fe213e88_esm_defineProperty(this, "ingKey", 'dragging');
}
reset() {
super.reset();
'persist' in event && typeof event.persist === 'function' && event.persist();
}
-const actions_76b8683e_esm_isBrowser = typeof window !== 'undefined' && window.document && window.document.createElement;
+const actions_fe213e88_esm_isBrowser = typeof window !== 'undefined' && window.document && window.document.createElement;
function supportsTouchEvents() {
- return actions_76b8683e_esm_isBrowser && 'ontouchstart' in window;
+ return actions_fe213e88_esm_isBrowser && 'ontouchstart' in window;
}
function isTouchScreen() {
- return supportsTouchEvents() || actions_76b8683e_esm_isBrowser && window.navigator.maxTouchPoints > 1;
+ return supportsTouchEvents() || actions_fe213e88_esm_isBrowser && window.navigator.maxTouchPoints > 1;
}
function supportsPointerEvents() {
- return actions_76b8683e_esm_isBrowser && 'onpointerdown' in window;
+ return actions_fe213e88_esm_isBrowser && 'onpointerdown' in window;
}
function supportsPointerLock() {
- return actions_76b8683e_esm_isBrowser && 'exitPointerLock' in window.document;
+ return actions_fe213e88_esm_isBrowser && 'exitPointerLock' in window.document;
}
function supportsGestureEvents() {
try {
}
}
const SUPPORT = {
- isBrowser: actions_76b8683e_esm_isBrowser,
+ isBrowser: actions_fe213e88_esm_isBrowser,
gesture: supportsGestureEvents(),
- touch: isTouchScreen(),
+ touch: supportsTouchEvents(),
touchscreen: isTouchScreen(),
pointer: supportsPointerEvents(),
pointerLock: supportsPointerLock()
touch: 0,
pen: 8
};
-const dragConfigResolver = actions_76b8683e_esm_objectSpread2(actions_76b8683e_esm_objectSpread2({}, coordinatesConfigResolver), {}, {
+const dragConfigResolver = actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({}, coordinatesConfigResolver), {}, {
device(_v, _k, {
pointer: {
touch = false,
},
axisThreshold(value) {
if (!value) return DEFAULT_DRAG_AXIS_THRESHOLD;
- return actions_76b8683e_esm_objectSpread2(actions_76b8683e_esm_objectSpread2({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
+ return actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
},
keyboardDisplacement(value = DEFAULT_KEYBOARD_DISPLACEMENT) {
return value;
class PinchEngine extends Engine {
constructor(...args) {
super(...args);
- actions_76b8683e_esm_defineProperty(this, "ingKey", 'pinching');
- actions_76b8683e_esm_defineProperty(this, "aliasKey", 'da');
+ actions_fe213e88_esm_defineProperty(this, "ingKey", 'pinching');
+ actions_fe213e88_esm_defineProperty(this, "aliasKey", 'da');
}
init() {
this.state.offset = [1, 0];
}
wheel(event) {
const modifierKey = this.config.modifierKey;
- if (modifierKey && !event[modifierKey]) return;
+ if (modifierKey && (Array.isArray(modifierKey) ? !modifierKey.find(k => event[k]) : !event[modifierKey])) return;
if (!this.state._active) this.wheelStart(event);else this.wheelChange(event);
this.timeoutStore.add('wheelEnd', this.wheelEnd.bind(this));
}
}
}
-const pinchConfigResolver = actions_76b8683e_esm_objectSpread2(actions_76b8683e_esm_objectSpread2({}, commonConfigResolver), {}, {
+const pinchConfigResolver = actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({}, commonConfigResolver), {}, {
device(_v, _k, {
shared,
pointer: {
class MoveEngine extends CoordinatesEngine {
constructor(...args) {
super(...args);
- actions_76b8683e_esm_defineProperty(this, "ingKey", 'moving');
+ actions_fe213e88_esm_defineProperty(this, "ingKey", 'moving');
}
move(event) {
if (this.config.mouseOnly && event.pointerType !== 'mouse') return;
}
}
-const moveConfigResolver = actions_76b8683e_esm_objectSpread2(actions_76b8683e_esm_objectSpread2({}, coordinatesConfigResolver), {}, {
+const moveConfigResolver = actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({}, coordinatesConfigResolver), {}, {
mouseOnly: (value = true) => value
});
class ScrollEngine extends CoordinatesEngine {
constructor(...args) {
super(...args);
- actions_76b8683e_esm_defineProperty(this, "ingKey", 'scrolling');
+ actions_fe213e88_esm_defineProperty(this, "ingKey", 'scrolling');
}
scroll(event) {
if (!this.state._active) this.start(event);
class WheelEngine extends CoordinatesEngine {
constructor(...args) {
super(...args);
- actions_76b8683e_esm_defineProperty(this, "ingKey", 'wheeling');
+ actions_fe213e88_esm_defineProperty(this, "ingKey", 'wheeling');
}
wheel(event) {
if (!this.state._active) this.start(event);
class HoverEngine extends CoordinatesEngine {
constructor(...args) {
super(...args);
- actions_76b8683e_esm_defineProperty(this, "ingKey", 'hovering');
+ actions_fe213e88_esm_defineProperty(this, "ingKey", 'hovering');
}
enter(event) {
if (this.config.mouseOnly && event.pointerType !== 'mouse') return;
}
}
-const hoverConfigResolver = actions_76b8683e_esm_objectSpread2(actions_76b8683e_esm_objectSpread2({}, coordinatesConfigResolver), {}, {
+const hoverConfigResolver = actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({}, coordinatesConfigResolver), {}, {
mouseOnly: (value = true) => value
});
-const actions_76b8683e_esm_EngineMap = new Map();
+const actions_fe213e88_esm_EngineMap = new Map();
const ConfigResolverMap = new Map();
-function actions_76b8683e_esm_registerAction(action) {
- actions_76b8683e_esm_EngineMap.set(action.key, action.engine);
+function actions_fe213e88_esm_registerAction(action) {
+ actions_fe213e88_esm_EngineMap.set(action.key, action.engine);
ConfigResolverMap.set(action.key, action.resolver);
}
-const actions_76b8683e_esm_dragAction = {
+const actions_fe213e88_esm_dragAction = {
key: 'drag',
engine: DragEngine,
resolver: dragConfigResolver
};
-const actions_76b8683e_esm_hoverAction = {
+const actions_fe213e88_esm_hoverAction = {
key: 'hover',
engine: HoverEngine,
resolver: hoverConfigResolver
};
-const actions_76b8683e_esm_moveAction = {
+const actions_fe213e88_esm_moveAction = {
key: 'move',
engine: MoveEngine,
resolver: moveConfigResolver
};
-const actions_76b8683e_esm_pinchAction = {
+const actions_fe213e88_esm_pinchAction = {
key: 'pinch',
engine: PinchEngine,
resolver: pinchConfigResolver
};
-const actions_76b8683e_esm_scrollAction = {
+const actions_fe213e88_esm_scrollAction = {
key: 'scroll',
engine: ScrollEngine,
resolver: scrollConfigResolver
};
-const actions_76b8683e_esm_wheelAction = {
+const actions_fe213e88_esm_wheelAction = {
key: 'wheel',
engine: WheelEngine,
resolver: wheelConfigResolver
}, sharedConfigResolver);
if (gestureKey) {
const resolver = ConfigResolverMap.get(gestureKey);
- _config[gestureKey] = resolveWith(actions_76b8683e_esm_objectSpread2({
+ _config[gestureKey] = resolveWith(actions_fe213e88_esm_objectSpread2({
shared: _config.shared
}, rest), resolver);
} else {
for (const key in rest) {
const resolver = ConfigResolverMap.get(key);
if (resolver) {
- _config[key] = resolveWith(actions_76b8683e_esm_objectSpread2({
+ _config[key] = resolveWith(actions_fe213e88_esm_objectSpread2({
shared: _config.shared
}, rest[key]), resolver);
} else if (false) {}
class EventStore {
constructor(ctrl, gestureKey) {
- actions_76b8683e_esm_defineProperty(this, "_listeners", new Set());
+ actions_fe213e88_esm_defineProperty(this, "_listeners", new Set());
this._ctrl = ctrl;
this._gestureKey = gestureKey;
}
const listeners = this._listeners;
const type = toDomEventType(device, action);
const _options = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {};
- const eventOptions = actions_76b8683e_esm_objectSpread2(actions_76b8683e_esm_objectSpread2({}, _options), options);
+ const eventOptions = actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({}, _options), options);
element.addEventListener(type, handler, eventOptions);
const remove = () => {
element.removeEventListener(type, handler, eventOptions);
class TimeoutStore {
constructor() {
- actions_76b8683e_esm_defineProperty(this, "_timeouts", new Map());
+ actions_fe213e88_esm_defineProperty(this, "_timeouts", new Map());
}
add(key, callback, ms = 140, ...args) {
this.remove(key);
class Controller {
constructor(handlers) {
- actions_76b8683e_esm_defineProperty(this, "gestures", new Set());
- actions_76b8683e_esm_defineProperty(this, "_targetEventStore", new EventStore(this));
- actions_76b8683e_esm_defineProperty(this, "gestureEventStores", {});
- actions_76b8683e_esm_defineProperty(this, "gestureTimeoutStores", {});
- actions_76b8683e_esm_defineProperty(this, "handlers", {});
- actions_76b8683e_esm_defineProperty(this, "config", {});
- actions_76b8683e_esm_defineProperty(this, "pointerIds", new Set());
- actions_76b8683e_esm_defineProperty(this, "touchIds", new Set());
- actions_76b8683e_esm_defineProperty(this, "state", {
+ actions_fe213e88_esm_defineProperty(this, "gestures", new Set());
+ actions_fe213e88_esm_defineProperty(this, "_targetEventStore", new EventStore(this));
+ actions_fe213e88_esm_defineProperty(this, "gestureEventStores", {});
+ actions_fe213e88_esm_defineProperty(this, "gestureTimeoutStores", {});
+ actions_fe213e88_esm_defineProperty(this, "handlers", {});
+ actions_fe213e88_esm_defineProperty(this, "config", {});
+ actions_fe213e88_esm_defineProperty(this, "pointerIds", new Set());
+ actions_fe213e88_esm_defineProperty(this, "touchIds", new Set());
+ actions_fe213e88_esm_defineProperty(this, "state", {
shared: {
shiftKey: false,
metaKey: false,
const gestureConfig = this.config[gestureKey];
const bindFunction = bindToProps(props, gestureConfig.eventOptions, !!target);
if (gestureConfig.enabled) {
- const Engine = actions_76b8683e_esm_EngineMap.get(gestureKey);
+ const Engine = actions_fe213e88_esm_EngineMap.get(gestureKey);
new Engine(this, args, gestureKey).bind(bindFunction);
}
}
const nativeBindFunction = bindToProps(props, sharedConfig.eventOptions, !!target);
for (const eventKey in this.nativeHandlers) {
- nativeBindFunction(eventKey, '', event => this.nativeHandlers[eventKey](actions_76b8683e_esm_objectSpread2(actions_76b8683e_esm_objectSpread2({}, this.state.shared), {}, {
+ nativeBindFunction(eventKey, '', event => this.nativeHandlers[eventKey](actions_fe213e88_esm_objectSpread2(actions_fe213e88_esm_objectSpread2({}, this.state.shared), {}, {
event,
args
})), undefined, true);
}
function useDrag(handler, config) {
- actions_76b8683e_esm_registerAction(actions_76b8683e_esm_dragAction);
+ actions_fe213e88_esm_registerAction(actions_fe213e88_esm_dragAction);
return useRecognizers({
drag: handler
}, config || {}, 'drag');
}
function useHover(handler, config) {
- actions_76b8683e_esm_registerAction(actions_76b8683e_esm_hoverAction);
+ actions_fe213e88_esm_registerAction(actions_fe213e88_esm_hoverAction);
return useRecognizers({
hover: handler
}, config || {}, 'hover');
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/instanceOf.js
-function isElement(node) {
+function instanceOf_isElement(node) {
var OwnElement = getWindow_getWindow(node).Element;
return node instanceof OwnElement || node instanceof Element;
}
-function isHTMLElement(node) {
+function instanceOf_isHTMLElement(node) {
var OwnElement = getWindow_getWindow(node).HTMLElement;
return node instanceof OwnElement || node instanceof HTMLElement;
}
-function isShadowRoot(node) {
+function instanceOf_isShadowRoot(node) {
// IE 11 has no ShadowRoot
if (typeof ShadowRoot === 'undefined') {
return false;
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/math.js
var math_max = Math.max;
var math_min = Math.min;
-var round = Math.round;
+var math_round = Math.round;
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/userAgent.js
function getUAString() {
var uaData = navigator.userAgentData;
-function getBoundingClientRect(element, includeScale, isFixedStrategy) {
+function getBoundingClientRect_getBoundingClientRect(element, includeScale, isFixedStrategy) {
if (includeScale === void 0) {
includeScale = false;
}
var scaleX = 1;
var scaleY = 1;
- if (includeScale && isHTMLElement(element)) {
- scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
- scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
+ if (includeScale && instanceOf_isHTMLElement(element)) {
+ scaleX = element.offsetWidth > 0 ? math_round(clientRect.width) / element.offsetWidth || 1 : 1;
+ scaleY = element.offsetHeight > 0 ? math_round(clientRect.height) / element.offsetHeight || 1 : 1;
}
- var _ref = isElement(element) ? getWindow_getWindow(element) : window,
+ var _ref = instanceOf_isElement(element) ? getWindow_getWindow(element) : window,
visualViewport = _ref.visualViewport;
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
-function getNodeScroll(node) {
- if (node === getWindow_getWindow(node) || !isHTMLElement(node)) {
+function getNodeScroll_getNodeScroll(node) {
+ if (node === getWindow_getWindow(node) || !instanceOf_isHTMLElement(node)) {
return getWindowScroll(node);
} else {
return getHTMLElementScroll(node);
}
}
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getNodeName.js
-function getNodeName(element) {
+function getNodeName_getNodeName(element) {
return element ? (element.nodeName || '').toLowerCase() : null;
}
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js
-function getDocumentElement(element) {
+function getDocumentElement_getDocumentElement(element) {
// $FlowFixMe[incompatible-return]: assume body is always available
- return ((isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
+ return ((instanceOf_isElement(element) ? element.ownerDocument : // $FlowFixMe[prop-missing]
element.document) || window.document).documentElement;
}
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js
-function getWindowScrollBarX(element) {
+function getWindowScrollBarX_getWindowScrollBarX(element) {
// If <html> has a CSS width greater than the viewport, then this will be
// incorrect for RTL.
// Popper 1 is broken in this case and never had a bug report so let's assume
// anyway.
// Browsers where the left scrollbar doesn't cause an issue report `0` for
// this (e.g. Edge 2019, IE11, Safari)
- return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
+ return getBoundingClientRect_getBoundingClientRect(getDocumentElement_getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
}
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js
function isElementScaled(element) {
var rect = element.getBoundingClientRect();
- var scaleX = round(rect.width) / element.offsetWidth || 1;
- var scaleY = round(rect.height) / element.offsetHeight || 1;
+ var scaleX = math_round(rect.width) / element.offsetWidth || 1;
+ var scaleY = math_round(rect.height) / element.offsetHeight || 1;
return scaleX !== 1 || scaleY !== 1;
} // Returns the composite rect of an element relative to its offsetParent.
// Composite means it takes into account transforms as well as layout.
isFixed = false;
}
- var isOffsetParentAnElement = isHTMLElement(offsetParent);
- var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
- var documentElement = getDocumentElement(offsetParent);
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
+ var isOffsetParentAnElement = instanceOf_isHTMLElement(offsetParent);
+ var offsetParentIsScaled = instanceOf_isHTMLElement(offsetParent) && isElementScaled(offsetParent);
+ var documentElement = getDocumentElement_getDocumentElement(offsetParent);
+ var rect = getBoundingClientRect_getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
var scroll = {
scrollLeft: 0,
scrollTop: 0
};
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
- if (getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
+ if (getNodeName_getNodeName(offsetParent) !== 'body' || // https://github.com/popperjs/popper-core/issues/1078
isScrollParent(documentElement)) {
- scroll = getNodeScroll(offsetParent);
+ scroll = getNodeScroll_getNodeScroll(offsetParent);
}
- if (isHTMLElement(offsetParent)) {
- offsets = getBoundingClientRect(offsetParent, true);
+ if (instanceOf_isHTMLElement(offsetParent)) {
+ offsets = getBoundingClientRect_getBoundingClientRect(offsetParent, true);
offsets.x += offsetParent.clientLeft;
offsets.y += offsetParent.clientTop;
} else if (documentElement) {
- offsets.x = getWindowScrollBarX(documentElement);
+ offsets.x = getWindowScrollBarX_getWindowScrollBarX(documentElement);
}
}
// means it doesn't take into account transforms.
function getLayoutRect(element) {
- var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
+ var clientRect = getBoundingClientRect_getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
// Fixes https://github.com/popperjs/popper-core/issues/1223
var width = element.offsetWidth;
-function getParentNode(element) {
- if (getNodeName(element) === 'html') {
+function getParentNode_getParentNode(element) {
+ if (getNodeName_getNodeName(element) === 'html') {
return element;
}
// $FlowFixMe[prop-missing]
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
element.parentNode || ( // DOM Element detected
- isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
+ instanceOf_isShadowRoot(element) ? element.host : null) || // ShadowRoot detected
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
- getDocumentElement(element) // fallback
+ getDocumentElement_getDocumentElement(element) // fallback
);
}
function getScrollParent(node) {
- if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
+ if (['html', 'body', '#document'].indexOf(getNodeName_getNodeName(node)) >= 0) {
// $FlowFixMe[incompatible-return]: assume body is always available
return node.ownerDocument.body;
}
- if (isHTMLElement(node) && isScrollParent(node)) {
+ if (instanceOf_isHTMLElement(node) && isScrollParent(node)) {
return node;
}
- return getScrollParent(getParentNode(node));
+ return getScrollParent(getParentNode_getParentNode(node));
}
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
var updatedList = list.concat(target);
return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
- updatedList.concat(listScrollParents(getParentNode(target)));
+ updatedList.concat(listScrollParents(getParentNode_getParentNode(target)));
}
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/isTableElement.js
-function isTableElement(element) {
- return ['table', 'td', 'th'].indexOf(getNodeName(element)) >= 0;
+function isTableElement_isTableElement(element) {
+ return ['table', 'td', 'th'].indexOf(getNodeName_getNodeName(element)) >= 0;
}
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js
-function getTrueOffsetParent(element) {
- if (!isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
+function getOffsetParent_getTrueOffsetParent(element) {
+ if (!instanceOf_isHTMLElement(element) || // https://github.com/popperjs/popper-core/issues/837
getComputedStyle_getComputedStyle(element).position === 'fixed') {
return null;
}
// return the containing block
-function getContainingBlock(element) {
+function getOffsetParent_getContainingBlock(element) {
var isFirefox = /firefox/i.test(getUAString());
var isIE = /Trident/i.test(getUAString());
- if (isIE && isHTMLElement(element)) {
+ if (isIE && instanceOf_isHTMLElement(element)) {
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
var elementCss = getComputedStyle_getComputedStyle(element);
}
}
- var currentNode = getParentNode(element);
+ var currentNode = getParentNode_getParentNode(element);
- if (isShadowRoot(currentNode)) {
+ if (instanceOf_isShadowRoot(currentNode)) {
currentNode = currentNode.host;
}
- while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
+ while (instanceOf_isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName_getNodeName(currentNode)) < 0) {
var css = getComputedStyle_getComputedStyle(currentNode); // This is non-exhaustive but covers the most common CSS properties that
// create a containing block.
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
// such as table ancestors and cross browser bugs.
-function getOffsetParent(element) {
+function getOffsetParent_getOffsetParent(element) {
var window = getWindow_getWindow(element);
- var offsetParent = getTrueOffsetParent(element);
+ var offsetParent = getOffsetParent_getTrueOffsetParent(element);
- while (offsetParent && isTableElement(offsetParent) && getComputedStyle_getComputedStyle(offsetParent).position === 'static') {
- offsetParent = getTrueOffsetParent(offsetParent);
+ while (offsetParent && isTableElement_isTableElement(offsetParent) && getComputedStyle_getComputedStyle(offsetParent).position === 'static') {
+ offsetParent = getOffsetParent_getTrueOffsetParent(offsetParent);
}
- if (offsetParent && (getNodeName(offsetParent) === 'html' || getNodeName(offsetParent) === 'body' && getComputedStyle_getComputedStyle(offsetParent).position === 'static')) {
+ if (offsetParent && (getNodeName_getNodeName(offsetParent) === 'html' || getNodeName_getNodeName(offsetParent) === 'body' && getComputedStyle_getComputedStyle(offsetParent).position === 'static')) {
return window;
}
- return offsetParent || getContainingBlock(element) || window;
+ return offsetParent || getOffsetParent_getContainingBlock(element) || window;
}
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/enums.js
var enums_top = 'top';
cleanupModifierEffects();
state.options = Object.assign({}, defaultOptions, state.options, options);
state.scrollParents = {
- reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
+ reference: instanceOf_isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
popper: listScrollParents(popper)
}; // Orders the modifiers based on their dependencies and `phase`
// properties
state.rects = {
- reference: getCompositeRect(reference, getOffsetParent(popper), state.options.strategy === 'fixed'),
+ reference: getCompositeRect(reference, getOffsetParent_getOffsetParent(popper), state.options.strategy === 'fixed'),
popper: getLayoutRect(popper)
}; // Modifiers have the ability to reset the current update cycle. The
// most common use case for this is the `flip` modifier changing the
y = _ref.y;
var dpr = win.devicePixelRatio || 1;
return {
- x: round(x * dpr) / dpr || 0,
- y: round(y * dpr) / dpr || 0
+ x: math_round(x * dpr) / dpr || 0,
+ y: math_round(y * dpr) / dpr || 0
};
}
var win = window;
if (adaptive) {
- var offsetParent = getOffsetParent(popper);
+ var offsetParent = getOffsetParent_getOffsetParent(popper);
var heightProp = 'clientHeight';
var widthProp = 'clientWidth';
if (offsetParent === getWindow_getWindow(popper)) {
- offsetParent = getDocumentElement(popper);
+ offsetParent = getDocumentElement_getDocumentElement(popper);
if (getComputedStyle_getComputedStyle(offsetParent).position !== 'static' && position === 'absolute') {
heightProp = 'scrollHeight';
var attributes = state.attributes[name] || {};
var element = state.elements[name]; // arrow is optional + virtual elements
- if (!isHTMLElement(element) || !getNodeName(element)) {
+ if (!instanceOf_isHTMLElement(element) || !getNodeName_getNodeName(element)) {
return;
} // Flow doesn't support to extend this property, but it's the most
// effective way to apply styles to an HTMLElement
return style;
}, {}); // arrow is optional + virtual elements
- if (!isHTMLElement(element) || !getNodeName(element)) {
+ if (!instanceOf_isHTMLElement(element) || !getNodeName_getNodeName(element)) {
return;
}
};
}
-function offset(_ref2) {
+function offset_offset(_ref2) {
var state = _ref2.state,
options = _ref2.options,
name = _ref2.name;
enabled: true,
phase: 'main',
requires: ['popperOffsets'],
- fn: offset
+ fn: offset_offset
});
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/getOppositePlacement.js
var getOppositePlacement_hash = {
bottom: 'top',
top: 'bottom'
};
-function getOppositePlacement(placement) {
+function getOppositePlacement_getOppositePlacement(placement) {
return placement.replace(/left|right|bottom|top/g, function (matched) {
return getOppositePlacement_hash[matched];
});
-function getViewportRect(element, strategy) {
+function getViewportRect_getViewportRect(element, strategy) {
var win = getWindow_getWindow(element);
- var html = getDocumentElement(element);
+ var html = getDocumentElement_getDocumentElement(element);
var visualViewport = win.visualViewport;
var width = html.clientWidth;
var height = html.clientHeight;
return {
width: width,
height: height,
- x: x + getWindowScrollBarX(element),
+ x: x + getWindowScrollBarX_getWindowScrollBarX(element),
y: y
};
}
// Gets the entire size of the scrollable document area, even extending outside
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
-function getDocumentRect(element) {
+function getDocumentRect_getDocumentRect(element) {
var _element$ownerDocumen;
- var html = getDocumentElement(element);
+ var html = getDocumentElement_getDocumentElement(element);
var winScroll = getWindowScroll(element);
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
var width = math_max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
var height = math_max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
- var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
+ var x = -winScroll.scrollLeft + getWindowScrollBarX_getWindowScrollBarX(element);
var y = -winScroll.scrollTop;
if (getComputedStyle_getComputedStyle(body || html).direction === 'rtl') {
if (parent.contains(child)) {
return true;
} // then fallback to custom implementation with Shadow DOM support
- else if (rootNode && isShadowRoot(rootNode)) {
+ else if (rootNode && instanceOf_isShadowRoot(rootNode)) {
var next = child;
do {
return false;
}
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/utils/rectToClientRect.js
-function rectToClientRect(rect) {
+function rectToClientRect_rectToClientRect(rect) {
return Object.assign({}, rect, {
left: rect.x,
top: rect.y,
-function getInnerBoundingClientRect(element, strategy) {
- var rect = getBoundingClientRect(element, false, strategy === 'fixed');
+function getClippingRect_getInnerBoundingClientRect(element, strategy) {
+ var rect = getBoundingClientRect_getBoundingClientRect(element, false, strategy === 'fixed');
rect.top = rect.top + element.clientTop;
rect.left = rect.left + element.clientLeft;
rect.bottom = rect.top + element.clientHeight;
}
function getClientRectFromMixedType(element, clippingParent, strategy) {
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
+ return clippingParent === viewport ? rectToClientRect_rectToClientRect(getViewportRect_getViewportRect(element, strategy)) : instanceOf_isElement(clippingParent) ? getClippingRect_getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect_rectToClientRect(getDocumentRect_getDocumentRect(getDocumentElement_getDocumentElement(element)));
} // A "clipping parent" is an overflowable container with the characteristic of
// clipping (or hiding) overflowing elements with a position different from
// `initial`
function getClippingParents(element) {
- var clippingParents = listScrollParents(getParentNode(element));
+ var clippingParents = listScrollParents(getParentNode_getParentNode(element));
var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle_getComputedStyle(element).position) >= 0;
- var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
+ var clipperElement = canEscapeClipping && instanceOf_isHTMLElement(element) ? getOffsetParent_getOffsetParent(element) : element;
- if (!isElement(clipperElement)) {
+ if (!instanceOf_isElement(clipperElement)) {
return [];
} // $FlowFixMe[incompatible-return]: https://github.com/facebook/flow/issues/1414
return clippingParents.filter(function (clippingParent) {
- return isElement(clippingParent) && contains_contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
+ return instanceOf_isElement(clippingParent) && contains_contains(clippingParent, clipperElement) && getNodeName_getNodeName(clippingParent) !== 'body';
});
} // Gets the maximum area that the element is visible in due to any number of
// clipping parents
-function getClippingRect(element, boundary, rootBoundary, strategy) {
+function getClippingRect_getClippingRect(element, boundary, rootBoundary, strategy) {
var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
var firstClippingParent = clippingParents[0];
// eslint-disable-next-line import/no-unused-modules
-function detectOverflow(state, options) {
+function detectOverflow_detectOverflow(state, options) {
if (options === void 0) {
options = {};
}
var altContext = elementContext === popper ? reference : popper;
var popperRect = state.rects.popper;
var element = state.elements[altBoundary ? altContext : elementContext];
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
- var referenceClientRect = getBoundingClientRect(state.elements.reference);
+ var clippingClientRect = getClippingRect_getClippingRect(instanceOf_isElement(element) ? element : element.contextElement || getDocumentElement_getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
+ var referenceClientRect = getBoundingClientRect_getBoundingClientRect(state.elements.reference);
var popperOffsets = computeOffsets({
reference: referenceClientRect,
element: popperRect,
strategy: 'absolute',
placement: placement
});
- var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
+ var popperClientRect = rectToClientRect_rectToClientRect(Object.assign({}, popperRect, popperOffsets));
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
// 0 or negative = within the clipping rect
var overflows = allowedPlacements.reduce(function (acc, placement) {
- acc[placement] = detectOverflow(state, {
+ acc[placement] = detectOverflow_detectOverflow(state, {
placement: placement,
boundary: boundary,
rootBoundary: rootBoundary,
return [];
}
- var oppositePlacement = getOppositePlacement(placement);
+ var oppositePlacement = getOppositePlacement_getOppositePlacement(placement);
return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
}
var preferredPlacement = state.options.placement;
var basePlacement = getBasePlacement(preferredPlacement);
var isBasePlacement = basePlacement === preferredPlacement;
- var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
+ var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement_getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
var placements = [preferredPlacement].concat(fallbackPlacements).reduce(function (acc, placement) {
return acc.concat(getBasePlacement(placement) === enums_auto ? computeAutoPlacement(state, {
placement: placement,
var isStartVariation = getVariation(placement) === start;
var isVertical = [enums_top, bottom].indexOf(_basePlacement) >= 0;
var len = isVertical ? 'width' : 'height';
- var overflow = detectOverflow(state, {
+ var overflow = detectOverflow_detectOverflow(state, {
placement: placement,
boundary: boundary,
rootBoundary: rootBoundary,
var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : enums_top;
if (referenceRect[len] > popperRect[len]) {
- mainVariationSide = getOppositePlacement(mainVariationSide);
+ mainVariationSide = getOppositePlacement_getOppositePlacement(mainVariationSide);
}
- var altVariationSide = getOppositePlacement(mainVariationSide);
+ var altVariationSide = getOppositePlacement_getOppositePlacement(mainVariationSide);
var checks = [];
if (checkMainAxis) {
tether = _options$tether === void 0 ? true : _options$tether,
_options$tetherOffset = options.tetherOffset,
tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
- var overflow = detectOverflow(state, {
+ var overflow = detectOverflow_detectOverflow(state, {
boundary: boundary,
rootBoundary: rootBoundary,
padding: padding,
var arrowLen = within(0, referenceRect[len], arrowRect[len]);
var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis : minLen - arrowLen - arrowPaddingMin - normalizedTetherOffsetValue.mainAxis;
var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis : maxLen + arrowLen + arrowPaddingMax + normalizedTetherOffsetValue.mainAxis;
- var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
+ var arrowOffsetParent = state.elements.arrow && getOffsetParent_getOffsetParent(state.elements.arrow);
var clientOffset = arrowOffsetParent ? mainAxis === 'y' ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
var tetherMin = offset + minOffset - offsetModifierValue - clientOffset;
var maxProp = axis === 'y' ? bottom : right;
var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets[axis] - state.rects.popper[len];
var startDiff = popperOffsets[axis] - state.rects.reference[axis];
- var arrowOffsetParent = getOffsetParent(arrowElement);
+ var arrowOffsetParent = getOffsetParent_getOffsetParent(arrowElement);
var clientSize = arrowOffsetParent ? axis === 'y' ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
var centerToReference = endDiff / 2 - startDiff / 2; // Make sure the arrow doesn't overflow the popper if the center point is
// outside of the popper bounds
-function getSideOffsets(overflow, rect, preventedOffsets) {
+function hide_getSideOffsets(overflow, rect, preventedOffsets) {
if (preventedOffsets === void 0) {
preventedOffsets = {
x: 0,
};
}
-function isAnySideFullyClipped(overflow) {
+function hide_isAnySideFullyClipped(overflow) {
return [enums_top, right, bottom, left].some(function (side) {
return overflow[side] >= 0;
});
}
-function hide(_ref) {
+function hide_hide(_ref) {
var state = _ref.state,
name = _ref.name;
var referenceRect = state.rects.reference;
var popperRect = state.rects.popper;
var preventedOffsets = state.modifiersData.preventOverflow;
- var referenceOverflow = detectOverflow(state, {
+ var referenceOverflow = detectOverflow_detectOverflow(state, {
elementContext: 'reference'
});
- var popperAltOverflow = detectOverflow(state, {
+ var popperAltOverflow = detectOverflow_detectOverflow(state, {
altBoundary: true
});
- var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
- var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
- var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
- var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
+ var referenceClippingOffsets = hide_getSideOffsets(referenceOverflow, referenceRect);
+ var popperEscapeOffsets = hide_getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
+ var isReferenceHidden = hide_isAnySideFullyClipped(referenceClippingOffsets);
+ var hasPopperEscaped = hide_isAnySideFullyClipped(popperEscapeOffsets);
state.modifiersData[name] = {
referenceClippingOffsets: referenceClippingOffsets,
popperEscapeOffsets: popperEscapeOffsets,
enabled: true,
phase: 'main',
requiresIfExists: ['preventOverflow'],
- fn: hide
+ fn: hide_hide
});
;// CONCATENATED MODULE: ./node_modules/@popperjs/core/lib/popper.js
};
;// CONCATENATED MODULE: ./node_modules/react-colorful/dist/index.mjs
-function dist_u(){return(dist_u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function dist_c(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r.indexOf(t=a[n])>=0||(o[t]=e[t]);return o}function dist_i(e){var t=(0,external_React_.useRef)(e),n=(0,external_React_.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var dist_s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e<r?r:e},dist_f=function(e){return"touches"in e},dist_v=function(e){return e&&e.ownerDocument.defaultView||self},dist_d=function(e,r,t){var n=e.getBoundingClientRect(),o=dist_f(r)?function(e,r){for(var t=0;t<e.length;t++)if(e[t].identifier===r)return e[t];return e[0]}(r.touches,t):r;return{left:dist_s((o.pageX-(n.left+dist_v(e).pageXOffset))/n.width),top:dist_s((o.pageY-(n.top+dist_v(e).pageYOffset))/n.height)}},dist_h=function(e){!dist_f(e)&&e.preventDefault()},dist_m=external_React_.memo(function(o){var a=o.onMove,l=o.onKey,s=dist_c(o,["onMove","onKey"]),m=(0,external_React_.useRef)(null),g=dist_i(a),p=dist_i(l),b=(0,external_React_.useRef)(null),_=(0,external_React_.useRef)(!1),x=(0,external_React_.useMemo)(function(){var e=function(e){dist_h(e),(dist_f(e)?e.touches.length>0:e.buttons>0)&&m.current?g(dist_d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=dist_v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(dist_h(r),!function(e,r){return r&&!dist_f(e)}(r,_.current)&&n)){if(dist_f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(dist_d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return (0,external_React_.useEffect)(function(){return H},[H]),external_React_.createElement("div",dist_u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),dist_g=function(e){return e.filter(Boolean).join(" ")},dist_p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=dist_g(["react-colorful__pointer",r.className]);return external_React_.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},external_React_.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},dist_b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},dist_x=function(e){return dist_L(dist_C(e))},dist_C=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?dist_b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?dist_b(parseInt(e.substring(6,8),16)/255,2):1}},dist_E=function(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},dist_H=function(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_N({h:dist_E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_M=dist_H,dist_N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},dist_w=function(e){return K(dist_I(e))},dist_y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:dist_b(e.h),s:dist_b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:dist_b(o/2),a:dist_b(n,2)}},q=function(e){var r=dist_y(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},dist_k=function(e){var r=dist_y(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},dist_I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:dist_b(255*[n,u,l,l,c,n][i]),g:dist_b(255*[c,n,n,u,l,l][i]),b:dist_b(255*[l,l,c,n,n,u][i]),a:dist_b(o,2)}},dist_O=function(e){var r=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_A({h:dist_E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_j=dist_O,z=function(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,dist_D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?dist_D(dist_b(255*o)):"";return"#"+dist_D(r)+dist_D(t)+dist_D(n)+a},dist_L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:dist_b(60*(u<0?u+6:u)),s:dist_b(a?l/a*100:0),v:dist_b(a/255*100),a:o}},dist_A=function(e){return{h:dist_b(e.h),s:dist_b(e.s),v:dist_b(e.v),a:dist_b(e.a,2)}},dist_S=external_React_.memo(function(r){var t=r.hue,n=r.onChange,o=dist_g(["react-colorful__hue",r.className]);return external_React_.createElement("div",{className:o},external_React_.createElement(dist_m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:dist_s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":dist_b(t),"aria-valuemax":"360","aria-valuemin":"0"},external_React_.createElement(dist_p,{className:"react-colorful__hue-pointer",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),dist_T=external_React_.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return external_React_.createElement("div",{className:"react-colorful__saturation",style:o},external_React_.createElement(dist_m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:dist_s(t.s+100*e.left,0,100),v:dist_s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+dist_b(t.s)+"%, Brightness "+dist_b(t.v)+"%"},external_React_.createElement(dist_p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},dist_P=function(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(dist_C(e),dist_C(r))};function Y(e,t,l){var u=dist_i(l),c=(0,external_React_.useState)(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=(0,external_React_.useRef)({color:t,hsva:s});(0,external_React_.useEffect)(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),(0,external_React_.useEffect)(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=(0,external_React_.useCallback)(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var dist_R,dist_V="undefined"!=typeof window?external_React_.useLayoutEffect:external_React_.useEffect,dist_$=function(){return dist_R||( true?__webpack_require__.nc:0)},G=function(e){dist_R=e},J=new Map,Q=function(e){dist_V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=dist_$();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(dist_T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},dist_W={defaultColor:"000",toHsva:dist_x,fromHsva:function(e){return dist_w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,dist_u({},r,{colorModel:dist_W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+dist_k(Object.assign({},n,{a:0}))+", "+dist_k(Object.assign({},n,{a:1}))+")"},l=dist_g(["react-colorful__alpha",t]),u=dist_b(100*n.a);return external_React_.createElement("div",{className:l},external_React_.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),external_React_.createElement(dist_m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:dist_s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},external_React_.createElement(dist_p,{className:"react-colorful__alpha-pointer",left:n.a,color:dist_k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(dist_T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h}),external_React_.createElement(ee,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},te={defaultColor:"0001",toHsva:dist_x,fromHsva:dist_w,equal:X},ne=function(r){return e.createElement(re,dist_u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:dist_N,fromHsva:dist_y,equal:F},ae=function(r){return e.createElement(re,dist_u({},r,{colorModel:oe}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:dist_H,fromHsva:dist_k,equal:dist_P},ue=function(r){return e.createElement(re,dist_u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return dist_N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=dist_y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,dist_u({},r,{colorModel:ce}))},se={defaultColor:"hsl(0, 0%, 0%)",toHsva:dist_M,fromHsva:q,equal:dist_P},fe=function(r){return e.createElement(U,dist_u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:dist_A,equal:F},de=function(r){return e.createElement(re,dist_u({},r,{colorModel:ve}))},he={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:dist_O,fromHsva:function(e){var r=dist_A(e);return"hsva("+r.h+", "+r.s+"%, "+r.v+"%, "+r.a+")"},equal:dist_P},me=function(r){return e.createElement(re,dist_u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=dist_A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,dist_u({},r,{colorModel:ge}))},be={defaultColor:"hsv(0, 0%, 0%)",toHsva:dist_j,fromHsva:function(e){var r=dist_A(e);return"hsv("+r.h+", "+r.s+"%, "+r.v+"%)"},equal:dist_P},_e=function(r){return e.createElement(U,dist_u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:dist_L,fromHsva:dist_I,equal:F},Ce=function(r){return e.createElement(re,dist_u({},r,{colorModel:xe}))},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:z,fromHsva:function(e){var r=dist_I(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:dist_P},He=function(r){return external_React_.createElement(re,dist_u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return dist_L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=dist_I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,dist_u({},r,{colorModel:Me}))},we={defaultColor:"rgb(0, 0, 0)",toHsva:B,fromHsva:function(e){var r=dist_I(e);return"rgb("+r.r+", "+r.g+", "+r.b+")"},equal:dist_P},ye=function(r){return external_React_.createElement(U,dist_u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?"":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=dist_c(r,["color","onChange","onBlur","escape","validate","format","process"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=dist_i(s),C=dist_i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement("input",dist_u({},g,{value:h?h(b):b,spellCheck:"false",onChange:E,onBlur:H}))},Ie=function(e){return"#"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=dist_c(r,["prefixed","alpha"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,dist_u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};
+function dist_u(){return(dist_u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function dist_c(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r.indexOf(t=a[n])>=0||(o[t]=e[t]);return o}function dist_i(e){var t=(0,external_React_.useRef)(e),n=(0,external_React_.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var dist_s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e<r?r:e},dist_f=function(e){return"touches"in e},dist_v=function(e){return e&&e.ownerDocument.defaultView||self},dist_d=function(e,r,t){var n=e.getBoundingClientRect(),o=dist_f(r)?function(e,r){for(var t=0;t<e.length;t++)if(e[t].identifier===r)return e[t];return e[0]}(r.touches,t):r;return{left:dist_s((o.pageX-(n.left+dist_v(e).pageXOffset))/n.width),top:dist_s((o.pageY-(n.top+dist_v(e).pageYOffset))/n.height)}},dist_h=function(e){!dist_f(e)&&e.preventDefault()},dist_m=external_React_.memo(function(o){var a=o.onMove,l=o.onKey,s=dist_c(o,["onMove","onKey"]),m=(0,external_React_.useRef)(null),g=dist_i(a),p=dist_i(l),b=(0,external_React_.useRef)(null),_=(0,external_React_.useRef)(!1),x=(0,external_React_.useMemo)(function(){var e=function(e){dist_h(e),(dist_f(e)?e.touches.length>0:e.buttons>0)&&m.current?g(dist_d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=dist_v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?"touchmove":"mousemove",e),a(n?"touchend":"mouseup",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(dist_h(r),!function(e,r){return r&&!dist_f(e)}(r,_.current)&&n)){if(dist_f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(dist_d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return (0,external_React_.useEffect)(function(){return H},[H]),external_React_.createElement("div",dist_u({},s,{onTouchStart:C,onMouseDown:C,className:"react-colorful__interactive",ref:m,onKeyDown:E,tabIndex:0,role:"slider"}))}),dist_g=function(e){return e.filter(Boolean).join(" ")},dist_p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=dist_g(["react-colorful__pointer",r.className]);return external_React_.createElement("div",{className:l,style:{top:100*a+"%",left:100*n+"%"}},external_React_.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},dist_b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},dist_x=function(e){return L(C(e))},C=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?dist_b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?dist_b(parseInt(e.substring(6,8),16)/255,2):1}},dist_E=function(e,r){return void 0===r&&(r="deg"),Number(e)*(_[r]||1)},dist_H=function(e){var r=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?dist_N({h:dist_E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_M=dist_H,dist_N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},dist_w=function(e){return K(dist_I(e))},dist_y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:dist_b(e.h),s:dist_b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:dist_b(o/2),a:dist_b(n,2)}},q=function(e){var r=dist_y(e);return"hsl("+r.h+", "+r.s+"%, "+r.l+"%)"},dist_k=function(e){var r=dist_y(e);return"hsla("+r.h+", "+r.s+"%, "+r.l+"%, "+r.a+")"},dist_I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:dist_b(255*[n,u,l,l,c,n][i]),g:dist_b(255*[c,n,n,u,l,l][i]),b:dist_b(255*[l,l,c,n,n,u][i]),a:dist_b(o,2)}},dist_O=function(e){var r=/hsva?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?A({h:dist_E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},dist_j=dist_O,z=function(e){var r=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?"0"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(dist_b(255*o)):"";return"#"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:dist_b(60*(u<0?u+6:u)),s:dist_b(a?l/a*100:0),v:dist_b(a/255*100),a:o}},A=function(e){return{h:dist_b(e.h),s:dist_b(e.s),v:dist_b(e.v),a:dist_b(e.a,2)}},dist_S=external_React_.memo(function(r){var t=r.hue,n=r.onChange,o=dist_g(["react-colorful__hue",r.className]);return external_React_.createElement("div",{className:o},external_React_.createElement(dist_m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:dist_s(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":dist_b(t),"aria-valuemax":"360","aria-valuemin":"0"},external_React_.createElement(dist_p,{className:"react-colorful__hue-pointer",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=external_React_.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return external_React_.createElement("div",{className:"react-colorful__saturation",style:o},external_React_.createElement(dist_m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:dist_s(t.s+100*e.left,0,100),v:dist_s(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+dist_b(t.s)+"%, Brightness "+dist_b(t.v)+"%"},external_React_.createElement(dist_p,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\s/g,"")===r.replace(/\s/g,"")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=dist_i(l),c=(0,external_React_.useState)(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=(0,external_React_.useRef)({color:t,hsva:s});(0,external_React_.useEffect)(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),(0,external_React_.useEffect)(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=(0,external_React_.useCallback)(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,dist_V="undefined"!=typeof window?external_React_.useLayoutEffect:external_React_.useEffect,dist_$=function(){return R||( true?__webpack_require__.nc:0)},G=function(e){R=e},J=new Map,Q=function(e){dist_V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement("style");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=dist_$();n&&t.setAttribute("nonce",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:dist_x,fromHsva:function(e){return dist_w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,dist_u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:"linear-gradient(90deg, "+dist_k(Object.assign({},n,{a:0}))+", "+dist_k(Object.assign({},n,{a:1}))+")"},l=dist_g(["react-colorful__alpha",t]),u=dist_b(100*n.a);return external_React_.createElement("div",{className:l},external_React_.createElement("div",{className:"react-colorful__alpha-gradient",style:a}),external_React_.createElement(dist_m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:dist_s(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":u+"%","aria-valuenow":u,"aria-valuemin":"0","aria-valuemax":"100"},external_React_.createElement(dist_p,{className:"react-colorful__alpha-pointer",left:n.a,color:dist_k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=dist_c(t,["className","colorModel","color","onChange"]),f=(0,external_React_.useRef)(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=dist_g(["react-colorful",n]);return external_React_.createElement("div",dist_u({},s,{ref:f,className:m}),external_React_.createElement(T,{hsva:d,onChange:h}),external_React_.createElement(dist_S,{hue:d.h,onChange:h}),external_React_.createElement(ee,{hsva:d,onChange:h,className:"react-colorful__last-control"}))},te={defaultColor:"0001",toHsva:dist_x,fromHsva:dist_w,equal:X},ne=function(r){return e.createElement(re,dist_u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:dist_N,fromHsva:dist_y,equal:F},ae=function(r){return e.createElement(re,dist_u({},r,{colorModel:oe}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:dist_H,fromHsva:dist_k,equal:P},ue=function(r){return e.createElement(re,dist_u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return dist_N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=dist_y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,dist_u({},r,{colorModel:ce}))},se={defaultColor:"hsl(0, 0%, 0%)",toHsva:dist_M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,dist_u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,dist_u({},r,{colorModel:ve}))},he={defaultColor:"hsva(0, 0%, 0%, 1)",toHsva:dist_O,fromHsva:function(e){var r=A(e);return"hsva("+r.h+", "+r.s+"%, "+r.v+"%, "+r.a+")"},equal:P},me=function(r){return e.createElement(re,dist_u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,dist_u({},r,{colorModel:ge}))},be={defaultColor:"hsv(0, 0%, 0%)",toHsva:dist_j,fromHsva:function(e){var r=A(e);return"hsv("+r.h+", "+r.s+"%, "+r.v+"%)"},equal:P},_e=function(r){return e.createElement(U,dist_u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:dist_I,equal:F},Ce=function(r){return e.createElement(re,dist_u({},r,{colorModel:xe}))},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:z,fromHsva:function(e){var r=dist_I(e);return"rgba("+r.r+", "+r.g+", "+r.b+", "+r.a+")"},equal:P},He=function(r){return external_React_.createElement(re,dist_u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=dist_I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,dist_u({},r,{colorModel:Me}))},we={defaultColor:"rgb(0, 0, 0)",toHsva:B,fromHsva:function(e){var r=dist_I(e);return"rgb("+r.r+", "+r.g+", "+r.b+")"},equal:P},ye=function(r){return external_React_.createElement(U,dist_u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?"":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=dist_c(r,["color","onChange","onBlur","escape","validate","format","process"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=dist_i(s),C=dist_i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement("input",dist_u({},g,{value:h?h(b):b,spellCheck:"false",onChange:E,onBlur:H}))},Ie=function(e){return"#"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=dist_c(r,["prefixed","alpha"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,dist_u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};
//# sourceMappingURL=index.module.js.map
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/color-picker/picker.js
-colord_k([names]);
+k([names]);
const options = [{
label: 'RGB',
value: 'rgb'
* Internal dependencies
*/
-colord_k([names, a11y]);
+k([names, a11y]);
const extractColorNameFromCurrentValue = (currentValue, colors = [], showMultiplePalettes = false) => {
if (!currentValue) {
return '';
-colord_k([names, a11y]);
+k([names, a11y]);
function SinglePalette({
className,
* Internal dependencies
*/
-const sides = ['top', 'right', 'bottom', 'left'];
+const utils_sides = ['top', 'right', 'bottom', 'left'];
const borderProps = ['color', 'style', 'width'];
const isEmptyBorder = border => {
if (!border) {
if (hasSplitBorders(border)) {
- const allSidesEmpty = sides.every(side => isEmptyBorder(border[side]));
+ const allSidesEmpty = utils_sides.every(side => isEmptyBorder(border[side]));
return !allSidesEmpty;
} // If we have a top-level border only, check if that is empty. e.g.
// { color: undefined, style: undefined, width: undefined }
return borderProps.every(prop => border[prop] !== undefined);
};
const hasSplitBorders = (border = {}) => {
- return Object.keys(border).some(side => sides.indexOf(side) !== -1);
+ return Object.keys(border).some(side => utils_sides.indexOf(side) !== -1);
};
const hasMixedBorders = borders => {
if (!hasSplitBorders(borders)) {
return false;
}
- const shorthandBorders = sides.map(side => getShorthandBorderStyle(borders?.[side]));
+ const shorthandBorders = utils_sides.map(side => getShorthandBorderStyle(borders?.[side]));
return !shorthandBorders.every(border => border === shorthandBorders[0]);
};
const getSplitBorders = border => {
const colors = [];
const styles = [];
const widths = [];
- sides.forEach(side => {
+ utils_sides.forEach(side => {
colors.push(borders[side]?.color);
styles.push(borders[side]?.style);
widths.push(borders[side]?.width);
-colord_k([names]);
+k([names]);
function getLinearGradientRepresentation(gradientAST) {
return serializeGradient({
type: 'linear-gradient',
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
-function _typeof(obj) {
+function _typeof(o) {
"@babel/helpers - typeof";
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
- return typeof obj;
- } : function (obj) {
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
- }, _typeof(obj);
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
+ return typeof o;
+ } : function (o) {
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
+ }, _typeof(o);
}
;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/requiredArgs/index.js
function requiredArgs_requiredArgs(required, args) {
* Internal dependencies
*/
-colord_k([names]);
+k([names]);
/**
* Object representation for a color.
*
return raf;
}
function events_addGlobalEventListener(type, listener, options, scope = window) {
- var _a;
+ const children = [];
try {
scope.document.addEventListener(type, listener, options);
- } catch (e) {
- }
- const listeners = [];
- for (let i = 0; i < ((_a = scope.frames) == null ? void 0 : _a.length); i += 1) {
- const frameWindow = scope.frames[i];
- if (frameWindow) {
- listeners.push(
- events_addGlobalEventListener(type, listener, options, frameWindow)
- );
+ for (const frame of Array.from(scope.frames)) {
+ children.push(events_addGlobalEventListener(type, listener, options, frame));
}
+ } catch (e) {
}
const removeEventListener = () => {
try {
scope.document.removeEventListener(type, listener, options);
} catch (e) {
}
- listeners.forEach((listener2) => listener2());
+ children.forEach((remove) => remove());
};
return removeEventListener;
}
-;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/QPTZ2G2N.js
+;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/P63NRZ4A.js
+var { useSyncExternalStore: P63NRZ4A_useSyncExternalStore } = shim;
var noopSubscribe = () => () => {
};
var inFlushSyncContext = false;
return;
return state[key];
};
- return (0,shim.useSyncExternalStore)(storeSubscribe, getSnapshot, getSnapshot);
+ return P63NRZ4A_useSyncExternalStore(storeSubscribe, getSnapshot, getSnapshot);
}
function useStoreProps(store, props, key, setKey) {
const value = WVTCK5PV_hasOwnProperty(props, key) ? props[key] : void 0;
});
}, [store, key, value]);
}
-function QPTZ2G2N_useStore(createStore) {
+function P63NRZ4A_useStore(createStore) {
const store = useLazyValue(createStore);
useSafeLayoutEffect(() => init(store), [store]);
const useState = external_React_.useCallback(
-;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/7SIWUER2.js
+;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/FVD2NJZN.js
}
return id;
}
-function _7SIWUER2_targetIsAnotherItem(event, store) {
+function FVD2NJZN_targetIsAnotherItem(event, store) {
if (events_isSelfTarget(event))
return false;
return OXPV2NBK_isItem(store, event.target);
}
-function _7SIWUER2_useRole(ref, props) {
+function FVD2NJZN_useRole(ref, props) {
const roleProp = props.role;
const [role, setRole] = (0,external_React_.useState)(roleProp);
useSafeLayoutEffect(() => {
return true;
return false;
}
-var _7SIWUER2_useCompositeItem = NQJBHION_createHook(
+var FVD2NJZN_useCompositeItem = NQJBHION_createHook(
(_a) => {
var _b = _a, {
store,
if (!store)
return;
const { activeId, virtualFocus: virtualFocus2, baseElement: baseElement2 } = store.getState();
- if (_7SIWUER2_targetIsAnotherItem(event, store))
+ if (FVD2NJZN_targetIsAnotherItem(event, store))
return;
if (activeId !== id) {
store.setActiveId(id);
);
const isActiveItem = useStoreState(store, (state) => state.activeId === id);
const virtualFocus = useStoreState(store, "virtualFocus");
- const role = _7SIWUER2_useRole(ref, props);
+ const role = FVD2NJZN_useRole(ref, props);
let ariaSelected;
if (isActiveItem) {
if (requiresAriaSelected(role)) {
});
}
);
-var _7SIWUER2_CompositeItem = createMemoComponent(
+var FVD2NJZN_CompositeItem = createMemoComponent(
(props) => {
- const htmlProps = _7SIWUER2_useCompositeItem(props);
+ const htmlProps = FVD2NJZN_useCompositeItem(props);
return NQJBHION_createElement("button", htmlProps);
}
);
-;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/JD3UVZX5.js
+;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/P4CYWFUE.js
var useToolbarItem = NQJBHION_createHook(
(_a) => {
var _b = _a, { store } = _b, props = __objRest(_b, ["store"]);
- props = _7SIWUER2_useCompositeItem(PNRLI7OV_spreadValues({ store }, props));
+ props = FVD2NJZN_useCompositeItem(PNRLI7OV_spreadValues({ store }, props));
return props;
}
);
/* harmony default export */ var toolbar_group = (ToolbarGroup);
-;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/FSTINJD5.js
+;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/RS7KBRGA.js
-;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/X5CHG5LF.js
+;// CONCATENATED MODULE: ./node_modules/@ariakit/react-core/esm/__chunks/7KULBIZY.js
}
function useToolbarStore(props = {}) {
const options = useToolbarStoreOptions(props);
- const store = QPTZ2G2N_useStore(
+ const store = P63NRZ4A_useStore(
() => createToolbarStore(PNRLI7OV_spreadValues(PNRLI7OV_spreadValues({}, props), options))
);
return useToolbarStoreProps(store, props);
;// CONCATENATED MODULE: ./node_modules/@radix-ui/react-popper/node_modules/@floating-ui/core/dist/floating-ui.core.browser.min.mjs
-function floating_ui_core_browser_min_t(t){return t.split("-")[0]}function dist_floating_ui_core_browser_min_e(t){return t.split("-")[1]}function dist_floating_ui_core_browser_min_n(e){return["top","bottom"].includes(floating_ui_core_browser_min_t(e))?"x":"y"}function floating_ui_core_browser_min_r(t){return"y"===t?"height":"width"}function floating_ui_core_browser_min_i(i,o,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=dist_floating_ui_core_browser_min_n(o),m=floating_ui_core_browser_min_r(u),g=l[m]/2-s[m]/2,d="x"===u;let p;switch(floating_ui_core_browser_min_t(o)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y}}switch(dist_floating_ui_core_browser_min_e(o)){case"start":p[u]-=g*(a&&d?-1:1);break;case"end":p[u]+=g*(a&&d?-1:1)}return p}const dist_floating_ui_core_browser_min_o=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=floating_ui_core_browser_min_i(c,r,s),m=r,g={},d=0;for(let n=0;n<a.length;n++){const{name:p,fn:h}=a[n],{x:y,y:x,data:w,reset:v}=await h({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=y?y:f,u=null!=x?x:u,g={...g,[p]:{...g[p],...w}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(m=v.placement),v.rects&&(c=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:o}):v.rects),({x:f,y:u}=floating_ui_core_browser_min_i(c,m,s))),n=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:g}};function dist_floating_ui_core_browser_min_a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function floating_ui_core_browser_min_l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function floating_ui_core_browser_min_s(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:s,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:d=!1,padding:p=0}=e,h=dist_floating_ui_core_browser_min_a(p),y=c[d?"floating"===g?"reference":"floating":g],x=floating_ui_core_browser_min_l(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:f})),w=floating_ui_core_browser_min_l(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===g?{...s.floating,x:r,y:i}:s.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(c.floating)),strategy:f}):s[g]);return{top:x.top-w.top+h.top,bottom:w.bottom-x.bottom+h.bottom,left:x.left-w.left+h.left,right:w.right-x.right+h.right}}const floating_ui_core_browser_min_c=Math.min,floating_ui_core_browser_min_f=Math.max;function floating_ui_core_browser_min_u(t,e,n){return floating_ui_core_browser_min_f(t,floating_ui_core_browser_min_c(e,n))}const floating_ui_core_browser_min_m=t=>({name:"arrow",options:t,async fn(i){const{element:o,padding:l=0}=null!=t?t:{},{x:s,y:c,placement:f,rects:m,platform:g}=i;if(null==o)return{};const d=dist_floating_ui_core_browser_min_a(l),p={x:s,y:c},h=dist_floating_ui_core_browser_min_n(f),y=dist_floating_ui_core_browser_min_e(f),x=floating_ui_core_browser_min_r(h),w=await g.getDimensions(o),v="y"===h?"top":"left",b="y"===h?"bottom":"right",R=m.reference[x]+m.reference[h]-p[h]-m.floating[x],A=p[h]-m.reference[h],P=await(null==g.getOffsetParent?void 0:g.getOffsetParent(o));let T=P?"y"===h?P.clientHeight||0:P.clientWidth||0:0;0===T&&(T=m.floating[x]);const O=R/2-A/2,D=d[v],L=T-w[x]-d[b],k=T/2-w[x]/2+O,E=floating_ui_core_browser_min_u(D,k,L),C=("start"===y?d[v]:d[b])>0&&k!==E&&m.reference[x]<=m.floating[x];return{[h]:p[h]-(C?k<D?D-k:L-k:0),data:{[h]:E,centerOffset:k-E}}}}),floating_ui_core_browser_min_g={left:"right",right:"left",bottom:"top",top:"bottom"};function floating_ui_core_browser_min_d(t){return t.replace(/left|right|bottom|top/g,(t=>floating_ui_core_browser_min_g[t]))}function floating_ui_core_browser_min_p(t,i,o){void 0===o&&(o=!1);const a=dist_floating_ui_core_browser_min_e(t),l=dist_floating_ui_core_browser_min_n(t),s=floating_ui_core_browser_min_r(l);let c="x"===l?a===(o?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=floating_ui_core_browser_min_d(c)),{main:c,cross:floating_ui_core_browser_min_d(c)}}const floating_ui_core_browser_min_h={start:"end",end:"start"};function floating_ui_core_browser_min_y(t){return t.replace(/start|end/g,(t=>floating_ui_core_browser_min_h[t]))}const floating_ui_core_browser_min_x=["top","right","bottom","left"],floating_ui_core_browser_min_w=floating_ui_core_browser_min_x.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]);const floating_ui_core_browser_min_v=function(n){return void 0===n&&(n={}),{name:"autoPlacement",options:n,async fn(r){var i,o,a,l,c;const{x:f,y:u,rects:m,middlewareData:g,placement:d,platform:h,elements:x}=r,{alignment:v=null,allowedPlacements:b=floating_ui_core_browser_min_w,autoAlignment:R=!0,...A}=n,P=function(n,r,i){return(n?[...i.filter((t=>dist_floating_ui_core_browser_min_e(t)===n)),...i.filter((t=>dist_floating_ui_core_browser_min_e(t)!==n))]:i.filter((e=>floating_ui_core_browser_min_t(e)===e))).filter((t=>!n||dist_floating_ui_core_browser_min_e(t)===n||!!r&&floating_ui_core_browser_min_y(t)!==t))}(v,R,b),T=await floating_ui_core_browser_min_s(r,A),O=null!=(i=null==(o=g.autoPlacement)?void 0:o.index)?i:0,D=P[O];if(null==D)return{};const{main:L,cross:k}=floating_ui_core_browser_min_p(D,m,await(null==h.isRTL?void 0:h.isRTL(x.floating)));if(d!==D)return{x:f,y:u,reset:{placement:P[0]}};const E=[T[floating_ui_core_browser_min_t(D)],T[L],T[k]],C=[...null!=(a=null==(l=g.autoPlacement)?void 0:l.overflows)?a:[],{placement:D,overflows:E}],H=P[O+1];if(H)return{data:{index:O+1,overflows:C},reset:{placement:H}};const B=C.slice().sort(((t,e)=>t.overflows[0]-e.overflows[0])),V=null==(c=B.find((t=>{let{overflows:e}=t;return e.every((t=>t<=0))})))?void 0:c.placement,F=null!=V?V:B[0].placement;return F!==d?{data:{index:O+1,overflows:C},reset:{placement:F}}:{}}}};const floating_ui_core_browser_min_b=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:f}=n,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",flipAlignment:x=!0,...w}=e,v=floating_ui_core_browser_min_t(i),b=g||(v===l||!x?[floating_ui_core_browser_min_d(l)]:function(t){const e=floating_ui_core_browser_min_d(t);return[floating_ui_core_browser_min_y(t),e,floating_ui_core_browser_min_y(e)]}(l)),R=[l,...b],A=await floating_ui_core_browser_min_s(n,w),P=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&P.push(A[v]),m){const{main:t,cross:e}=floating_ui_core_browser_min_p(i,a,await(null==c.isRTL?void 0:c.isRTL(f.floating)));P.push(A[t],A[e])}if(T=[...T,{placement:i,overflows:P}],!P.every((t=>t<=0))){var O,D;const t=(null!=(O=null==(D=o.flip)?void 0:D.index)?O:0)+1,e=R[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var L;const t=null==(L=T.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0].placement;t&&(n=t);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};function floating_ui_core_browser_min_R(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function floating_ui_core_browser_min_A(t){return floating_ui_core_browser_min_x.some((e=>t[e]>=0))}const floating_ui_core_browser_min_P=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:r}=t;switch(e){case"referenceHidden":{const e=floating_ui_core_browser_min_R(await floating_ui_core_browser_min_s(t,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:floating_ui_core_browser_min_A(e)}}}case"escaped":{const e=floating_ui_core_browser_min_R(await floating_ui_core_browser_min_s(t,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:floating_ui_core_browser_min_A(e)}}}default:return{}}}}};const floating_ui_core_browser_min_T=function(r){return void 0===r&&(r=0),{name:"offset",options:r,async fn(i){const{x:o,y:a}=i,l=await async function(r,i){const{placement:o,platform:a,elements:l}=r,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=floating_ui_core_browser_min_t(o),f=dist_floating_ui_core_browser_min_e(o),u="x"===dist_floating_ui_core_browser_min_n(o),m=["left","top"].includes(c)?-1:1,g=s&&u?-1:1,d="function"==typeof i?i(r):i;let{mainAxis:p,crossAxis:h,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*g,y:p*m}:{x:p*m,y:h*g}}(i,r);return{x:o+l.x,y:a+l.y,data:l}}}};function floating_ui_core_browser_min_O(t){return"x"===t?"y":"x"}const floating_ui_core_browser_min_D=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:o,placement:a}=r,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=e,g={x:i,y:o},d=await floating_ui_core_browser_min_s(r,m),p=dist_floating_ui_core_browser_min_n(floating_ui_core_browser_min_t(a)),h=floating_ui_core_browser_min_O(p);let y=g[p],x=g[h];if(l){const t="y"===p?"bottom":"right";y=floating_ui_core_browser_min_u(y+d["y"===p?"top":"left"],y,y-d[t])}if(c){const t="y"===h?"bottom":"right";x=floating_ui_core_browser_min_u(x+d["y"===h?"top":"left"],x,x-d[t])}const w=f.fn({...r,[p]:y,[h]:x});return{...w,data:{x:w.x-i,y:w.y-o}}}}},floating_ui_core_browser_min_L=function(e){return void 0===e&&(e={}),{options:e,fn(r){const{x:i,y:o,placement:a,rects:l,middlewareData:s}=r,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=e,m={x:i,y:o},g=dist_floating_ui_core_browser_min_n(a),d=floating_ui_core_browser_min_O(g);let p=m[g],h=m[d];const y="function"==typeof c?c({...l,placement:a}):c,x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const t="y"===g?"height":"width",e=l.reference[g]-l.floating[t]+x.mainAxis,n=l.reference[g]+l.reference[t]-x.mainAxis;p<e?p=e:p>n&&(p=n)}if(u){var w,v,b,R;const e="y"===g?"width":"height",n=["top","left"].includes(floating_ui_core_browser_min_t(a)),r=l.reference[d]-l.floating[e]+(n&&null!=(w=null==(v=s.offset)?void 0:v[d])?w:0)+(n?0:x.crossAxis),i=l.reference[d]+l.reference[e]+(n?0:null!=(b=null==(R=s.offset)?void 0:R[d])?b:0)-(n?x.crossAxis:0);h<r?h=r:h>i&&(h=i)}return{[g]:p,[d]:h}}}},floating_ui_core_browser_min_k=function(n){return void 0===n&&(n={}),{name:"size",options:n,async fn(r){const{placement:i,rects:o,platform:a,elements:l}=r,{apply:c,...u}=n,m=await floating_ui_core_browser_min_s(r,u),g=floating_ui_core_browser_min_t(i),d=dist_floating_ui_core_browser_min_e(i);let p,h;"top"===g||"bottom"===g?(p=g,h=d===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=g,p="end"===d?"top":"bottom");const y=floating_ui_core_browser_min_f(m.left,0),x=floating_ui_core_browser_min_f(m.right,0),w=floating_ui_core_browser_min_f(m.top,0),v=floating_ui_core_browser_min_f(m.bottom,0),b={availableHeight:o.floating.height-(["left","right"].includes(i)?2*(0!==w||0!==v?w+v:floating_ui_core_browser_min_f(m.top,m.bottom)):m[p]),availableWidth:o.floating.width-(["top","bottom"].includes(i)?2*(0!==y||0!==x?y+x:floating_ui_core_browser_min_f(m.left,m.right)):m[h])},R=await a.getDimensions(l.floating);null==c||c({...r,...b});const A=await a.getDimensions(l.floating);return R.width!==A.width||R.height!==A.height?{reset:{rects:!0}}:{}}}},floating_ui_core_browser_min_E=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(r){var i;const{placement:o,elements:s,rects:u,platform:m,strategy:g}=r,{padding:d=2,x:p,y:h}=e,y=floating_ui_core_browser_min_l(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u.reference,offsetParent:await(null==m.getOffsetParent?void 0:m.getOffsetParent(s.floating)),strategy:g}):u.reference),x=null!=(i=await(null==m.getClientRects?void 0:m.getClientRects(s.reference)))?i:[],w=dist_floating_ui_core_browser_min_a(d);const v=await m.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===x.length&&x[0].left>x[1].right&&null!=p&&null!=h)return null!=(e=x.find((t=>p>t.left-w.left&&p<t.right+w.right&&h>t.top-w.top&&h<t.bottom+w.bottom)))?e:y;if(x.length>=2){if("x"===dist_floating_ui_core_browser_min_n(o)){const e=x[0],n=x[x.length-1],r="top"===floating_ui_core_browser_min_t(o),i=e.top,a=n.bottom,l=r?e.left:n.left,s=r?e.right:n.right;return{top:i,bottom:a,left:l,right:s,width:s-l,height:a-i,x:l,y:i}}const e="left"===floating_ui_core_browser_min_t(o),r=floating_ui_core_browser_min_f(...x.map((t=>t.right))),i=floating_ui_core_browser_min_c(...x.map((t=>t.left))),a=x.filter((t=>e?t.left===i:t.right===r)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:i,right:r,width:r-i,height:s-l,x:i,y:l}}return y}},floating:s.floating,strategy:g});return u.reference.x!==v.reference.x||u.reference.y!==v.reference.y||u.reference.width!==v.reference.width||u.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}};
+function floating_ui_core_browser_min_t(t){return t.split("-")[0]}function floating_ui_core_browser_min_e(t){return t.split("-")[1]}function floating_ui_core_browser_min_n(e){return["top","bottom"].includes(floating_ui_core_browser_min_t(e))?"x":"y"}function floating_ui_core_browser_min_r(t){return"y"===t?"height":"width"}function floating_ui_core_browser_min_i(i,o,a){let{reference:l,floating:s}=i;const c=l.x+l.width/2-s.width/2,f=l.y+l.height/2-s.height/2,u=floating_ui_core_browser_min_n(o),m=floating_ui_core_browser_min_r(u),g=l[m]/2-s[m]/2,d="x"===u;let p;switch(floating_ui_core_browser_min_t(o)){case"top":p={x:c,y:l.y-s.height};break;case"bottom":p={x:c,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:f};break;case"left":p={x:l.x-s.width,y:f};break;default:p={x:l.x,y:l.y}}switch(floating_ui_core_browser_min_e(o)){case"start":p[u]-=g*(a&&d?-1:1);break;case"end":p[u]+=g*(a&&d?-1:1)}return p}const floating_ui_core_browser_min_o=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:l}=n,s=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=floating_ui_core_browser_min_i(c,r,s),m=r,g={},d=0;for(let n=0;n<a.length;n++){const{name:p,fn:h}=a[n],{x:y,y:x,data:w,reset:v}=await h({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:g,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=y?y:f,u=null!=x?x:u,g={...g,[p]:{...g[p],...w}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(m=v.placement),v.rects&&(c=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:o}):v.rects),({x:f,y:u}=floating_ui_core_browser_min_i(c,m,s))),n=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:g}};function floating_ui_core_browser_min_a(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function floating_ui_core_browser_min_l(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function floating_ui_core_browser_min_s(t,e){var n;void 0===e&&(e={});const{x:r,y:i,platform:o,rects:s,elements:c,strategy:f}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:d=!1,padding:p=0}=e,h=floating_ui_core_browser_min_a(p),y=c[d?"floating"===g?"reference":"floating":g],x=floating_ui_core_browser_min_l(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:f})),w=floating_ui_core_browser_min_l(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===g?{...s.floating,x:r,y:i}:s.reference,offsetParent:await(null==o.getOffsetParent?void 0:o.getOffsetParent(c.floating)),strategy:f}):s[g]);return{top:x.top-w.top+h.top,bottom:w.bottom-x.bottom+h.bottom,left:x.left-w.left+h.left,right:w.right-x.right+h.right}}const floating_ui_core_browser_min_c=Math.min,floating_ui_core_browser_min_f=Math.max;function floating_ui_core_browser_min_u(t,e,n){return floating_ui_core_browser_min_f(t,floating_ui_core_browser_min_c(e,n))}const floating_ui_core_browser_min_m=t=>({name:"arrow",options:t,async fn(i){const{element:o,padding:l=0}=null!=t?t:{},{x:s,y:c,placement:f,rects:m,platform:g}=i;if(null==o)return{};const d=floating_ui_core_browser_min_a(l),p={x:s,y:c},h=floating_ui_core_browser_min_n(f),y=floating_ui_core_browser_min_e(f),x=floating_ui_core_browser_min_r(h),w=await g.getDimensions(o),v="y"===h?"top":"left",b="y"===h?"bottom":"right",R=m.reference[x]+m.reference[h]-p[h]-m.floating[x],A=p[h]-m.reference[h],P=await(null==g.getOffsetParent?void 0:g.getOffsetParent(o));let T=P?"y"===h?P.clientHeight||0:P.clientWidth||0:0;0===T&&(T=m.floating[x]);const O=R/2-A/2,D=d[v],L=T-w[x]-d[b],k=T/2-w[x]/2+O,E=floating_ui_core_browser_min_u(D,k,L),C=("start"===y?d[v]:d[b])>0&&k!==E&&m.reference[x]<=m.floating[x];return{[h]:p[h]-(C?k<D?D-k:L-k:0),data:{[h]:E,centerOffset:k-E}}}}),floating_ui_core_browser_min_g={left:"right",right:"left",bottom:"top",top:"bottom"};function floating_ui_core_browser_min_d(t){return t.replace(/left|right|bottom|top/g,(t=>floating_ui_core_browser_min_g[t]))}function floating_ui_core_browser_min_p(t,i,o){void 0===o&&(o=!1);const a=floating_ui_core_browser_min_e(t),l=floating_ui_core_browser_min_n(t),s=floating_ui_core_browser_min_r(l);let c="x"===l?a===(o?"end":"start")?"right":"left":"start"===a?"bottom":"top";return i.reference[s]>i.floating[s]&&(c=floating_ui_core_browser_min_d(c)),{main:c,cross:floating_ui_core_browser_min_d(c)}}const floating_ui_core_browser_min_h={start:"end",end:"start"};function floating_ui_core_browser_min_y(t){return t.replace(/start|end/g,(t=>floating_ui_core_browser_min_h[t]))}const floating_ui_core_browser_min_x=["top","right","bottom","left"],floating_ui_core_browser_min_w=floating_ui_core_browser_min_x.reduce(((t,e)=>t.concat(e,e+"-start",e+"-end")),[]);const floating_ui_core_browser_min_v=function(n){return void 0===n&&(n={}),{name:"autoPlacement",options:n,async fn(r){var i,o,a,l,c;const{x:f,y:u,rects:m,middlewareData:g,placement:d,platform:h,elements:x}=r,{alignment:v=null,allowedPlacements:b=floating_ui_core_browser_min_w,autoAlignment:R=!0,...A}=n,P=function(n,r,i){return(n?[...i.filter((t=>floating_ui_core_browser_min_e(t)===n)),...i.filter((t=>floating_ui_core_browser_min_e(t)!==n))]:i.filter((e=>floating_ui_core_browser_min_t(e)===e))).filter((t=>!n||floating_ui_core_browser_min_e(t)===n||!!r&&floating_ui_core_browser_min_y(t)!==t))}(v,R,b),T=await floating_ui_core_browser_min_s(r,A),O=null!=(i=null==(o=g.autoPlacement)?void 0:o.index)?i:0,D=P[O];if(null==D)return{};const{main:L,cross:k}=floating_ui_core_browser_min_p(D,m,await(null==h.isRTL?void 0:h.isRTL(x.floating)));if(d!==D)return{x:f,y:u,reset:{placement:P[0]}};const E=[T[floating_ui_core_browser_min_t(D)],T[L],T[k]],C=[...null!=(a=null==(l=g.autoPlacement)?void 0:l.overflows)?a:[],{placement:D,overflows:E}],H=P[O+1];if(H)return{data:{index:O+1,overflows:C},reset:{placement:H}};const B=C.slice().sort(((t,e)=>t.overflows[0]-e.overflows[0])),V=null==(c=B.find((t=>{let{overflows:e}=t;return e.every((t=>t<=0))})))?void 0:c.placement,F=null!=V?V:B[0].placement;return F!==d?{data:{index:O+1,overflows:C},reset:{placement:F}}:{}}}};const floating_ui_core_browser_min_b=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(n){var r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:c,elements:f}=n,{mainAxis:u=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",flipAlignment:x=!0,...w}=e,v=floating_ui_core_browser_min_t(i),b=g||(v===l||!x?[floating_ui_core_browser_min_d(l)]:function(t){const e=floating_ui_core_browser_min_d(t);return[floating_ui_core_browser_min_y(t),e,floating_ui_core_browser_min_y(e)]}(l)),R=[l,...b],A=await floating_ui_core_browser_min_s(n,w),P=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&P.push(A[v]),m){const{main:t,cross:e}=floating_ui_core_browser_min_p(i,a,await(null==c.isRTL?void 0:c.isRTL(f.floating)));P.push(A[t],A[e])}if(T=[...T,{placement:i,overflows:P}],!P.every((t=>t<=0))){var O,D;const t=(null!=(O=null==(D=o.flip)?void 0:D.index)?O:0)+1,e=R[t];if(e)return{data:{index:t,overflows:T},reset:{placement:e}};let n="bottom";switch(h){case"bestFit":{var L;const t=null==(L=T.map((t=>[t,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0].placement;t&&(n=t);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}};function floating_ui_core_browser_min_R(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function floating_ui_core_browser_min_A(t){return floating_ui_core_browser_min_x.some((e=>t[e]>=0))}const floating_ui_core_browser_min_P=function(t){let{strategy:e="referenceHidden",...n}=void 0===t?{}:t;return{name:"hide",async fn(t){const{rects:r}=t;switch(e){case"referenceHidden":{const e=floating_ui_core_browser_min_R(await floating_ui_core_browser_min_s(t,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:floating_ui_core_browser_min_A(e)}}}case"escaped":{const e=floating_ui_core_browser_min_R(await floating_ui_core_browser_min_s(t,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:floating_ui_core_browser_min_A(e)}}}default:return{}}}}};const floating_ui_core_browser_min_T=function(r){return void 0===r&&(r=0),{name:"offset",options:r,async fn(i){const{x:o,y:a}=i,l=await async function(r,i){const{placement:o,platform:a,elements:l}=r,s=await(null==a.isRTL?void 0:a.isRTL(l.floating)),c=floating_ui_core_browser_min_t(o),f=floating_ui_core_browser_min_e(o),u="x"===floating_ui_core_browser_min_n(o),m=["left","top"].includes(c)?-1:1,g=s&&u?-1:1,d="function"==typeof i?i(r):i;let{mainAxis:p,crossAxis:h,alignmentAxis:y}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&"number"==typeof y&&(h="end"===f?-1*y:y),u?{x:h*g,y:p*m}:{x:p*m,y:h*g}}(i,r);return{x:o+l.x,y:a+l.y,data:l}}}};function floating_ui_core_browser_min_O(t){return"x"===t?"y":"x"}const floating_ui_core_browser_min_D=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:o,placement:a}=r,{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=e,g={x:i,y:o},d=await floating_ui_core_browser_min_s(r,m),p=floating_ui_core_browser_min_n(floating_ui_core_browser_min_t(a)),h=floating_ui_core_browser_min_O(p);let y=g[p],x=g[h];if(l){const t="y"===p?"bottom":"right";y=floating_ui_core_browser_min_u(y+d["y"===p?"top":"left"],y,y-d[t])}if(c){const t="y"===h?"bottom":"right";x=floating_ui_core_browser_min_u(x+d["y"===h?"top":"left"],x,x-d[t])}const w=f.fn({...r,[p]:y,[h]:x});return{...w,data:{x:w.x-i,y:w.y-o}}}}},floating_ui_core_browser_min_L=function(e){return void 0===e&&(e={}),{options:e,fn(r){const{x:i,y:o,placement:a,rects:l,middlewareData:s}=r,{offset:c=0,mainAxis:f=!0,crossAxis:u=!0}=e,m={x:i,y:o},g=floating_ui_core_browser_min_n(a),d=floating_ui_core_browser_min_O(g);let p=m[g],h=m[d];const y="function"==typeof c?c({...l,placement:a}):c,x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const t="y"===g?"height":"width",e=l.reference[g]-l.floating[t]+x.mainAxis,n=l.reference[g]+l.reference[t]-x.mainAxis;p<e?p=e:p>n&&(p=n)}if(u){var w,v,b,R;const e="y"===g?"width":"height",n=["top","left"].includes(floating_ui_core_browser_min_t(a)),r=l.reference[d]-l.floating[e]+(n&&null!=(w=null==(v=s.offset)?void 0:v[d])?w:0)+(n?0:x.crossAxis),i=l.reference[d]+l.reference[e]+(n?0:null!=(b=null==(R=s.offset)?void 0:R[d])?b:0)-(n?x.crossAxis:0);h<r?h=r:h>i&&(h=i)}return{[g]:p,[d]:h}}}},floating_ui_core_browser_min_k=function(n){return void 0===n&&(n={}),{name:"size",options:n,async fn(r){const{placement:i,rects:o,platform:a,elements:l}=r,{apply:c,...u}=n,m=await floating_ui_core_browser_min_s(r,u),g=floating_ui_core_browser_min_t(i),d=floating_ui_core_browser_min_e(i);let p,h;"top"===g||"bottom"===g?(p=g,h=d===(await(null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=g,p="end"===d?"top":"bottom");const y=floating_ui_core_browser_min_f(m.left,0),x=floating_ui_core_browser_min_f(m.right,0),w=floating_ui_core_browser_min_f(m.top,0),v=floating_ui_core_browser_min_f(m.bottom,0),b={availableHeight:o.floating.height-(["left","right"].includes(i)?2*(0!==w||0!==v?w+v:floating_ui_core_browser_min_f(m.top,m.bottom)):m[p]),availableWidth:o.floating.width-(["top","bottom"].includes(i)?2*(0!==y||0!==x?y+x:floating_ui_core_browser_min_f(m.left,m.right)):m[h])},R=await a.getDimensions(l.floating);null==c||c({...r,...b});const A=await a.getDimensions(l.floating);return R.width!==A.width||R.height!==A.height?{reset:{rects:!0}}:{}}}},floating_ui_core_browser_min_E=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(r){var i;const{placement:o,elements:s,rects:u,platform:m,strategy:g}=r,{padding:d=2,x:p,y:h}=e,y=floating_ui_core_browser_min_l(m.convertOffsetParentRelativeRectToViewportRelativeRect?await m.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u.reference,offsetParent:await(null==m.getOffsetParent?void 0:m.getOffsetParent(s.floating)),strategy:g}):u.reference),x=null!=(i=await(null==m.getClientRects?void 0:m.getClientRects(s.reference)))?i:[],w=floating_ui_core_browser_min_a(d);const v=await m.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===x.length&&x[0].left>x[1].right&&null!=p&&null!=h)return null!=(e=x.find((t=>p>t.left-w.left&&p<t.right+w.right&&h>t.top-w.top&&h<t.bottom+w.bottom)))?e:y;if(x.length>=2){if("x"===floating_ui_core_browser_min_n(o)){const e=x[0],n=x[x.length-1],r="top"===floating_ui_core_browser_min_t(o),i=e.top,a=n.bottom,l=r?e.left:n.left,s=r?e.right:n.right;return{top:i,bottom:a,left:l,right:s,width:s-l,height:a-i,x:l,y:i}}const e="left"===floating_ui_core_browser_min_t(o),r=floating_ui_core_browser_min_f(...x.map((t=>t.right))),i=floating_ui_core_browser_min_c(...x.map((t=>t.left))),a=x.filter((t=>e?t.left===i:t.right===r)),l=a[0].top,s=a[a.length-1].bottom;return{top:l,bottom:s,left:i,right:r,width:r-i,height:s-l,x:i,y:l}}return y}},floating:s.floating,strategy:g});return u.reference.x!==v.reference.x||u.reference.y!==v.reference.y||u.reference.width!==v.reference.width||u.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}};
;// CONCATENATED MODULE: ./node_modules/@radix-ui/react-popper/node_modules/@floating-ui/dom/dist/floating-ui.dom.browser.min.mjs
-function dist_floating_ui_dom_browser_min_n(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function dist_floating_ui_dom_browser_min_o(t){if(null==t)return window;if(!dist_floating_ui_dom_browser_min_n(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function dist_floating_ui_dom_browser_min_i(t){return dist_floating_ui_dom_browser_min_o(t).getComputedStyle(t)}function dist_floating_ui_dom_browser_min_r(t){return dist_floating_ui_dom_browser_min_n(t)?"":t?(t.nodeName||"").toLowerCase():""}function dist_floating_ui_dom_browser_min_l(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function dist_floating_ui_dom_browser_min_c(t){return t instanceof dist_floating_ui_dom_browser_min_o(t).HTMLElement}function dist_floating_ui_dom_browser_min_f(t){return t instanceof dist_floating_ui_dom_browser_min_o(t).Element}function dist_floating_ui_dom_browser_min_s(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof dist_floating_ui_dom_browser_min_o(t).ShadowRoot||t instanceof ShadowRoot}function dist_floating_ui_dom_browser_min_u(t){const{overflow:e,overflowX:n,overflowY:o}=dist_floating_ui_dom_browser_min_i(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function dist_floating_ui_dom_browser_min_d(t){return["table","td","th"].includes(dist_floating_ui_dom_browser_min_r(t))}function dist_floating_ui_dom_browser_min_h(t){const e=/firefox/i.test(dist_floating_ui_dom_browser_min_l()),n=dist_floating_ui_dom_browser_min_i(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function dist_floating_ui_dom_browser_min_a(){return!/^((?!chrome|android).)*safari/i.test(dist_floating_ui_dom_browser_min_l())}const dist_floating_ui_dom_browser_min_g=Math.min,dist_floating_ui_dom_browser_min_p=Math.max,dist_floating_ui_dom_browser_min_m=Math.round;function dist_floating_ui_dom_browser_min_w(t,e,n){var i,r,l,s;void 0===e&&(e=!1),void 0===n&&(n=!1);const u=t.getBoundingClientRect();let d=1,h=1;e&&dist_floating_ui_dom_browser_min_c(t)&&(d=t.offsetWidth>0&&dist_floating_ui_dom_browser_min_m(u.width)/t.offsetWidth||1,h=t.offsetHeight>0&&dist_floating_ui_dom_browser_min_m(u.height)/t.offsetHeight||1);const g=dist_floating_ui_dom_browser_min_f(t)?dist_floating_ui_dom_browser_min_o(t):window,p=!dist_floating_ui_dom_browser_min_a()&&n,w=(u.left+(p&&null!=(i=null==(r=g.visualViewport)?void 0:r.offsetLeft)?i:0))/d,v=(u.top+(p&&null!=(l=null==(s=g.visualViewport)?void 0:s.offsetTop)?l:0))/h,y=u.width/d,x=u.height/h;return{width:y,height:x,top:v,right:w+y,bottom:v+x,left:w,x:w,y:v}}function dist_floating_ui_dom_browser_min_v(t){return(e=t,(e instanceof dist_floating_ui_dom_browser_min_o(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function dist_floating_ui_dom_browser_min_y(t){return dist_floating_ui_dom_browser_min_f(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function dist_floating_ui_dom_browser_min_x(t){return dist_floating_ui_dom_browser_min_w(dist_floating_ui_dom_browser_min_v(t)).left+dist_floating_ui_dom_browser_min_y(t).scrollLeft}function dist_floating_ui_dom_browser_min_b(t,e,n){const o=dist_floating_ui_dom_browser_min_c(e),i=dist_floating_ui_dom_browser_min_v(e),l=dist_floating_ui_dom_browser_min_w(t,o&&function(t){const e=dist_floating_ui_dom_browser_min_w(t);return dist_floating_ui_dom_browser_min_m(e.width)!==t.offsetWidth||dist_floating_ui_dom_browser_min_m(e.height)!==t.offsetHeight}(e),"fixed"===n);let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==dist_floating_ui_dom_browser_min_r(e)||dist_floating_ui_dom_browser_min_u(i))&&(f=dist_floating_ui_dom_browser_min_y(e)),dist_floating_ui_dom_browser_min_c(e)){const t=dist_floating_ui_dom_browser_min_w(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=dist_floating_ui_dom_browser_min_x(i));return{x:l.left+f.scrollLeft-s.x,y:l.top+f.scrollTop-s.y,width:l.width,height:l.height}}function dist_floating_ui_dom_browser_min_L(t){return"html"===dist_floating_ui_dom_browser_min_r(t)?t:t.assignedSlot||t.parentNode||(dist_floating_ui_dom_browser_min_s(t)?t.host:null)||dist_floating_ui_dom_browser_min_v(t)}function dist_floating_ui_dom_browser_min_R(t){return dist_floating_ui_dom_browser_min_c(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function dist_floating_ui_dom_browser_min_T(t){const e=dist_floating_ui_dom_browser_min_o(t);let n=dist_floating_ui_dom_browser_min_R(t);for(;n&&dist_floating_ui_dom_browser_min_d(n)&&"static"===getComputedStyle(n).position;)n=dist_floating_ui_dom_browser_min_R(n);return n&&("html"===dist_floating_ui_dom_browser_min_r(n)||"body"===dist_floating_ui_dom_browser_min_r(n)&&"static"===getComputedStyle(n).position&&!dist_floating_ui_dom_browser_min_h(n))?e:n||function(t){let e=dist_floating_ui_dom_browser_min_L(t);for(dist_floating_ui_dom_browser_min_s(e)&&(e=e.host);dist_floating_ui_dom_browser_min_c(e)&&!["html","body"].includes(dist_floating_ui_dom_browser_min_r(e));){if(dist_floating_ui_dom_browser_min_h(e))return e;e=e.parentNode}return null}(t)||e}function floating_ui_dom_browser_min_W(t){if(dist_floating_ui_dom_browser_min_c(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=dist_floating_ui_dom_browser_min_w(t);return{width:e.width,height:e.height}}function dist_floating_ui_dom_browser_min_E(t){const e=dist_floating_ui_dom_browser_min_L(t);return["html","body","#document"].includes(dist_floating_ui_dom_browser_min_r(e))?t.ownerDocument.body:dist_floating_ui_dom_browser_min_c(e)&&dist_floating_ui_dom_browser_min_u(e)?e:dist_floating_ui_dom_browser_min_E(e)}function floating_ui_dom_browser_min_H(t,e){var n;void 0===e&&(e=[]);const i=dist_floating_ui_dom_browser_min_E(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),l=dist_floating_ui_dom_browser_min_o(i),c=r?[l].concat(l.visualViewport||[],dist_floating_ui_dom_browser_min_u(i)?i:[]):i,f=e.concat(c);return r?f:f.concat(floating_ui_dom_browser_min_H(c))}function floating_ui_dom_browser_min_C(e,n,r){return"viewport"===n?floating_ui_core_browser_min_l(function(t,e){const n=dist_floating_ui_dom_browser_min_o(t),i=dist_floating_ui_dom_browser_min_v(t),r=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,f=0,s=0;if(r){l=r.width,c=r.height;const t=dist_floating_ui_dom_browser_min_a();(t||!t&&"fixed"===e)&&(f=r.offsetLeft,s=r.offsetTop)}return{width:l,height:c,x:f,y:s}}(e,r)):dist_floating_ui_dom_browser_min_f(n)?function(t,e){const n=dist_floating_ui_dom_browser_min_w(t,!1,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:o,left:i,x:i,y:o,right:i+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(n,r):floating_ui_core_browser_min_l(function(t){var e;const n=dist_floating_ui_dom_browser_min_v(t),o=dist_floating_ui_dom_browser_min_y(t),r=null==(e=t.ownerDocument)?void 0:e.body,l=dist_floating_ui_dom_browser_min_p(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=dist_floating_ui_dom_browser_min_p(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let f=-o.scrollLeft+dist_floating_ui_dom_browser_min_x(t);const s=-o.scrollTop;return"rtl"===dist_floating_ui_dom_browser_min_i(r||n).direction&&(f+=dist_floating_ui_dom_browser_min_p(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:f,y:s}}(dist_floating_ui_dom_browser_min_v(e)))}function floating_ui_dom_browser_min_S(t){const e=floating_ui_dom_browser_min_H(t),n=["absolute","fixed"].includes(dist_floating_ui_dom_browser_min_i(t).position)&&dist_floating_ui_dom_browser_min_c(t)?dist_floating_ui_dom_browser_min_T(t):t;return dist_floating_ui_dom_browser_min_f(n)?e.filter((t=>dist_floating_ui_dom_browser_min_f(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&dist_floating_ui_dom_browser_min_s(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==dist_floating_ui_dom_browser_min_r(t))):[]}const dist_floating_ui_dom_browser_min_D={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?floating_ui_dom_browser_min_S(e):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=floating_ui_dom_browser_min_C(e,n,i);return t.top=dist_floating_ui_dom_browser_min_p(o.top,t.top),t.right=dist_floating_ui_dom_browser_min_g(o.right,t.right),t.bottom=dist_floating_ui_dom_browser_min_g(o.bottom,t.bottom),t.left=dist_floating_ui_dom_browser_min_p(o.left,t.left),t}),floating_ui_dom_browser_min_C(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=dist_floating_ui_dom_browser_min_c(n),l=dist_floating_ui_dom_browser_min_v(n);if(n===l)return e;let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==dist_floating_ui_dom_browser_min_r(n)||dist_floating_ui_dom_browser_min_u(l))&&(f=dist_floating_ui_dom_browser_min_y(n)),dist_floating_ui_dom_browser_min_c(n))){const t=dist_floating_ui_dom_browser_min_w(n,!0);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}return{...e,x:e.x-f.scrollLeft+s.x,y:e.y-f.scrollTop+s.y}},isElement:dist_floating_ui_dom_browser_min_f,getDimensions:floating_ui_dom_browser_min_W,getOffsetParent:dist_floating_ui_dom_browser_min_T,getDocumentElement:dist_floating_ui_dom_browser_min_v,getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:dist_floating_ui_dom_browser_min_b(e,dist_floating_ui_dom_browser_min_T(n),o),floating:{...floating_ui_dom_browser_min_W(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===dist_floating_ui_dom_browser_min_i(t).direction};function floating_ui_dom_browser_min_N(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:c=!1}=o,s=i&&!c,u=r&&!c,d=s||u?[...dist_floating_ui_dom_browser_min_f(t)?floating_ui_dom_browser_min_H(t):[],...floating_ui_dom_browser_min_H(e)]:[];d.forEach((t=>{s&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)}));let h,a=null;if(l){let o=!0;a=new ResizeObserver((()=>{o||n(),o=!1})),dist_floating_ui_dom_browser_min_f(t)&&!c&&a.observe(t),a.observe(e)}let g=c?dist_floating_ui_dom_browser_min_w(t):null;return c&&function e(){const o=dist_floating_ui_dom_browser_min_w(t);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,h=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach((t=>{s&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)})),null==(t=a)||t.disconnect(),a=null,c&&cancelAnimationFrame(h)}}const floating_ui_dom_browser_min_z=(t,n,o)=>dist_floating_ui_core_browser_min_o(t,n,{platform:dist_floating_ui_dom_browser_min_D,...o});
+function floating_ui_dom_browser_min_n(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function floating_ui_dom_browser_min_o(t){if(null==t)return window;if(!floating_ui_dom_browser_min_n(t)){const e=t.ownerDocument;return e&&e.defaultView||window}return t}function floating_ui_dom_browser_min_i(t){return floating_ui_dom_browser_min_o(t).getComputedStyle(t)}function floating_ui_dom_browser_min_r(t){return floating_ui_dom_browser_min_n(t)?"":t?(t.nodeName||"").toLowerCase():""}function floating_ui_dom_browser_min_l(){const t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((t=>t.brand+"/"+t.version)).join(" "):navigator.userAgent}function floating_ui_dom_browser_min_c(t){return t instanceof floating_ui_dom_browser_min_o(t).HTMLElement}function floating_ui_dom_browser_min_f(t){return t instanceof floating_ui_dom_browser_min_o(t).Element}function floating_ui_dom_browser_min_s(t){if("undefined"==typeof ShadowRoot)return!1;return t instanceof floating_ui_dom_browser_min_o(t).ShadowRoot||t instanceof ShadowRoot}function floating_ui_dom_browser_min_u(t){const{overflow:e,overflowX:n,overflowY:o}=floating_ui_dom_browser_min_i(t);return/auto|scroll|overlay|hidden/.test(e+o+n)}function floating_ui_dom_browser_min_d(t){return["table","td","th"].includes(floating_ui_dom_browser_min_r(t))}function floating_ui_dom_browser_min_h(t){const e=/firefox/i.test(floating_ui_dom_browser_min_l()),n=floating_ui_dom_browser_min_i(t);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter}function floating_ui_dom_browser_min_a(){return!/^((?!chrome|android).)*safari/i.test(floating_ui_dom_browser_min_l())}const floating_ui_dom_browser_min_g=Math.min,floating_ui_dom_browser_min_p=Math.max,floating_ui_dom_browser_min_m=Math.round;function floating_ui_dom_browser_min_w(t,e,n){var i,r,l,s;void 0===e&&(e=!1),void 0===n&&(n=!1);const u=t.getBoundingClientRect();let d=1,h=1;e&&floating_ui_dom_browser_min_c(t)&&(d=t.offsetWidth>0&&floating_ui_dom_browser_min_m(u.width)/t.offsetWidth||1,h=t.offsetHeight>0&&floating_ui_dom_browser_min_m(u.height)/t.offsetHeight||1);const g=floating_ui_dom_browser_min_f(t)?floating_ui_dom_browser_min_o(t):window,p=!floating_ui_dom_browser_min_a()&&n,w=(u.left+(p&&null!=(i=null==(r=g.visualViewport)?void 0:r.offsetLeft)?i:0))/d,v=(u.top+(p&&null!=(l=null==(s=g.visualViewport)?void 0:s.offsetTop)?l:0))/h,y=u.width/d,x=u.height/h;return{width:y,height:x,top:v,right:w+y,bottom:v+x,left:w,x:w,y:v}}function floating_ui_dom_browser_min_v(t){return(e=t,(e instanceof floating_ui_dom_browser_min_o(e).Node?t.ownerDocument:t.document)||window.document).documentElement;var e}function floating_ui_dom_browser_min_y(t){return floating_ui_dom_browser_min_f(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function floating_ui_dom_browser_min_x(t){return floating_ui_dom_browser_min_w(floating_ui_dom_browser_min_v(t)).left+floating_ui_dom_browser_min_y(t).scrollLeft}function floating_ui_dom_browser_min_b(t,e,n){const o=floating_ui_dom_browser_min_c(e),i=floating_ui_dom_browser_min_v(e),l=floating_ui_dom_browser_min_w(t,o&&function(t){const e=floating_ui_dom_browser_min_w(t);return floating_ui_dom_browser_min_m(e.width)!==t.offsetWidth||floating_ui_dom_browser_min_m(e.height)!==t.offsetHeight}(e),"fixed"===n);let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==floating_ui_dom_browser_min_r(e)||floating_ui_dom_browser_min_u(i))&&(f=floating_ui_dom_browser_min_y(e)),floating_ui_dom_browser_min_c(e)){const t=floating_ui_dom_browser_min_w(e,!0);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=floating_ui_dom_browser_min_x(i));return{x:l.left+f.scrollLeft-s.x,y:l.top+f.scrollTop-s.y,width:l.width,height:l.height}}function floating_ui_dom_browser_min_L(t){return"html"===floating_ui_dom_browser_min_r(t)?t:t.assignedSlot||t.parentNode||(floating_ui_dom_browser_min_s(t)?t.host:null)||floating_ui_dom_browser_min_v(t)}function floating_ui_dom_browser_min_R(t){return floating_ui_dom_browser_min_c(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function floating_ui_dom_browser_min_T(t){const e=floating_ui_dom_browser_min_o(t);let n=floating_ui_dom_browser_min_R(t);for(;n&&floating_ui_dom_browser_min_d(n)&&"static"===getComputedStyle(n).position;)n=floating_ui_dom_browser_min_R(n);return n&&("html"===floating_ui_dom_browser_min_r(n)||"body"===floating_ui_dom_browser_min_r(n)&&"static"===getComputedStyle(n).position&&!floating_ui_dom_browser_min_h(n))?e:n||function(t){let e=floating_ui_dom_browser_min_L(t);for(floating_ui_dom_browser_min_s(e)&&(e=e.host);floating_ui_dom_browser_min_c(e)&&!["html","body"].includes(floating_ui_dom_browser_min_r(e));){if(floating_ui_dom_browser_min_h(e))return e;e=e.parentNode}return null}(t)||e}function floating_ui_dom_browser_min_W(t){if(floating_ui_dom_browser_min_c(t))return{width:t.offsetWidth,height:t.offsetHeight};const e=floating_ui_dom_browser_min_w(t);return{width:e.width,height:e.height}}function floating_ui_dom_browser_min_E(t){const e=floating_ui_dom_browser_min_L(t);return["html","body","#document"].includes(floating_ui_dom_browser_min_r(e))?t.ownerDocument.body:floating_ui_dom_browser_min_c(e)&&floating_ui_dom_browser_min_u(e)?e:floating_ui_dom_browser_min_E(e)}function floating_ui_dom_browser_min_H(t,e){var n;void 0===e&&(e=[]);const i=floating_ui_dom_browser_min_E(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),l=floating_ui_dom_browser_min_o(i),c=r?[l].concat(l.visualViewport||[],floating_ui_dom_browser_min_u(i)?i:[]):i,f=e.concat(c);return r?f:f.concat(floating_ui_dom_browser_min_H(c))}function floating_ui_dom_browser_min_C(e,n,r){return"viewport"===n?floating_ui_core_browser_min_l(function(t,e){const n=floating_ui_dom_browser_min_o(t),i=floating_ui_dom_browser_min_v(t),r=n.visualViewport;let l=i.clientWidth,c=i.clientHeight,f=0,s=0;if(r){l=r.width,c=r.height;const t=floating_ui_dom_browser_min_a();(t||!t&&"fixed"===e)&&(f=r.offsetLeft,s=r.offsetTop)}return{width:l,height:c,x:f,y:s}}(e,r)):floating_ui_dom_browser_min_f(n)?function(t,e){const n=floating_ui_dom_browser_min_w(t,!1,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft;return{top:o,left:i,x:i,y:o,right:i+t.clientWidth,bottom:o+t.clientHeight,width:t.clientWidth,height:t.clientHeight}}(n,r):floating_ui_core_browser_min_l(function(t){var e;const n=floating_ui_dom_browser_min_v(t),o=floating_ui_dom_browser_min_y(t),r=null==(e=t.ownerDocument)?void 0:e.body,l=floating_ui_dom_browser_min_p(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),c=floating_ui_dom_browser_min_p(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let f=-o.scrollLeft+floating_ui_dom_browser_min_x(t);const s=-o.scrollTop;return"rtl"===floating_ui_dom_browser_min_i(r||n).direction&&(f+=floating_ui_dom_browser_min_p(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:c,x:f,y:s}}(floating_ui_dom_browser_min_v(e)))}function floating_ui_dom_browser_min_S(t){const e=floating_ui_dom_browser_min_H(t),n=["absolute","fixed"].includes(floating_ui_dom_browser_min_i(t).position)&&floating_ui_dom_browser_min_c(t)?floating_ui_dom_browser_min_T(t):t;return floating_ui_dom_browser_min_f(n)?e.filter((t=>floating_ui_dom_browser_min_f(t)&&function(t,e){const n=null==e.getRootNode?void 0:e.getRootNode();if(t.contains(e))return!0;if(n&&floating_ui_dom_browser_min_s(n)){let n=e;do{if(n&&t===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(t,n)&&"body"!==floating_ui_dom_browser_min_r(t))):[]}const floating_ui_dom_browser_min_D={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?floating_ui_dom_browser_min_S(e):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=floating_ui_dom_browser_min_C(e,n,i);return t.top=floating_ui_dom_browser_min_p(o.top,t.top),t.right=floating_ui_dom_browser_min_g(o.right,t.right),t.bottom=floating_ui_dom_browser_min_g(o.bottom,t.bottom),t.left=floating_ui_dom_browser_min_p(o.left,t.left),t}),floating_ui_dom_browser_min_C(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:o}=t;const i=floating_ui_dom_browser_min_c(n),l=floating_ui_dom_browser_min_v(n);if(n===l)return e;let f={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==floating_ui_dom_browser_min_r(n)||floating_ui_dom_browser_min_u(l))&&(f=floating_ui_dom_browser_min_y(n)),floating_ui_dom_browser_min_c(n))){const t=floating_ui_dom_browser_min_w(n,!0);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}return{...e,x:e.x-f.scrollLeft+s.x,y:e.y-f.scrollTop+s.y}},isElement:floating_ui_dom_browser_min_f,getDimensions:floating_ui_dom_browser_min_W,getOffsetParent:floating_ui_dom_browser_min_T,getDocumentElement:floating_ui_dom_browser_min_v,getElementRects:t=>{let{reference:e,floating:n,strategy:o}=t;return{reference:floating_ui_dom_browser_min_b(e,floating_ui_dom_browser_min_T(n),o),floating:{...floating_ui_dom_browser_min_W(n),x:0,y:0}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===floating_ui_dom_browser_min_i(t).direction};function floating_ui_dom_browser_min_N(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=!0,animationFrame:c=!1}=o,s=i&&!c,u=r&&!c,d=s||u?[...floating_ui_dom_browser_min_f(t)?floating_ui_dom_browser_min_H(t):[],...floating_ui_dom_browser_min_H(e)]:[];d.forEach((t=>{s&&t.addEventListener("scroll",n,{passive:!0}),u&&t.addEventListener("resize",n)}));let h,a=null;if(l){let o=!0;a=new ResizeObserver((()=>{o||n(),o=!1})),floating_ui_dom_browser_min_f(t)&&!c&&a.observe(t),a.observe(e)}let g=c?floating_ui_dom_browser_min_w(t):null;return c&&function e(){const o=floating_ui_dom_browser_min_w(t);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,h=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach((t=>{s&&t.removeEventListener("scroll",n),u&&t.removeEventListener("resize",n)})),null==(t=a)||t.disconnect(),a=null,c&&cancelAnimationFrame(h)}}const floating_ui_dom_browser_min_z=(t,n,o)=>floating_ui_core_browser_min_o(t,n,{platform:floating_ui_dom_browser_min_D,...o});
;// CONCATENATED MODULE: ./node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.esm.js
* @see https://floating-ui.com/docs/arrow
*/
-const floating_ui_react_dom_esm_arrow = options => {
+const dist_floating_ui_react_dom_esm_arrow = options => {
const {
element,
padding
limiter: sticky === 'partial' ? floating_ui_core_browser_min_L() : undefined,
...detectOverflowOptions
}) : undefined,
- arrow ? floating_ui_react_dom_esm_arrow({
+ arrow ? dist_floating_ui_react_dom_esm_arrow({
element: arrow,
padding: arrowPadding
}) : undefined,
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var r=n(9196);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},635:function(e,t,n){"use strict";e.exports=n(7755)},9196:function(e){"use strict";e.exports=window.React}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};!function(){"use strict";o.r(i),o.d(i,{AnglePickerControl:function(){return mb},Animate:function(){return Dm},Autocomplete:function(){return Tb},BaseControl:function(){return jv},BlockQuotation:function(){return r.BlockQuotation},Button:function(){return pd},ButtonGroup:function(){return WC},Card:function(){return SS},CardBody:function(){return AS},CardDivider:function(){return $S},CardFooter:function(){return US},CardHeader:function(){return KS},CardMedia:function(){return YS},CheckboxControl:function(){return XS},Circle:function(){return r.Circle},ClipboardButton:function(){return JS},ColorIndicator:function(){return ly},ColorPalette:function(){return m_},ColorPicker:function(){return QE},ComboboxControl:function(){return BT},CustomGradientPicker:function(){return Wk},CustomSelectControl:function(){return xP},Dashicon:function(){return Ul},DatePicker:function(){return uI},DateTimePicker:function(){return NI},Disabled:function(){return jI},Draggable:function(){return HI},DropZone:function(){return WI},DropZoneProvider:function(){return UI},Dropdown:function(){return py},DropdownMenu:function(){return sT},DuotonePicker:function(){return QI},DuotoneSwatch:function(){return qI},ExternalLink:function(){return nN},Fill:function(){return Ef},Flex:function(){return hh},FlexBlock:function(){return Xm},FlexItem:function(){return gh},FocalPointPicker:function(){return RN},FocusReturnProvider:function(){return yj},FocusableIframe:function(){return PN},FontSizePicker:function(){return SO},FormFileUpload:function(){return kO},FormToggle:function(){return RO},FormTokenField:function(){return DO},G:function(){return r.G},GradientPicker:function(){return Yk},Guide:function(){return zO},GuidePage:function(){return FO},HorizontalRule:function(){return r.HorizontalRule},Icon:function(){return Gl},IconButton:function(){return BO},IsolatedEventContainer:function(){return rj},KeyboardShortcuts:function(){return WO},Line:function(){return r.Line},MenuGroup:function(){return UO},MenuItem:function(){return GO},MenuItemsChoice:function(){return qO},Modal:function(){return GT},NavigableMenu:function(){return rT},Notice:function(){return dA},NoticeList:function(){return pA},Panel:function(){return hA},PanelBody:function(){return wA},PanelHeader:function(){return mA},PanelRow:function(){return xA},Path:function(){return r.Path},Placeholder:function(){return _A},Polygon:function(){return r.Polygon},Popover:function(){return Ff},QueryControls:function(){return OA},RadioControl:function(){return zA},RangeControl:function(){return ew},Rect:function(){return r.Rect},ResizableBox:function(){return EL},ResponsiveWrapper:function(){return _L},SVG:function(){return r.SVG},SandBox:function(){return SL},ScrollLock:function(){return vd},SearchControl:function(){return oD},SelectControl:function(){return _y},Slot:function(){return _f},SlotFillProvider:function(){return Cf},Snackbar:function(){return TL},SnackbarList:function(){return PL},Spinner:function(){return AL},TabPanel:function(){return BL},TabbableContainer:function(){return YO},TextControl:function(){return VL},TextHighlight:function(){return qL},TextareaControl:function(){return KL},TimePicker:function(){return RI},Tip:function(){return XL},ToggleControl:function(){return ZL},Toolbar:function(){return yB},ToolbarButton:function(){return GF},ToolbarDropdownMenu:function(){return wB},ToolbarGroup:function(){return YF},ToolbarItem:function(){return WF},Tooltip:function(){return Uf},TreeSelect:function(){return RA},VisuallyHidden:function(){return ud},__experimentalAlignmentMatrixControl:function(){return Im},__experimentalApplyValueToSides:function(){return xC},__experimentalBorderBoxControl:function(){return J_},__experimentalBorderControl:function(){return D_},__experimentalBoxControl:function(){return $C},__experimentalConfirmDialog:function(){return qT},__experimentalDimensionControl:function(){return DI},__experimentalDivider:function(){return VS},__experimentalDropdownContentWrapper:function(){return l_},__experimentalElevation:function(){return qC},__experimentalGrid:function(){return z_},__experimentalHStack:function(){return rb},__experimentalHasSplitBorders:function(){return U_},__experimentalHeading:function(){return i_},__experimentalInputControl:function(){return $v},__experimentalInputControlPrefixWrapper:function(){return HO},__experimentalInputControlSuffixWrapper:function(){return my},__experimentalIsDefinedBorder:function(){return W_},__experimentalIsEmptyBorder:function(){return $_},__experimentalItem:function(){return VO},__experimentalItemGroup:function(){return hk},__experimentalNavigation:function(){return yD},__experimentalNavigationBackButton:function(){return _D},__experimentalNavigationGroup:function(){return kD},__experimentalNavigationItem:function(){return AD},__experimentalNavigationMenu:function(){return jD},__experimentalNavigatorBackButton:function(){return sA},__experimentalNavigatorButton:function(){return iA},__experimentalNavigatorProvider:function(){return JD},__experimentalNavigatorScreen:function(){return nA},__experimentalNavigatorToParentButton:function(){return lA},__experimentalNumberControl:function(){return ab},__experimentalPaletteEdit:function(){return ST},__experimentalParseQuantityAndUnitFromRawValue:function(){return E_},__experimentalRadio:function(){return AA},__experimentalRadioGroup:function(){return LA},__experimentalScrollable:function(){return OS},__experimentalSpacer:function(){return lh},__experimentalStyleProvider:function(){return mf},__experimentalSurface:function(){return LL},__experimentalText:function(){return Yh},__experimentalToggleGroupControl:function(){return rO},__experimentalToggleGroupControlOption:function(){return wO},__experimentalToggleGroupControlOptionIcon:function(){return QL},__experimentalToolbarContext:function(){return $F},__experimentalToolsPanel:function(){return jB},__experimentalToolsPanelContext:function(){return IB},__experimentalToolsPanelItem:function(){return $B},__experimentalTreeGrid:function(){return XB},__experimentalTreeGridCell:function(){return tj},__experimentalTreeGridItem:function(){return ej},__experimentalTreeGridRow:function(){return ZB},__experimentalTruncate:function(){return o_},__experimentalUnitControl:function(){return M_},__experimentalUseCustomUnits:function(){return __},__experimentalUseNavigator:function(){return rA},__experimentalUseSlot:function(){return Yd},__experimentalUseSlotFills:function(){return oj},__experimentalVStack:function(){return r_},__experimentalView:function(){return cd},__experimentalZStack:function(){return cj},__unstableAnimatePresence:function(){return Vm},__unstableComposite:function(){return xm},__unstableCompositeGroup:function(){return Cm},__unstableCompositeItem:function(){return ke},__unstableDisclosureContent:function(){return Hx},__unstableGetAnimateClassName:function(){return Om},__unstableMotion:function(){return jl},__unstableUseAutocompleteProps:function(){return kb},__unstableUseCompositeState:function(){return fm},__unstableUseNavigateRegions:function(){return dj},createSlotFill:function(){return Sf},navigateRegions:function(){return fj},privateApis:function(){return BG},useBaseControlProps:function(){return Rb},withConstrainedTabbing:function(){return pj},withFallbackStyles:function(){return mj},withFilters:function(){return vj},withFocusOutside:function(){return DT},withFocusReturn:function(){return bj},withNotices:function(){return wj},withSpokenMessages:function(){return LD}});var e={};o.r(e),o.d(e,{Text:function(){return Oh},block:function(){return Dh},destructive:function(){return Lh},highlighterText:function(){return Fh},muted:function(){return zh},positive:function(){return Ah},upperCase:function(){return Bh}});var t={};o.r(t),o.d(t,{TooltipContent:function(){return Xx},TooltipPopoverView:function(){return Zx},TooltipShortcut:function(){return Qx},noOutline:function(){return Jx}});var n={};o.r(n),o.d(n,{ButtonContentView:function(){return pO},LabelView:function(){return lO},buttonView:function(){return uO},labelBlock:function(){return cO}});var r=window.wp.primitives,a=window.wp.element,s=o(4403),l=o.n(s),c=window.wp.i18n,u=window.wp.compose;function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var v=o(9196),b=o.t(v,2),y=o.n(v);function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var k=(0,v.createContext)({});var T,R=function(e,t,n){void 0===n&&(n=t.children);var r=(0,v.useContext)(k);if(r.useCreateElement)return r.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(_(t,["children"]))}return(0,v.createElement)(e,t,n)};function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){var t;if(!function(e){return"object"==typeof e&&null!=e}(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function O(e,t){for(var n={},r={},o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];t.indexOf(a)>=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}function D(e,t){if(void 0===t&&(t=[]),!N(e.state))return O(e,t);var n=O(e,[].concat(t,["state"])),r=n[0],o=n[1],i=r.state,a=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}(r,["state"]);return[I(I({},i),a),o]}function A(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i<a.length;i++){var s=a[i];if(e[s]!==t[s])return!1}return!0}function L(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return N(t.state)&&N(n.state)?e(I(I({},t.state),t),I(I({},n.state),n)):e(t,n)}}function z(e){var t=e.as,n=e.useHook,r=e.memo,o=e.propsAreEqual,i=void 0===o?null==n?void 0:n.unstable_propsAreEqual:o,a=e.keys,s=void 0===a?(null==n?void 0:n.__keys)||[]:a,l=e.useCreateElement,c=void 0===l?R:l,u=function(e,r){var o=e.as,i=void 0===o?t:o,a=_(e,["as"]);if(n){var l,u=D(a,s),d=u[0],f=u[1],p=n(d,E({ref:r},f)),m=p.wrapElement,h=_(p,["wrapElement"]),g=(null===(l=i.render)||void 0===l?void 0:l.__keys)||i.__keys,v=g&&D(a,g)[0],b=v?E(E({},h),v):h,y=c(i,b);return m?m(y):y}return c(i,E({ref:r},a))};return u=function(e){return(0,v.forwardRef)(e)}(u),r&&(u=function(e,t){return(0,v.memo)(e,t)}(u,i&&L(i))),u.__keys=s,u.unstable_propsAreEqual=L(i||A),u}function F(e,t){(0,v.useDebugValue)(e);var n=(0,v.useContext)(k);return null!=n[e]?n[e]:t}function B(e){var t,n,r,o=(r=e.compose,Array.isArray(r)?r:void 0!==r?[r]:[]),i=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Options";(0,v.useDebugValue)(r);var o=F(r);return o?E(E({},t),o(t,n)):t}(e.name,t,n)),e.compose)for(var r,i=S(o);!(r=i()).done;){t=r.value.__useOptions(t,n)}return t},a=function(t,n,r){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===r&&(r=!1),r||(t=i(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Props";(0,v.useDebugValue)(r);var o=F(r);return o?o(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var a,s=S(o);!(a=s()).done;){n=(0,a.value)(t,n,!0)}var l={},c=n||{};for(var u in c)void 0!==c[u]&&(l[u]=c[u]);return l};a.__useOptions=i;var s=o.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return a.__keys=[].concat(s,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),a.unstable_propsAreEqual=e.propsAreEqual||(null===(n=o[0])||void 0===n?void 0:n.unstable_propsAreEqual)||A,a}function j(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function V(e,t){return(0,v.useMemo)((function(){return null==e&&null==t?null:function(n){j(e,n),j(t,n)}}),[e,t])}function H(e){return e?e.ownerDocument||e:document}try{T=window}catch(e){}function $(e){return e&&H(e).defaultView||T}var W=function(){var e=$();return Boolean(void 0!==e&&e.document&&e.document.createElement)}(),U=W?v.useLayoutEffect:v.useEffect;function G(e){var t=(0,v.useRef)(e);return U((function(){t.current=e})),t}function K(e){return e.target===e.currentTarget}function q(e){var t=H(e).activeElement;return null!=t&&t.nodeName?t:null}function Y(e,t){return e===t||e.contains(t)}function X(e){var t=q(e);if(!t)return!1;if(Y(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}function Z(e){return!Y(e.currentTarget,e.target)}var J=["button","color","file","image","reset","submit"];function Q(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==J.indexOf(t.type)}return!1}function ee(e){return!!W&&-1!==window.navigator.userAgent.indexOf(e)}var te="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function ne(e){return function(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}(e,te)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}var re=B({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=m(e,["unstable_system"]),o=t.unstable_system,i=m(t,["unstable_system"]);return!(n!==o&&!A(n,o))&&A(r,i)}}),oe=(z({as:"div",useHook:re}),ee("Mac")&&!ee("Chrome")&&(ee("Safari")||ee("Firefox")));function ie(e){!X(e)&&ne(e)&&e.focus()}function ae(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function se(e,t){return(0,v.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var le=B({name:"Tabbable",compose:re,keys:["disabled","focusable"],useOptions:function(e,t){return p({disabled:t.disabled},e)},useProps:function(e,t){var n=t.ref,r=t.tabIndex,o=t.onClickCapture,i=t.onMouseDownCapture,a=t.onMouseDown,s=t.onKeyPressCapture,l=t.style,c=m(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),u=(0,v.useRef)(null),d=G(o),f=G(i),h=G(a),g=G(s),b=!!e.disabled&&!e.focusable,y=(0,v.useState)(!0),w=y[0],x=y[1],E=(0,v.useState)(!0),_=E[0],C=E[1],S=e.disabled?p({pointerEvents:"none"},l):l;U((function(){var e=u.current;e&&(["BUTTON","INPUT","SELECT","TEXTAREA","A"].includes(e.tagName)||x(!1),function(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)}(e)||C(!1))}),[]);var k=se(d,e.disabled),T=se(f,e.disabled),R=se(g,e.disabled),P=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e);var n=e.currentTarget;if(!e.defaultPrevented&&oe&&!Z(e)&&Q(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),ie(n)})),o=function(){cancelAnimationFrame(r),ie(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return p({ref:V(u,n),style:S,tabIndex:ae(b,w,_,r),disabled:!(!b||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:k,onMouseDownCapture:T,onMouseDown:P,onKeyPressCapture:R},c)}});z({as:"div",useHook:le});var ce=B({name:"Clickable",compose:le,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return p({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},m(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,t){var n=t.onKeyDown,r=t.onKeyUp,o=m(t,["onKeyDown","onKeyUp"]),i=(0,v.useState)(!1),a=i[0],s=i[1],l=G(n),c=G(r),u=(0,v.useCallback)((function(t){var n;if(null===(n=l.current)||void 0===n||n.call(l,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&K(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Q(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&s(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),d=(0,v.useCallback)((function(t){var n;if(null===(n=c.current)||void 0===n||n.call(c,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;a&&r&&(s(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,a]);return p({"data-active":a||void 0,onKeyDown:u,onKeyUp:d},o)}});z({as:"button",memo:!0,useHook:ce});function ue(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function de(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=ue(e.items||[]))||void 0===n?void 0:n.id}var fe=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],pe=fe,me=pe;function he(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function ge(e,t){e.userFocus=t}function ve(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}function be(e){var t=q(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function ye(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var we=(0,v.createContext)(ye);var xe=B({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,t){var n=(0,v.useContext)(we),r=(0,v.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],o=(0,v.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),i=t.id||e.id||""+o+r;return p(p({},e),{},{id:i})},useProps:function(e,t){return p({id:e.id},t)}});z({as:"div",useHook:xe});function Ee(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=H(e).createEvent("Event");return r.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),r}function _e(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){var n,r=Object.getPrototypeOf(e),o=null===(n=Object.getOwnPropertyDescriptor(r,"value"))||void 0===n?void 0:n.set;o&&(o.call(e,t),function(e,t,n){e.dispatchEvent(Ee(e,t,n))}(e,"input",{bubbles:!0}))}}function Ce(e){return e.querySelector("[data-composite-item-widget]")}var Se=B({name:"CompositeItem",compose:[ce,xe],keys:me,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return ce.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=m(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,s=m(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(r!==a)return!1;return ce.unstable_propsAreEqual(o,s)},useOptions:function(e){return p(p({},e),{},{id:e.id,currentId:de(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,r=t.ref,o=t.tabIndex,i=void 0===o?0:o,a=t.onMouseDown,s=t.onFocus,l=t.onBlurCapture,c=t.onKeyDown,u=t.onClick,d=m(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),f=(0,v.useRef)(null),h=e.id,b=e.disabled&&!e.focusable,y=e.currentId===h,w=G(y),x=(0,v.useRef)(!1),E=function(e){return(0,v.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),_=G(a),C=G(s),S=G(l),k=G(c),T=G(u),R=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&y||!(null!==(n=e.items)&&void 0!==n&&n.length);(0,v.useEffect)((function(){var t;if(h)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:h,ref:f,disabled:!!b}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,h)}}),[h,b,e.registerItem,e.unregisterItem]),(0,v.useEffect)((function(){var t=f.current;t&&e.unstable_moves&&w.current&&he(t)}),[e.unstable_moves]);var P=(0,v.useCallback)((function(e){var t;null===(t=_.current)||void 0===t||t.call(_,e),ge(e.currentTarget,!0)}),[]),M=(0,v.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(ge(t.currentTarget,!1),null===(n=C.current)||void 0===n||n.call(C,t),!t.defaultPrevented&&!Z(t)&&h&&!function(e,t){if(K(e))return!1;for(var n,r=g(t);!(n=r()).done;)if(n.value.ref.current===e.target)return!0;return!1}(t,e.items)&&(null===(r=e.setCurrentId)||void 0===r||r.call(e,h),o&&e.unstable_virtual&&e.baseId&&K(t))){var i=H(t.target).getElementById(e.baseId);i&&(x.current=!0,function(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,i=void 0===o?be:o;i(e)||(e.focus({preventScroll:r}),i(e)||requestAnimationFrame((function(){e.focus({preventScroll:r})})))}(i))}}),[h,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),I=(0,v.useCallback)((function(t){var n;null===(n=S.current)||void 0===n||n.call(S,t),t.defaultPrevented||e.unstable_virtual&&x.current&&(x.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),N=(0,v.useCallback)((function(t){var n;if(K(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,i=!(null==E||!E.groupId),a={ArrowUp:(i||r)&&e.up,ArrowRight:(i||o)&&e.next,ArrowDown:(i||r)&&e.down,ArrowLeft:(i||o)&&e.previous,Home:function(){var n,r;!i||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!i||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;i?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;i?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(a)return t.preventDefault(),void a();if(null===(n=k.current)||void 0===n||n.call(k,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var s=Ce(t.currentTarget);s&&ve(s)&&(s.focus(),_e(s,""))}else if("Delete"===t.key||"Backspace"===t.key){var l=Ce(t.currentTarget);l&&ve(l)&&(t.preventDefault(),_e(l,""))}}}),[e.orientation,E,e.up,e.next,e.down,e.previous,e.first,e.last]),O=(0,v.useCallback)((function(e){var t;if(null===(t=T.current)||void 0===t||t.call(T,e),!e.defaultPrevented){var n=Ce(e.currentTarget);n&&!X(n)&&n.focus()}}),[]);return p({ref:V(f,r),id:h,tabIndex:R?i:-1,"aria-selected":!(!e.unstable_virtual||!y)||void 0,onMouseDown:P,onFocus:M,onBlurCapture:I,onKeyDown:N,onClick:O},d)}}),ke=z({as:"button",memo:!0,useHook:Se});function Te(e){return e.split("-")[0]}function Re(e){return e.split("-")[1]}function Pe(e){return["top","bottom"].includes(Te(e))?"x":"y"}function Me(e){return"y"===e?"height":"width"}function Ie(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=Pe(t),l=Me(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(Te(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(Re(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function Ne(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Oe(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function De(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=Ne(p),h=s[f?"floating"===d?"reference":"floating":d],g=Oe(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=Oe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:g.top-v.top+m.top,bottom:v.bottom-g.bottom+m.bottom,left:g.left-v.left+m.left,right:v.right-g.right+m.right}}const Ae=Math.min,Le=Math.max;function ze(e,t,n){return Le(e,Ae(t,n))}const Fe=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:s,platform:l}=t;if(null==n)return{};const c=Ne(r),u={x:o,y:i},d=Pe(a),f=Re(a),p=Me(d),m=await l.getDimensions(n),h="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[p]+s.reference[d]-u[d]-s.floating[p],b=u[d]-s.reference[d],y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let w=y?"y"===d?y.clientHeight||0:y.clientWidth||0:0;0===w&&(w=s.floating[p]);const x=v/2-b/2,E=c[h],_=w-m[p]-c[g],C=w/2-m[p]/2+x,S=ze(E,C,_),k=("start"===f?c[h]:c[g])>0&&C!==S&&s.reference[p]<=s.floating[p];return{[d]:u[d]-(k?C<E?E-C:_-C:0),data:{[d]:S,centerOffset:C-S}}}}),Be={left:"right",right:"left",bottom:"top",top:"bottom"};function je(e){return e.replace(/left|right|bottom|top/g,(e=>Be[e]))}function Ve(e,t,n){void 0===n&&(n=!1);const r=Re(e),o=Pe(e),i=Me(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=je(a)),{main:a,cross:je(a)}}const He={start:"end",end:"start"};function $e(e){return e.replace(/start|end/g,(e=>He[e]))}const We=["top","right","bottom","left"],Ue=(We.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=Te(r),g=d||(h!==a&&p?function(e){const t=je(e);return[$e(e),t,$e(t)]}(a):[je(a)]),v=[a,...g],b=await De(t,m),y=[];let w=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&y.push(b[h]),u){const{main:e,cross:t}=Ve(r,i,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(b[e],b[t])}if(w=[...w,{placement:r,overflows:y}],!y.every((e=>e<=0))){var x,E;const e=(null!=(x=null==(E=o.flip)?void 0:E.index)?x:0)+1,t=v[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var _;const e=null==(_=w.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}});const Ge=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Te(n),s=Re(n),l="x"===Pe(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function Ke(e){return"x"===e?"y":"x"}const qe=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await De(t,l),d=Pe(Te(o)),f=Ke(d);let p=c[d],m=c[f];if(i){const e="y"===d?"bottom":"right";p=ze(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=ze(m+u["y"===f?"top":"left"],m,m-u[e])}const h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Ye=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=e,l=await De(t,s),c=Te(n),u=Re(n);let d,f;"top"===c||"bottom"===c?(d=c,f=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=c,d="end"===u?"top":"bottom");const p=Le(l.left,0),m=Le(l.right,0),h=Le(l.top,0),g=Le(l.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==g?h+g:Le(l.top,l.bottom)):l[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:Le(l.left,l.right)):l[f])};await a({...t,...v});const b=await o.getDimensions(i.floating);return r.floating.width!==b.width||r.floating.height!==b.height?{reset:{rects:!0}}:{}}}};function Xe(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function Ze(e){if(null==e)return window;if(!Xe(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Je(e){return Ze(e).getComputedStyle(e)}function Qe(e){return Xe(e)?"":e?(e.nodeName||"").toLowerCase():""}function et(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function tt(e){return e instanceof Ze(e).HTMLElement}function nt(e){return e instanceof Ze(e).Element}function rt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Ze(e).ShadowRoot||e instanceof ShadowRoot)}function ot(e){const{overflow:t,overflowX:n,overflowY:r}=Je(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function it(e){return["table","td","th"].includes(Qe(e))}function at(e){const t=/firefox/i.test(et()),n=Je(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function st(){return!/^((?!chrome|android).)*safari/i.test(et())}const lt=Math.min,ct=Math.max,ut=Math.round;function dt(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&tt(e)&&(l=e.offsetWidth>0&&ut(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&ut(s.height)/e.offsetHeight||1);const u=nt(e)?Ze(e):window,d=!st()&&n,f=(s.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/l,p=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,m=s.width/l,h=s.height/c;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function ft(e){return(t=e,(t instanceof Ze(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function pt(e){return nt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function mt(e){return dt(ft(e)).left+pt(e).scrollLeft}function ht(e,t,n){const r=tt(t),o=ft(t),i=dt(e,r&&function(e){const t=dt(e);return ut(t.width)!==e.offsetWidth||ut(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==Qe(t)||ot(o))&&(a=pt(t)),tt(t)){const e=dt(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=mt(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function gt(e){return"html"===Qe(e)?e:e.assignedSlot||e.parentNode||(rt(e)?e.host:null)||ft(e)}function vt(e){return tt(e)&&"fixed"!==Je(e).position?function(e){let{offsetParent:t}=e,n=e,r=!1;for(;n&&n!==t;){const{assignedSlot:e}=n;if(e){let o=e.offsetParent;if("contents"===Je(e).display){const t=e.hasAttribute("style"),r=e.style.display;e.style.display=Je(n).display,o=e.offsetParent,e.style.display=r,t||e.removeAttribute("style")}n=e,t!==o&&(t=o,r=!0)}else if(rt(n)&&n.host&&r)break;n=rt(n)&&n.host||n.parentNode}return t}(e):null}function bt(e){const t=Ze(e);let n=vt(e);for(;n&&it(n)&&"static"===Je(n).position;)n=vt(n);return n&&("html"===Qe(n)||"body"===Qe(n)&&"static"===Je(n).position&&!at(n))?t:n||function(e){let t=gt(e);for(rt(t)&&(t=t.host);tt(t)&&!["html","body"].includes(Qe(t));){if(at(t))return t;{const e=t.parentNode;t=rt(e)?e.host:e}}return null}(e)||t}function yt(e){if(tt(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=dt(e);return{width:t.width,height:t.height}}function wt(e){const t=gt(e);return["html","body","#document"].includes(Qe(t))?e.ownerDocument.body:tt(t)&&ot(t)?t:wt(t)}function xt(e,t){var n;void 0===t&&(t=[]);const r=wt(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Ze(r),a=o?[i].concat(i.visualViewport||[],ot(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(xt(a))}function Et(e,t,n){return"viewport"===t?Oe(function(e,t){const n=Ze(e),r=ft(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=st();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):nt(t)?function(e,t){const n=dt(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):Oe(function(e){var t;const n=ft(e),r=pt(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ct(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ct(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+mt(e);const l=-r.scrollTop;return"rtl"===Je(o||n).direction&&(s+=ct(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(ft(e)))}function _t(e){const t=xt(e),n=["absolute","fixed"].includes(Je(e).position)&&tt(e)?bt(e):e;return nt(n)?t.filter((e=>nt(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&rt(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==Qe(e))):[]}const Ct={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?_t(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Et(t,n,o);return e.top=ct(r.top,e.top),e.right=lt(r.right,e.right),e.bottom=lt(r.bottom,e.bottom),e.left=ct(r.left,e.left),e}),Et(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=tt(n),i=ft(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==Qe(n)||ot(i))&&(a=pt(n)),tt(n))){const e=dt(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:nt,getDimensions:yt,getOffsetParent:bt,getDocumentElement:ft,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:ht(t,bt(n),r),floating:{...yt(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Je(e).direction};const St=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=Ie(l,r,s),d=r,f={},p=0;for(let n=0;n<i.length;n++){const{name:m,fn:h}=i[n],{x:g,y:v,data:b,reset:y}=await h({x:c,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,u=null!=v?v:u,f={...f,[m]:{...f[m],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(d=y.placement),y.rects&&(l=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:c,y:u}=Ie(l,d,s))),n=-1)}return{x:c,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{platform:Ct,...n});var kt=window.ReactDOM,Tt=o.n(kt),Rt="undefined"!=typeof document?v.useLayoutEffect:v.useEffect;function Pt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Pt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Pt(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Mt(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const[i,a]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[s,l]=v.useState(t);Pt(null==s?void 0:s.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})),null==t?void 0:t.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})))||l(t);const c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),f=v.useRef(i),p=function(e){const t=v.useRef(e);return Rt((()=>{t.current=e})),t}(o),m=v.useCallback((()=>{c.current&&u.current&&St(c.current,u.current,{middleware:s,placement:n,strategy:r}).then((e=>{h.current&&!Pt(f.current,e)&&(f.current=e,kt.flushSync((()=>{a(e)})))}))}),[s,n,r]);Rt((()=>{h.current&&m()}),[m]);const h=v.useRef(!1);Rt((()=>(h.current=!0,()=>{h.current=!1})),[]);const g=v.useCallback((()=>{if("function"==typeof d.current&&(d.current(),d.current=null),c.current&&u.current)if(p.current){const e=p.current(c.current,u.current,m);d.current=e}else m()}),[m,p]),b=v.useCallback((e=>{c.current=e,g()}),[g]),y=v.useCallback((e=>{u.current=e,g()}),[g]),w=v.useMemo((()=>({reference:c,floating:u})),[]);return v.useMemo((()=>({...i,update:m,refs:w,reference:b,floating:y})),[i,m,w,b,y])}const It=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?Fe({element:t.current,padding:n}).fn(e):{}:t?Fe({element:t,padding:n}).fn(e):{};var r}}},Nt="undefined"!=typeof document,Ot={current:null},Dt={current:!1};function At(){if(Dt.current=!0,Nt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ot.current=e.matches;e.addListener(t),t()}else Ot.current=!1}const Lt=(0,v.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),zt=(0,v.createContext)({}),Ft=(0,v.createContext)(null),Bt=Nt?v.useLayoutEffect:v.useEffect,jt=(0,v.createContext)({strict:!1});function Vt(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ht(e){return"string"==typeof e||Array.isArray(e)}function $t(e){return"object"==typeof e&&"function"==typeof e.start}const Wt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ut=["initial",...Wt];function Gt(e){return $t(e.animate)||Ut.some((t=>Ht(e[t])))}function Kt(e){return Boolean(Gt(e)||e.variants)}function qt(e){const{initial:t,animate:n}=function(e,t){if(Gt(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Ht(t)?t:void 0,animate:Ht(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,v.useContext)(zt));return(0,v.useMemo)((()=>({initial:t,animate:n})),[Yt(t),Yt(n)])}function Yt(e){return Array.isArray(e)?e.join(" "):e}const Xt={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Zt={};for(const e in Xt)Zt[e]={isEnabled:t=>Xt[e].some((e=>!!t[e]))};function Jt(e){const t=(0,v.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Qt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let en=1;const tn=(0,v.createContext)({}),nn=(0,v.createContext)({}),rn=Symbol.for("motionComponentSymbol");function on({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)Zt[t]={...Zt[t],...e[t]}}(e);const i=(0,v.forwardRef)((function(i,a){let s;const l={...(0,v.useContext)(Lt),...i,layoutId:an(i)},{isStatic:c}=l,u=qt(i),d=c?void 0:Jt((()=>{if(Qt.hasEverUpdated)return en++})),f=r(i,c);if(!c&&Nt){u.visualElement=function(e,t,n,r){const{visualElement:o}=(0,v.useContext)(zt),i=(0,v.useContext)(jt),a=(0,v.useContext)(Ft),s=(0,v.useContext)(Lt).reducedMotion,l=(0,v.useRef)();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));const c=l.current;return(0,v.useInsertionEffect)((()=>{c&&c.update(n,a)})),Bt((()=>{c&&c.render()})),(0,v.useEffect)((()=>{c&&c.updateFeatures()})),(window.HandoffAppearAnimations?Bt:v.useEffect)((()=>{c&&c.animationState&&c.animationState.animateChanges()})),c}(o,f,l,t);const n=(0,v.useContext)(nn),r=(0,v.useContext)(jt).strict;u.visualElement&&(s=u.visualElement.loadFeatures(l,r,e,d,n))}return v.createElement(zt.Provider,{value:u},s&&u.visualElement?v.createElement(s,{visualElement:u.visualElement,...l}):null,n(o,i,d,function(e,t,n){return(0,v.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Vt(n)&&(n.current=r))}),[t])}(f,u.visualElement,a),f,c,u.visualElement))}));return i[rn]=o,i}function an({layoutId:e}){const t=(0,v.useContext)(tn).id;return t&&void 0!==e?t+"-"+e:e}function sn(e){function t(t,n={}){return on(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const ln=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function cn(e){return"string"==typeof e&&!e.includes("-")&&!!(ln.indexOf(e)>-1||/[A-Z]/.test(e))}const un={};const dn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],fn=new Set(dn);function pn(e,{layout:t,layoutId:n}){return fn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!un[e]||"opacity"===e)}const mn=e=>Boolean(e&&e.getVelocity),hn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gn=dn.length;const vn=e=>t=>"string"==typeof t&&t.startsWith(e),bn=vn("--"),yn=vn("var(--"),wn=(e,t)=>t&&"number"==typeof e?t.transform(e):e,xn=(e,t,n)=>Math.min(Math.max(n,e),t),En={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},_n={...En,transform:e=>xn(0,1,e)},Cn={...En,default:1},Sn=e=>Math.round(1e5*e)/1e5,kn=/(-)?([\d]*\.?[\d])+/g,Tn=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Rn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Pn(e){return"string"==typeof e}const Mn=e=>({test:t=>Pn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),In=Mn("deg"),Nn=Mn("%"),On=Mn("px"),Dn=Mn("vh"),An=Mn("vw"),Ln={...Nn,parse:e=>Nn.parse(e)/100,transform:e=>Nn.transform(100*e)},zn={...En,transform:Math.round},Fn={borderWidth:On,borderTopWidth:On,borderRightWidth:On,borderBottomWidth:On,borderLeftWidth:On,borderRadius:On,radius:On,borderTopLeftRadius:On,borderTopRightRadius:On,borderBottomRightRadius:On,borderBottomLeftRadius:On,width:On,maxWidth:On,height:On,maxHeight:On,size:On,top:On,right:On,bottom:On,left:On,padding:On,paddingTop:On,paddingRight:On,paddingBottom:On,paddingLeft:On,margin:On,marginTop:On,marginRight:On,marginBottom:On,marginLeft:On,rotate:In,rotateX:In,rotateY:In,rotateZ:In,scale:Cn,scaleX:Cn,scaleY:Cn,scaleZ:Cn,skew:In,skewX:In,skewY:In,distance:On,translateX:On,translateY:On,translateZ:On,x:On,y:On,z:On,perspective:On,transformPerspective:On,opacity:_n,originX:Ln,originY:Ln,originZ:On,zIndex:zn,fillOpacity:_n,strokeOpacity:_n,numOctaves:zn};function Bn(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(bn(e)){i[e]=n;continue}const r=Fn[e],d=wn(n,r);if(fn.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<gn;t++){const n=dn[t];void 0!==e[n]&&(i+=`${hn[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const jn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Vn(e,t,n){for(const r in t)mn(t[r])||pn(r,n)||(e[r]=t[r])}function Hn(e,t,n){const r={};return Vn(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,v.useMemo)((()=>{const r=jn();return Bn(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function $n(e,t,n){const r={},o=Hn(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Wn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Un(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Wn.has(e)}let Gn=e=>!Un(e);try{(Kn=require("@emotion/is-prop-valid").default)&&(Gn=e=>e.startsWith("on")?!Un(e):Kn(e))}catch(kz){}var Kn;function qn(e,t,n){return"string"==typeof e?e:On.transform(t+n*e)}const Yn={offset:"stroke-dashoffset",array:"stroke-dasharray"},Xn={offset:"strokeDashoffset",array:"strokeDasharray"};function Zn(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},c,u,d){if(Bn(e,l,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){return`${qn(t,e.x,e.width)} ${qn(n,e.y,e.height)}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Yn:Xn;e[i.offset]=On.transform(-r);const a=On.transform(t),s=On.transform(n);e[i.array]=`${a} ${s}`}(f,i,a,s,!1)}const Jn=()=>({...jn(),attrs:{}}),Qn=e=>"string"==typeof e&&"svg"===e.toLowerCase();function er(e,t,n,r){const o=(0,v.useMemo)((()=>{const n=Jn();return Zn(n,t,{enableHardwareAcceleration:!1},Qn(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};Vn(t,e.style,e),o.style={...t,...o.style}}return o}function tr(e=!1){return(t,n,r,o,{latestValues:i},a)=>{const s=(cn(t)?er:$n)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Gn(o)||!0===n&&Un(o)||!t&&!Un(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...l,...s,ref:o},{children:u}=n,d=(0,v.useMemo)((()=>mn(u)?u.get():u),[u]);return r&&(c["data-projection-id"]=r),(0,v.createElement)(t,{...c,children:d})}}const nr=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function rr(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const or=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ir(e,t,n,r){rr(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(or.has(n)?n:nr(n),t.attrs[n])}function ar(e,t){const{style:n}=e,r={};for(const o in n)(mn(n[o])||t.style&&mn(t.style[o])||pn(o,e))&&(r[o]=n[o]);return r}function sr(e,t){const n=ar(e,t);for(const r in e)if(mn(e[r])||mn(t[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return n}function lr(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}const cr=e=>Array.isArray(e),ur=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),dr=e=>cr(e)?e[e.length-1]||0:e;function fr(e){const t=mn(e)?e.get():e;return ur(t)?t.toValue():t}const pr=e=>(t,n)=>{const r=(0,v.useContext)(zt),o=(0,v.useContext)(Ft),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:mr(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():Jt(i)};function mr(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=fr(i[e]);let{initial:a,animate:s}=e;const l=Gt(e),c=Kt(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!$t(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=lr(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const hr={useVisualState:pr({scrapeMotionValuesFromProps:sr,createRenderState:Jn,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}Zn(n,r,{enableHardwareAcceleration:!1},Qn(t.tagName),e.transformTemplate),ir(t,n)}})},gr={useVisualState:pr({scrapeMotionValuesFromProps:ar,createRenderState:jn})};function vr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const br=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function yr(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const wr=e=>t=>br(t)&&e(t,yr(t));function xr(e,t,n,r){return vr(e,t,wr(n),r)}const Er=(e,t)=>n=>t(e(n)),_r=(...e)=>e.reduce(Er);function Cr(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Sr=Cr("dragHorizontal"),kr=Cr("dragVertical");function Tr(e){let t=!1;if("y"===e)t=kr();else if("x"===e)t=Sr();else{const e=Sr(),n=kr();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Rr(){const e=Tr(!0);return!e||(e(),!1)}class Pr{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Mr={delta:0,timestamp:0,isProcessing:!1};let Ir=!0,Nr=!1;const Or=["read","update","preRender","render","postRender"],Dr=Or.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>Nr=!0)),e)),{}),Ar=Or.reduce(((e,t)=>{const n=Dr[t];return e[t]=(e,t=!1,r=!1)=>(Nr||jr(),n.schedule(e,t,r)),e}),{}),Lr=Or.reduce(((e,t)=>(e[t]=Dr[t].cancel,e)),{}),zr=Or.reduce(((e,t)=>(e[t]=()=>Dr[t].process(Mr),e)),{}),Fr=e=>Dr[e].process(Mr),Br=e=>{Nr=!1,Mr.delta=Ir?1e3/60:Math.max(Math.min(e-Mr.timestamp,40),1),Mr.timestamp=e,Mr.isProcessing=!0,Or.forEach(Fr),Mr.isProcessing=!1,Nr&&(Ir=!1,requestAnimationFrame(Br))},jr=()=>{Nr=!0,Ir=!0,Mr.isProcessing||requestAnimationFrame(Br)};function Vr(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return xr(e.current,n,((n,o)=>{if("touch"===n.type||Rr())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Ar.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const Hr=(e,t)=>!!t&&(e===t||Hr(e,t.parentElement)),$r=e=>e;function Wr(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,yr(n))}const Ur=new WeakMap,Gr=new WeakMap,Kr=e=>{const t=Ur.get(e.target);t&&t(e)},qr=e=>{e.forEach(Kr)};function Yr(e,t,n){const r=function({root:e,...t}){const n=e||document;Gr.has(n)||Gr.set(n,{});const r=Gr.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(qr,{root:e,...t})),r[o]}(t);return Ur.set(e,n),r.observe(e),()=>{Ur.delete(e),r.unobserve(e)}}const Xr={some:0,all:1};const Zr={inView:{Feature:class extends Pr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Xr[r]};return Yr(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Pr{constructor(){super(...arguments),this.removeStartListeners=$r,this.removeEndListeners=$r,this.removeAccessibleListeners=$r,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=xr(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Ar.update((()=>{Hr(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=xr(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=_r(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=vr(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=vr(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Wr("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Ar.update((()=>n(e,t)))}))})),Wr("down",((e,t)=>{this.startPress(e,t)}))})),t=vr(this.node.current,"blur",(()=>{this.isPressing&&Wr("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=_r(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ar.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Rr()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ar.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=xr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=vr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=_r(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Pr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_r(vr(this.node.current,"focus",(()=>this.onFocus())),vr(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Pr{mount(){this.unmount=_r(Vr(this.node,!0),Vr(this.node,!1))}unmount(){}}}};function Jr(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Qr(e,t,n){const r=e.getProps();return lr(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const eo="data-"+nr("framerAppearId");let to=$r,no=$r;const ro=e=>1e3*e,oo=e=>e/1e3,io=!1,ao=e=>Array.isArray(e)&&"number"==typeof e[0];function so(e){return Boolean(!e||"string"==typeof e&&co[e]||ao(e)||Array.isArray(e)&&e.every(so))}const lo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,co={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:lo([0,.65,.55,1]),circOut:lo([.55,0,1,.45]),backIn:lo([.31,.01,.66,-.59]),backOut:lo([.33,1.53,.69,.99])};function uo(e){if(e)return ao(e)?lo(e):Array.isArray(e)?e.map(uo):co[e]}const fo={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},po={},mo={};for(const e in fo)mo[e]=()=>(void 0===po[e]&&(po[e]=fo[e]()),po[e]);const ho=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,go=1e-7,vo=12;function bo(e,t,n,r){if(e===t&&n===r)return $r;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=ho(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>go&&++s<vo);return a}(t,0,1,e,n);return e=>0===e||1===e?e:ho(o(e),t,r)}const yo=bo(.42,0,1,1),wo=bo(0,0,.58,1),xo=bo(.42,0,.58,1),Eo=e=>Array.isArray(e)&&"number"!=typeof e[0],_o=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Co=e=>t=>1-e(1-t),So=e=>1-Math.sin(Math.acos(e)),ko=Co(So),To=_o(ko),Ro=bo(.33,1.53,.69,.99),Po=Co(Ro),Mo=_o(Po),Io={linear:$r,easeIn:yo,easeInOut:xo,easeOut:wo,circIn:So,circInOut:To,circOut:ko,backIn:Po,backInOut:Mo,backOut:Ro,anticipate:e=>(e*=2)<1?.5*Po(e):.5*(2-Math.pow(2,-10*(e-1)))},No=e=>{if(Array.isArray(e)){no(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return bo(t,n,r,o)}return"string"==typeof e?(no(void 0!==Io[e],`Invalid easing type '${e}'`),Io[e]):e},Oo=(e,t)=>n=>Boolean(Pn(n)&&Rn.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Do=(e,t,n)=>r=>{if(!Pn(r))return r;const[o,i,a,s]=r.match(kn);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Ao={...En,transform:e=>Math.round((e=>xn(0,255,e))(e))},Lo={test:Oo("rgb","red"),parse:Do("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ao.transform(e)+", "+Ao.transform(t)+", "+Ao.transform(n)+", "+Sn(_n.transform(r))+")"};const zo={test:Oo("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Lo.transform},Fo={test:Oo("hsl","hue"),parse:Do("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Nn.transform(Sn(t))+", "+Nn.transform(Sn(n))+", "+Sn(_n.transform(r))+")"},Bo={test:e=>Lo.test(e)||zo.test(e)||Fo.test(e),parse:e=>Lo.test(e)?Lo.parse(e):Fo.test(e)?Fo.parse(e):zo.parse(e),transform:e=>Pn(e)?e:e.hasOwnProperty("red")?Lo.transform(e):Fo.transform(e)},jo=(e,t,n)=>-n*e+n*t+e;function Vo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Ho=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},$o=[zo,Lo,Fo];function Wo(e){const t=(e=>$o.find((t=>t.test(e))))(e);no(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Fo&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Vo(s,r,e+1/3),i=Vo(s,r,e),a=Vo(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const Uo=(e,t)=>{const n=Wo(e),r=Wo(t),o={...n};return e=>(o.red=Ho(n.red,r.red,e),o.green=Ho(n.green,r.green,e),o.blue=Ho(n.blue,r.blue,e),o.alpha=jo(n.alpha,r.alpha,e),Lo.transform(o))},Go="${c}",Ko="${n}";function qo(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(Tn);o&&(n=o.length,e=e.replace(Tn,Go),t.push(...o.map(Bo.parse)));const i=e.match(kn);return i&&(r=i.length,e=e.replace(kn,Ko),t.push(...i.map(En.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function Yo(e){return qo(e).values}function Xo(e){const{values:t,numColors:n,tokenised:r}=qo(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?Go:Ko,r<n?Bo.transform(e[r]):Sn(e[r]));return t}}const Zo=e=>"number"==typeof e?0:e;const Jo={test:function(e){var t,n;return isNaN(e)&&Pn(e)&&((null===(t=e.match(kn))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Tn))||void 0===n?void 0:n.length)||0)>0},parse:Yo,createTransformer:Xo,getAnimatableNone:function(e){const t=Yo(e);return Xo(e)(t.map(Zo))}};function Qo(e,t){return"number"==typeof e?n=>jo(e,t,n):Bo.test(e)?Uo(e,t):ni(e,t)}const ei=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Qo(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},ti=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Qo(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},ni=(e,t)=>{const n=Jo.createTransformer(t),r=qo(e),o=qo(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?_r(ei(r.values,o.values),n):(to(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},ri=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},oi=(e,t)=>n=>jo(e,t,n);function ii(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?oi:"string"==typeof e?Bo.test(e)?Uo:ni:Array.isArray(e)?ei:"object"==typeof e?ti:oi}(e[0]),i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||$r:t;i=_r(e,i)}r.push(i)}return r}function ai(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(no(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ii(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=ri(e[n],e[n+1],t);return a[n](r)};return n?t=>l(xn(e[0],e[i-1],t)):l}function si(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=ri(0,t,r);e.push(jo(n,1,o))}}(t,e.length-1),t}function li({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Eo(r)?r.map(No):No(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:si(t),e),s=ai(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||xo)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function ci(e,t){return t?e*(1e3/t):0}const ui=5;function di(e,t,n){const r=Math.max(t-ui,0);return ci(n-e(r),t-r)}const fi=.001,pi=.01,mi=10,hi=.05,gi=1;function vi({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;to(e<=ro(mi),"Spring duration must be 10 seconds or less");let a=1-t;a=xn(hi,gi,a),e=xn(pi,mi,oo(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=yi(t,a),l=Math.exp(-o);return fi-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=yi(Math.pow(t,2),a);return(-o(t)+fi>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-fi,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<bi;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=ro(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const bi=12;function yi(e,t){return e*Math.sqrt(1-t*t)}const wi=["duration","bounce"],xi=["stiffness","damping","mass"];function Ei(e,t){return t.some((t=>void 0!==e[t]))}function _i({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ei(e,xi)&&Ei(e,wi)){const n=vi(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=u?-oo(u):0,m=l/(2*Math.sqrt(s*c)),h=i-o,g=oo(Math.sqrt(s/c)),v=Math.abs(h)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),m<1){const e=yi(g,m);b=t=>{const n=Math.exp(-m*g*t);return i-n*((p+m*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===m)b=e=>i-Math.exp(-g*e)*(h+(p+g*h)*e);else{const e=g*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*g*t),r=Math.min(e*t,300);return i-n*((p+m*g*h)*Math.sinh(r)+e*h*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=b(e);if(f)a.done=e>=d;else{let o=p;0!==e&&(o=m<1?di(b,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Ci({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=n*t;const h=d+m,g=void 0===a?h:a(h);g!==h&&(m=g-d);const v=e=>-m*Math.exp(-e/r),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let w,x;const E=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(f.value)&&(w=e,x=_i({keyframes:[f.value,p(f.value)],velocity:di(b,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,y(e),E(e)),void 0!==w&&e>w?x.next(e-w):(!t&&y(e),f)}}}const Si=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Ar.update(t,!0),stop:()=>Lr.update(t),now:()=>Mr.isProcessing?Mr.timestamp:performance.now()}},ki=2e4;function Ti(e){let t=0;let n=e.next(t);for(;!n.done&&t<ki;)t+=50,n=e.next(t);return t>=ki?1/0:t}const Ri={decay:Ci,inertia:Ci,tween:li,keyframes:li,spring:_i};function Pi({autoplay:e=!0,delay:t=0,driver:n=Si,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let p,m,h=1,g=!1;const v=()=>{p&&p(),m=new Promise((e=>{p=e}))};let b;v();const y=Ri[o]||li;let w;y!==li&&"number"!=typeof r[0]&&(w=ai([0,100],r,{clamp:!1}),r=[0,100]);const x=y({...f,keyframes:r});let E;"mirror"===s&&(E=y({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let _="idle",C=null,S=null,k=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=Ti(x));const{calculatedDuration:T}=x;let R=1/0,P=1/0;null!==T&&(R=T+a,P=R*(i+1)-a);let M=0;const I=e=>{if(null===S)return;h>0&&(S=Math.min(S,e)),M=null!==C?C:(e-S)*h;const n=M-t,o=n<0;M=Math.max(n,0),"finished"===_&&null===C&&(M=P);let l=M,c=x;if(i){const e=M/R;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/R)):"mirror"===s&&(c=E));let o=xn(0,1,n);M>P&&(o="reverse"===s&&r?1:0),l=o*R}const u=o?{done:!1,value:r[0]}:c.next(l);w&&(u.value=w(u.value));let{done:f}=u;o||null===T||(f=M>=P);const p=null===C&&("finished"===_||"running"===_&&f||h<0&&M<=0);return d&&d(u.value),p&&D(),u},N=()=>{b&&b.stop(),b=void 0},O=()=>{_="idle",N(),v(),S=k=null},D=()=>{_="finished",u&&u(),N(),v()},A=()=>{if(g)return;b||(b=n(I));const e=b.now();l&&l(),null!==C?S=e-C:S&&"finished"!==_||(S=e),k=S,C=null,_="running",b.start()};e&&A();const L={then(e,t){return m.then(e,t)},get time(){return oo(M)},set time(e){e=ro(e),M=e,null===C&&b&&0!==h?S=b.now()-e/h:C=e},get duration(){const e=null===x.calculatedDuration?Ti(x):x.calculatedDuration;return oo(e)},get speed(){return h},set speed(e){e!==h&&b&&(h=e,L.time=oo(M))},get state(){return _},play:A,pause:()=>{_="paused",C=M},stop:()=>{g=!0,"idle"!==_&&(_="idle",c&&c(),O())},cancel:()=>{null!==k&&I(k),O()},complete:()=>{_="finished"},sample:e=>(S=0,I(e))};return L}const Mi=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Ii(e,t,{onUpdate:n,onComplete:r,...o}){if(!(mo.waapi()&&Mi.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:f}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!so(t.ease))(t,o)){const e=Pi({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;f=void 0,c=n,u=r-10,d="linear"}const p=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=uo(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:f}),m=()=>p.cancel(),h=()=>{Ar.update(m),i(),l()};return p.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),h()},{then(e,t){return a.then(e,t)},get time(){return oo(p.currentTime||0)},set time(e){p.currentTime=ro(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return oo(u)},play:()=>{s||(p.play(),Lr.update(m))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const n=Pi({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}h()},complete:()=>p.finish(),cancel:h}}const Ni={type:"spring",stiffness:500,damping:25,restSpeed:10},Oi={type:"keyframes",duration:.8},Di={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ai=(e,{keyframes:t})=>t.length>2?Oi:fn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Ni:Di,Li=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Jo.test(t)||t.startsWith("url("))),zi=new Set(["brightness","contrast","saturate","opacity"]);function Fi(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(kn)||[];if(!r)return e;const o=n.replace(r,"");let i=zi.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Bi=/([a-z-]*)\(.*?\)/g,ji={...Jo,getAnimatableNone:e=>{const t=e.match(Bi);return t?t.map(Fi).join(" "):e}},Vi={...Fn,color:Bo,backgroundColor:Bo,outlineColor:Bo,fill:Bo,stroke:Bo,borderColor:Bo,borderTopColor:Bo,borderRightColor:Bo,borderBottomColor:Bo,borderLeftColor:Bo,filter:ji,WebkitFilter:ji},Hi=e=>Vi[e];function $i(e,t){let n=Hi(e);return n!==ji&&(n=Jo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Wi(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Ui(e){return"number"==typeof e?0:$i("",e)}function Gi(e,t){return e[t]||e.default||e}const Ki=(e,t,n,r={})=>o=>{const i=Gi(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=ro(a);const l=function(e,t,n,r){const o=Li(t,n);let i=void 0!==r.from?r.from:e.get();return"none"===i&&o&&"string"==typeof n?i=$i(t,n):Wi(i)&&"string"==typeof n?i=Ui(n):!Array.isArray(n)&&Wi(n)&&"string"==typeof i&&(n=Ui(i)),Array.isArray(n)?function(e,[...t]){for(let n=0;n<t.length;n++)null===t[n]&&(t[n]=0===n?e:t[n-1]);return t}(i,n):[i,n]}(t,e,n,i),c=l[0],u=l[l.length-1],d=Li(e,c),f=Li(e,u);to(d===f,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(p={...p,...Ai(e,p)}),p.duration&&(p.duration=ro(p.duration)),p.repeatDelay&&(p.repeatDelay=ro(p.repeatDelay)),!d||!f||io||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:$r,pause:$r,stop:$r,then:e=>(e(),Promise.resolve()),cancel:$r,complete:$r});return t?Pi({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Ii(t,e,p);if(n)return n}return Pi(p)};function qi(e){return Boolean(mn(e)&&e.add)}const Yi=e=>/^\-?\d*\.?\d+$/.test(e),Xi=e=>/^0[^.\s]+$/.test(e);function Zi(e,t){-1===e.indexOf(t)&&e.push(t)}function Ji(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Qi{constructor(){this.subscriptions=[]}add(e){return Zi(this.subscriptions,e),()=>Ji(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class ea{constructor(e,t={}){var n;this.version="10.11.6",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=Mr;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Ar.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ar.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Qi);const n=this.events[e].add(t);return"change"===e?()=>{n(),Ar.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?ci(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ta(e,t){return new ea(e,t)}const na=e=>t=>t.test(e),ra=[En,On,Nn,In,An,Dn,{test:e=>"auto"===e,parse:e=>e}],oa=e=>ra.find(na(e)),ia=[...ra,Bo,Jo],aa=e=>ia.find(na(e));function sa(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ta(n))}function la(e,t){const n=Qr(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i){sa(e,t,dr(i[t]))}}function ca(e,t){if(!t)return;return(t[e]||t.default||t).from}function ua({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function da(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t),o=s[t];if(!r||void 0===o||u&&ua(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[eo];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,Ar))}r.start(Ki(t,r,o,e.shouldReduceMotion&&fn.has(t)?{type:!1}:a));const d=r.animation;qi(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return a&&Promise.all(c).then((()=>{a&&la(e,a)})),c}function fa(e,t,n={}){const r=Qr(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(da(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(pa).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(fa(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function pa(e,t){return e.sortNodePosition(t)}const ma=[...Wt].reverse(),ha=Wt.length;function ga(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>fa(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=fa(e,t,n);else{const o="function"==typeof t?Qr(e,t,n.custom):t;r=Promise.all(da(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function va(e){let t=ga(e);const n={animate:ya(!0),whileInView:ya(),whileHover:ya(),whileTap:ya(),whileDrag:ya(),whileFocus:ya(),exit:ya()};let r=!0;const o=(t,n)=>{const r=Qr(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;t<ha;t++){const p=ma[t],m=n[p],h=void 0!==s[p]?s[p]:l[p],g=Ht(h),v=p===a?m.isActive:null;!1===v&&(f=t);let b=h===l[p]&&h!==s[p]&&g;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...d},!m.isActive&&null===v||!h&&!m.prevProp||$t(h)||"boolean"==typeof h)continue;const y=ba(m.prevProp,h);let w=y||p===a&&m.isActive&&!b&&g||t>f&&g;const x=Array.isArray(h)?h:[h];let E=x.reduce(o,{});!1===v&&(E={});const{prevResolvedValues:_={}}=m,C={..._,...E},S=e=>{w=!0,u.delete(e),m.needsAnimating[e]=!0};for(const e in C){const t=E[e],n=_[e];d.hasOwnProperty(e)||(t!==n?cr(t)&&cr(n)?!Jr(t,n)||y?S(e):m.protectedKeys[e]=!0:void 0!==t?S(e):u.add(e):void 0!==t&&u.has(e)?S(e):m.protectedKeys[e]=!0)}m.prevProp=h,m.prevResolvedValues=E,m.isActive&&(d={...d,...E}),r&&e.blockInitialAnimation&&(w=!1),w&&!b&&c.push(...x.map((e=>({animation:e,options:{type:p,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let p=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function ba(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!Jr(t,e)}function ya(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let wa=0;const xa={animation:{Feature:class extends Pr{constructor(e){super(e),e.animationState||(e.animationState=va(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),$t(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Pr{constructor(){super(...arguments),this.id=wa++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Ea=(e,t)=>Math.abs(e-t);class _a{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=ka(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ea(e.x,t.x),r=Ea(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Mr;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Ca(t,this.transformPagePoint),Ar.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=ka("pointercancel"===e.type?this.lastMoveEventInfo:Ca(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!br(e))return;this.handlers=t,this.transformPagePoint=n;const r=Ca(yr(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=Mr;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,ka(r,this.history)),this.removeListeners=_r(xr(window,"pointermove",this.handlePointerMove),xr(window,"pointerup",this.handlePointerUp),xr(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Lr.update(this.updatePoint)}}function Ca(e,t){return t?{point:t(e.point)}:e}function Sa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ka({point:e},t){return{point:e,delta:Sa(e,Ra(t)),offset:Sa(e,Ta(t)),velocity:Pa(t,.1)}}function Ta(e){return e[0]}function Ra(e){return e[e.length-1]}function Pa(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Ra(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ro(t)));)n--;if(!r)return{x:0,y:0};const i=oo(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ma(e){return e.max-e.min}function Ia(e,t=0,n=.01){return Math.abs(e-t)<=n}function Na(e,t,n,r=.5){e.origin=r,e.originPoint=jo(t.min,t.max,e.origin),e.scale=Ma(n)/Ma(t),(Ia(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=jo(n.min,n.max,e.origin)-e.originPoint,(Ia(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Oa(e,t,n,r){Na(e.x,t.x,n.x,r?r.originX:void 0),Na(e.y,t.y,n.y,r?r.originY:void 0)}function Da(e,t,n){e.min=n.min+t.min,e.max=e.min+Ma(t)}function Aa(e,t,n){e.min=t.min-n.min,e.max=e.min+Ma(t)}function La(e,t,n){Aa(e.x,t.x,n.x),Aa(e.y,t.y,n.y)}function za(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Fa(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Ba=.35;function ja(e,t,n){return{min:Va(e,t),max:Va(e,n)}}function Va(e,t){return"number"==typeof e?e:e[t]||0}const Ha=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),$a=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Wa(e){return[e("x"),e("y")]}function Ua({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ga(e){return void 0===e||1===e}function Ka({scale:e,scaleX:t,scaleY:n}){return!Ga(e)||!Ga(t)||!Ga(n)}function qa(e){return Ka(e)||Ya(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Ya(e){return Xa(e.x)||Xa(e.y)}function Xa(e){return e&&"0%"!==e}function Za(e,t,n){return n+t*(e-n)}function Ja(e,t,n,r,o){return void 0!==o&&(e=Za(e,o,r)),Za(e,n,r)+t}function Qa(e,t=0,n=1,r,o){e.min=Ja(e.min,t,n,r,o),e.max=Ja(e.max,t,n,r,o)}function es(e,{x:t,y:n}){Qa(e.x,t.translate,t.scale,t.originPoint),Qa(e.y,n.translate,n.scale,n.originPoint)}function ts(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ns(e,t){e.min=e.min+t,e.max=e.max+t}function rs(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=jo(e.min,e.max,i);Qa(e,t[n],t[r],a,t.scale)}const os=["x","scaleX","originX"],is=["y","scaleY","originY"];function as(e,t){rs(e.x,t,os),rs(e.y,t,is)}function ss(e,t){return Ua(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const ls=new WeakMap;class cs{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$a(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new _a(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(yr(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Tr(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wa((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Nn.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Ma(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&Ar.update((()=>o(e,t)));const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&Ar.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!us(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?jo(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?jo(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&Vt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:za(e.x,n,o),y:za(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Ba){return!1===e?e=0:!0===e&&(e=Ba),{x:ja(e,"left","right"),y:ja(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Wa((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Vt(e))return!1;const n=e.current;no(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=ss(e,n),{scroll:o}=t;return o&&(ns(r.x,o.offset.x),ns(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Fa(e.x,t.x),y:Fa(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Ua(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Wa((a=>{if(!us(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Ki(e,n,0,t))}stopAnimation(){Wa((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Wa((t=>{const{drag:n}=this.getProps();if(!us(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-jo(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Vt(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Wa((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Ma(e),o=Ma(t);return o>r?n=ri(t.min,t.max-r,e.min):r>o&&(n=ri(e.min,e.max-o,t.min)),xn(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Wa((t=>{if(!us(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(jo(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;ls.set(this.visualElement,this);const e=xr(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Vt(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=vr(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Wa((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Ba,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function us(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const ds=e=>(t,n)=>{e&&Ar.update((()=>e(t,n)))};function fs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ps={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!On.test(e))return e;e=parseFloat(e)}return`${fs(e,t.target.x)}% ${fs(e,t.target.y)}%`}},ms=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const hs=4;function gs(e,t,n=1){no(n<=hs,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=ms.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():yn(o)?gs(o,t,n+1):o}const vs="_$css",bs={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(ms,(e=>(i.push(e),vs))));const a=Jo.parse(e);if(a.length>5)return r;const s=Jo.createTransformer(e),l="number"!=typeof a[0]?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=u;const d=jo(c,u,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(o){let e=0;f=f.replace(vs,(()=>{const t=i[e];return e++,t}))}return f}};class ys extends v.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=xs,Object.assign(un,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Qt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Ar.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ws(e){const[t,n]=function(){const e=(0,v.useContext)(Ft);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,v.useId)();return(0,v.useEffect)((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=(0,v.useContext)(tn);return v.createElement(ys,{...e,layoutGroup:r,switchLayoutGroup:(0,v.useContext)(nn),isPresent:t,safeToRemove:n})}const xs={borderRadius:{...ps,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ps,borderTopRightRadius:ps,borderBottomLeftRadius:ps,borderBottomRightRadius:ps,boxShadow:bs},Es=["TopLeft","TopRight","BottomLeft","BottomRight"],_s=Es.length,Cs=e=>"string"==typeof e?parseFloat(e):e,Ss=e=>"number"==typeof e||On.test(e);function ks(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Ts=Ps(0,.5,ko),Rs=Ps(.5,.95,$r);function Ps(e,t,n){return r=>r<e?0:r>t?1:n(ri(e,t,r))}function Ms(e,t){e.min=t.min,e.max=t.max}function Is(e,t){Ms(e.x,t.x),Ms(e.y,t.y)}function Ns(e,t,n,r,o){return e=Za(e-=t,1/n,r),void 0!==o&&(e=Za(e,1/o,r)),e}function Os(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){Nn.test(t)&&(t=parseFloat(t),t=jo(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=jo(i.min,i.max,r);e===i&&(s-=t),e.min=Ns(e.min,t,n,s,o),e.max=Ns(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const Ds=["x","scaleX","originX"],As=["y","scaleY","originY"];function Ls(e,t,n,r){Os(e.x,t,Ds,n?n.x:void 0,r?r.x:void 0),Os(e.y,t,As,n?n.y:void 0,r?r.y:void 0)}function zs(e){return 0===e.translate&&1===e.scale}function Fs(e){return zs(e.x)&&zs(e.y)}function Bs(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function js(e){return Ma(e.x)/Ma(e.y)}class Vs{constructor(){this.members=[]}add(e){Zi(this.members,e),e.scheduleRender()}remove(e){if(Ji(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Hs(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const $s=(e,t)=>e.depth-t.depth;class Ws{constructor(){this.children=[],this.isDirty=!1}add(e){Zi(this.children,e),this.isDirty=!0}remove(e){Ji(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort($s),this.isDirty=!1,this.children.forEach(e)}}const Us=["","X","Y","Z"];let Gs=0;const Ks={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function qs({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=Gs++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Ks.totalNodes=Ks.resolvedTargetDeltas=Ks.recalculatedProjection=0,this.nodes.forEach(Zs),this.nodes.forEach(rl),this.nodes.forEach(ol),this.nodes.forEach(Js),e=Ks,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ws)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Qi),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,t){this.potentialNodes.set(e,t)}mount(t,n=!1){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Lr.read(r),e(i-t))};return Ar.read(r,!0),()=>Lr.read(r)}(r,250),Qt.hasAnimatedSinceResize&&(Qt.hasAnimatedSinceResize=!1,this.nodes.forEach(nl))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||ul,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Bs(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Gi(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||nl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Lr.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(il),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(el);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(dl),this.potentialNodes.clear()),this.nodes.forEach(tl),this.nodes.forEach(Ys),this.nodes.forEach(Xs),this.clearAllSnapshots(),zr.update(),zr.preRender(),zr.render())}clearAllSnapshots(){this.nodes.forEach(Qs),this.sharedNodes.forEach(al)}scheduleUpdateProjection(){Ar.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Ar.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=$a(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!Fs(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||qa(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),fl((r=n).x),fl(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return $a();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(ns(t.x,n.offset.x),ns(t.y,n.offset.y)),t}removeElementScroll(e){const t=$a();Is(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Is(t,e);const{scroll:n}=this.root;n&&(ns(t.x,-n.offset.x),ns(t.y,-n.offset.y))}ns(t.x,o.offset.x),ns(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=$a();Is(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&as(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),qa(r.latestValues)&&as(n,r.latestValues)}return qa(this.latestValues)&&as(n,this.latestValues),n}removeTransform(e){const t=$a();Is(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!qa(n.latestValues))continue;Ka(n.latestValues)&&n.updateSnapshot();const r=$a();Is(r,n.measurePageBox()),Ls(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return qa(this.latestValues)&&Ls(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Mr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Mr.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$a(),this.relativeTargetOrigin=$a(),La(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Is(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=$a(),this.targetWithTransforms=$a()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Da(a.x,s.x,l.x),Da(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Is(this.target,this.layout.layoutBox),es(this.target,this.targetDelta)):Is(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$a(),this.relativeTargetOrigin=$a(),La(this.relativeTargetOrigin,this.target,e.target),Is(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ks.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ka(this.parent.latestValues)&&!Ya(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Mr.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Is(this.layoutCorrected,this.layout.layoutBox),function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&as(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,es(e,a)),r&&qa(i.latestValues)&&as(e,i.latestValues))}t.x=ts(t.x),t.y=ts(t.y)}(this.layoutCorrected,this.treeScale,this.path,n);const{target:a}=t;if(!a)return;this.projectionDelta||(this.projectionDelta=Ha(),this.projectionDeltaWithTransform=Ha());const s=this.treeScale.x,l=this.treeScale.y,c=this.projectionTransform;Oa(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Hs(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===l||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),Ks.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=Ha();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=$a(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(cl));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;sl(i.x,e.x,n),sl(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(La(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){ll(e.x,t.x,n.x,r),ll(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&Bs(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=$a()),Is(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=jo(0,void 0!==n.opacity?n.opacity:1,Ts(r)),e.opacityExit=jo(void 0!==t.opacity?t.opacity:1,0,Rs(r))):i&&(e.opacity=jo(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<_s;o++){const i=`border${Es[o]}Radius`;let a=ks(t,i),s=ks(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Ss(a)===Ss(s)?(e[i]=Math.max(jo(Cs(a),Cs(s),r),0),(Nn.test(s)||Nn.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=jo(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Lr.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ar.update((()=>{Qt.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=mn(e)?e:ta(e);return r.start(Ki("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&pl(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||$a();const t=Ma(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Ma(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Is(t,n),as(t,o),Oa(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Vs);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<Us.length;t++){const o="rotate"+Us[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=fr(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=fr(e.pointerEvents)||""),this.hasProjected&&!qa(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Hs(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in un){if(void 0===a[e])continue;const{correct:t,applyTo:n}=un[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?fr(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(el),this.root.sharedNodes.clear()}}}function Ys(e){e.updateLayout()}function Xs(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Wa((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=Ma(r);r.min=t[e].min,r.max=r.min+o})):pl(o,n.layoutBox,t)&&Wa((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=Ma(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=Ha();Oa(a,t,n.layoutBox);const s=Ha();i?Oa(s,e.applyTransform(r,!0),n.measuredBox):Oa(s,t,n.layoutBox);const l=!Fs(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=$a();La(a,n.layoutBox,o.layoutBox);const s=$a();La(s,t,i.layoutBox),Bs(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Zs(e){Ks.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Js(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Qs(e){e.clearSnapshot()}function el(e){e.clearMeasurements()}function tl(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function nl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function rl(e){e.resolveTargetDelta()}function ol(e){e.calcProjection()}function il(e){e.resetRotation()}function al(e){e.removeLeadSnapshot()}function sl(e,t,n){e.translate=jo(t.translate,0,n),e.scale=jo(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ll(e,t,n,r){e.min=jo(t.min,n.min,r),e.max=jo(t.max,n.max,r)}function cl(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const ul={duration:.45,ease:[.4,0,.1,1]};function dl(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(Boolean(e.path[t].instance)){n=e.path[t];break}const r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function fl(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function pl(e,t,n){return"position"===e||"preserve-aspect"===e&&!Ia(js(t),js(n),.2)}const ml=qs({attachResizeListener:(e,t)=>vr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hl={current:void 0},gl=qs({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hl.current){const e=new ml(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),hl.current=e}return hl.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),vl={pan:{Feature:class extends Pr{constructor(){super(...arguments),this.removePointerDownListener=$r}onPointerDown(e){this.session=new _a(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ds(e),onStart:ds(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Ar.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=xr(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Pr{constructor(e){super(e),this.removeGroupControls=$r,this.removeListeners=$r,this.controls=new cs(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$r}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:gl,MeasureLayout:ws}},bl=new Set(["width","height","top","left","right","bottom","x","y"]),yl=e=>bl.has(e),wl=e=>e===En||e===On,xl=(e,t)=>parseFloat(e.split(", ")[t]),El=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return xl(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?xl(t[1],e):0}},_l=new Set(["x","y","z"]),Cl=dn.filter((e=>!_l.has(e)));const Sl={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:El(4,13),y:El(5,14)},kl=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(yl);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=oa(c);const d=t[o];let f;if(cr(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=oa(c);for(let n=t;n<e&&null!==d[n];n++)f?no(oa(d[n])===f,"All keyframes must be of the same type"):(f=oa(d[n]),no(f===u||wl(u)&&wl(f),"Keyframes must be of the same dimension as the current value"))}else f=oa(d);if(u!==f)if(wl(u)&&wl(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===On&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==f?void 0:f.transform)&&(0===c||0===d)?0===c?l.set(f.transform(c)):t[o]=u.transform(d):(a||(i=function(e){const t=[];return Cl.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=Sl[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=Sl[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),Nt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Tl(e,t,n,r){return(e=>Object.keys(e).some(yl))(t)?kl(e,t,n,r):{target:t,transitionEnd:r}}const Rl=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!yn(t))return;const n=gs(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!yn(o))continue;const i=gs(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Tl(e,t=o.target,n,r=o.transitionEnd)};const Pl=new WeakMap,Ml=Object.keys(Zt),Il=Ml.length,Nl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ol=Ut.length;class Dl{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ar.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Gt(t),this.isVariantNode=Kt(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==a[e]&&mn(t)&&(t.set(a[e],!1),qi(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Pl.set(e,this),this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Dt.current||At(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ot.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Pl.delete(this.current),this.projection&&this.projection.unmount(),Lr.update(this.notifyUpdate),Lr.render(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=fn.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Ar.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o,i){let a,s;for(let e=0;e<Il;e++){const n=Ml[e],{isEnabled:r,Feature:o,ProjectionNode:i,MeasureLayout:l}=Zt[n];i&&(a=i),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(s=l))}if(!this.projection&&a){this.projection=new a(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&Vt(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update(this.props,this.prevProps):(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$a()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Nl.length;t++){const n=Nl[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(mn(i))e.addValue(o,i),qi(r)&&r.add(o);else if(mn(a))e.addValue(o,ta(i,{owner:e})),qi(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,ta(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Ol;e++){const n=Ut[e],r=this.props[n];(Ht(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ta(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=lr(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||mn(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new Qi),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Al extends Dl{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=ca(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(Yi(c)||Xi(c))?c=parseFloat(c):!aa(c)&&Jo.test(l)&&(c=$i(a,l)),e.addValue(a,ta(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=Rl(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Ll extends Al{readValueFromInstance(e,t){if(fn.has(t)){const e=Hi(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(bn(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return ss(e,t)}build(e,t,n,r){Bn(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return ar(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;mn(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){rr(e,t,n,r)}}class zl extends Al{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(fn.has(t)){const e=Hi(t);return e&&e.default||0}return t=or.has(t)?t:nr(t),e.getAttribute(t)}measureInstanceViewportBox(){return $a()}scrapeMotionValuesFromProps(e,t){return sr(e,t)}build(e,t,n,r){Zn(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){ir(e,t,0,r)}mount(e){this.isSVGTag=Qn(e.tagName),super.mount(e)}}const Fl=(e,t)=>cn(e)?new zl(t,{enableHardwareAcceleration:!1}):new Ll(t,{enableHardwareAcceleration:!0}),Bl={...xa,...Zr,...vl,...{layout:{ProjectionNode:gl,MeasureLayout:ws}}},jl=sn(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...cn(e)?hr:gr,preloadedFeatures:n,useRender:tr(t),createVisualElement:r,Component:e}}(e,t,Bl,Fl)));var Vl=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Hl=window.wp.deprecated,$l=o.n(Hl),Wl=window.wp.dom;var Ul=function({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,a.createElement)("span",{className:i,style:s,...o})};var Gl=function({icon:e=null,size:t=("string"==typeof e?20:24),...n}){if("string"==typeof e)return(0,a.createElement)(Ul,{icon:e,size:t,...n});if((0,a.isValidElement)(e)&&Ul===e.type)return(0,a.cloneElement)(e,{...n});if("function"==typeof e)return(0,a.createElement)(e,{size:t,...n});if(e&&("svg"===e.type||e.type===r.SVG)){const o={...e.props,width:t,height:t,...n};return(0,a.createElement)(r.SVG,{...o})}return(0,a.isValidElement)(e)?(0,a.cloneElement)(e,{size:t,...n}):e},Kl=(window.wp.warning,o(1919)),ql=o.n(Kl),Yl=o(5619),Xl=o.n(Yl);
+ */var r=n(9196);var o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},635:function(e,t,n){"use strict";e.exports=n(7755)},9196:function(e){"use strict";e.exports=window.React}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e](i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){a[e]=function(){return n[e]}}));return a.default=function(){return n},o.d(i,a),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var i={};!function(){"use strict";o.r(i),o.d(i,{AnglePickerControl:function(){return yb},Animate:function(){return Bm},Autocomplete:function(){return Nb},BaseControl:function(){return Uv},BlockQuotation:function(){return r.BlockQuotation},Button:function(){return bd},ButtonGroup:function(){return XC},Card:function(){return IS},CardBody:function(){return VS},CardDivider:function(){return YS},CardFooter:function(){return ZS},CardHeader:function(){return QS},CardMedia:function(){return tk},CheckboxControl:function(){return nk},Circle:function(){return r.Circle},ClipboardButton:function(){return ok},ColorIndicator:function(){return py},ColorPalette:function(){return y_},ColorPicker:function(){return o_},ComboboxControl:function(){return UT},CustomGradientPicker:function(){return Xk},CustomSelectControl:function(){return TP},Dashicon:function(){return Xl},DatePicker:function(){return gI},DateTimePicker:function(){return FI},Disabled:function(){return GI},Draggable:function(){return qI},DropZone:function(){return XI},DropZoneProvider:function(){return ZI},Dropdown:function(){return by},DropdownMenu:function(){return pT},DuotonePicker:function(){return iN},DuotoneSwatch:function(){return eN},ExternalLink:function(){return lN},Fill:function(){return Tf},Flex:function(){return wh},FlexBlock:function(){return th},FlexItem:function(){return xh},FocalPointPicker:function(){return DN},FocusReturnProvider:function(){return kj},FocusableIframe:function(){return AN},FontSizePicker:function(){return IO},FormFileUpload:function(){return NO},FormToggle:function(){return DO},FormTokenField:function(){return jO},G:function(){return r.G},GradientPicker:function(){return tT},Guide:function(){return $O},GuidePage:function(){return WO},HorizontalRule:function(){return r.HorizontalRule},Icon:function(){return Zl},IconButton:function(){return UO},IsolatedEventContainer:function(){return uj},KeyboardShortcuts:function(){return XO},Line:function(){return r.Line},MenuGroup:function(){return ZO},MenuItem:function(){return JO},MenuItemsChoice:function(){return eD},Modal:function(){return JT},NavigableMenu:function(){return cT},Notice:function(){return vA},NoticeList:function(){return yA},Panel:function(){return xA},PanelBody:function(){return kA},PanelHeader:function(){return wA},PanelRow:function(){return TA},Path:function(){return r.Path},Placeholder:function(){return PA},Polygon:function(){return r.Polygon},Popover:function(){return $f},QueryControls:function(){return BA},RadioControl:function(){return $A},RangeControl:function(){return iw},Rect:function(){return r.Rect},ResizableBox:function(){return RL},ResponsiveWrapper:function(){return PL},SVG:function(){return r.SVG},SandBox:function(){return IL},ScrollLock:function(){return Ed},SearchControl:function(){return uD},SelectControl:function(){return Ry},Slot:function(){return Rf},SlotFillProvider:function(){return Pf},Snackbar:function(){return OL},SnackbarList:function(){return AL},Spinner:function(){return VL},TabPanel:function(){return UL},TabbableContainer:function(){return tD},TextControl:function(){return KL},TextHighlight:function(){return ez},TextareaControl:function(){return QL},TimePicker:function(){return DI},Tip:function(){return nz},ToggleControl:function(){return rz},Toolbar:function(){return kB},ToolbarButton:function(){return QF},ToolbarDropdownMenu:function(){return TB},ToolbarGroup:function(){return nB},ToolbarItem:function(){return ZF},Tooltip:function(){return Xf},TreeSelect:function(){return DA},VisuallyHidden:function(){return hd},__experimentalAlignmentMatrixControl:function(){return Lm},__experimentalApplyValueToSides:function(){return TC},__experimentalBorderBoxControl:function(){return oC},__experimentalBorderControl:function(){return B_},__experimentalBoxControl:function(){return YC},__experimentalConfirmDialog:function(){return eR},__experimentalDimensionControl:function(){return jI},__experimentalDivider:function(){return KS},__experimentalDropdownContentWrapper:function(){return p_},__experimentalElevation:function(){return eS},__experimentalGrid:function(){return H_},__experimentalHStack:function(){return lb},__experimentalHasSplitBorders:function(){return Z_},__experimentalHeading:function(){return u_},__experimentalInputControl:function(){return qv},__experimentalInputControlPrefixWrapper:function(){return qO},__experimentalInputControlSuffixWrapper:function(){return yy},__experimentalIsDefinedBorder:function(){return X_},__experimentalIsEmptyBorder:function(){return Y_},__experimentalItem:function(){return KO},__experimentalItemGroup:function(){return xk},__experimentalNavigation:function(){return SD},__experimentalNavigationBackButton:function(){return PD},__experimentalNavigationGroup:function(){return ND},__experimentalNavigationItem:function(){return VD},__experimentalNavigationMenu:function(){return GD},__experimentalNavigatorBackButton:function(){return pA},__experimentalNavigatorButton:function(){return dA},__experimentalNavigatorProvider:function(){return oA},__experimentalNavigatorScreen:function(){return lA},__experimentalNavigatorToParentButton:function(){return mA},__experimentalNumberControl:function(){return db},__experimentalPaletteEdit:function(){return IT},__experimentalParseQuantityAndUnitFromRawValue:function(){return T_},__experimentalRadio:function(){return VA},__experimentalRadioGroup:function(){return HA},__experimentalScrollable:function(){return BS},__experimentalSpacer:function(){return ph},__experimentalStyleProvider:function(){return yf},__experimentalSurface:function(){return HL},__experimentalText:function(){return eg},__experimentalToggleGroupControl:function(){return cO},__experimentalToggleGroupControlOption:function(){return kO},__experimentalToggleGroupControlOptionIcon:function(){return iz},__experimentalToolbarContext:function(){return XF},__experimentalToolsPanel:function(){return KB},__experimentalToolsPanelContext:function(){return FB},__experimentalToolsPanelItem:function(){return XB},__experimentalTreeGrid:function(){return rj},__experimentalTreeGridCell:function(){return lj},__experimentalTreeGridItem:function(){return sj},__experimentalTreeGridRow:function(){return oj},__experimentalTruncate:function(){return c_},__experimentalUnitControl:function(){return A_},__experimentalUseCustomUnits:function(){return R_},__experimentalUseNavigator:function(){return cA},__experimentalUseSlot:function(){return ef},__experimentalUseSlotFills:function(){return dj},__experimentalVStack:function(){return l_},__experimentalView:function(){return md},__experimentalZStack:function(){return gj},__unstableAnimatePresence:function(){return Gm},__unstableComposite:function(){return km},__unstableCompositeGroup:function(){return Pm},__unstableCompositeItem:function(){return ke},__unstableDisclosureContent:function(){return Kx},__unstableGetAnimateClassName:function(){return Fm},__unstableMotion:function(){return Ul},__unstableUseAutocompleteProps:function(){return Ib},__unstableUseCompositeState:function(){return vm},__unstableUseNavigateRegions:function(){return bj},createSlotFill:function(){return Mf},navigateRegions:function(){return yj},privateApis:function(){return GG},useBaseControlProps:function(){return Ob},withConstrainedTabbing:function(){return wj},withFallbackStyles:function(){return xj},withFilters:function(){return Cj},withFocusOutside:function(){return jT},withFocusReturn:function(){return Sj},withNotices:function(){return Tj},withSpokenMessages:function(){return HD}});var e={};o.r(e),o.d(e,{Text:function(){return Fh},block:function(){return Bh},destructive:function(){return Vh},highlighterText:function(){return $h},muted:function(){return Hh},positive:function(){return jh},upperCase:function(){return Wh}});var t={};o.r(t),o.d(t,{TooltipContent:function(){return tE},TooltipPopoverView:function(){return nE},TooltipShortcut:function(){return oE},noOutline:function(){return rE}});var n={};o.r(n),o.d(n,{ButtonContentView:function(){return yO},LabelView:function(){return mO},buttonView:function(){return gO},labelBlock:function(){return hO}});var r=window.wp.primitives,a=window.wp.element,s=o(4403),l=o.n(s),c=window.wp.i18n,u=window.wp.compose;function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(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 h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var v=o(9196),b=o.t(v,2),y=o.n(v);function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function S(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var k=(0,v.createContext)({});var T,R=function(e,t,n){void 0===n&&(n=t.children);var r=(0,v.useContext)(k);if(r.useCreateElement)return r.useCreateElement(e,t,n);if("string"==typeof e&&function(e){return"function"==typeof e}(n)){t.children;return n(_(t,["children"]))}return(0,v.createElement)(e,t,n)};function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e){var t;if(!function(e){return"object"==typeof e&&null!=e}(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function O(e,t){for(var n={},r={},o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];t.indexOf(a)>=0?n[a]=e[a]:r[a]=e[a]}return[n,r]}function D(e,t){if(void 0===t&&(t=[]),!N(e.state))return O(e,t);var n=O(e,[].concat(t,["state"])),r=n[0],o=n[1],i=r.state,a=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}(r,["state"]);return[I(I({},i),a),o]}function A(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0,a=n;i<a.length;i++){var s=a[i];if(e[s]!==t[s])return!1}return!0}function L(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return N(t.state)&&N(n.state)?e(I(I({},t.state),t),I(I({},n.state),n)):e(t,n)}}function z(e){var t=e.as,n=e.useHook,r=e.memo,o=e.propsAreEqual,i=void 0===o?null==n?void 0:n.unstable_propsAreEqual:o,a=e.keys,s=void 0===a?(null==n?void 0:n.__keys)||[]:a,l=e.useCreateElement,c=void 0===l?R:l,u=function(e,r){var o=e.as,i=void 0===o?t:o,a=_(e,["as"]);if(n){var l,u=D(a,s),d=u[0],f=u[1],p=n(d,E({ref:r},f)),m=p.wrapElement,h=_(p,["wrapElement"]),g=(null===(l=i.render)||void 0===l?void 0:l.__keys)||i.__keys,v=g&&D(a,g)[0],b=v?E(E({},h),v):h,y=c(i,b);return m?m(y):y}return c(i,E({ref:r},a))};return u=function(e){return(0,v.forwardRef)(e)}(u),r&&(u=function(e,t){return(0,v.memo)(e,t)}(u,i&&L(i))),u.__keys=s,u.unstable_propsAreEqual=L(i||A),u}function F(e,t){(0,v.useDebugValue)(e);var n=(0,v.useContext)(k);return null!=n[e]?n[e]:t}function B(e){var t,n,r,o=(r=e.compose,Array.isArray(r)?r:void 0!==r?[r]:[]),i=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Options";(0,v.useDebugValue)(r);var o=F(r);return o?E(E({},t),o(t,n)):t}(e.name,t,n)),e.compose)for(var r,i=S(o);!(r=i()).done;){t=r.value.__useOptions(t,n)}return t},a=function(t,n,r){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===r&&(r=!1),r||(t=i(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Props";(0,v.useDebugValue)(r);var o=F(r);return o?o(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var a,s=S(o);!(a=s()).done;){n=(0,a.value)(t,n,!0)}var l={},c=n||{};for(var u in c)void 0!==c[u]&&(l[u]=c[u]);return l};a.__useOptions=i;var s=o.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return a.__keys=[].concat(s,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),a.unstable_propsAreEqual=e.propsAreEqual||(null===(n=o[0])||void 0===n?void 0:n.unstable_propsAreEqual)||A,a}function j(e,t){void 0===t&&(t=null),e&&("function"==typeof e?e(t):e.current=t)}function V(e,t){return(0,v.useMemo)((function(){return null==e&&null==t?null:function(n){j(e,n),j(t,n)}}),[e,t])}function H(e){return e?e.ownerDocument||e:document}try{T=window}catch(e){}function $(e){return e&&H(e).defaultView||T}var W=function(){var e=$();return Boolean(void 0!==e&&e.document&&e.document.createElement)}(),U=W?v.useLayoutEffect:v.useEffect;function G(e){var t=(0,v.useRef)(e);return U((function(){t.current=e})),t}function K(e){return e.target===e.currentTarget}function q(e){var t=H(e).activeElement;return null!=t&&t.nodeName?t:null}function Y(e,t){return e===t||e.contains(t)}function X(e){var t=q(e);if(!t)return!1;if(Y(e,t))return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&(n===e.id||!!e.querySelector("#"+n))}function Z(e){return!Y(e.currentTarget,e.target)}var J=["button","color","file","image","reset","submit"];function Q(e){if("BUTTON"===e.tagName)return!0;if("INPUT"===e.tagName){var t=e;return-1!==J.indexOf(t.type)}return!1}function ee(e){return!!W&&-1!==window.navigator.userAgent.indexOf(e)}var te="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function ne(e){return function(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}(e,te)&&function(e){var t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)}var re=B({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=m(e,["unstable_system"]),o=t.unstable_system,i=m(t,["unstable_system"]);return!(n!==o&&!A(n,o))&&A(r,i)}}),oe=(z({as:"div",useHook:re}),ee("Mac")&&!ee("Chrome")&&(ee("Safari")||ee("Firefox")));function ie(e){!X(e)&&ne(e)&&e.focus()}function ae(e,t,n,r){return e?t&&!n?-1:void 0:t?r:r||0}function se(e,t){return(0,v.useCallback)((function(n){var r;null===(r=e.current)||void 0===r||r.call(e,n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}),[e,t])}var le=B({name:"Tabbable",compose:re,keys:["disabled","focusable"],useOptions:function(e,t){return p({disabled:t.disabled},e)},useProps:function(e,t){var n=t.ref,r=t.tabIndex,o=t.onClickCapture,i=t.onMouseDownCapture,a=t.onMouseDown,s=t.onKeyPressCapture,l=t.style,c=m(t,["ref","tabIndex","onClickCapture","onMouseDownCapture","onMouseDown","onKeyPressCapture","style"]),u=(0,v.useRef)(null),d=G(o),f=G(i),h=G(a),g=G(s),b=!!e.disabled&&!e.focusable,y=(0,v.useState)(!0),w=y[0],x=y[1],E=(0,v.useState)(!0),_=E[0],C=E[1],S=e.disabled?p({pointerEvents:"none"},l):l;U((function(){var e=u.current;e&&(["BUTTON","INPUT","SELECT","TEXTAREA","A"].includes(e.tagName)||x(!1),function(e){return["BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)}(e)||C(!1))}),[]);var k=se(d,e.disabled),T=se(f,e.disabled),R=se(g,e.disabled),P=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e);var n=e.currentTarget;if(!e.defaultPrevented&&oe&&!Z(e)&&Q(n)){var r=requestAnimationFrame((function(){n.removeEventListener("mouseup",o,!0),ie(n)})),o=function(){cancelAnimationFrame(r),ie(n)};n.addEventListener("mouseup",o,{once:!0,capture:!0})}}),[]);return p({ref:V(u,n),style:S,tabIndex:ae(b,w,_,r),disabled:!(!b||!_)||void 0,"aria-disabled":!!e.disabled||void 0,onClickCapture:k,onMouseDownCapture:T,onMouseDown:P,onKeyPressCapture:R},c)}});z({as:"div",useHook:le});var ce=B({name:"Clickable",compose:le,keys:["unstable_clickOnEnter","unstable_clickOnSpace"],useOptions:function(e){var t=e.unstable_clickOnEnter,n=void 0===t||t,r=e.unstable_clickOnSpace;return p({unstable_clickOnEnter:n,unstable_clickOnSpace:void 0===r||r},m(e,["unstable_clickOnEnter","unstable_clickOnSpace"]))},useProps:function(e,t){var n=t.onKeyDown,r=t.onKeyUp,o=m(t,["onKeyDown","onKeyUp"]),i=(0,v.useState)(!1),a=i[0],s=i[1],l=G(n),c=G(r),u=(0,v.useCallback)((function(t){var n;if(null===(n=l.current)||void 0===n||n.call(l,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey&&K(t)){var r=e.unstable_clickOnEnter&&"Enter"===t.key,o=e.unstable_clickOnSpace&&" "===t.key;if(r||o){if(function(e){var t=e.currentTarget;return!!e.isTrusted&&(Q(t)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"A"===t.tagName||"SELECT"===t.tagName)}(t))return;t.preventDefault(),r?t.currentTarget.click():o&&s(!0)}}}),[e.disabled,e.unstable_clickOnEnter,e.unstable_clickOnSpace]),d=(0,v.useCallback)((function(t){var n;if(null===(n=c.current)||void 0===n||n.call(c,t),!t.defaultPrevented&&!e.disabled&&!t.metaKey){var r=e.unstable_clickOnSpace&&" "===t.key;a&&r&&(s(!1),t.currentTarget.click())}}),[e.disabled,e.unstable_clickOnSpace,a]);return p({"data-active":a||void 0,onKeyDown:u,onKeyUp:d},o)}});z({as:"button",memo:!0,useHook:ce});function ue(e,t){return t?e.find((function(e){return!e.disabled&&e.id!==t})):e.find((function(e){return!e.disabled}))}function de(e,t){var n;return t||null===t?t:e.currentId||null===e.currentId?e.currentId:null===(n=ue(e.items||[]))||void 0===n?void 0:n.id}var fe=["baseId","unstable_idCountRef","setBaseId","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget"],pe=fe,me=pe;function he(e){e.userFocus=!0,e.focus(),e.userFocus=!1}function ge(e,t){e.userFocus=t}function ve(e){try{var t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName,r="true"===e.contentEditable;return t||n||r||!1}catch(e){return!1}}function be(e){var t=q(e);if(!t)return!1;if(t===e)return!0;var n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function ye(e){return void 0===e&&(e="id"),(e?e+"-":"")+Math.random().toString(32).substr(2,6)}var we=(0,v.createContext)(ye);var xe=B({keys:[].concat(["baseId","unstable_idCountRef","setBaseId"],["id"]),useOptions:function(e,t){var n=(0,v.useContext)(we),r=(0,v.useState)((function(){return e.unstable_idCountRef?(e.unstable_idCountRef.current+=1,"-"+e.unstable_idCountRef.current):e.baseId?"-"+n(""):""}))[0],o=(0,v.useMemo)((function(){return e.baseId||n()}),[e.baseId,n]),i=t.id||e.id||""+o+r;return p(p({},e),{},{id:i})},useProps:function(e,t){return p({id:e.id},t)}});z({as:"div",useHook:xe});function Ee(e,t,n){if("function"==typeof Event)return new Event(t,n);var r=H(e).createEvent("Event");return r.initEvent(t,null==n?void 0:n.bubbles,null==n?void 0:n.cancelable),r}function _e(e,t){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){var n,r=Object.getPrototypeOf(e),o=null===(n=Object.getOwnPropertyDescriptor(r,"value"))||void 0===n?void 0:n.set;o&&(o.call(e,t),function(e,t,n){e.dispatchEvent(Ee(e,t,n))}(e,"input",{bubbles:!0}))}}function Ce(e){return e.querySelector("[data-composite-item-widget]")}var Se=B({name:"CompositeItem",compose:[ce,xe],keys:me,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return ce.unstable_propsAreEqual(e,t);var n=e.currentId,r=e.unstable_moves,o=m(e,["currentId","unstable_moves"]),i=t.currentId,a=t.unstable_moves,s=m(t,["currentId","unstable_moves"]);if(i!==n){if(t.id===i||t.id===n)return!1}else if(r!==a)return!1;return ce.unstable_propsAreEqual(o,s)},useOptions:function(e){return p(p({},e),{},{id:e.id,currentId:de(e),unstable_clickOnSpace:!e.unstable_hasActiveWidget&&e.unstable_clickOnSpace})},useProps:function(e,t){var n,r=t.ref,o=t.tabIndex,i=void 0===o?0:o,a=t.onMouseDown,s=t.onFocus,l=t.onBlurCapture,c=t.onKeyDown,u=t.onClick,d=m(t,["ref","tabIndex","onMouseDown","onFocus","onBlurCapture","onKeyDown","onClick"]),f=(0,v.useRef)(null),h=e.id,b=e.disabled&&!e.focusable,y=e.currentId===h,w=G(y),x=(0,v.useRef)(!1),E=function(e){return(0,v.useMemo)((function(){var t;return null===(t=e.items)||void 0===t?void 0:t.find((function(t){return e.id&&t.id===e.id}))}),[e.items,e.id])}(e),_=G(a),C=G(s),S=G(l),k=G(c),T=G(u),R=!e.unstable_virtual&&!e.unstable_hasActiveWidget&&y||!(null!==(n=e.items)&&void 0!==n&&n.length);(0,v.useEffect)((function(){var t;if(h)return null===(t=e.registerItem)||void 0===t||t.call(e,{id:h,ref:f,disabled:!!b}),function(){var t;null===(t=e.unregisterItem)||void 0===t||t.call(e,h)}}),[h,b,e.registerItem,e.unregisterItem]),(0,v.useEffect)((function(){var t=f.current;t&&e.unstable_moves&&w.current&&he(t)}),[e.unstable_moves]);var P=(0,v.useCallback)((function(e){var t;null===(t=_.current)||void 0===t||t.call(_,e),ge(e.currentTarget,!0)}),[]),M=(0,v.useCallback)((function(t){var n,r,o=!!t.currentTarget.userFocus;if(ge(t.currentTarget,!1),null===(n=C.current)||void 0===n||n.call(C,t),!t.defaultPrevented&&!Z(t)&&h&&!function(e,t){if(K(e))return!1;for(var n,r=g(t);!(n=r()).done;)if(n.value.ref.current===e.target)return!0;return!1}(t,e.items)&&(null===(r=e.setCurrentId)||void 0===r||r.call(e,h),o&&e.unstable_virtual&&e.baseId&&K(t))){var i=H(t.target).getElementById(e.baseId);i&&(x.current=!0,function(e,t){var n=void 0===t?{}:t,r=n.preventScroll,o=n.isActive,i=void 0===o?be:o;i(e)||(e.focus({preventScroll:r}),i(e)||requestAnimationFrame((function(){e.focus({preventScroll:r})})))}(i))}}),[h,e.items,e.setCurrentId,e.unstable_virtual,e.baseId]),I=(0,v.useCallback)((function(t){var n;null===(n=S.current)||void 0===n||n.call(S,t),t.defaultPrevented||e.unstable_virtual&&x.current&&(x.current=!1,t.preventDefault(),t.stopPropagation())}),[e.unstable_virtual]),N=(0,v.useCallback)((function(t){var n;if(K(t)){var r="horizontal"!==e.orientation,o="vertical"!==e.orientation,i=!(null==E||!E.groupId),a={ArrowUp:(i||r)&&e.up,ArrowRight:(i||o)&&e.next,ArrowDown:(i||r)&&e.down,ArrowLeft:(i||o)&&e.previous,Home:function(){var n,r;!i||t.ctrlKey?null===(n=e.first)||void 0===n||n.call(e):null===(r=e.previous)||void 0===r||r.call(e,!0)},End:function(){var n,r;!i||t.ctrlKey?null===(n=e.last)||void 0===n||n.call(e):null===(r=e.next)||void 0===r||r.call(e,!0)},PageUp:function(){var t,n;i?null===(t=e.up)||void 0===t||t.call(e,!0):null===(n=e.first)||void 0===n||n.call(e)},PageDown:function(){var t,n;i?null===(t=e.down)||void 0===t||t.call(e,!0):null===(n=e.last)||void 0===n||n.call(e)}}[t.key];if(a)return t.preventDefault(),void a();if(null===(n=k.current)||void 0===n||n.call(k,t),!t.defaultPrevented)if(1===t.key.length&&" "!==t.key){var s=Ce(t.currentTarget);s&&ve(s)&&(s.focus(),_e(s,""))}else if("Delete"===t.key||"Backspace"===t.key){var l=Ce(t.currentTarget);l&&ve(l)&&(t.preventDefault(),_e(l,""))}}}),[e.orientation,E,e.up,e.next,e.down,e.previous,e.first,e.last]),O=(0,v.useCallback)((function(e){var t;if(null===(t=T.current)||void 0===t||t.call(T,e),!e.defaultPrevented){var n=Ce(e.currentTarget);n&&!X(n)&&n.focus()}}),[]);return p({ref:V(f,r),id:h,tabIndex:R?i:-1,"aria-selected":!(!e.unstable_virtual||!y)||void 0,onMouseDown:P,onFocus:M,onBlurCapture:I,onKeyDown:N,onClick:O},d)}}),ke=z({as:"button",memo:!0,useHook:Se});const Te=Math.min,Re=Math.max,Pe=Math.round,Me=Math.floor,Ie=e=>({x:e,y:e}),Ne={left:"right",right:"left",bottom:"top",top:"bottom"},Oe={start:"end",end:"start"};function De(e,t,n){return Re(e,Te(t,n))}function Ae(e,t){return"function"==typeof e?e(t):e}function Le(e){return e.split("-")[0]}function ze(e){return e.split("-")[1]}function Fe(e){return"x"===e?"y":"x"}function Be(e){return"y"===e?"height":"width"}function je(e){return["top","bottom"].includes(Le(e))?"y":"x"}function Ve(e){return Fe(je(e))}function He(e){return e.replace(/start|end/g,(e=>Oe[e]))}function $e(e){return e.replace(/left|right|bottom|top/g,(e=>Ne[e]))}function We(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Ue(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Ge(e,t,n){let{reference:r,floating:o}=e;const i=je(t),a=Ve(t),s=Be(a),l=Le(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ze(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function Ke(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Ae(t,e),m=We(p),h=s[f?"floating"===d?"reference":"floating":d],g=Ue(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=Ue(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}const qe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Ae(e,t)||{};if(null==c)return{};const d=We(u),f={x:n,y:r},p=Ve(o),m=Be(p),h=await a.getDimensions(c),g="y"===p,v=g?"top":"left",b=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let _=E?E[y]:0;_&&await(null==a.isElement?void 0:a.isElement(E))||(_=s.floating[y]||i.floating[m]);const C=w/2-x/2,S=_/2-h[m]/2-1,k=Te(d[v],S),T=Te(d[b],S),R=k,P=_-h[m]-T,M=_/2-h[m]/2+C,I=De(R,M,P),N=!l.arrow&&null!=ze(o)&&M!=I&&i.reference[m]/2-(M<R?k:T)-h[m]/2<0,O=N?M<R?M-R:M-P:0;return{[p]:f[p]+O,data:{[p]:I,centerOffset:M-I-O,...N&&{alignmentOffset:O}},reset:N}}});const Ye=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=Ae(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=Le(o),b=Le(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(c.floating)),w=f||(b||!h?[$e(s)]:function(e){const t=$e(e);return[He(e),t,He(t)]}(s));f||"none"===m||w.push(...function(e,t,n,r){const o=ze(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(Le(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(He)))),i}(s,h,m,y));const x=[s,...w],E=await Ke(t,g),_=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&_.push(E[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ze(e),o=Ve(e),i=Be(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$e(a)),[a,$e(a)]}(o,a,y);_.push(E[e[0]],E[e[1]])}if(C=[...C,{placement:o,overflows:_}],!_.every((e=>e<=0))){var S,k;const e=((null==(S=i.flip)?void 0:S.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(k=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:k.placement;if(!n)switch(p){case"bestFit":{var T;const e=null==(T=C.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};const Xe=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Le(n),s=ze(n),l="y"===je(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=Ae(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Ze=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ae(e,t),c={x:n,y:r},u=await Ke(t,l),d=je(Le(o)),f=Fe(d);let p=c[f],m=c[d];if(i){const e="y"===f?"bottom":"right";p=De(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=De(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Je=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=(()=>{}),...s}=Ae(e,t),l=await Ke(t,s),c=Le(n),u=ze(n),d="y"===je(n),{width:f,height:p}=r.floating;let m,h;"top"===c||"bottom"===c?(m=c,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=c,m="end"===u?"top":"bottom");const g=p-l[m],v=f-l[h],b=!t.middlewareData.shift;let y=g,w=v;if(d){const e=f-l.left-l.right;w=u||b?Te(v,e):e}else{const e=p-l.top-l.bottom;y=u||b?Te(g,e):e}if(b&&!u){const e=Re(l.left,0),t=Re(l.right,0),n=Re(l.top,0),r=Re(l.bottom,0);d?w=f-2*(0!==e||0!==t?e+t:Re(l.left,l.right)):y=p-2*(0!==n||0!==r?n+r:Re(l.top,l.bottom))}await a({...t,availableWidth:w,availableHeight:y});const x=await o.getDimensions(i.floating);return f!==x.width||p!==x.height?{reset:{rects:!0}}:{}}}};function Qe(e){return nt(e)?(e.nodeName||"").toLowerCase():"#document"}function et(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function tt(e){var t;return null==(t=(nt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function nt(e){return e instanceof Node||e instanceof et(e).Node}function rt(e){return e instanceof Element||e instanceof et(e).Element}function ot(e){return e instanceof HTMLElement||e instanceof et(e).HTMLElement}function it(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof et(e).ShadowRoot)}function at(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=dt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function st(e){return["table","td","th"].includes(Qe(e))}function lt(e){const t=ct(),n=dt(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function ct(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ut(e){return["html","body","#document"].includes(Qe(e))}function dt(e){return et(e).getComputedStyle(e)}function ft(e){return rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function pt(e){if("html"===Qe(e))return e;const t=e.assignedSlot||e.parentNode||it(e)&&e.host||tt(e);return it(t)?t.host:t}function mt(e){const t=pt(e);return ut(t)?e.ownerDocument?e.ownerDocument.body:e.body:ot(t)&&at(t)?t:mt(t)}function ht(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=mt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=et(o);return i?t.concat(a,a.visualViewport||[],at(o)?o:[],a.frameElement&&n?ht(a.frameElement):[]):t.concat(o,ht(o,[],n))}function gt(e){const t=dt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ot(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Pe(n)!==i||Pe(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function vt(e){return rt(e)?e:e.contextElement}function bt(e){const t=vt(e);if(!ot(t))return Ie(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=gt(t);let a=(i?Pe(n.width):n.width)/r,s=(i?Pe(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const yt=Ie(0);function wt(e){const t=et(e);return ct()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:yt}function xt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=vt(e);let a=Ie(1);t&&(r?rt(r)&&(a=bt(r)):a=bt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==et(e))&&t}(i,n,r)?wt(i):Ie(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=et(i),t=r&&rt(r)?et(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=bt(n),t=n.getBoundingClientRect(),r=dt(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=i,n=et(n).frameElement}}return Ue({width:u,height:d,x:l,y:c})}function Et(e){return xt(tt(e)).left+ft(e).scrollLeft}function _t(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=et(e),r=tt(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=ct();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=tt(e),n=ft(e),r=e.ownerDocument.body,o=Re(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Re(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Et(e);const s=-n.scrollTop;return"rtl"===dt(r).direction&&(a+=Re(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(tt(e));else if(rt(t))r=function(e,t){const n=xt(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ot(e)?bt(e):Ie(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=wt(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Ue(r)}function Ct(e,t){const n=pt(e);return!(n===t||!rt(n)||ut(n))&&("fixed"===dt(n).position||Ct(n,t))}function St(e,t,n){const r=ot(t),o=tt(t),i="fixed"===n,a=xt(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Ie(0);if(r||!r&&!i)if(("body"!==Qe(t)||at(o))&&(s=ft(t)),r){const e=xt(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Et(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function kt(e,t){return ot(e)&&"fixed"!==dt(e).position?t?t(e):e.offsetParent:null}function Tt(e,t){const n=et(e);if(!ot(e))return n;let r=kt(e,t);for(;r&&st(r)&&"static"===dt(r).position;)r=kt(r,t);return r&&("html"===Qe(r)||"body"===Qe(r)&&"static"===dt(r).position&&!lt(r))?n:r||function(e){let t=pt(e);for(;ot(t)&&!ut(t);){if(lt(t))return t;t=pt(t)}return null}(e)||n}const Rt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=ot(n),i=tt(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=Ie(1);const l=Ie(0);if((o||!o&&"fixed"!==r)&&(("body"!==Qe(n)||at(i))&&(a=ft(n)),ot(n))){const e=xt(n);s=bt(n),l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:tt,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=ht(e,[],!1).filter((e=>rt(e)&&"body"!==Qe(e))),o=null;const i="fixed"===dt(e).position;let a=i?pt(e):e;for(;rt(a)&&!ut(a);){const t=dt(a),n=lt(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||at(a)&&!n&&Ct(e,a))?r=r.filter((e=>e!==a)):o=t,a=pt(a)}return t.set(e,r),r}(t,this._c):[].concat(n),a=[...i,r],s=a[0],l=a.reduce(((e,n)=>{const r=_t(t,n,o);return e.top=Re(r.top,e.top),e.right=Te(r.right,e.right),e.bottom=Te(r.bottom,e.bottom),e.left=Re(r.left,e.left),e}),_t(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Tt,getElementRects:async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||Tt,i=this.getDimensions;return{reference:St(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){return gt(e)},getScale:bt,isElement:rt,isRTL:function(e){return"rtl"===dt(e).direction}};function Pt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=vt(e),u=o||i?[...c?ht(c):[],...ht(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=tt(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Me(u)+"px "+-Me(o.clientWidth-(c+d))+"px "+-Me(o.clientHeight-(u+f))+"px "+-Me(c)+"px",threshold:Re(0,Te(1,l))||1};let m=!0;function h(e){const t=e[0].intersectionRatio;if(t!==l){if(!m)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}m=!1}try{r=new IntersectionObserver(h,{...p,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(h,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{m&&m.observe(t)}))),n()})),c&&!l&&m.observe(c),m.observe(t));let h=l?xt(e):null;return l&&function t(){const r=xt(e);!h||r.x===h.x&&r.y===h.y&&r.width===h.width&&r.height===h.height||n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),m&&m.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const Mt=(e,t,n)=>{const r=new Map,o={platform:Rt,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ge(c,r,l),f=r,p={},m=0;for(let n=0;n<s.length;n++){const{name:i,fn:h}=s[n],{x:g,y:v,data:b,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[i]:{...p[i],...b}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=Ge(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var It=window.ReactDOM,Nt=o.n(It),Ot="undefined"!=typeof document?v.useLayoutEffect:v.useEffect;function Dt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!Dt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Dt(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function At(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const[i,a]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[s,l]=v.useState(t);Dt(null==s?void 0:s.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})),null==t?void 0:t.map((e=>{let{name:t,options:n}=e;return{name:t,options:n}})))||l(t);const c=v.useRef(null),u=v.useRef(null),d=v.useRef(null),f=v.useRef(i),p=function(e){const t=v.useRef(e);return Ot((()=>{t.current=e})),t}(o),m=v.useCallback((()=>{c.current&&u.current&&Mt(c.current,u.current,{middleware:s,placement:n,strategy:r}).then((e=>{h.current&&!Dt(f.current,e)&&(f.current=e,It.flushSync((()=>{a(e)})))}))}),[s,n,r]);Ot((()=>{h.current&&m()}),[m]);const h=v.useRef(!1);Ot((()=>(h.current=!0,()=>{h.current=!1})),[]);const g=v.useCallback((()=>{if("function"==typeof d.current&&(d.current(),d.current=null),c.current&&u.current)if(p.current){const e=p.current(c.current,u.current,m);d.current=e}else m()}),[m,p]),b=v.useCallback((e=>{c.current=e,g()}),[g]),y=v.useCallback((e=>{u.current=e,g()}),[g]),w=v.useMemo((()=>({reference:c,floating:u})),[]);return v.useMemo((()=>({...i,update:m,refs:w,reference:b,floating:y})),[i,m,w,b,y])}const Lt=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?qe({element:t.current,padding:n}).fn(e):{}:t?qe({element:t,padding:n}).fn(e):{};var r}}},zt="undefined"!=typeof document,Ft={current:null},Bt={current:!1};function jt(){if(Bt.current=!0,zt)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ft.current=e.matches;e.addListener(t),t()}else Ft.current=!1}const Vt=(0,v.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ht=(0,v.createContext)({}),$t=(0,v.createContext)(null),Wt=zt?v.useLayoutEffect:v.useEffect,Ut=(0,v.createContext)({strict:!1});function Gt(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Kt(e){return"string"==typeof e||Array.isArray(e)}function qt(e){return"object"==typeof e&&"function"==typeof e.start}const Yt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Xt=["initial",...Yt];function Zt(e){return qt(e.animate)||Xt.some((t=>Kt(e[t])))}function Jt(e){return Boolean(Zt(e)||e.variants)}function Qt(e){const{initial:t,animate:n}=function(e,t){if(Zt(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Kt(t)?t:void 0,animate:Kt(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,v.useContext)(Ht));return(0,v.useMemo)((()=>({initial:t,animate:n})),[en(t),en(n)])}function en(e){return Array.isArray(e)?e.join(" "):e}const tn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nn={};for(const e in tn)nn[e]={isEnabled:t=>tn[e].some((e=>!!t[e]))};function rn(e){const t=(0,v.useRef)(null);return null===t.current&&(t.current=e()),t.current}const on={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let an=1;const sn=(0,v.createContext)({}),ln=(0,v.createContext)({}),cn=Symbol.for("motionComponentSymbol");function un({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)nn[t]={...nn[t],...e[t]}}(e);const i=(0,v.forwardRef)((function(i,a){let s;const l={...(0,v.useContext)(Vt),...i,layoutId:dn(i)},{isStatic:c}=l,u=Qt(i),d=c?void 0:rn((()=>{if(on.hasEverUpdated)return an++})),f=r(i,c);if(!c&&zt){u.visualElement=function(e,t,n,r){const{visualElement:o}=(0,v.useContext)(Ht),i=(0,v.useContext)(Ut),a=(0,v.useContext)($t),s=(0,v.useContext)(Vt).reducedMotion,l=(0,v.useRef)();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));const c=l.current;return(0,v.useInsertionEffect)((()=>{c&&c.update(n,a)})),Wt((()=>{c&&c.render()})),(0,v.useEffect)((()=>{c&&c.updateFeatures()})),(window.HandoffAppearAnimations?Wt:v.useEffect)((()=>{c&&c.animationState&&c.animationState.animateChanges()})),c}(o,f,l,t);const n=(0,v.useContext)(ln),r=(0,v.useContext)(Ut).strict;u.visualElement&&(s=u.visualElement.loadFeatures(l,r,e,d,n))}return v.createElement(Ht.Provider,{value:u},s&&u.visualElement?v.createElement(s,{visualElement:u.visualElement,...l}):null,n(o,i,d,function(e,t,n){return(0,v.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Gt(n)&&(n.current=r))}),[t])}(f,u.visualElement,a),f,c,u.visualElement))}));return i[cn]=o,i}function dn({layoutId:e}){const t=(0,v.useContext)(sn).id;return t&&void 0!==e?t+"-"+e:e}function fn(e){function t(t,n={}){return un(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const pn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function mn(e){return"string"==typeof e&&!e.includes("-")&&!!(pn.indexOf(e)>-1||/[A-Z]/.test(e))}const hn={};const gn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vn=new Set(gn);function bn(e,{layout:t,layoutId:n}){return vn.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!hn[e]||"opacity"===e)}const yn=e=>Boolean(e&&e.getVelocity),wn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xn=gn.length;const En=e=>t=>"string"==typeof t&&t.startsWith(e),_n=En("--"),Cn=En("var(--"),Sn=(e,t)=>t&&"number"==typeof e?t.transform(e):e,kn=(e,t,n)=>Math.min(Math.max(n,e),t),Tn={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Rn={...Tn,transform:e=>kn(0,1,e)},Pn={...Tn,default:1},Mn=e=>Math.round(1e5*e)/1e5,In=/(-)?([\d]*\.?[\d])+/g,Nn=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,On=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Dn(e){return"string"==typeof e}const An=e=>({test:t=>Dn(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ln=An("deg"),zn=An("%"),Fn=An("px"),Bn=An("vh"),jn=An("vw"),Vn={...zn,parse:e=>zn.parse(e)/100,transform:e=>zn.transform(100*e)},Hn={...Tn,transform:Math.round},$n={borderWidth:Fn,borderTopWidth:Fn,borderRightWidth:Fn,borderBottomWidth:Fn,borderLeftWidth:Fn,borderRadius:Fn,radius:Fn,borderTopLeftRadius:Fn,borderTopRightRadius:Fn,borderBottomRightRadius:Fn,borderBottomLeftRadius:Fn,width:Fn,maxWidth:Fn,height:Fn,maxHeight:Fn,size:Fn,top:Fn,right:Fn,bottom:Fn,left:Fn,padding:Fn,paddingTop:Fn,paddingRight:Fn,paddingBottom:Fn,paddingLeft:Fn,margin:Fn,marginTop:Fn,marginRight:Fn,marginBottom:Fn,marginLeft:Fn,rotate:Ln,rotateX:Ln,rotateY:Ln,rotateZ:Ln,scale:Pn,scaleX:Pn,scaleY:Pn,scaleZ:Pn,skew:Ln,skewX:Ln,skewY:Ln,distance:Fn,translateX:Fn,translateY:Fn,translateZ:Fn,x:Fn,y:Fn,z:Fn,perspective:Fn,transformPerspective:Fn,opacity:Rn,originX:Vn,originY:Vn,originZ:Fn,zIndex:Hn,fillOpacity:Rn,strokeOpacity:Rn,numOctaves:Hn};function Wn(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(_n(e)){i[e]=n;continue}const r=$n[e],d=Sn(n,r);if(vn.has(e)){if(l=!0,a[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<xn;t++){const n=gn[t];void 0!==e[n]&&(i+=`${wn[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}const Un=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Gn(e,t,n){for(const r in t)yn(t[r])||bn(r,n)||(e[r]=t[r])}function Kn(e,t,n){const r={};return Gn(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,v.useMemo)((()=>{const r=Un();return Wn(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function qn(e,t,n){const r={},o=Kn(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Yn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Xn(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Yn.has(e)}let Zn=e=>!Xn(e);try{(Jn=require("@emotion/is-prop-valid").default)&&(Zn=e=>e.startsWith("on")?!Xn(e):Jn(e))}catch(Nz){}var Jn;function Qn(e,t,n){return"string"==typeof e?e:Fn.transform(t+n*e)}const er={offset:"stroke-dashoffset",array:"stroke-dasharray"},tr={offset:"strokeDashoffset",array:"strokeDasharray"};function nr(e,{attrX:t,attrY:n,originX:r,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...l},c,u,d){if(Wn(e,l,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==r||void 0!==o||p.transform)&&(p.transformOrigin=function(e,t,n){return`${Qn(t,e.x,e.width)} ${Qn(n,e.y,e.height)}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(f.x=t),void 0!==n&&(f.y=n),void 0!==i&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?er:tr;e[i.offset]=Fn.transform(-r);const a=Fn.transform(t),s=Fn.transform(n);e[i.array]=`${a} ${s}`}(f,i,a,s,!1)}const rr=()=>({...Un(),attrs:{}}),or=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ir(e,t,n,r){const o=(0,v.useMemo)((()=>{const n=rr();return nr(n,t,{enableHardwareAcceleration:!1},or(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};Gn(t,e.style,e),o.style={...t,...o.style}}return o}function ar(e=!1){return(t,n,r,o,{latestValues:i},a)=>{const s=(mn(t)?ir:qn)(n,i,a,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(Zn(o)||!0===n&&Xn(o)||!t&&!Xn(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...l,...s,ref:o},{children:u}=n,d=(0,v.useMemo)((()=>yn(u)?u.get():u),[u]);return r&&(c["data-projection-id"]=r),(0,v.createElement)(t,{...c,children:d})}}const sr=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function lr(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const cr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ur(e,t,n,r){lr(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(cr.has(n)?n:sr(n),t.attrs[n])}function dr(e,t){const{style:n}=e,r={};for(const o in n)(yn(n[o])||t.style&&yn(t.style[o])||bn(o,e))&&(r[o]=n[o]);return r}function fr(e,t){const n=dr(e,t);for(const r in e)if(yn(e[r])||yn(t[r])){n["x"===r||"y"===r?"attr"+r.toUpperCase():r]=e[r]}return n}function pr(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}const mr=e=>Array.isArray(e),hr=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),gr=e=>mr(e)?e[e.length-1]||0:e;function vr(e){const t=yn(e)?e.get():e;return hr(t)?t.toValue():t}const br=e=>(t,n)=>{const r=(0,v.useContext)(Ht),o=(0,v.useContext)($t),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:yr(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(e,t,r,o);return n?i():rn(i)};function yr(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=vr(i[e]);let{initial:a,animate:s}=e;const l=Zt(e),c=Jt(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!qt(d)){(Array.isArray(d)?d:[d]).forEach((t=>{const n=pr(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];if(Array.isArray(t)){t=t[u?t.length-1:0]}null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}))}return o}const wr={useVisualState:br({scrapeMotionValuesFromProps:fr,createRenderState:rr,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}nr(n,r,{enableHardwareAcceleration:!1},or(t.tagName),e.transformTemplate),ur(t,n)}})},xr={useVisualState:br({scrapeMotionValuesFromProps:dr,createRenderState:Un})};function Er(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const _r=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Cr(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Sr=e=>t=>_r(t)&&e(t,Cr(t));function kr(e,t,n,r){return Er(e,t,Sr(n),r)}const Tr=(e,t)=>n=>t(e(n)),Rr=(...e)=>e.reduce(Tr);function Pr(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Mr=Pr("dragHorizontal"),Ir=Pr("dragVertical");function Nr(e){let t=!1;if("y"===e)t=Ir();else if("x"===e)t=Mr();else{const e=Mr(),n=Ir();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Or(){const e=Nr(!0);return!e||(e(),!1)}class Dr{constructor(e){this.isMounted=!1,this.node=e}update(){}}const Ar={delta:0,timestamp:0,isProcessing:!1};let Lr=!0,zr=!1;const Fr=["read","update","preRender","render","postRender"],Br=Fr.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,c=l?t:n;return i&&a.add(e),-1===c.indexOf(e)&&(c.push(e),l&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}o=!1,i&&(i=!1,s.process(l))}}};return s}((()=>zr=!0)),e)),{}),jr=Fr.reduce(((e,t)=>{const n=Br[t];return e[t]=(e,t=!1,r=!1)=>(zr||Ur(),n.schedule(e,t,r)),e}),{}),Vr=Fr.reduce(((e,t)=>(e[t]=Br[t].cancel,e)),{}),Hr=Fr.reduce(((e,t)=>(e[t]=()=>Br[t].process(Ar),e)),{}),$r=e=>Br[e].process(Ar),Wr=e=>{zr=!1,Ar.delta=Lr?1e3/60:Math.max(Math.min(e-Ar.timestamp,40),1),Ar.timestamp=e,Ar.isProcessing=!0,Fr.forEach($r),Ar.isProcessing=!1,zr&&(Lr=!1,requestAnimationFrame(Wr))},Ur=()=>{zr=!0,Lr=!0,Ar.isProcessing||requestAnimationFrame(Wr)};function Gr(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return kr(e.current,n,((n,o)=>{if("touch"===n.type||Or())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&jr.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const Kr=(e,t)=>!!t&&(e===t||Kr(e,t.parentElement)),qr=e=>e;function Yr(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Cr(n))}const Xr=new WeakMap,Zr=new WeakMap,Jr=e=>{const t=Xr.get(e.target);t&&t(e)},Qr=e=>{e.forEach(Jr)};function eo(e,t,n){const r=function({root:e,...t}){const n=e||document;Zr.has(n)||Zr.set(n,{});const r=Zr.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Qr,{root:e,...t})),r[o]}(t);return Xr.set(e,n),r.observe(e),()=>{Xr.delete(e),r.unobserve(e)}}const to={some:0,all:1};const no={inView:{Feature:class extends Dr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:to[r]};return eo(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Dr{constructor(){super(...arguments),this.removeStartListeners=qr,this.removeEndListeners=qr,this.removeAccessibleListeners=qr,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=kr(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();jr.update((()=>{Kr(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=kr(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Rr(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Er(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=Er(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Yr("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&jr.update((()=>n(e,t)))}))})),Yr("down",((e,t)=>{this.startPress(e,t)}))})),t=Er(this.node.current,"blur",(()=>{this.isPressing&&Yr("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Rr(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&jr.update((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Or()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&jr.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=kr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Er(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Rr(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Dr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Rr(Er(this.node.current,"focus",(()=>this.onFocus())),Er(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Dr{mount(){this.unmount=Rr(Gr(this.node,!0),Gr(this.node,!1))}unmount(){}}}};function ro(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function oo(e,t,n){const r=e.getProps();return pr(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const io="data-"+sr("framerAppearId");let ao=qr,so=qr;const lo=e=>1e3*e,co=e=>e/1e3,uo=!1,fo=e=>Array.isArray(e)&&"number"==typeof e[0];function po(e){return Boolean(!e||"string"==typeof e&&ho[e]||fo(e)||Array.isArray(e)&&e.every(po))}const mo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ho={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mo([0,.65,.55,1]),circOut:mo([.55,0,1,.45]),backIn:mo([.31,.01,.66,-.59]),backOut:mo([.33,1.53,.69,.99])};function go(e){if(e)return fo(e)?mo(e):Array.isArray(e)?e.map(go):ho[e]}const vo={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},bo={},yo={};for(const e in vo)yo[e]=()=>(void 0===bo[e]&&(bo[e]=vo[e]()),bo[e]);const wo=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,xo=1e-7,Eo=12;function _o(e,t,n,r){if(e===t&&n===r)return qr;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=wo(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>xo&&++s<Eo);return a}(t,0,1,e,n);return e=>0===e||1===e?e:wo(o(e),t,r)}const Co=_o(.42,0,1,1),So=_o(0,0,.58,1),ko=_o(.42,0,.58,1),To=e=>Array.isArray(e)&&"number"!=typeof e[0],Ro=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Po=e=>t=>1-e(1-t),Mo=e=>1-Math.sin(Math.acos(e)),Io=Po(Mo),No=Ro(Io),Oo=_o(.33,1.53,.69,.99),Do=Po(Oo),Ao=Ro(Do),Lo={linear:qr,easeIn:Co,easeInOut:ko,easeOut:So,circIn:Mo,circInOut:No,circOut:Io,backIn:Do,backInOut:Ao,backOut:Oo,anticipate:e=>(e*=2)<1?.5*Do(e):.5*(2-Math.pow(2,-10*(e-1)))},zo=e=>{if(Array.isArray(e)){so(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return _o(t,n,r,o)}return"string"==typeof e?(so(void 0!==Lo[e],`Invalid easing type '${e}'`),Lo[e]):e},Fo=(e,t)=>n=>Boolean(Dn(n)&&On.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Bo=(e,t,n)=>r=>{if(!Dn(r))return r;const[o,i,a,s]=r.match(In);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},jo={...Tn,transform:e=>Math.round((e=>kn(0,255,e))(e))},Vo={test:Fo("rgb","red"),parse:Bo("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+jo.transform(e)+", "+jo.transform(t)+", "+jo.transform(n)+", "+Mn(Rn.transform(r))+")"};const Ho={test:Fo("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Vo.transform},$o={test:Fo("hsl","hue"),parse:Bo("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+zn.transform(Mn(t))+", "+zn.transform(Mn(n))+", "+Mn(Rn.transform(r))+")"},Wo={test:e=>Vo.test(e)||Ho.test(e)||$o.test(e),parse:e=>Vo.test(e)?Vo.parse(e):$o.test(e)?$o.parse(e):Ho.parse(e),transform:e=>Dn(e)?e:e.hasOwnProperty("red")?Vo.transform(e):$o.transform(e)},Uo=(e,t,n)=>-n*e+n*t+e;function Go(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Ko=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},qo=[Ho,Vo,$o];function Yo(e){const t=(e=>qo.find((t=>t.test(e))))(e);so(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===$o&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Go(s,r,e+1/3),i=Go(s,r,e),a=Go(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(n)),n}const Xo=(e,t)=>{const n=Yo(e),r=Yo(t),o={...n};return e=>(o.red=Ko(n.red,r.red,e),o.green=Ko(n.green,r.green,e),o.blue=Ko(n.blue,r.blue,e),o.alpha=Uo(n.alpha,r.alpha,e),Vo.transform(o))},Zo="${c}",Jo="${n}";function Qo(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0,r=0;const o=e.match(Nn);o&&(n=o.length,e=e.replace(Nn,Zo),t.push(...o.map(Wo.parse)));const i=e.match(In);return i&&(r=i.length,e=e.replace(In,Jo),t.push(...i.map(Tn.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function ei(e){return Qo(e).values}function ti(e){const{values:t,numColors:n,tokenised:r}=Qo(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?Zo:Jo,r<n?Wo.transform(e[r]):Mn(e[r]));return t}}const ni=e=>"number"==typeof e?0:e;const ri={test:function(e){var t,n;return isNaN(e)&&Dn(e)&&((null===(t=e.match(In))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Nn))||void 0===n?void 0:n.length)||0)>0},parse:ei,createTransformer:ti,getAnimatableNone:function(e){const t=ei(e);return ti(e)(t.map(ni))}};function oi(e,t){return"number"==typeof e?n=>Uo(e,t,n):Wo.test(e)?Xo(e,t):si(e,t)}const ii=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>oi(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},ai=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=oi(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},si=(e,t)=>{const n=ri.createTransformer(t),r=Qo(e),o=Qo(t);return r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Rr(ii(r.values,o.values),n):(ao(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},li=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ci=(e,t)=>n=>Uo(e,t,n);function ui(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?ci:"string"==typeof e?Wo.test(e)?Xo:si:Array.isArray(e)?ii:"object"==typeof e?ai:ci}(e[0]),i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||qr:t;i=Rr(e,i)}r.push(i)}return r}function di(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(so(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=ui(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=li(e[n],e[n+1],t);return a[n](r)};return n?t=>l(kn(e[0],e[i-1],t)):l}function fi(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=li(0,t,r);e.push(Uo(n,1,o))}}(t,e.length-1),t}function pi({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=To(r)?r.map(zo):zo(r),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:fi(t),e),s=di(a,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||ko)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}function mi(e,t){return t?e*(1e3/t):0}const hi=5;function gi(e,t,n){const r=Math.max(t-hi,0);return mi(n-e(r),t-r)}const vi=.001,bi=.01,yi=10,wi=.05,xi=1;function Ei({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;ao(e<=lo(yi),"Spring duration must be 10 seconds or less");let a=1-t;a=kn(wi,xi,a),e=kn(bi,yi,co(e)),a<1?(o=t=>{const r=t*a,o=r*e,i=r-n,s=Ci(t,a),l=Math.exp(-o);return vi-i/s*l},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Ci(Math.pow(t,2),a);return(-o(t)+vi>0?-1:1)*((i-s)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-vi,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<_i;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=lo(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const _i=12;function Ci(e,t){return e*Math.sqrt(1-t*t)}const Si=["duration","bounce"],ki=["stiffness","damping","mass"];function Ti(e,t){return t.some((t=>void 0!==e[t]))}function Ri({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ti(e,ki)&&Ti(e,Si)){const n=Ei(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=u?-co(u):0,m=l/(2*Math.sqrt(s*c)),h=i-o,g=co(Math.sqrt(s/c)),v=Math.abs(h)<5;let b;if(n||(n=v?.01:2),t||(t=v?.005:.5),m<1){const e=Ci(g,m);b=t=>{const n=Math.exp(-m*g*t);return i-n*((p+m*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===m)b=e=>i-Math.exp(-g*e)*(h+(p+g*h)*e);else{const e=g*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*g*t),r=Math.min(e*t,300);return i-n*((p+m*g*h)*Math.sinh(r)+e*h*Math.cosh(r))/e}}return{calculatedDuration:f&&d||null,next:e=>{const r=b(e);if(f)a.done=e>=d;else{let o=p;0!==e&&(o=m<1?gi(b,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Pi({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=n*t;const h=d+m,g=void 0===a?h:a(h);g!==h&&(m=g-d);const v=e=>-m*Math.exp(-e/r),b=e=>g+v(e),y=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=c,f.value=f.done?g:n};let w,x;const E=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(f.value)&&(w=e,x=Ri({keyframes:[f.value,p(f.value)],velocity:gi(b,e,f.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,y(e),E(e)),void 0!==w&&e>w?x.next(e-w):(!t&&y(e),f)}}}const Mi=e=>{const t=({timestamp:t})=>e(t);return{start:()=>jr.update(t,!0),stop:()=>Vr.update(t),now:()=>Ar.isProcessing?Ar.timestamp:performance.now()}},Ii=2e4;function Ni(e){let t=0;let n=e.next(t);for(;!n.done&&t<Ii;)t+=50,n=e.next(t);return t>=Ii?1/0:t}const Oi={decay:Pi,inertia:Pi,tween:pi,keyframes:pi,spring:Ri};function Di({autoplay:e=!0,delay:t=0,driver:n=Mi,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...f}){let p,m,h=1,g=!1;const v=()=>{p&&p(),m=new Promise((e=>{p=e}))};let b;v();const y=Oi[o]||pi;let w;y!==pi&&"number"!=typeof r[0]&&(w=di([0,100],r,{clamp:!1}),r=[0,100]);const x=y({...f,keyframes:r});let E;"mirror"===s&&(E=y({...f,keyframes:[...r].reverse(),velocity:-(f.velocity||0)}));let _="idle",C=null,S=null,k=null;null===x.calculatedDuration&&i&&(x.calculatedDuration=Ni(x));const{calculatedDuration:T}=x;let R=1/0,P=1/0;null!==T&&(R=T+a,P=R*(i+1)-a);let M=0;const I=e=>{if(null===S)return;h>0&&(S=Math.min(S,e)),M=null!==C?C:(e-S)*h;const n=M-t,o=n<0;M=Math.max(n,0),"finished"===_&&null===C&&(M=P);let l=M,c=x;if(i){const e=M/R;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===s?(n=1-n,a&&(n-=a/R)):"mirror"===s&&(c=E));let o=kn(0,1,n);M>P&&(o="reverse"===s&&r?1:0),l=o*R}const u=o?{done:!1,value:r[0]}:c.next(l);w&&(u.value=w(u.value));let{done:f}=u;o||null===T||(f=M>=P);const p=null===C&&("finished"===_||"running"===_&&f||h<0&&M<=0);return d&&d(u.value),p&&D(),u},N=()=>{b&&b.stop(),b=void 0},O=()=>{_="idle",N(),v(),S=k=null},D=()=>{_="finished",u&&u(),N(),v()},A=()=>{if(g)return;b||(b=n(I));const e=b.now();l&&l(),null!==C?S=e-C:S&&"finished"!==_||(S=e),k=S,C=null,_="running",b.start()};e&&A();const L={then(e,t){return m.then(e,t)},get time(){return co(M)},set time(e){e=lo(e),M=e,null===C&&b&&0!==h?S=b.now()-e/h:C=e},get duration(){const e=null===x.calculatedDuration?Ni(x):x.calculatedDuration;return co(e)},get speed(){return h},set speed(e){e!==h&&b&&(h=e,L.time=co(M))},get state(){return _},play:A,pause:()=>{_="paused",C=M},stop:()=>{g=!0,"idle"!==_&&(_="idle",c&&c(),O())},cancel:()=>{null!==k&&I(k),O()},complete:()=>{_="finished"},sample:e=>(S=0,I(e))};return L}const Ai=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Li(e,t,{onUpdate:n,onComplete:r,...o}){if(!(yo.waapi()&&Ai.has(t)&&!o.repeatDelay&&"mirror"!==o.repeatType&&0!==o.damping&&"inertia"!==o.type))return!1;let i,a,s=!1;const l=()=>{a=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:f}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!po(t.ease))(t,o)){const e=Di({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;f=void 0,c=n,u=r-10,d="linear"}const p=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=go(s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:f}),m=()=>p.cancel(),h=()=>{jr.update(m),i(),l()};return p.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),h()},{then(e,t){return a.then(e,t)},get time(){return co(p.currentTime||0)},set time(e){p.currentTime=lo(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return co(u)},play:()=>{s||(p.play(),Vr.update(m))},pause:()=>p.pause(),stop:()=>{if(s=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const n=Di({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}h()},complete:()=>p.finish(),cancel:h}}const zi={type:"spring",stiffness:500,damping:25,restSpeed:10},Fi={type:"keyframes",duration:.8},Bi={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ji=(e,{keyframes:t})=>t.length>2?Fi:vn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:zi:Bi,Vi=(e,t)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!ri.test(t)||t.startsWith("url("))),Hi=new Set(["brightness","contrast","saturate","opacity"]);function $i(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(In)||[];if(!r)return e;const o=n.replace(r,"");let i=Hi.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Wi=/([a-z-]*)\(.*?\)/g,Ui={...ri,getAnimatableNone:e=>{const t=e.match(Wi);return t?t.map($i).join(" "):e}},Gi={...$n,color:Wo,backgroundColor:Wo,outlineColor:Wo,fill:Wo,stroke:Wo,borderColor:Wo,borderTopColor:Wo,borderRightColor:Wo,borderBottomColor:Wo,borderLeftColor:Wo,filter:Ui,WebkitFilter:Ui},Ki=e=>Gi[e];function qi(e,t){let n=Ki(e);return n!==Ui&&(n=ri),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function Yi(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function Xi(e){return"number"==typeof e?0:qi("",e)}function Zi(e,t){return e[t]||e.default||e}const Ji=(e,t,n,r={})=>o=>{const i=Zi(r,e)||{},a=i.delay||r.delay||0;let{elapsed:s=0}=r;s-=lo(a);const l=function(e,t,n,r){const o=Vi(t,n);let i=void 0!==r.from?r.from:e.get();return"none"===i&&o&&"string"==typeof n?i=qi(t,n):Yi(i)&&"string"==typeof n?i=Xi(n):!Array.isArray(n)&&Yi(n)&&"string"==typeof i&&(n=Xi(i)),Array.isArray(n)?function(e,[...t]){for(let n=0;n<t.length;n++)null===t[n]&&(t[n]=0===n?e:t[n-1]);return t}(i,n):[i,n]}(t,e,n,i),c=l[0],u=l[l.length-1],d=Vi(e,c),f=Vi(e,u);ao(d===f,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-s,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(p={...p,...ji(e,p)}),p.duration&&(p.duration=lo(p.duration)),p.repeatDelay&&(p.repeatDelay=lo(p.repeatDelay)),!d||!f||uo||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:qr,pause:qr,stop:qr,then:e=>(e(),Promise.resolve()),cancel:qr,complete:qr});return t?Di({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=Li(t,e,p);if(n)return n}return Di(p)};function Qi(e){return Boolean(yn(e)&&e.add)}const ea=e=>/^\-?\d*\.?\d+$/.test(e),ta=e=>/^0[^.\s]+$/.test(e);function na(e,t){-1===e.indexOf(t)&&e.push(t)}function ra(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class oa{constructor(){this.subscriptions=[]}add(e){return na(this.subscriptions,e),()=>ra(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}class ia{constructor(e,t={}){var n;this.version="10.11.6",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=Ar;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,jr.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>jr.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new oa);const n=this.events[e].add(t);return"change"===e?()=>{n(),jr.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?mi(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function aa(e,t){return new ia(e,t)}const sa=e=>t=>t.test(e),la=[Tn,Fn,zn,Ln,jn,Bn,{test:e=>"auto"===e,parse:e=>e}],ca=e=>la.find(sa(e)),ua=[...la,Wo,ri],da=e=>ua.find(sa(e));function fa(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,aa(n))}function pa(e,t){const n=oo(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i){fa(e,t,gr(i[t]))}}function ma(e,t){if(!t)return;return(t[e]||t.default||t).from}function ha({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function ga(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in s){const r=e.getValue(t),o=s[t];if(!r||void 0===o||u&&ha(u,t))continue;const a={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[io];n&&(a.elapsed=window.HandoffAppearAnimations(n,t,r,jr))}r.start(Ji(t,r,o,e.shouldReduceMotion&&vn.has(t)?{type:!1}:a));const d=r.animation;Qi(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return a&&Promise.all(c).then((()=>{a&&pa(e,a)})),c}function va(e,t,n={}){const r=oo(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(ga(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(ba).forEach(((e,r)=>{e.notify("AnimationStart",t),a.push(va(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then((()=>t()))}return Promise.all([i(),a(n.delay)])}function ba(e,t){return e.sortNodePosition(t)}const ya=[...Yt].reverse(),wa=Yt.length;function xa(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>va(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=va(e,t,n);else{const o="function"==typeof t?oo(e,t,n.custom):t;r=Promise.all(ga(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}function Ea(e){let t=xa(e);const n={animate:Ca(!0),whileInView:Ca(),whileHover:Ca(),whileTap:Ca(),whileDrag:Ca(),whileFocus:Ca(),exit:Ca()};let r=!0;const o=(t,n)=>{const r=oo(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,a){const s=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},f=1/0;for(let t=0;t<wa;t++){const p=ya[t],m=n[p],h=void 0!==s[p]?s[p]:l[p],g=Kt(h),v=p===a?m.isActive:null;!1===v&&(f=t);let b=h===l[p]&&h!==s[p]&&g;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...d},!m.isActive&&null===v||!h&&!m.prevProp||qt(h)||"boolean"==typeof h)continue;const y=_a(m.prevProp,h);let w=y||p===a&&m.isActive&&!b&&g||t>f&&g;const x=Array.isArray(h)?h:[h];let E=x.reduce(o,{});!1===v&&(E={});const{prevResolvedValues:_={}}=m,C={..._,...E},S=e=>{w=!0,u.delete(e),m.needsAnimating[e]=!0};for(const e in C){const t=E[e],n=_[e];d.hasOwnProperty(e)||(t!==n?mr(t)&&mr(n)?!ro(t,n)||y?S(e):m.protectedKeys[e]=!0:void 0!==t?S(e):u.add(e):void 0!==t&&u.has(e)?S(e):m.protectedKeys[e]=!0)}m.prevProp=h,m.prevResolvedValues=E,m.isActive&&(d={...d,...E}),r&&e.blockInitialAnimation&&(w=!1),w&&!b&&c.push(...x.map((e=>({animation:e,options:{type:p,...i}}))))}if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let p=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const s=i(o,t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function _a(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!ro(t,e)}function Ca(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Sa=0;const ka={animation:{Feature:class extends Dr{constructor(e){super(e),e.animationState||(e.animationState=Ea(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),qt(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Dr{constructor(){super(...arguments),this.id=Sa++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Ta=(e,t)=>Math.abs(e-t);class Ra{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Ia(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ta(e.x,t.x),r=Ta(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Ar;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Pa(t,this.transformPagePoint),jr.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Ia("pointercancel"===e.type?this.lastMoveEventInfo:Pa(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!_r(e))return;this.handlers=t,this.transformPagePoint=n;const r=Pa(Cr(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=Ar;this.history=[{...o,timestamp:i}];const{onSessionStart:a}=t;a&&a(e,Ia(r,this.history)),this.removeListeners=Rr(kr(window,"pointermove",this.handlePointerMove),kr(window,"pointerup",this.handlePointerUp),kr(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Vr.update(this.updatePoint)}}function Pa(e,t){return t?{point:t(e.point)}:e}function Ma(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ia({point:e},t){return{point:e,delta:Ma(e,Oa(t)),offset:Ma(e,Na(t)),velocity:Da(t,.1)}}function Na(e){return e[0]}function Oa(e){return e[e.length-1]}function Da(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Oa(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>lo(t)));)n--;if(!r)return{x:0,y:0};const i=co(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Aa(e){return e.max-e.min}function La(e,t=0,n=.01){return Math.abs(e-t)<=n}function za(e,t,n,r=.5){e.origin=r,e.originPoint=Uo(t.min,t.max,e.origin),e.scale=Aa(n)/Aa(t),(La(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Uo(n.min,n.max,e.origin)-e.originPoint,(La(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Fa(e,t,n,r){za(e.x,t.x,n.x,r?r.originX:void 0),za(e.y,t.y,n.y,r?r.originY:void 0)}function Ba(e,t,n){e.min=n.min+t.min,e.max=e.min+Aa(t)}function ja(e,t,n){e.min=t.min-n.min,e.max=e.min+Aa(t)}function Va(e,t,n){ja(e.x,t.x,n.x),ja(e.y,t.y,n.y)}function Ha(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function $a(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Wa=.35;function Ua(e,t,n){return{min:Ga(e,t),max:Ga(e,n)}}function Ga(e,t){return"number"==typeof e?e:e[t]||0}const Ka=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),qa=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ya(e){return[e("x"),e("y")]}function Xa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Za(e){return void 0===e||1===e}function Ja({scale:e,scaleX:t,scaleY:n}){return!Za(e)||!Za(t)||!Za(n)}function Qa(e){return Ja(e)||es(e)||e.z||e.rotate||e.rotateX||e.rotateY}function es(e){return ts(e.x)||ts(e.y)}function ts(e){return e&&"0%"!==e}function ns(e,t,n){return n+t*(e-n)}function rs(e,t,n,r,o){return void 0!==o&&(e=ns(e,o,r)),ns(e,n,r)+t}function os(e,t=0,n=1,r,o){e.min=rs(e.min,t,n,r,o),e.max=rs(e.max,t,n,r,o)}function is(e,{x:t,y:n}){os(e.x,t.translate,t.scale,t.originPoint),os(e.y,n.translate,n.scale,n.originPoint)}function as(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ss(e,t){e.min=e.min+t,e.max=e.max+t}function ls(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=Uo(e.min,e.max,i);os(e,t[n],t[r],a,t.scale)}const cs=["x","scaleX","originX"],us=["y","scaleY","originY"];function ds(e,t){ls(e.x,t,cs),ls(e.y,t,us)}function fs(e,t){return Xa(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const ps=new WeakMap;class ms{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qa(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;this.panSession=new Ra(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Cr(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Nr(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ya((e=>{let t=this.getAxisMotionValue(e).get()||0;if(zn.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Aa(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),o&&jr.update((()=>o(e,t)));const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&jr.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!hs(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Uo(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Uo(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&Gt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Ha(e.x,n,o),y:Ha(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Wa){return!1===e?e=0:!0===e&&(e=Wa),{x:Ua(e,"left","right"),y:Ua(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ya((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Gt(e))return!1;const n=e.current;so(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=fs(e,n),{scroll:o}=t;return o&&(ss(r.x,o.offset.x),ss(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:$a(e.x,t.x),y:$a(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Xa(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=Ya((a=>{if(!hs(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(Ji(e,n,0,t))}stopAnimation(){Ya((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Ya((t=>{const{drag:n}=this.getProps();if(!hs(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Uo(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Gt(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ya((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Aa(e),o=Aa(t);return o>r?n=li(t.min,t.max-r,e.min):r>o&&(n=li(e.min,e.max-o,t.min)),kn(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ya((t=>{if(!hs(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Uo(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;ps.set(this.visualElement,this);const e=kr(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Gt(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=Er(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ya((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Wa,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function hs(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const gs=e=>(t,n)=>{e&&jr.update((()=>e(t,n)))};function vs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const bs={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Fn.test(e))return e;e=parseFloat(e)}return`${vs(e,t.target.x)}% ${vs(e,t.target.y)}%`}},ys=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;const ws=4;function xs(e,t,n=1){so(n<=ws,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=ys.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);return i?i.trim():Cn(o)?xs(o,t,n+1):o}const Es="_$css",_s={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=e.includes("var("),i=[];o&&(e=e.replace(ys,(e=>(i.push(e),Es))));const a=ri.parse(e);if(a.length>5)return r;const s=ri.createTransformer(e),l="number"!=typeof a[0]?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=u;const d=Uo(c,u,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let f=s(a);if(o){let e=0;f=f.replace(Es,(()=>{const t=i[e];return e++,t}))}return f}};class Cs extends v.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=ks,Object.assign(hn,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),on.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||jr.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Ss(e){const[t,n]=function(){const e=(0,v.useContext)($t);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,v.useId)();return(0,v.useEffect)((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=(0,v.useContext)(sn);return v.createElement(Cs,{...e,layoutGroup:r,switchLayoutGroup:(0,v.useContext)(ln),isPresent:t,safeToRemove:n})}const ks={borderRadius:{...bs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:bs,borderTopRightRadius:bs,borderBottomLeftRadius:bs,borderBottomRightRadius:bs,boxShadow:_s},Ts=["TopLeft","TopRight","BottomLeft","BottomRight"],Rs=Ts.length,Ps=e=>"string"==typeof e?parseFloat(e):e,Ms=e=>"number"==typeof e||Fn.test(e);function Is(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Ns=Ds(0,.5,Io),Os=Ds(.5,.95,qr);function Ds(e,t,n){return r=>r<e?0:r>t?1:n(li(e,t,r))}function As(e,t){e.min=t.min,e.max=t.max}function Ls(e,t){As(e.x,t.x),As(e.y,t.y)}function zs(e,t,n,r,o){return e=ns(e-=t,1/n,r),void 0!==o&&(e=ns(e,1/o,r)),e}function Fs(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){zn.test(t)&&(t=parseFloat(t),t=Uo(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=Uo(i.min,i.max,r);e===i&&(s-=t),e.min=zs(e.min,t,n,s,o),e.max=zs(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const Bs=["x","scaleX","originX"],js=["y","scaleY","originY"];function Vs(e,t,n,r){Fs(e.x,t,Bs,n?n.x:void 0,r?r.x:void 0),Fs(e.y,t,js,n?n.y:void 0,r?r.y:void 0)}function Hs(e){return 0===e.translate&&1===e.scale}function $s(e){return Hs(e.x)&&Hs(e.y)}function Ws(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Us(e){return Aa(e.x)/Aa(e.y)}class Gs{constructor(){this.members=[]}add(e){na(this.members,e),e.scheduleRender()}remove(e){if(ra(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Ks(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const qs=(e,t)=>e.depth-t.depth;class Ys{constructor(){this.children=[],this.isDirty=!1}add(e){na(this.children,e),this.isDirty=!0}remove(e){ra(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(qs),this.isDirty=!1,this.children.forEach(e)}}const Xs=["","X","Y","Z"];let Zs=0;const Js={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Qs({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e,n={},r=(null==t?void 0:t())){this.id=Zs++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Js.totalNodes=Js.resolvedTargetDeltas=Js.recalculatedProjection=0,this.nodes.forEach(nl),this.nodes.forEach(ll),this.nodes.forEach(cl),this.nodes.forEach(rl),e=Js,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ys)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new oa),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,t){this.potentialNodes.set(e,t)}mount(t,n=!1){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Vr.read(r),e(i-t))};return jr.read(r,!0),()=>Vr.read(r)}(r,250),on.hasAnimatedSinceResize&&(on.hasAnimatedSinceResize=!1,this.nodes.forEach(sl))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||hl,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Ws(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Zi(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||sl(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Vr.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ul),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(il);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(gl),this.potentialNodes.clear()),this.nodes.forEach(al),this.nodes.forEach(el),this.nodes.forEach(tl),this.clearAllSnapshots(),Hr.update(),Hr.preRender(),Hr.render())}clearAllSnapshots(){this.nodes.forEach(ol),this.sharedNodes.forEach(dl)}scheduleUpdateProjection(){jr.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){jr.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=qa(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!$s(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Qa(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),vl((r=n).x),vl(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return qa();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(ss(t.x,n.offset.x),ss(t.y,n.offset.y)),t}removeElementScroll(e){const t=qa();Ls(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Ls(t,e);const{scroll:n}=this.root;n&&(ss(t.x,-n.offset.x),ss(t.y,-n.offset.y))}ss(t.x,o.offset.x),ss(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=qa();Ls(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&ds(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Qa(r.latestValues)&&ds(n,r.latestValues)}return Qa(this.latestValues)&&ds(n,this.latestValues),n}removeTransform(e){const t=qa();Ls(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Qa(n.latestValues))continue;Ja(n.latestValues)&&n.updateSnapshot();const r=qa();Ls(r,n.measurePageBox()),Vs(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Qa(this.latestValues)&&Vs(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ar.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Ar.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qa(),this.relativeTargetOrigin=qa(),Va(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Ls(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=qa(),this.targetWithTransforms=qa()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Ba(a.x,s.x,l.x),Ba(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Ls(this.target,this.layout.layoutBox),is(this.target,this.targetDelta)):Ls(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qa(),this.relativeTargetOrigin=qa(),Va(this.relativeTargetOrigin,this.target,e.target),Ls(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Js.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ja(this.parent.latestValues)&&!es(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Ar.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Ls(this.layoutCorrected,this.layout.layoutBox),function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ds(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,is(e,a)),r&&Qa(i.latestValues)&&ds(e,i.latestValues))}t.x=as(t.x),t.y=as(t.y)}(this.layoutCorrected,this.treeScale,this.path,n);const{target:a}=t;if(!a)return;this.projectionDelta||(this.projectionDelta=Ka(),this.projectionDeltaWithTransform=Ka());const s=this.treeScale.x,l=this.treeScale.y,c=this.projectionTransform;Fa(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=Ks(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===l||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),Js.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=Ka();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=qa(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(ml));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;fl(i.x,e.x,n),fl(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Va(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){pl(e.x,t.x,n.x,r),pl(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&Ws(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=qa()),Ls(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Uo(0,void 0!==n.opacity?n.opacity:1,Ns(r)),e.opacityExit=Uo(void 0!==t.opacity?t.opacity:1,0,Os(r))):i&&(e.opacity=Uo(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Rs;o++){const i=`border${Ts[o]}Radius`;let a=Is(t,i),s=Is(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Ms(a)===Ms(s)?(e[i]=Math.max(Uo(Ps(a),Ps(s),r),0),(zn.test(s)||zn.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=Uo(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Vr.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jr.update((()=>{on.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=yn(e)?e:aa(e);return r.start(Ji("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&bl(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||qa();const t=Aa(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Aa(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Ls(t,n),ds(t,o),Fa(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Gs);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<Xs.length;t++){const o="rotate"+Xs[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=vr(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=vr(e.pointerEvents)||""),this.hasProjected&&!Qa(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Ks(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in hn){if(void 0===a[e])continue;const{correct:t,applyTo:n}=hn[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?vr(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(il),this.root.sharedNodes.clear()}}}function el(e){e.updateLayout()}function tl(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Ya((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=Aa(r);r.min=t[e].min,r.max=r.min+o})):bl(o,n.layoutBox,t)&&Ya((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=Aa(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)}));const a=Ka();Fa(a,t,n.layoutBox);const s=Ka();i?Fa(s,e.applyTransform(r,!0),n.measuredBox):Fa(s,t,n.layoutBox);const l=!$s(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a=qa();Va(a,n.layoutBox,o.layoutBox);const s=qa();Va(s,t,i.layoutBox),Ws(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function nl(e){Js.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rl(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ol(e){e.clearSnapshot()}function il(e){e.clearMeasurements()}function al(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function sl(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function ll(e){e.resolveTargetDelta()}function cl(e){e.calcProjection()}function ul(e){e.resetRotation()}function dl(e){e.removeLeadSnapshot()}function fl(e,t,n){e.translate=Uo(t.translate,0,n),e.scale=Uo(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pl(e,t,n,r){e.min=Uo(t.min,n.min,r),e.max=Uo(t.max,n.max,r)}function ml(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const hl={duration:.45,ease:[.4,0,.1,1]};function gl(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(Boolean(e.path[t].instance)){n=e.path[t];break}const r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function vl(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function bl(e,t,n){return"position"===e||"preserve-aspect"===e&&!La(Us(t),Us(n),.2)}const yl=Qs({attachResizeListener:(e,t)=>Er(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wl={current:void 0},xl=Qs({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wl.current){const e=new yl(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),wl.current=e}return wl.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),El={pan:{Feature:class extends Dr{constructor(){super(...arguments),this.removePointerDownListener=qr}onPointerDown(e){this.session=new Ra(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:gs(e),onStart:gs(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&jr.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=kr(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Dr{constructor(e){super(e),this.removeGroupControls=qr,this.removeListeners=qr,this.controls=new ms(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:xl,MeasureLayout:Ss}},_l=new Set(["width","height","top","left","right","bottom","x","y"]),Cl=e=>_l.has(e),Sl=e=>e===Tn||e===Fn,kl=(e,t)=>parseFloat(e.split(", ")[t]),Tl=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return kl(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?kl(t[1],e):0}},Rl=new Set(["x","y","z"]),Pl=gn.filter((e=>!Rl.has(e)));const Ml={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Tl(4,13),y:Tl(5,14)},Il=(e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Cl);let i=[],a=!1;const s=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=ca(c);const d=t[o];let f;if(mr(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=ca(c);for(let n=t;n<e&&null!==d[n];n++)f?so(ca(d[n])===f,"All keyframes must be of the same type"):(f=ca(d[n]),so(f===u||Sl(u)&&Sl(f),"Keyframes must be of the same dimension as the current value"))}else f=ca(d);if(u!==f)if(Sl(u)&&Sl(f)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&f===Fn&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==f?void 0:f.transform)&&(0===c||0===d)?0===c?l.set(f.transform(c)):t[o]=u.transform(d):(a||(i=function(e){const t=[];return Pl.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),s.length){const n=s.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{s[e]=Ml[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(s[n]),e[n]=Ml[n](l,i)})),e})(t,e,s);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),zt&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}};function Nl(e,t,n,r){return(e=>Object.keys(e).some(Cl))(t)?Il(e,t,n,r):{target:t,transitionEnd:r}}const Ol=(e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!Cn(t))return;const n=xs(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!Cn(o))continue;const i=xs(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Nl(e,t=o.target,n,r=o.transitionEnd)};const Dl=new WeakMap,Al=Object.keys(nn),Ll=Al.length,zl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Fl=Xt.length;class Bl{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>jr.render(this.render,!1,!0);const{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=s,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Zt(t),this.isVariantNode=Jt(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==a[e]&&yn(t)&&(t.set(a[e],!1),Qi(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Dl.set(e,this),this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Bt.current||jt(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Ft.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Dl.delete(this.current),this.projection&&this.projection.unmount(),Vr.update(this.notifyUpdate),Vr.render(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=vn.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&jr.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o,i){let a,s;for(let e=0;e<Ll;e++){const n=Al[e],{isEnabled:r,Feature:o,ProjectionNode:i,MeasureLayout:l}=nn[n];i&&(a=i),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(s=l))}if(!this.projection&&a){this.projection=new a(o,this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&Gt(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:c})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update(this.props,this.prevProps):(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qa()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<zl.length;t++){const n=zl[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(yn(i))e.addValue(o,i),Qi(r)&&r.add(o);else if(yn(a))e.addValue(o,aa(i,{owner:e})),Qi(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,aa(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Fl;e++){const n=Xt[e],r=this.props[n];(Kt(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=aa(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=pr(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||yn(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new oa),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class jl extends Bl{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=ma(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),a=i.length;if(a)for(let s=0;s<a;s++){const a=i[s],l=t[a];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[a])&&void 0!==r?r:e.readValue(a))&&void 0!==o?o:t[a]),null!=c&&("string"==typeof c&&(ea(c)||ta(c))?c=parseFloat(c):!da(c)&&ri.test(l)&&(c=qi(a,l)),e.addValue(a,aa(c,{owner:e})),void 0===n[a]&&(n[a]=c),null!==c&&e.setBaseTarget(a,c))}}(this,n,i);const e=Ol(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class Vl extends jl{readValueFromInstance(e,t){if(vn.has(t)){const e=Ki(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(_n(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return fs(e,t)}build(e,t,n,r){Wn(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return dr(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;yn(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){lr(e,t,n,r)}}class Hl extends jl{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(vn.has(t)){const e=Ki(t);return e&&e.default||0}return t=cr.has(t)?t:sr(t),e.getAttribute(t)}measureInstanceViewportBox(){return qa()}scrapeMotionValuesFromProps(e,t){return fr(e,t)}build(e,t,n,r){nr(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){ur(e,t,0,r)}mount(e){this.isSVGTag=or(e.tagName),super.mount(e)}}const $l=(e,t)=>mn(e)?new Hl(t,{enableHardwareAcceleration:!1}):new Vl(t,{enableHardwareAcceleration:!0}),Wl={...ka,...no,...El,...{layout:{ProjectionNode:xl,MeasureLayout:Ss}}},Ul=fn(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...mn(e)?wr:xr,preloadedFeatures:n,useRender:ar(t),createVisualElement:r,Component:e}}(e,t,Wl,$l)));var Gl=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),Kl=window.wp.deprecated,ql=o.n(Kl),Yl=window.wp.dom;var Xl=function({icon:e,className:t,size:n=20,style:r={},...o}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" "),s={...20!=n?{fontSize:`${n}px`,width:`${n}px`,height:`${n}px`}:{},...r};return(0,a.createElement)("span",{className:i,style:s,...o})};var Zl=function({icon:e=null,size:t=("string"==typeof e?20:24),...n}){if("string"==typeof e)return(0,a.createElement)(Xl,{icon:e,size:t,...n});if((0,a.isValidElement)(e)&&Xl===e.type)return(0,a.cloneElement)(e,{...n});if("function"==typeof e)return(0,a.createElement)(e,{size:t,...n});if(e&&("svg"===e.type||e.type===r.SVG)){const o={...e.props,width:t,height:t,...n};return(0,a.createElement)(r.SVG,{...o})}return(0,a.isValidElement)(e)?(0,a.cloneElement)(e,{size:t,...n}):e},Jl=(window.wp.warning,o(1919)),Ql=o.n(Jl),ec=o(5619),tc=o.n(ec);
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
-function Zl(e){return"[object Object]"===Object.prototype.toString.call(e)}function Jl(e){var t,n;return!1!==Zl(e)&&(void 0===(t=e.constructor)||!1!==Zl(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}var Ql=function(e,t){const n=(0,a.useRef)(!1);(0,a.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)};const ec=(0,a.createContext)({}),tc=()=>(0,a.useContext)(ec);const nc=(0,a.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=tc(),n=(0,a.useRef)(e);return Ql((()=>{Xl()(n.current,e)&&n.current!==e&&"undefined"!=typeof process&&process.env}),[e]),(0,a.useMemo)((()=>ql()(null!=t?t:{},null!=e?e:{},{isMergeableObject:Jl})),[t,e])}({value:t});return(0,a.createElement)(ec.Provider,{value:n},e)})),rc="data-wp-component",oc="data-wp-c16t",ic="__contextSystemKey__";var ac=function(){return ac=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ac.apply(this,arguments)};function sc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function lc(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;function cc(e){return e.toLowerCase()}var uc=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],dc=/[^A-Z0-9]+/gi;function fc(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function pc(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?uc:n,o=t.stripRegexp,i=void 0===o?dc:o,a=t.transform,s=void 0===a?cc:a,l=t.delimiter,c=void 0===l?" ":l,u=fc(fc(e,r,"$1\0$2"),i,"\0"),d=0,f=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(f-1);)f--;return u.slice(d,f).split("\0").map(s).join(c)}(e,ac({delimiter:"."},t))}function mc(e,t){return void 0===t&&(t={}),pc(e,ac({delimiter:"-"},t))}function hc(e,t){var n,r,o=0;function i(){var i,a,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a<l;a++)if(s.args[a]!==arguments[a]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return s={args:i,val:e.apply(null,i)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}const gc=hc((function(e){return`components-${mc(e)}`}));var vc=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),bc=Math.abs,yc=String.fromCharCode,wc=Object.assign;function xc(e){return e.trim()}function Ec(e,t,n){return e.replace(t,n)}function _c(e,t){return e.indexOf(t)}function Cc(e,t){return 0|e.charCodeAt(t)}function Sc(e,t,n){return e.slice(t,n)}function kc(e){return e.length}function Tc(e){return e.length}function Rc(e,t){return t.push(e),e}var Pc=1,Mc=1,Ic=0,Nc=0,Oc=0,Dc="";function Ac(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Pc,column:Mc,length:a,return:""}}function Lc(e,t){return wc(Ac("",null,null,"",null,null,0),e,{length:-e.length},t)}function zc(){return Oc=Nc>0?Cc(Dc,--Nc):0,Mc--,10===Oc&&(Mc=1,Pc--),Oc}function Fc(){return Oc=Nc<Ic?Cc(Dc,Nc++):0,Mc++,10===Oc&&(Mc=1,Pc++),Oc}function Bc(){return Cc(Dc,Nc)}function jc(){return Nc}function Vc(e,t){return Sc(Dc,e,t)}function Hc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $c(e){return Pc=Mc=1,Ic=kc(Dc=e),Nc=0,[]}function Wc(e){return Dc="",e}function Uc(e){return xc(Vc(Nc-1,qc(91===e?e+2:40===e?e+1:e)))}function Gc(e){for(;(Oc=Bc())&&Oc<33;)Fc();return Hc(e)>2||Hc(Oc)>3?"":" "}function Kc(e,t){for(;--t&&Fc()&&!(Oc<48||Oc>102||Oc>57&&Oc<65||Oc>70&&Oc<97););return Vc(e,jc()+(t<6&&32==Bc()&&32==Fc()))}function qc(e){for(;Fc();)switch(Oc){case e:return Nc;case 34:case 39:34!==e&&39!==e&&qc(Oc);break;case 40:41===e&&qc(e);break;case 92:Fc()}return Nc}function Yc(e,t){for(;Fc()&&e+Oc!==57&&(e+Oc!==84||47!==Bc()););return"/*"+Vc(t,Nc-1)+"*"+yc(47===e?e:Fc())}function Xc(e){for(;!Hc(Bc());)Fc();return Vc(e,Nc)}var Zc="-ms-",Jc="-moz-",Qc="-webkit-",eu="comm",tu="rule",nu="decl",ru="@keyframes";function ou(e,t){for(var n="",r=Tc(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function iu(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case nu:return e.return=e.return||e.value;case eu:return"";case ru:return e.return=e.value+"{"+ou(e.children,r)+"}";case tu:e.value=e.props.join(",")}return kc(n=ou(e.children,r))?e.return=e.value+"{"+n+"}":""}function au(e){return Wc(su("",null,null,null,[""],e=$c(e),0,[0],e))}function su(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,m=0,h=1,g=1,v=1,b=0,y="",w=o,x=i,E=r,_=y;g;)switch(m=b,b=Fc()){case 40:if(108!=m&&58==Cc(_,d-1)){-1!=_c(_+=Ec(Uc(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=Uc(b);break;case 9:case 10:case 13:case 32:_+=Gc(m);break;case 92:_+=Kc(jc()-1,7);continue;case 47:switch(Bc()){case 42:case 47:Rc(cu(Yc(Fc(),jc()),t,n),l);break;default:_+="/"}break;case 123*h:s[c++]=kc(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(_=Ec(_,/\f/g,"")),p>0&&kc(_)-d&&Rc(p>32?uu(_+";",r,n,d-1):uu(Ec(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Rc(E=lu(_,t,n,c,u,o,s,y,w=[],x=[],d),i),123===b)if(0===u)su(_,t,E,E,w,i,d,s,x);else switch(99===f&&110===Cc(_,3)?100:f){case 100:case 108:case 109:case 115:su(e,E,E,r&&Rc(lu(e,E,E,0,0,o,s,y,o,w=[],d),x),o,x,d,s,r?w:x);break;default:su(_,E,E,E,[""],x,0,s,x)}}c=u=p=0,h=v=1,y=_="",d=a;break;case 58:d=1+kc(_),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==zc())continue;switch(_+=yc(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(kc(_)-1)*v,v=1;break;case 64:45===Bc()&&(_+=Uc(Fc())),f=Bc(),u=d=kc(y=_+=Xc(jc())),b++;break;case 45:45===m&&2==kc(_)&&(h=0)}}return i}function lu(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=Tc(f),m=0,h=0,g=0;m<r;++m)for(var v=0,b=Sc(e,d+1,d=bc(h=a[m])),y=e;v<p;++v)(y=xc(h>0?f[v]+" "+b:Ec(b,/&\f/g,f[v])))&&(l[g++]=y);return Ac(e,t,n,0===o?tu:s,l,c,u)}function cu(e,t,n){return Ac(e,t,n,eu,yc(Oc),Sc(e,2,-2),0)}function uu(e,t,n,r){return Ac(e,t,n,nu,Sc(e,0,r),Sc(e,r+1,-1),r)}var du=function(e,t,n){for(var r=0,o=0;r=o,o=Bc(),38===r&&12===o&&(t[n]=1),!Hc(o);)Fc();return Vc(e,Nc)},fu=function(e,t){return Wc(function(e,t){var n=-1,r=44;do{switch(Hc(r)){case 0:38===r&&12===Bc()&&(t[n]=1),e[n]+=du(Nc-1,t,n);break;case 2:e[n]+=Uc(r);break;case 4:if(44===r){e[++n]=58===Bc()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=yc(r)}}while(r=Fc());return e}($c(e),t))},pu=new WeakMap,mu=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||pu.get(n))&&!r){pu.set(e,!0);for(var o=[],i=fu(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},hu=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function gu(e,t){switch(function(e,t){return 45^Cc(e,0)?(((t<<2^Cc(e,0))<<2^Cc(e,1))<<2^Cc(e,2))<<2^Cc(e,3):0}(e,t)){case 5103:return Qc+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Qc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Qc+e+Jc+e+Zc+e+e;case 6828:case 4268:return Qc+e+Zc+e+e;case 6165:return Qc+e+Zc+"flex-"+e+e;case 5187:return Qc+e+Ec(e,/(\w+).+(:[^]+)/,Qc+"box-$1$2"+Zc+"flex-$1$2")+e;case 5443:return Qc+e+Zc+"flex-item-"+Ec(e,/flex-|-self/,"")+e;case 4675:return Qc+e+Zc+"flex-line-pack"+Ec(e,/align-content|flex-|-self/,"")+e;case 5548:return Qc+e+Zc+Ec(e,"shrink","negative")+e;case 5292:return Qc+e+Zc+Ec(e,"basis","preferred-size")+e;case 6060:return Qc+"box-"+Ec(e,"-grow","")+Qc+e+Zc+Ec(e,"grow","positive")+e;case 4554:return Qc+Ec(e,/([^-])(transform)/g,"$1"+Qc+"$2")+e;case 6187:return Ec(Ec(Ec(e,/(zoom-|grab)/,Qc+"$1"),/(image-set)/,Qc+"$1"),e,"")+e;case 5495:case 3959:return Ec(e,/(image-set\([^]*)/,Qc+"$1$`$1");case 4968:return Ec(Ec(e,/(.+:)(flex-)?(.*)/,Qc+"box-pack:$3"+Zc+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Qc+e+e;case 4095:case 3583:case 4068:case 2532:return Ec(e,/(.+)-inline(.+)/,Qc+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(kc(e)-1-t>6)switch(Cc(e,t+1)){case 109:if(45!==Cc(e,t+4))break;case 102:return Ec(e,/(.+:)(.+)-([^]+)/,"$1"+Qc+"$2-$3$1"+Jc+(108==Cc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~_c(e,"stretch")?gu(Ec(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Cc(e,t+1))break;case 6444:switch(Cc(e,kc(e)-3-(~_c(e,"!important")&&10))){case 107:return Ec(e,":",":"+Qc)+e;case 101:return Ec(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Qc+(45===Cc(e,14)?"inline-":"")+"box$3$1"+Qc+"$2$3$1"+Zc+"$2box$3")+e}break;case 5936:switch(Cc(e,t+11)){case 114:return Qc+e+Zc+Ec(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Qc+e+Zc+Ec(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Qc+e+Zc+Ec(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Qc+e+Zc+e+e}return e}var vu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nu:e.return=gu(e.value,e.length);break;case ru:return ou([Lc(e,{value:Ec(e.value,"@","@"+Qc)})],r);case tu:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ou([Lc(e,{props:[Ec(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ou([Lc(e,{props:[Ec(t,/:(plac\w+)/,":"+Qc+"input-$1")]}),Lc(e,{props:[Ec(t,/:(plac\w+)/,":-moz-$1")]}),Lc(e,{props:[Ec(t,/:(plac\w+)/,Zc+"input-$1")]})],r)}return""}))}}],bu=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||vu;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,f=[iu,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[mu,hu].concat(r,f),u=Tc(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){l=n,function(e){ou(au(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new vc({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return m.sheet.hydrate(s),m};var yu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function wu(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var xu=/[A-Z]|^ms/g,Eu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_u=function(e){return 45===e.charCodeAt(1)},Cu=function(e){return null!=e&&"boolean"!=typeof e},Su=wu((function(e){return _u(e)?e:e.replace(xu,"-$&").toLowerCase()})),ku=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Eu,(function(e,t,n){return Ru={name:t,styles:n,next:Ru},t}))}return 1===yu[e]||_u(e)||"number"!=typeof t||0===t?t:t+"px"};function Tu(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ru={name:n.name,styles:n.styles,next:Ru},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ru={name:r.name,styles:r.styles,next:Ru},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Tu(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Cu(a)&&(r+=Su(i)+":"+ku(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Tu(e,t,a);switch(i){case"animation":case"animationName":r+=Su(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Cu(a[l])&&(r+=Su(i)+":"+ku(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ru,i=n(e);return Ru=o,Tu(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Ru,Pu=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Mu=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ru=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Tu(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Tu(n,t,e[a]),r&&(o+=i[a]);Pu.lastIndex=0;for(var s,l="";null!==(s=Pu.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Ru}},Iu=!!v.useInsertionEffect&&v.useInsertionEffect,Nu=Iu||function(e){return e()},Ou=(Iu||v.useLayoutEffect,v.createContext("undefined"!=typeof HTMLElement?bu({key:"css"}):null));var Du=Ou.Provider,Au=function(e){return(0,v.forwardRef)((function(t,n){var r=(0,v.useContext)(Ou);return e(t,r,n)}))};var Lu=v.createContext({});function zu(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Fu=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Bu=function(e,t,n){Fu(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function ju(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Vu(e,t,n){var r=[],o=zu(e,r,n);return r.length<2?n:o+t(r)}var Hu=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},$u=function(e){var t=bu(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Mu(n,t.registered,void 0);return Bu(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Vu(t.registered,n,Hu(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Mu(n,t.registered);ju(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Mu(n,t.registered),i="animation-"+o.name;return ju(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:zu.bind(null,t.registered),merge:Vu.bind(null,t.registered,n)}}({key:"css"}),Wu=($u.flush,$u.hydrate,$u.cx);$u.merge,$u.getRegisteredStyles,$u.injectGlobal,$u.keyframes,$u.css,$u.sheet,$u.cache;const Uu=()=>{const e=(0,v.useContext)(Ou),t=(0,a.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return Wu(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(Bu(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function Gu(e,t){const n=tc();void 0===t&&"undefined"!=typeof process&&process.env;const r=n?.[t]||{},o={[oc]:!0,...(i=t,{[rc]:i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=Uu()(gc(t),e.className),u="function"==typeof l.renderChildren?l.renderChildren(l):l.children;for(const e in l)o[e]=l[e];for(const e in a)o[e]=a[e];return void 0!==u&&(o.children=u),o.className=c,o}function Ku(e,t){return Yu(e,t,{forwardsRef:!0})}function qu(e,t){return Yu(e,t)}function Yu(e,t,n){const r=n?.forwardsRef?(0,a.forwardRef)(e):e;void 0===t&&"undefined"!=typeof process&&process.env;let o=r[ic]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[ic]:[...new Set(o)],displayName:t,selector:`.${gc(t)}`})}function Xu(e){if(!e)return[];let t=[];return e[ic]&&(t=e[ic]),e.type&&e.type[ic]&&(t=e.type[ic]),t}function Zu(e,t){return!!e&&("string"==typeof t?Xu(e).includes(t):!!Array.isArray(t)&&t.some((t=>Xu(e).includes(t))))}const Ju={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};function Qu(){return Qu=Object.assign?Object.assign.bind():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},Qu.apply(this,arguments)}function ed(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var td=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nd=ed((function(e){return td.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),rd=function(e){return"theme"!==e},od=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?nd:rd},id=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},ad=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Fu(t,n,r),Nu((function(){return Bu(t,n,r)})),null},sd=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=id(t,n,i),l=s||od(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var f=u.length,p=1;p<f;p++)d.push(u[p],u[0][p])}var m=Au((function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=v.useContext(Lu)}"string"==typeof e.className?i=zu(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=Mu(d.concat(u),t.registered,f);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?od(r):l,g={};for(var b in e)c&&"as"===b||h(b)&&(g[b]=e[b]);return g.className=i,g.ref=n,v.createElement(v.Fragment,null,v.createElement(ad,{cache:t,serialized:m,isStringTag:"string"==typeof r}),v.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,Qu({},n,r,{shouldForwardProp:id(m,r,!0)})).apply(void 0,d)},m}};const ld=sd("div",{target:"e19lxcc00"})("");ld.selector=".components-view",ld.displayName="View";var cd=ld;var ud=Ku((function(e,t){const{style:n,...r}=Gu(e,"VisuallyHidden");return(0,a.createElement)(cd,{ref:t,...r,style:{...Ju,...n||{}}})}),"VisuallyHidden");const dd=["onMouseDown","onClick"];const fd=(0,a.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,isPressed:r,isBusy:o,isDestructive:i,className:s,disabled:c,icon:d,iconPosition:f="left",iconSize:p,showTooltip:m,tooltipPosition:h,shortcut:g,label:v,children:b,size:y="default",text:w,variant:x,__experimentalIsFocusable:E,describedBy:_,...C}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:r,isLink:o,isSmall:i,size:a,variant:s,...l}){let c=a,u=s;var d,f,p,m,h,g;return i&&(null!==(d=c)&&void 0!==d||(c="small")),t&&(null!==(f=u)&&void 0!==f||(u="primary")),r&&(null!==(p=u)&&void 0!==p||(u="tertiary")),n&&(null!==(m=u)&&void 0!==m||(u="secondary")),e&&($l()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(h=u)&&void 0!==h||(u="secondary")),o&&(null!==(g=u)&&void 0!==g||(u="link")),{...l,size:c,variant:u}}(e),{href:S,target:k,...T}="href"in C?C:{href:void 0,target:void 0,...C},R=(0,u.useInstanceId)(fd,"components-button__description"),P="string"==typeof b&&!!b||Array.isArray(b)&&b?.[0]&&null!==b[0]&&"components-tooltip"!==b?.[0]?.props?.className,M=l()("components-button",s,{"is-next-40px-default-size":n,"is-secondary":"secondary"===x,"is-primary":"primary"===x,"is-small":"small"===y,"is-compact":"compact"===y,"is-tertiary":"tertiary"===x,"is-pressed":r,"is-busy":o,"is-link":"link"===x,"is-destructive":i,"has-text":!!d&&P,"has-icon":!!d}),I=c&&!E,N=void 0===S||I?"button":"a",O="button"===N?{type:"button",disabled:I,"aria-pressed":r}:{},D="a"===N?{href:S,target:k}:{};if(c&&E){O["aria-disabled"]=!0,D["aria-disabled"]=!0;for(const e of dd)T[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const A=!I&&(m&&v||g||!!v&&!b?.length&&!1!==m),L=_?R:void 0,z=T["aria-describedby"]||L,F={className:M,"aria-label":T["aria-label"]||v,"aria-describedby":z,ref:t},B=(0,a.createElement)(a.Fragment,null,d&&"left"===f&&(0,a.createElement)(Gl,{icon:d,size:p}),w&&(0,a.createElement)(a.Fragment,null,w),d&&"right"===f&&(0,a.createElement)(Gl,{icon:d,size:p}),b),j="a"===N?(0,a.createElement)("a",{...D,...T,...F},B):(0,a.createElement)("button",{...O,...T,...F},B);return A?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Uf,{text:b?.length&&_?_:v,shortcut:g,position:h},j),_&&(0,a.createElement)(ud,null,(0,a.createElement)("span",{id:L},_))):(0,a.createElement)(a.Fragment,null,j,_&&(0,a.createElement)(ud,null,(0,a.createElement)("span",{id:L},_)))}));var pd=fd;let md=0;function hd(e){const t=document.scrollingElement||document.body;e&&(md=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=md)}let gd=0;var vd=function(){return(0,a.useEffect)((()=>(0===gd&&hd(!0),++gd,()=>{1===gd&&hd(!1),--gd})),[]),null};const bd=Symbol(),yd=Symbol(),wd=Symbol();let xd=(e,t)=>new Proxy(e,t);const Ed=Object.getPrototypeOf,_d=new WeakMap,Cd=e=>e&&(_d.has(e)?_d.get(e):Ed(e)===Object.prototype||Ed(e)===Array.prototype),Sd=e=>"object"==typeof e&&null!==e,kd=new WeakMap,Td=e=>e[wd]||e,Rd=(e,t,n)=>{if(!Cd(e))return e;const r=Td(e),o=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.writable)))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((e,t)=>{const n={f:t};let r=!1;const o=(t,o)=>{if(!r){let r=n.a.get(e);r||(r=new Set,n.a.set(e,r)),o&&r.has(bd)||r.add(t)}},i={get:(t,r)=>r===wd?e:(o(r),Rd(t[r],n.a,n.c)),has:(t,i)=>i===yd?(r=!0,n.a.delete(e),!0):(o(i),i in t),getOwnPropertyDescriptor:(e,t)=>(o(t,!0),Object.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(o(bd),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(r,o),i[1].p=xd(o?(e=>{let t=kd.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const n=Object.getOwnPropertyDescriptors(e);Object.values(n).forEach((e=>{e.configurable=!0})),t=Object.create(Ed(e),n)}kd.set(e,t)}return t})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},Pd=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))},Md=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Sd(e)||!Sd(t))return!0;const o=n.get(Td(e));if(!o)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let i=null;for(const a of o){const o=a===bd?Pd(e,t):Md(e[a],t[a],n,r);if(!0!==o&&!1!==o||(i=o),i)break}return null===i&&(i=!0),r&&r.set(e,{n:t,g:i}),i},Id=(e,t=!0)=>{_d.set(e,t)};var Nd=o(635);const Od=e=>"object"==typeof e&&null!==e,Dd=new WeakSet,Ad=Symbol("VERSION"),Ld=Symbol("LISTENERS"),zd=Symbol("SNAPSHOT"),Fd=(e=Object.is,t=((e,t)=>new Proxy(e,t)),n=(e=>Od(e)&&!Dd.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),r=Symbol("PROMISE_RESULT"),o=Symbol("PROMISE_ERROR"),i=new WeakMap,a=((e,t,n)=>{const a=i.get(n);if((null==a?void 0:a[0])===e)return a[1];const s=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return Id(s,!0),i.set(n,[e,s]),Reflect.ownKeys(t).forEach((e=>{const i=Reflect.get(t,e,n);if(Dd.has(i))Id(i,!1),s[e]=i;else if(i instanceof Promise)if(r in i)s[e]=i[r];else{const t=i[o]||i;Object.defineProperty(s,e,{get(){if(r in i)return i[r];throw t}})}else(null==i?void 0:i[Ld])?s[e]=i[zd]:s[e]=i})),Object.freeze(s)}),s=new WeakMap,l=[1],c=(i=>{if(!Od(i))throw new Error("object required");const c=s.get(i);if(c)return c;let u=l[0];const d=new Set,f=(e,t=++l[0])=>{u!==t&&(u=t,d.forEach((n=>n(e,t))))},p=new Map,m=e=>{let t=p.get(e);return t||(t=(t,n)=>{const r=[...t];r[1]=[e,...r[1]],f(r,n)},p.set(e,t)),t},h=e=>{const t=p.get(e);return p.delete(e),t},g=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),v={get(e,t,n){return t===Ad?u:t===Ld?d:t===zd?a(u,e,n):Reflect.get(e,t,n)},deleteProperty(e,t){const n=Reflect.get(e,t),r=null==n?void 0:n[Ld];r&&r.delete(h(t));const o=Reflect.deleteProperty(e,t);return o&&f(["delete",[t],n]),o},set(t,i,a,s){var l;const c=Reflect.has(t,i),u=Reflect.get(t,i,s);if(c&&e(u,a))return!0;const d=null==u?void 0:u[Ld];let p;return d&&d.delete(h(i)),Od(a)&&(a=(e=>Cd(e)&&e[wd]||null)(a)||a),(null==(l=Object.getOwnPropertyDescriptor(t,i))?void 0:l.set)?p=a:a instanceof Promise?p=a.then((e=>(p[r]=e,f(["resolve",[i],e]),e))).catch((e=>{p[o]=e,f(["reject",[i],e])})):(null==a?void 0:a[Ld])?(p=a,p[Ld].add(m(i))):n(a)?(p=jd(a),p[Ld].add(m(i))):p=a,Reflect.set(t,i,p,s),f(["set",[i],a,u]),!0}},b=t(g,v);return s.set(i,b),Reflect.ownKeys(i).forEach((e=>{const t=Object.getOwnPropertyDescriptor(i,e);t.get||t.set?Object.defineProperty(g,e,t):b[e]=i[e]})),b}))=>[c,Dd,Ad,Ld,zd,e,t,n,r,o,i,a,s,l],[Bd]=Fd();function jd(e={}){return Bd(e)}function Vd(e,t,n){let r;(null==e?void 0:e[Ld])||console.warn("Please use proxy object");const o=[],i=e=>{o.push(e),n?t(o.splice(0)):r||(r=Promise.resolve().then((()=>{r=void 0,t(o.splice(0))})))};return e[Ld].add(i),()=>{e[Ld].delete(i)}}function Hd(e){return(null==e?void 0:e[zd])||console.warn("Please use proxy object"),e[zd]}function $d(e){return Dd.add(e),e}const{useSyncExternalStore:Wd}=Nd,Ud=(e,t)=>{const n=(0,v.useRef)();(0,v.useEffect)((()=>{n.current=((e,t)=>{const n=[],r=new WeakSet,o=(e,i)=>{if(r.has(e))return;Sd(e)&&r.add(e);const a=Sd(e)&&t.get(Td(e));a?a.forEach((t=>{o(e[t],i?[...i,t]:[t])})):i&&n.push(i)};return o(e),n})(e,t)})),(0,v.useDebugValue)(n.current)};function Gd(e,t){const n=null==t?void 0:t.sync,r=(0,v.useRef)(),o=(0,v.useRef)();let i=!0;const a=Wd((0,v.useCallback)((t=>{const r=Vd(e,t,n);return t(),r}),[e,n]),(()=>{const t=Hd(e);try{if(!i&&r.current&&o.current&&!Md(r.current,t,o.current,new WeakMap))return r.current}catch(e){}return t}),(()=>Hd(e)));i=!1;const s=new WeakMap;(0,v.useEffect)((()=>{r.current=a,o.current=s})),Ud(a,s);const l=(0,v.useMemo)((()=>new WeakMap),[]);return Rd(a,s,l)}Symbol();function Kd(e){const t=jd({data:Array.from(e||[]),has(e){return this.data.some((t=>t[0]===e))},set(e,t){const n=this.data.find((t=>t[0]===e));return n?n[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find((t=>t[0]===e)))?void 0:t[1]},delete(e){const t=this.data.findIndex((t=>t[0]===e));return-1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return{}},forEach(e){this.data.forEach((t=>{e(t[1],t[0],this)}))},keys(){return this.data.map((e=>e[0])).values()},values(){return this.data.map((e=>e[1])).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}var qd=(0,a.createContext)({slots:Kd(),fills:Kd(),registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function Yd(e){const t=(0,a.useContext)(qd);return{...Gd(t.slots,{sync:!0}).get(e),...(0,a.useMemo)((()=>({updateSlot:n=>t.updateSlot(e,n),unregisterSlot:n=>t.unregisterSlot(e,n),registerFill:n=>t.registerFill(e,n),unregisterFill:n=>t.unregisterFill(e,n)})),[e,t])}}var Xd=(0,a.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});var Zd=e=>{const{getSlot:t,subscribe:n}=(0,a.useContext)(Xd);return(0,a.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function Jd({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,a.useContext)(Xd),o=Zd(e),i=(0,a.useRef)({name:e,children:t});return(0,a.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,a.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,a.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function Qd(e){return"function"==typeof e}class ef extends a.Component{constructor(){super(...arguments),this.isUnmounted=!1}componentDidMount(){const{registerSlot:e}=this.props;this.isUnmounted=!1,e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var e;const{children:t,name:n,fillProps:r={},getFills:o}=this.props,i=(null!==(e=o(n,this))&&void 0!==e?e:[]).map((e=>{const t=Qd(e.children)?e.children(r):e.children;return a.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;const n=e.key||t;return(0,a.cloneElement)(e,{key:n})}))})).filter((e=>!(0,a.isEmptyElement)(e)));return(0,a.createElement)(a.Fragment,null,Qd(t)?t(i):i)}}var tf,nf=e=>(0,a.createElement)(Xd.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:r})=>(0,a.createElement)(ef,{...e,registerSlot:t,unregisterSlot:n,getFills:r}))),rf=new Uint8Array(16);function of(){if(!tf&&!(tf="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tf(rf)}var af=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var sf=function(e){return"string"==typeof e&&af.test(e)},lf=[],cf=0;cf<256;++cf)lf.push((cf+256).toString(16).substr(1));var uf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(lf[e[t+0]]+lf[e[t+1]]+lf[e[t+2]]+lf[e[t+3]]+"-"+lf[e[t+4]]+lf[e[t+5]]+"-"+lf[e[t+6]]+lf[e[t+7]]+"-"+lf[e[t+8]]+lf[e[t+9]]+"-"+lf[e[t+10]]+lf[e[t+11]]+lf[e[t+12]]+lf[e[t+13]]+lf[e[t+14]]+lf[e[t+15]]).toLowerCase();if(!sf(n))throw TypeError("Stringified UUID is invalid");return n};var df=function(e,t,n){var r=(e=e||{}).random||(e.rng||of)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return uf(r)};const ff=new Set,pf=hc((e=>{let t=df().replace(/[0-9]/g,"");for(;ff.has(t);)t=df().replace(/[0-9]/g,"");return ff.add(t),bu({container:e,key:t})}));var mf=function(e){const{children:t,document:n}=e;if(!n)return null;const r=pf(n.head);return(0,a.createElement)(Du,{value:r},t)};function hf({name:e,children:t}){const{registerFill:n,unregisterFill:r,...o}=Yd(e),i=function(){const[,e]=(0,a.useState)({}),t=(0,a.useRef)(!0);return(0,a.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),s=(0,a.useRef)({rerender:i});if((0,a.useEffect)((()=>(n(s),()=>{r(s)})),[n,r]),!o.ref||!o.ref.current)return null;"function"==typeof t&&(t=t(o.fillProps));const l=(0,a.createElement)(mf,{document:o.ref.current.ownerDocument},t);return(0,a.createPortal)(l,o.ref.current)}var gf=(0,a.forwardRef)((function({name:e,fillProps:t={},as:n="div",...r},o){const{registerSlot:i,unregisterSlot:s,...l}=(0,a.useContext)(qd),c=(0,a.useRef)();return(0,a.useLayoutEffect)((()=>(i(e,c,t),()=>{s(e,c)})),[i,s,e]),(0,a.useLayoutEffect)((()=>{l.updateSlot(e,t)})),(0,a.createElement)(n,{ref:(0,u.useMergeRefs)([o,c]),...r})})),vf=window.wp.isShallowEqual,bf=o.n(vf);function yf(){const e=Kd(),t=Kd();return{slots:e,fills:t,registerSlot:function(t,n,r){const o=e.get(t)||{};e.set(t,$d({...o,ref:n||o.ref,fillProps:r||o.fillProps||{}}))},updateSlot:function(n,r){const o=e.get(n);if(!o)return;if(bf()(o.fillProps,r))return;o.fillProps=r;const i=t.get(n);i&&i.map((e=>e.current.rerender()))},unregisterSlot:function(t,n){e.get(t)?.ref===n&&e.delete(t)},registerFill:function(e,n){t.set(e,$d([...t.get(e)||[],n]))},unregisterFill:function(e,n){const r=t.get(e);r&&t.set(e,$d(r.filter((e=>e!==n))))}}}function wf({children:e}){const[t]=(0,a.useState)(yf);return(0,a.createElement)(qd.Provider,{value:t},e)}class xf extends a.Component{constructor(){super(...arguments),this.registerSlot=this.registerSlot.bind(this),this.registerFill=this.registerFill.bind(this),this.unregisterSlot=this.unregisterSlot.bind(this),this.unregisterFill=this.unregisterFill.bind(this),this.getSlot=this.getSlot.bind(this),this.getFills=this.getFills.bind(this),this.subscribe=this.subscribe.bind(this),this.slots={},this.fills={},this.listeners=[],this.contextValue={registerSlot:this.registerSlot,unregisterSlot:this.unregisterSlot,registerFill:this.registerFill,unregisterFill:this.unregisterFill,getSlot:this.getSlot,getFills:this.getFills,subscribe:this.subscribe}}registerSlot(e,t){const n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}registerFill(e,t){this.fills[e]=[...this.fills[e]||[],t],this.forceUpdateSlot(e)}unregisterSlot(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}unregisterFill(e,t){var n;this.fills[e]=null!==(n=this.fills[e]?.filter((e=>e!==t)))&&void 0!==n?n:[],this.forceUpdateSlot(e)}getSlot(e){return this.slots[e]}getFills(e,t){return this.slots[e]!==t?[]:this.fills[e]}forceUpdateSlot(e){const t=this.getSlot(e);t&&t.forceUpdate()}triggerListeners(){this.listeners.forEach((e=>e()))}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>t!==e))}}render(){return(0,a.createElement)(Xd.Provider,{value:this.contextValue},this.props.children)}}function Ef(e){return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Jd,{...e}),(0,a.createElement)(hf,{...e}))}const _f=(0,a.forwardRef)((({bubblesVirtually:e,...t},n)=>e?(0,a.createElement)(gf,{...t,ref:n}):(0,a.createElement)(nf,{...t})));function Cf({children:e,...t}){return(0,a.createElement)(xf,{...t},(0,a.createElement)(wf,null,e))}function Sf(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,a.createElement)(Ef,{name:e,...t});n.displayName=`${t}Fill`;const r=t=>(0,a.createElement)(_f,{name:e,...t});return r.displayName=`${t}Slot`,r.__unstableName=e,{Fill:n,Slot:r}}const kf={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},Tf=e=>{var t;return null!==(t=kf[e])&&void 0!==t?t:"bottom"},Rf={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}},Pf=e=>{const t=e?.defaultView?.frameElement;if(!t)return;const n=t.getBoundingClientRect();return{x:n.left,y:n.top}},Mf=e=>null===e||Number.isNaN(e)?void 0:Math.round(e);function If(e){return e.split("-")[0]}const Nf=(e={})=>({options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=function(e){return["top","bottom"].includes(If(e))?"x":"y"}(o),f="x"===d?"y":"x";let p=u[d],m=u[f];const h="function"==typeof s?s(t):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h},v={x:0,y:0,...a.frameOffset?.amount};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis+v[d],n=i.reference[d]+i.reference[e]-g.mainAxis+v[d];p<t?p=t:p>n&&(p=n)}if(c){var b,y;const e="y"===d?"width":"height",t=["top","left"].includes(If(o)),n=i.reference[f]-i.floating[e]+(t&&null!==(b=a.offset?.[f])&&void 0!==b?b:0)+(t?0:g.crossAxis)+v[f],r=i.reference[f]+i.reference[e]+(t?0:null!==(y=a.offset?.[f])&&void 0!==y?y:0)-(t?g.crossAxis:0)+v[f];m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}});const Of="Popover",Df=()=>(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,a.createElement)(r.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,a.createElement)(r.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),Af=(0,a.forwardRef)((({style:e,placement:t,shouldAnimate:n=!1,...r},o)=>{const i=function(){!Dt.current&&At();const[e]=(0,v.useState)(Ot.current);return e}(),{style:s,...l}=(0,a.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Rf[e],initial:{opacity:0,scale:0,[t]:2*n+"em"},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}})(t)),[t]),c=n&&!i?{style:{...s,...e},...l}:{animate:!1,style:e};return(0,a.createElement)(jl.div,{...c,...r,ref:o})})),Lf=(0,a.createContext)(void 0),zf=(0,a.forwardRef)(((e,t)=>{var n,r;const{animate:o=!0,headerTitle:i,onClose:s,children:c,className:d,noArrow:f=!0,position:p,placement:m="bottom-start",offset:h=0,focusOnMount:g="firstElement",anchor:v,expandOnMobile:b,onFocusOutside:y,__unstableSlotName:w=Of,flip:x=!0,resize:E=!0,shift:_=!1,variant:C,__unstableForcePosition:S,anchorRef:k,anchorRect:T,getAnchorRect:R,isAlternate:P,...M}=e;let I=x,N=E;void 0!==S&&($l()("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),I=!S,N=!S),void 0!==k&&$l()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==T&&$l()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==R&&$l()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const O=P?"toolbar":C;void 0!==P&&$l()("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const D=(0,a.useRef)(null),[A,L]=(0,a.useState)(null),[z,F]=(0,a.useState)(),B=(0,a.useCallback)((e=>{L(e)}),[]),j=(0,u.useViewportMatch)("medium","<"),V=b&&j,H=!V&&!f,$=p?Tf(p):m,W=(0,a.useRef)(Pf(z)),U=[..."overlay"===m?[{name:"overlay",fn({rects:e}){return e.reference}},Ye({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=null!==(n=t.floating)&&void 0!==n?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]:[],{name:"frameOffset",fn({x:e,y:t}){return W.current?{x:e+W.current.x,y:t+W.current.y,data:{amount:W.current}}:{x:e,y:t}}},Ge(h),I?Ue():void 0,N?Ye({apply(e){var t;const{firstElementChild:n}=null!==(t=te.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}):void 0,_?qe({crossAxis:!0,limiter:Nf(),padding:1}):void 0,It({element:D})].filter((e=>void 0!==e)),G=(0,a.useContext)(Lf)||w,K=Yd(G);let q;(s||y)&&(q=(e,t)=>{"focus-outside"===e&&y?y(t):s&&s()});const[Y,X]=(0,u.__experimentalUseDialog)({focusOnMount:g,__unstableOnClose:q,onClose:q}),{x:Z,y:J,reference:Q,floating:ee,refs:te,strategy:ne,update:re,placement:oe,middlewareData:{arrow:ie}}=Mt({placement:"overlay"===$?void 0:$,middleware:U,whileElementsMounted:(e,t,n)=>function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=i&&!s,u=l||c?[...nt(e)?xt(e):[],...xt(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),nt(e)&&!s&&f.observe(e),f.observe(t)}let p=s?dt(e):null;return s&&function t(){const r=dt(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}(e,t,n,{animationFrame:!0})}),ae=(0,a.useCallback)((e=>{D.current=e,re()}),[re]),se=k?.top,le=k?.bottom,ce=k?.startContainer,ue=k?.current;(0,a.useLayoutEffect)((()=>{const e=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o,fallbackDocument:i})=>{var a;let s;return e?s=e.ownerDocument:t?.top?s=t?.top.ownerDocument:t?.startContainer?s=t.startContainer.ownerDocument:t?.current?s=t.current.ownerDocument:t?s=t.ownerDocument:n&&n?.ownerDocument?s=n.ownerDocument:r&&(s=r(o)?.ownerDocument),null!==(a=s)&&void 0!==a?a:i})({anchor:v,anchorRef:k,anchorRect:T,getAnchorRect:R,fallbackReferenceElement:A,fallbackDocument:document}),t=(e=>{const t=e?.defaultView?.frameElement;if(!t)return{x:1,y:1};const n=t.getBoundingClientRect();return{x:n.width/t.offsetWidth,y:n.height/t.offsetHeight}})(e),n=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o,scale:i})=>{var a;let s=null;if(e?s=e:t?.top?s={getBoundingClientRect(){const e=t.top.getBoundingClientRect(),n=t.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,n.bottom-e.top)}}:t?.current?s=t.current:t?s=t:n?s={getBoundingClientRect(){return n}}:r?s={getBoundingClientRect(){var e,t,n,i;const a=r(o);return new window.DOMRect(null!==(e=a.x)&&void 0!==e?e:a.left,null!==(t=a.y)&&void 0!==t?t:a.top,null!==(n=a.width)&&void 0!==n?n:a.right-a.left,null!==(i=a.height)&&void 0!==i?i:a.bottom-a.top)}}:o&&(s=o.parentElement),s&&(1!==i.x||1!==i.y)){const e=s.getBoundingClientRect();s={getBoundingClientRect(){return new window.DOMRect(e.x*i.x,e.y*i.y,e.width*i.x,e.height*i.y)}}}return null!==(a=s)&&void 0!==a?a:null})({anchor:v,anchorRef:k,anchorRect:T,getAnchorRect:R,fallbackReferenceElement:A,scale:t});Q(n),F(e)}),[v,k,se,le,ce,ue,T,R,A,Q]),(0,a.useLayoutEffect)((()=>{if(z===document||z===te.floating.current?.ownerDocument||!z?.defaultView?.frameElement)return void(W.current=void 0);const{defaultView:e}=z,{frameElement:t}=e,n=t?(0,Wl.getScrollContainer)(t):null,r=()=>{W.current=Pf(z),re()};return e.addEventListener("resize",r),n?.addEventListener("scroll",r),r(),()=>{e.removeEventListener("resize",r),n?.removeEventListener("scroll",r)}}),[z,re,te.floating]);const de=(0,u.useMergeRefs)([ee,Y,t]);let fe=(0,a.createElement)(Af,{shouldAnimate:o&&!V,placement:oe,className:l()("components-popover",d,{"is-expanded":V,"is-positioned":null!==Z&&null!==J,[`is-${"toolbar"===O?"alternate":O}`]:O}),...M,ref:de,...X,tabIndex:-1,style:V?void 0:{position:ne,top:0,left:0,x:Mf(Z),y:Mf(J)}},V&&(0,a.createElement)(vd,null),V&&(0,a.createElement)("div",{className:"components-popover__header"},(0,a.createElement)("span",{className:"components-popover__header-title"},i),(0,a.createElement)(pd,{className:"components-popover__close",icon:Vl,onClick:s})),(0,a.createElement)("div",{className:"components-popover__content"},c),H&&(0,a.createElement)("div",{ref:ae,className:["components-popover__arrow",`is-${oe.split("-")[0]}`].join(" "),style:{left:void 0!==ie?.x&&Number.isFinite(ie.x)?`${ie.x+(null!==(n=W.current?.x)&&void 0!==n?n:0)}px`:"",top:void 0!==ie?.y&&Number.isFinite(ie.y)?`${ie.y+(null!==(r=W.current?.y)&&void 0!==r?r:0)}px`:""}},(0,a.createElement)(Df,null)));return K.ref&&(fe=(0,a.createElement)(Ef,{name:G},fe)),k||T||v?fe:(0,a.createElement)("span",{ref:B},fe)}));zf.Slot=(0,a.forwardRef)((function({name:e=Of},t){return(0,a.createElement)(_f,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),zf.__unstableSlotNameProvider=Lf.Provider;var Ff=zf;var Bf=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,o;return"string"==typeof t&&(r=t),null!==t&&"object"==typeof t&&(r=t.display,o=t.ariaLabel),(0,a.createElement)("span",{className:n,"aria-label":o},r)};const jf=700,Vf=(0,a.createElement)("div",{className:"event-catcher"}),Hf=({eventHandlers:e,child:t,childrenWithPopover:n,mergedRefs:r})=>(0,a.cloneElement)((0,a.createElement)("span",{className:"disabled-element-wrapper"},(0,a.cloneElement)(Vf,e),(0,a.cloneElement)(t,{children:n,ref:r})),{...e}),$f=({child:e,eventHandlers:t,childrenWithPopover:n,mergedRefs:r})=>(0,a.cloneElement)(e,{...t,children:n,ref:r}),Wf=(e,t,n)=>{if(1!==a.Children.count(e))return;const r=a.Children.only(e);r.props.disabled||"function"==typeof r.props[t]&&r.props[t](n)};var Uf=function(e){const{children:t,position:n="bottom middle",text:r,shortcut:o,delay:i=jf,...s}=e,[c,d]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),m=(0,u.useDebounce)(p,i),[h,g]=(0,a.useState)(null),v=a.Children.toArray(t)[0]?.ref,b=(0,u.useMergeRefs)([g,v]),y=e=>{"OPTION"!==e.target.tagName&&(Wf(t,"onMouseDown",e),document.addEventListener("mouseup",E),d(!0))},w=e=>{"OPTION"!==e.target.tagName&&(Wf(t,"onMouseUp",e),document.removeEventListener("mouseup",E),d(!1))},x=e=>"mouseUp"===e?w:"mouseDown"===e?y:void 0,E=x("mouseUp"),_=(e,n)=>r=>{if(Wf(t,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&c)return;m.cancel();const o=["focus","mouseenter"].includes(r.type);o!==f&&(n?m(o):p(o))},C=()=>{m.cancel(),document.removeEventListener("mouseup",E)};if((0,a.useEffect)((()=>C),[]),1!==a.Children.count(t))return t;const S={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:x("mouseDown")},k=a.Children.only(t),{children:T,disabled:R}=k.props,P=R?Hf:$f,M=(({anchor:e,grandchildren:t,isOver:n,offset:r,position:o,shortcut:i,text:s,className:c,...u})=>(0,a.concatChildren)(t,n&&(0,a.createElement)(Ff,{focusOnMount:!1,position:o,className:l()("components-tooltip",c),"aria-hidden":"true",animate:!1,offset:r,anchor:e,shift:!0,...u},s,(0,a.createElement)(Bf,{className:"components-tooltip__shortcut",shortcut:i}))))({grandchildren:T,...{anchor:h,isOver:f,offset:4,position:n,shortcut:o,text:r},...s});return P({child:k,eventHandlers:S,childrenWithPopover:M,mergedRefs:b})};const Gf=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],Kf={"top left":(0,c.__)("Top Left"),"top center":(0,c.__)("Top Center"),"top right":(0,c.__)("Top Right"),"center left":(0,c.__)("Center Left"),"center center":(0,c.__)("Center"),center:(0,c.__)("Center"),"center right":(0,c.__)("Center Right"),"bottom left":(0,c.__)("Bottom Left"),"bottom center":(0,c.__)("Bottom Center"),"bottom right":(0,c.__)("Bottom Right")},qf=Gf.flat();function Yf(e){return("center"===e?"center center":e).replace("-"," ")}function Xf(e,t){return`${e}-${Yf(t).replace(" ","-")}`}o(1281);function Zf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Mu(t)}var Jf=function(){var e=Zf.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};var Qf={grad:.9,turn:360,rad:360/(2*Math.PI)},ep=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},tp=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},np=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},rp=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},op=function(e){return{r:np(e.r,0,255),g:np(e.g,0,255),b:np(e.b,0,255),a:np(e.a)}},ip=function(e){return{r:tp(e.r),g:tp(e.g),b:tp(e.b),a:tp(e.a,3)}},ap=/^#([0-9a-f]{3,8})$/i,sp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},lp=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},cp=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:o}},up=function(e){return{h:rp(e.h),s:np(e.s,0,100),l:np(e.l,0,100),a:np(e.a)}},dp=function(e){return{h:tp(e.h),s:tp(e.s),l:tp(e.l),a:tp(e.a,3)}},fp=function(e){return cp((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},pp=function(e){return{h:(t=lp(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},mp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,hp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,gp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,vp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,bp={string:[[function(e){var t=ap.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?tp(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?tp(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=gp.exec(e)||vp.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:op({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=mp.exec(e)||hp.exec(e);if(!t)return null;var n,r,o=up({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Qf[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return fp(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return ep(t)&&ep(n)&&ep(r)?op({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!ep(t)||!ep(n)||!ep(r))return null;var a=up({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return fp(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!ep(t)||!ep(n)||!ep(r))return null;var a=function(e){return{h:rp(e.h),s:np(e.s,0,100),v:np(e.v,0,100),a:np(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return cp(a)},"hsv"]]},yp=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},wp=function(e){return"string"==typeof e?yp(e.trim(),bp.string):"object"==typeof e&&null!==e?yp(e,bp.object):[null,void 0]},xp=function(e,t){var n=pp(e);return{h:n.h,s:np(n.s+100*t,0,100),l:n.l,a:n.a}},Ep=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},_p=function(e,t){var n=pp(e);return{h:n.h,s:n.s,l:np(n.l+100*t,0,100),a:n.a}},Cp=function(){function e(e){this.parsed=wp(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return tp(Ep(this.rgba),2)},e.prototype.isDark=function(){return Ep(this.rgba)<.5},e.prototype.isLight=function(){return Ep(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=ip(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?sp(tp(255*o)):"","#"+sp(t)+sp(n)+sp(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return ip(this.rgba)},e.prototype.toRgbString=function(){return t=(e=ip(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return dp(pp(this.rgba))},e.prototype.toHslString=function(){return t=(e=dp(pp(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=lp(this.rgba),{h:tp(e.h),s:tp(e.s),v:tp(e.v),a:tp(e.a,3)};var e},e.prototype.invert=function(){return Sp({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Sp(xp(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Sp(xp(this.rgba,-e))},e.prototype.grayscale=function(){return Sp(xp(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Sp(_p(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Sp(_p(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Sp({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):tp(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=pp(this.rgba);return"number"==typeof e?Sp({h:e,s:t.s,l:t.l,a:t.a}):tp(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Sp(e).toHex()},e}(),Sp=function(e){return e instanceof Cp?e:new Cp(e)},kp=[],Tp=function(e){e.forEach((function(e){kp.indexOf(e)<0&&(e(Cp,bp),kp.push(e))}))};function Rp(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var p=(o=l,a=i[f],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));p<c&&(c=p,u=f)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}function Pp(e="",t=1){return Sp(e).alpha(t).toRgbString()}Tp([Rp]);const Mp="#fff",Ip={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},Np="var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",Op={theme:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",themeDark10:Np,background:Mp,backgroundDisabled:Ip[100],border:Ip[600],borderHover:Ip[700],borderFocus:Np,borderDisabled:Ip[400],textDisabled:Ip[600],textDark:Mp,darkGrayPlaceholder:Pp(Ip[900],.62),lightGrayPlaceholder:Pp(Mp,.65)},Dp=Object.freeze({gray:Ip,white:Mp,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},ui:Op});function Ap(e="transition"){let t;switch(e){case"transition":t="transition-duration: 0ms;";break;case"animation":t="animation-duration: 1ms;";break;default:t="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${t};\n\t\t}\n\t`}var Lp={name:"93uojk",styles:"border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const zp=()=>Lp,Fp=sd("div",{target:"ecapk1j3"})(zp,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(({size:e=92})=>Zf("grid-template-rows:repeat( 3, calc( ",e,"px / 3 ) );width:",e,"px;","")),";"),Bp=sd("div",{target:"ecapk1j2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),jp=e=>Zf("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",Ap("transition")," ",(({isActive:e})=>Zf("box-shadow:",e?`0 0 0 2px ${Dp.gray[900]}`:null,";color:",e?Dp.gray[900]:Dp.gray[400],";*:hover>&{color:",e?Dp.gray[900]:Dp.ui.theme,";}",""))(e),";",""),Vp=sd("span",{target:"ecapk1j1"})("height:6px;width:6px;",jp,";"),Hp=sd("span",{target:"ecapk1j0"})({name:"rjf3ub",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0"});function $p({isActive:e=!1,value:t,...n}){const r=Kf[t];return(0,a.createElement)(Uf,{text:r},(0,a.createElement)(ke,{as:Hp,role:"gridcell",...n},(0,a.createElement)(ud,null,t),(0,a.createElement)(Vp,{isActive:e,role:"presentation"})))}function Wp(e){return(0,v.useState)(e)[0]}function Up(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=g(e);!(t=o()).done;)r();return n}function Gp(e){for(var t,n=[],r=g(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function Kp(e){return e.slice().reverse()}function qp(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function Yp(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function Xp(e){void 0===e&&(e={});var t=Wp(e).baseId,n=(0,v.useContext)(we),r=(0,v.useRef)(0),o=(0,v.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}function Zp(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Jp(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&Zp(t.ref.current,e.ref.current)}))}function Qp(e){for(var t,n=0,r=g(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function em(e){for(var t=Up(e),n=Qp(t),r=[],o=0;o<n;o+=1)for(var i,a=g(t);!(i=a()).done;){var s=i.value;s[o]&&r.push(p(p({},s[o]),{},{groupId:s[o].groupId?""+o:void 0}))}return r}function tm(e,t,n){for(var r,o=Qp(e),i=g(e);!(r=i()).done;)for(var a=r.value,s=0;s<o;s+=1){var l=a[s];if(!l||n&&l.disabled){var c=0===s&&n?ue(a):a[s-1];a[s]=c&&t!==(null==c?void 0:c.id)&&n?c:{id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:null==c?void 0:c.groupId}}}return e}var nm={id:null,ref:{current:null}};function rm(e,t){return e.filter((function(e){return e.groupId===t}))}var om={horizontal:"vertical",vertical:"horizontal"};function im(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function am(e){var t=e.map((function(e,t){return[t,e]})),n=!1;return t.sort((function(e,t){var r=e[0],o=e[1],i=t[0],a=t[1],s=o.ref.current,l=a.ref.current;return s&&l?Zp(s,l)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1):0})),n?t.map((function(e){e[0];return e[1]})):e}function sm(e,t){var n=am(e);e!==n&&t(n)}function lm(e,t){var n=(0,v.useRef)([]);(0,v.useEffect)((function(){for(var r,o=function(e){for(var t,n=e[0],r=e.slice(1),o=null==n||null===(t=n.ref.current)||void 0===t?void 0:t.parentElement,i=function(){var e=o;if(r.every((function(t){return e.contains(t.ref.current)})))return{v:o};o=o.parentElement};o;){var a=i();if("object"==typeof a)return a.v}return H(o).body}(e),i=new IntersectionObserver((function(){!!n.current.length&&sm(e,t),n.current=e}),{root:o}),a=g(e);!(r=a()).done;){var s=r.value;s.ref.current&&i.observe(s.ref.current)}return function(){i.disconnect()}}),[e])}function cm(e,t){"function"==typeof IntersectionObserver?lm(e,t):function(e,t){(0,v.useEffect)((function(){var n=setTimeout((function(){return sm(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function um(e,t){var n=e.unstable_virtual,r=e.rtl,o=e.orientation,i=e.items,a=e.groups,s=e.currentId,l=e.loop,c=e.wrap,u=e.pastIds,d=e.shift,f=e.unstable_moves,m=e.unstable_includesBaseElement,h=e.initialVirtual,g=e.initialRTL,v=e.initialOrientation,b=e.initialCurrentId,y=e.initialLoop,w=e.initialWrap,x=e.initialShift,E=e.hasSetCurrentId;switch(t.type){case"registerGroup":var _=t.group;if(0===a.length)return p(p({},e),{},{groups:[_]});var C=Jp(a,_);return p(p({},e),{},{groups:im(a,_,C)});case"unregisterGroup":var S=t.id,k=a.filter((function(e){return e.id!==S}));return k.length===a.length?e:p(p({},e),{},{groups:k});case"registerItem":var T,R=t.item,P=a.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(R.ref.current)})),M=p({groupId:null==P?void 0:P.id},R),I=Jp(i,M),N=p(p({},e),{},{items:im(i,M,I)});return E||f||void 0!==b?N:p(p({},N),{},{currentId:null===(T=ue(N.items))||void 0===T?void 0:T.id});case"unregisterItem":var O=t.id,D=i.filter((function(e){return e.id!==O}));if(D.length===i.length)return e;var A=u.filter((function(e){return e!==O})),L=p(p({},e),{},{pastIds:A,items:D});if(s&&s===O){var z=m?null:de(p(p({},L),{},{currentId:A[0]}));return p(p({},L),{},{currentId:z})}return L;case"move":var F=t.id;if(void 0===F)return e;var B=u.filter((function(e){return e!==s&&e!==F})),j=s?[s].concat(B):B,V=p(p({},e),{},{pastIds:j});if(null===F)return p(p({},V),{},{unstable_moves:f+1,currentId:de(V,F)});var H=qp(i,F);return p(p({},V),{},{unstable_moves:H?f+1:f,currentId:de(V,null==H?void 0:H.id)});case"next":if(null==s)return um(e,p(p({},t),{},{type:"first"}));var $=r&&"vertical"!==o,W=$?Kp(i):i,U=W.find((function(e){return e.id===s}));if(!U)return um(e,p(p({},t),{},{type:"first"}));var G=!!U.groupId,K=W.indexOf(U),q=W.slice(K+1),Y=rm(q,U.groupId);if(t.allTheWay){var X=ue($?rm(W,U.groupId):Kp(Y));return um(e,p(p({},t),{},{type:"move",id:null==X?void 0:X.id}))}var Z=function(e){return e&&om[e]}(G?o||"horizontal":o),J=l&&l!==Z,Q=G&&c&&c!==Z,ee=t.hasNullItem||!G&&J&&m;if(J){var te=function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[nm]:[],e.slice(0,r))}(Q&&!ee?W:rm(W,U.groupId),s,ee),ne=ue(te,s);return um(e,p(p({},t),{},{type:"move",id:null==ne?void 0:ne.id}))}if(Q){var re=ue(ee?Y:q,s),oe=ee?(null==re?void 0:re.id)||null:null==re?void 0:re.id;return um(e,p(p({},t),{},{type:"move",id:oe}))}var ie=ue(Y,s);return um(e,!ie&&ee?p(p({},t),{},{type:"move",id:null}):p(p({},t),{},{type:"move",id:null==ie?void 0:ie.id}));case"previous":var ae=!!!a.length&&m,se=um(p(p({},e),{},{items:Kp(i)}),p(p({},t),{},{type:"next",hasNullItem:ae}));return p(p({},se),{},{items:i});case"down":var le=d&&!t.allTheWay,ce=em(Gp(tm(Up(i),s,le))),fe=l&&"horizontal"!==l&&m,pe=um(p(p({},e),{},{orientation:"vertical",items:ce}),p(p({},t),{},{type:"next",hasNullItem:fe}));return p(p({},pe),{},{orientation:o,items:i});case"up":var me=d&&!t.allTheWay,he=em(Kp(Gp(tm(Up(i),s,me)))),ge=m,ve=um(p(p({},e),{},{orientation:"vertical",items:he}),p(p({},t),{},{type:"next",hasNullItem:ge}));return p(p({},ve),{},{orientation:o,items:i});case"first":var be=ue(i);return um(e,p(p({},t),{},{type:"move",id:null==be?void 0:be.id}));case"last":var ye=um(p(p({},e),{},{items:Kp(i)}),p(p({},t),{},{type:"first"}));return p(p({},ye),{},{items:i});case"sort":return p(p({},e),{},{items:am(i),groups:am(a)});case"setVirtual":return p(p({},e),{},{unstable_virtual:Yp(t.virtual,n)});case"setRTL":return p(p({},e),{},{rtl:Yp(t.rtl,r)});case"setOrientation":return p(p({},e),{},{orientation:Yp(t.orientation,o)});case"setCurrentId":var we=de(p(p({},e),{},{currentId:Yp(t.currentId,s)}));return p(p({},e),{},{currentId:we,hasSetCurrentId:!0});case"setLoop":return p(p({},e),{},{loop:Yp(t.loop,l)});case"setWrap":return p(p({},e),{},{wrap:Yp(t.wrap,c)});case"setShift":return p(p({},e),{},{shift:Yp(t.shift,d)});case"setIncludesBaseElement":return p(p({},e),{},{unstable_includesBaseElement:Yp(t.includesBaseElement,m)});case"reset":return p(p({},e),{},{unstable_virtual:h,rtl:g,orientation:v,currentId:de(p(p({},e),{},{currentId:b})),loop:y,wrap:w,shift:x,unstable_moves:0,pastIds:[]});case"setItems":return p(p({},e),{},{items:t.items});default:throw new Error}}function dm(e){return(0,v.useCallback)(e,[])}function fm(e){void 0===e&&(e={});var t=Wp(e),n=t.unstable_virtual,r=void 0!==n&&n,o=t.rtl,i=void 0!==o&&o,a=t.orientation,s=t.currentId,l=t.loop,c=void 0!==l&&l,u=t.wrap,d=void 0!==u&&u,f=t.shift,h=void 0!==f&&f,g=t.unstable_includesBaseElement,b=Xp(m(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),y=(0,v.useReducer)(um,{unstable_virtual:r,rtl:i,orientation:a,items:[],groups:[],currentId:s,loop:c,wrap:d,shift:h,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!=g?g:null===s,initialVirtual:r,initialRTL:i,initialOrientation:a,initialCurrentId:s,initialLoop:c,initialWrap:d,initialShift:h}),w=y[0],x=(w.pastIds,w.initialVirtual,w.initialRTL,w.initialOrientation,w.initialCurrentId,w.initialLoop,w.initialWrap,w.initialShift,w.hasSetCurrentId,m(w,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),E=y[1],_=(0,v.useState)(!1),C=_[0],S=_[1],k=function(){var e=(0,v.useRef)(!1);return U((function(){return function(){e.current=!0}}),[]),e}(),T=(0,v.useCallback)((function(e){return E({type:"setItems",items:e})}),[]);return cm(x.items,T),p(p(p({},b),x),{},{unstable_hasActiveWidget:C,unstable_setHasActiveWidget:S,registerItem:dm((function(e){k.current||E({type:"registerItem",item:e})})),unregisterItem:dm((function(e){k.current||E({type:"unregisterItem",id:e})})),registerGroup:dm((function(e){k.current||E({type:"registerGroup",group:e})})),unregisterGroup:dm((function(e){k.current||E({type:"unregisterGroup",id:e})})),move:dm((function(e){return E({type:"move",id:e})})),next:dm((function(e){return E({type:"next",allTheWay:e})})),previous:dm((function(e){return E({type:"previous",allTheWay:e})})),up:dm((function(e){return E({type:"up",allTheWay:e})})),down:dm((function(e){return E({type:"down",allTheWay:e})})),first:dm((function(){return E({type:"first"})})),last:dm((function(){return E({type:"last"})})),sort:dm((function(){return E({type:"sort"})})),unstable_setVirtual:dm((function(e){return E({type:"setVirtual",virtual:e})})),setRTL:dm((function(e){return E({type:"setRTL",rtl:e})})),setOrientation:dm((function(e){return E({type:"setOrientation",orientation:e})})),setCurrentId:dm((function(e){return E({type:"setCurrentId",currentId:e})})),setLoop:dm((function(e){return E({type:"setLoop",loop:e})})),setWrap:dm((function(e){return E({type:"setWrap",wrap:e})})),setShift:dm((function(e){return E({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:dm((function(e){return E({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:dm((function(){return E({type:"reset"})}))})}function pm(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):Ee(e,t,n)}function mm(e,t){var n=pm(e,"blur",t),r=e.dispatchEvent(n),o=I(I({},t),{},{bubbles:!0});return e.dispatchEvent(pm(e,"focusout",o)),r}function hm(e,t,n){return e.dispatchEvent(function(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var r=H(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,$(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var gm=W&&"msCrypto"in window;var vm=W&&"msCrypto"in window;function bm(e,t,n){var r=G(n);return(0,v.useCallback)((function(n){var o;if(null===(o=r.current)||void 0===o||o.call(r,n),!n.defaultPrevented&&e&&function(e){return!!K(e)&&!e.metaKey&&"Tab"!==e.key}(n)){var i=null==t?void 0:t.ref.current;i&&(hm(i,n.type,n)||n.preventDefault(),n.currentTarget.contains(i)&&n.stopPropagation())}}),[e,t])}function ym(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var wm=B({name:"Composite",compose:[le],keys:fe,useOptions:function(e){return p(p({},e),{},{currentId:de(e)})},useProps:function(e,t){var n=t.ref,r=t.onFocusCapture,o=t.onFocus,i=t.onBlurCapture,a=t.onKeyDown,s=t.onKeyDownCapture,l=t.onKeyUpCapture,c=m(t,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),u=(0,v.useRef)(null),d=qp(e.items,e.currentId),f=(0,v.useRef)(null),h=G(r),g=G(o),b=G(i),y=G(a),w=function(e){var t=G(e),n=(0,v.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return(0,v.useEffect)((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.ref.current;r&&n&&he(n)}),[r]),o}(d),x=vm?function(e){var t=(0,v.useRef)(null);return(0,v.useEffect)((function(){var n=H(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(u):void 0;(0,v.useEffect)((function(){var t=u.current;e.unstable_moves&&!d&&(null==t||t.focus())}),[e.unstable_moves,d]);var E=bm(e.unstable_virtual,d,s),_=bm(e.unstable_virtual,d,l),C=(0,v.useCallback)((function(t){var n;if(null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==x?void 0:x.current)||t.relatedTarget,o=ym(e.items,r);K(t)&&o&&(t.stopPropagation(),f.current=r)}}),[e.unstable_virtual,e.items]),S=(0,v.useCallback)((function(t){var n;if(null===(n=g.current)||void 0===n||n.call(g,t),!t.defaultPrevented)if(e.unstable_virtual)K(t)&&w();else if(K(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),k=(0,v.useCallback)((function(t){var n;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==d?void 0:d.ref.current)||null,o=function(e){return gm?q(e.currentTarget):e.relatedTarget}(t),i=ym(e.items,o);if(K(t)&&i)o===r?f.current&&f.current!==o&&mm(f.current,t):r&&mm(r,t),t.stopPropagation();else!ym(e.items,t.target)&&r&&mm(r,t)}}),[e.unstable_virtual,e.items,d]),T=(0,v.useCallback)((function(t){var n,r;if(null===(n=y.current)||void 0===n||n.call(y,t),!t.defaultPrevented&&null===e.currentId&&K(t)){var o="horizontal"!==e.orientation,i="vertical"!==e.orientation,a=!(null===(r=e.groups)||void 0===r||!r.length),s={ArrowUp:(a||o)&&function(){if(a){var t,n=ue(Gp(Kp(Up(e.items))));if(null!=n&&n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}},ArrowRight:(a||i)&&e.first,ArrowDown:(a||o)&&e.first,ArrowLeft:(a||i)&&e.last,Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last},l=s[t.key];l&&(t.preventDefault(),l())}}),[e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return p({ref:V(u,n),id:e.baseId,onFocus:S,onFocusCapture:C,onBlurCapture:k,onKeyDownCapture:E,onKeyDown:T,onKeyUpCapture:_,"aria-activedescendant":e.unstable_virtual&&(null==d?void 0:d.id)||void 0},c)},useComposeProps:function(e,t){t=re(e,t,!0);var n=le(e,t,!0);return e.unstable_virtual||null===e.currentId?p({tabIndex:0},n):p(p({},t),{},{ref:n.ref})}}),xm=z({as:"div",useHook:wm,useCreateElement:function(e,t,n){return R(e,t,n)}}),Em=B({name:"Group",compose:re,keys:[],useProps:function(e,t){return p({role:"group"},t)}}),_m=(z({as:"div",useHook:Em}),B({name:"CompositeGroup",compose:[Em,xe],keys:pe,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return Em.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,m(e,["currentId","unstable_moves"])),o=t.currentId,i=(t.unstable_moves,m(t,["currentId","unstable_moves"]));if(e.items&&t.items){var a=qp(e.items,n),s=qp(t.items,o),l=null==a?void 0:a.groupId,c=null==s?void 0:s.groupId;if(t.id===c||t.id===l)return!1}return Em.unstable_propsAreEqual(r,i)},useProps:function(e,t){var n=t.ref,r=m(t,["ref"]),o=(0,v.useRef)(null),i=e.id;return U((function(){var t;if(i)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:i,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,i)}}),[i,e.registerGroup,e.unregisterGroup]),p({ref:V(o,n)},r)}})),Cm=z({as:"div",useHook:_m});sd("div",{target:"erowt52"})({name:"ogl07i",styles:"box-sizing:border-box;padding:2px"});const Sm=sd("div",{target:"erowt51"})("transform-origin:top left;height:100%;width:100%;",zp,";",(()=>Zf({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(({disablePointerEvents:e})=>Zf({pointerEvents:e?"none":void 0},"","")),";"),km=sd("span",{target:"erowt50"})("height:2px;width:2px;",jp,";",(({isActive:e})=>Zf("box-shadow:",e?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}","")),";"),Tm=Hp;var Rm=function({className:e,disablePointerEvents:t=!0,size:n=24,style:r={},value:o="center",...i}){const s=function(e="center"){const t=Yf(e),n=qf.indexOf(t);return n>-1?n:void 0}(o),c=(n/24).toFixed(2),u=l()("component-alignment-matrix-control-icon",e),d={...r,transform:`scale(${c})`};return(0,a.createElement)(Sm,{...i,className:u,disablePointerEvents:t,role:"presentation",style:d},qf.map(((e,t)=>{const n=s===t;return(0,a.createElement)(Tm,{key:e},(0,a.createElement)(km,{isActive:n}))})))};const Pm=()=>{};function Mm({className:e,id:t,label:n=(0,c.__)("Alignment Matrix Control"),defaultValue:r="center center",value:o,onChange:i=Pm,width:s=92,...d}){const[f]=(0,a.useState)(null!=o?o:r),p=function(e){const t=(0,u.useInstanceId)(Mm,"alignment-matrix-control");return e||t}(t),m=Xf(p,f),h=fm({baseId:p,currentId:m,rtl:(0,c.isRTL)()}),{setCurrentId:g}=h;(0,a.useEffect)((()=>{void 0!==o&&g(Xf(p,o))}),[o,g,p]);const v=l()("component-alignment-matrix-control",e);return(0,a.createElement)(xm,{...d,...h,"aria-label":n,as:Fp,className:v,role:"grid",size:s},Gf.map(((e,t)=>(0,a.createElement)(Cm,{...h,as:Bp,role:"row",key:t},e.map((e=>{const t=Xf(p,e),n=h.currentId===t;return(0,a.createElement)($p,{...h,id:t,isActive:n,key:e,value:e,onFocus:()=>{i(e)},tabIndex:n?0:-1})}))))))}Mm.Icon=Rm;var Im=Mm;function Nm(e){return"appear"===e?"top":"left"}function Om(e){if("loading"===e.type)return l()("components-animate__loading");const{type:t,origin:n=Nm(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return l()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?l()("components-animate__slide-in","is-from-"+n):void 0}var Dm=function({type:e,options:t={},children:n}){return n({className:Om({type:e,...t})})};function Am(){const e=(0,v.useRef)(!1);return Bt((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class Lm extends v.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function zm({children:e,isPresent:t}){const n=(0,v.useId)(),r=(0,v.useRef)(null),o=(0,v.useRef)({width:0,height:0,top:0,left:0});return(0,v.useInsertionEffect)((()=>{const{width:e,height:i,top:a,left:s}=o.current;if(t||!r.current||!e||!i)return;r.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${i}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),v.createElement(Lm,{isPresent:t,childRef:r,sizeRef:o},v.cloneElement(e,{ref:r}))}const Fm=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Jt(Bm),l=(0,v.useId)(),c=(0,v.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:e=>{s.set(e,!0);for(const e of s.values())if(!e)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))})),i?void 0:[n]);return(0,v.useMemo)((()=>{s.forEach(((e,t)=>s.set(t,!1)))}),[n]),v.useEffect((()=>{!n&&!s.size&&r&&r()}),[n]),"popLayout"===a&&(e=v.createElement(zm,{isPresent:n},e)),v.createElement(Ft.Provider,{value:c},e)};function Bm(){return new Map}const jm=e=>e.key||"";const Vm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{no(!o,"Replace exitBeforeEnter with mode='wait'");let[s]=function(){const e=Am(),[t,n]=(0,v.useState)(0),r=(0,v.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,v.useCallback)((()=>Ar.postRender(r)),[r]),t]}();const l=(0,v.useContext)(tn).forceRender;l&&(s=l);const c=Am(),u=function(e){const t=[];return v.Children.forEach(e,(e=>{(0,v.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const f=new Set,p=(0,v.useRef)(d),m=(0,v.useRef)(new Map).current,h=(0,v.useRef)(!0);var g;if(Bt((()=>{h.current=!1,function(e,t){e.forEach((e=>{const n=jm(e);t.set(n,e)}))}(u,m),p.current=d})),g=()=>{h.current=!0,m.clear(),f.clear()},(0,v.useEffect)((()=>()=>g()),[]),h.current)return v.createElement(v.Fragment,null,d.map((e=>v.createElement(Fm,{key:jm(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:a},e))));d=[...d];const b=p.current.map(jm),y=u.map(jm),w=b.length;for(let e=0;e<w;e++){const t=b[e];-1===y.indexOf(t)&&f.add(t)}return"wait"===a&&f.size&&(d=[]),f.forEach((e=>{if(-1!==y.indexOf(e))return;const n=m.get(e);if(!n)return;const o=b.indexOf(e);d.splice(o,0,v.createElement(Fm,{key:jm(n),isPresent:!1,onExitComplete:()=>{m.delete(e),f.delete(e);const t=p.current.findIndex((t=>t.key===e));if(p.current.splice(t,1),!f.size){if(p.current=u,!1===c.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:i,mode:a},n))})),d=d.map((e=>{const t=e.key;return f.has(t)?e:v.createElement(Fm,{key:jm(e),isPresent:!0,presenceAffectsLayout:i,mode:a},e)})),v.createElement(v.Fragment,null,f.size?d:d.map((e=>(0,v.cloneElement)(e))))},Hm=(0,a.createContext)({flexItemDisplay:void 0}),$m=()=>(0,a.useContext)(Hm);const Wm={name:"zjik7",styles:"display:flex"},Um={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},Gm={name:"82a6rk",styles:"flex:1"},Km={name:"13nosa1",styles:">*{min-height:0;}"},qm={name:"1pwxzk4",styles:">*{min-width:0;}"};function Ym(e){const{className:t,display:n,isBlock:r=!1,...o}=Gu(e,"FlexItem"),i={},a=$m().flexItemDisplay;i.Base=Zf({display:n||a},"","");return{...o,className:Uu()(Um,i.Base,r&&Gm,t)}}var Xm=Ku((function(e,t){const n=function(e){return Ym({isBlock:!0,...Gu(e,"FlexBlock")})}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"FlexBlock");const Zm="4px";function Jm(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(${Zm} * ${e})`}const Qm=new RegExp(/-left/g),eh=new RegExp(/-right/g),th=new RegExp(/Left/g),nh=new RegExp(/Right/g);function rh(e){return"left"===e?"right":"right"===e?"left":Qm.test(e)?e.replace(Qm,"-right"):eh.test(e)?e.replace(eh,"-left"):th.test(e)?e.replace(th,"Right"):nh.test(e)?e.replace(nh,"Left"):e}const oh=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[rh(e),t])));function ih(e={},t){return()=>t?(0,c.isRTL)()?Zf(t,""):Zf(e,""):(0,c.isRTL)()?Zf(oh(e),""):Zf(e,"")}ih.watch=()=>(0,c.isRTL)();const ah=e=>null!=e;const sh=Ku((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:a,marginX:s,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:p,paddingX:m,paddingY:h,...g}=Gu(e,"Spacer");return{...g,className:Uu()(ah(n)&&Zf("margin:",Jm(n),";",""),ah(l)&&Zf("margin-bottom:",Jm(l),";margin-top:",Jm(l),";",""),ah(s)&&Zf("margin-left:",Jm(s),";margin-right:",Jm(s),";",""),ah(a)&&Zf("margin-top:",Jm(a),";",""),ah(r)&&Zf("margin-bottom:",Jm(r),";",""),ah(o)&&ih({marginLeft:Jm(o)})(),ah(i)&&ih({marginRight:Jm(i)})(),ah(c)&&Zf("padding:",Jm(c),";",""),ah(h)&&Zf("padding-bottom:",Jm(h),";padding-top:",Jm(h),";",""),ah(m)&&Zf("padding-left:",Jm(m),";padding-right:",Jm(m),";",""),ah(p)&&Zf("padding-top:",Jm(p),";",""),ah(u)&&Zf("padding-bottom:",Jm(u),";",""),ah(d)&&ih({paddingLeft:Jm(d)})(),ah(f)&&ih({paddingRight:Jm(f)})(),t)}}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"Spacer");var lh=sh;var ch=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var uh=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M7 11.5h10V13H7z"}));const dh=["40em","52em","64em"],fh=(e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>dh.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${dh.length} breakpoints, got index ${t}`);const[n,r]=(0,a.useState)(t);return(0,a.useEffect)((()=>{const e=()=>{const e=dh.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n};function ph(e,t={}){const n=fh(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}function mh(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:s="space-between",wrap:l=!1,...c}=Gu(function(e){const{isReversed:t,...n}=e;return void 0!==t?($l()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=ph(Array.isArray(r)?r:[r]),d="string"==typeof u&&!!u.includes("column"),f=Uu();return{...c,className:(0,a.useMemo)((()=>{const e=Zf({alignItems:null!=t?t:d?"normal":"center",flexDirection:u,flexWrap:l?"wrap":void 0,gap:Jm(i),justifyContent:s,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0},"","");return f(Wm,e,d?Km:qm,n)}),[t,n,f,u,o,i,d,s,l]),isColumn:d}}var hh=Ku((function(e,t){const{children:n,isColumn:r,...o}=mh(e);return(0,a.createElement)(Hm.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,a.createElement)(cd,{...o,ref:t},n))}),"Flex");var gh=Ku((function(e,t){const n=Ym(e);return(0,a.createElement)(cd,{...n,ref:t})}),"FlexItem");const vh={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function bh(e){return null!=e}const yh=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,wh="…",xh={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Eh={ellipsis:wh,ellipsizeMode:xh.auto,limit:0,numberOfLines:0};function _h(e="",t){const n={...Eh,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===xh.none)return e;let a,s;switch(o){case xh.head:a=0,s=i;break;case xh.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}const l=o!==xh.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=bh(r)?r:wh;return 0===i&&0===a||i>=o||a>=o||i+a>=o?e:0===a?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-a)}(e,a,s,r):e;return l}function Ch(e){const{className:t,children:n,ellipsis:r=wh,ellipsizeMode:o=xh.auto,limit:i=0,numberOfLines:s=0,...l}=Gu(e,"Truncate"),c=Uu(),u=_h("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:s}),d=o===xh.auto;return{...l,className:(0,a.useMemo)((()=>c(d&&!s&&vh,d&&!!s&&Zf("-webkit-box-orient:vertical;-webkit-line-clamp:",s,";display:-webkit-box;overflow:hidden;",""),t)),[t,c,s,d]),children:u}}let Sh;Tp([Rp]);const kh=hc((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&Sp(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!Sh){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Sh=e}return Sh}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function Th(e){const t=function(e){const t=kh(e);return Sp(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const Rh="36px",Ph="12px",Mh={controlSurfaceColor:Dp.white,controlTextActiveColor:Dp.ui.theme,controlPaddingX:Ph,controlPaddingXLarge:`calc(${Ph} * 1.3334)`,controlPaddingXSmall:`calc(${Ph} / 1.3334)`,controlBackgroundColor:Dp.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${Dp.ui.theme}`,controlDestructiveBorderColor:Dp.alert.red,controlHeight:Rh,controlHeightXSmall:`calc( ${Rh} * 0.6 )`,controlHeightSmall:`calc( ${Rh} * 0.8 )`,controlHeightLarge:`calc( ${Rh} * 1.2 )`,controlHeightXLarge:`calc( ${Rh} * 1.4 )`},Ih={toggleGroupControlBackgroundColor:Mh.controlBackgroundColor,toggleGroupControlBorderColor:Dp.ui.border,toggleGroupControlBackdropBackgroundColor:Mh.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Dp.ui.border,toggleGroupControlButtonColorActive:Mh.controlBackgroundColor};var Nh=Object.assign({},Mh,Ih,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${Jm(2)}`,cardPaddingSmall:`${Jm(4)}`,cardPaddingMedium:`${Jm(4)} ${Jm(6)}`,cardPaddingLarge:`${Jm(6)} ${Jm(8)}`,popoverShadow:"0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)",surfaceBackgroundColor:Dp.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Dp.white,surfaceColor:Dp.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});const Oh=Zf("color:",Dp.gray[900],";line-height:",Nh.fontLineHeightBase,";margin:0;",""),Dh={name:"4zleql",styles:"display:block"},Ah=Zf("color:",Dp.alert.green,";",""),Lh=Zf("color:",Dp.alert.red,";",""),zh=Zf("color:",Dp.gray[700],";",""),Fh=Zf("mark{background:",Dp.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),Bh={name:"50zrmy",styles:"text-transform:uppercase"};var jh=o(3138);const Vh=hc((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const Hh=13,$h={body:Hh,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Wh=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function Uh(e=Hh){if(e in $h)return Uh($h[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${Hh})`} * ${Nh.fontSize})`}function Gh(e=3){if(!Wh.includes(e))return Uh(e);return Nh[`fontSizeH${e}`]}var Kh={name:"50zrmy",styles:"text-transform:uppercase"};function qh(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:s,ellipsizeMode:l,isDestructive:c=!1,display:u,highlightEscape:d=!1,highlightCaseSensitive:f=!1,highlightWords:p,highlightSanitize:m,isBlock:h=!1,letterSpacing:g,lineHeight:v,optimizeReadabilityFor:b,size:y,truncate:w=!1,upperCase:x=!1,variant:E,weight:_=Nh.fontWeight,...C}=Gu(t,"Text");let S=o;const k=Array.isArray(p),T="caption"===y;if(k){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");S=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:s,highlightClassName:l="",highlightStyle:c={},highlightTag:u="mark",sanitize:d,searchWords:f=[],unhighlightClassName:p="",unhighlightStyle:m}){if(!i)return null;if("string"!=typeof i)return i;const h=i,g=(0,jh.findAll)({autoEscape:r,caseSensitive:o,findChunks:s,sanitize:d,searchWords:f,textToHighlight:h}),v=u;let b,y=-1,w="";const x=g.map(((r,i)=>{const s=h.substr(r.start,r.end-r.start);if(r.highlight){let r;y++,r="object"==typeof l?o?l[s]:(l=Vh(l))[s.toLowerCase()]:l;const u=y===+t;w=`${r} ${u?e:""}`,b=!0===u&&null!==n?Object.assign({},c,n):c;const d={children:s,className:w,key:i,style:b};return"string"!=typeof v&&(d.highlightIndex=y),(0,a.createElement)(v,d)}return(0,a.createElement)("span",{children:s,className:p,key:i,style:m})}));return x}({autoEscape:d,children:o,caseSensitive:f,searchWords:p,sanitize:m})}const R=Uu();let P;!0===w&&(P="auto"),!1===w&&(P="none");const M=Ch({...C,className:(0,a.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Nh.controlHeight} + ${Jm(2)})`;switch(e){case"large":n=`calc(${Nh.controlHeightLarge} + ${Jm(2)})`;break;case"small":n=`calc(${Nh.controlHeightSmall} + ${Jm(2)})`;break;case"xSmall":n=`calc(${Nh.controlHeightXSmall} + ${Jm(2)})`}return n}(n,v);if(t.Base=Zf({color:s,display:u,fontSize:Uh(y),fontWeight:_,lineHeight:o,letterSpacing:g,textAlign:r},"",""),t.upperCase=Kh,t.optimalTextColor=null,b){const e="dark"===Th(b);t.optimalTextColor=Zf(e?{color:Dp.gray[900]}:{color:Dp.white},"","")}return R(Oh,t.Base,t.optimalTextColor,c&&Lh,!!k&&Fh,h&&Dh,T&&zh,E&&e[E],x&&t.upperCase,i)}),[n,r,i,s,R,u,h,T,c,k,g,v,b,y,x,E,_]),children:o,ellipsizeMode:l||P});return!w&&Array.isArray(o)&&(S=a.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return Zu(e,["Link"])?(0,a.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...M,children:w?M.children:S}}var Yh=Ku((function(e,t){const n=qh(e);return(0,a.createElement)(cd,{as:"span",...n,ref:t})}),"Text");const Xh={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};var Zh={name:"1739oy8",styles:"z-index:1"};const Jh=({isFocused:e})=>e?Zh:"",Qh=sd(hh,{target:"em5sgkm7"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;",Jh,";");var eg={name:"1d3w5wq",styles:"width:100%"};const tg=sd("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(({disabled:e})=>Zf({backgroundColor:e?Dp.ui.backgroundDisabled:Dp.ui.background},"",""))," ",(({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":Zf("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):eg),";"),ng=({inputSize:e,__next36pxDefaultSize:t})=>{const n={default:{height:36,lineHeight:1,minHeight:36,paddingLeft:Jm(4),paddingRight:Jm(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:Jm(2),paddingRight:Jm(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:Jm(4),paddingRight:Jm(4)}};return t||(n.default={height:30,lineHeight:1,minHeight:30,paddingLeft:Jm(2),paddingRight:Jm(2)}),n[e]||n.default},rg=sd("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Dp.gray[900],";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=Zf("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=Zf("&:active{cursor:",t,";}","")),Zf(n," ",r,";","")})," ",(({disabled:e})=>e?Zf({color:Dp.ui.textDisabled},"",""):"")," ",(({inputSize:e})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"},n=t[e]||t.default;return n?Zf("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""})," ",(e=>Zf(ng(e),"",""))," ",(({paddingInlineStart:e,paddingInlineEnd:t})=>Zf({paddingInlineStart:e,paddingInlineEnd:t},"",""))," &::-webkit-input-placeholder{line-height:normal;}}"),og=sd(Yh,{target:"em5sgkm4"})("&&&{",Xh,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),ig=e=>(0,a.createElement)(og,{...e,as:"label"}),ag=sd(gh,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),sg=sd("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(({disabled:e,isFocused:t})=>{let n,r,o,i=t?Dp.ui.borderFocus:Dp.ui.border;return t&&(n=`0 0 0 1px ${Dp.ui.borderFocus} inset`,r="2px solid transparent",o="-2px"),e&&(i=Dp.ui.borderDisabled),Zf({boxShadow:n,borderColor:i,borderStyle:"solid",borderWidth:1,outline:r,outlineOffset:o},"","")})," ",ih({paddingLeft:2}),";}"),lg=sd("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),cg=sd("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const ug=(0,a.memo)((function({disabled:e=!1,isFocused:t=!1}){return(0,a.createElement)(sg,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isFocused:t})}));var dg=ug;function fg({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,a.createElement)(ud,{as:"label",htmlFor:n},e):(0,a.createElement)(ag,null,(0,a.createElement)(ig,{htmlFor:n,...r},e)):null}function pg(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}function mg({__next36pxDefaultSize:e,__unstableInputWidth:t,children:n,className:r,disabled:o=!1,hideLabelFromVision:i=!1,labelPosition:s,id:l,isFocused:c=!1,label:d,prefix:f,size:p="default",suffix:m,...h},g){const v=function(e){const t=(0,u.useInstanceId)(mg);return e||`input-base-control-${t}`}(l),b=i||!d,{paddingLeft:y,paddingRight:w}=ng({inputSize:p,__next36pxDefaultSize:e}),x=(0,a.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:y},InputControlSuffixWrapper:{paddingRight:w}})),[y,w]);return(0,a.createElement)(Qh,{...h,...pg(s),className:r,gap:2,isFocused:c,labelPosition:s,ref:g},(0,a.createElement)(fg,{className:"components-input-control__label",hideLabelFromVision:i,labelPosition:s,htmlFor:v},d),(0,a.createElement)(tg,{__unstableInputWidth:t,className:"components-input-control__container",disabled:o,hideLabel:b,labelPosition:s},(0,a.createElement)(nc,{value:x},f&&(0,a.createElement)(lg,{className:"components-input-control__prefix"},f),n,m&&(0,a.createElement)(cg,{className:"components-input-control__suffix"},m)),(0,a.createElement)(dg,{disabled:o,isFocused:c})))}var hg=(0,a.forwardRef)(mg);const gg={toVector(e,t){return void 0===e&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function vg(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function bg(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-vg(t-e,n-t,r)+t:e>n?+vg(e-n,n-t,r)+n:e}function yg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function wg(e,t,n){return(t=yg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xg(Object(n),!0).forEach((function(t){wg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const _g={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Cg(e){return e?e[0].toUpperCase()+e.slice(1):""}const Sg=["enter","leave"];function kg(e,t="",n=!1){const r=_g[e],o=r&&r[t]||t;return"on"+Cg(e)+Cg(o)+(function(e=!1,t){return e&&!Sg.includes(t)}(n,o)?"Capture":"")}const Tg=["gotpointercapture","lostpointercapture"];function Rg(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=Tg.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function Pg(e){return"touches"in e}function Mg(e){return Pg(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Ig(e){return Pg(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function Ng(e){return function(e){return Array.from(e.touches).filter((t=>{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}))}(e).map((e=>e.identifier))}function Og(e){const t=Ig(e);return Pg(e)?t.identifier:t.pointerId}function Dg(e){const t=Ig(e);return[t.clientX,t.clientY]}function Ag(e,...t){return"function"==typeof e?e(...t):e}function Lg(){}function zg(...e){return 0===e.length?Lg:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function Fg(e,t){return Object.assign({},t,e||{})}class Bg{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?Ag(n.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=e.timeStamp)}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const e=t._delta.map(Math.abs);gg.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,a]=t._movement,[s,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=s&&u[0]),!1===c[1]&&(c[1]=Math.abs(a)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=s&&Math.sign(i)*s),!1===c[1]&&(c[1]=Math.abs(a)>=l&&Math.sign(a)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?i-c[0]:0,d[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const f=t.offset,p=t._active&&!t._blocked||t.active;p&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=Ag(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[m,h]=t.offset,[[g,v],[b,y]]=t._bounds;t.overflow=[m<g?-1:m>v?1:0,h<b?-1:h>y?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const w=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[bg(t,i,a,r),bg(n,s,l,o)]}(t._bounds,t.offset,w),t.delta=gg.sub(t.offset,f),this.computeMovement(),p&&(!t.last||o>32)){t.delta=gg.sub(t.offset,f);const e=t.delta.map(Math.abs);gg.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o],t.timeDelta=o)}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(Eg(Eg(Eg({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class jg extends Bg{constructor(...e){super(...e),wg(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=gg.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=gg.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const r="object"==typeof n.axisThreshold?n.axisThreshold[Mg(e)]:n.axisThreshold;t.axis=function([e,t],n){const r=Math.abs(e),o=Math.abs(t);return r>o&&r>n?"x":o>r&&o>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}const Vg=e=>e,Hg={enabled(e=!0){return e},eventOptions(e,t,n){return Eg(Eg({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return gg.toVector(e)}},from(e){return"function"==typeof e?e:null!=e?gg.toVector(e):void 0},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Vg},threshold(e){return gg.toVector(e,0)}};const $g=Eg(Eg({},Hg),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold(e=0){return e},bounds(e={}){if("function"==typeof e)return t=>$g.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),Wg={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};const Ug="undefined"!=typeof window&&window.document&&window.document.createElement;function Gg(){return Ug&&"ontouchstart"in window||Ug&&window.navigator.maxTouchPoints>1}const Kg={isBrowser:Ug,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:Gg(),touchscreen:Gg(),pointer:Ug&&"onpointerdown"in window,pointerLock:Ug&&"exitPointerLock"in window.document},qg={mouse:0,touch:0,pen:8},Yg=Eg(Eg({},$g),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Kg.pointerLock,Kg.touch&&n?"touch":this.pointerLock?"mouse":Kg.pointer&&!o?"pointer":Kg.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,Kg.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&"pointer"===this.device&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o}){const i=gg.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(gg.toVector(e)),distance:this.transform(gg.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold(e){return e?Eg(Eg({},qg),e):qg},keyboardDisplacement(e=10){return e}});Eg(Eg({},Hg),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Kg.touch&&Kg.gesture)return"gesture";if(Kg.touch&&r)return"touch";if(Kg.touchscreen){if(Kg.pointer)return"pointer";if(Kg.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=Fg(Ag(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=Fg(Ag(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[o(),i()]:e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection="lock"===n.axis;return gg.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return void 0===e?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Eg(Eg({},$g),{},{mouseOnly:(e=!0)=>e});const Xg=Eg(Eg({},$g),{},{mouseOnly:(e=!0)=>e}),Zg=new Map,Jg=new Map;function Qg(e){Zg.set(e.key,e.engine),Jg.set(e.key,e.resolver)}const ev={key:"drag",engine:class extends jg{constructor(...e){super(...e),wg(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=$g.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=Og(e),n._pointerActive=!0,this.computeValues(Dg(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==Mg(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;const r=Og(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=Dg(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=gg.sub(o,t._values),this.computeValues(o)),gg.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):n.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){0}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=Og(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t._delta,[o,i]=t._movement,[a,s]=n.swipe.velocity,[l,c]=n.swipe.distance,u=n.swipe.duration;if(t.elapsedTime<u){const n=Math.abs(e/t.timeDelta),u=Math.abs(r/t.timeDelta);n>a&&Math.abs(o)>l&&(t.swipe[0]=Math.sign(e)),u>s&&Math.abs(i)>c&&(t.swipe[1]=Math.sign(r))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=Wg[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,gg.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Wg&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:Yg},tv={key:"hover",engine:class extends jg{constructor(...e){super(...e),wg(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(Dg(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&"mouse"!==e.pointerType)return;const t=this.state;if(!t._active)return;t._active=!1;const n=Dg(e);t._movement=t._delta=gg.sub(n,t._values),this.computeValues(n),this.compute(e),t.delta=t.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}},resolver:Xg};function nv(e,t){if(null==e)return{};var n,r,o=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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const rv={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=(Kg.isBrowser?window:void 0)){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},ov=["target","eventOptions","window","enabled","transform"];function iv(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=iv(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class av{constructor(e,t){wg(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,a=function(e,t=""){const n=_g[e];return e+(n&&n[t]||t)}(t,n),s=Eg(Eg({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(a,r,s);const l=()=>{e.removeEventListener(a,r,s),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class sv{constructor(){wg(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}}class lv{constructor(e){wg(this,"gestures",new Set),wg(this,"_targetEventStore",new av(this)),wg(this,"gestureEventStores",{}),wg(this,"gestureTimeoutStores",{}),wg(this,"handlers",{}),wg(this,"config",{}),wg(this,"pointerIds",new Set),wg(this,"touchIds",new Set),wg(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&cv(e,"drag");t.wheel&&cv(e,"wheel");t.scroll&&cv(e,"scroll");t.move&&cv(e,"move");t.pinch&&cv(e,"pinch");t.hover&&cv(e,"hover")}(this,e)}setEventIds(e){return Pg(e)?(this.touchIds=new Set(Ng(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){const r=e,{target:o,eventOptions:i,window:a,enabled:s,transform:l}=r,c=nv(r,ov);if(n.shared=iv({target:o,eventOptions:i,window:a,enabled:s,transform:l},rv),t){const e=Jg.get(t);n[t]=iv(Eg({shared:n.shared},c),e)}else for(const e in c){const t=Jg.get(e);t&&(n[e]=iv(Eg({shared:n.shared},c[e]),t))}return n}(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let r;if(!t.target||(r=t.target(),r)){if(t.enabled){for(const t of this.gestures){const o=this.config[t],i=uv(n,o.eventOptions,!!r);if(o.enabled){new(Zg.get(t))(this,e,t).bind(i)}}const o=uv(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](Eg(Eg({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=zg(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=Rg(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function cv(e,t){e.gestures.add(t),e.gestureEventStores[t]=new av(e,t),e.gestureTimeoutStores[t]=new sv}const uv=(e,t,n)=>(r,o,i,a={},s=!1)=>{var l,c;const u=null!==(l=a.capture)&&void 0!==l?l:t.capture,d=null!==(c=a.passive)&&void 0!==c?c:t.passive;let f=s?r:kg(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function dv(e,t={},n,r){const o=y().useMemo((()=>new lv(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),y().useEffect(o.effect.bind(o)),y().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}const fv=e=>e,pv={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},mv="CHANGE",hv="COMMIT",gv="CONTROL",vv="DRAG_END",bv="DRAG_START",yv="DRAG",wv="INVALIDATE",xv="PRESS_DOWN",Ev="PRESS_ENTER",_v="PRESS_UP",Cv="RESET";function Sv(e=fv,t=pv,n){const[r,o]=(0,a.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case gv:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case _v:case xv:n.isDirty=!1;break;case bv:n.isDragging=!0;break;case vv:n.isDragging=!1;break;case mv:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case hv:n.value=t.payload.value,n.isDirty=!1;break;case Cv:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case wv:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=pv){const{value:t}=e;return{...pv,...e,initialValue:t}}(t));var i;const s=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},l=e=>t=>{o({type:e,payload:{event:t}})},c=e=>t=>{o({type:e,payload:t})},u=s(mv),d=s(Cv),f=s(hv),p=c(bv),m=c(yv),h=c(vv),g=l(_v),v=l(xv),b=l(Ev),y=(0,a.useRef)(r),w=(0,a.useRef)({value:t.value,onChangeHandler:n});return(0,a.useLayoutEffect)((()=>{y.current=r,w.current={value:t.value,onChangeHandler:n}})),(0,a.useLayoutEffect)((()=>{var e;void 0===y.current._event||r.value===w.current.value||r.isDirty||w.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:y.current._event})}),[r.value,r.isDirty]),(0,a.useLayoutEffect)((()=>{var e;t.value===y.current.value||y.current.isDirty||o({type:gv,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:u,commit:f,dispatch:o,drag:m,dragEnd:h,dragStart:p,invalidate:(e,t)=>o({type:wv,payload:{error:e,event:t}}),pressDown:v,pressEnter:b,pressUp:g,reset:d,state:r}}const kv=()=>{};const Tv=(0,a.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isFocused:i,isPressEnterToChange:s=!1,onBlur:l=kv,onChange:c=kv,onDrag:u=kv,onDragEnd:d=kv,onDragStart:f=kv,onFocus:p=kv,onKeyDown:m=kv,onValidate:h=kv,size:g="default",setIsFocused:v,stateReducer:b=(e=>e),value:y,type:w,...x},E){const{state:_,change:C,commit:S,drag:k,dragEnd:T,dragStart:R,invalidate:P,pressDown:M,pressEnter:I,pressUp:N,reset:O}=Sv(b,{isDragEnabled:o,value:y,isPressEnterToChange:s},c),{value:D,isDragging:A,isDirty:L}=_,z=(0,a.useRef)(!1),F=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,a.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(A,t),B=e=>{const t=e.currentTarget.value;try{h(t),S(t,e)}catch(t){P(t,e)}},j=(V=e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return d(e),void T(e);u(e),k(e),A||(f(e),R(e))}},H={axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:o,pointer:{capture:!1}},Qg(ev),dv({drag:V},H||{},"drag"));var V,H;const $=o?j():{};let W;return"number"===w&&(W=e=>{x.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,a.createElement)(rg,{...x,...$,className:"components-input-control__input",disabled:e,dragCursor:F,isDragging:A,id:r,onBlur:e=>{l(e),v?.(!1),!L&&e.target.validity.valid||(z.current=!0,B(e))},onChange:e=>{const t=e.target.value;C(t,e)},onFocus:e=>{p(e),v?.(!0)},onKeyDown:e=>{const{key:t}=e;switch(m(e),t){case"ArrowUp":N(e);break;case"ArrowDown":M(e);break;case"Enter":I(e),s&&(e.preventDefault(),B(e));break;case"Escape":s&&L&&(e.preventDefault(),O(y,e))}},onMouseDown:W,ref:E,inputSize:g,value:null!=D?D:"",type:w})}));var Rv=Tv,Pv={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function Mv(e){var t;return null!==(t=Pv[e])&&void 0!==t?t:""}const Iv={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const Nv=sd("div",{target:"ej5x27r4"})("font-family:",Mv("default.fontFamily"),";font-size:",Mv("default.fontSize"),";",Iv,";"),Ov=sd("div",{target:"ej5x27r3"})((({__nextHasNoMarginBottom:e=!1})=>!e&&Zf("margin-bottom:",Jm(2),";",""))," .components-panel__row &{margin-bottom:inherit;}"),Dv=Zf(Xh,";display:inline-block;margin-bottom:",Jm(2),";padding:0;",""),Av=sd("label",{target:"ej5x27r2"})(Dv,";");var Lv={name:"11yad0w",styles:"margin-bottom:revert"};const zv=sd("p",{target:"ej5x27r1"})("margin-top:",Jm(2),";margin-bottom:0;font-size:",Mv("helpText.fontSize"),";font-style:normal;color:",Dp.gray[700],";",(({__nextHasNoMarginBottom:e=!1})=>!e&&Lv),";"),Fv=sd("span",{target:"ej5x27r0"})(Dv,";"),Bv=({__nextHasNoMarginBottom:e=!1,id:t,label:n,hideLabelFromVision:r=!1,help:o,className:i,children:s})=>(0,a.createElement)(Nv,{className:l()("components-base-control",i)},(0,a.createElement)(Ov,{className:"components-base-control__field",__nextHasNoMarginBottom:e},n&&t&&(r?(0,a.createElement)(ud,{as:"label",htmlFor:t},n):(0,a.createElement)(Av,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?(0,a.createElement)(ud,{as:"label"},n):(0,a.createElement)(Bv.VisualLabel,null,n)),s),!!o&&(0,a.createElement)(zv,{id:t?t+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:e},o));Bv.VisualLabel=({className:e,children:t,...n})=>(0,a.createElement)(Fv,{...n,className:l()("components-base-control__label",e)},t);var jv=Bv;const Vv=()=>{};const Hv=(0,a.forwardRef)((function({__next36pxDefaultSize:e,__unstableStateReducer:t=(e=>e),__unstableInputWidth:n,className:r,disabled:o=!1,help:i,hideLabelFromVision:s=!1,id:c,isPressEnterToChange:d=!1,label:f,labelPosition:p="top",onChange:m=Vv,onValidate:h=Vv,onKeyDown:g=Vv,prefix:v,size:b="default",style:y,suffix:w,value:x,...E},_){const[C,S]=(0,a.useState)(!1),k=function(e){const t=(0,u.useInstanceId)(Hv);return e||`inspector-input-control-${t}`}(c),T=l()("components-input-control",r),R=function(e){const t=(0,a.useRef)(e.value),[n,r]=(0,a.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,a.useLayoutEffect)((()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})}),[e.value,n]),{value:o,onBlur:t=>{r({}),e.onBlur?.(t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:x,onBlur:E.onBlur,onChange:m}),P=i?{["string"==typeof i?"aria-describedby":"aria-details"]:`${k}__help`}:{};return(0,a.createElement)(jv,{className:T,help:i,id:k,__nextHasNoMarginBottom:!0},(0,a.createElement)(hg,{__next36pxDefaultSize:e,__unstableInputWidth:n,disabled:o,gap:3,hideLabelFromVision:s,id:k,isFocused:C,justify:"left",label:f,labelPosition:p,prefix:v,size:b,style:y,suffix:w},(0,a.createElement)(Rv,{...E,...P,__next36pxDefaultSize:e,className:"components-input-control__input",disabled:o,id:k,isFocused:C,isPressEnterToChange:d,onKeyDown:g,onValidate:h,paddingInlineStart:v?Jm(2):void 0,paddingInlineEnd:w?Jm(2):void 0,ref:_,setIsFocused:S,size:b,stateReducer:t,...R})))}));var $v=Hv;var Wv={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const Uv=({hideHTMLArrows:e})=>e?Wv:"",Gv=sd($v,{target:"ep09it41"})(Uv,";"),Kv=sd(pd,{target:"ep09it40"})("&&&&&{color:",Dp.ui.theme,";}"),qv={smallSpinButtons:Zf("width:",Jm(5),";min-width:",Jm(5),";height:",Jm(5),";","")};function Yv(e){const t=Number(e);return isNaN(t)?0:t}function Xv(...e){return e.reduce(((e,t)=>e+Yv(t)),0)}function Zv(e,t,n){const r=Yv(e);return Math.max(t,Math.min(r,n))}function Jv(e=0,t=1/0,n=1/0,r=1){const o=Yv(e),i=Yv(r),a=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),s=Zv(Math.round(o/i)*i,t,n);return a?Yv(s.toFixed(a)):s}const Qv={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},eb={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function tb(e){return"string"==typeof e?[e]:a.Children.toArray(e).filter((e=>(0,a.isValidElement)(e)))}function nb(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=Gu(e,"HStack"),s=function(e,t="row"){if(!bh(e))return{};const n="column"===t?eb:Qv;return e in n?n[e]:{align:e}}(t,r),l=tb(n).map(((e,t)=>{if(Zu(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,a.createElement)(gh,{isBlock:!0,key:r,...n.props})}return e}));return mh({children:l,direction:r,justify:"center",...s,...i,gap:o})}var rb=Ku((function(e,t){const n=nb(e);return(0,a.createElement)(cd,{...n,ref:t})}),"HStack");const ob=()=>{};const ib=(0,a.forwardRef)((function({__unstableStateReducer:e,className:t,dragDirection:n="n",hideHTMLArrows:r=!1,spinControls:o="native",isDragEnabled:i=!0,isShiftStepEnabled:s=!0,label:d,max:f=1/0,min:p=-1/0,required:m=!1,shiftStep:h=10,step:g=1,type:v="number",value:b,size:y="default",suffix:w,onChange:x=ob,...E},_){r&&($l()("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"}),o="none");const C=(0,a.useRef)(),S=(0,u.useMergeRefs)([C,_]),k="any"===g,T=k?1:yh(g),R=Jv(0,p,f,T),P=(e,t)=>k?Math.min(f,Math.max(p,yh(e))):Jv(e,p,f,null!=t?t:T),M="number"===v?"off":void 0,I=l()("components-number-control",t),N=Uu()("small"===y&&qv.smallSpinButtons),O=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&s,o=r?yh(h)*T:T;let i=function(e){const t=""===e;return!bh(e)||t}(e)?R:e;return"up"===t?i=Xv(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=Yv(t);return 0===n?r:e-r}),0)}(i,o)),P(i,r?o:void 0)},D=e=>t=>x(String(O(b,e,t)),{event:{...t,target:C.current}});return(0,a.createElement)(Gv,{autoComplete:M,inputMode:"numeric",...E,className:I,dragDirection:n,hideHTMLArrows:"native"!==o,isDragEnabled:i,label:d,max:f,min:p,ref:S,required:m,step:g,type:v,value:b,__unstableStateReducer:(t,r)=>{var o;const a=((e,t)=>{const r={...e},{type:o,payload:a}=t,l=a.event,u=r.value;if(o!==_v&&o!==xv||(r.value=O(u,o===_v?"up":"down",l)),o===yv&&i){const[e,t]=a.delta,o=a.shiftKey&&s,i=o?yh(h)*T:T;let l,d;switch(n){case"n":d=t,l=-1;break;case"e":d=e,l=(0,c.isRTL)()?-1:1;break;case"s":d=t,l=1;break;case"w":d=e,l=(0,c.isRTL)()?1:-1}if(0!==d){d=Math.ceil(Math.abs(d))*Math.sign(d);const e=d*i*l;r.value=P(Xv(u,e),o?i:void 0)}}if(o===Ev||o===hv){const e=!1===m&&""===u;r.value=e?u:P(u)}return r})(t,r);return null!==(o=e?.(a,r))&&void 0!==o?o:a},size:y,suffix:"custom"===o?(0,a.createElement)(a.Fragment,null,w,(0,a.createElement)(lh,{marginBottom:0,marginRight:2},(0,a.createElement)(rb,{spacing:1},(0,a.createElement)(Kv,{className:N,icon:ch,isSmall:!0,"aria-hidden":"true","aria-label":(0,c.__)("Increment"),tabIndex:-1,onClick:D("up")}),(0,a.createElement)(Kv,{className:N,icon:uh,isSmall:!0,"aria-hidden":"true","aria-label":(0,c.__)("Decrement"),tabIndex:-1,onClick:D("down")})))):w,onChange:x})}));var ab=ib;const sb=({__nextHasNoMarginBottom:e})=>e?"":Zf("margin-bottom:",Jm(2),";",""),lb=sd(hh,{target:"eln3bjz4"})(sb,";"),cb=sd("div",{target:"eln3bjz3"})("border-radius:50%;border:",Nh.borderWidth," solid ",Dp.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),ub=sd("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),db=sd("div",{target:"eln3bjz1"})("background:",Dp.ui.theme,";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),fb=sd(Yh,{target:"eln3bjz0"})("color:",Dp.ui.theme,";margin-right:",Jm(3),";");var pb=function({value:e,onChange:t,...n}){const r=(0,a.useRef)(null),o=(0,a.useRef)(),i=(0,a.useRef)(),s=e=>{if(void 0!==e&&(e.preventDefault(),e.target?.focus(),void 0!==o.current&&void 0!==t)){const{x:n,y:r}=o.current;t(function(e,t,n,r){const o=r-t,i=n-e,a=Math.atan2(o,i),s=Math.round(a*(180/Math.PI))+90;if(s<0)return 360+s;return s}(n,r,e.clientX,e.clientY))}},{startDrag:l,isDragging:c}=(0,u.__experimentalUseDragging)({onDragStart:e=>{(()=>{if(null===r.current)return;const e=r.current.getBoundingClientRect();o.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),s(e)},onDragMove:s,onDragEnd:s});return(0,a.useEffect)((()=>{c?(void 0===i.current&&(i.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=i.current||"",i.current=void 0)}),[c]),(0,a.createElement)(cb,{ref:r,onMouseDown:l,className:"components-angle-picker-control__angle-circle",...n},(0,a.createElement)(ub,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,a.createElement)(db,{className:"components-angle-picker-control__angle-circle-indicator"})))};var mb=(0,a.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,label:o=(0,c.__)("Angle"),onChange:i,value:s,...u}=e;n||$l()("Bottom margin styles for wp.components.AnglePickerControl",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const d=l()("components-angle-picker-control",r),f=(0,a.createElement)(fb,null,"°"),[p,m]=(0,c.isRTL)()?[f,null]:[null,f];return(0,a.createElement)(lb,{...u,ref:t,__nextHasNoMarginBottom:n,className:d,gap:2},(0,a.createElement)(Xm,null,(0,a.createElement)(ab,{label:o,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===i)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;i(t)},size:"__unstable-large",step:"1",value:s,spinControls:"none",prefix:p,suffix:m})),(0,a.createElement)(lh,{marginBottom:"1",marginTop:"auto"},(0,a.createElement)(pb,{"aria-hidden":"true",value:s,onChange:i})))})),hb=o(4793),gb=o.n(hb),vb=window.wp.richText,bb=window.wp.a11y;const yb=new RegExp(`[${["-","~","","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g"),wb=e=>gb()(e).toLocaleLowerCase().replace(yb,"-");function xb(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function Eb(e){return t=>{const[n,r]=(0,a.useState)([]);return(0,a.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,u.debounce)((()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then((n=>{if(o.canceled)return;const i=n.map(((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}))),a=new RegExp("(?:\\b|\\s|^)"+xb(t),"i");r(function(e,t=[],n=10){const r=[];for(let o=0;o<t.length;o++){const i=t[o];let{keywords:a=[]}=i;if("string"==typeof i.label&&(a=[...a,i.label]),a.some((t=>e.test(gb()(t))))&&(r.push(i),r.length===n))break}return r}(a,i))}));return o}),o?250:0),a=i();return()=>{i.cancel(),a&&(a.canceled=!0)}}),[t]),[n]}}function _b(e){const t=e.useItems?e.useItems:Eb(e);return function({filterValue:e,instanceId:n,listBoxId:r,className:o,selectedIndex:i,onChangeOptions:s,onSelect:d,onReset:f,reset:p,contentRef:m}){const[h]=t(e),g=(0,vb.useAnchor)({editableContentElement:m.current}),[v,b]=(0,a.useState)(!1),y=(0,a.useRef)(null),w=(0,u.useMergeRefs)([y,(0,u.useRefEffect)((e=>{m.current&&b(e.ownerDocument!==m.current.ownerDocument)}),[m])]);!function(e,t){(0,a.useEffect)((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}),[t])}(y,p);const x=(0,u.useDebounce)(bb.speak,500);if((0,a.useLayoutEffect)((()=>{s(h),function(t){x&&(t.length?x(e?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length):(0,c.sprintf)((0,c._n)("Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.","Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.",t.length),t.length),"assertive"):x((0,c.__)("No results."),"assertive"))}(h)}),[h]),0===h.length)return null;const E=({Component:e="div"})=>(0,a.createElement)(e,{id:r,role:"listbox",className:"components-autocomplete__results"},h.map(((e,t)=>(0,a.createElement)(pd,{key:e.key,id:`components-autocomplete-item-${n}-${e.key}`,role:"option","aria-selected":t===i,disabled:e.isDisabled,className:l()("components-autocomplete__result",o,{"is-selected":t===i}),onClick:()=>d(e)},e.label))));return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ff,{focusOnMount:!1,onClose:f,placement:"top-start",className:"components-autocomplete__popover",anchor:g,ref:w},(0,a.createElement)(E,null)),m.current&&v&&(0,kt.createPortal)((0,a.createElement)(E,{Component:ud}),m.current.ownerDocument.body))}}const Cb=[];function Sb({record:e,onChange:t,onReplace:n,completers:r,contentRef:o}){const i=(0,u.useInstanceId)(Sb),[s,l]=(0,a.useState)(0),[c,d]=(0,a.useState)(Cb),[f,p]=(0,a.useState)(""),[m,h]=(0,a.useState)(null),[g,v]=(0,a.useState)(null),b=(0,a.useRef)(!1);function y(r){const{getOptionCompletion:o}=m||{};if(!r.isDisabled){if(o){const i=o(r.value,f),s=(e=>null!==e&&"object"==typeof e&&"action"in e&&void 0!==e.action&&"value"in e&&void 0!==e.value)(i)?i:{action:"insert-at-caret",value:i};if("replace"===s.action)return void n([s.value]);"insert-at-caret"===s.action&&function(n){if(null===m)return;const r=e.start,o=r-m.triggerPrefix.length-f.length,i=(0,vb.create)({html:(0,a.renderToString)(n)});t((0,vb.insert)(e,i,o,r))}(s.value)}w()}}function w(){l(0),d(Cb),p(""),h(null),v(null)}const x=(0,a.useMemo)((()=>(0,vb.isCollapsed)(e)?(0,vb.getTextContent)((0,vb.slice)(e,0)):""),[e]);(0,a.useEffect)((()=>{if(!x)return void(m&&w());const t=r?.find((({triggerPrefix:t,allowContext:n})=>{const r=x.lastIndexOf(t);if(-1===r)return!1;const o=x.slice(r+t.length);if(o.length>50)return!1;const i=0===c.length,a=1===o.split(/\s/).length,s=b.current&&o.split(/\s/).length<=3;if(i&&!s&&!a)return!1;const l=(0,vb.getTextContent)((0,vb.slice)(e,void 0,(0,vb.getTextContent)(e).length));return!(n&&!n(x.slice(0,r),l))&&(!/^\s/.test(o)&&!/\s\s+$/.test(o)&&/[\u0000-\uFFFF]*$/.test(o))}));if(!t)return void(m&&w());const n=xb(t.triggerPrefix),o=gb()(x),i=o.slice(o.lastIndexOf(t.triggerPrefix)).match(new RegExp(`${n}([\0-]*)$`)),a=i&&i[1];h(t),v((()=>t!==m?_b(t):g)),p(null===a?"":a)}),[x]);const{key:E=""}=c[s]||{},{className:_}=m||{},C=!!m&&c.length>0,S=C?`components-autocomplete-listbox-${i}`:void 0;return{listBoxId:S,activeId:C?`components-autocomplete-item-${i}-${E}`:null,onKeyDown:function(e){if(b.current="Backspace"===e.key,m&&0!==c.length&&!e.defaultPrevented&&!e.isComposing&&229!==e.keyCode){switch(e.key){case"ArrowUp":l((0===s?c.length:s)-1);break;case"ArrowDown":l((s+1)%c.length);break;case"Escape":h(null),v(null),e.preventDefault();break;case"Enter":y(c[s]);break;case"ArrowLeft":case"ArrowRight":return void w();default:return}e.preventDefault()}},popover:void 0!==e.start&&g&&(0,a.createElement)(g,{className:_,filterValue:f,instanceId:i,listBoxId:S,selectedIndex:s,onChangeOptions:function(e){l(e.length===c.length?s:0),d(e)},onSelect:y,value:e,contentRef:o,reset:w})}}function kb(e){const t=(0,a.useRef)(null),n=(0,a.useRef)(),{record:r}=e,o=function(e){const t=(0,a.useRef)(new Set);return t.current.add(e),t.current.size>2&&t.current.delete(Array.from(t.current)[0]),Array.from(t.current)[0]}(r),{popover:i,listBoxId:s,activeId:l,onKeyDown:c}=Sb({...e,contentRef:t});n.current=c;const d=(0,u.useMergeRefs)([t,(0,u.useRefEffect)((e=>{function t(e){n.current?.(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]);return r.text!==o?.text?{ref:d,children:i,"aria-autocomplete":s?"list":void 0,"aria-owns":s,"aria-activedescendant":l}:{ref:d}}function Tb({children:e,isSelected:t,...n}){const{popover:r,...o}=Sb(n);return(0,a.createElement)(a.Fragment,null,e(o),t&&r)}function Rb(e){const{help:t,id:n,...r}=e,o=(0,u.useInstanceId)(jv,"wp-components-base-control",n);return{baseControlProps:{id:o,help:t,...r},controlProps:{id:o,...t?{["string"==typeof t?"aria-describedby":"aria-details"]:`${o}__help`}:{}}}}var Pb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var Mb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const Ib=Zf("",""),Nb={name:"bjn8wh",styles:"position:relative"},Ob=e=>{const{color:t=Dp.gray[200],style:n="solid",width:r=Nh.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==Nh.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Db={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function Ab(e){const{className:t,size:n="default",...r}=Gu(e,"BorderBoxControlLinkedButton"),o=Uu();return{...r,className:(0,a.useMemo)((()=>o((e=>Zf("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",ih({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}var Lb=Ku(((e,t)=>{const{className:n,isLinked:r,...o}=Ab(e),i=r?(0,c.__)("Unlink sides"):(0,c.__)("Link sides");return(0,a.createElement)(Uf,{text:i},(0,a.createElement)(cd,{className:n},(0,a.createElement)(pd,{...o,isSmall:!0,icon:r?Pb:Mb,iconSize:24,"aria-label":i,ref:t})))}),"BorderBoxControlLinkedButton");function zb(e){const{className:t,value:n,size:r="default",...o}=Gu(e,"BorderBoxControlVisualizer"),i=Uu(),s=(0,a.useMemo)((()=>i(((e,t)=>Zf("position:absolute;top:","__unstable-large"===t?"20px":"15px",";right:","__unstable-large"===t?"39px":"29px",";bottom:","__unstable-large"===t?"20px":"15px",";left:","__unstable-large"===t?"39px":"29px",";border-top:",Ob(e?.top),";border-bottom:",Ob(e?.bottom),";",ih({borderLeft:Ob(e?.left)})()," ",ih({borderRight:Ob(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:s,value:n}}var Fb=Ku(((e,t)=>{const{value:n,...r}=zb(e);return(0,a.createElement)(cd,{...r,ref:t})}),"BorderBoxControlVisualizer");var Bb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var jb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 11.25h14v1.5H5z"}));var Vb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"}));var Hb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"}));const $b=sd(ab,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",sg,"{transition:box-shadow 0.1s linear;}}"),Wb=({selectSize:e})=>{const t={default:Zf("box-sizing:border-box;padding:2px 1px;width:20px;color:",Dp.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),large:Zf("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",Jm(2),";padding:",Jm(1),";color:",Dp.ui.theme,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")};return"__unstable-large"===e?t.large:t.default},Ub=sd("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",Wb,";color:",Dp.gray[900],";}"),Gb=sd("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",Wb,";",(({selectSize:e="default"})=>{const t={default:Zf("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",ih({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",Dp.gray[100],";}&:focus{border:1px solid ",Dp.ui.borderFocus,";box-shadow:inset 0 0 0 ",Nh.borderWidth+" "+Dp.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),large:Zf("display:flex;justify-content:center;align-items:center;&:hover{color:",Dp.ui.borderFocus,";box-shadow:inset 0 0 0 ",Nh.borderWidth+" "+Dp.ui.borderFocus,";outline:",Nh.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",Nh.borderWidthFocus+" "+Dp.ui.borderFocus,";outline:",Nh.borderWidthFocus," solid transparent;}","")};return"__unstable-large"===e?t.large:t.default}),";&:not( :disabled ){cursor:pointer;}}");const Kb={name:"f3vz0n",styles:"font-weight:500"},qb=Zf("box-shadow:inset 0 0 0 ",Nh.borderWidth," ",Dp.ui.borderFocus,";",""),Yb=Zf("border:0;padding:0;margin:0;",Iv,";",""),Xb=Zf($b,"{flex:0 0 auto;}",""),Zb=(e,t)=>{const{style:n}=e||{};return Zf("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?Dp.gray[300]:void 0;return Zf("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:","__unstable-large"===t?"24px":"22px",";height:","__unstable-large"===t?"24px":"22px",";padding:","__unstable-large"===t?"2px":"1px",";&>span{height:",Jm(4),";width:",Jm(4),";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}","")},Jb=Zf("width:",228,"px;>div:first-of-type>",Av,"{margin-bottom:0;",Kb,";}&& ",Av,"+button:not( .has-text ){min-width:24px;padding:0;}",""),Qb=Zf("",""),ey=Zf("",""),ty=Zf("justify-content:center;width:100%;&&{border-top:",Nh.borderWidth," solid ",Dp.gray[200],";border-top-left-radius:0;border-top-right-radius:0;height:46px;}",""),ny=Zf(Av,"{",Kb,";}",""),ry={name:"1486260",styles:"&&&&&{min-width:30px;width:30px;height:30px;padding:3px;}"};const oy=[{label:(0,c.__)("Solid"),icon:jb,value:"solid"},{label:(0,c.__)("Dashed"),icon:Vb,value:"dashed"},{label:(0,c.__)("Dotted"),icon:Hb,value:"dotted"}],iy=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(ud,{as:"label"},t):(0,a.createElement)(Av,null,t):null},ay=Ku(((e,t)=>{const{buttonClassName:n,hideLabelFromVision:r,label:o,onChange:i,value:s,...l}=function(e){const{className:t,...n}=Gu(e,"BorderControlStylePicker"),r=Uu();return{...n,className:(0,a.useMemo)((()=>r(ny,t)),[t,r]),buttonClassName:(0,a.useMemo)((()=>r(ry)),[r])}}(e);return(0,a.createElement)(cd,{...l,ref:t},(0,a.createElement)(iy,{label:o,hideLabelFromVision:r}),(0,a.createElement)(hh,{justify:"flex-start",gap:1},oy.map((e=>(0,a.createElement)(pd,{key:e.value,className:n,icon:e.icon,isSmall:!0,isPressed:e.value===s,onClick:()=>i(e.value===s?void 0:e.value),"aria-label":e.label,label:e.label,showTooltip:!0})))))}),"BorderControlStylePicker");var sy=ay;var ly=(0,a.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,a.createElement)("span",{className:l()("component-color-indicator",n),style:{background:r},ref:t,...o})})),cy=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},uy=function(e){return.2126*cy(e.r)+.7152*cy(e.g)+.0722*cy(e.b)};function dy(e){e.prototype.luminance=function(){return e=uy(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,o,i,a,s,l,c=t instanceof e?t:new e(t);return i=this.rgba,a=c.toRgb(),n=(s=uy(i))>(l=uy(a))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(a=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===a?7:"AA"===o&&"large"===a?3:4.5);var n,r,o,i,a}}const fy=Ku(((e,t)=>{const{renderContent:n,renderToggle:r,className:o,contentClassName:i,expandOnMobile:s,headerTitle:c,focusOnMount:d,popoverProps:f,onClose:p,onToggle:m,style:h,position:g,variant:v}=Gu(e,"Dropdown");void 0!==g&&$l()("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[b,y]=(0,a.useState)(null),w=(0,a.useRef)(),[x,E]=function(e,t){const[n,r]=(0,a.useState)(e);return[n,e=>{r(e),t&&t(e)}]}(!1,m);function _(){p&&p(),E(!1)}(0,a.useEffect)((()=>()=>{m&&x&&m(!1)}),[m,x]);const C={isOpen:x,onToggle:function(){E(!x)},onClose:_},S=!!(f?.anchor||f?.anchorRef||f?.getAnchorRect||f?.anchorRect);return(0,a.createElement)("div",{className:o,ref:(0,u.useMergeRefs)([w,t,y]),tabIndex:-1,style:h},r(C),x&&(0,a.createElement)(Ff,{position:g,onClose:_,onFocusOutside:function(){if(!w.current)return;const{ownerDocument:e}=w.current,t=e?.activeElement?.closest('[role="dialog"]');w.current.contains(e.activeElement)||t&&!t.contains(w.current)||_()},expandOnMobile:s,headerTitle:c,focusOnMount:d,offset:13,anchor:S?void 0:b,variant:v,...f,className:l()("components-dropdown__content",f?.className,i)},n(C)))}),"Dropdown");var py=fy;var my=Ku((function(e,t){const n=Gu(e,"InputControlSuffixWrapper");return(0,a.createElement)(lh,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper");const hy=sd("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Dp.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",(({disabled:e})=>e?Zf({color:Dp.ui.textDisabled},"",""):""),";",(({selectSize:e="default"})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"}[e];return t?Zf("font-size:","16px",";@media ( min-width: 600px ){font-size:",t,";}",""):""}),";",(({__next36pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:36,minHeight:36,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default={height:30,minHeight:30,paddingTop:0,paddingBottom:0});return Zf(r[n]||r.default,"","")}),";",(({__next36pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:16,small:8,"__unstable-large":16};e||(r.default=8);const o=r[n]||r.default;return ih({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})}),";",(({multiple:e})=>({overflow:e?"auto":"hidden"})),";}"),gy=sd("div",{target:"e1mv6sxx1"})("margin-inline-end:",Jm(-1),";line-height:0;"),vy=sd(my,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",ih({right:0}),";");var by=function({icon:e,size:t=24,...n}){return(0,a.cloneElement)(e,{width:t,height:t,...n})};var yy=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var wy=()=>(0,a.createElement)(vy,null,(0,a.createElement)(gy,null,(0,a.createElement)(by,{icon:yy,size:18})));const xy=()=>{};const Ey=(0,a.forwardRef)((function(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:s,label:c,multiple:d=!1,onBlur:f=xy,onChange:p,onFocus:m=xy,options:h=[],size:g="default",value:v,labelPosition:b="top",children:y,prefix:w,suffix:x,__next36pxDefaultSize:E=!1,__nextHasNoMarginBottom:_=!1,...C}=e,[S,k]=(0,a.useState)(!1),T=function(e){const t=(0,u.useInstanceId)(Ey);return e||`inspector-select-control-${t}`}(s),R=o?`${T}__help`:void 0;if(!h?.length&&!y)return null;const P=l()("components-select-control",n);return(0,a.createElement)(jv,{help:o,id:T,__nextHasNoMarginBottom:_},(0,a.createElement)(hg,{className:P,disabled:r,hideLabelFromVision:i,id:T,isFocused:S,label:c,size:g,suffix:x||!d&&(0,a.createElement)(wy,null),prefix:w,labelPosition:b,__next36pxDefaultSize:E},(0,a.createElement)(hy,{...C,__next36pxDefaultSize:E,"aria-describedby":R,className:"components-select-control__input",disabled:r,id:T,multiple:d,onBlur:e=>{f(e),k(!1)},onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},onFocus:e=>{m(e),k(!0)},ref:t,selectSize:g,value:v},y||h.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,a.createElement)("option",{key:n,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label)})))))}));var _y=Ey;const Cy={initial:void 0,fallback:""};var Sy=function(e,t=Cy){const{initial:n,fallback:r}={...Cy,...t},[o,i]=(0,a.useState)(e),s=bh(e);return(0,a.useEffect)((()=>{s&&o&&i(void 0)}),[s,o]),[function(e=[],t){var n;return null!==(n=e.find(bh))&&void 0!==n?n:t}([e,o,n],r),(0,a.useCallback)((e=>{s||i(e)}),[s])]};function ky(e,t,n){return"number"!=typeof e?null:parseFloat(`${Zv(e,t,n)}`)}const Ty=()=>Zf({height:30,minHeight:30},"",""),Ry=12,Py=sd("div",{target:"e1epgpqk14"})({name:"1se47kl",styles:"-webkit-tap-highlight-color:transparent;align-items:flex-start;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%"}),My=sd("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(({color:e=Dp.ui.borderFocus})=>Zf({color:e},"","")),";",Ty,";",(({marks:e,__nextHasNoMarginBottom:t})=>t?"":Zf({marginBottom:e?16:void 0},"","")),";"),Iy=sd("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",ih({marginRight:6}),";"),Ny=sd("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",ih({marginLeft:6}),";"),Oy=sd("span",{target:"e1epgpqk10"})("background-color:",Dp.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",(({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=Dp.ui.backgroundDisabled),Zf({background:n},"","")}),";"),Dy=sd("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",(({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=Dp.gray[400]),Zf({background:n},"","")}),";"),Ay=sd("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),Ly=sd("span",{target:"e1epgpqk7"})("height:",Ry,"px;left:0;position:absolute;top:-4px;width:1px;",(({disabled:e,isFilled:t})=>{let n=t?"currentColor":Dp.gray[300];return e&&(n=Dp.gray[400]),Zf({backgroundColor:n},"","")}),";"),zy=sd("span",{target:"e1epgpqk6"})("color:",Dp.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(({isFilled:e})=>Zf({color:e?Dp.gray[700]:Dp.gray[300]},"","")),";"),Fy=({disabled:e})=>Zf("background-color:",e?Dp.gray[400]:Dp.ui.theme,";",""),By=sd("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",Ry,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",Ry,"px;border-radius:50%;",Fy,";",ih({marginLeft:-10}),";",ih({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),jy=sd("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",Fy,";",(({isFocused:e})=>e?Zf("&::before{content:' ';position:absolute;background-color:",Dp.ui.theme,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""),";"),Vy=sd("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",Ry,"px );");var Hy={name:"1cypxip",styles:"top:-80%"},$y={name:"1lr98c4",styles:"bottom:-80%"};const Wy=sd("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(({show:e})=>Zf({opacity:e?1:0},"","")),";",(({position:e})=>"bottom"===e?$y:Hy),";",Ap("transition"),";",ih({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),Uy=sd(ab,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;width:",Jm(16),"!important;input[type='number']&{",Ty,";}",ih({marginLeft:`${Jm(4)} !important`}),";"),Gy=sd("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",Ty,";}",ih({marginLeft:8}),";");var Ky=(0,a.forwardRef)((function(e,t){const{describedBy:n,label:r,value:o,...i}=e;return(0,a.createElement)(Vy,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o})}));function qy(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,s=l()("components-range-control__mark",n&&"is-filled",t),c=l()("components-range-control__mark-label",n&&"is-filled");return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Ly,{...i,"aria-hidden":"true",className:s,isFilled:n,style:o}),r&&(0,a.createElement)(zy,{"aria-hidden":"true",className:c,isFilled:n,style:o},r))}function Yy(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0,...l}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Oy,{disabled:t,...l}),n&&(0,a.createElement)(Xy,{disabled:t,marks:n,min:r,max:o,step:i,value:s}))}function Xy(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0}=e,l=function({marks:e,min:t=0,max:n=100,step:r=1,value:o=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const n=1+Math.round(i/r);for(;n>e.push({value:r*e.length+t}););}const a=[];return e.forEach(((e,r)=>{if(e.value<t||e.value>n)return;const s=`mark-${r}`,l=e.value<=o,u=(e.value-t)/i*100+"%",d={[(0,c.isRTL)()?"right":"left"]:u};a.push({...e,isFilled:l,key:s,style:d})})),a}({marks:n,min:r,max:o,step:"any"===i?1:i,value:s});return(0,a.createElement)(Ay,{"aria-hidden":"true",className:"components-range-control__marks"},l.map((e=>(0,a.createElement)(qy,{...e,key:e.key,"aria-hidden":"true",disabled:t}))))}function Zy(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:s=0,renderTooltipContent:c=(e=>e),zIndex:u=100,...d}=e,f=function({inputRef:e,tooltipPosition:t}){const[n,r]=(0,a.useState)(),o=(0,a.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,a.useEffect)((()=>{o()}),[o]),(0,a.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:r}),p=l()("components-simple-tooltip",t),m={...i,zIndex:u};return(0,a.createElement)(Wy,{...d,"aria-hidden":o,className:p,position:f,show:o,role:"tooltip",style:m},c(s))}const Jy=()=>{};const Qy=(0,a.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:r=!1,afterIcon:o,allowReset:i=!1,beforeIcon:s,className:d,color:f=Dp.ui.theme,currentInput:p,disabled:m=!1,help:h,hideLabelFromVision:g=!1,initialPosition:v,isShiftStepEnabled:b=!0,label:y,marks:w=!1,max:x=100,min:E=0,onBlur:_=Jy,onChange:C=Jy,onFocus:S=Jy,onMouseLeave:k=Jy,onMouseMove:T=Jy,railColor:R,renderTooltipContent:P=(e=>e),resetFallbackValue:M,shiftStep:I=10,showTooltip:N,step:O=1,trackColor:D,value:A,withInputField:L=!0,...z}=t,[F,B]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,s]=Sy(ky(r,t,n),{initial:ky(null!=o?o:null,t,n),fallback:null});return[i,(0,a.useCallback)((e=>{s(null===e?null:ky(e,t,n))}),[t,n,s])]}({min:E,max:x,value:null!=A?A:null,initial:v}),j=(0,a.useRef)(!1);let V=N,H=L;"any"===O&&(V=!1,H=!1);const[$,W]=(0,a.useState)(V),[U,G]=(0,a.useState)(!1),K=(0,a.useRef)(),q=K.current?.matches(":focus"),Y=!m&&U,X=null===F,Z=X?"":void 0!==F?F:p,J=X?(x-E)/2+E:F,Q=`${Zv(X?50:(F-E)/(x-E)*100,0,100)}%`,ee=l()("components-range-control",d),te=l()("components-range-control__wrapper",!!w&&"is-marked"),ne=(0,u.useInstanceId)(e,"inspector-range-control"),re=h?`${ne}__help`:void 0,oe=!1!==V&&Number.isFinite(F),ie=()=>{let e=parseFloat(`${M}`),t=e;isNaN(e)&&(e=null,t=void 0),B(e),C(t)},ae={[(0,c.isRTL)()?"right":"left"]:Q};return(0,a.createElement)(jv,{__nextHasNoMarginBottom:r,className:ee,label:y,hideLabelFromVision:g,id:`${ne}`,help:h},(0,a.createElement)(Py,{className:"components-range-control__root"},s&&(0,a.createElement)(Iy,null,(0,a.createElement)(Gl,{icon:s})),(0,a.createElement)(My,{__nextHasNoMarginBottom:r,className:te,color:f,marks:!!w},(0,a.createElement)(Ky,{...z,className:"components-range-control__slider",describedBy:re,disabled:m,id:`${ne}`,label:y,max:x,min:E,onBlur:e=>{_(e),G(!1),W(!1)},onChange:e=>{const t=parseFloat(e.target.value);B(t),C(t)},onFocus:e=>{S(e),G(!0),W(!0)},onMouseMove:T,onMouseLeave:k,ref:(0,u.useMergeRefs)([K,n]),step:O,value:null!=Z?Z:void 0}),(0,a.createElement)(Yy,{"aria-hidden":!0,disabled:m,marks:w,max:x,min:E,railColor:R,step:O,value:J}),(0,a.createElement)(Dy,{"aria-hidden":!0,className:"components-range-control__track",disabled:m,style:{width:Q},trackColor:D}),(0,a.createElement)(By,{className:"components-range-control__thumb-wrapper",style:ae,disabled:m},(0,a.createElement)(jy,{"aria-hidden":!0,isFocused:Y,disabled:m})),oe&&(0,a.createElement)(Zy,{className:"components-range-control__tooltip",inputRef:K,tooltipPosition:"bottom",renderTooltipContent:P,show:q||$,style:ae,value:F})),o&&(0,a.createElement)(Ny,null,(0,a.createElement)(Gl,{icon:o})),H&&(0,a.createElement)(Uy,{"aria-label":y,className:"components-range-control__number",disabled:m,inputMode:"decimal",isShiftStepEnabled:b,max:x,min:E,onBlur:()=>{j.current&&(ie(),j.current=!1)},onChange:e=>{let t=parseFloat(e);B(t),isNaN(t)?i&&(j.current=!0):((t<E||t>x)&&(t=ky(t,E,x)),C(t),j.current=!1)},shiftStep:I,step:O,value:Z}),i&&(0,a.createElement)(Gy,null,(0,a.createElement)(pd,{className:"components-range-control__reset",disabled:m||void 0===F,variant:"secondary",isSmall:!0,onClick:ie},(0,c.__)("Reset")))))}));var ew=Qy;const tw=sd(ab,{target:"ez9hsf47"})(tg,"{width:",Jm(24),";}"),nw=sd(_y,{target:"ez9hsf46"})("margin-left:",Jm(-2),";width:5em;select:not( :focus )~",sg,sg,sg,"{border-color:transparent;}"),rw=sd(ew,{target:"ez9hsf45"})("flex:1;margin-right:",Jm(2),";"),ow=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${Jm(2)} );\n\tmargin-left: ${Jm(1)};\n}`,iw=sd("div",{target:"ez9hsf44"})("padding-top:",Jm(2),";padding-right:0;padding-left:0;padding-bottom:0;"),aw=sd(rb,{target:"ez9hsf43"})("padding-left:",Jm(4),";padding-right:",Jm(4),";"),sw=sd(hh,{target:"ez9hsf42"})("padding-top:",Jm(4),";padding-left:",Jm(4),";padding-right:",Jm(3),";padding-bottom:",Jm(5),";"),lw=sd("div",{target:"ez9hsf41"})(Iv,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;overflow:hidden;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",Jm(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",Jm(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",Nh.borderWidthFocus," #fff;}",ow,";"),cw=sd(pd,{target:"ez9hsf40"})("&&&&&{min-width:",Jm(6),";padding:0;>svg{margin-right:0;}}");var uw=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function dw(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function fw(e){return e instanceof dw(e).Element||e instanceof Element}function pw(e){return e instanceof dw(e).HTMLElement||e instanceof HTMLElement}function mw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof dw(e).ShadowRoot||e instanceof ShadowRoot)}var hw=Math.max,gw=Math.min,vw=Math.round;function bw(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function yw(){return!/^((?!chrome|android).)*safari/i.test(bw())}function ww(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&pw(e)&&(o=e.offsetWidth>0&&vw(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&vw(r.height)/e.offsetHeight||1);var a=(fw(e)?dw(e):window).visualViewport,s=!yw()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function xw(e){var t=dw(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ew(e){return e?(e.nodeName||"").toLowerCase():null}function _w(e){return((fw(e)?e.ownerDocument:e.document)||window.document).documentElement}function Cw(e){return ww(_w(e)).left+xw(e).scrollLeft}function Sw(e){return dw(e).getComputedStyle(e)}function kw(e){var t=Sw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Tw(e,t,n){void 0===n&&(n=!1);var r=pw(t),o=pw(t)&&function(e){var t=e.getBoundingClientRect(),n=vw(t.width)/e.offsetWidth||1,r=vw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=_w(t),a=ww(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ew(t)||kw(i))&&(s=function(e){return e!==dw(e)&&pw(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:xw(e);var t}(t)),pw(t)?((l=ww(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Cw(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Rw(e){var t=ww(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Pw(e){return"html"===Ew(e)?e:e.assignedSlot||e.parentNode||(mw(e)?e.host:null)||_w(e)}function Mw(e){return["html","body","#document"].indexOf(Ew(e))>=0?e.ownerDocument.body:pw(e)&&kw(e)?e:Mw(Pw(e))}function Iw(e,t){var n;void 0===t&&(t=[]);var r=Mw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=dw(r),a=o?[i].concat(i.visualViewport||[],kw(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Iw(Pw(a)))}function Nw(e){return["table","td","th"].indexOf(Ew(e))>=0}function Ow(e){return pw(e)&&"fixed"!==Sw(e).position?e.offsetParent:null}function Dw(e){for(var t=dw(e),n=Ow(e);n&&Nw(n)&&"static"===Sw(n).position;)n=Ow(n);return n&&("html"===Ew(n)||"body"===Ew(n)&&"static"===Sw(n).position)?t:n||function(e){var t=/firefox/i.test(bw());if(/Trident/i.test(bw())&&pw(e)&&"fixed"===Sw(e).position)return null;var n=Pw(e);for(mw(n)&&(n=n.host);pw(n)&&["html","body"].indexOf(Ew(n))<0;){var r=Sw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Aw="top",Lw="bottom",zw="right",Fw="left",Bw="auto",jw=[Aw,Lw,zw,Fw],Vw="start",Hw="end",$w="clippingParents",Ww="viewport",Uw="popper",Gw="reference",Kw=jw.reduce((function(e,t){return e.concat([t+"-"+Vw,t+"-"+Hw])}),[]),qw=[].concat(jw,[Bw]).reduce((function(e,t){return e.concat([t,t+"-"+Vw,t+"-"+Hw])}),[]),Yw=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Xw(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Zw={placement:"bottom",modifiers:[],strategy:"absolute"};function Jw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Qw(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Zw:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zw,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:fw(e)?Iw(e):e.contextElement?Iw(e.contextElement):[],popper:Iw(t)};var a,c,f=function(e){var t=Xw(e);return Yw.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r}),a=function(){};l.push(i||a)}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(Jw(t,n)){s.rects={reference:Tw(t,Dw(n),"fixed"===s.options.strategy),popper:Rw(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!Jw(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var ex={passive:!0};var tx={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=dw(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,ex)})),s&&l.addEventListener("resize",n.update,ex),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ex)})),s&&l.removeEventListener("resize",n.update,ex)}},data:{}};function nx(e){return e.split("-")[0]}function rx(e){return e.split("-")[1]}function ox(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ix(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?nx(o):null,a=o?rx(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Aw:t={x:s,y:n.y-r.height};break;case Lw:t={x:s,y:n.y+n.height};break;case zw:t={x:n.x+n.width,y:l};break;case Fw:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?ox(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Vw:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Hw:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var ax={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ix({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},sx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,h=void 0===m?0:m,g="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=Fw,w=Aw,x=window;if(c){var E=Dw(n),_="clientHeight",C="clientWidth";if(E===dw(n)&&"static"!==Sw(E=_w(n)).position&&"absolute"===s&&(_="scrollHeight",C="scrollWidth"),o===Aw||(o===Fw||o===zw)&&i===Hw)w=Lw,h-=(d&&E===x&&x.visualViewport?x.visualViewport.height:E[_])-r.height,h*=l?1:-1;if(o===Fw||(o===Aw||o===Lw)&&i===Hw)y=zw,p-=(d&&E===x&&x.visualViewport?x.visualViewport.width:E[C])-r.width,p*=l?1:-1}var S,k=Object.assign({position:s},c&&sx),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:vw(n*o)/o||0,y:vw(r*o)/o||0}}({x:p,y:h},dw(n)):{x:p,y:h};return p=T.x,h=T.y,l?Object.assign({},k,((S={})[w]=b?"0":"",S[y]=v?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},k,((t={})[w]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var cx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:nx(t.placement),variation:rx(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,lx(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,lx(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ux={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];pw(o)&&Ew(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});pw(r)&&Ew(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var dx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=qw.reduce((function(e,n){return e[n]=function(e,t,n){var r=nx(e),o=[Fw,Aw].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[Fw,zw].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},fx={left:"right",right:"left",bottom:"top",top:"bottom"};function px(e){return e.replace(/left|right|bottom|top/g,(function(e){return fx[e]}))}var mx={start:"end",end:"start"};function hx(e){return e.replace(/start|end/g,(function(e){return mx[e]}))}function gx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function vx(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bx(e,t,n){return t===Ww?vx(function(e,t){var n=dw(e),r=_w(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=yw();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Cw(e),y:l}}(e,n)):fw(t)?function(e,t){var n=ww(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):vx(function(e){var t,n=_w(e),r=xw(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=hw(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=hw(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Cw(e),l=-r.scrollTop;return"rtl"===Sw(o||n).direction&&(s+=hw(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(_w(e)))}function yx(e,t,n,r){var o="clippingParents"===t?function(e){var t=Iw(Pw(e)),n=["absolute","fixed"].indexOf(Sw(e).position)>=0&&pw(e)?Dw(e):e;return fw(n)?t.filter((function(e){return fw(e)&&gx(e,n)&&"body"!==Ew(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=bx(e,n,r);return t.top=hw(o.top,t.top),t.right=gw(o.right,t.right),t.bottom=gw(o.bottom,t.bottom),t.left=hw(o.left,t.left),t}),bx(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function wx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xx(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ex(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?$w:s,c=n.rootBoundary,u=void 0===c?Ww:c,d=n.elementContext,f=void 0===d?Uw:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=wx("number"!=typeof g?g:xx(g,jw)),b=f===Uw?Gw:Uw,y=e.rects.popper,w=e.elements[m?b:f],x=yx(fw(w)?w:w.contextElement||_w(e.elements.popper),l,u,a),E=ww(e.elements.reference),_=ix({reference:E,element:y,strategy:"absolute",placement:o}),C=vx(Object.assign({},y,_)),S=f===Uw?C:E,k={top:x.top-S.top+v.top,bottom:S.bottom-x.bottom+v.bottom,left:x.left-S.left+v.left,right:S.right-x.right+v.right},T=e.modifiersData.offset;if(f===Uw&&T){var R=T[o];Object.keys(k).forEach((function(e){var t=[zw,Lw].indexOf(e)>=0?1:-1,n=[Aw,Lw].indexOf(e)>=0?"y":"x";k[e]+=R[n]*t}))}return k}var _x={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,v=nx(g),b=l||(v===g||!m?[px(g)]:function(e){if(nx(e)===Bw)return[];var t=px(e);return[hx(e),t,hx(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(nx(n)===Bw?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?qw:l,u=rx(r),d=u?s?Kw:Kw.filter((function(e){return rx(e)===u})):jw,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Ex(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[nx(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,E=new Map,_=!0,C=y[0],S=0;S<y.length;S++){var k=y[S],T=nx(k),R=rx(k)===Vw,P=[Aw,Lw].indexOf(T)>=0,M=P?"width":"height",I=Ex(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=P?R?zw:Fw:R?Lw:Aw;w[M]>x[M]&&(N=px(N));var O=px(N),D=[];if(i&&D.push(I[T]<=0),s&&D.push(I[N]<=0,I[O]<=0),D.every((function(e){return e}))){C=k,_=!1;break}E.set(k,D)}if(_)for(var A=function(e){var t=y.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},L=m?3:1;L>0;L--){if("break"===A(L))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Cx(e,t,n){return hw(e,gw(t,n))}var Sx={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=Ex(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=nx(t.placement),b=rx(t.placement),y=!b,w=ox(v),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,_=t.rects.reference,C=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(E){if(i){var P,M="y"===w?Aw:Fw,I="y"===w?Lw:zw,N="y"===w?"height":"width",O=E[w],D=O+g[M],A=O-g[I],L=p?-C[N]/2:0,z=b===Vw?_[N]:C[N],F=b===Vw?-C[N]:-_[N],B=t.elements.arrow,j=p&&B?Rw(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=V[M],$=V[I],W=Cx(0,_[N],j[N]),U=y?_[N]/2-L-W-H-k.mainAxis:z-W-H-k.mainAxis,G=y?-_[N]/2+L+W+$+k.mainAxis:F+W+$+k.mainAxis,K=t.elements.arrow&&Dw(t.elements.arrow),q=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,Y=null!=(P=null==T?void 0:T[w])?P:0,X=O+G-Y,Z=Cx(p?gw(D,O+U-Y-q):D,O,p?hw(A,X):A);E[w]=Z,R[w]=Z-O}if(s){var J,Q="x"===w?Aw:Fw,ee="x"===w?Lw:zw,te=E[x],ne="y"===x?"height":"width",re=te+g[Q],oe=te-g[ee],ie=-1!==[Aw,Fw].indexOf(v),ae=null!=(J=null==T?void 0:T[x])?J:0,se=ie?re:te-_[ne]-C[ne]-ae+k.altAxis,le=ie?te+_[ne]+C[ne]-ae-k.altAxis:oe,ce=p&&ie?function(e,t,n){var r=Cx(e,t,n);return r>n?n:r}(se,te,le):Cx(p?se:re,te,p?le:oe);E[x]=ce,R[x]=ce-te}t.modifiersData[r]=R}},requiresIfExists:["offset"]};var kx={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=nx(n.placement),l=ox(s),c=[Fw,zw].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return wx("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xx(e,jw))}(o.padding,n),d=Rw(i),f="y"===l?Aw:Fw,p="y"===l?Lw:zw,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],h=a[l]-n.rects.reference[l],g=Dw(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+b,E=Cx(y,x,w),_=l;n.modifiersData[r]=((t={})[_]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&gx(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Tx(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rx(e){return[Aw,zw,Lw,Fw].some((function(t){return e[t]>=0}))}var Px={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Ex(t,{elementContext:"reference"}),s=Ex(t,{altBoundary:!0}),l=Tx(a,r),c=Tx(s,o,i),u=Rx(l),d=Rx(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},Mx=Qw({defaultModifiers:[tx,ax,cx,ux,dx,_x,Sx,kx,Px]});function Ix(e){void 0===e&&(e={});var t,n,r=Wp(e),o=r.visible,i=void 0!==o&&o,a=r.animated,s=void 0!==a&&a,l=Xp(m(r,["visible","animated"])),c=(0,v.useState)(i),u=c[0],d=c[1],f=(0,v.useState)(s),h=f[0],g=f[1],b=(0,v.useState)(!1),y=b[0],w=b[1],x=(t=u,n=(0,v.useRef)(null),U((function(){n.current=t}),[t]),n),E=null!=x.current&&x.current!==u;h&&!y&&E&&w(!0),(0,v.useEffect)((function(){if("number"==typeof h&&y){var e=setTimeout((function(){return w(!1)}),h);return function(){clearTimeout(e)}}return function(){}}),[h,y]);var _=(0,v.useCallback)((function(){return d(!0)}),[]),C=(0,v.useCallback)((function(){return d(!1)}),[]),S=(0,v.useCallback)((function(){return d((function(e){return!e}))}),[]),k=(0,v.useCallback)((function(){return w(!1)}),[]);return p(p({},l),{},{visible:u,animated:h,animating:y,show:_,hide:C,toggle:S,setVisible:d,setAnimated:g,stopAnimation:k})}var Nx=ee("Mac")&&!ee("Chrome")&&ee("Safari");function Ox(e){return function(t){return e&&!A(t,e)?e:t}}function Dx(e){void 0===e&&(e={});var t=Wp(e),n=t.gutter,r=void 0===n?12:n,o=t.placement,i=void 0===o?"bottom":o,a=t.unstable_flip,s=void 0===a||a,l=t.unstable_offset,c=t.unstable_preventOverflow,u=void 0===c||c,d=t.unstable_fixed,f=void 0!==d&&d,h=t.modal,g=void 0!==h&&h,b=m(t,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),y=(0,v.useRef)(null),w=(0,v.useRef)(null),x=(0,v.useRef)(null),E=(0,v.useRef)(null),_=(0,v.useState)(i),C=_[0],S=_[1],k=(0,v.useState)(i),T=k[0],R=k[1],P=(0,v.useState)(l||[0,r])[0],M=(0,v.useState)({position:"fixed",left:"100%",top:"100%"}),I=M[0],N=M[1],O=(0,v.useState)({}),D=O[0],A=O[1],L=function(e){void 0===e&&(e={});var t=Wp(e),n=t.modal,r=void 0===n||n,o=Ix(m(t,["modal"])),i=(0,v.useState)(r),a=i[0],s=i[1],l=(0,v.useRef)(null);return p(p({},o),{},{modal:a,setModal:s,unstable_disclosureRef:l})}(p({modal:g},b)),z=(0,v.useCallback)((function(){return!!y.current&&(y.current.forceUpdate(),!0)}),[]),F=(0,v.useCallback)((function(e){e.placement&&R(e.placement),e.styles&&(N(Ox(e.styles.popper)),E.current&&A(Ox(e.styles.arrow)))}),[]);return U((function(){return w.current&&x.current&&(y.current=Mx(w.current,x.current,{placement:C,strategy:f?"fixed":"absolute",onFirstUpdate:Nx?F:void 0,modifiers:[{name:"eventListeners",enabled:L.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:s,options:{padding:8}},{name:"offset",options:{offset:P}},{name:"preventOverflow",enabled:u,options:{tetherOffset:function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!E.current,options:{element:E.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:L.visible&&!0,fn:function(e){var t=e.state;return F(t)}}]})),function(){y.current&&(y.current.destroy(),y.current=null)}}),[C,f,L.visible,s,P,u]),(0,v.useEffect)((function(){if(L.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=y.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[L.visible]),p(p({},L),{},{unstable_referenceRef:w,unstable_popoverRef:x,unstable_arrowRef:E,unstable_popoverStyles:I,unstable_arrowStyles:D,unstable_update:z,unstable_originalPlacement:C,placement:T,place:S})}var Ax={currentTooltipId:null,listeners:new Set,subscribe:function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},show:function(e){this.currentTooltipId=e,this.listeners.forEach((function(t){return t(e)}))},hide:function(e){this.currentTooltipId===e&&(this.currentTooltipId=null,this.listeners.forEach((function(e){return e(null)})))}};var Lx=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","unstable_disclosureRef","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place","unstable_timeout","unstable_setTimeout"],zx=[].concat(Lx,["unstable_portal"]),Fx=B({name:"TooltipReference",compose:re,keys:Lx,useProps:function(e,t){var n=t.ref,r=t.onFocus,o=t.onBlur,i=t.onMouseEnter,a=t.onMouseLeave,s=m(t,["ref","onFocus","onBlur","onMouseEnter","onMouseLeave"]),l=G(r),c=G(o),u=G(i),d=G(a),f=(0,v.useCallback)((function(t){var n,r;null===(n=l.current)||void 0===n||n.call(l,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),h=(0,v.useCallback)((function(t){var n,r;null===(n=c.current)||void 0===n||n.call(c,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]),g=(0,v.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),b=(0,v.useCallback)((function(t){var n,r;null===(n=d.current)||void 0===n||n.call(d,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]);return p({ref:V(e.unstable_referenceRef,n),tabIndex:0,onFocus:f,onBlur:h,onMouseEnter:g,onMouseLeave:b,"aria-describedby":e.baseId},s)}}),Bx=z({as:"div",useHook:Fx});const jx=(0,a.createContext)({});var Vx=B({name:"DisclosureContent",compose:re,keys:["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],useProps:function(e,t){var n=t.onTransitionEnd,r=t.onAnimationEnd,o=t.style,i=m(t,["onTransitionEnd","onAnimationEnd","style"]),a=e.animated&&e.animating,s=(0,v.useState)(null),l=s[0],c=s[1],u=!e.visible&&!a,d=u?p({display:"none"},o):o,f=G(n),h=G(r),g=(0,v.useRef)(0);(0,v.useEffect)((function(){if(e.animated)return g.current=window.requestAnimationFrame((function(){g.current=window.requestAnimationFrame((function(){e.visible?c("enter"):c(a?"leave":null)}))})),function(){return window.cancelAnimationFrame(g.current)}}),[e.animated,e.visible,a]);var b=(0,v.useCallback)((function(t){var n;K(t)&&(a&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e)))}),[e.animated,a,e.stopAnimation]),y=(0,v.useCallback)((function(e){var t;null===(t=f.current)||void 0===t||t.call(f,e),b(e)}),[b]),w=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),b(e)}),[b]);return p({id:e.baseId,"data-enter":"enter"===l?"":void 0,"data-leave":"leave"===l?"":void 0,onTransitionEnd:y,onAnimationEnd:w,hidden:u,style:d},i)}}),Hx=z({as:"div",useHook:Vx});function $x(){return W?document.body:null}var Wx=(0,v.createContext)($x());function Ux(e){var t=e.children,n=(0,v.useContext)(Wx)||$x(),r=(0,v.useState)((function(){if(W){var e=document.createElement("div");return e.className=Ux.__className,e}return null}))[0];return U((function(){if(r&&n)return n.appendChild(r),function(){n.removeChild(r)}}),[r,n]),r?(0,kt.createPortal)((0,v.createElement)(Wx.Provider,{value:r},t),r):null}function Gx(e){e.defaultPrevented||"Escape"===e.key&&Ax.show(null)}Ux.__className="__reakit-portal",Ux.__selector="."+Ux.__className;var Kx=B({name:"Tooltip",compose:Vx,keys:zx,useOptions:function(e){var t=e.unstable_portal;return p({unstable_portal:void 0===t||t},m(e,["unstable_portal"]))},useProps:function(e,t){var n=t.ref,r=t.style,o=t.wrapElement,i=m(t,["ref","style","wrapElement"]);(0,v.useEffect)((function(){var t;H(null===(t=e.unstable_popoverRef)||void 0===t?void 0:t.current).addEventListener("keydown",Gx)}),[]);var a=(0,v.useCallback)((function(t){return e.unstable_portal&&(t=(0,v.createElement)(Ux,null,t)),o?o(t):t}),[e.unstable_portal,o]);return p({ref:V(e.unstable_popoverRef,n),role:"tooltip",style:p(p({},e.unstable_popoverStyles),{},{pointerEvents:"none"},r),wrapElement:a},i)}}),qx=z({as:"div",memo:!0,useHook:Kx});var Yx=Ku((function(e,t){const{as:n="span",shortcut:r,className:o,...i}=Gu(e,"Shortcut");if(!r)return null;let s,l;return"string"==typeof r?s=r:(s=r.display,l=r.ariaLabel),(0,a.createElement)(cd,{as:n,className:o,"aria-label":l,ref:t,...i},s)}),"Shortcut");const Xx=Zf("z-index:",1000002,";box-sizing:border-box;opacity:0;outline:none;transform-origin:top center;transition:opacity ",Nh.transitionDurationFastest," ease;font-size:",Nh.fontSize,";&[data-enter]{opacity:1;}",""),Zx=sd("div",{target:"e7tfjmw1"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-shadow:0 0 0 1px rgba( 255, 255, 255, 0.04 );color:",Dp.white,";padding:4px 8px;"),Jx={name:"12mkfdx",styles:"outline:none"},Qx=sd(Yx,{target:"e7tfjmw0"})("display:inline-block;margin-left:",Jm(1),";"),{TooltipPopoverView:eE}=t;var tE=Ku((function(e,t){const{children:n,className:r,...o}=Gu(e,"TooltipContent"),{tooltip:i}=(0,a.useContext)(jx),s=Uu()(Xx,r);return(0,a.createElement)(qx,{as:cd,...o,...i,className:s,ref:t},(0,a.createElement)(eE,null,n))}),"TooltipContent");const nE=Ku((function(e,t){const{animated:n=!0,animationDuration:r=160,baseId:o,children:i,content:s,focusable:l=!0,gutter:c=4,id:u,modal:d=!0,placement:f,visible:h=!1,shortcut:g,...b}=Gu(e,"Tooltip"),y=function(e){void 0===e&&(e={});var t=Wp(e),n=t.placement,r=void 0===n?"top":n,o=t.unstable_timeout,i=void 0===o?0:o,a=m(t,["placement","unstable_timeout"]),s=(0,v.useState)(i),l=s[0],c=s[1],u=(0,v.useRef)(null),d=(0,v.useRef)(null),f=Dx(p(p({},a),{},{placement:r})),h=(f.modal,f.setModal,m(f,["modal","setModal"])),g=(0,v.useCallback)((function(){null!==u.current&&window.clearTimeout(u.current),null!==d.current&&window.clearTimeout(d.current)}),[]),b=(0,v.useCallback)((function(){g(),h.hide(),d.current=window.setTimeout((function(){Ax.hide(h.baseId)}),l)}),[g,h.hide,l,h.baseId]),y=(0,v.useCallback)((function(){g(),!l||Ax.currentTooltipId?(Ax.show(h.baseId),h.show()):(Ax.show(null),u.current=window.setTimeout((function(){Ax.show(h.baseId),h.show()}),l))}),[g,l,h.show,h.baseId]);return(0,v.useEffect)((function(){return Ax.subscribe((function(e){e!==h.baseId&&(g(),h.visible&&h.hide())}))}),[h.baseId,g,h.visible,h.hide]),(0,v.useEffect)((function(){return function(){g(),Ax.hide(h.baseId)}}),[g,h.baseId]),p(p({},h),{},{hide:b,show:y,unstable_timeout:l,unstable_setTimeout:c})}({animated:n?r:void 0,baseId:o||u,gutter:c,placement:f,visible:h,...b}),w=(0,a.useMemo)((()=>({tooltip:y})),[y]);return(0,a.createElement)(jx.Provider,{value:w},s&&(0,a.createElement)(tE,{unstable_portal:d,ref:t},s,g&&(0,a.createElement)(Qx,{shortcut:g})),i&&(0,a.createElement)(Bx,{...y,...i.props,ref:i?.ref},(e=>(l||(e.tabIndex=void 0),(0,a.cloneElement)(i,e)))))}),"Tooltip");var rE=nE;const oE=e=>{const{color:t,colorType:n}=e,[r,o]=(0,a.useState)(null),i=(0,a.useRef)(),s=(0,u.useCopyToClipboard)((()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:return t.toHex()}}),(()=>{i.current&&clearTimeout(i.current),o(t.toHex()),i.current=setTimeout((()=>{o(null),i.current=void 0}),3e3)}));return(0,a.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,a.createElement)(rE,{content:(0,a.createElement)(Yh,{color:"white"},r===t.toHex()?(0,c.__)("Copied!"):(0,c.__)("Copy")),placement:"bottom"},(0,a.createElement)(cw,{isSmall:!0,ref:s,icon:uw,showTooltip:!1}))},iE=({min:e,max:t,label:n,abbreviation:r,onChange:o,value:i})=>(0,a.createElement)(rb,{spacing:4},(0,a.createElement)(tw,{min:e,max:t,label:n,hideLabelFromVision:!0,value:i,onChange:e=>{o(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,a.createElement)(lh,{as:Yh,paddingLeft:Jm(4),color:Dp.ui.theme,lineHeight:1},r),spinControls:"none",size:"__unstable-large"}),(0,a.createElement)(rw,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:i,onChange:o,withInputField:!1})),aE=({color:e,onChange:t,enableAlpha:n})=>{const{r:r,g:o,b:i,a:s}=e.toRgb();return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(iE,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:e=>t(Sp({r:e,g:o,b:i,a:s}))}),(0,a.createElement)(iE,{min:0,max:255,label:"Green",abbreviation:"G",value:o,onChange:e=>t(Sp({r:r,g:e,b:i,a:s}))}),(0,a.createElement)(iE,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>t(Sp({r:r,g:o,b:e,a:s}))}),n&&(0,a.createElement)(iE,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>t(Sp({r:r,g:o,b:i,a:e/100}))}))},sE=({color:e,onChange:t,enableAlpha:n})=>{const{h:r,s:o,l:i,a:s}=e.toHsl();return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(iE,{min:0,max:359,label:"Hue",abbreviation:"H",value:r,onChange:e=>{t(Sp({h:e,s:o,l:i,a:s}))}}),(0,a.createElement)(iE,{min:0,max:100,label:"Saturation",abbreviation:"S",value:o,onChange:e=>{t(Sp({h:r,s:e,l:i,a:s}))}}),(0,a.createElement)(iE,{min:0,max:100,label:"Lightness",abbreviation:"L",value:i,onChange:e=>{t(Sp({h:r,s:o,l:e,a:s}))}}),n&&(0,a.createElement)(iE,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>{t(Sp({h:r,s:o,l:i,a:e/100}))}}))},lE=({color:e,onChange:t,enableAlpha:n})=>(0,a.createElement)(Hv,{prefix:(0,a.createElement)(lh,{as:Yh,marginLeft:Jm(4),color:Dp.ui.theme,lineHeight:1},"#"),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(Sp(n))},maxLength:n?9:7,label:(0,c.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{const n=t.payload?.event?.nativeEvent;if("insertFromPaste"!==n?.inputType)return{...e};const r=e.value?.startsWith("#")?e.value.slice(1).toUpperCase():e.value?.toUpperCase();return{...e,value:r}},__unstableInputWidth:"9em"}),cE=({colorType:e,color:t,onChange:n,enableAlpha:r})=>{const o={color:t,onChange:n,enableAlpha:r};switch(e){case"hsl":return(0,a.createElement)(sE,{...o});case"rgb":return(0,a.createElement)(aE,{...o});default:return(0,a.createElement)(lE,{...o})}};function uE(){return(uE=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}).apply(this,arguments)}function dE(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function fE(e){var t=(0,v.useRef)(e),n=(0,v.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var pE=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},mE=function(e){return"touches"in e},hE=function(e){return e&&e.ownerDocument.defaultView||self},gE=function(e,t,n){var r=e.getBoundingClientRect(),o=mE(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:pE((o.pageX-(r.left+hE(e).pageXOffset))/r.width),top:pE((o.pageY-(r.top+hE(e).pageYOffset))/r.height)}},vE=function(e){!mE(e)&&e.preventDefault()},bE=v.memo((function(e){var t=e.onMove,n=e.onKey,r=dE(e,["onMove","onKey"]),o=(0,v.useRef)(null),i=fE(t),a=fE(n),s=(0,v.useRef)(null),l=(0,v.useRef)(!1),c=(0,v.useMemo)((function(){var e=function(e){vE(e),(mE(e)?e.touches.length>0:e.buttons>0)&&o.current?i(gE(o.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=hE(o.current),a=n?i.addEventListener:i.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(vE(t),!function(e,t){return t&&!mE(e)}(t,l.current)&&r)){if(mE(t)){l.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),i(gE(r,t,s.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[a,i]),u=c[0],d=c[1],f=c[2];return(0,v.useEffect)((function(){return f}),[f]),v.createElement("div",uE({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),yE=function(e){return e.filter(Boolean).join(" ")},wE=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=yE(["react-colorful__pointer",e.className]);return v.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},v.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},xE=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},EE=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:xE(e.h),s:xE(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:xE(o/2),a:xE(r,2)}}),_E=function(e){var t=EE(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},CE=function(e){var t=EE(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},SE=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:xE(255*[r,s,a,a,l,r][c]),g:xE(255*[l,r,r,s,a,a][c]),b:xE(255*[a,a,l,r,r,s][c]),a:xE(o,2)}},kE=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?RE({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},TE=kE,RE=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:xE(60*(s<0?s+6:s)),s:xE(i?a/i*100:0),v:xE(i/255*100),a:o}},PE=v.memo((function(e){var t=e.hue,n=e.onChange,r=yE(["react-colorful__hue",e.className]);return v.createElement("div",{className:r},v.createElement(bE,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:pE(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":xE(t),"aria-valuemax":"360","aria-valuemin":"0"},v.createElement(wE,{className:"react-colorful__hue-pointer",left:t/360,color:_E({h:t,s:100,v:100,a:1})})))})),ME=v.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:_E({h:t.h,s:100,v:100,a:1})};return v.createElement("div",{className:"react-colorful__saturation",style:r},v.createElement(bE,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:pE(t.s+100*e.left,0,100),v:pE(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+xE(t.s)+"%, Brightness "+xE(t.v)+"%"},v.createElement(wE,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:_E(t)})))})),IE=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},NE=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function OE(e,t,n){var r=fE(n),o=(0,v.useState)((function(){return e.toHsva(t)})),i=o[0],a=o[1],s=(0,v.useRef)({color:t,hsva:i});(0,v.useEffect)((function(){if(!e.equal(t,s.current.color)){var n=e.toHsva(t);s.current={hsva:n,color:t},a(n)}}),[t,e]),(0,v.useEffect)((function(){var t;IE(i,s.current.hsva)||e.equal(t=e.fromHsva(i),s.current.color)||(s.current={hsva:i,color:t},r(t))}),[i,e,r]);var l=(0,v.useCallback)((function(e){a((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var DE,AE="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,LE=new Map,zE=function(e){AE((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!LE.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',LE.set(t,n);var r=DE||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},FE=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=dE(e,["className","colorModel","color","onChange"]),s=(0,v.useRef)(null);zE(s);var l=OE(n,o,i),c=l[0],u=l[1],d=yE(["react-colorful",t]);return v.createElement("div",uE({},a,{ref:s,className:d}),v.createElement(ME,{hsva:c,onChange:u}),v.createElement(PE,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},BE=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+CE(Object.assign({},n,{a:0}))+", "+CE(Object.assign({},n,{a:1}))+")"},i=yE(["react-colorful__alpha",t]),a=xE(100*n.a);return v.createElement("div",{className:i},v.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),v.createElement(bE,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:pE(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},v.createElement(wE,{className:"react-colorful__alpha-pointer",left:n.a,color:CE(n)})))},jE=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=dE(e,["className","colorModel","color","onChange"]),s=(0,v.useRef)(null);zE(s);var l=OE(n,o,i),c=l[0],u=l[1],d=yE(["react-colorful",t]);return v.createElement("div",uE({},a,{ref:s,className:d}),v.createElement(ME,{hsva:c,onChange:u}),v.createElement(PE,{hue:c.h,onChange:u}),v.createElement(BE,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},VE={defaultColor:"rgba(0, 0, 0, 1)",toHsva:kE,fromHsva:function(e){var t=SE(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:NE},HE=function(e){return v.createElement(jE,uE({},e,{colorModel:VE}))},$E={defaultColor:"rgb(0, 0, 0)",toHsva:TE,fromHsva:function(e){var t=SE(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:NE},WE=function(e){return v.createElement(FE,uE({},e,{colorModel:$E}))};const UE=({color:e,enableAlpha:t,onChange:n})=>{const r=t?HE:WE,o=(0,a.useMemo)((()=>e.toRgbString()),[e]);return(0,a.createElement)(r,{color:o,onChange:e=>{n(Sp(e))}})};function GE({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,s]=(0,a.useState)(o);let l;return l=r&&"function"==typeof t?t:r||"function"!=typeof t?s:e=>{t(e),s(e)},[r?n:i,l]}Tp([Rp]);const KE=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],qE=Ku(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:s,...l}=Gu(e,"ColorPicker"),[d,f]=GE({onChange:o,value:r,defaultValue:i}),p=(0,a.useMemo)((()=>Sp(d||"")),[d]),m=(0,u.useDebounce)(f),h=(0,a.useCallback)((e=>{m(e.toHex())}),[m]),[g,v]=(0,a.useState)(s||"hex");return(0,a.createElement)(lw,{ref:t,...l},(0,a.createElement)(UE,{onChange:h,color:p,enableAlpha:n}),(0,a.createElement)(iw,null,(0,a.createElement)(aw,{justify:"space-between"},(0,a.createElement)(nw,{__nextHasNoMarginBottom:!0,options:KE,value:g,onChange:e=>v(e),label:(0,c.__)("Color format"),hideLabelFromVision:!0}),(0,a.createElement)(oE,{color:p,colorType:s||g})),(0,a.createElement)(sw,{direction:"column",gap:2},(0,a.createElement)(cE,{colorType:g,color:p,onChange:h,enableAlpha:n}))))}),"ColorPicker");var YE=qE;function XE(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const ZE=hc((e=>{const t=Sp(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),i=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:i,source:"hex",oldHue:i.h}}));function JE(e){const{onChangeComplete:t}=e,n=(0,a.useCallback)((e=>{t(ZE(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:XE(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const QE=e=>(0,a.createElement)(YE,{...JE(e)});var e_=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function t_(e){const{actions:t,className:n,options:r,children:o}=e;return(0,a.createElement)("div",{className:l()("components-circular-option-picker",n)},(0,a.createElement)("div",{className:"components-circular-option-picker__swatches"},r),o,t&&(0,a.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},t))}t_.Option=function({className:e,isSelected:t,selectedIconProps:n,tooltipText:r,...o}){const i=(0,a.createElement)(pd,{isPressed:t,className:"components-circular-option-picker__option",...o});return(0,a.createElement)("div",{className:l()(e,"components-circular-option-picker__option-wrapper")},r?(0,a.createElement)(Uf,{text:r},i):i,t&&(0,a.createElement)(by,{icon:e_,...n||{}}))},t_.ButtonAction=function({className:e,children:t,...n}){return(0,a.createElement)(pd,{className:l()("components-circular-option-picker__clear",e),variant:"tertiary",...n},t)},t_.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:r}){return(0,a.createElement)(py,{className:l()("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,a.createElement)(pd,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e},r),...n})};var n_=t_;var r_=Ku((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=Gu(e,"VStack");return nb({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"VStack");var o_=Ku((function(e,t){const n=Ch(e);return(0,a.createElement)(cd,{as:"span",...n,ref:t})}),"Truncate");var i_=Ku((function(e,t){const n=function(e){const{as:t,level:n=2,...r}=Gu(e,"Heading"),o=t||`h${n}`,i={};return"string"==typeof o&&"h"!==o[0]&&(i.role="heading",i["aria-level"]="string"==typeof n?parseInt(n):n),{...qh({color:Dp.gray[900],size:Gh(n),isBlock:!0,weight:Nh.fontWeightHeading,...r}),...i,as:o}}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"Heading");const a_=sd(i_,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),s_=sd("div",{target:"eovvns30"})("margin-left:",Jm(-2),";margin-right:",Jm(-2),";&:first-of-type{margin-top:",Jm(-2),";}&:last-of-type{margin-bottom:",Jm(-2),";}",(({paddingSize:e="small"})=>{if("none"===e)return;const t={small:Jm(2),medium:Jm(4)};return Zf("padding:",t[e]||t.small,";","")}),";");var l_=Ku((function(e,t){const{paddingSize:n="small",...r}=Gu(e,"DropdownContentWrapper");return(0,a.createElement)(s_,{...r,paddingSize:n,ref:t})}),"DropdownContentWrapper");Tp([Rp,dy]);const c_=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function u_({className:e,clearColor:t,colors:n,onChange:r,value:o,actions:i}){const s=(0,a.useMemo)((()=>n.map((({color:e,name:n},i)=>{const s=Sp(e),l=o===e;return(0,a.createElement)(n_.Option,{key:`${e}-${i}`,isSelected:l,selectedIconProps:l?{fill:s.contrast()>s.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||(0,c.sprintf)((0,c.__)("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:l?t:()=>r(e,i),"aria-label":n?(0,c.sprintf)((0,c.__)("Color: %s"),n):(0,c.sprintf)((0,c.__)("Color code: %s"),e)})}))),[n,o,r,t]);return(0,a.createElement)(n_,{className:e,options:s,actions:i})}function d_({className:e,clearColor:t,colors:n,onChange:r,value:o,actions:i,headingLevel:s}){return 0===n.length?null:(0,a.createElement)(r_,{spacing:3,className:e},n.map((({name:e,colors:l},c)=>(0,a.createElement)(r_,{spacing:2,key:c},(0,a.createElement)(a_,{level:s},e),(0,a.createElement)(u_,{clearColor:t,colors:l,onChange:e=>r(e,c),value:o,actions:n.length===c+1?i:null})))))}function f_({isRenderedInSidebar:e,popoverProps:t,...n}){const r=(0,a.useMemo)((()=>({shift:!0,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,a.createElement)(py,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:r,...n})}Tp([Rp,dy]);const p_=(0,a.forwardRef)((function(e,t){const{clearable:n=!0,colors:r=[],disableCustomColors:o=!1,enableAlpha:i=!1,onChange:s,value:u,__experimentalIsRenderedInSidebar:d=!1,headingLevel:f=2,...p}=e,[m,h]=(0,a.useState)(u),g=(0,a.useCallback)((()=>s(void 0)),[s]),v=(0,a.useCallback)((e=>{h(((e,t)=>{if(!/^var\(/.test(null!=e?e:"")||null===t)return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r?.getComputedStyle(t).backgroundColor;return o?Sp(o).toHex():e})(u,e))}),[u]),b=c_(r),y=(0,a.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:Sp(e).toHex(),i=n?t:[{colors:t}];for(const{colors:e}of i)for(const{name:t,color:n}of e)if(o===(r?n:Sp(n).toHex()))return t;return(0,c.__)("Custom")})(u,r,b)),[u,r,b]),w=u?.startsWith("#"),x=u?.replace(/^var\((.+)\)$/,"$1"),E=x?(0,c.sprintf)((0,c.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),y,w?x.split("").join("-"):x):(0,c.__)("Custom color picker."),_={clearable:n,clearColor:g,onChange:s,value:u,actions:!!n&&(0,a.createElement)(n_.ButtonAction,{onClick:g},(0,c.__)("Clear")),headingLevel:f};return(0,a.createElement)(r_,{spacing:3,ref:t,...p},!o&&(0,a.createElement)(f_,{isRenderedInSidebar:d,renderContent:()=>(0,a.createElement)(l_,{paddingSize:"none"},(0,a.createElement)(QE,{color:m,onChange:e=>s(e),enableAlpha:i})),renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(r_,{className:"components-color-palette__custom-color-wrapper",spacing:0},(0,a.createElement)("button",{ref:v,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":E,style:{background:u}}),(0,a.createElement)(r_,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5},(0,a.createElement)(o_,{className:"components-color-palette__custom-color-name"},u?y:"No color selected"),(0,a.createElement)(o_,{className:l()("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":w})},x)))}),b?(0,a.createElement)(d_,{..._,colors:r}):(0,a.createElement)(u_,{..._,colors:r}))}));var m_=p_;const h_="web"===a.Platform.OS,g_={px:{value:"px",label:h_?"px":(0,c.__)("Pixels (px)"),a11yLabel:(0,c.__)("Pixels (px)"),step:1},"%":{value:"%",label:h_?"%":(0,c.__)("Percentage (%)"),a11yLabel:(0,c.__)("Percent (%)"),step:.1},em:{value:"em",label:h_?"em":(0,c.__)("Relative to parent font size (em)"),a11yLabel:(0,c._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:h_?"rem":(0,c.__)("Relative to root font size (rem)"),a11yLabel:(0,c._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:h_?"vw":(0,c.__)("Viewport width (vw)"),a11yLabel:(0,c.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:h_?"vh":(0,c.__)("Viewport height (vh)"),a11yLabel:(0,c.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:h_?"vmin":(0,c.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,c.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:h_?"vmax":(0,c.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,c.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:h_?"ch":(0,c.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,c.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:h_?"ex":(0,c.__)("x-height of the font (ex)"),a11yLabel:(0,c.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:h_?"cm":(0,c.__)("Centimeters (cm)"),a11yLabel:(0,c.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:h_?"mm":(0,c.__)("Millimeters (mm)"),a11yLabel:(0,c.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:h_?"in":(0,c.__)("Inches (in)"),a11yLabel:(0,c.__)("Inches (in)"),step:.001},pc:{value:"pc",label:h_?"pc":(0,c.__)("Picas (pc)"),a11yLabel:(0,c.__)("Picas (pc)"),step:1},pt:{value:"pt",label:h_?"pt":(0,c.__)("Points (pt)"),a11yLabel:(0,c.__)("Points (pt)"),step:1}},v_=Object.values(g_),b_=[g_.px,g_["%"],g_.em,g_.rem,g_.vw,g_.vh],y_=g_.px;function w_(e,t,n){return E_(t?`${null!=e?e:""}${t}`:e,n)}function x_(e){return Array.isArray(e)&&!!e.length}function E_(e,t=v_){let n,r;if(void 0!==e||null===e){n=`${e}`.trim();const t=parseFloat(n);r=isFinite(t)?t:void 0}const o=n?.match(/[\d.\-\+]*\s*(.*)/),i=o?.[1]?.toLowerCase();let a;if(x_(t)){const e=t.find((e=>e.value===i));a=e?.value}else a=y_.value;return[r,a]}const __=({units:e=v_,availableUnits:t=[],defaultValues:n})=>{const r=function(e=[],t){return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(t,e);return n&&r.forEach(((e,t)=>{if(n[e.value]){const[o]=E_(n[e.value]);r[t].default=o}})),r};function C_(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:s,previousStyleSelection:l,size:c="default",__experimentalIsRenderedInSidebar:u=!1,...d}=Gu(e,"BorderControlDropdown"),[f]=E_(t?.width),p=0===f,m=Uu(),h=(0,a.useMemo)((()=>m((e=>Zf("background:#fff;&&>button{height:","__unstable-large"===e?"40px":"30px",";width:","__unstable-large"===e?"40px":"30px",";padding:0;display:flex;align-items:center;justify-content:center;",ih({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",Nh.borderWidth," solid ",Dp.ui.border,";&:focus,&:hover:not( :disabled ){",qb," border-color:",Dp.ui.borderFocus,";z-index:1;position:relative;}}",""))(c),n)),[n,m,c]),g=(0,a.useMemo)((()=>m(ey)),[m]),v=(0,a.useMemo)((()=>m(Zb(t,c))),[t,m,c]),b=(0,a.useMemo)((()=>m(Jb)),[m]),y=(0,a.useMemo)((()=>m(Qb)),[m]),w=(0,a.useMemo)((()=>m(ty)),[m]);return{...d,border:t,className:h,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:g,indicatorWrapperClassName:v,onColorChange:e=>{s({color:e,style:"none"===t?.style?l:t?.style,width:p&&e?"1px":t?.width})},onStyleChange:e=>{const n=p&&e?"1px":t?.width;s({...t,style:e,width:n})},onReset:()=>{s({...t,color:void 0,style:void 0})},popoverContentClassName:y,popoverControlsClassName:b,resetButtonClassName:w,__experimentalIsRenderedInSidebar:u}}const S_=e=>{const t=e.startsWith("#"),n=e.replace(/^var\((.+)\)$/,"$1");return t?n.split("").join("-"):n},k_=Ku(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:r,colors:o,disableCustomColors:i,enableAlpha:s,enableStyle:l,indicatorClassName:u,indicatorWrapperClassName:d,onReset:f,onColorChange:p,onStyleChange:m,popoverContentClassName:h,popoverControlsClassName:g,resetButtonClassName:v,showDropdownHeader:b,__unstablePopoverProps:y,...w}=C_(e),{color:x,style:E}=r||{},_=((e,t)=>{if(e&&t){if(c_(t)){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(x,o),C=((e,t,n,r)=>{if(r){if(t){const e=S_(t.color);return n?(0,c.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".',t.name,e,n):(0,c.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,e)}if(e){const t=S_(e);return n?(0,c.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):(0,c.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return(0,c.__)("Border color and style picker.")}return t?(0,c.sprintf)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,S_(t.color)):e?(0,c.sprintf)('Border color picker. The currently selected color has a value of "%1$s".',S_(e)):(0,c.__)("Border color picker.")})(x,_,E,l),S=x||E&&"none"!==E,k=n?"bottom left":void 0;return(0,a.createElement)(py,{renderToggle:({onToggle:e})=>(0,a.createElement)(pd,{onClick:e,variant:"tertiary","aria-label":C,tooltipPosition:k,label:(0,c.__)("Border color and style picker"),showTooltip:!0},(0,a.createElement)("span",{className:d},(0,a.createElement)(ly,{className:u,colorValue:x}))),renderContent:({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(l_,{paddingSize:"medium"},(0,a.createElement)(r_,{className:g,spacing:6},b?(0,a.createElement)(rb,null,(0,a.createElement)(Av,null,(0,c.__)("Border color")),(0,a.createElement)(pd,{isSmall:!0,label:(0,c.__)("Close border color"),icon:Bb,onClick:e})):void 0,(0,a.createElement)(m_,{className:h,value:x,onChange:p,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:s}),l&&(0,a.createElement)(sy,{label:(0,c.__)("Style"),value:E,onChange:m}))),S&&(0,a.createElement)(l_,{paddingSize:"none"},(0,a.createElement)(pd,{className:v,variant:"tertiary",onClick:()=>{f(),e()}},(0,c.__)("Reset to default")))),popoverProps:{...y},...w,ref:t})}),"BorderControlDropdown");var T_=k_;var R_=(0,a.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:r="default",unit:o="px",units:i=b_,...s},c){if(!x_(i)||1===i?.length)return(0,a.createElement)(Ub,{className:"components-unit-control__unit-label",selectSize:r},o);const u=l()("components-unit-control__select",e);return(0,a.createElement)(Gb,{ref:c,className:u,onChange:e=>{const{value:t}=e.target,r=i.find((e=>e.value===t));n?.(t,{event:e,data:r})},selectSize:r,tabIndex:t?void 0:-1,value:o,...s},i.map((e=>(0,a.createElement)("option",{value:e.value,key:e.value},e.label))))}));const P_=(0,a.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:r="off",children:o,className:i,disabled:s=!1,disableUnits:u=!1,isPressEnterToChange:d=!1,isResetValueOnUnitChange:f=!1,isUnitSelectTabbable:p=!0,label:m,onChange:h,onUnitChange:g,size:v="default",unit:b,units:y=b_,value:w,onFocus:x,...E}=e;"unit"in e&&$l()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const _=null!=w?w:void 0,[C,S]=(0,a.useMemo)((()=>{const e=function(e,t,n=v_){const r=Array.isArray(n)?[...n]:[],[,o]=w_(e,t,v_);return o&&!r.some((e=>e.value===o))&&g_[o]&&r.unshift(g_[o]),r}(_,b,y),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=xb(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),xb(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[_,b,y]),[k,T]=w_(_,b,C),[R,P]=Sy(1===C.length?C[0].value:b,{initial:T,fallback:""});(0,a.useEffect)((()=>{void 0!==T&&P(T)}),[T,P]);const M=l()("components-unit-control","components-unit-control-wrapper",i);let I;!u&&p&&C.length&&(I=e=>{E.onKeyDown?.(e),!e.metaKey&&S.test(e.key)&&N.current?.focus()});const N=(0,a.useRef)(null),O=u?null:(0,a.createElement)(R_,{ref:N,"aria-label":(0,c.__)("Select unit"),disabled:s,isUnitSelectTabbable:p,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=k?k:""}${e}`;f&&void 0!==n?.default&&(r=`${n.default}${e}`),h?.(r,t),g?.(e,t),P(e)},size:v,unit:R,units:C,onFocus:x,onBlur:e.onBlur});let D=E.step;if(!D&&C){var A;const e=C.find((e=>e.value===R));D=null!==(A=e?.step)&&void 0!==A?A:1}return(0,a.createElement)($b,{...E,autoComplete:r,className:M,disabled:s,spinControls:"none",isPressEnterToChange:d,label:m,onKeyDown:I,onChange:(e,t)=>{if(""===e||null==e)return void h?.("",t);const n=function(e,t,n,r){const[o,i]=E_(e,t),a=null!=o?o:n;let s=i||r;return!s&&x_(t)&&(s=t[0].value),[a,s]}(e,C,k,R).join("");h?.(n,t)},ref:t,size:v,suffix:O,type:d?"text":"number",value:null!=k?k:"",step:D,onFocus:x,__unstableStateReducer:n})}));var M_=P_;function I_(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:s=!0,shouldSanitizeBorder:l=!0,size:c="default",value:u,width:d,__experimentalIsRenderedInSidebar:f=!1,...p}=Gu(e,"BorderControl"),[m,h]=E_(u?.width),g=h||"px",v=0===m,[b,y]=(0,a.useState)(),[w,x]=(0,a.useState)(),E=(0,a.useCallback)((e=>{if(l)return o((e=>{if(void 0!==e?.width&&""!==e.width||void 0!==e?.color)return e})(e));o(e)}),[o,l]),_=(0,a.useCallback)((e=>{const t=""===e?void 0:e,[n]=E_(e),r=0===n,o={...u,width:t};r&&!v&&(y(u?.color),x(u?.style),o.color=void 0,o.style="none"),!r&&v&&(void 0===o.color&&(o.color=b),"none"===o.style&&(o.style=w)),E(o)}),[u,v,b,w,E]),C=(0,a.useCallback)((e=>{_(`${e}${g}`)}),[_,g]),S=Uu(),k=(0,a.useMemo)((()=>S(Yb,t)),[t,S]);let T=d;r&&(T="__unstable-large"===c?"116px":"90px");const R=(0,a.useMemo)((()=>{const e=!!T&&Xb,t=(e=>Zf("height:","__unstable-large"===e?"40px":"30px",";",""))(c);return S(Zf($b,"{flex:1 1 40%;}&& ",Gb,"{min-height:0;}",""),e,t)}),[T,S,c]),P=(0,a.useMemo)((()=>S(Zf("flex:1 1 60%;",ih({marginRight:Jm(3)})(),";",""))),[S]);return{...p,className:k,colors:n,enableAlpha:i,enableStyle:s,innerWrapperClassName:R,inputWidth:T,onBorderChange:E,onSliderChange:C,onWidthChange:_,previousStyleSelection:w,sliderClassName:P,value:u,widthUnit:g,widthValue:m,size:c,__experimentalIsRenderedInSidebar:f}}const N_=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(ud,{as:"legend"},t):(0,a.createElement)(Av,{as:"legend"},t):null},O_=Ku(((e,t)=>{const{colors:n,disableCustomColors:r,disableUnits:o,enableAlpha:i,enableStyle:s,hideLabelFromVision:l,innerWrapperClassName:u,inputWidth:d,label:f,onBorderChange:p,onSliderChange:m,onWidthChange:h,placeholder:g,__unstablePopoverProps:v,previousStyleSelection:b,showDropdownHeader:y,size:w,sliderClassName:x,value:E,widthUnit:_,widthValue:C,withSlider:S,__experimentalIsRenderedInSidebar:k,...T}=I_(e);return(0,a.createElement)(cd,{as:"fieldset",...T,ref:t},(0,a.createElement)(N_,{label:f,hideLabelFromVision:l}),(0,a.createElement)(rb,{spacing:4,className:u},(0,a.createElement)(M_,{prefix:(0,a.createElement)(T_,{border:E,colors:n,__unstablePopoverProps:v,disableCustomColors:r,enableAlpha:i,enableStyle:s,onChange:p,previousStyleSelection:b,showDropdownHeader:y,__experimentalIsRenderedInSidebar:k,size:w}),label:(0,c.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:h,value:E?.width||"",placeholder:g,disableUnits:o,__unstableInputWidth:d,size:w}),S&&(0,a.createElement)(ew,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Border width"),hideLabelFromVision:!0,className:x,initialPosition:0,max:100,min:0,onChange:m,step:["px","%"].includes(_)?1:.1,value:C||void 0,withInputField:!1})))}),"BorderControl");var D_=O_;const A_={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function L_(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:s=3,isInline:l=!1,justify:c,rowGap:u,rows:d,templateColumns:f,templateRows:p,...m}=Gu(e,"Grid"),h=ph(Array.isArray(i)?i:[i]),g=ph(Array.isArray(d)?d:[d]),v=f||!!i&&`repeat( ${h}, 1fr )`,b=p||!!d&&`repeat( ${g}, 1fr )`,y=Uu();return{...m,className:(0,a.useMemo)((()=>{const e=function(e){return e?A_[e]:{}}(n),i=Zf({alignItems:t,display:l?"inline-grid":"grid",gap:`calc( ${Nh.gridBase} * ${s} )`,gridTemplateColumns:v||void 0,gridTemplateRows:b||void 0,gridRowGap:u,gridColumnGap:o,justifyContent:c,verticalAlign:l?"middle":void 0,...e},"","");return y(i,r)}),[t,n,r,o,y,s,v,b,l,c,u])}}var z_=Ku((function(e,t){const n=L_(e);return(0,a.createElement)(cd,{...n,ref:t})}),"Grid");function F_(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:s=!1,...l}=Gu(e,"BorderBoxControlSplitControls"),c=Uu(),u=(0,a.useMemo)((()=>c((e=>Zf("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[c,t,i]);return{...l,centeredClassName:(0,a.useMemo)((()=>c(Db,t)),[c,t]),className:u,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,a.useMemo)((()=>c(Zf(ih({marginLeft:"auto"})(),";",""),t)),[c,t]),size:i,__experimentalIsRenderedInSidebar:s}}var B_=Ku(((e,t)=>{const{centeredClassName:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,onChange:l,popoverPlacement:d,popoverOffset:f,rightAlignedClassName:p,size:m="default",value:h,__experimentalIsRenderedInSidebar:g,...v}=F_(e),[b,y]=(0,a.useState)(null),w=(0,a.useMemo)((()=>d?{placement:d,offset:f,anchor:b,shift:!0}:void 0),[d,f,b]),x={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,isCompact:!0,__experimentalIsRenderedInSidebar:g,size:m},E=(0,u.useMergeRefs)([y,t]);return(0,a.createElement)(z_,{...v,ref:E,gap:4},(0,a.createElement)(Fb,{value:h,size:m}),(0,a.createElement)(D_,{className:n,hideLabelFromVision:!0,label:(0,c.__)("Top border"),onChange:e=>l(e,"top"),__unstablePopoverProps:w,value:h?.top,...x}),(0,a.createElement)(D_,{hideLabelFromVision:!0,label:(0,c.__)("Left border"),onChange:e=>l(e,"left"),__unstablePopoverProps:w,value:h?.left,...x}),(0,a.createElement)(D_,{className:p,hideLabelFromVision:!0,label:(0,c.__)("Right border"),onChange:e=>l(e,"right"),__unstablePopoverProps:w,value:h?.right,...x}),(0,a.createElement)(D_,{className:n,hideLabelFromVision:!0,label:(0,c.__)("Bottom border"),onChange:e=>l(e,"bottom"),__unstablePopoverProps:w,value:h?.bottom,...x}))}),"BorderBoxControlSplitControls");const j_=/^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?$/;const V_=["top","right","bottom","left"],H_=["color","style","width"],$_=e=>!e||!H_.some((t=>void 0!==e[t])),W_=e=>{if(!e)return!1;if(U_(e)){return!V_.every((t=>$_(e[t])))}return!$_(e)},U_=(e={})=>Object.keys(e).some((e=>-1!==V_.indexOf(e))),G_=e=>{if(!U_(e))return!1;const t=V_.map((t=>K_(e?.[t])));return!t.every((e=>e===t[0]))},K_=(e,t)=>{if($_(e))return t;const{color:n,style:r,width:o}=t||{},{color:i=n,style:a=r,width:s=o}=e;return[s,!!s&&"0"!==s||!!i?a||"solid":a,i].filter(Boolean).join(" ")},q_=e=>function(e){if(0===e.length)return;const t={};let n,r=0;return e.forEach((e=>{t[e]=void 0===t[e]?1:t[e]+1,t[e]>r&&(n=e,r=t[e])})),n}(e.map((e=>void 0===e?void 0:function(e){const t=e.trim().match(j_);if(!t)return[void 0,void 0];const[,n,r]=t;let o=parseFloat(n);return o=Number.isNaN(o)?void 0:o,[o,r]}(`${e}`)[1])).filter((e=>void 0!==e)));function Y_(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:s="default",value:l,__experimentalIsRenderedInSidebar:c=!1,...u}=Gu(e,"BorderBoxControl"),d=G_(l),f=U_(l),p=f?(e=>{if(!e)return;const t=[],n=[],r=[];V_.forEach((o=>{t.push(e[o]?.color),n.push(e[o]?.style),r.push(e[o]?.width)}));const o=t.every((e=>e===t[0])),i=n.every((e=>e===n[0])),a=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:a?r[0]:q_(r)}})(l):l,m=f?l:(e=>{if(e&&!$_(e))return{top:e,right:e,bottom:e,left:e}})(l),h=!isNaN(parseFloat(`${p?.width}`)),[g,v]=(0,a.useState)(!d),b=Uu(),y=(0,a.useMemo)((()=>b(Ib,t)),[b,t]),w=(0,a.useMemo)((()=>b(Zf("flex:1;",ih({marginRight:"24px"})(),";",""))),[b]),x=(0,a.useMemo)((()=>b(Nb)),[b]);return{...u,className:y,colors:n,disableUnits:d&&!h,enableAlpha:o,enableStyle:i,hasMixedBorders:d,isLinked:g,linkedControlClassName:w,onLinkedChange:e=>{if(!e)return r(void 0);if(!d||(t=e)&&H_.every((e=>void 0!==t[e])))return r($_(e)?void 0:e);var t;const n=((e,t)=>{const n={};return e.color!==t.color&&(n.color=t.color),e.style!==t.style&&(n.style=t.style),e.width!==t.width&&(n.width=t.width),n})(p,e),o={top:{...l?.top,...n},right:{...l?.right,...n},bottom:{...l?.bottom,...n},left:{...l?.left,...n}};if(G_(o))return r(o);const i=$_(o.top)?void 0:o.top;r(i)},onSplitChange:(e,t)=>{const n={...m,[t]:e};G_(n)?r(n):r(e)},toggleLinked:()=>v(!g),linkedValue:p,size:s,splitValue:m,wrapperClassName:x,__experimentalIsRenderedInSidebar:c}}const X_=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(ud,{as:"label"},t):(0,a.createElement)(Av,null,t):null},Z_=Ku(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:s,enableStyle:l,hasMixedBorders:d,hideLabelFromVision:f,isLinked:p,label:m,linkedControlClassName:h,linkedValue:g,onLinkedChange:v,onSplitChange:b,popoverPlacement:y,popoverOffset:w,size:x,splitValue:E,toggleLinked:_,wrapperClassName:C,__experimentalIsRenderedInSidebar:S,...k}=Y_(e),[T,R]=(0,a.useState)(null),P=(0,a.useMemo)((()=>y?{placement:y,offset:w,anchor:T,shift:!0}:void 0),[y,w,T]),M=(0,u.useMergeRefs)([R,t]);return(0,a.createElement)(cd,{className:n,...k,ref:M},(0,a.createElement)(X_,{label:m,hideLabelFromVision:f}),(0,a.createElement)(cd,{className:C},p?(0,a.createElement)(D_,{className:h,colors:r,disableUnits:i,disableCustomColors:o,enableAlpha:s,enableStyle:l,onChange:v,placeholder:d?(0,c.__)("Mixed"):void 0,__unstablePopoverProps:P,shouldSanitizeBorder:!1,value:g,withSlider:!0,width:"__unstable-large"===x?"116px":"110px",__experimentalIsRenderedInSidebar:S,size:x}):(0,a.createElement)(B_,{colors:r,disableCustomColors:o,enableAlpha:s,enableStyle:l,onChange:b,popoverPlacement:y,popoverOffset:w,value:E,__experimentalIsRenderedInSidebar:S,size:x}),(0,a.createElement)(Lb,{onClick:_,isLinked:p,size:x})))}),"BorderBoxControl");var J_=Z_;const Q_=sd("div",{target:"e1jovhle6"})({name:"14bvcyk",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%"}),eC=sd(hh,{target:"e1jovhle5"})({name:"5bhc30",styles:"margin-bottom:8px"}),tC=sd(hh,{target:"e1jovhle4"})({name:"aujtid",styles:"min-height:30px;gap:0"}),nC=sd("div",{target:"e1jovhle3"})({name:"112jwab",styles:"box-sizing:border-box;max-width:80px"}),rC=sd(hh,{target:"e1jovhle2"})({name:"xy18ro",styles:"justify-content:center;padding-top:8px"}),oC=sd(hh,{target:"e1jovhle1"})({name:"3tw5wk",styles:"position:relative;height:100%;width:100%;justify-content:flex-start"});var iC={name:"1ch9yvl",styles:"border-radius:0"},aC={name:"tg3mx0",styles:"border-radius:2px"};const sC=({isFirst:e,isLast:t,isOnly:n})=>e?ih({borderTopRightRadius:0,borderBottomRightRadius:0})():t?ih({borderTopLeftRadius:0,borderBottomLeftRadius:0})():n?aC:iC,lC=({isFirst:e,isOnly:t})=>ih({marginLeft:e||t?0:-1})(),cC=sd(M_,{target:"e1jovhle0"})("max-width:60px;",sC,";",lC,";"),uC=()=>{};function dC({isFirst:e,isLast:t,isOnly:n,onHoverOn:r=uC,onHoverOff:o=uC,label:i,value:s,...l}){const c=(u=({event:e,...t})=>{t.hovering?r(e,t):o(e,t)},Qg(tv),dv({hover:u},d||{},"hover"));var u,d;return(0,a.createElement)(nC,{...c()},(0,a.createElement)(fC,{text:i},(0,a.createElement)(cC,{"aria-label":i,className:"component-box-control__unit-control",isFirst:e,isLast:t,isOnly:n,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:s,...l})))}function fC({children:e,text:t}){return t?(0,a.createElement)(Uf,{text:t,position:"top"},(0,a.createElement)("div",null,e)):e}const pC={all:(0,c.__)("All"),top:(0,c.__)("Top"),bottom:(0,c.__)("Bottom"),left:(0,c.__)("Left"),right:(0,c.__)("Right"),mixed:(0,c.__)("Mixed"),vertical:(0,c.__)("Vertical"),horizontal:(0,c.__)("Horizontal")},mC={top:void 0,right:void 0,bottom:void 0,left:void 0},hC=["top","right","bottom","left"];function gC(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function vC(e={},t,n=hC){const r=function(e){const t=[];if(!e?.length)return hC;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=hC.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>E_(e[t]))),o=r.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),i=r.map((e=>e[1])),a=o.every((e=>e===o[0]))?o[0]:"";let s;var l;"number"==typeof a?s=gC(i):s=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return gC(t)}(t))&&void 0!==l?l:gC(i);return[a,s].join("")}function bC(e={},t,n=hC){const r=vC(e,t,n);return isNaN(parseFloat(r))}function yC(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function wC(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function xC(e,t,n){const r={...e};return n?.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):hC.forEach((e=>r[e]=t)),r}const EC=()=>{};function _C({onChange:e=EC,onFocus:t=EC,onHoverOn:n=EC,onHoverOff:r=EC,values:o,sides:i,selectedUnits:s,setSelectedUnits:l,...c}){const u=vC(o,s,i),d=yC(o)&&bC(o,s,i),f=d?pC.mixed:void 0;return(0,a.createElement)(dC,{...c,disableUnits:d,isOnly:!0,value:u,onChange:t=>{const n=void 0!==t&&!isNaN(parseFloat(t)),r=xC(o,n?t:void 0,i);e(r)},onUnitChange:e=>{const t=xC(s,e,i);l(t)},onFocus:e=>{t(e,{side:"all"})},onHoverOn:()=>{n({top:!0,bottom:!0,left:!0,right:!0})},onHoverOff:()=>{r({top:!1,bottom:!1,left:!1,right:!1})},placeholder:f})}const CC=()=>{};function SC({onChange:e=CC,onFocus:t=CC,onHoverOn:n=CC,onHoverOff:r=CC,values:o,selectedUnits:i,setSelectedUnits:s,sides:l,...c}){const u=e=>n=>{t(n,{side:e})},d=e=>()=>{n({[e]:!0})},f=e=>()=>{r({[e]:!1})},p=t=>(n,{event:r})=>{const i={...o},a=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[t]=a,r.altKey)switch(t){case"top":i.bottom=a;break;case"bottom":i.top=a;break;case"left":i.right=a;break;case"right":i.left=a}(t=>{e(t)})(i)},m=e=>t=>{const n={...i};n[e]=t,s(n)},h=l?.length?hC.filter((e=>l.includes(e))):hC,g=h[0],v=h[h.length-1],b=g===v&&g;return(0,a.createElement)(rC,{className:"component-box-control__input-controls-wrapper"},(0,a.createElement)(oC,{gap:0,align:"top",className:"component-box-control__input-controls"},h.map((e=>{const[t,n]=E_(o[e]),r=o[e]?n:i[e];return(0,a.createElement)(dC,{...c,isFirst:g===e,isLast:v===e,isOnly:b===e,value:[t,r].join(""),onChange:p(e),onUnitChange:m(e),onFocus:u(e),onHoverOn:d(e),onHoverOff:f(e),label:pC[e],key:`box-control-${e}`})}))))}const kC=["vertical","horizontal"];function TC({onChange:e,onFocus:t,onHoverOn:n,onHoverOff:r,values:o,selectedUnits:i,setSelectedUnits:s,sides:l,...c}){const u=e=>n=>{t&&t(n,{side:e})},d=e=>()=>{n&&("vertical"===e&&n({top:!0,bottom:!0}),"horizontal"===e&&n({left:!0,right:!0}))},f=e=>()=>{r&&("vertical"===e&&r({top:!1,bottom:!1}),"horizontal"===e&&r({left:!1,right:!1}))},p=t=>n=>{if(!e)return;const r={...o},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===t&&(r.top=i,r.bottom=i),"horizontal"===t&&(r.left=i,r.right=i),e(r)},m=e=>t=>{const n={...i};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),s(n)},h=l?.length?kC.filter((e=>l.includes(e))):kC,g=h[0],v=h[h.length-1],b=g===v&&g;return(0,a.createElement)(oC,{gap:0,align:"top",className:"component-box-control__vertical-horizontal-input-controls"},h.map((e=>{const[t,n]=E_("vertical"===e?o.top:o.left),r="vertical"===e?i.top:i.left;return(0,a.createElement)(dC,{...c,isFirst:g===e,isLast:v===e,isOnly:b===e,value:[t,null!=r?r:n].join(""),onChange:p(e),onUnitChange:m(e),onFocus:u(e),onHoverOn:d(e),onHoverOff:f(e),label:pC[e],key:e})})))}const RC=sd("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),PC=sd("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),MC=sd("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(({isFocused:e})=>Zf({backgroundColor:"currentColor",opacity:e?1:.3},"","")),";"),IC=sd(MC,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),NC=sd(MC,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),OC=sd(NC,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),DC=sd(IC,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),AC=sd(NC,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),LC=sd(IC,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"}),zC=24;function FC({size:e=24,side:t="all",sides:n,...r}){const o=e=>!(e=>n?.length&&!n.includes(e))(e)&&("all"===t||t===e),i=o("top")||o("vertical"),s=o("right")||o("horizontal"),l=o("bottom")||o("vertical"),c=o("left")||o("horizontal"),u=e/zC;return(0,a.createElement)(RC,{style:{transform:`scale(${u})`},...r},(0,a.createElement)(PC,null,(0,a.createElement)(OC,{isFocused:i}),(0,a.createElement)(DC,{isFocused:s}),(0,a.createElement)(AC,{isFocused:l}),(0,a.createElement)(LC,{isFocused:c})))}function BC({isLinked:e,...t}){const n=e?(0,c.__)("Unlink sides"):(0,c.__)("Link sides");return(0,a.createElement)(Uf,{text:n},(0,a.createElement)(pd,{...t,className:"component-box-control__linked-button",isSmall:!0,icon:e?Pb:Mb,iconSize:24,"aria-label":n}))}const jC={min:0},VC=()=>{};function HC({id:e,inputProps:t=jC,onChange:n=VC,label:r=(0,c.__)("Box Control"),values:o,units:i,sides:s,splitOnAxis:l=!1,allowReset:d=!0,resetValues:f=mC,onMouseOver:p,onMouseOut:m}){const[h,g]=Sy(o,{fallback:mC}),v=h||mC,b=yC(o),y=1===s?.length,[w,x]=(0,a.useState)(b),[E,_]=(0,a.useState)(!b||!bC(v)||y),[C,S]=(0,a.useState)(wC(E,l)),[k,T]=(0,a.useState)({top:E_(o?.top)[1],right:E_(o?.right)[1],bottom:E_(o?.bottom)[1],left:E_(o?.left)[1]}),R=function(e){const t=(0,u.useInstanceId)(HC,"inspector-box-control");return e||t}(e),P=`${R}-heading`,M={...t,onChange:e=>{n(e),g(e),x(!0)},onFocus:(e,{side:t})=>{S(t)},isLinked:E,units:i,selectedUnits:k,setSelectedUnits:T,sides:s,values:v,onMouseOver:p,onMouseOut:m};return(0,a.createElement)(Q_,{id:R,role:"group","aria-labelledby":P},(0,a.createElement)(eC,{className:"component-box-control__header"},(0,a.createElement)(gh,null,(0,a.createElement)(Bv.VisualLabel,{id:P},r)),d&&(0,a.createElement)(gh,null,(0,a.createElement)(pd,{className:"component-box-control__reset-button",variant:"secondary",isSmall:!0,onClick:()=>{n(f),g(f),T(f),x(!1)},disabled:!w},(0,c.__)("Reset")))),(0,a.createElement)(tC,{className:"component-box-control__header-control-wrapper"},(0,a.createElement)(gh,null,(0,a.createElement)(FC,{side:C,sides:s})),E&&(0,a.createElement)(Xm,null,(0,a.createElement)(_C,{"aria-label":r,...M})),!E&&l&&(0,a.createElement)(Xm,null,(0,a.createElement)(TC,{...M})),!y&&(0,a.createElement)(gh,null,(0,a.createElement)(BC,{onClick:()=>{_(!E),S(wC(!E,l))},isLinked:E}))),!E&&!l&&(0,a.createElement)(SC,{...M}))}var $C=HC;var WC=(0,a.forwardRef)((function(e,t){const{className:n,...r}=e,o=l()("components-button-group",n);return(0,a.createElement)("div",{ref:t,role:"group",className:o,...r})}));const UC={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function GC(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const KC=Ku((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:s=!1,offset:l=0,value:c=0,...u}=Gu(e,"Elevation"),d=Uu();return{...u,className:(0,a.useMemo)((()=>{let e=bh(i)?i:2*c,a=bh(t)?t:c/2;s||(e=bh(i)?i:void 0,a=bh(t)?t:void 0);const u=`box-shadow ${Nh.transitionDuration} ${Nh.transitionTimingFunction}`,f={};return f.Base=Zf({borderRadius:n,bottom:l,boxShadow:GC(c),opacity:Nh.elevationIntensity,left:l,right:l,top:l,transition:u},Ap("transition"),"",""),bh(e)&&(f.hover=Zf("*:hover>&{box-shadow:",GC(e),";}","")),bh(a)&&(f.active=Zf("*:active>&{box-shadow:",GC(a),";}","")),bh(o)&&(f.focus=Zf("*:focus>&{box-shadow:",GC(o),";}","")),d(UC,f.Base,f.hover,f.focus,f.active,r)}),[t,n,r,d,o,i,s,l,c]),"aria-hidden":!0}}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"Elevation");var qC=KC;const YC=`calc(${Nh.cardBorderRadius} - 1px)`,XC=Zf("box-shadow:0 0 0 1px ",Nh.surfaceBorderColor,";outline:none;",""),ZC={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},JC={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},QC={name:"13udsys",styles:"height:100%"},eS={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},tS={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},nS={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},rS=Zf("&:first-of-type{border-top-left-radius:",YC,";border-top-right-radius:",YC,";}&:last-of-type{border-bottom-left-radius:",YC,";border-bottom-right-radius:",YC,";}",""),oS=Zf("border-color:",Nh.colorDivider,";",""),iS={name:"1t90u8d",styles:"box-shadow:none"},aS={name:"1e1ncky",styles:"border:none"},sS=Zf("border-radius:",YC,";",""),lS=Zf("padding:",Nh.cardPaddingXSmall,";",""),cS={large:Zf("padding:",Nh.cardPaddingLarge,";",""),medium:Zf("padding:",Nh.cardPaddingMedium,";",""),small:Zf("padding:",Nh.cardPaddingSmall,";",""),xSmall:lS,extraSmall:lS},uS=Zf("background-color:",Dp.ui.backgroundDisabled,";",""),dS=Zf("background-color:",Nh.surfaceColor,";color:",Dp.gray[900],";position:relative;","");Nh.surfaceBackgroundColor;function fS({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${Nh.surfaceBorderColor}`;return Zf({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}const pS=Zf("",""),mS=Zf("background:",Nh.surfaceBackgroundTintColor,";",""),hS=Zf("background:",Nh.surfaceBackgroundTertiaryColor,";",""),gS=e=>[e,e].join(" "),vS=e=>["90deg",[Nh.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),bS=e=>[[Nh.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),yS=(e,t)=>Zf("background:",(e=>[`linear-gradient( ${vS(e)} ) center`,`linear-gradient( ${bS(e)} ) center`,Nh.surfaceBorderBoldColor].join(","))(t),";background-size:",gS(e),";",""),wS=[`linear-gradient( ${[`${Nh.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Nh.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),xS=(e,t,n)=>{switch(e){case"dotted":return yS(t,n);case"grid":return(e=>Zf("background:",Nh.surfaceBackgroundColor,";background-image:",wS,";background-size:",gS(e),";",""))(t);case"primary":return pS;case"secondary":return mS;case"tertiary":return hS}};function ES(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:s,variant:l="primary",...c}=Gu(e,"Surface"),u=Uu();return{...c,className:(0,a.useMemo)((()=>{const e={borders:fS({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return u(dS,e.borders,xS(l,`${t}px`,t-1+"px"),s)}),[t,n,r,o,i,s,u,l])}}function _S(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...s}=Gu(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&($l()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=o)&&void 0!==i||(o=2)),void 0!==o&&(r.elevation=o),r}(e),"Card"),l=Uu();return{...ES({...s,className:(0,a.useMemo)((()=>l(XC,r&&iS,o&&sS,t)),[t,l,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const CS=Ku((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:s,...l}=_S(e),c=i?Nh.cardBorderRadius:0,u=Uu(),d=(0,a.useMemo)((()=>u(Zf({borderRadius:c},"",""))),[u,c]),f=(0,a.useMemo)((()=>{const e={size:s,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,s]);return(0,a.createElement)(nc,{value:f},(0,a.createElement)(cd,{...l,ref:t},(0,a.createElement)(cd,{className:u(QC)},n),(0,a.createElement)(qC,{className:d,isInteractive:!1,value:r?1:0}),(0,a.createElement)(qC,{className:d,isInteractive:!1,value:r})))}),"Card");var SS=CS;const kS=Zf("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Nh.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Nh.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Nh.colorScrollbarThumbHover,";}}",""),TS={name:"13udsys",styles:"height:100%"},RS={name:"7zq9w",styles:"scroll-behavior:smooth"},PS={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},MS={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},IS={name:"umwchj",styles:"overflow-y:auto"};const NS=Ku((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Gu(e,"Scrollable"),i=Uu();return{...o,className:(0,a.useMemo)((()=>i(TS,kS,r&&RS,"x"===n&&PS,"y"===n&&MS,"auto"===n&&IS,t)),[t,i,n,r])}}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"Scrollable");var OS=NS;const DS=Ku((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=Gu(e,"CardBody"),s=Uu();return{...i,className:(0,a.useMemo)((()=>s(eS,rS,cS[o],r&&uS,"components-card__body",t)),[t,s,r,o]),isScrollable:n}}(e);return n?(0,a.createElement)(OS,{...r,ref:t}):(0,a.createElement)(cd,{...r,ref:t})}),"CardBody");var AS=DS,LS=B({name:"Separator",compose:re,keys:["orientation"],useOptions:function(e){var t=e.orientation;return p({orientation:void 0===t?"horizontal":t},m(e,["orientation"]))},useProps:function(e,t){return p({role:"separator","aria-orientation":e.orientation},t)}}),zS=z({as:"hr",memo:!0,useHook:LS});const FS={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var BS={name:"1u4hpl4",styles:"display:inline"};const jS=sd("hr",{target:"e19on6iw0"})("border:0;margin:0;",(({"aria-orientation":e="horizontal"})=>"vertical"===e?BS:void 0)," ",(({"aria-orientation":e="horizontal"})=>Zf({["vertical"===e?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""))," ",(({"aria-orientation":e="horizontal"})=>Zf({height:"vertical"===e?"auto":0,width:"vertical"===e?0:"auto"},"",""))," ",(({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>Zf(ih({[FS[e].start]:Jm(null!=n?n:t),[FS[e].end]:Jm(null!=r?r:t)})(),"","")),";");var VS=Ku((function(e,t){const n=Gu(e,"Divider");return(0,a.createElement)(zS,{as:jS,...n,ref:t})}),"Divider");const HS=Ku((function(e,t){const n=function(e){const{className:t,...n}=Gu(e,"CardDivider"),r=Uu();return{...n,className:(0,a.useMemo)((()=>r(nS,oS,"components-card__divider",t)),[t,r])}}(e);return(0,a.createElement)(VS,{...n,ref:t})}),"CardDivider");var $S=HS;const WS=Ku((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...s}=Gu(e,"CardFooter"),l=Uu();return{...s,className:(0,a.useMemo)((()=>l(JC,rS,oS,cS[i],r&&aS,o&&uS,"components-card__footer",t)),[t,l,r,o,i]),justify:n}}(e);return(0,a.createElement)(hh,{...n,ref:t})}),"CardFooter");var US=WS;const GS=Ku((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=Gu(e,"CardHeader"),s=Uu();return{...i,className:(0,a.useMemo)((()=>s(ZC,rS,oS,cS[o],n&&aS,r&&uS,"components-card__header",t)),[t,s,n,r,o])}}(e);return(0,a.createElement)(hh,{...n,ref:t})}),"CardHeader");var KS=GS;const qS=Ku((function(e,t){const n=function(e){const{className:t,...n}=Gu(e,"CardMedia"),r=Uu();return{...n,className:(0,a.useMemo)((()=>r(tS,rS,"components-card__media",t)),[t,r])}}(e);return(0,a.createElement)(cd,{...n,ref:t})}),"CardMedia");var YS=qS;var XS=function e(t){const{__nextHasNoMarginBottom:n,label:r,className:o,heading:i,checked:s,indeterminate:c,help:d,id:f,onChange:p,...m}=t;i&&$l()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[h,g]=(0,a.useState)(!1),[v,b]=(0,a.useState)(!1),y=(0,u.useRefEffect)((e=>{e&&(e.indeterminate=!!c,g(e.matches(":checked")),b(e.matches(":indeterminate")))}),[s,c]),w=(0,u.useInstanceId)(e,"inspector-checkbox-control",f);return(0,a.createElement)(jv,{__nextHasNoMarginBottom:n,label:i,id:w,help:d,className:l()("components-checkbox-control",o)},(0,a.createElement)("span",{className:"components-checkbox-control__input-container"},(0,a.createElement)("input",{ref:y,id:w,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>p(e.target.checked),checked:s,"aria-describedby":d?w+"__help":void 0,...m}),v?(0,a.createElement)(by,{icon:uh,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,h?(0,a.createElement)(by,{icon:e_,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,a.createElement)("label",{className:"components-checkbox-control__label",htmlFor:w},r))};const ZS=4e3;function JS({className:e,children:t,onCopy:n,onFinishCopy:r,text:o,...i}){$l()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const s=(0,a.useRef)(),c=(0,u.useCopyToClipboard)(o,(()=>{n(),s.current&&clearTimeout(s.current),r&&(s.current=setTimeout((()=>r()),ZS))}));(0,a.useEffect)((()=>{s.current&&clearTimeout(s.current)}),[]);const d=l()("components-clipboard-button",e);return(0,a.createElement)(pd,{...i,className:d,ref:c,onCopy:e=>{e.target.focus()}},t)}var QS=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const ek=Zf("appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;svg,path{fill:currentColor;}&:hover{color:",Dp.ui.theme,";}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) var(\n\t\t\t\t--wp-components-color-accent,\n\t\t\t\tvar( --wp-admin-theme-color, ",Dp.ui.theme," )\n\t\t\t);outline:2px solid transparent;}",""),tk={name:"1bcj5ek",styles:"width:100%;display:block"},nk={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},rk=Zf("border:1px solid ",Nh.surfaceBorderColor,";",""),ok=Zf(">*:not( marquee )>*{border-bottom:1px solid ",Nh.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),ik=Nh.controlBorderRadius,ak=Zf("border-radius:",ik,";",""),sk=Zf("border-radius:",ik,";>*:first-of-type>*{border-top-left-radius:",ik,";border-top-right-radius:",ik,";}>*:last-of-type>*{border-bottom-left-radius:",ik,";border-bottom-right-radius:",ik,";}",""),lk=`calc(${Nh.fontSize} * ${Nh.fontLineHeightBase})`,ck=`calc((${Nh.controlHeight} - ${lk} - 2px) / 2)`,uk=`calc((${Nh.controlHeightSmall} - ${lk} - 2px) / 2)`,dk=`calc((${Nh.controlHeightLarge} - ${lk} - 2px) / 2)`,fk={small:Zf("padding:",uk," ",Nh.controlPaddingXSmall,";",""),medium:Zf("padding:",ck," ",Nh.controlPaddingX,";",""),large:Zf("padding:",dk," ",Nh.controlPaddingXLarge,";","")};const pk=(0,a.createContext)({size:"medium"}),mk=()=>(0,a.useContext)(pk);var hk=Ku((function(e,t){const{isBordered:n,isSeparated:r,size:o,...i}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:i="list",...a}=Gu(e,"ItemGroup");return{isBordered:n,className:Uu()(n&&rk,o&&ok,r&&sk,t),role:i,isSeparated:o,...a}}(e),{size:s}=mk(),l={spacedAround:!n&&!r,size:o||s};return(0,a.createElement)(pk.Provider,{value:l},(0,a.createElement)(cd,{...i,ref:t}))}),"ItemGroup");const gk=10,vk=0,bk=gk;function yk(e){return Math.max(0,Math.min(100,e))}function wk(e,t,n){const r=e.slice();return r[t]=n,r}function xk(e,t,n){if(function(e,t,n,r=vk){const o=e[t].position,i=Math.min(o,n),a=Math.max(o,n);return e.some((({position:e},o)=>o!==t&&(Math.abs(e-n)<r||i<e&&e<a)))}(e,t,n))return e;return wk(e,t,{...e[t],position:n})}function Ek(e,t,n){return wk(e,t,{...e[t],color:n})}function _k(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(yk(100*o/r))}function Ck({isOpen:e,position:t,color:n,...r}){const o=`components-custom-gradient-picker__control-point-button-description-${(0,u.useInstanceId)(Ck)}`;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(pd,{"aria-label":(0,c.sprintf)((0,c.__)("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":o,"aria-haspopup":"true","aria-expanded":e,className:l()("components-custom-gradient-picker__control-point-button",{"is-active":e}),...r}),(0,a.createElement)(ud,{id:o},(0,c.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")))}function Sk({isRenderedInSidebar:e,className:t,...n}){const r=(0,a.useMemo)((()=>({placement:"bottom",offset:8})),[]),o=l()("components-custom-gradient-picker__control-point-dropdown",t);return(0,a.createElement)(f_,{isRenderedInSidebar:e,popoverProps:r,className:o,...n})}function kk({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:r,value:o,onChange:i,onStartControlPointChange:s,onStopControlPointChange:l,__experimentalIsRenderedInSidebar:u}){const d=(0,a.useRef)(),f=e=>{if(void 0===d.current||null===n.current)return;const t=_k(e.clientX,n.current),{initialPosition:r,index:a,significantMoveHappened:s}=d.current;!s&&Math.abs(r-t)>=5&&(d.current.significantMoveHappened=!0),i(xk(o,a,t))},p=()=>{window&&window.removeEventListener&&d.current&&d.current.listenersActivated&&(window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",p),l(),d.current.listenersActivated=!1)},m=(0,a.useRef)();return m.current=p,(0,a.useEffect)((()=>()=>{m.current?.()}),[]),(0,a.createElement)(a.Fragment,null,o.map(((n,m)=>{const h=n?.position;return r!==h&&(0,a.createElement)(Sk,{isRenderedInSidebar:u,key:m,onClose:l,renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(Ck,{key:m,onClick:()=>{d.current&&d.current.significantMoveHappened||(e?l():s(),t())},onMouseDown:()=>{window&&window.addEventListener&&(d.current={initialPosition:h,index:m,significantMoveHappened:!1,listenersActivated:!0},s(),window.addEventListener("mousemove",f),window.addEventListener("mouseup",p))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),i(xk(o,m,yk(n.position-bk)))):"ArrowRight"===e.code&&(e.stopPropagation(),i(xk(o,m,yk(n.position+bk))))},isOpen:e,position:n.position,color:n.color}),renderContent:({onClose:r})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(QE,{enableAlpha:!t,color:n.color,onChange:e=>{i(Ek(o,m,Sp(e).toRgbString()))}}),!e&&o.length>2&&(0,a.createElement)(rb,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,a.createElement)(pd,{onClick:()=>{i(function(e,t){return e.filter(((e,n)=>n!==t))}(o,m)),r()},variant:"link"},(0,c.__)("Remove Control Point")))),style:{left:`${n.position}%`,transform:"translateX( -50% )"}})})))}kk.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:r,insertPosition:o,disableAlpha:i,__experimentalIsRenderedInSidebar:s}){const[l,c]=(0,a.useState)(!1);return(0,a.createElement)(Sk,{isRenderedInSidebar:s,className:"components-custom-gradient-picker__inserter",onClose:()=>{r()},renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(pd,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?r():(c(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:ch}),renderContent:()=>(0,a.createElement)(QE,{enableAlpha:!i,onChange:n=>{l?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return Ek(e,r,n)}(e,o,Sp(n).toRgbString())):(t(function(e,t,n){const r=e.findIndex((e=>e.position>t)),o={color:n,position:t},i=e.slice();return i.splice(r-1,0,o),i}(e,o,Sp(n).toRgbString())),c(!0))}}),style:null!==o?{left:`${o}%`,transform:"translateX( -50% )"}:void 0})};var Tk=kk;const Rk=(e,t)=>{switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e},Pk={id:"IDLE"};function Mk({background:e,hasGradient:t,value:n,onChange:r,disableInserter:o=!1,disableAlpha:i=!1,__experimentalIsRenderedInSidebar:s=!1}){const c=(0,a.useRef)(null),[u,d]=(0,a.useReducer)(Rk,Pk),f=e=>{if(!c.current)return;const t=_k(e.clientX,c.current);n.some((({position:e})=>Math.abs(t-e)<gk))?"MOVING_INSERTER"===u.id&&d({type:"STOP_INSERTER_MOVE"}):d({type:"MOVE_INSERTER",insertPosition:t})},p="MOVING_INSERTER"===u.id,m="INSERTING_CONTROL_POINT"===u.id;return(0,a.createElement)("div",{className:l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:f,onMouseMove:f,onMouseLeave:()=>{d({type:"STOP_INSERTER_MOVE"})}},(0,a.createElement)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,a.createElement)("div",{ref:c,className:"components-custom-gradient-picker__markers-container"},!o&&(p||m)&&(0,a.createElement)(Tk.InsertPoint,{__experimentalIsRenderedInSidebar:s,disableAlpha:i,insertPosition:u.insertPosition,value:n,onChange:r,onOpenInserter:()=>{d({type:"OPEN_INSERTER"})},onCloseInserter:()=>{d({type:"CLOSE_INSERTER"})}}),(0,a.createElement)(Tk,{__experimentalIsRenderedInSidebar:s,disableAlpha:i,disableRemove:o,gradientPickerDomRef:c,ignoreMarkerPosition:m?u.insertPosition:void 0,value:n,onChange:r,onStartControlPointChange:()=>{d({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{d({type:"STOP_CONTROL_CHANGE"})}})))}var Ik=o(7115);const Nk="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Ok={type:"angular",value:"90"},Dk=[{value:"linear-gradient",label:(0,c.__)("Linear")},{value:"radial-gradient",label:(0,c.__)("Radial")}],Ak={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function Lk({type:e,value:t,length:n}){return`${function({type:e,value:t}){return"literal"===e?t:"hex"===e?`#${t}`:`${e}(${t.join(",")})`}({type:e,value:t})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(n)}`}function zk({type:e,orientation:t,colorStops:n}){const r=function(e){if(!Array.isArray(e)&&e&&"angular"===e.type)return`${e.value}deg`}(t);return`${e}(${[r,...n.sort(((e,t)=>{const n=e=>void 0===e?.length?.value?0:parseInt(e.length.value);return n(e)-n(t)})).map(Lk)].filter(Boolean).join(",")})`}function Fk(e){return void 0===e.length||"%"!==e.length.type}function Bk(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}Tp([Rp]);const jk=sd(Xm,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),Vk=sd(Xm,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),Hk=({gradientAST:e,hasGradient:t,onChange:n})=>{var r;const o=null!==(r=e?.orientation?.value)&&void 0!==r?r:180;return(0,a.createElement)(mb,{__nextHasNoMarginBottom:!0,onChange:t=>{n(zk({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?o:""})},$k=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:r}=e;return(0,a.createElement)(_y,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,c.__)("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n(zk({...e,orientation:e.orientation?void 0:Ok,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n(zk({...r,type:"radial-gradient"}))})()},options:Dk,size:"__unstable-large",value:t?r:void 0})};var Wk=function({__nextHasNoMargin:e=!1,value:t,onChange:n,__experimentalIsRenderedInSidebar:r=!1}){const{gradientAST:o,hasGradient:i}=function(e){let t,n=!!e;const r=null!=e?e:Nk;try{t=Ik.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=Ik.parse(Nk)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:Ak[t.orientation.value].toString()}),t.colorStops.some(Fk)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach(((e,t)=>{e.length={value:""+n*t,type:"%"}}))}return{gradientAST:t,hasGradient:n}}(t),s=function(e){return zk({type:"linear-gradient",orientation:Ok,colorStops:e.colorStops})}(o),c=o.colorStops.map((e=>({color:Bk(e),position:parseInt(e.length.value)})));return e||$l()("Outer margin styles for wp.components.CustomGradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"}),(0,a.createElement)(r_,{spacing:4,className:l()("components-custom-gradient-picker",{"is-next-has-no-margin":e})},(0,a.createElement)(Mk,{__experimentalIsRenderedInSidebar:r,background:s,hasGradient:i,value:c,onChange:e=>{n(zk(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=Sp(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(o,e)))}}),(0,a.createElement)(hh,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,a.createElement)(jk,null,(0,a.createElement)($k,{gradientAST:o,hasGradient:i,onChange:n})),(0,a.createElement)(Vk,null,"linear-gradient"===o.type&&(0,a.createElement)(Hk,{gradientAST:o,hasGradient:i,onChange:n}))))};const Uk=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function Gk({className:e,clearGradient:t,gradients:n,onChange:r,value:o,actions:i}){const s=(0,a.useMemo)((()=>n.map((({gradient:e,name:n},i)=>(0,a.createElement)(n_.Option,{key:e,value:e,isSelected:o===e,tooltipText:n||(0,c.sprintf)((0,c.__)("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:o===e?t:()=>r(e,i),"aria-label":n?(0,c.sprintf)((0,c.__)("Gradient: %s"),n):(0,c.sprintf)((0,c.__)("Gradient code: %s"),e)})))),[n,o,r,t]);return(0,a.createElement)(n_,{className:e,options:s,actions:i})}function Kk({className:e,clearGradient:t,gradients:n,onChange:r,value:o,actions:i,headingLevel:s}){return(0,a.createElement)(r_,{spacing:3,className:e},n.map((({name:e,gradients:l},c)=>(0,a.createElement)(r_,{spacing:2,key:c},(0,a.createElement)(a_,{level:s},e),(0,a.createElement)(Gk,{clearGradient:t,gradients:l,onChange:e=>r(e,c),value:o,...n.length===c+1?{actions:i}:{}})))))}function qk(e){return Uk(e.gradients)?(0,a.createElement)(Kk,{...e}):(0,a.createElement)(Gk,{...e})}var Yk=function({__nextHasNoMargin:e=!1,className:t,gradients:n=[],onChange:r,value:o,clearable:i=!0,disableCustomGradients:s=!1,__experimentalIsRenderedInSidebar:l,headingLevel:u=2}){const d=(0,a.useCallback)((()=>r(void 0)),[r]);e||$l()("Outer margin styles for wp.components.GradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"});const f=e?{}:{marginTop:n.length?void 0:3,marginBottom:i?0:6};return(0,a.createElement)(lh,{marginBottom:0,...f},(0,a.createElement)(r_,{spacing:n.length?4:0},!s&&(0,a.createElement)(Wk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:l,value:o,onChange:r}),(n.length||i)&&(0,a.createElement)(qk,{className:t,clearGradient:d,gradients:n,onChange:r,value:o,actions:i&&!s&&(0,a.createElement)(n_.ButtonAction,{onClick:d},(0,c.__)("Clear")),headingLevel:u})))};var Xk=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));const Zk=()=>{},Jk=["menuitem","menuitemradio","menuitemcheckbox"];class Qk extends a.Component{constructor(e){super(e),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){if(!this.container)return null;const{onlyBrowserTabstops:t}=this.props,n=(t?Wl.focus.tabbable:Wl.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){return e.indexOf(t)}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=Zk,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&Jk.includes(t)&&e.preventDefault()}if(!a)return;const s=e.target?.ownerDocument?.activeElement;if(!s)return;const l=t(s);if(!l)return;const{index:c,focusables:u}=l,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(c,u.length,a):c+a;d>=0&&d<u.length&&(u[d].focus(),o(d,u[d]),"Tab"===e.code&&e.preventDefault())}render(){const{children:e,stopNavigationEvents:t,eventToOffset:n,onNavigate:r,onKeyDown:o,cycle:i,onlyBrowserTabstops:s,forwardedRef:l,...c}=this.props;return(0,a.createElement)("div",{ref:this.bindContainer,...c},e)}}const eT=(e,t)=>(0,a.createElement)(Qk,{...e,forwardedRef:t});eT.displayName="NavigableContainer";var tT=(0,a.forwardRef)(eT);const nT=(0,a.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},r){return(0,a.createElement)(tT,{ref:r,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":"presentation"===e||"vertical"!==t&&"horizontal"!==t?void 0:t,eventToOffset:e=>{const{code:n}=e;let r=["ArrowDown"],o=["ArrowUp"];return"horizontal"===t&&(r=["ArrowRight"],o=["ArrowLeft"]),"both"===t&&(r=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),r.includes(n)?1:o.includes(n)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n)?0:void 0},...n})}));var rT=nT;function oT(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}function iT(e){return"function"==typeof e}const aT=qu((function(e){const{children:t,className:n,controls:r,icon:o=Xk,label:i,popoverProps:s,toggleProps:c,menuProps:u,disableOpenOnArrowDown:d=!1,text:f,noIcons:p,variant:m}=Gu(e,"DropdownMenu");if(!r?.length&&!iT(t))return null;let h;r?.length&&(h=r,Array.isArray(h[0])||(h=[r]));const g=oT({className:"components-dropdown-menu__popover",variant:m},s);return(0,a.createElement)(py,{className:n,popoverProps:g,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:r=pd,...s}=null!=c?c:{},u=oT({className:l()("components-dropdown-menu__toggle",{"is-opened":e})},s);return(0,a.createElement)(r,{...u,icon:o,onClick:e=>{t(),u.onClick&&u.onClick(e)},onKeyDown:n=>{(n=>{d||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),u.onKeyDown&&u.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:i,text:f,showTooltip:null===(n=c?.showTooltip)||void 0===n||n},u.children)},renderContent:e=>{const n=oT({"aria-label":i,className:l()("components-dropdown-menu__menu",{"no-icons":p})},u);return(0,a.createElement)(rT,{...n,role:"menu"},iT(t)?t(e):null,h?.flatMap(((t,n)=>t.map(((t,r)=>(0,a.createElement)(pd,{key:[n,r].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:l()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title))))))}})}),"DropdownMenu");var sT=aT;const lT=sd(n_.Option,{target:"e5bw3229"})("width:",Jm(6),";height:",Jm(6),";pointer-events:none;"),cT=sd($v,{target:"e5bw3228"})(tg,"{background:",Dp.gray[100],";border-radius:",Nh.controlBorderRadius,";",rg,rg,rg,rg,"{height:",Jm(8),";}",sg,sg,sg,"{border-color:transparent;box-shadow:none;}}"),uT=sd(cd,{target:"e5bw3227"})("padding:3px 0 3px ",Jm(3),";height:calc( 40px - ",Nh.borderWidth," );border:1px solid ",Nh.surfaceBorderColor,";border-bottom-color:transparent;&:first-of-type{border-top-left-radius:",Nh.controlBorderRadius,";border-top-right-radius:",Nh.controlBorderRadius,";}&:last-of-type{border-bottom-left-radius:",Nh.controlBorderRadius,";border-bottom-right-radius:",Nh.controlBorderRadius,";border-bottom-color:",Nh.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",Dp.ui.theme,";}"),dT=sd("div",{target:"e5bw3226"})("line-height:",Jm(8),";margin-left:",Jm(2),";margin-right:",Jm(2),";white-space:nowrap;overflow:hidden;",uT,":hover &{color:",Dp.ui.theme,";}"),fT=sd(i_,{target:"e5bw3225"})("text-transform:uppercase;line-height:",Jm(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),pT=sd(cd,{target:"e5bw3224"})("height:",Jm(6),";display:flex;"),mT=sd(rb,{target:"e5bw3223"})("margin-bottom:",Jm(2),";"),hT=sd(cd,{target:"e5bw3222"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),gT=sd(pd,{target:"e5bw3221"})("&&{color:",Dp.ui.theme,";}"),vT=sd(pd,{target:"e5bw3220"})("&&{margin-top:",Jm(1),";}"),bT="#000";function yT({value:e,onChange:t,label:n}){return(0,a.createElement)(cT,{label:n,hideLabelFromVision:!0,value:e,onChange:t})}function wT({isGradient:e,element:t,onChange:n,popoverProps:r,onClose:o=(()=>{})}){const i=(0,a.useMemo)((()=>({shift:!0,offset:20,placement:"left-start",...r,className:l()("components-palette-edit__popover",r?.className)})),[r]);return(0,a.createElement)(Ff,{...i,onClose:o},!e&&(0,a.createElement)(QE,{color:t.color,enableAlpha:!0,onChange:e=>{n({...t,color:e})}}),e&&(0,a.createElement)("div",{className:"components-palette-edit__popover-gradient-picker"},(0,a.createElement)(Wk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:!0,value:t.gradient,onChange:e=>{n({...t,gradient:e})}})))}function xT({canOnlyChangeValues:e,element:t,onChange:n,isEditing:r,onStartEditing:o,onRemove:i,onStopEditing:s,popoverProps:l,slugPrefix:d,isGradient:f}){const p=(0,u.__experimentalUseFocusOutside)(s),m=f?t.gradient:t.color,[h,g]=(0,a.useState)(null),v=(0,a.useMemo)((()=>({...l,anchor:h})),[h,l]);return(0,a.createElement)(uT,{className:r?"is-selected":void 0,as:"div",onClick:o,ref:g,...r?{...p}:{style:{cursor:"pointer"}}},(0,a.createElement)(rb,{justify:"flex-start"},(0,a.createElement)(gh,null,(0,a.createElement)(lT,{style:{background:m,color:"transparent"}})),(0,a.createElement)(gh,null,r&&!e?(0,a.createElement)(yT,{label:f?(0,c.__)("Gradient name"):(0,c.__)("Color name"),value:t.name,onChange:e=>n({...t,name:e,slug:d+mc(null!=e?e:"")})}):(0,a.createElement)(dT,null,t.name)),r&&!e&&(0,a.createElement)(gh,null,(0,a.createElement)(vT,{isSmall:!0,icon:jb,label:(0,c.__)("Remove color"),onClick:i}))),r&&(0,a.createElement)(wT,{isGradient:f,onChange:n,element:t,popoverProps:v}))}function ET(e,{slug:t,color:n,gradient:r}){return new RegExp(`^${e}color-([\\d]+)$`).test(t)&&(!!n&&n===bT||!!r&&r===Nk)}function _T({elements:e,onChange:t,editingElement:n,setEditingElement:r,canOnlyChangeValues:o,slugPrefix:i,isGradient:s,popoverProps:l}){const c=(0,a.useRef)();(0,a.useEffect)((()=>{c.current=e}),[e]),(0,a.useEffect)((()=>()=>{if(c.current?.some((e=>ET(i,e)))){const e=c.current.filter((e=>!ET(i,e)));t(e.length?e:void 0)}}),[]);const d=(0,u.useDebounce)(t,100);return(0,a.createElement)(r_,{spacing:3},(0,a.createElement)(hk,{isRounded:!0},e.map(((c,u)=>(0,a.createElement)(xT,{isGradient:s,canOnlyChangeValues:o,key:u,element:c,onStartEditing:()=>{n!==u&&r(u)},onChange:t=>{d(e.map(((e,n)=>n===u?t:e)))},onRemove:()=>{r(null);const n=e.filter(((e,t)=>t!==u));t(n.length?n:void 0)},isEditing:u===n,onStopEditing:()=>{u===n&&r(null)},slugPrefix:i,popoverProps:l})))))}const CT=[];var ST=function({gradients:e,colors:t=CT,onChange:n,paletteLabel:r,paletteLabelHeadingLevel:o=2,emptyMessage:i,canOnlyChangeValues:s,canReset:l,slugPrefix:d="",popoverProps:f}){const p=!!e,m=p?e:t,[h,g]=(0,a.useState)(!1),[v,b]=(0,a.useState)(null),y=h&&!!v&&m[v]&&!m[v].slug,w=m.length>0,x=(0,u.useDebounce)(n,100),E=(0,a.useCallback)(((e,t)=>{const n=void 0===t?void 0:m[t];n&&n[p?"gradient":"color"]===e?b(t):g(!0)}),[p,m]);return(0,a.createElement)(hT,null,(0,a.createElement)(mT,null,(0,a.createElement)(fT,{level:o},r),(0,a.createElement)(pT,null,w&&h&&(0,a.createElement)(gT,{isSmall:!0,onClick:()=>{g(!1),b(null)}},(0,c.__)("Done")),!s&&(0,a.createElement)(pd,{isSmall:!0,isPressed:y,icon:ch,label:p?(0,c.__)("Add gradient"):(0,c.__)("Add color"),onClick:()=>{const r=function(e,t){const n=new RegExp(`^${t}color-([\\d]+)$`),r=e.reduce(((e,t)=>{if("string"==typeof t?.slug){const r=t?.slug.match(n);if(r){const t=parseInt(r[1],10);if(t>=e)return t+1}}return e}),1);return(0,c.sprintf)((0,c.__)("Color %s"),r)}(m,d);n(e?[...e,{gradient:Nk,name:r,slug:d+mc(r)}]:[...t,{color:bT,name:r,slug:d+mc(r)}]),g(!0),b(m.length)}}),w&&(!h||!s||l)&&(0,a.createElement)(sT,{icon:QS,label:p?(0,c.__)("Gradient options"):(0,c.__)("Color options"),toggleProps:{isSmall:!0}},(({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(rT,{role:"menu"},!h&&(0,a.createElement)(pd,{variant:"tertiary",onClick:()=>{g(!0),e()},className:"components-palette-edit__menu-button"},(0,c.__)("Show details")),!s&&(0,a.createElement)(pd,{variant:"tertiary",onClick:()=>{b(null),g(!1),n(),e()},className:"components-palette-edit__menu-button"},p?(0,c.__)("Remove all gradients"):(0,c.__)("Remove all colors")),l&&(0,a.createElement)(pd,{variant:"tertiary",onClick:()=>{b(null),n(),e()}},p?(0,c.__)("Reset gradient"):(0,c.__)("Reset colors")))))))),w&&(0,a.createElement)(a.Fragment,null,h&&(0,a.createElement)(_T,{canOnlyChangeValues:s,elements:m,onChange:n,editingElement:v,setEditingElement:b,slugPrefix:d,isGradient:p,popoverProps:f}),!h&&null!==v&&(0,a.createElement)(wT,{isGradient:p,onClose:()=>b(null),onChange:e=>{x(m.map(((t,n)=>n===v?e:t)))},element:m[null!=v?v:-1],popoverProps:f}),!h&&(p?(0,a.createElement)(Yk,{__nextHasNoMargin:!0,gradients:e,onChange:E,clearable:!1,disableCustomGradients:!0}):(0,a.createElement)(m_,{colors:t,onChange:E,clearable:!1,disableCustomColors:!0}))),!w&&i)};const kT=({__next40pxDefaultSize:e})=>!e&&Zf("height:28px;padding-left:",Jm(1),";padding-right:",Jm(1),";",""),TT=sd(hh,{target:"evuatpg0"})("height:38px;padding-left:",Jm(2),";padding-right:",Jm(2),";",kT,";");const RT=(0,a.forwardRef)((function(e,t){const{value:n,isExpanded:r,instanceId:o,selectedSuggestionIndex:i,className:s,onChange:c,onFocus:u,onBlur:d,...f}=e,[p,m]=(0,a.useState)(!1),h=n?n.length+1:0;return(0,a.createElement)("input",{ref:t,id:`components-form-token-input-${o}`,type:"text",...f,value:n||"",onChange:e=>{c&&c({value:e.target.value})},onFocus:e=>{m(!0),u?.(e)},onBlur:e=>{m(!1),d?.(e)},size:h,className:l()(s,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":r,"aria-autocomplete":"list","aria-owns":r?`components-form-token-suggestions-${o}`:void 0,"aria-activedescendant":p&&-1!==i&&r?`components-form-token-suggestions-${o}-${i}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${o}`})}));var PT=RT,MT=o(5425),IT=o.n(MT);const NT=e=>{e.preventDefault()};var OT=function({selectedIndex:e,scrollIntoView:t,match:n,onHover:r,onSelect:o,suggestions:i=[],displayTransform:s,instanceId:c,__experimentalRenderItem:d}){const[f,p]=(0,a.useState)(!1),m=(0,u.useRefEffect)((n=>{let r;return e>-1&&t&&n.children[e]&&(p(!0),IT()(n.children[e],n,{onlyScrollIfNeeded:!0}),r=requestAnimationFrame((()=>{p(!1)}))),()=>{void 0!==r&&cancelAnimationFrame(r)}}),[e,t]),h=e=>()=>{f||r?.(e)},g=e=>()=>{o?.(e)};return(0,a.createElement)("ul",{ref:m,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${c}`,role:"listbox"},i.map(((t,r)=>{const o=(e=>{const t=s(n).toLocaleLowerCase();if(0===t.length)return null;const r=s(e),o=r.toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:r.substring(0,o),suggestionMatch:r.substring(o,o+t.length),suggestionAfterMatch:r.substring(o+t.length)}})(t),i=l()("components-form-token-field__suggestion",{"is-selected":r===e});let u;return u="function"==typeof d?d({item:t}):o?(0,a.createElement)("span",{"aria-label":s(t)},o.suggestionBeforeMatch,(0,a.createElement)("strong",{className:"components-form-token-field__suggestion-match"},o.suggestionMatch),o.suggestionAfterMatch):s(t),(0,a.createElement)("li",{id:`components-form-token-suggestions-${c}-${r}`,role:"option",className:i,key:"object"==typeof t&&"value"in t?t?.value:s(t),onMouseDown:NT,onClick:g(t),onMouseEnter:h(t),"aria-selected":r===e},u)})))},DT=(0,u.createHigherOrderComponent)((e=>t=>{const[n,r]=(0,a.useState)(),o=(0,a.useCallback)((e=>r((()=>e?.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,a.createElement)("div",{...(0,u.__experimentalUseFocusOutside)(n)},(0,a.createElement)(e,{ref:o,...t}))}),"withFocusOutside");function AT(e,t){const{__next36pxDefaultSize:n,__next40pxDefaultSize:r,...o}=e;return void 0!==n&&$l()("`__next36pxDefaultSize` prop in "+t,{alternative:"`__next40pxDefaultSize`",since:"6.3"}),{...o,__next40pxDefaultSize:null!=r?r:n}}const LT=()=>{},zT=DT(class extends a.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),FT=(e,t)=>null===e?-1:t.indexOf(e);var BT=function e(t){var n;const{__nextHasNoMarginBottom:r=!1,__next40pxDefaultSize:o=!1,value:i,label:s,options:d,onChange:f,onFilterValueChange:p=LT,hideLabelFromVision:m,help:h,allowReset:g=!0,className:v,messages:b={selected:(0,c.__)("Item selected.")},__experimentalRenderItem:y}=AT(t,"wp.components.ComboboxControl"),[w,x]=GE({value:i,onChange:f}),E=d.find((e=>e.value===w)),_=null!==(n=E?.label)&&void 0!==n?n:"",C=(0,u.useInstanceId)(e,"combobox-control"),[S,k]=(0,a.useState)(E||null),[T,R]=(0,a.useState)(!1),[P,M]=(0,a.useState)(!1),[I,N]=(0,a.useState)(""),O=(0,a.useRef)(null),D=(0,a.useMemo)((()=>{const e=[],t=[],n=wb(I);return d.forEach((r=>{const o=wb(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[I,d]),A=e=>{x(e.value),(0,bb.speak)(b.selected,"assertive"),k(e),N(""),R(!1)},L=(e=1)=>{let t=FT(S,D)+e;t<0?t=D.length-1:t>=D.length&&(t=0),k(D[t]),R(!0)};return(0,a.useEffect)((()=>{const e=D.length>0,t=FT(S,D)>0;e&&!t&&k(D[0])}),[D,S]),(0,a.useEffect)((()=>{const e=D.length>0;if(T){const t=e?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",D.length),D.length):(0,c.__)("No results.");(0,bb.speak)(t,"polite")}}),[D,T]),(0,a.createElement)(zT,{onFocusOutside:()=>{R(!1)}},(0,a.createElement)(jv,{__nextHasNoMarginBottom:r,className:l()(v,"components-combobox-control"),label:s,id:`components-form-token-input-${C}`,hideLabelFromVision:m,help:h},(0,a.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:e=>{let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.code){case"Enter":S&&(A(S),t=!0);break;case"ArrowUp":L(-1),t=!0;break;case"ArrowDown":L(1),t=!0;break;case"Escape":R(!1),k(null),t=!0}t&&e.preventDefault()}}},(0,a.createElement)(TT,{__next40pxDefaultSize:o},(0,a.createElement)(Xm,null,(0,a.createElement)(PT,{className:"components-combobox-control__input",instanceId:C,ref:O,value:T?I:_,onFocus:()=>{M(!0),R(!0),p(""),N("")},onBlur:()=>{M(!1)},isExpanded:T,selectedSuggestionIndex:FT(S,D),onChange:e=>{const t=e.value;N(t),p(t),P&&R(!0)}})),g&&(0,a.createElement)(gh,null,(0,a.createElement)(pd,{className:"components-combobox-control__reset",icon:Bb,disabled:!w,onClick:()=>{x(null),O.current?.focus()},label:(0,c.__)("Reset")}))),T&&(0,a.createElement)(OT,{instanceId:C,match:{label:I,value:""},displayTransform:e=>e.label,suggestions:D,selectedIndex:FT(S,D),onHover:k,onSelect:A,scrollIntoView:!0,__experimentalRenderItem:y}))))};const jT=new Set(["alert","status","log","marquee","timer"]);let VT=[],HT=!1;function $T(e){if(HT)return;Array.from(document.body.children).forEach((t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&&jT.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),VT.push(t))})),HT=!0}let WT=0;const UT=(0,a.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:r="dialog",title:o=null,focusOnMount:i=!0,shouldCloseOnEsc:s=!0,shouldCloseOnClickOutside:d=!0,isDismissible:f=!0,aria:p={labelledby:void 0,describedby:void 0},onRequestClose:m,icon:h,closeButtonLabel:g,children:v,style:b,overlayClassName:y,className:w,contentLabel:x,onKeyDown:E,isFullScreen:_=!1,__experimentalHideHeader:C=!1}=e,S=(0,a.useRef)(),k=(0,u.useInstanceId)(UT),T=o?`components-modal-header-${k}`:p.labelledby,R=(0,u.useFocusOnMount)(i),P=(0,u.useConstrainedTabbing)(),M=(0,u.useFocusReturn)(),I=(0,u.__experimentalUseFocusOutside)(m),N=(0,a.useRef)(null),O=(0,a.useRef)(null),[D,A]=(0,a.useState)(!1),[L,z]=(0,a.useState)(!1),F=(0,a.useCallback)((()=>{if(!N.current)return;const e=(0,Wl.getScrollContainer)(N.current);N.current===e?z(!0):z(!1)}),[N]);(0,a.useEffect)((()=>(WT++,1===WT&&($T(S.current),document.body.classList.add(n)),()=>{WT--,0===WT&&(document.body.classList.remove(n),HT&&(VT.forEach((e=>{e.removeAttribute("aria-hidden")})),VT=[],HT=!1))})),[n]),(0,a.useLayoutEffect)((()=>{if(!window.ResizeObserver||!O.current)return;const e=new ResizeObserver(F);return e.observe(O.current),F(),()=>{e.disconnect()}}),[F,O]);const B=(0,a.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!D&&n>0?A(!0):D&&n<=0&&A(!1)}),[D]);return(0,a.createPortal)((0,a.createElement)("div",{ref:(0,u.useMergeRefs)([S,t]),className:l()("components-modal__screen-overlay",y),onKeyDown:function(e){e.nativeEvent.isComposing||229===e.keyCode||s&&"Escape"===e.code&&!e.defaultPrevented&&(e.preventDefault(),m&&m(e))}},(0,a.createElement)(mf,{document:document},(0,a.createElement)("div",{className:l()("components-modal__frame",w,{"is-full-screen":_}),style:b,ref:(0,u.useMergeRefs)([P,M,R]),role:r,"aria-label":x,"aria-labelledby":x?void 0:T,"aria-describedby":p.describedby,tabIndex:-1,...d?I:{},onKeyDown:E},(0,a.createElement)("div",{className:l()("components-modal__content",{"hide-header":C,"is-scrollable":L,"has-scrolled-content":D}),role:"document",onScroll:B,ref:N,"aria-label":L?(0,c.__)("Scrollable section"):void 0,tabIndex:L?0:void 0},!C&&(0,a.createElement)("div",{className:"components-modal__header"},(0,a.createElement)("div",{className:"components-modal__header-heading-container"},h&&(0,a.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},h),o&&(0,a.createElement)("h1",{id:T,className:"components-modal__header-heading"},o)),f&&(0,a.createElement)(pd,{onClick:m,icon:Vl,label:g||(0,c.__)("Close")})),(0,a.createElement)("div",{ref:O},v))))),document.body)}));var GT=UT;const KT={name:"7g5ii0",styles:"&&{z-index:1000001;}"};var qT=Ku((function(e,t){const{isOpen:n,onConfirm:r,onCancel:o,children:i,confirmButtonText:s,cancelButtonText:l,...u}=Gu(e,"ConfirmDialog"),d=Uu()(KT),f=(0,a.useRef)(),p=(0,a.useRef)(),[m,h]=(0,a.useState)(),[g,v]=(0,a.useState)();(0,a.useEffect)((()=>{const e=void 0!==n;h(!e||n),v(!e)}),[n]);const b=(0,a.useCallback)((e=>t=>{e?.(t),g&&h(!1)}),[g,h]),y=(0,a.useCallback)((e=>{e.target===f.current||e.target===p.current||"Enter"!==e.key||b(r)(e)}),[b,r]),w=null!=l?l:(0,c.__)("Cancel"),x=null!=s?s:(0,c.__)("OK");return(0,a.createElement)(a.Fragment,null,m&&(0,a.createElement)(GT,{onRequestClose:b(o),onKeyDown:y,closeButtonLabel:w,isDismissible:!0,ref:t,overlayClassName:d,__experimentalHideHeader:!0,...u},(0,a.createElement)(r_,{spacing:8},(0,a.createElement)(Yh,null,i),(0,a.createElement)(hh,{direction:"row",justify:"flex-end"},(0,a.createElement)(pd,{ref:f,variant:"tertiary",onClick:b(o)},w),(0,a.createElement)(pd,{ref:p,variant:"primary",onClick:b(r)},x)))))}),"ConfirmDialog"),YT=o(2652),XT=o.n(YT);o(2797);function ZT(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function JT(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function QT(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return JT(n.overflowY,t)||JT(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function eR(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}let tR=0;function nR(){}function rR(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!ZT(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],p=e;ZT(p)&&l(p);){if((p=null==(u=(c=p).parentElement)?c.getRootNode().host||null:u)===d){f.push(p);break}null!=p&&p===document.body&&QT(p)&&!QT(document.documentElement)||null!=p&&QT(p,s)&&f.push(p)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,w=b.width,x=b.top,E=b.right,_=b.bottom,C=b.left,S="start"===o||"nearest"===o?x:"end"===o?_:x+y/2,k="center"===i?C+w/2:"end"===i?E:C,T=[],R=0;R<f.length;R++){var P=f[R],M=P.getBoundingClientRect(),I=M.height,N=M.width,O=M.top,D=M.right,A=M.bottom,L=M.left;if("if-needed"===r&&x>=0&&C>=0&&_<=h&&E<=m&&x>=O&&_<=A&&C>=L&&E<=D)return T;var z=getComputedStyle(P),F=parseInt(z.borderLeftWidth,10),B=parseInt(z.borderTopWidth,10),j=parseInt(z.borderRightWidth,10),V=parseInt(z.borderBottomWidth,10),H=0,$=0,W="offsetWidth"in P?P.offsetWidth-P.clientWidth-F-j:0,U="offsetHeight"in P?P.offsetHeight-P.clientHeight-B-V:0,G="offsetWidth"in P?0===P.offsetWidth?0:N/P.offsetWidth:0,K="offsetHeight"in P?0===P.offsetHeight?0:I/P.offsetHeight:0;if(d===P)H="start"===o?S:"end"===o?S-h:"nearest"===o?eR(v,v+h,h,B,V,v+S,v+S+y,y):S-h/2,$="start"===i?k:"center"===i?k-m/2:"end"===i?k-m:eR(g,g+m,m,F,j,g+k,g+k+w,w),H=Math.max(0,H+v),$=Math.max(0,$+g);else{H="start"===o?S-O-B:"end"===o?S-A+V+U:"nearest"===o?eR(O,A,I,B,V+U,S,S+y,y):S-(O+I/2)+U/2,$="start"===i?k-L-F:"center"===i?k-(L+N/2)+W/2:"end"===i?k-D+j+W:eR(L,D,N,F,j+W,k,k+w,w);var q=P.scrollLeft,Y=P.scrollTop;S+=Y-(H=Math.max(0,Math.min(Y+H/K,P.scrollHeight-I/K+U))),k+=q-($=Math.max(0,Math.min(q+$/G,P.scrollWidth-N/G+W)))}T.push({el:P,top:H,left:$})}return T}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function oR(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function iR(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((()=>{n=null,e(...i)}),t)}return o.cancel=r,o}function aR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((t=>(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function sR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function lR(){return String(tR++)}function cR(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function uR(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=dR(t,r)?t[r]:e[r],n)),{})}function dR(e,t){return void 0!==e[t]}function fR(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function pR(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);let a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);const s=mR(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function mR(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!r(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?mR(1,0,n,r,!1):mR(-1,n-1,n,r,!1):-1}function hR(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(oR(t,e,n)||r&&oR(t,n.document.activeElement,n))))}const gR=iR((e=>{bR(e).textContent=""}),500);function vR(e,t){const n=bR(t);e&&(n.textContent=e,gR(t))}function bR(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const yR={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function wR(e,t,n){const{props:r,type:o}=e,i={};Object.keys(t).forEach((r=>{!function(e,t,n,r){const{props:o,type:i}=t,a=`on${kR(e)}Change`;o[a]&&void 0!==r[e]&&r[e]!==n[e]&&o[a]({type:i,...r})}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange({type:o,...i})}const xR=iR(((e,t)=>{vR(e(),t)}),200),ER="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?v.useLayoutEffect:v.useEffect;function _R(e){let{id:t=`downshift-${lR()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:i,inputId:a}=e;const s=(0,v.useRef)({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:o||(e=>`${t}-item-${e}`),toggleButtonId:i||`${t}-toggle-button`,inputId:a||`${t}-input`});return s.current}function CR(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function SR(e){return/^\S{1}$/.test(e)}function kR(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function TR(e){const t=(0,v.useRef)(e);return t.current=e,t}function RR(e,t,n){const r=(0,v.useRef)(),o=(0,v.useRef)(),i=(0,v.useCallback)(((t,n)=>{o.current=n,t=uR(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[a,s]=(0,v.useReducer)(i,t),l=TR(n),c=(0,v.useCallback)((e=>s({props:l.current,...e})),[l]),u=o.current;return(0,v.useEffect)((()=>{u&&r.current&&r.current!==a&&wR(u,uR(r.current,u.props),a),r.current=a}),[a,n,u]),[a,c]}function PR(e,t,n){const[r,o]=RR(e,t,n);return[uR(r,n),o]}const MR={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:rR,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function IR(e,t,n){void 0===n&&(n=yR);const r=e[`default${kR(t)}`];return void 0!==r?r:n[t]}function NR(e,t,n){void 0===n&&(n=yR);const r=e[t];if(void 0!==r)return r;const o=e[`initial${kR(t)}`];return void 0!==o?o:IR(e,t,n)}function OR(e){const t=NR(e,"selectedItem"),n=NR(e,"isOpen"),r=NR(e,"highlightedIndex"),o=NR(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function DR(e,t,n,r){const{items:o,initialHighlightedIndex:i,defaultHighlightedIndex:a}=e,{selectedItem:s,highlightedIndex:l}=t;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==a?a:s?0===n?o.indexOf(s):pR(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function AR(e,t,n,r){const o=(0,v.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,v.useEffect)((()=>{const i=()=>{o.current.isMouseDown=!0},a=i=>{o.current.isMouseDown=!1,e&&!hR(i.target,t.map((e=>e.current)),n)&&r()},s=()=>{o.current.isTouchMove=!1},l=()=>{o.current.isTouchMove=!0},c=i=>{!e||o.current.isTouchMove||hR(i.target,t.map((e=>e.current)),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),o}let LR=()=>nR;function zR(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:a,...s}=n;(0,v.useEffect)((()=>{r||xR((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...s})),a.document)}),t)}function FR(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:a}=e;const s=(0,v.useRef)(!0);return ER((()=>{t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}let BR=nR;function jR(e,t,n){const{type:r,props:o}=t;let i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:DR(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:DR(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:IR(o,"highlightedIndex"),isOpen:IR(o,"isOpen"),selectedItem:IR(o,"selectedItem"),inputValue:IR(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function VR(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+1)%r.length,c=r[l];if(void 0!==c&&o(c).toLowerCase().startsWith(a)){var u=i(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}XT().array.isRequired,XT().func,XT().func,XT().func,XT().bool,XT().number,XT().number,XT().number,XT().bool,XT().bool,XT().bool,XT().any,XT().any,XT().any,XT().string,XT().string,XT().string,XT().func,XT().string,XT().func,XT().func,XT().func,XT().func,XT().func,XT().shape({addEventListener:XT().func,removeEventListener:XT().func,document:XT().shape({getElementById:XT().func,activeElement:XT().any,body:XT().any})});var HR=ac(ac({},MR),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),$R=nR;const WR=0,UR=1,GR=2,KR=3,qR=4,YR=5,XR=6,ZR=7,JR=8,QR=9,eP=10,tP=11,nP=12,rP=13,oP=14,iP=15,aP=16,sP=17,lP=18,cP=19,uP=20,dP=21,fP=22;var pP=Object.freeze({__proto__:null,MenuKeyDownArrowDown:WR,MenuKeyDownArrowUp:UR,MenuKeyDownEscape:GR,MenuKeyDownHome:KR,MenuKeyDownEnd:qR,MenuKeyDownEnter:YR,MenuKeyDownSpaceButton:XR,MenuKeyDownCharacter:ZR,MenuBlur:JR,MenuMouseLeave:QR,ItemMouseMove:eP,ItemClick:tP,ToggleButtonClick:nP,ToggleButtonKeyDownArrowDown:rP,ToggleButtonKeyDownArrowUp:oP,ToggleButtonKeyDownCharacter:iP,FunctionToggleMenu:aP,FunctionOpenMenu:sP,FunctionCloseMenu:lP,FunctionSetHighlightedIndex:cP,FunctionSelectItem:uP,FunctionSetInputValue:dP,FunctionReset:fP});function mP(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case tP:i={isOpen:IR(r,"isOpen"),highlightedIndex:IR(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case iP:{const n=t.key,o=`${e.inputValue}${n}`,a=VR({keysSoFar:o,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{selectedItem:r.items[a]}}}break;case rP:i={highlightedIndex:DR(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case oP:i={highlightedIndex:DR(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case YR:case XR:i={isOpen:IR(r,"isOpen"),highlightedIndex:IR(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case KR:i={highlightedIndex:mR(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case qR:i={highlightedIndex:mR(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case GR:case JR:i={isOpen:!1,highlightedIndex:-1};break;case ZR:{const n=t.key,o=`${e.inputValue}${n}`,a=VR({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case WR:i={highlightedIndex:pR(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case UR:i={highlightedIndex:pR(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case uP:i={selectedItem:t.selectedItem};break;default:return jR(e,t,pP)}return{...e,...i}}function hP(e){void 0===e&&(e={}),$R(e,hP);const t={...HR,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:a,itemToString:s,getA11ySelectionMessage:l,getA11yStatusMessage:c}=t,u=OR(t),[d,f]=PR(mP,u,t),{isOpen:p,highlightedIndex:m,selectedItem:h,inputValue:g}=d,b=(0,v.useRef)(null),y=(0,v.useRef)(null),w=(0,v.useRef)({}),x=(0,v.useRef)(!0),E=(0,v.useRef)(null),_=_R(t),C=(0,v.useRef)(),S=(0,v.useRef)(!0),k=TR({state:d,props:t}),T=(0,v.useCallback)((e=>w.current[_.getItemId(e)]),[_]);zR(c,[p,m,g,n],{isInitialMount:S.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d}),zR(l,[h],{isInitialMount:S.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d});const R=FR({menuElement:y.current,highlightedIndex:m,isOpen:p,itemRefs:w,scrollIntoView:r,getItemNodeFromIndex:T});(0,v.useEffect)((()=>(E.current=iR((e=>{e({type:dP,inputValue:""})}),500),()=>{E.current.cancel()})),[]),(0,v.useEffect)((()=>{g&&E.current(f)}),[f,g]),BR({isInitialMount:S.current,props:t,state:d}),(0,v.useEffect)((()=>{S.current?(i||a||p)&&y.current&&y.current.focus():p?y.current&&y.current.focus():o.document.activeElement===y.current&&b.current&&(x.current=!1,b.current.focus())}),[p]),(0,v.useEffect)((()=>{S.current||(C.current=n.length)}));const P=AR(p,[y,b],o,(()=>{f({type:JR})})),M=LR("getMenuProps","getToggleButtonProps");(0,v.useEffect)((()=>{S.current=!1}),[]),(0,v.useEffect)((()=>{p||(w.current={})}),[p]);const I=(0,v.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:rP,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:oP,getItemNodeFromIndex:T,shiftKey:e.shiftKey})}})),[f,T]),N=(0,v.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:WR,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:UR,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),f({type:KR,getItemNodeFromIndex:T})},End(e){e.preventDefault(),f({type:qR,getItemNodeFromIndex:T})},Escape(){f({type:GR})},Enter(e){e.preventDefault(),f({type:YR})}," "(e){e.preventDefault(),f({type:XR})}})),[f,T]),O=(0,v.useCallback)((()=>{f({type:aP})}),[f]),D=(0,v.useCallback)((()=>{f({type:lP})}),[f]),A=(0,v.useCallback)((()=>{f({type:sP})}),[f]),L=(0,v.useCallback)((e=>{f({type:cP,highlightedIndex:e})}),[f]),z=(0,v.useCallback)((e=>{f({type:uP,selectedItem:e})}),[f]),F=(0,v.useCallback)((()=>{f({type:fP})}),[f]),B=(0,v.useCallback)((e=>{f({type:dP,inputValue:e})}),[f]),j=(0,v.useCallback)((e=>({id:_.labelId,htmlFor:_.toggleButtonId,...e})),[_]),V=(0,v.useCallback)((function(e,t){let{onMouseLeave:n,refKey:r="ref",onKeyDown:o,onBlur:i,ref:a,...s}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;const c=k.current.state;return M("getMenuProps",l,r,y),{[r]:sR(a,(e=>{y.current=e})),id:_.menuId,role:"listbox","aria-labelledby":_.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(c.highlightedIndex)},onMouseLeave:aR(n,(()=>{f({type:QR})})),onKeyDown:aR(o,(e=>{const t=fR(e);t&&N[t]?N[t](e):SR(t)&&f({type:ZR,key:t,getItemNodeFromIndex:T})})),onBlur:aR(i,(()=>{if(!1===x.current)return void(x.current=!0);!P.current.isMouseDown&&f({type:JR})})),...s}}),[f,k,N,P,M,_,T]),H=(0,v.useCallback)((function(e,t){let{onClick:n,onKeyDown:r,refKey:o="ref",ref:i,...a}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===t?{}:t;const l=()=>{f({type:nP})},c=e=>{const t=fR(e);t&&I[t]?I[t](e):SR(t)&&f({type:iP,key:t,getItemNodeFromIndex:T})},u={[o]:sR(i,(e=>{b.current=e})),id:_.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":k.current.state.isOpen,"aria-labelledby":`${_.labelId} ${_.toggleButtonId}`,...a};return a.disabled||(u.onClick=aR(n,l),u.onKeyDown=aR(r,c)),M("getToggleButtonProps",s,o,b),u}),[f,k,I,M,_,T]),$=(0,v.useCallback)((function(e){let{item:t,index:n,onMouseMove:r,onClick:o,refKey:i="ref",ref:a,disabled:s,...l}=void 0===e?{}:e;const{state:c,props:u}=k.current,d=()=>{f({type:tP,index:n})},p=CR(n,t,u.items);if(p<0)throw new Error("Pass either item or item index in getItemProps!");const m={disabled:s,role:"option","aria-selected":`${p===c.highlightedIndex}`,id:_.getItemId(p),[i]:sR(a,(e=>{e&&(w.current[_.getItemId(p)]=e)})),...l};return s||(m.onClick=aR(o,d)),m.onMouseMove=aR(r,(()=>{n!==c.highlightedIndex&&(R.current=!1,f({type:eP,index:n,disabled:s}))})),m}),[f,k,R,_]);return{getToggleButtonProps:H,getLabelProps:j,getMenuProps:V,getItemProps:$,toggleMenu:O,openMenu:A,closeMenu:D,setHighlightedIndex:L,selectItem:z,reset:F,setInputValue:B,highlightedIndex:m,isOpen:p,selectedItem:h,inputValue:g}}hP.stateChangeTypes=pP;XT().array.isRequired,XT().func,XT().func,XT().func,XT().bool,XT().number,XT().number,XT().number,XT().bool,XT().bool,XT().bool,XT().any,XT().any,XT().any,XT().string,XT().string,XT().string,XT().string,XT().string,XT().string,XT().func,XT().string,XT().string,XT().func,XT().func,XT().func,XT().func,XT().func,XT().func,XT().shape({addEventListener:XT().func,removeEventListener:XT().func,document:XT().shape({getElementById:XT().func,activeElement:XT().any,body:XT().any})});XT().array,XT().array,XT().array,XT().func,XT().func,XT().func,XT().number,XT().number,XT().number,XT().func,XT().func,XT().string,XT().string,XT().shape({addEventListener:XT().func,removeEventListener:XT().func,document:XT().shape({getElementById:XT().func,activeElement:XT().any,body:XT().any})});const gP=e=>e.__nextUnconstrainedWidth?"":Zf(tg,"{min-width:130px;}",""),vP=sd(hg,{target:"eswuck60"})(gP,";"),bP=e=>e?.name,yP=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case hP.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case hP.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function wP(e){const{__next36pxDefaultSize:t=!1,__nextUnconstrainedWidth:n=!1,className:r,hideLabelFromVision:o,label:i,describedBy:s,options:u,onChange:d,size:f="default",value:p,onMouseOver:m,onMouseOut:h,onFocus:g,onBlur:v,__experimentalShowSelectedHint:b=!1}=e,{getLabelProps:y,getToggleButtonProps:w,getMenuProps:x,getItemProps:E,isOpen:_,highlightedIndex:C,selectedItem:S}=hP({initialSelectedItem:u[0],items:u,itemToString:bP,onSelectedItemChange:d,...null!=p?{selectedItem:p}:void 0,stateReducer:yP}),[k,T]=(0,a.useState)(!1);n||$l()("Constrained width styles for wp.components.CustomSelectControl",{since:"6.1",version:"6.4",hint:"Set the `__nextUnconstrainedWidth` prop to true to start opting into the new styles, which will become the default in a future version"});const R=x({className:"components-custom-select-control__menu","aria-hidden":!_}),P=(0,a.useCallback)((e=>{e.stopPropagation(),R?.onKeyDown?.(e)}),[R]);return R["aria-activedescendant"]?.startsWith("downshift-null")&&delete R["aria-activedescendant"],(0,a.createElement)("div",{className:l()("components-custom-select-control",r)},o?(0,a.createElement)(ud,{as:"label",...y()},i):(0,a.createElement)(Av,{...y({className:"components-custom-select-control__label"})},i),(0,a.createElement)(vP,{__next36pxDefaultSize:t,__nextUnconstrainedWidth:n,isFocused:_||k,__unstableInputWidth:n?void 0:"auto",labelPosition:n?void 0:"top",size:f,suffix:(0,a.createElement)(wy,null)},(0,a.createElement)(hy,{onMouseOver:m,onMouseOut:h,as:"button",onFocus:function(e){T(!0),g?.(e)},onBlur:function(e){T(!1),v?.(e)},selectSize:f,__next36pxDefaultSize:t,...w({"aria-label":i,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:s||(S?(0,c.sprintf)((0,c.__)("Currently selected: %s"),S.name):(0,c.__)("No selection"))})},bP(S),b&&S.__experimentalHint&&(0,a.createElement)("span",{className:"components-custom-select-control__hint"},S.__experimentalHint))),(0,a.createElement)("ul",{...R,onKeyDown:P},_&&u.map(((e,n)=>(0,a.createElement)("li",{...E({item:e,index:n,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":n===C,"has-hint":!!e.__experimentalHint,"is-next-36px-default-size":t}),style:e.style})},e.name,e.__experimentalHint&&(0,a.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===S&&(0,a.createElement)(by,{icon:e_,className:"components-custom-select-control__item-icon"}))))))}function xP(e){return(0,a.createElement)(wP,{...e,__experimentalShowSelectedHint:!1})}function EP(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function _P(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function CP(e){_P(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function SP(e,t){_P(2,arguments);var n=CP(e),r=EP(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}var kP,TP,RP={};function PP(){return RP}function MP(e,t){var n,r,o,i,a,s,l,c;_P(1,arguments);var u=PP(),d=EP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=CP(e),p=f.getDay(),m=(p<d?7:0)+p-d;return f.setDate(f.getDate()-m),f.setHours(0,0,0,0),f}function IP(e,t){return _P(2,arguments),function(e,t){_P(2,arguments);var n=CP(e),r=EP(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(e,7*EP(t))}function NP(e,t){return _P(2,arguments),SP(e,12*EP(t))}function OP(e){_P(1,arguments);var t=CP(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function DP(e,t){var n;_P(1,arguments);var r=e||{},o=CP(r.start),i=CP(r.end).getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var a=[],s=o;s.setHours(0,0,0,0);var l=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)a.push(CP(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return a}function AP(e){_P(1,arguments);var t=CP(e);return t.setDate(1),t.setHours(0,0,0,0),t}function LP(e,t){var n,r,o,i,a,s,l,c;_P(1,arguments);var u=PP(),d=EP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=CP(e),p=f.getDay(),m=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+m),f.setHours(23,59,59,999),f}function zP(e,t){_P(2,arguments);var n=CP(e),r=CP(t);return n.getTime()===r.getTime()}function FP(e,t){_P(2,arguments);var n=CP(e),r=EP(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){_P(1,arguments);var t=CP(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}function BP(){return function(e){_P(1,arguments);var t=CP(e);return t.setHours(0,0,0,0),t}(Date.now())}!function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"}(kP||(kP={})),function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"}(TP||(TP={}));var jP=function(e,t,n){return(zP(e,t)||function(e,t){_P(2,arguments);var n=CP(e),r=CP(t);return n.getTime()>r.getTime()}(e,t))&&(zP(e,n)||function(e,t){_P(2,arguments);var n=CP(e),r=CP(t);return n.getTime()<r.getTime()}(e,n))},VP=function(e){return function(e,t){if(_P(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=CP(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=FP(n,t.month)),null!=t.date&&n.setDate(EP(t.date)),null!=t.hours&&n.setHours(EP(t.hours)),null!=t.minutes&&n.setMinutes(EP(t.minutes)),null!=t.seconds&&n.setSeconds(EP(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(EP(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0})},HP=function(e){var t=void 0===e?{}:e,n=t.weekStartsOn,r=void 0===n?TP.SUNDAY:n,o=t.viewing,i=void 0===o?new Date:o,a=t.selected,s=void 0===a?[]:a,l=t.numberOfMonths,c=void 0===l?1:l,u=(0,v.useState)(i),d=u[0],f=u[1],p=(0,v.useCallback)((function(){return f(BP())}),[f]),m=(0,v.useCallback)((function(e){return f((function(t){return FP(t,e)}))}),[]),h=(0,v.useCallback)((function(){return f((function(e){return function(e,t){return _P(2,arguments),SP(e,-EP(t))}(e,1)}))}),[]),g=(0,v.useCallback)((function(){return f((function(e){return SP(e,1)}))}),[]),b=(0,v.useCallback)((function(e){return f((function(t){return function(e,t){_P(2,arguments);var n=CP(e),r=EP(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}(t,e)}))}),[]),y=(0,v.useCallback)((function(){return f((function(e){return function(e,t){return _P(2,arguments),NP(e,-EP(t))}(e,1)}))}),[]),w=(0,v.useCallback)((function(){return f((function(e){return NP(e,1)}))}),[]),x=(0,v.useState)(s.map(VP)),E=x[0],_=x[1],C=(0,v.useCallback)((function(e){return E.findIndex((function(t){return zP(t,e)}))>-1}),[E]),S=(0,v.useCallback)((function(e,t){_(t?Array.isArray(e)?e:[e]:function(t){return t.concat(Array.isArray(e)?e:[e])})}),[]),k=(0,v.useCallback)((function(e){return _((function(t){return Array.isArray(e)?t.filter((function(t){return!e.map((function(e){return e.getTime()})).includes(t.getTime())})):t.filter((function(t){return!zP(t,e)}))}))}),[]),T=(0,v.useCallback)((function(e,t){return C(e)?k(e):S(e,t)}),[k,C,S]),R=(0,v.useCallback)((function(e,t,n){_(n?DP({start:e,end:t}):function(n){return n.concat(DP({start:e,end:t}))})}),[]),P=(0,v.useCallback)((function(e,t){_((function(n){return n.filter((function(n){return!DP({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),M=(0,v.useMemo)((function(){return function(e){_P(1,arguments);var t=e||{},n=CP(t.start),r=CP(t.end).getTime(),o=[];if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var i=n;for(i.setHours(0,0,0,0),i.setDate(1);i.getTime()<=r;)o.push(CP(i)),i.setMonth(i.getMonth()+1);return o}({start:AP(d),end:OP(SP(d,c-1))}).map((function(e){return function(e,t){_P(1,arguments);var n=e||{},r=CP(n.start),o=CP(n.end),i=o.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var a=MP(r,t),s=MP(o,t);a.setHours(15),s.setHours(15),i=s.getTime();for(var l=[],c=a;c.getTime()<=i;)c.setHours(0),l.push(CP(c)),(c=IP(c,1)).setHours(15);return l}({start:AP(e),end:OP(e)},{weekStartsOn:r}).map((function(e){return DP({start:MP(e,{weekStartsOn:r}),end:LP(e,{weekStartsOn:r})})}))}))}),[d,r,c]);return{clearTime:VP,inRange:jP,viewing:d,setViewing:f,viewToday:p,viewMonth:m,viewPreviousMonth:h,viewNextMonth:g,viewYear:b,viewPreviousYear:y,viewNextYear:w,selected:E,setSelected:_,clearSelected:function(){return _([])},isSelected:C,select:S,deselect:k,toggle:T,selectRange:R,deselectRange:P,calendar:M}};function $P(e){return $P="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},$P(e)}function WP(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function UP(e){WP(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===$P(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function GP(e){WP(1,arguments);var t=UP(e);return t.setHours(0,0,0,0),t}function KP(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function qP(e,t){WP(2,arguments);var n=UP(e),r=KP(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function YP(e,t){return WP(2,arguments),qP(e,-KP(t))}function XP(e){if(WP(1,arguments),!function(e){return WP(1,arguments),e instanceof Date||"object"===$P(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=UP(e);return!isNaN(Number(t))}function ZP(e,t){return WP(2,arguments),function(e,t){WP(2,arguments);var n=UP(e).getTime(),r=KP(t);return new Date(n+r)}(e,-KP(t))}function JP(e){WP(1,arguments);var t=UP(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function QP(e){WP(1,arguments);var t=UP(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=JP(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=JP(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function eM(e){WP(1,arguments);var t=UP(e),n=JP(t).getTime()-function(e){WP(1,arguments);var t=QP(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),JP(n)}(t).getTime();return Math.round(n/6048e5)+1}var tM={};function nM(){return tM}function rM(e,t){var n,r,o,i,a,s,l,c;WP(1,arguments);var u=nM(),d=KP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=UP(e),p=f.getUTCDay(),m=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-m),f.setUTCHours(0,0,0,0),f}function oM(e,t){var n,r,o,i,a,s,l,c;WP(1,arguments);var u=UP(e),d=u.getUTCFullYear(),f=nM(),p=KP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(l=f.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var h=rM(m,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var v=rM(g,t);return u.getTime()>=h.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function iM(e,t){WP(1,arguments);var n=UP(e),r=rM(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;WP(1,arguments);var u=nM(),d=KP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),f=oM(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),rM(p,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function aM(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var sM={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return aM("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):aM(n+1,2)},d:function(e,t){return aM(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return aM(e.getUTCHours()%12||12,t.length)},H:function(e,t){return aM(e.getUTCHours(),t.length)},m:function(e,t){return aM(e.getUTCMinutes(),t.length)},s:function(e,t){return aM(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return aM(Math.floor(r*Math.pow(10,n-3)),t.length)}},lM=sM,cM="midnight",uM="noon",dM="morning",fM="afternoon",pM="evening",mM="night",hM={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return lM.y(e,t)},Y:function(e,t,n,r){var o=oM(e,r),i=o>0?o:1-o;return"YY"===t?aM(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):aM(i,t.length)},R:function(e,t){return aM(QP(e),t.length)},u:function(e,t){return aM(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return aM(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return aM(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return lM.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return aM(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=iM(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):aM(o,t.length)},I:function(e,t,n){var r=eM(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):aM(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):lM.d(e,t)},D:function(e,t,n){var r=function(e){WP(1,arguments);var t=UP(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):aM(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return aM(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return aM(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return aM(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?uM:0===o?cM:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?pM:o>=12?fM:o>=4?dM:mM,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return lM.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):lM.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):aM(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):aM(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):lM.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):lM.s(e,t)},S:function(e,t){return lM.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return vM(o);case"XXXX":case"XX":return bM(o);default:return bM(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return vM(o);case"xxxx":case"xx":return bM(o);default:return bM(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+gM(o,":");default:return"GMT"+bM(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+gM(o,":");default:return"GMT"+bM(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return aM(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return aM((r._originalDate||e).getTime(),t.length)}};function gM(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+aM(i,2)}function vM(e,t){return e%60==0?(e>0?"-":"+")+aM(Math.abs(e)/60,2):bM(e,t)}function bM(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+aM(Math.floor(o/60),2)+n+aM(o%60,2)}var yM=hM,wM=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},xM=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},EM={p:xM,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return wM(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",wM(o,t)).replace("{{time}}",xM(i,t))}},_M=EM;var CM=["D","DD"],SM=["YY","YYYY"];function kM(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var TM={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},RM=function(e,t,n){var r,o=TM[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function PM(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var MM={date:PM({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:PM({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:PM({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},IM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},NM=function(e,t,n,r){return IM[e]};function OM(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var DM={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:OM({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:OM({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:OM({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:OM({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:OM({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},AM=DM;function LM(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var zM,FM={ordinalNumber:(zM={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(zM.matchPattern);if(!n)return null;var r=n[0],o=e.match(zM.parsePattern);if(!o)return null;var i=zM.valueCallback?zM.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:LM({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:LM({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:LM({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:LM({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:LM({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},BM={code:"en-US",formatDistance:RM,formatLong:MM,formatRelative:NM,localize:AM,match:FM,options:{weekStartsOn:0,firstWeekContainsDate:1}},jM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,VM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,HM=/^'([^]*?)'?$/,$M=/''/g,WM=/[a-zA-Z]/;function UM(e,t,n){var r,o,i,a,s,l,c,u,d,f,p,m,h,g,v,b,y,w;WP(2,arguments);var x=String(t),E=nM(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:BM,C=KP(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==a?a:null===(d=E.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=KP(null!==(p=null!==(m=null!==(h=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==h?h:E.weekStartsOn)&&void 0!==m?m:null===(y=E.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var k=UP(e);if(!XP(k))throw new RangeError("Invalid time value");var T=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(k),R=ZP(k,T),P={firstWeekContainsDate:C,weekStartsOn:S,locale:_,_originalDate:k},M=x.match(VM).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,_M[t])(e,_.formatLong):e})).join("").match(jM).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(HM);if(!t)return e;return t[1].replace($M,"'")}(r);var i=yM[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!function(e){return-1!==SM.indexOf(e)}(r)||kM(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==CM.indexOf(e)}(r)||kM(r,t,String(e)),i(R,r,_.localize,P);if(o.match(WM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return M}function GM(e,t){WP(2,arguments);var n=UP(e),r=UP(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function KM(e,t){WP(2,arguments);var n=UP(e),r=UP(t);return n.getTime()===r.getTime()}function qM(e,t){WP(2,arguments);var n=GP(e),r=GP(t);return n.getTime()===r.getTime()}function YM(e,t){WP(2,arguments);var n=UP(e),r=KP(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function XM(e,t){return WP(2,arguments),YM(e,7*KP(t))}var ZM=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}));var JM=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})),QM=window.wp.date;const eI=sd("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),tI=sd(rb,{target:"e105ri6r4"})("margin-bottom:",Jm(4),";"),nI=sd(i_,{target:"e105ri6r3"})("font-size:",Nh.fontSize,";font-weight:",Nh.fontWeight,";strong{font-weight:",Nh.fontWeightHeading,";}"),rI=sd("div",{target:"e105ri6r2"})("column-gap:",Jm(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",Jm(2),";"),oI=sd("div",{target:"e105ri6r1"})("color:",Dp.gray[700],";font-size:",Nh.fontSize,";line-height:",Nh.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),iI=sd(pd,{shouldForwardProp:e=>!["column","isSelected","isToday","hasEvents"].includes(e),target:"e105ri6r0"})("grid-column:",(e=>e.column),";position:relative;justify-content:center;",(e=>1===e.column&&"\n\t\tjustify-self: start;\n\t\t")," ",(e=>7===e.column&&"\n\t\tjustify-self: end;\n\t\t")," ",(e=>e.disabled&&"\n\t\tpointer-events: none;\n\t\t")," &&&{border-radius:100%;height:",Jm(7),";width:",Jm(7),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${Dp.ui.theme};\n\t\t\tcolor: ${Dp.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${Dp.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?Dp.white:Dp.ui.theme};\n\t\t\tborder-radius: 2px;\n\t\t\tbottom: 0;\n\t\t\tcontent: " ";\n\t\t\theight: 4px;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -2px;\n\t\t\tposition: absolute;\n\t\t\twidth: 4px;\n\t\t}\n\t\t`),";");function aI(e){return"string"==typeof e?new Date(e):UP(e)}const sI="yyyy-MM-dd'T'HH:mm:ss";function lI({day:e,column:t,isSelected:n,isFocusable:r,isFocusAllowed:o,isToday:i,isInvalid:s,numEvents:l,onClick:c,onKeyDown:u}){const d=(0,a.useRef)();return(0,a.useEffect)((()=>{d.current&&r&&o&&d.current.focus()}),[r]),(0,a.createElement)(iI,{ref:d,className:"components-datetime__date__day",disabled:s,tabIndex:r?0:-1,"aria-label":cI(e,n,l),column:t,isSelected:n,isToday:i,hasEvents:l>0,onClick:c,onKeyDown:u},(0,QM.dateI18n)("j",e,-e.getTimezoneOffset()))}function cI(e,t,n){const{formats:r}=(0,QM.getSettings)(),o=(0,QM.dateI18n)(r.date,e,-e.getTimezoneOffset());return t&&n>0?(0,c.sprintf)((0,c._n)("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),o,n):t?(0,c.sprintf)((0,c.__)("%1$s. Selected"),o):n>0?(0,c.sprintf)((0,c._n)("%1$s. There is %2$d event","%1$s. There are %2$d events",n),o,n):o}var uI=function({currentDate:e,onChange:t,events:n=[],isInvalidDate:r,onMonthPreviewed:o,startOfWeek:i=0}){const s=e?aI(e):new Date,{calendar:l,viewing:u,setSelected:d,setViewing:f,isSelected:p,viewPreviousMonth:m,viewNextMonth:h}=HP({selected:[GP(s)],viewing:GP(s),weekStartsOn:i}),[g,v]=(0,a.useState)(GP(s)),[b,y]=(0,a.useState)(!1),[w,x]=(0,a.useState)(e);return e!==w&&(x(e),d([GP(s)]),f(GP(s)),v(GP(s))),(0,a.createElement)(eI,{className:"components-datetime__date",role:"application","aria-label":(0,c.__)("Calendar")},(0,a.createElement)(tI,null,(0,a.createElement)(pd,{icon:(0,c.isRTL)()?ZM:JM,variant:"tertiary","aria-label":(0,c.__)("View previous month"),onClick:()=>{m(),v(YP(g,1)),o?.(UM(YP(u,1),sI))}}),(0,a.createElement)(nI,{level:3},(0,a.createElement)("strong",null,(0,QM.dateI18n)("F",u,-u.getTimezoneOffset()))," ",(0,QM.dateI18n)("Y",u,-u.getTimezoneOffset())),(0,a.createElement)(pd,{icon:(0,c.isRTL)()?JM:ZM,variant:"tertiary","aria-label":(0,c.__)("View next month"),onClick:()=>{h(),v(qP(g,1)),o?.(UM(qP(u,1),sI))}})),(0,a.createElement)(rI,{onFocus:()=>y(!0),onBlur:()=>y(!1)},l[0][0].map((e=>(0,a.createElement)(oI,{key:e.toString()},(0,QM.dateI18n)("D",e,-e.getTimezoneOffset())))),l[0].map((e=>e.map(((e,i)=>GM(e,u)?(0,a.createElement)(lI,{key:e.toString(),day:e,column:i+1,isSelected:p(e),isFocusable:KM(e,g),isFocusAllowed:b,isToday:qM(e,new Date),isInvalid:!!r&&r(e),numEvents:n.filter((t=>qM(t.date,e))).length,onClick:()=>{d([e]),v(e),t?.(UM(new Date(e.getFullYear(),e.getMonth(),e.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),sI))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=YM(e,(0,c.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=YM(e,(0,c.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=function(e,t){return WP(2,arguments),XM(e,-KP(t))}(e,1)),"ArrowDown"===t.key&&(n=XM(e,1)),"PageUp"===t.key&&(n=YP(e,1)),"PageDown"===t.key&&(n=qP(e,1)),"Home"===t.key&&(n=function(e,t){var n,r,o,i,a,s,l,c;WP(1,arguments);var u=nM(),d=KP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=UP(e),p=f.getDay(),m=(p<d?7:0)+p-d;return f.setDate(f.getDate()-m),f.setHours(0,0,0,0),f}(e)),"End"===t.key&&(n=GP(function(e,t){var n,r,o,i,a,s,l,c;WP(1,arguments);var u=nM(),d=KP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=UP(e),p=f.getDay(),m=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+m),f.setHours(23,59,59,999),f}(e))),n&&(t.preventDefault(),v(n),GM(n,u)||(f(n),o?.(UM(n,sI))))}}):null))))))};function dI(e){WP(1,arguments);var t=UP(e);return t.setSeconds(0,0),t}function fI(e,t){WP(2,arguments);var n=UP(e),r=KP(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){WP(1,arguments);var t=UP(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}const pI=sd("div",{target:"evcr23110"})("box-sizing:border-box;font-size:",Nh.fontSize,";"),mI=sd("fieldset",{target:"evcr2319"})("border:0;margin:0 0 ",Jm(4)," 0;padding:0;&:last-child{margin-bottom:0;}"),hI=sd("div",{target:"evcr2318"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),gI=Zf("&&& ",rg,"{padding-left:",Jm(2),";padding-right:",Jm(2),";text-align:center;}",""),vI=sd(ab,{target:"evcr2317"})(gI," width:",Jm(9),";&&& ",rg,"{padding-right:0;}&&& ",sg,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),bI=sd("span",{target:"evcr2316"})("border-top:",Nh.borderWidth," solid ",Dp.gray[700],";border-bottom:",Nh.borderWidth," solid ",Dp.gray[700],";line-height:calc(\n\t\t",Nh.controlHeight," - ",Nh.borderWidth," * 2\n\t);display:inline-block;"),yI=sd(ab,{target:"evcr2315"})(gI," width:",Jm(9),";&&& ",rg,"{padding-left:0;}&&& ",sg,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),wI=sd("div",{target:"evcr2314"})({name:"1ff36h2",styles:"flex-grow:1"}),xI=sd(_y,{target:"evcr2313"})("height:36px;",hy,"{line-height:30px;}"),EI=sd(ab,{target:"evcr2312"})(gI," width:",Jm(9),";"),_I=sd(ab,{target:"evcr2311"})(gI," width:",Jm(14),";"),CI=sd("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"});var SI=()=>{const{timezone:e}=(0,QM.getSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",r=""!==e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offset}`,o="UTC"===e.string?(0,c.__)("Coordinated Universal Time"):`(${r}) ${e.string.replace("_"," ")}`;return(0,a.createElement)(Uf,{position:"top center",text:o},(0,a.createElement)(CI,{className:"components-datetime__timezone"},r))};function kI(e,t){return t?(e%12+12)%24:e%12}function TI(e){return(t,n)=>{const r={...t};return n.type!==hv&&n.type!==_v&&n.type!==xv||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}var RI=function({is12Hour:e,currentTime:t,onChange:n}){const[r,o]=(0,a.useState)((()=>t?dI(aI(t)):new Date));(0,a.useEffect)((()=>{o(t?dI(aI(t)):new Date)}),[t]);const{day:i,month:s,year:l,minutes:u,hours:d,am:f}=(0,a.useMemo)((()=>({day:UM(r,"dd"),month:UM(r,"MM"),year:UM(r,"yyyy"),minutes:UM(r,"mm"),hours:UM(r,e?"hh":"HH"),am:UM(r,"a")})),[r,e]),p=t=>(i,{event:a})=>{if(!(a.target instanceof HTMLInputElement))return;if(!a.target.validity.valid)return;let s=Number(i);"hours"===t&&e&&(s=kI(s,"PM"===f));const l=function(e,t){if(WP(2,arguments),"object"!==$P(t)||null===t)throw new RangeError("values parameter must be an object");var n=UP(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=fI(n,t.month)),null!=t.date&&n.setDate(KP(t.date)),null!=t.hours&&n.setHours(KP(t.hours)),null!=t.minutes&&n.setMinutes(KP(t.minutes)),null!=t.seconds&&n.setSeconds(KP(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(KP(t.milliseconds)),n)}(r,{[t]:s});o(l),n?.(UM(l,sI))};function m(e){return()=>{if(f===e)return;const t=parseInt(d,10),i=function(e,t){WP(2,arguments);var n=UP(e),r=KP(t);return n.setHours(r),n}(r,kI(t,"PM"===e));o(i),n?.(UM(i,sI))}}const h=(0,a.createElement)(EI,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,c.__)("Day"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:i,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("date")}),g=(0,a.createElement)(wI,null,(0,a.createElement)(xI,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,c.__)("Month"),hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,value:s,options:[{value:"01",label:(0,c.__)("January")},{value:"02",label:(0,c.__)("February")},{value:"03",label:(0,c.__)("March")},{value:"04",label:(0,c.__)("April")},{value:"05",label:(0,c.__)("May")},{value:"06",label:(0,c.__)("June")},{value:"07",label:(0,c.__)("July")},{value:"08",label:(0,c.__)("August")},{value:"09",label:(0,c.__)("September")},{value:"10",label:(0,c.__)("October")},{value:"11",label:(0,c.__)("November")},{value:"12",label:(0,c.__)("December")}],onChange:e=>{const t=fI(r,Number(e)-1);o(t),n?.(UM(t,sI))}}));return(0,a.createElement)(pI,{className:"components-datetime__time"},(0,a.createElement)(mI,null,(0,a.createElement)(jv.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,c.__)("Time")),(0,a.createElement)(rb,{className:"components-datetime__time-wrapper"},(0,a.createElement)(hI,{className:"components-datetime__time-field components-datetime__time-field-time"},(0,a.createElement)(vI,{className:"components-datetime__time-field-hours-input",label:(0,c.__)("Hours"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:d,step:1,min:e?1:0,max:e?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("hours"),__unstableStateReducer:TI(2)}),(0,a.createElement)(bI,{className:"components-datetime__time-separator","aria-hidden":"true"},":"),(0,a.createElement)(yI,{className:"components-datetime__time-field-minutes-input",label:(0,c.__)("Minutes"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:u,step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("minutes"),__unstableStateReducer:TI(2)})),e&&(0,a.createElement)(WC,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},(0,a.createElement)(pd,{className:"components-datetime__time-am-button",variant:"AM"===f?"primary":"secondary",onClick:m("AM")},(0,c.__)("AM")),(0,a.createElement)(pd,{className:"components-datetime__time-pm-button",variant:"PM"===f?"primary":"secondary",onClick:m("PM")},(0,c.__)("PM"))),(0,a.createElement)(lh,null),(0,a.createElement)(SI,null))),(0,a.createElement)(mI,null,(0,a.createElement)(jv.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,c.__)("Date")),(0,a.createElement)(rb,{className:"components-datetime__time-wrapper"},e?(0,a.createElement)(a.Fragment,null,g,h):(0,a.createElement)(a.Fragment,null,h,g),(0,a.createElement)(_I,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,c.__)("Year"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:l,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("year"),__unstableStateReducer:TI(4)}))))};const PI=sd(r_,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),MI=()=>{};const II=(0,a.forwardRef)((function({currentDate:e,is12Hour:t,isInvalidDate:n,onMonthPreviewed:r=MI,onChange:o,events:i,startOfWeek:s},l){return(0,a.createElement)(PI,{ref:l,className:"components-datetime",spacing:4},(0,a.createElement)(a.Fragment,null,(0,a.createElement)(RI,{currentTime:e,onChange:o,is12Hour:t}),(0,a.createElement)(uI,{currentDate:e,onChange:o,isInvalidDate:n,events:i,onMonthPreviewed:r,startOfWeek:s})))}));var NI=II;var OI=[{name:(0,c._x)("None","Size of a UI element"),slug:"none"},{name:(0,c._x)("Small","Size of a UI element"),slug:"small"},{name:(0,c._x)("Medium","Size of a UI element"),slug:"medium"},{name:(0,c._x)("Large","Size of a UI element"),slug:"large"},{name:(0,c._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];var DI=function(e){const{label:t,value:n,sizes:r=OI,icon:o,onChange:i,className:s=""}=e,u=(0,a.createElement)(a.Fragment,null,o&&(0,a.createElement)(Gl,{icon:o}),t);return(0,a.createElement)(_y,{className:l()(s,"block-editor-dimension-control"),label:u,hideLabelFromVision:!1,value:n,onChange:e=>{const t=((e,t)=>e.find((e=>t===e.slug)))(r,e);t&&n!==t.slug?"function"==typeof i&&i(t.slug):i?.(void 0)},options:(e=>{const t=e.map((({name:e,slug:t})=>({label:e,value:t})));return[{label:(0,c.__)("Default"),value:""},...t]})(r)})};const AI={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},LI=(0,a.createContext)(!1),{Consumer:zI,Provider:FI}=LI;function BI({className:e,children:t,isDisabled:n=!0,...r}){const o=Uu();return(0,a.createElement)(FI,{value:n},(0,a.createElement)("div",{inert:n?"true":void 0,className:n?o(AI,e,"components-disabled"):void 0,...r},t))}BI.Context=LI,BI.Consumer=zI;var jI=BI;const VI="is-dragging-components-draggable";var HI=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:r,appendToOwnerDocument:o=!1,cloneClassname:i,elementId:s,transferData:l,__experimentalTransferDataType:c="text",__experimentalDragComponent:d}){const f=(0,a.useRef)(null),p=(0,a.useRef)((()=>{}));return(0,a.useEffect)((()=>()=>{p.current()}),[]),(0,a.createElement)(a.Fragment,null,e({onDraggableStart:function(e){const{ownerDocument:r}=e.target;e.dataTransfer.setData(c,JSON.stringify(l));const a=r.createElement("div");a.style.top="0",a.style.left="0";const d=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(d.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(d),e.dataTransfer.setDragImage(d,0,0)),a.classList.add("components-draggable__clone"),i&&a.classList.add(i);let m=0,h=0;if(f.current){m=e.clientX,h=e.clientY,a.style.transform=`translate( ${m}px, ${h}px )`;const t=r.createElement("div");t.innerHTML=f.current.innerHTML,a.appendChild(t),r.body.appendChild(a)}else{const e=r.getElementById(s),t=e.getBoundingClientRect(),n=e.parentNode,i=t.top,l=t.left;a.style.width=`${t.width+0}px`;const c=e.cloneNode(!0);c.id=`clone-${s}`,m=l-0,h=i-0,a.style.transform=`translate( ${m}px, ${h}px )`,Array.from(c.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),a.appendChild(c),o?r.body.appendChild(a):n?.appendChild(a)}let g=e.clientX,v=e.clientY;const b=(0,u.throttle)((function(e){if(g===e.clientX&&v===e.clientY)return;const t=m+e.clientX-g,r=h+e.clientY-v;a.style.transform=`translate( ${t}px, ${r}px )`,g=e.clientX,v=e.clientY,m=t,h=r,n&&n(e)}),16);r.addEventListener("dragover",b),r.body.classList.add(VI),t&&t(e),p.current=()=>{a&&a.parentNode&&a.parentNode.removeChild(a),d&&d.parentNode&&d.parentNode.removeChild(d),r.body.classList.remove(VI),r.removeEventListener("dragover",b)}},onDraggableEnd:function(e){e.preventDefault(),p.current(),r&&r(e)}}),d&&(0,a.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:f},d))};var $I=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));var WI=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:r,onDrop:o,...i}){const[s,d]=(0,a.useState)(),[f,p]=(0,a.useState)(),[m,h]=(0,a.useState)(),g=(0,u.__experimentalUseDropZone)({onDrop(e){const t=e.dataTransfer?(0,Wl.getFilesFromDataTransfer)(e.dataTransfer):[],i=e.dataTransfer?.getData("text/html");i&&r?r(i):t.length&&n?n(t):o&&o(e)},onDragStart(e){d(!0);let t="default";e.dataTransfer?.types.includes("text/html")?t="html":(e.dataTransfer?.types.includes("Files")||(e.dataTransfer?(0,Wl.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(t="file"),h(t)},onDragEnd(){d(!1),h(void 0)},onDragEnter(){p(!0)},onDragLeave(){p(!1)}}),v=(0,u.useReducedMotion)();let b;const y={hidden:{opacity:0},show:{opacity:1,transition:{type:"tween",duration:.2,delay:0,delayChildren:.1}},exit:{opacity:0,transition:{duration:.2,delayChildren:0}}},w={hidden:{opacity:0,scale:.9},show:{opacity:1,scale:1,transition:{duration:.1}},exit:{opacity:0,scale:.9}};f&&(b=(0,a.createElement)(jl.div,{variants:y,initial:v?"show":"hidden",animate:"show",exit:v?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"}},(0,a.createElement)(jl.div,{variants:w},(0,a.createElement)(by,{icon:$I,className:"components-drop-zone__content-icon"}),(0,a.createElement)("span",{className:"components-drop-zone__content-text"},t||(0,c.__)("Drop files to upload")))));const x=l()("components-drop-zone",e,{"is-active":(s||f)&&("file"===m&&n||"html"===m&&r||"default"===m&&o),"is-dragging-over-document":s,"is-dragging-over-element":f,[`is-dragging-${m}`]:!!m});return(0,a.createElement)("div",{...i,ref:g,className:x},v?b:(0,a.createElement)(Vm,null,b))};function UI({children:e}){return $l()("wp.components.DropZoneProvider",{since:"5.8",hint:"wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code."}),e}var GI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"}));function KI(e=[],t="90deg"){const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}Tp([Rp]);var qI=function({values:e}){return e?(0,a.createElement)(ly,{colorValue:KI(e,"135deg")}):(0,a.createElement)(Gl,{icon:GI})};function YI({label:e,value:t,colors:n,disableCustomColors:r,enableAlpha:o,onChange:i}){const[s,l]=(0,a.useState)(!1);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(pd,{className:"components-color-list-picker__swatch-button",onClick:()=>l((e=>!e))},(0,a.createElement)(rb,{justify:"flex-start",spacing:2},t?(0,a.createElement)(ly,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,a.createElement)(Gl,{icon:GI}),(0,a.createElement)("span",null,e))),s&&(0,a.createElement)(m_,{className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:i,disableCustomColors:r,enableAlpha:o}))}var XI=function({colors:e,labels:t,value:n=[],disableCustomColors:r,enableAlpha:o,onChange:i}){return(0,a.createElement)("div",{className:"components-color-list-picker"},t.map(((t,s)=>(0,a.createElement)(YI,{key:s,label:t,value:n[s],colors:e,disableCustomColors:r,enableAlpha:o,onChange:e=>{const t=n.slice();t[s]=e,i(t)}}))))};const ZI=["#333","#CCC"];function JI({value:e,onChange:t}){const n=!!e,r=n?e:ZI,o=KI(r),i=(s=r).map(((e,t)=>({position:100*t/(s.length-1),color:e})));var s;return(0,a.createElement)(Mk,{disableInserter:!0,background:o,hasGradient:n,value:i,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}var QI=function({clearable:e=!0,unsetable:t=!0,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:s,onChange:l}){const[u,d]=(0,a.useMemo)((()=>{return!(e=n)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:Sp(e).brightness()}))).reduce((([e,t],n)=>[n.brightness<=e.brightness?n:e,n.brightness>=t.brightness?n:t]),[{brightness:1,color:""},{brightness:0,color:""}]).map((({color:e})=>e));var e}),[n]),f="unset"===s,p=(0,a.createElement)(n_.Option,{key:"unset",value:"unset",isSelected:f,tooltipText:(0,c.__)("Unset"),className:"components-duotone-picker__color-indicator",onClick:()=>{l(f?void 0:"unset")}}),m=r.map((({colors:e,slug:t,name:n})=>{const r={background:KI(e,"135deg"),color:"transparent"},o=null!=n?n:(0,c.sprintf)((0,c.__)("Duotone code: %s"),t),i=n?(0,c.sprintf)((0,c.__)("Duotone: %s"),n):o,u=Xl()(e,s);return(0,a.createElement)(n_.Option,{key:t,value:e,isSelected:u,"aria-label":i,tooltipText:o,style:r,onClick:()=>{l(u?void 0:e)}})}));return(0,a.createElement)(n_,{options:t?[p,...m]:m,actions:!!e&&(0,a.createElement)(n_.ButtonAction,{onClick:()=>l(void 0)},(0,c.__)("Clear"))},(0,a.createElement)(lh,{paddingTop:4},(0,a.createElement)(r_,{spacing:3},!o&&!i&&(0,a.createElement)(JI,{value:f?void 0:s,onChange:l}),!i&&(0,a.createElement)(XI,{labels:[(0,c.__)("Shadows"),(0,c.__)("Highlights")],colors:n,value:f?void 0:s,disableCustomColors:o,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=u),e[1]||(e[1]=d);const t=e.length>=2?e:void 0;l(t)}}))))};var eN=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const tN=sd(by,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});var nN=(0,a.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:i="",...s}=e,u=[...new Set([...i.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),d=l()("components-external-link",o),f=!!n?.startsWith("#");return(0,a.createElement)("a",{...s,className:d,href:n,onClick:t=>{f&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:u,ref:t},r,(0,a.createElement)(ud,{as:"span"},(0,c.__)("(opens in a new tab)")),(0,a.createElement)(tN,{icon:eN,className:"components-external-link__icon"}))}));const rN={width:200,height:170},oN=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function iN(e){return Math.round(100*e)}const aN=sd("div",{target:"eeew7dm8"})({name:"w0nf6b",styles:"background-color:transparent;text-align:center;width:100%"}),sN=sd("div",{target:"eeew7dm7"})({name:"megach",styles:"align-items:center;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),lN=sd("div",{target:"eeew7dm6"})("background:",Dp.gray[100],";box-sizing:border-box;height:",rN.height,"px;max-width:280px;min-width:",rN.width,"px;width:100%;"),cN=sd(M_,{target:"eeew7dm5"})({name:"1pzk433",styles:"width:100px"});var uN={name:"1mn7kwb",styles:"padding-bottom:1em"};const dN=({__nextHasNoMarginBottom:e})=>e?void 0:uN;var fN={name:"1mn7kwb",styles:"padding-bottom:1em"};const pN=({hasHelpText:e=!1})=>e?fN:void 0,mN=sd(hh,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",pN," ",dN,";"),hN=sd("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 120ms linear;z-index:1;opacity:",(({showOverlay:e})=>e?1:0),";"),gN=sd("div",{target:"eeew7dm2"})({name:"1d42i6k",styles:"background:white;box-shadow:0 0 2px rgba( 0, 0, 0, 0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 )"}),vN=sd(gN,{target:"eeew7dm1"})({name:"1qp910y",styles:"height:1px;left:0;right:0"}),bN=sd(gN,{target:"eeew7dm0"})({name:"1oz3zka",styles:"width:1px;top:0;bottom:0"}),yN=0,wN=100,xN=()=>{};function EN({__nextHasNoMarginBottom:e,hasHelpText:t,onChange:n=xN,point:r={x:.5,y:.5}}){const o=iN(r.x),i=iN(r.y),s=(e,t)=>{if(void 0===e)return;const o=parseInt(e,10);isNaN(o)||n({...r,[t]:o/100})};return(0,a.createElement)(mN,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:t},(0,a.createElement)(_N,{label:(0,c.__)("Left"),"aria-label":(0,c.__)("Focal point left position"),value:[o,"%"].join(""),onChange:e=>s(e,"x"),dragDirection:"e"}),(0,a.createElement)(_N,{label:(0,c.__)("Top"),"aria-label":(0,c.__)("Focal point top position"),value:[i,"%"].join(""),onChange:e=>s(e,"y"),dragDirection:"s"}))}function _N(e){return(0,a.createElement)(cN,{className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:wN,min:yN,units:[{value:"%",label:"%"}],...e})}const CN=sd("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:48px;margin:-24px 0 0 -24px;position:absolute;user-select:none;width:48px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.6 );border-radius:50%;backdrop-filter:blur( 4px );box-shadow:rgb( 0 0 0 / 20% ) 0px 0px 10px;",(({isDragging:e})=>e&&"cursor: grabbing;"),";");function SN({left:e="50%",top:t="50%",...n}){const r=l()("components-focal-point-picker__icon_container"),o={left:e,top:t};return(0,a.createElement)(CN,{...n,className:r,style:o})}function kN({bounds:e,...t}){return(0,a.createElement)(hN,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height}},(0,a.createElement)(vN,{style:{top:"33%"}}),(0,a.createElement)(vN,{style:{top:"66%"}}),(0,a.createElement)(bN,{style:{left:"33%"}}),(0,a.createElement)(bN,{style:{left:"66%"}}))}function TN({alt:e,autoPlay:t,src:n,onLoad:r,mediaRef:o,muted:i=!0,...s}){if(!n)return(0,a.createElement)(lN,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:o,...s});return function(e=""){return!!e&&(e.startsWith("data:video/")||oN.includes(function(e=""){const t=e.split(".");return t[t.length-1]}(e)))}(n)?(0,a.createElement)("video",{...s,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:i,onLoadedData:r,ref:o,src:n}):(0,a.createElement)("img",{...s,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:r,ref:o,src:n})}var RN=function e({__nextHasNoMarginBottom:t,autoPlay:n=!0,className:r,help:o,label:i,onChange:s,onDrag:d,onDragEnd:f,onDragStart:p,resolvePoint:m,url:h,value:g={x:.5,y:.5},...v}){const[b,y]=(0,a.useState)(g),[w,x]=(0,a.useState)(!1),{startDrag:E,endDrag:_,isDragging:C}=(0,u.__experimentalUseDragging)({onDragStart:e=>{T.current?.focus();const t=I(e);t&&(p?.(t,e),y(t))},onDragMove:e=>{e.preventDefault();const t=I(e);t&&(d?.(t,e),y(t))},onDragEnd:()=>{f?.(),s?.(b)}}),{x:S,y:k}=C?b:g,T=(0,a.useRef)(null),[R,P]=(0,a.useState)(rN),M=(0,a.useRef)((()=>{if(!T.current)return;const{clientWidth:e,clientHeight:t}=T.current;P(e>0&&t>0?{width:e,height:t}:{...rN})}));(0,a.useEffect)((()=>{const e=M.current;if(!T.current)return;const{defaultView:t}=T.current.ownerDocument;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)}),[]),(0,u.useIsomorphicLayoutEffect)((()=>{M.current()}),[]);const I=({clientX:e,clientY:t,shiftKey:n})=>{if(!T.current)return;const{top:r,left:o}=T.current.getBoundingClientRect();let i=(e-o)/R.width,a=(t-r)/R.height;return n&&(i=.1*Math.round(i/.1),a=.1*Math.round(a/.1)),N({x:i,y:a})},N=e=>{var t;const n=null!==(t=m?.(e))&&void 0!==t?t:e;n.x=Math.max(0,Math.min(n.x,1)),n.y=Math.max(0,Math.min(n.y,1));const r=e=>Math.round(100*e)/100;return{x:r(n.x),y:r(n.y)}},O={left:S*R.width,top:k*R.height},D=l()("components-focal-point-picker-control",r),A=`inspector-focal-point-picker-control-${(0,u.useInstanceId)(e)}`;return Ql((()=>{x(!0);const e=window.setTimeout((()=>{x(!1)}),600);return()=>window.clearTimeout(e)}),[S,k]),(0,a.createElement)(jv,{...v,__nextHasNoMarginBottom:t,label:i,id:A,help:o,className:D},(0,a.createElement)(aN,{className:"components-focal-point-picker-wrapper"},(0,a.createElement)(sN,{className:"components-focal-point-picker",onKeyDown:e=>{const{code:t,shiftKey:n}=e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t))return;e.preventDefault();const r={x:S,y:k},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,a="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[a]=r[a]+i,s?.(N(r))},onMouseDown:E,onBlur:()=>{C&&_()},ref:T,role:"button",tabIndex:-1},(0,a.createElement)(kN,{bounds:R,showOverlay:w}),(0,a.createElement)(TN,{alt:(0,c.__)("Media preview"),autoPlay:n,onLoad:M.current,src:h}),(0,a.createElement)(SN,{...O,isDragging:C}))),(0,a.createElement)(EN,{__nextHasNoMarginBottom:t,hasHelpText:!!o,point:{x:S,y:k},onChange:e=>{s?.(N(e))}}))};function PN({iframeRef:e,...t}){const n=(0,u.useMergeRefs)([e,(0,u.useFocusableIframe)()]);return $l()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,a.createElement)("iframe",{ref:n,...t})}var MN=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));function IN(e){const[t,...n]=e;if(!t)return null;const[,r]=E_(t.size);return n.every((e=>{const[,t]=E_(e.size);return t===r}))?r:null}const NN=sd("fieldset",{target:"e8tqeku5"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),ON=sd(rb,{target:"e8tqeku4"})("height:",Jm(4),";"),DN=sd(pd,{target:"e8tqeku3"})("margin-top:",Jm(-1),";"),AN=sd(jv.VisualLabel,{target:"e8tqeku2"})("display:flex;gap:",Jm(1),";justify-content:flex-start;margin-bottom:0;"),LN=sd("span",{target:"e8tqeku1"})("color:",Dp.gray[700],";"),zN=sd("div",{target:"e8tqeku0"})((e=>!e.__nextHasNoMarginBottom&&`margin-bottom: ${Jm(6)};`),";"),FN={key:"default",name:(0,c.__)("Default"),value:void 0},BN={key:"custom",name:(0,c.__)("Custom")};var jN=e=>{var t;const{fontSizes:n,value:r,disableCustomFontSizes:o,size:i,onChange:s,onSelectCustom:l}=e,u=!!IN(n),d=[FN,...n.map((e=>{let t;if(u){const[n]=E_(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...o?[]:[BN]],f=r?null!==(t=d.find((e=>e.value===r)))&&void 0!==t?t:BN:FN;return(0,a.createElement)(wP,{__nextUnconstrainedWidth:!0,className:"components-font-size-picker__select",label:(0,c.__)("Font size"),hideLabelFromVision:!0,describedBy:(0,c.sprintf)((0,c.__)("Currently selected font size: %s"),f.name),options:d,value:f,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===BN?l():s(e.value)},size:i})};const VN=e=>{const t=Zf("border-color:",Dp.ui.border,";","");return Zf(e&&t," &:hover{border-color:",Dp.ui.borderHover,";}&:focus-within{border-color:",Dp.ui.borderFocus,";box-shadow:",Nh.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")},HN=e=>Zf("min-height:",{default:"36px","__unstable-large":"40px"}[e],";",""),$N={name:"7whenc",styles:"display:flex;width:100%"},WN=sd("div",{target:"eakva831"})("background:",Dp.gray[900],";border-radius:",Nh.controlBorderRadius,";left:0;position:absolute;top:2px;bottom:2px;transition:transform ",Nh.transitionDurationFast," ease;",Ap("transition")," z-index:1;outline:2px solid transparent;outline-offset:-3px;"),UN=sd("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function GN(e){void 0===e&&(e={});var t=Wp(e),n=t.state,r=t.loop,o=void 0===r||r,i=m(t,["state","loop"]),a=(0,v.useState)(n),s=a[0],l=a[1],c=fm(p(p({},i),{},{loop:o}));return p(p({},c),{},{state:s,setState:l})}var KN=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","state","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","setState"],qN=[].concat(KN,["value","checked","unstable_checkOnFocus"]),YN=z({as:"div",useHook:B({name:"RadioGroup",compose:wm,keys:KN,useProps:function(e,t){return p({role:"radiogroup"},t)}}),useCreateElement:function(e,t,n){return R(e,t,n)}});var XN=(0,a.memo)((function({containerRef:e,containerWidth:t,isAdaptiveWidth:n,state:r}){const[o,i]=(0,a.useState)(0),[s,l]=(0,a.useState)(0),[c,u]=(0,a.useState)(!1),[d,f]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{const t=e?.current;if(!t)return;const n=t.querySelector(`[data-value="${r}"]`);if(f(!!n),!n)return;const o=window.setTimeout((()=>{const{width:e,x:r}=n.getBoundingClientRect(),{x:o}=t.getBoundingClientRect();i(r-o-1),l(e)}),100);let a;return c||(a=window.requestAnimationFrame((()=>{u(!0)}))),()=>{window.clearTimeout(o),window.cancelAnimationFrame(a)}}),[c,e,t,r,n]),d?(0,a.createElement)(WN,{role:"presentation",style:{transform:`translateX(${o}px)`,transition:c?void 0:"none",width:s}}):null}));const ZN=(0,a.createContext)({});var JN=ZN;const QN=(0,a.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,...s},l){const c=(0,a.useRef)(),[d,f]=(0,u.useResizeObserver)(),p=GN({baseId:(0,u.useInstanceId)(QN,"toggle-group-control-as-radio-group").toString(),state:i}),m=(0,u.usePrevious)(i);return Ql((()=>{m!==p.state&&r(p.state)}),[p.state]),Ql((()=>{i!==p.state&&p.setState(i)}),[i]),(0,a.createElement)(JN.Provider,{value:{...p,isBlock:!t,size:o}},(0,a.createElement)(YN,{...p,"aria-label":n,as:cd,...s,ref:(0,u.useMergeRefs)([c,l])},d,(0,a.createElement)(XN,{state:p.state,containerRef:c,containerWidth:f.width,isAdaptiveWidth:t}),e))}));const eO=(0,a.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,...s},l){const c=(0,a.useRef)(),[d,f]=(0,u.useResizeObserver)(),p=(0,u.useInstanceId)(eO,"toggle-group-control-as-button-group").toString(),[m,h]=(0,a.useState)(i),g={baseId:p,state:m,setState:h},v=(0,u.usePrevious)(i);return Ql((()=>{v!==g.state&&r(g.state)}),[g.state]),Ql((()=>{i!==g.state&&g.setState(i)}),[i]),(0,a.createElement)(JN.Provider,{value:{...g,isBlock:!t,isDeselectable:!0,size:o}},(0,a.createElement)(cd,{"aria-label":n,...s,ref:(0,u.useMergeRefs)([c,l]),role:"group"},d,(0,a.createElement)(XN,{state:g.state,containerRef:c,containerWidth:f.width,isAdaptiveWidth:t}),e))})),tO=()=>{};const nO=Ku((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,isAdaptiveWidth:o=!1,isBlock:i=!1,isDeselectable:s=!1,label:l,hideLabelFromVision:c=!1,help:u,onChange:d=tO,size:f="default",value:p,children:m,...h}=Gu(e,"ToggleGroupControl"),g=Uu(),v=(0,a.useMemo)((()=>g((({isBlock:e,isDeselectable:t,size:n})=>Zf("background:",Dp.ui.background,";border:1px solid transparent;border-radius:",Nh.controlBorderRadius,";display:inline-flex;min-width:0;padding:2px;position:relative;transition:transform ",Nh.transitionDurationFastest," linear;",Ap("transition")," ",HN(n)," ",!t&&VN(e),";",""))({isBlock:i,isDeselectable:s,size:f}),i&&$N,r)),[r,g,i,s,f]),b=s?eO:QN;return(0,a.createElement)(jv,{help:u,__nextHasNoMarginBottom:n},!c&&(0,a.createElement)(UN,null,(0,a.createElement)(jv.VisualLabel,null,l)),(0,a.createElement)(b,{...h,children:m,className:v,isAdaptiveWidth:o,label:l,onChange:d,ref:t,size:f,value:p}))}),"ToggleGroupControl");var rO=nO;function oO(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function iO(e,t){var n=Ee(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}var aO=B({name:"Radio",compose:Se,keys:qN,useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,s=e.unstable_checkOnFocus,l=void 0===s||s,c=m(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return p(p({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:l},c),{},{value:null!=(n=c.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=m(t,["ref","onChange","onClick"]),a=(0,v.useRef)(null),s=(0,v.useState)(!0),l=s[0],c=s[1],u=oO(e),d=G(e.currentId===e.id),f=G(r),h=G(o);!function(e){var t=(0,v.useState)((function(){return oO(e)}))[0],n=(0,v.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;(0,v.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),(0,v.useEffect)((function(){var e=a.current;e&&("INPUT"===e.tagName&&"radio"===e.type||c(!1))}),[]);var g=(0,v.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),b=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),e.defaultPrevented||l||iO(e.currentTarget,g)}),[g,l]);return(0,v.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&iO(t,g)}),[e.unstable_moves,e.unstable_checkOnFocus,g]),p({ref:V(a,n),role:l?void 0:"radio",type:l?"radio":void 0,value:l?e.value:void 0,name:l?e.baseId:void 0,"aria-checked":u,checked:u,onChange:g,onClick:b},i)}}),sO=z({as:"input",memo:!0,useHook:aO});const lO=sd("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),cO={name:"82a6rk",styles:"flex:1"},uO=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>Zf("align-items:center;appearance:none;background:transparent;border:none;border-radius:",Nh.controlBorderRadius,";color:",Dp.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;transition:background ",Nh.transitionDurationFast," linear,color ",Nh.transitionDurationFast," linear,font-weight 60ms linear;",Ap("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",Nh.toggleGroupControlBackgroundColor,";}",e&&fO," ",t&&mO({size:r})," ",n&&dO,";",""),dO=Zf("color:",Dp.white,";&:active{background:transparent;}",""),fO=Zf("color:",Dp.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",Dp.white,",0 0 0 ",Nh.borderWidthFocus," ",Dp.ui.theme,";outline:2px solid transparent;}",""),pO=sd("div",{target:"et6ln9s0"})("display:flex;font-size:",Nh.fontSize,";line-height:1;"),mO=({size:e="default"})=>Zf("color:",Dp.gray[900],";width:",{default:"30px","__unstable-large":"34px"}[e],";padding-left:0;padding-right:0;",""),{ButtonContentView:hO,LabelView:gO}=n,vO=({showTooltip:e,text:t,children:n})=>e&&t?(0,a.createElement)(Uf,{text:t,position:"top center"},n):(0,a.createElement)(a.Fragment,null,n);const bO=Ku((function e(t,n){const r=(0,a.useContext)(ZN),o=Gu({...t,id:(0,u.useInstanceId)(e,r.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:i=!1,isDeselectable:s=!1,size:l="default",...c}=r,{className:d,isIcon:f=!1,value:p,children:m,showTooltip:h=!1,...g}=o,v=c.state===p,b=Uu(),y=b(i&&cO),w=b(uO({isDeselectable:s,isIcon:f,isPressed:v,size:l}),d),x={...g,className:w,"data-value":p,ref:n};return(0,a.createElement)(gO,{className:y},(0,a.createElement)(vO,{showTooltip:h,text:g["aria-label"]},s?(0,a.createElement)("button",{...x,"aria-pressed":v,type:"button",onClick:()=>{s&&v?c.setState(void 0):c.setState(p)}},(0,a.createElement)(hO,null,m)):(0,a.createElement)(sO,{...x,...c,as:"button",value:p},(0,a.createElement)(hO,null,m))))}),"ToggleGroupControlOptionBase");var yO=bO;var wO=(0,a.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,a.createElement)(yO,{...r,"aria-label":o,ref:t},n)}));const xO=[(0,c.__)("S"),(0,c.__)("M"),(0,c.__)("L"),(0,c.__)("XL"),(0,c.__)("XXL")],EO=[(0,c.__)("Small"),(0,c.__)("Medium"),(0,c.__)("Large"),(0,c.__)("Extra Large"),(0,c.__)("Extra Extra Large")];var _O=e=>{const{fontSizes:t,value:n,__nextHasNoMarginBottom:r,size:o,onChange:i}=e;return(0,a.createElement)(rO,{__nextHasNoMarginBottom:r,label:(0,c.__)("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o},t.map(((e,t)=>(0,a.createElement)(wO,{key:e.slug,value:e.size,label:xO[t],"aria-label":e.name||EO[t],showTooltip:!0}))))};const CO=(0,a.forwardRef)(((e,t)=>{const{__nextHasNoMarginBottom:n=!1,fallbackFontSize:r,fontSizes:o=[],disableCustomFontSizes:i=!1,onChange:s,size:l="default",units:u,value:d,withSlider:f=!1,withReset:p=!0}=e;n||$l()("Bottom margin styles for wp.components.FontSizePicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const m=__({availableUnits:u||["px","em","rem"]}),h=o.length>5,g=o.find((e=>e.size===d)),v=!!d&&!g,[b,y]=(0,a.useState)(!i&&v),w=(0,a.useMemo)((()=>{if(b)return(0,c.__)("Custom");if(!h)return g?g.name||EO[o.indexOf(g)]:"";const e=IN(o);return e?`(${e})`:""}),[b,h,g,o]);if(0===o.length&&i)return null;const x="string"==typeof d||"string"==typeof o[0]?.size,[E,_]=E_(d,m),C=!!_&&["em","rem"].includes(_);return(0,a.createElement)(NN,{ref:t,className:"components-font-size-picker"},(0,a.createElement)(ud,{as:"legend"},(0,c.__)("Font size")),(0,a.createElement)(lh,null,(0,a.createElement)(ON,{className:"components-font-size-picker__header"},(0,a.createElement)(AN,{"aria-label":`${(0,c.__)("Size")} ${w||""}`},(0,c.__)("Size"),w&&(0,a.createElement)(LN,{className:"components-font-size-picker__header__hint"},w)),!i&&(0,a.createElement)(DN,{label:b?(0,c.__)("Use size preset"):(0,c.__)("Set custom size"),icon:MN,onClick:()=>{y(!b)},isPressed:b,isSmall:!0}))),(0,a.createElement)(zN,{className:"components-font-size-picker__controls",__nextHasNoMarginBottom:n},!!o.length&&h&&!b&&(0,a.createElement)(jN,{fontSizes:o,value:d,disableCustomFontSizes:i,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(x?e:Number(e),o.find((t=>t.size===e)))},onSelectCustom:()=>y(!0)}),!h&&!b&&(0,a.createElement)(_O,{fontSizes:o,value:d,__nextHasNoMarginBottom:n,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(x?e:Number(e),o.find((t=>t.size===e)))}}),!i&&b&&(0,a.createElement)(hh,{className:"components-font-size-picker__custom-size-control"},(0,a.createElement)(gh,{isBlock:!0},(0,a.createElement)(M_,{label:(0,c.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:d,onChange:e=>{s?.(void 0===e?void 0:x?e:parseInt(e,10))},size:l,units:x?m:[],min:0})),f&&(0,a.createElement)(gh,{isBlock:!0},(0,a.createElement)(lh,{marginX:2,marginBottom:0},(0,a.createElement)(ew,{__nextHasNoMarginBottom:n,className:"components-font-size-picker__custom-input",label:(0,c.__)("Custom Size"),hideLabelFromVision:!0,value:E,initialPosition:r,withInputField:!1,onChange:e=>{s?.(void 0===e?void 0:x?e+(null!=_?_:"px"):e)},min:0,max:C?10:100,step:C?.1:1}))),p&&(0,a.createElement)(gh,null,(0,a.createElement)(fd,{disabled:void 0===d,onClick:()=>{s?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"!==l?"small":"default"},(0,c.__)("Reset"))))))}));var SO=CO;var kO=function({accept:e,children:t,multiple:n=!1,onChange:r,onClick:o,render:i,...s}){const l=(0,a.useRef)(null),c=()=>{l.current?.click()},u=i?i({openFileDialog:c}):(0,a.createElement)(pd,{onClick:c,...s},t);return(0,a.createElement)("div",{className:"components-form-file-upload"},u,(0,a.createElement)("input",{type:"file",ref:l,multiple:n,style:{display:"none"},accept:e,onChange:r,onClick:o,"data-testid":"form-file-upload-input"}))};const TO=()=>{};var RO=function(e){const{className:t,checked:n,id:r,disabled:o,onChange:i=TO,...s}=e,c=l()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return(0,a.createElement)("span",{className:c},(0,a.createElement)("input",{className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i,disabled:o,...s}),(0,a.createElement)("span",{className:"components-form-toggle__track"}),(0,a.createElement)("span",{className:"components-form-toggle__thumb"}))};const PO=()=>{};function MO({value:e,status:t,title:n,displayTransform:r,isBorderless:o=!1,disabled:i=!1,onClickRemove:s=PO,onMouseEnter:d,onMouseLeave:f,messages:p,termPosition:m,termsCount:h}){const g=(0,u.useInstanceId)(MO),v=l()("components-form-token-field__token",{"is-error":"error"===t,"is-success":"success"===t,"is-validating":"validating"===t,"is-borderless":o,"is-disabled":i}),b=r(e),y=(0,c.sprintf)((0,c.__)("%1$s (%2$s of %3$s)"),b,m,h);return(0,a.createElement)("span",{className:v,onMouseEnter:d,onMouseLeave:f,title:n},(0,a.createElement)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${g}`},(0,a.createElement)(ud,{as:"span"},y),(0,a.createElement)("span",{"aria-hidden":"true"},b)),(0,a.createElement)(pd,{className:"components-form-token-field__remove-token",icon:Bb,onClick:i?void 0:()=>s({value:e}),label:p.remove,"aria-describedby":`components-form-token-field__token-text-${g}`}))}const IO=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&Zf("padding-top:",Jm(t?1:.5),";padding-bottom:",Jm(t?1:.5),";",""),NO=sd(hh,{target:"ehq8nmi0"})("padding:7px;",IO,";"),OO=e=>e;var DO=function e(t){const{autoCapitalize:n,autoComplete:r,maxLength:o,placeholder:i,label:s=(0,c.__)("Add item"),className:d,suggestions:f=[],maxSuggestions:p=100,value:m=[],displayTransform:h=OO,saveTransform:g=(e=>e.trim()),onChange:v=(()=>{}),onInputChange:b=(()=>{}),onFocus:y,isBorderless:w=!1,disabled:x=!1,tokenizeOnSpace:E=!1,messages:_={added:(0,c.__)("Item added."),removed:(0,c.__)("Item removed."),remove:(0,c.__)("Remove item"),__experimentalInvalid:(0,c.__)("Invalid item")},__experimentalRenderItem:C,__experimentalExpandOnFocus:S=!1,__experimentalValidateInput:k=(()=>!0),__experimentalShowHowTo:T=!0,__next40pxDefaultSize:R=!1,__experimentalAutoSelectFirstMatch:P=!1,__nextHasNoMarginBottom:M=!1}=AT(t,"wp.components.FormTokenField"),I=(0,u.useInstanceId)(e),[N,O]=(0,a.useState)(""),[D,A]=(0,a.useState)(0),[L,z]=(0,a.useState)(!1),[F,B]=(0,a.useState)(!1),[j,V]=(0,a.useState)(-1),[H,$]=(0,a.useState)(!1),W=(0,u.usePrevious)(f),U=(0,u.usePrevious)(m),G=(0,a.useRef)(null),K=(0,a.useRef)(null),q=(0,u.useDebounce)(bb.speak,500);function Y(){G.current?.focus()}function X(){return G.current===G.current?.ownerDocument.activeElement}function Z(){fe()&&k(N)?z(!1):(O(""),A(0),z(!1),B(!1),V(-1),$(!1))}function J(e){e.target===K.current&&L&&e.preventDefault()}function Q(e){se(e.value),Y()}function ee(e){const t=e.value,n=E?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&ie(r.slice(0,-1)),O(o),b(o)}function te(e){let t=!1;return X()&&de()&&(e(),t=!0),t}function ne(){const e=ue()-1;e>-1&&se(m[e])}function re(){const e=ue();e<m.length&&(se(m[e]),function(e){A(m.length-Math.max(e,-1)-1)}(e))}function oe(){let e=!1;const t=function(){if(-1!==j)return ce()[j];return}();return t?(ae(t),e=!0):fe()&&(ae(N),e=!0),e}function ie(e){const t=[...new Set(e.map(g).filter(Boolean).filter((e=>!function(e){return m.some((t=>le(e)===le(t)))}(e))))];if(t.length>0){const e=[...m];e.splice(ue(),0,...t),v(e)}}function ae(e){k(e)?(ie([e]),(0,bb.speak)(_.added,"assertive"),O(""),V(-1),$(!1),B(!S),L&&Y()):(0,bb.speak)(_.__experimentalInvalid,"assertive")}function se(e){const t=m.filter((t=>le(t)!==le(e)));v(t),(0,bb.speak)(_.removed,"assertive")}function le(e){return"object"==typeof e?e.value:e}function ce(e=N,t=f,n=m,r=p,o=g){let i=o(e);const a=[],s=[],l=n.map((e=>"string"==typeof e?e:e.value));return 0===i.length?t=t.filter((e=>!l.includes(e))):(i=i.toLocaleLowerCase(),t.forEach((e=>{const t=e.toLocaleLowerCase().indexOf(i);-1===l.indexOf(e)&&(0===t?a.push(e):t>0&&s.push(e))})),t=a.concat(s)),t.slice(0,r)}function ue(){return m.length-D}function de(){return 0===N.length}function fe(){return g(N).length>0}function pe(e=!0){const t=N.trim().length>1,n=ce(N),r=n.length>0,o=X()&&S;if(B(o||t&&r),e&&(P&&t&&r?(V(0),$(!0)):(V(-1),$(!1))),t){const e=r?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",n.length),n.length):(0,c.__)("No results.");q(e,"assertive")}}function me(e,t,n){const r=le(e),o="string"!=typeof e?e.status:void 0,i=t+1,s=n.length;return(0,a.createElement)(gh,{key:"token-"+r},(0,a.createElement)(MO,{value:r,status:o,title:"string"!=typeof e?e.title:void 0,displayTransform:h,onClickRemove:Q,isBorderless:"string"!=typeof e&&e.isBorderless||w,onMouseEnter:"string"!=typeof e?e.onMouseEnter:void 0,onMouseLeave:"string"!=typeof e?e.onMouseLeave:void 0,disabled:"error"!==o&&x,messages:_,termsCount:s,termPosition:i}))}(0,a.useEffect)((()=>{L&&!X()&&Y()}),[L]),(0,a.useEffect)((()=>{const e=!bf()(f,W||[]);(e||m!==U)&&pe(e)}),[f,W,m,U]),(0,a.useEffect)((()=>{pe()}),[N]),(0,a.useEffect)((()=>{pe()}),[P]),x&&L&&(z(!1),O(""));const he=l()(d,"components-form-token-field__input-container",{"is-active":L,"is-disabled":x});let ge={className:"components-form-token-field",tabIndex:-1};const ve=ce();return x||(ge=Object.assign({},ge,{onKeyDown:function(e){let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.key){case"Backspace":t=te(ne);break;case"Enter":t=oe();break;case"ArrowLeft":t=function(){let e=!1;return de()&&(A((e=>Math.min(e+1,m.length))),e=!0),e}();break;case"ArrowUp":V((e=>(0===e?ce(N,f,m,p,g).length:e)-1)),$(!0),t=!0;break;case"ArrowRight":t=function(){let e=!1;return de()&&(A((e=>Math.max(e-1,0))),e=!0),e}();break;case"ArrowDown":V((e=>(e+1)%ce(N,f,m,p,g).length)),$(!0),t=!0;break;case"Delete":t=te(re);break;case"Space":E&&(t=oe());break;case"Escape":t=function(e){return e.target instanceof HTMLInputElement&&(O(e.target.value),B(!1),V(-1),$(!1)),!0}(e)}t&&e.preventDefault()}},onKeyPress:function(e){let t=!1;","===e.key&&(fe()&&ae(N),t=!0);t&&e.preventDefault()},onFocus:function(e){X()||e.target===K.current?(z(!0),B(S||F)):z(!1),"function"==typeof y&&y(e)}})),(0,a.createElement)("div",{...ge},(0,a.createElement)(Av,{htmlFor:`components-form-token-input-${I}`,className:"components-form-token-field__label"},s),(0,a.createElement)("div",{ref:K,className:he,tabIndex:-1,onMouseDown:J,onTouchStart:J},(0,a.createElement)(NO,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:R,hasTokens:!!m.length},function(){const e=m.map(me);return e.splice(ue(),0,function(){const e={instanceId:I,autoCapitalize:n,autoComplete:r,placeholder:0===m.length?i:"",key:"input",disabled:x,value:N,onBlur:Z,isExpanded:F,selectedSuggestionIndex:j};return(0,a.createElement)(PT,{...e,onChange:o&&m.length>=o?void 0:ee,ref:G})}()),e}()),F&&(0,a.createElement)(OT,{instanceId:I,match:g(N),displayTransform:h,suggestions:ve,selectedIndex:j,scrollIntoView:H,onHover:function(e){const t=ce().indexOf(e);t>=0&&(V(t),$(!1))},onSelect:function(e){ae(e)},__experimentalRenderItem:C})),!M&&(0,a.createElement)(lh,{marginBottom:2}),T&&(0,a.createElement)(zv,{id:`components-form-token-suggestions-howto-${I}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:M},E?(0,c.__)("Separate with commas, spaces, or the Enter key."):(0,c.__)("Separate with commas or the Enter key.")))};const AO=()=>(0,a.createElement)(r.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Circle,{cx:"4",cy:"4",r:"4"}));function LO({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,a.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,c.__)("Guide controls")},Array.from({length:t}).map(((r,o)=>(0,a.createElement)("li",{key:o,"aria-current":o===e?"step":void 0},(0,a.createElement)(pd,{key:o,icon:(0,a.createElement)(AO,null),"aria-label":(0,c.sprintf)((0,c.__)("Page %1$d of %2$d"),o+1,t),onClick:()=>n(o)})))))}var zO=function({children:e,className:t,contentLabel:n,finishButtonText:r=(0,c.__)("Finish"),onFinish:o,pages:i=[]}){const s=(0,a.useRef)(null),[u,d]=(0,a.useState)(0);var f;(0,a.useEffect)((()=>{const e=s.current?.querySelector(".components-guide");e instanceof HTMLElement&&e.focus()}),[u]),(0,a.useEffect)((()=>{a.Children.count(e)&&$l()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})}),[e]),a.Children.count(e)&&(i=null!==(f=a.Children.map(e,(e=>({content:e}))))&&void 0!==f?f:[]);const p=u>0,m=u<i.length-1,h=()=>{p&&d(u-1)},g=()=>{m&&d(u+1)};return 0===i.length?null:(0,a.createElement)(GT,{className:l()("components-guide",t),contentLabel:n,isDismissible:i.length>1,onRequestClose:o,onKeyDown:e=>{"ArrowLeft"===e.code?(h(),e.preventDefault()):"ArrowRight"===e.code&&(g(),e.preventDefault())},ref:s},(0,a.createElement)("div",{className:"components-guide__container"},(0,a.createElement)("div",{className:"components-guide__page"},i[u].image,i.length>1&&(0,a.createElement)(LO,{currentPage:u,numberOfPages:i.length,setCurrentPage:d}),i[u].content),(0,a.createElement)("div",{className:"components-guide__footer"},p&&(0,a.createElement)(pd,{className:"components-guide__back-button",variant:"tertiary",onClick:h},(0,c.__)("Previous")),m&&(0,a.createElement)(pd,{className:"components-guide__forward-button",variant:"primary",onClick:g},(0,c.__)("Next")),!m&&(0,a.createElement)(pd,{className:"components-guide__finish-button",variant:"primary",onClick:o},r))))};function FO(e){return(0,a.useEffect)((()=>{$l()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})}),[]),(0,a.createElement)("div",{...e})}var BO=(0,a.forwardRef)((function({label:e,labelPosition:t,size:n,tooltip:r,...o},i){return $l()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,a.createElement)(pd,{...o,ref:i,tooltipPosition:t,iconSize:n,showTooltip:void 0!==r?!!r:void 0,label:r||e})}));const jO=Ku((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...s}=Gu(e,"Item"),{spacedAround:l,size:c}=mk(),u=i||c,d=t||(void 0!==r?"button":"div"),f=Uu(),p=(0,a.useMemo)((()=>f("button"===d&&ek,fk[u]||fk.medium,nk,l&&ak,n)),[d,n,f,u,l]),m=f(tk);return{as:d,className:p,onClick:r,wrapperClassName:m,role:o,...s}}(e);return(0,a.createElement)("div",{role:n,className:r},(0,a.createElement)(cd,{...o,ref:t}))}),"Item");var VO=jO;var HO=Ku((function(e,t){const n=Gu(e,"InputControlPrefixWrapper");return(0,a.createElement)(lh,{marginBottom:0,...n,ref:t})}),"InputControlPrefixWrapper");function $O({target:e,callback:t,shortcut:n,bindGlobal:r,eventName:o}){return(0,u.useKeyboardShortcut)(n,t,{bindGlobal:r,target:e,eventName:o}),null}var WO=function({children:e,shortcuts:t,bindGlobal:n,eventName:r}){const o=(0,a.useRef)(null),i=Object.entries(null!=t?t:{}).map((([e,t])=>(0,a.createElement)($O,{key:e,shortcut:e,callback:t,bindGlobal:n,eventName:r,target:o})));return a.Children.count(e)?(0,a.createElement)("div",{ref:o},i,e):(0,a.createElement)(a.Fragment,null,i)};var UO=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,s=(0,u.useInstanceId)(e);if(!a.Children.count(n))return null;const c=`components-menu-group-label-${s}`,d=l()(r,"components-menu-group",{"has-hidden-separator":i});return(0,a.createElement)("div",{className:d},o&&(0,a.createElement)("div",{className:"components-menu-group__label",id:c,"aria-hidden":"true"},o),(0,a.createElement)("div",{role:"group","aria-labelledby":o?c:void 0},n))};var GO=(0,a.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:i,iconPosition:s="right",shortcut:c,isSelected:u,role:d="menuitem",suffix:f,...p}=e;return o=l()("components-menu-item__button",o),r&&(n=(0,a.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,a.createElement)("span",{className:"components-menu-item__item"},n),(0,a.createElement)("span",{className:"components-menu-item__info"},r))),i&&"string"!=typeof i&&(i=(0,a.cloneElement)(i,{className:l()("components-menu-items__item-icon",{"has-icon-right":"right"===s})})),(0,a.createElement)(pd,{ref:t,"aria-checked":"menuitemcheckbox"===d||"menuitemradio"===d?u:void 0,role:d,icon:"left"===s?i:void 0,className:o,...p},(0,a.createElement)("span",{className:"components-menu-item__item"},n),!f&&(0,a.createElement)(Bf,{className:"components-menu-item__shortcut",shortcut:c}),!f&&i&&"right"===s&&(0,a.createElement)(Gl,{icon:i}),f)}));const KO=()=>{};var qO=function({choices:e=[],onHover:t=KO,onSelect:n,value:r}){return(0,a.createElement)(a.Fragment,null,e.map((e=>{const o=r===e.value;return(0,a.createElement)(GO,{key:e.value,role:"menuitemradio",icon:o&&e_,info:e.info,isSelected:o,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{o||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"]},e.label)})))};var YO=(0,a.forwardRef)((function({eventToOffset:e,...t},n){return(0,a.createElement)(tT,{ref:n,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:t=>{const{code:n,shiftKey:r}=t;return"Tab"===n?r?-1:1:e?e(t):void 0},...t})}));const XO="root",ZO=100,JO=()=>{},QO=()=>{},eD=(0,a.createContext)({activeItem:void 0,activeMenu:XO,setActiveMenu:JO,navigationTree:{items:{},getItem:QO,addItem:JO,removeItem:JO,menus:{},getMenu:QO,addMenu:JO,removeMenu:JO,childMenu:{},traverseMenu:JO,isMenuEmpty:()=>!1}}),tD=()=>(0,a.useContext)(eD);var nD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));const rD=(0,a.forwardRef)((function({__nextHasNoMarginBottom:e,className:t,onChange:n,onKeyDown:r,value:o,label:i,placeholder:s=(0,c.__)("Search"),hideLabelFromVision:d=!0,help:f,onClose:p,...m},h){const g=(0,a.useRef)(),v=`components-search-control-${(0,u.useInstanceId)(rD)}`;return(0,a.createElement)(jv,{__nextHasNoMarginBottom:e,label:i,id:v,hideLabelFromVision:d,help:f,className:l()(t,"components-search-control")},(0,a.createElement)("div",{className:"components-search-control__input-wrapper"},(0,a.createElement)("input",{...m,ref:(0,u.useMergeRefs)([g,h]),className:"components-search-control__input",id:v,type:"search",placeholder:s,onChange:e=>n(e.target.value),onKeyDown:r,autoComplete:"off",value:o||""}),(0,a.createElement)("div",{className:"components-search-control__icon"},p?(0,a.createElement)(pd,{icon:Bb,label:(0,c.__)("Close search"),onClick:p}):o?(0,a.createElement)(pd,{icon:Bb,label:(0,c.__)("Reset search"),onClick:()=>{n(""),g.current?.focus()}}):(0,a.createElement)(by,{icon:nD}))))}));var oD=rD;const iD=sd("div",{target:"eeiismy11"})("width:100%;box-sizing:border-box;padding:0 ",Jm(4),";overflow:hidden;"),aD=sd("div",{target:"eeiismy10"})("margin-top:",Jm(6),";margin-bottom:",Jm(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",Jm(6),";}.components-navigation__group+.components-navigation__group{margin-top:",Jm(6),";}"),sD=sd(pd,{target:"eeiismy9"})({name:"26l0q2",styles:"&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"}),lD=sd("div",{target:"eeiismy8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),cD=sd("span",{target:"eeiismy7"})("height:",Jm(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",Jm(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),uD=sd(oD,{target:"eeiismy6"})({name:"za3n3e",styles:"input[type='search'].components-search-control__input{margin:0;background:#303030;color:#fff;&:focus{background:#434343;color:#fff;}&::placeholder{color:rgba( 255, 255, 255, 0.6 );}}svg{fill:white;}.components-button.has-icon{padding:0;min-width:auto;}"}),dD=sd(i_,{target:"eeiismy5"})("min-height:",Jm(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",Jm(2),";padding:",(()=>(0,c.isRTL)()?`${Jm(1)} ${Jm(4)} ${Jm(1)} ${Jm(2)}`:`${Jm(1)} ${Jm(2)} ${Jm(1)} ${Jm(4)}`),";"),fD=sd("li",{target:"eeiismy4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",Jm(2)," ",Jm(4),";",ih({textAlign:"left"},{textAlign:"right"})," &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:",Dp.ui.theme,";color:",Dp.white,";>button,>a{color:",Dp.white,";opacity:1;}}>svg path{color:",Dp.gray[600],";}"),pD=sd("div",{target:"eeiismy3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",Jm(1.5)," ",Jm(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),mD=sd("span",{target:"eeiismy2"})("display:flex;margin-right:",Jm(2),";"),hD=sd("span",{target:"eeiismy1"})("margin-left:",(()=>(0,c.isRTL)()?"0":Jm(2)),";margin-right:",(()=>(0,c.isRTL)()?Jm(2):"0"),";display:inline-flex;padding:",Jm(1)," ",Jm(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",Ap("animation"),";"),gD=sd(Yh,{target:"eeiismy0"})((()=>(0,c.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;");function vD(){const[e,t]=(0,a.useState)({});return{nodes:e,getNode:t=>e[t],addNode:(e,n)=>{const{children:r,...o}=n;return t((t=>({...t,[e]:o})))},removeNode:e=>t((t=>{const{[e]:n,...r}=t;return r}))}}const bD=()=>{};var yD=function({activeItem:e,activeMenu:t=XO,children:n,className:r,onActivateMenu:o=bD}){const[i,s]=(0,a.useState)(t),[u,d]=(0,a.useState)(),f=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=vD(),{nodes:o,getNode:i,addNode:s,removeNode:l}=vD(),[c,u]=(0,a.useState)({}),d=e=>c[e]||[],f=(e,t)=>{const n=[];let r,o=[e];for(;o.length>0&&(r=i(o.shift()),!r||n.includes(r.menu)||(n.push(r.menu),o=[...o,...d(r.menu)],!1!==t(r))););};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:i,addMenu:(e,t)=>{u((n=>{const r={...n};return t.parentMenu?(r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r):r})),s(e,t)},removeMenu:l,childMenu:c,traverseMenu:f,isMenuEmpty:e=>{let t=!0;return f(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),p=(0,c.isRTL)()?"right":"left",m=(e,t=p)=>{f.getMenu(e)&&(d(t),s(e),o(e))},h=(0,a.useRef)(!1);(0,a.useEffect)((()=>{h.current||(h.current=!0)}),[]),(0,a.useEffect)((()=>{t!==i&&m(t)}),[t]);const g={activeItem:e,activeMenu:i,setActiveMenu:m,navigationTree:f},v=l()("components-navigation",r),b=Om({type:"slide-in",origin:u});return(0,a.createElement)(iD,{className:v},(0,a.createElement)("div",{key:i,className:b?l()({[b]:h.current&&u}):void 0},(0,a.createElement)(eD.Provider,{value:g},n)))};var wD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var xD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));const ED=(0,a.forwardRef)((function({backButtonLabel:e,className:t,href:n,onClick:r,parentMenu:o},i){const{setActiveMenu:s,navigationTree:u}=tD(),d=l()("components-navigation__back-button",t),f=void 0!==o?u.getMenu(o)?.title:void 0,p=(0,c.isRTL)()?wD:xD;return(0,a.createElement)(sD,{className:d,href:n,variant:"tertiary",ref:i,onClick:e=>{"function"==typeof r&&r(e);const t=(0,c.isRTL)()?"left":"right";o&&!e.defaultPrevented&&s(o,t)}},(0,a.createElement)(by,{icon:p}),e||f||(0,c.__)("Back"))}));var _D=ED;const CD=(0,a.createContext)({group:void 0});let SD=0;var kD=function({children:e,className:t,title:n}){const[r]=(0,a.useState)("group-"+ ++SD),{navigationTree:{items:o}}=tD(),i={group:r};if(!Object.values(o).some((e=>e.group===r&&e._isVisible)))return(0,a.createElement)(CD.Provider,{value:i},e);const s=`components-navigation__group-title-${r}`,c=l()("components-navigation__group",t);return(0,a.createElement)(CD.Provider,{value:i},(0,a.createElement)("li",{className:c},n&&(0,a.createElement)(dD,{className:"components-navigation__group-title",id:s,level:3},n),(0,a.createElement)("ul",{"aria-labelledby":s,role:"group"},e)))};function TD(e){const{badge:t,title:n}=e;return(0,a.createElement)(a.Fragment,null,n&&(0,a.createElement)(gD,{className:"components-navigation__item-title",as:"span"},n),t&&(0,a.createElement)(hD,{className:"components-navigation__item-badge"},t))}const RD=(0,a.createContext)({menu:void 0,search:""}),PD=()=>(0,a.useContext)(RD),MD=e=>gb()(e).replace(/^\//,"").toLowerCase(),ID=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=tD(),{group:i}=(0,a.useContext)(CD),{menu:s,search:l}=PD();(0,a.useEffect)((()=>{const a=n===s,c=!l||void 0!==t.title&&((e,t)=>-1!==MD(e).indexOf(MD(t)))(t.title,l);return r(e,{...t,group:i,menu:s,_isVisible:a&&c}),()=>{o(e)}}),[n,l])};let ND=0;function OD(e){const{children:t,className:n,title:r,href:o,...i}=e,[s]=(0,a.useState)("item-"+ ++ND);ID(s,e);const{navigationTree:c}=tD();if(!c.getItem(s)?._isVisible)return null;const u=l()("components-navigation__item",n);return(0,a.createElement)(fD,{className:u,...i},t)}const DD=()=>{};var AD=function(e){const{badge:t,children:n,className:r,href:o,item:i,navigateToMenu:s,onClick:u=DD,title:d,icon:f,hideIfTargetMenuEmpty:p,isText:m,...h}=e,{activeItem:g,setActiveMenu:v,navigationTree:{isMenuEmpty:b}}=tD();if(p&&s&&b(s))return null;const y=i&&g===i,w=l()(r,{"is-active":y}),x=(0,c.isRTL)()?xD:wD,E=n?e:{...e,onClick:void 0},_=m?h:{as:pd,href:o,onClick:e=>{s&&v(s),u(e)},"aria-current":y?"page":void 0,...h};return(0,a.createElement)(OD,{...E,className:w},n||(0,a.createElement)(pD,{..._},f&&(0,a.createElement)(mD,null,(0,a.createElement)(by,{icon:f})),(0,a.createElement)(TD,{title:d,badge:t}),s&&(0,a.createElement)(by,{icon:x})))};var LD=(0,u.createHigherOrderComponent)((e=>t=>(0,a.createElement)(e,{...t,speak:bb.speak,debouncedSpeak:(0,u.useDebounce)(bb.speak,500)})),"withSpokenMessages");var zD=LD((function({debouncedSpeak:e,onCloseSearch:t,onSearch:n,search:r,title:o}){const{navigationTree:{items:i}}=tD(),{menu:s}=PD(),l=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=setTimeout((()=>{l.current?.focus()}),ZO);return()=>{clearTimeout(e)}}),[]),(0,a.useEffect)((()=>{if(!r)return;const t=Object.values(i).filter((e=>e._isVisible)).length,n=(0,c.sprintf)((0,c._n)("%d result found.","%d results found.",t),t);e(n)}),[i,r]);const u=()=>{n?.(""),t()},d=`components-navigation__menu-title-search-${s}`,f=(0,c.sprintf)((0,c.__)("Search %s"),o?.toLowerCase()).trim();return(0,a.createElement)("div",{className:"components-navigation__menu-title-search"},(0,a.createElement)(uD,{autoComplete:"off",className:"components-navigation__menu-search-input",id:d,onChange:e=>n?.(e),onKeyDown:e=>{"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),u())},placeholder:f,onClose:u,ref:l,type:"search",value:r}))}));function FD({hasSearch:e,onSearch:t,search:n,title:r,titleAction:o}){const[i,s]=(0,a.useState)(!1),{menu:l}=PD(),u=(0,a.useRef)(null);if(!r)return null;const d=`components-navigation__menu-title-${l}`,f=(0,c.sprintf)((0,c.__)("Search in %s"),r);return(0,a.createElement)(lD,{className:"components-navigation__menu-title"},!i&&(0,a.createElement)(dD,{as:"h2",className:"components-navigation__menu-title-heading",level:3},(0,a.createElement)("span",{id:d},r),(e||o)&&(0,a.createElement)(cD,null,o,e&&(0,a.createElement)(pd,{isSmall:!0,variant:"tertiary",label:f,onClick:()=>s(!0),ref:u},(0,a.createElement)(by,{icon:nD})))),i&&(0,a.createElement)("div",{className:Om({type:"slide-in",origin:"left"})},(0,a.createElement)(zD,{onCloseSearch:()=>{s(!1),setTimeout((()=>{u.current?.focus()}),ZO)},onSearch:t,search:n,title:r})))}function BD({search:e}){const{navigationTree:{items:t}}=tD(),n=Object.values(t).filter((e=>e._isVisible)).length;return!e||n?null:(0,a.createElement)(fD,null,(0,a.createElement)(pD,null,(0,c.__)("No results found.")," "))}var jD=function(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:i=XO,onBackButtonClick:s,onSearch:c,parentMenu:u,search:d,isSearchDebouncing:f,title:p,titleAction:m}=e,[h,g]=(0,a.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=tD(),r=e.menu||XO;(0,a.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:v}=tD(),b={menu:i,search:h};if(v!==i)return(0,a.createElement)(RD.Provider,{value:b},n);const y=!!c,w=y?d:h,x=y?c:g,E=`components-navigation__menu-title-${i}`,_=l()("components-navigation__menu",r);return(0,a.createElement)(RD.Provider,{value:b},(0,a.createElement)(aD,{className:_},(u||s)&&(0,a.createElement)(_D,{backButtonLabel:t,parentMenu:u,onClick:s}),p&&(0,a.createElement)(FD,{hasSearch:o,onSearch:x,search:w,title:p,titleAction:m}),(0,a.createElement)(rT,null,(0,a.createElement)("ul",{"aria-labelledby":E},n,w&&!f&&(0,a.createElement)(BD,{search:w})))))};const VD=(0,a.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});function HD(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^".concat(WD(t.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,c="",u=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},f=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var p=u("CHAR"),m=u("NAME"),h=u("PATTERN");if(m||h){var g=p||"";-1===o.indexOf(g)&&(c+=g,g=""),c&&(a.push(c),c=""),a.push({name:m||s++,prefix:g,suffix:"",pattern:h||i,modifier:u("MODIFIER")||""})}else{var v=p||u("ESCAPED_CHAR");if(v)c+=v;else if(c&&(a.push(c),c=""),u("OPEN")){g=f();var b=u("NAME")||"",y=u("PATTERN")||"",w=f();d("CLOSE"),a.push({name:b||(y?s++:""),pattern:b&&!y?i:y,prefix:g,suffix:w,modifier:u("MODIFIER")||""})}else d("END")}}return a}function $D(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var i=r[0],a=r.index,s=Object.create(null),l=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):s[n.name]=o(r[e],n)},c=1;c<r.length;c++)l(c);return{path:i,index:a,params:s}}}(KD(e,n,t),n,t)}function WD(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function UD(e){return e&&e.sensitive?"":"i"}function GD(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,a=void 0===i||i,s=n.end,l=void 0===s||s,c=n.encode,u=void 0===c?function(e){return e}:c,d=n.delimiter,f=void 0===d?"/#?":d,p=n.endsWith,m="[".concat(WD(void 0===p?"":p),"]|$"),h="[".concat(WD(f),"]"),g=a?"^":"",v=0,b=e;v<b.length;v++){var y=b[v];if("string"==typeof y)g+=WD(u(y));else{var w=WD(u(y.prefix)),x=WD(u(y.suffix));if(y.pattern)if(t&&t.push(y),w||x)if("+"===y.modifier||"*"===y.modifier){var E="*"===y.modifier?"?":"";g+="(?:".concat(w,"((?:").concat(y.pattern,")(?:").concat(x).concat(w,"(?:").concat(y.pattern,"))*)").concat(x,")").concat(E)}else g+="(?:".concat(w,"(").concat(y.pattern,")").concat(x,")").concat(y.modifier);else"+"===y.modifier||"*"===y.modifier?g+="((?:".concat(y.pattern,")").concat(y.modifier,")"):g+="(".concat(y.pattern,")").concat(y.modifier);else g+="(?:".concat(w).concat(x,")").concat(y.modifier)}}if(l)o||(g+="".concat(h,"?")),g+=n.endsWith?"(?=".concat(m,")"):"$";else{var _=e[e.length-1],C="string"==typeof _?h.indexOf(_[_.length-1])>-1:void 0===_;o||(g+="(?:".concat(h,"(?=").concat(m,"))?")),C||(g+="(?=".concat(h,"|").concat(m,")"))}return new RegExp(g,UD(n))}(HD(e,n),t,n)}function KD(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return KD(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),UD(n))}(e,t,n):GD(e,t,n)}function qD(e,t){return $D(t,{decode:decodeURIComponent})(e)}function YD(e=[],t){switch(t.type){case"add":return[...e,t.screen];case"remove":return e.filter((e=>e.id!==t.screen.id))}return e}var XD={name:"15bx5k",styles:"overflow-x:hidden"};const ZD=Ku((function(e,t){const{initialPath:n,children:r,className:o,...i}=Gu(e,"NavigatorProvider"),[s,l]=(0,a.useState)([{path:n}]),c=(0,a.useRef)([]),[u,d]=(0,a.useReducer)(YD,[]),f=(0,a.useRef)([]);(0,a.useEffect)((()=>{f.current=u}),[u]),(0,a.useEffect)((()=>{c.current=s}),[s]);const p=(0,a.useRef)(),m=(0,a.useMemo)((()=>{let e;if(0===s.length||void 0===(e=s[s.length-1].path))return void(p.current=void 0);const t=(e=>{const t=function(e,t){for(const n of t){const t=qD(e,n.path);if(t)return{params:t.params,id:n.id}}}(e,u);return p.current&&t&&bf()(t.params,p.current.params)&&t.id===p.current.id?p.current:t})(e);return p.current=t,t}),[u,s]),h=(0,a.useCallback)((e=>d({type:"add",screen:e})),[]),g=(0,a.useCallback)((e=>d({type:"remove",screen:e})),[]),v=(0,a.useCallback)((()=>{l((e=>e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]))}),[]),b=(0,a.useCallback)(((e,t={})=>{const{focusTargetSelector:n,isBack:r=!1,skipFocus:o=!1,replace:i=!1,...a}=t;r&&c.current.length>1&&c.current[c.current.length-2].path===e?v():l((t=>{const s={...a,path:e,isBack:r,hasRestoredFocus:!1,skipFocus:o};if(0===t.length)return i?[]:[s];const l=t.slice(t.length>49?1:0,-1);return i||l.push({...t[t.length-1],focusTargetSelector:n}),l.push(s),l}))}),[v]),y=(0,a.useCallback)(((e={})=>{const t=c.current[c.current.length-1].path;if(void 0===t)return;const n=function(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let r;for(;n.length>1&&void 0===r;){n.pop();const e=""===n.join("/")?"/":n.join("/");t.find((t=>!1!==qD(e,t.path)))&&(r=e)}return r}(t,f.current);void 0!==n&&b(n,{...e,isBack:!0})}),[b]),w=(0,a.useMemo)((()=>({location:{...s[s.length-1],isInitial:1===s.length},params:m?m.params:{},match:m?m.id:void 0,goTo:b,goBack:v,goToParent:y,addScreen:h,removeScreen:g})),[s,m,b,v,y,h,g]),x=Uu(),E=(0,a.useMemo)((()=>x(XD,o)),[o,x]);return(0,a.createElement)(cd,{ref:t,className:E,...i},(0,a.createElement)(VD.Provider,{value:w},r))}),"NavigatorProvider");var JD=ZD,QD=window.wp.escapeHtml;var eA={name:"14x3t6z",styles:"overflow-x:auto;max-height:100%"};const tA=Ku((function(e,t){const n=(0,a.useId)(),{children:r,className:o,path:i,...s}=Gu(e,"NavigatorScreen"),l=(0,u.useReducedMotion)(),{location:d,match:f,addScreen:p,removeScreen:m}=(0,a.useContext)(VD),h=f===n,g=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e={id:n,path:(0,QD.escapeAttribute)(i)};return p(e),()=>m(e)}),[n,i,p,m]);const v=Uu(),b=(0,a.useMemo)((()=>v(eA,o)),[o,v]),y=(0,a.useRef)(d);(0,a.useEffect)((()=>{y.current=d}),[d]);const w=d.isInitial&&!d.isBack;(0,a.useEffect)((()=>{if(w||!h||!g.current||y.current.hasRestoredFocus||d.skipFocus)return;const e=g.current.ownerDocument.activeElement;if(g.current.contains(e))return;let t=null;if(d.isBack&&d?.focusTargetSelector&&(t=g.current.querySelector(d.focusTargetSelector)),!t){const e=Wl.focus.tabbable.find(g.current)[0];t=null!=e?e:g.current}y.current.hasRestoredFocus=!0,t.focus()}),[w,h,d.isBack,d.focusTargetSelector,d.skipFocus]);const x=(0,u.useMergeRefs)([t,g]);if(!h)return null;if(l)return(0,a.createElement)(cd,{ref:x,className:b,...s},r);const E={opacity:1,transition:{delay:0,duration:.14,ease:"easeInOut"},x:0},_=!(d.isInitial&&!d.isBack)&&{opacity:0,x:(0,c.isRTL)()&&d.isBack||!(0,c.isRTL)()&&!d.isBack?50:-50},C={animate:E,exit:{delay:0,opacity:0,x:!(0,c.isRTL)()&&d.isBack||(0,c.isRTL)()&&!d.isBack?50:-50,transition:{duration:.14,ease:"easeInOut"}},initial:_};return(0,a.createElement)(jl.div,{ref:x,className:b,...s,...C},r)}),"NavigatorScreen");var nA=tA;var rA=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,a.useContext)(VD);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}};const oA=(e,t)=>`[${e}="${t}"]`;var iA=Ku((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=pd,attributeName:o="id",...i}=Gu(e,"NavigatorButton"),s=(0,QD.escapeAttribute)(t),{goTo:l}=rA();return{as:r,onClick:(0,a.useCallback)((e=>{e.preventDefault(),l(s,{focusTargetSelector:oA(o,s)}),n?.(e)}),[l,n,o,s]),...i,[o]:s}}(e);return(0,a.createElement)(cd,{ref:t,...n})}),"NavigatorButton");function aA(e){const{onClick:t,as:n=pd,goToParent:r=!1,...o}=Gu(e,"NavigatorBackButton"),{goBack:i,goToParent:s}=rA();return{as:n,onClick:(0,a.useCallback)((e=>{e.preventDefault(),r?s():i(),t?.(e)}),[r,s,i,t]),...o}}var sA=Ku((function(e,t){const n=aA(e);return(0,a.createElement)(cd,{ref:t,...n})}),"NavigatorBackButton");var lA=Ku((function(e,t){const n=aA({...e,goToParent:!0});return(0,a.createElement)(cd,{ref:t,...n})}),"NavigatorToParentButton");const cA=()=>{};function uA(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}var dA=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=cA,isDismissible:i=!0,actions:s=[],politeness:u=uA(t),__unstableHTML:d,onDismiss:f=cA}){!function(e,t){const n="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{n&&(0,bb.speak)(n,t)}),[n,t])}(r,u);const p=l()(e,"components-notice","is-"+t,{"is-dismissible":i});return d&&"string"==typeof n&&(n=(0,a.createElement)(a.RawHTML,null,n)),(0,a.createElement)("div",{className:p},(0,a.createElement)("div",{className:"components-notice__content"},n,(0,a.createElement)("div",{className:"components-notice__actions"},s.map((({className:e,label:t,isPrimary:n,variant:r,noDefaultClasses:o=!1,onClick:i,url:s},c)=>{let u=r;return"primary"===r||o||(u=s?"link":"secondary"),void 0===u&&n&&(u="primary"),(0,a.createElement)(pd,{key:c,href:s,variant:u,onClick:s?void 0:i,className:l()("components-notice__action",e)},t)})))),i&&(0,a.createElement)(pd,{className:"components-notice__dismiss",icon:Vl,label:(0,c.__)("Dismiss this notice"),onClick:e=>{e?.preventDefault?.(),f(),o()},showTooltip:!1}))};const fA=()=>{};var pA=function({notices:e,onRemove:t=fA,className:n,children:r}){const o=e=>()=>t(e);return n=l()("components-notice-list",n),(0,a.createElement)("div",{className:n},r,[...e].reverse().map((e=>{const{content:t,...n}=e;return(0,a.createElement)(dA,{...n,key:e.id,onRemove:o(e.id)},e.content)})))};var mA=function({label:e,children:t}){return(0,a.createElement)("div",{className:"components-panel__header"},e&&(0,a.createElement)("h2",null,e),t)};var hA=(0,a.forwardRef)((function({header:e,className:t,children:n},r){const o=l()(t,"components-panel");return(0,a.createElement)("div",{className:o,ref:r},e&&(0,a.createElement)(mA,{label:e}),n)}));var gA=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));const vA=()=>{};const bA=(0,a.forwardRef)((({isOpened:e,icon:t,title:n,...r},o)=>n?(0,a.createElement)("h2",{className:"components-panel__body-title"},(0,a.createElement)(pd,{className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r},(0,a.createElement)("span",{"aria-hidden":"true"},(0,a.createElement)(Gl,{className:"components-panel__arrow",icon:e?gA:yy})),n,t&&(0,a.createElement)(Gl,{icon:t,className:"components-panel__icon",size:20}))):null)),yA=(0,a.forwardRef)((function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:s,onToggle:c=vA,opened:d,title:f,scrollAfterOpen:p=!0}=e,[m,h]=Sy(d,{initial:void 0===s||s,fallback:!1}),g=(0,a.useRef)(null),v=(0,u.useReducedMotion)()?"auto":"smooth",b=(0,a.useRef)();b.current=p,Ql((()=>{m&&b.current&&g.current?.scrollIntoView&&g.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:v})}),[m,v]);const y=l()("components-panel__body",o,{"is-opened":m});return(0,a.createElement)("div",{className:y,ref:(0,u.useMergeRefs)([g,t])},(0,a.createElement)(bA,{icon:i,isOpened:Boolean(m),onClick:e=>{e.preventDefault();const t=!m;h(t),c(t)},title:f,...n}),"function"==typeof r?r({opened:Boolean(m)}):m&&r)}));var wA=yA;var xA=(0,a.forwardRef)((function({className:e,children:t},n){return(0,a.createElement)("div",{className:l()("components-panel__row",e),ref:n},t)}));const EA=(0,a.createElement)(r.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,a.createElement)(r.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));var _A=function(e){const{icon:t,children:n,label:r,instructions:o,className:i,notices:s,preview:c,isColumnLayout:d,withIllustration:f,...p}=e,[m,{width:h}]=(0,u.useResizeObserver)();let g;"number"==typeof h&&(g={"is-large":h>=480,"is-medium":h>=160&&h<480,"is-small":h<160});const v=l()("components-placeholder",i,g,f?"has-illustration":null),b=l()("components-placeholder__fieldset",{"is-column-layout":d});return(0,a.createElement)("div",{...p,className:v},f?EA:null,m,s,c&&(0,a.createElement)("div",{className:"components-placeholder__preview"},c),(0,a.createElement)("div",{className:"components-placeholder__label"},(0,a.createElement)(Gl,{icon:t}),r),(0,a.createElement)("fieldset",{className:b},!!o&&(0,a.createElement)("legend",{className:"components-placeholder__instructions"},o),n))};const CA=e=>e.every((e=>null!==e.parent));function SA(e){const t=e.map((e=>({children:[],parent:null,...e,id:String(e.id)})));if(!CA(t))return t;const n=t.reduce(((e,t)=>{const{parent:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),r=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}}));return r(n[0]||[])}var kA=window.wp.htmlEntities;function TA(e,t=0){return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,kA.decodeEntities)(e.name)},...TA(e.children||[],t+1)]))}var RA=function({label:e,noOptionLabel:t,onChange:n,selectedId:r,tree:o=[],...i}){const s=(0,a.useMemo)((()=>[t&&{value:"",label:t},...TA(o)].filter((e=>!!e))),[t,o]);return(0,a.createElement)(Ey,{label:e,options:s,onChange:n,value:r,...i})};function PA({label:e,noOptionLabel:t,authorList:n,selectedAuthorId:r,onChange:o}){if(!n)return null;const i=SA(n);return(0,a.createElement)(RA,{label:e,noOptionLabel:t,onChange:o,tree:i,selectedId:void 0!==r?String(r):void 0,__nextHasNoMarginBottom:!0})}function MA({label:e,noOptionLabel:t,categoriesList:n,selectedCategoryId:r,onChange:o,...i}){const s=(0,a.useMemo)((()=>SA(n)),[n]);return(0,a.createElement)(RA,{label:e,noOptionLabel:t,onChange:o,tree:s,selectedId:void 0!==r?String(r):void 0,...i,__nextHasNoMarginBottom:!0})}function IA(e){return"categoriesList"in e}function NA(e){return"categorySuggestions"in e}var OA=function({authorList:e,selectedAuthorId:t,numberOfItems:n,order:r,orderBy:o,maxItems:i=100,minItems:s=1,onAuthorChange:l,onNumberOfItemsChange:u,onOrderChange:d,onOrderByChange:f,...p}){return(0,a.createElement)(r_,{spacing:"4",className:"components-query-controls"},[d&&f&&(0,a.createElement)(_y,{__nextHasNoMarginBottom:!0,key:"query-controls-order-select",label:(0,c.__)("Order by"),value:`${o}/${r}`,options:[{label:(0,c.__)("Newest to oldest"),value:"date/desc"},{label:(0,c.__)("Oldest to newest"),value:"date/asc"},{label:(0,c.__)("A → Z"),value:"title/asc"},{label:(0,c.__)("Z → A"),value:"title/desc"}],onChange:e=>{if("string"!=typeof e)return;const[t,n]=e.split("/");n!==r&&d(n),t!==o&&f(t)}}),IA(p)&&p.categoriesList&&p.onCategoryChange&&(0,a.createElement)(MA,{key:"query-controls-category-select",categoriesList:p.categoriesList,label:(0,c.__)("Category"),noOptionLabel:(0,c.__)("All"),selectedCategoryId:p.selectedCategoryId,onChange:p.onCategoryChange}),NA(p)&&p.categorySuggestions&&p.onCategoryChange&&(0,a.createElement)(DO,{__nextHasNoMarginBottom:!0,key:"query-controls-categories-select",label:(0,c.__)("Categories"),value:p.selectedCategories&&p.selectedCategories.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(p.categorySuggestions),onChange:p.onCategoryChange,maxSuggestions:20}),l&&(0,a.createElement)(PA,{key:"query-controls-author-select",authorList:e,label:(0,c.__)("Author"),noOptionLabel:(0,c.__)("All"),selectedAuthorId:t,onChange:l}),u&&(0,a.createElement)(ew,{__nextHasNoMarginBottom:!0,key:"query-controls-range-control",label:(0,c.__)("Number of items"),value:n,onChange:u,min:s,max:i,required:!0})])};var DA=(0,a.createContext)({state:null,setState:()=>{}});var AA=(0,a.forwardRef)((function({children:e,value:t,...n},r){const o=(0,a.useContext)(DA),i=o.state===t;return(0,a.createElement)(sO,{ref:r,as:pd,variant:i?"primary":"secondary",value:t,...o,...n},e||t)}));var LA=(0,a.forwardRef)((function({label:e,checked:t,defaultChecked:n,disabled:r,onChange:o,...i},s){const l=GN({state:n,baseId:i.id}),c={...l,disabled:r,state:null!=t?t:l.state,setState:null!=o?o:l.setState};return(0,a.createElement)(DA.Provider,{value:c},(0,a.createElement)(YN,{ref:s,as:WC,"aria-label":e,...l,...i}))}));var zA=function e(t){const{label:n,className:r,selected:o,help:i,onChange:s,hideLabelFromVision:c,options:d=[],...f}=t,p=`inspector-radio-control-${(0,u.useInstanceId)(e)}`,m=e=>s(e.target.value);return d?.length?(0,a.createElement)(jv,{__nextHasNoMarginBottom:!0,label:n,id:p,hideLabelFromVision:c,help:i,className:l()(r,"components-radio-control")},(0,a.createElement)(r_,{spacing:1},d.map(((e,t)=>(0,a.createElement)("div",{key:`${p}-${t}`,className:"components-radio-control__option"},(0,a.createElement)("input",{id:`${p}-${t}`,className:"components-radio-control__input",type:"radio",name:p,value:e.value,onChange:m,checked:e.value===o,"aria-describedby":i?`${p}__help`:void 0,...f}),(0,a.createElement)("label",{htmlFor:`${p}-${t}`},e.label)))))):null},FA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),BA=function(){return BA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},BA.apply(this,arguments)},jA={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},VA={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},HA={width:"20px",height:"20px",position:"absolute"},$A={top:BA(BA({},jA),{top:"-5px"}),right:BA(BA({},VA),{left:void 0,right:"-5px"}),bottom:BA(BA({},jA),{top:void 0,bottom:"-5px"}),left:BA(BA({},VA),{left:"-5px"}),topRight:BA(BA({},HA),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:BA(BA({},HA),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:BA(BA({},HA),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:BA(BA({},HA),{left:"-10px",top:"-10px",cursor:"nw-resize"})},WA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return FA(t,e),t.prototype.render=function(){return v.createElement("div",{className:this.props.className||"",style:BA(BA({position:"absolute",userSelect:"none"},$A[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(v.PureComponent),UA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),GA=function(){return GA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},GA.apply(this,arguments)},KA={width:"auto",height:"auto"},qA=function(e,t,n){return Math.max(Math.min(e,n),t)},YA=function(e,t){return Math.round(e/t)*t},XA=function(e,t){return new RegExp(e,"i").test(t)},ZA=function(e){return Boolean(e.touches&&e.touches.length)},JA=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},QA=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},eL=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},tL=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],nL="__resizable_base__",rL=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(nL):t.className+=nL,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return UA(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||KA},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return QA(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?QA(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?QA(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&XA("left",i),s=o&&XA("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=a?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,s=this.props,l=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=a.width,f=a.height,p=c||0,m=u||0;return XA("right",i)&&(d=a.width+(e-a.x)*r/n,l&&(f=(d-m)/this.ratio+p)),XA("left",i)&&(d=a.width-(e-a.x)*r/n,l&&(f=(d-m)/this.ratio+p)),XA("bottom",i)&&(f=a.height+(t-a.y)*r/n,l&&(d=(f-p)*this.ratio+m)),XA("top",i)&&(f=a.height-(t-a.y)*r/n,l&&(d=(f-p)*this.ratio+m)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,p=s||0;if(i){var m=(u-f)*this.ratio+p,h=(d-f)*this.ratio+p,g=(l-p)/this.ratio+f,v=(c-p)/this.ratio+f,b=Math.max(l,m),y=Math.min(c,h),w=Math.max(u,g),x=Math.min(d,v);e=qA(e,b,y),t=qA(t,w,x)}else e=qA(e,l,c),t=qA(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,s=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&ZA(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:GA(GA({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&ZA(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,a=n.minHeight,s=ZA(e)?e.touches[0].clientX:e.clientX,l=ZA(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,f=c.width,p=c.height,m=this.getParentSize(),h=function(e,t,n,r,o,i,a){return r=eL(r,e.width,t,n),o=eL(o,e.height,t,n),i=eL(i,e.width,t,n),a=eL(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}}(m,this.window.innerWidth,this.window.innerHeight,r,o,i,a);r=h.maxWidth,o=h.maxHeight,i=h.minWidth,a=h.minHeight;var g=this.calculateNewSizeFromDirection(s,l),v=g.newHeight,b=g.newWidth,y=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(b=JA(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=JA(v,this.props.snap.y,this.props.snapGap));var w=this.calculateNewSizeFromAspectRatio(b,v,{width:y.maxWidth,height:y.maxHeight},{width:i,height:a});if(b=w.newWidth,v=w.newHeight,this.props.grid){var x=YA(b,this.props.grid[0]),E=YA(v,this.props.grid[1]),_=this.props.snapGap||0;b=0===_||Math.abs(x-b)<=_?x:b,v=0===_||Math.abs(E-v)<=_?E:v}var C={width:b-d.width,height:v-d.height};if(f&&"string"==typeof f)if(f.endsWith("%"))b=b/m.width*100+"%";else if(f.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(f.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(p.endsWith("%"))v=v/m.height*100+"%";else if(p.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}var S={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?S.flexBasis=S.width:"column"===this.flexDir&&(S.flexBasis=S.height),(0,kt.flushSync)((function(){t.setState(S)})),this.props.onResize&&this.props.onResize(e,u,this.resizable,C)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:GA(GA({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?v.createElement(WA,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},s&&s[t]?s[t]:null):null}));return v.createElement("div",{className:a,style:i},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==tL.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=GA(GA(GA({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return v.createElement(r,GA({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&v.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(v.PureComponent);const oL=()=>{},iL={bottom:"bottom",corner:"corner"};function aL({axis:e,fadeTimeout:t=180,onResize:n=oL,position:r=iL.bottom,showPx:o=!1}){const[i,s]=(0,u.useResizeObserver)(),l=!!e,[c,d]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),{width:m,height:h}=s,g=(0,a.useRef)(h),v=(0,a.useRef)(m),b=(0,a.useRef)(),y=(0,a.useCallback)((()=>{b.current&&window.clearTimeout(b.current),b.current=window.setTimeout((()=>{l||(d(!1),p(!1))}),t)}),[t,l]);(0,a.useEffect)((()=>{if(!(null!==m||null!==h))return;const e=m!==v.current,t=h!==g.current;if(e||t){if(m&&!v.current&&h&&!g.current)return v.current=m,void(g.current=h);e&&(d(!0),v.current=m),t&&(p(!0),g.current=h),n({width:m,height:h}),y()}}),[m,h,n,y]);const w=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=iL.bottom,showPx:i=!1,width:a}){if(!n&&!r)return;if(o===iL.corner)return`${a} x ${t}`;const s=i?" px":"";if(e){if("x"===e&&n)return`${a}${s}`;if("y"===e&&r)return`${t}${s}`}if(n&&r)return`${a} x ${t}`;if(n)return`${a}${s}`;if(r)return`${t}${s}`;return}({axis:e,height:h,moveX:c,moveY:f,position:r,showPx:o,width:m});return{label:w,resizeListener:i}}const sL=sd("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),lL=sd("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),cL=sd("div",{target:"e1wq7y4k1"})("background:",Dp.gray[900],";border-radius:2px;box-sizing:border-box;font-family:",Mv("default.fontFamily"),";font-size:12px;color:",Dp.ui.textDark,";padding:4px 8px;position:relative;"),uL=sd(Yh,{target:"e1wq7y4k0"})("&&&{color:",Dp.ui.textDark,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const dL=(0,a.forwardRef)((function({label:e,position:t=iL.corner,zIndex:n=1e3,...r},o){const i=!!e,s=t===iL.bottom,l=t===iL.corner;if(!i)return null;let u={opacity:i?1:void 0,zIndex:n},d={};return s&&(u={...u,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},d={transform:"translate(0, 100%)"}),l&&(u={...u,position:"absolute",top:4,right:(0,c.isRTL)()?void 0:4,left:(0,c.isRTL)()?4:void 0}),(0,a.createElement)(lL,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:o,style:u,...r},(0,a.createElement)(cL,{className:"components-resizable-tooltip__tooltip",style:d},(0,a.createElement)(uL,{as:"span"},e)))}));var fL=dL;const pL=()=>{};const mL=(0,a.forwardRef)((function({axis:e,className:t,fadeTimeout:n=180,isVisible:r=!0,labelRef:o,onResize:i=pL,position:s=iL.bottom,showPx:c=!0,zIndex:u=1e3,...d},f){const{label:p,resizeListener:m}=aL({axis:e,fadeTimeout:n,onResize:i,showPx:c,position:s});if(!r)return null;const h=l()("components-resize-tooltip",t);return(0,a.createElement)(sL,{"aria-hidden":"true",className:h,ref:f,...d},m,(0,a.createElement)(fL,{"aria-hidden":d["aria-hidden"],label:p,position:s,ref:o,zIndex:u}))}));var hL=mL;const gL="components-resizable-box__handle",vL="components-resizable-box__side-handle",bL="components-resizable-box__corner-handle",yL={top:l()(gL,vL,"components-resizable-box__handle-top"),right:l()(gL,vL,"components-resizable-box__handle-right"),bottom:l()(gL,vL,"components-resizable-box__handle-bottom"),left:l()(gL,vL,"components-resizable-box__handle-left"),topLeft:l()(gL,bL,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:l()(gL,bL,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:l()(gL,bL,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:l()(gL,bL,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},wL={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},xL={top:wL,right:wL,bottom:wL,left:wL,topLeft:wL,topRight:wL,bottomRight:wL,bottomLeft:wL};var EL=(0,a.forwardRef)((function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:r=!1,__experimentalTooltipProps:o={},...i},s){return(0,a.createElement)(rL,{className:l()("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:yL,handleStyles:xL,ref:s,...i},t,r&&(0,a.createElement)(hL,{...o}))}));var _L=function({naturalWidth:e,naturalHeight:t,children:n,isInline:r=!1}){if(1!==a.Children.count(n))return null;const o=r?"span":"div";let i;return e&&t&&(i=`${e} / ${t}`),(0,a.createElement)(o,{className:"components-responsive-wrapper"},(0,a.createElement)("div",null,(0,a.cloneElement)(n,{className:l()("components-responsive-wrapper__content",n.props.className),style:{...n.props.style,aspectRatio:i}})))};const CL=function(){const{MutationObserver:e}=window;if(!e||!document.body||!window.parent)return;function t(){const e=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:e.width,height:e.height},"*")}function n(e){e.style&&["width","height","minHeight","maxHeight"].forEach((function(t){/^\\d+(vmin|vmax|vh|vw)$/.test(e.style[t])&&(e.style[t]="")}))}new e(t).observe(document.body,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("load",t,!0),Array.prototype.forEach.call(document.querySelectorAll("[style]"),n),Array.prototype.forEach.call(document.styleSheets,(function(e){Array.prototype.forEach.call(e.cssRules||e.rules,n)})),document.body.style.position="absolute",document.body.style.width="100%",document.body.setAttribute("data-resizable-iframe-connected",""),t(),window.addEventListener("resize",t,!0)};var SL=function({html:e="",title:t="",type:n,styles:r=[],scripts:o=[],onFocus:i}){const s=(0,a.useRef)(),[l,c]=(0,a.useState)(0),[d,f]=(0,a.useState)(0);function p(i=!1){if(!function(){try{return!!s.current?.contentDocument?.body}catch(e){return!1}}())return;const{contentDocument:l,ownerDocument:c}=s.current;if(!i&&null!==l?.body.getAttribute("data-resizable-iframe-connected"))return;const u=(0,a.createElement)("html",{lang:c.documentElement.lang,className:n},(0,a.createElement)("head",null,(0,a.createElement)("title",null,t),(0,a.createElement)("style",{dangerouslySetInnerHTML:{__html:"\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n"}}),r.map(((e,t)=>(0,a.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})))),(0,a.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:n},(0,a.createElement)("div",{dangerouslySetInnerHTML:{__html:e}}),(0,a.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${CL.toString()})();`}}),o.map((e=>(0,a.createElement)("script",{key:e,src:e})))));l.open(),l.write("<!DOCTYPE html>"+(0,a.renderToString)(u)),l.close()}return(0,a.useEffect)((()=>{function e(){p(!1)}function t(e){const t=s.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(c(n.width),f(n.height))}p();const n=s.current,r=n?.ownerDocument?.defaultView;return n?.addEventListener("load",e,!1),r?.addEventListener("message",t),()=>{n?.removeEventListener("load",e,!1),r?.addEventListener("message",t)}}),[]),(0,a.useEffect)((()=>{p()}),[t,r,o]),(0,a.useEffect)((()=>{p(!0)}),[e,n]),(0,a.createElement)("iframe",{ref:(0,u.useMergeRefs)([s,(0,u.useFocusableIframe)()]),title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:i,width:Math.ceil(l),height:Math.ceil(d)})};const kL=(0,a.forwardRef)((function({className:e,children:t,spokenMessage:n=t,politeness:r="polite",actions:o=[],onRemove:i,icon:s=null,explicitDismiss:u=!1,onDismiss:d,listRef:f},p){function m(e){e&&e.preventDefault&&e.preventDefault(),f?.current?.focus(),d?.(),i?.()}!function(e,t){const n="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{n&&(0,bb.speak)(n,t)}),[n,t])}(n,r),(0,a.useEffect)((()=>{const e=setTimeout((()=>{u||(d?.(),i?.())}),1e4);return()=>clearTimeout(e)}),[d,i,u]);const h=l()(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!u});o&&o.length>1&&("undefined"!=typeof process&&process.env,o=[o[0]]);const g=l()("components-snackbar__content",{"components-snackbar__content-with-icon":!!s});return(0,a.createElement)("div",{ref:p,className:h,onClick:u?void 0:m,tabIndex:0,role:u?"":"button",onKeyPress:u?void 0:m,"aria-label":u?"":(0,c.__)("Dismiss this notice")},(0,a.createElement)("div",{className:g},s&&(0,a.createElement)("div",{className:"components-snackbar__icon"},s),t,o.map((({label:e,onClick:t,url:n},r)=>(0,a.createElement)(pd,{key:r,href:n,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),i?.(),t&&t(e)}(e,t),className:"components-snackbar__action"},e))),u&&(0,a.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:0,className:"components-snackbar__dismiss-button",onClick:m,onKeyPress:m},"✕")))}));var TL=kL;const RL={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{stiffness:1e3,velocity:-100}}},exit:{opacity:0,transition:{duration:.5}}};var PL=function({notices:e,className:t,children:n,onRemove:r}){const o=(0,a.useRef)(null),i=(0,u.useReducedMotion)();t=l()("components-snackbar-list",t);const s=e=>()=>r?.(e.id);return(0,a.createElement)("div",{className:t,tabIndex:-1,ref:o},n,(0,a.createElement)(Vm,null,e.map((e=>{const{content:t,...n}=e;return(0,a.createElement)(jl.div,{layout:!i,initial:"init",animate:"open",exit:"exit",key:e.id,variants:i?void 0:RL},(0,a.createElement)("div",{className:"components-snackbar-list__notice-container"},(0,a.createElement)(TL,{...n,onRemove:s(e),listRef:o},e.content)))}))))};const ML=Jf`
+function nc(e){return"[object Object]"===Object.prototype.toString.call(e)}function rc(e){var t,n;return!1!==nc(e)&&(void 0===(t=e.constructor)||!1!==nc(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}var oc=function(e,t){const n=(0,a.useRef)(!1);(0,a.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)};const ic=(0,a.createContext)({}),ac=()=>(0,a.useContext)(ic);const sc=(0,a.memo)((({children:e,value:t})=>{const n=function({value:e}){const t=ac(),n=(0,a.useRef)(e);return oc((()=>{tc()(n.current,e)&&n.current!==e&&"undefined"!=typeof process&&process.env}),[e]),(0,a.useMemo)((()=>Ql()(null!=t?t:{},null!=e?e:{},{isMergeableObject:rc})),[t,e])}({value:t});return(0,a.createElement)(ic.Provider,{value:n},e)})),lc="data-wp-component",cc="data-wp-c16t",uc="__contextSystemKey__";var dc=function(){return dc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dc.apply(this,arguments)};function fc(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create;function pc(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;function mc(e){return e.toLowerCase()}var hc=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],gc=/[^A-Z0-9]+/gi;function vc(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function bc(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?hc:n,o=t.stripRegexp,i=void 0===o?gc:o,a=t.transform,s=void 0===a?mc:a,l=t.delimiter,c=void 0===l?" ":l,u=vc(vc(e,r,"$1\0$2"),i,"\0"),d=0,f=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(f-1);)f--;return u.slice(d,f).split("\0").map(s).join(c)}(e,dc({delimiter:"."},t))}function yc(e,t){return void 0===t&&(t={}),bc(e,dc({delimiter:"-"},t))}function wc(e,t){var n,r,o=0;function i(){var i,a,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a<l;a++)if(s.args[a]!==arguments[a]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return s={args:i,val:e.apply(null,i)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}const xc=wc((function(e){return`components-${yc(e)}`}));var Ec=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),_c=Math.abs,Cc=String.fromCharCode,Sc=Object.assign;function kc(e){return e.trim()}function Tc(e,t,n){return e.replace(t,n)}function Rc(e,t){return e.indexOf(t)}function Pc(e,t){return 0|e.charCodeAt(t)}function Mc(e,t,n){return e.slice(t,n)}function Ic(e){return e.length}function Nc(e){return e.length}function Oc(e,t){return t.push(e),e}var Dc=1,Ac=1,Lc=0,zc=0,Fc=0,Bc="";function jc(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Dc,column:Ac,length:a,return:""}}function Vc(e,t){return Sc(jc("",null,null,"",null,null,0),e,{length:-e.length},t)}function Hc(){return Fc=zc>0?Pc(Bc,--zc):0,Ac--,10===Fc&&(Ac=1,Dc--),Fc}function $c(){return Fc=zc<Lc?Pc(Bc,zc++):0,Ac++,10===Fc&&(Ac=1,Dc++),Fc}function Wc(){return Pc(Bc,zc)}function Uc(){return zc}function Gc(e,t){return Mc(Bc,e,t)}function Kc(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qc(e){return Dc=Ac=1,Lc=Ic(Bc=e),zc=0,[]}function Yc(e){return Bc="",e}function Xc(e){return kc(Gc(zc-1,Qc(91===e?e+2:40===e?e+1:e)))}function Zc(e){for(;(Fc=Wc())&&Fc<33;)$c();return Kc(e)>2||Kc(Fc)>3?"":" "}function Jc(e,t){for(;--t&&$c()&&!(Fc<48||Fc>102||Fc>57&&Fc<65||Fc>70&&Fc<97););return Gc(e,Uc()+(t<6&&32==Wc()&&32==$c()))}function Qc(e){for(;$c();)switch(Fc){case e:return zc;case 34:case 39:34!==e&&39!==e&&Qc(Fc);break;case 40:41===e&&Qc(e);break;case 92:$c()}return zc}function eu(e,t){for(;$c()&&e+Fc!==57&&(e+Fc!==84||47!==Wc()););return"/*"+Gc(t,zc-1)+"*"+Cc(47===e?e:$c())}function tu(e){for(;!Kc(Wc());)$c();return Gc(e,zc)}var nu="-ms-",ru="-moz-",ou="-webkit-",iu="comm",au="rule",su="decl",lu="@keyframes";function cu(e,t){for(var n="",r=Nc(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function uu(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case su:return e.return=e.return||e.value;case iu:return"";case lu:return e.return=e.value+"{"+cu(e.children,r)+"}";case au:e.value=e.props.join(",")}return Ic(n=cu(e.children,r))?e.return=e.value+"{"+n+"}":""}function du(e){return Yc(fu("",null,null,null,[""],e=qc(e),0,[0],e))}function fu(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,m=0,h=1,g=1,v=1,b=0,y="",w=o,x=i,E=r,_=y;g;)switch(m=b,b=$c()){case 40:if(108!=m&&58==Pc(_,d-1)){-1!=Rc(_+=Tc(Xc(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:_+=Xc(b);break;case 9:case 10:case 13:case 32:_+=Zc(m);break;case 92:_+=Jc(Uc()-1,7);continue;case 47:switch(Wc()){case 42:case 47:Oc(mu(eu($c(),Uc()),t,n),l);break;default:_+="/"}break;case 123*h:s[c++]=Ic(_)*v;case 125*h:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(_=Tc(_,/\f/g,"")),p>0&&Ic(_)-d&&Oc(p>32?hu(_+";",r,n,d-1):hu(Tc(_," ","")+";",r,n,d-2),l);break;case 59:_+=";";default:if(Oc(E=pu(_,t,n,c,u,o,s,y,w=[],x=[],d),i),123===b)if(0===u)fu(_,t,E,E,w,i,d,s,x);else switch(99===f&&110===Pc(_,3)?100:f){case 100:case 108:case 109:case 115:fu(e,E,E,r&&Oc(pu(e,E,E,0,0,o,s,y,o,w=[],d),x),o,x,d,s,r?w:x);break;default:fu(_,E,E,E,[""],x,0,s,x)}}c=u=p=0,h=v=1,y=_="",d=a;break;case 58:d=1+Ic(_),p=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==Hc())continue;switch(_+=Cc(b),b*h){case 38:v=u>0?1:(_+="\f",-1);break;case 44:s[c++]=(Ic(_)-1)*v,v=1;break;case 64:45===Wc()&&(_+=Xc($c())),f=Wc(),u=d=Ic(y=_+=tu(Uc())),b++;break;case 45:45===m&&2==Ic(_)&&(h=0)}}return i}function pu(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,f=0===o?i:[""],p=Nc(f),m=0,h=0,g=0;m<r;++m)for(var v=0,b=Mc(e,d+1,d=_c(h=a[m])),y=e;v<p;++v)(y=kc(h>0?f[v]+" "+b:Tc(b,/&\f/g,f[v])))&&(l[g++]=y);return jc(e,t,n,0===o?au:s,l,c,u)}function mu(e,t,n){return jc(e,t,n,iu,Cc(Fc),Mc(e,2,-2),0)}function hu(e,t,n,r){return jc(e,t,n,su,Mc(e,0,r),Mc(e,r+1,-1),r)}var gu=function(e,t,n){for(var r=0,o=0;r=o,o=Wc(),38===r&&12===o&&(t[n]=1),!Kc(o);)$c();return Gc(e,zc)},vu=function(e,t){return Yc(function(e,t){var n=-1,r=44;do{switch(Kc(r)){case 0:38===r&&12===Wc()&&(t[n]=1),e[n]+=gu(zc-1,t,n);break;case 2:e[n]+=Xc(r);break;case 4:if(44===r){e[++n]=58===Wc()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Cc(r)}}while(r=$c());return e}(qc(e),t))},bu=new WeakMap,yu=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||bu.get(n))&&!r){bu.set(e,!0);for(var o=[],i=vu(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},wu=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function xu(e,t){switch(function(e,t){return 45^Pc(e,0)?(((t<<2^Pc(e,0))<<2^Pc(e,1))<<2^Pc(e,2))<<2^Pc(e,3):0}(e,t)){case 5103:return ou+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ou+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ou+e+ru+e+nu+e+e;case 6828:case 4268:return ou+e+nu+e+e;case 6165:return ou+e+nu+"flex-"+e+e;case 5187:return ou+e+Tc(e,/(\w+).+(:[^]+)/,ou+"box-$1$2"+nu+"flex-$1$2")+e;case 5443:return ou+e+nu+"flex-item-"+Tc(e,/flex-|-self/,"")+e;case 4675:return ou+e+nu+"flex-line-pack"+Tc(e,/align-content|flex-|-self/,"")+e;case 5548:return ou+e+nu+Tc(e,"shrink","negative")+e;case 5292:return ou+e+nu+Tc(e,"basis","preferred-size")+e;case 6060:return ou+"box-"+Tc(e,"-grow","")+ou+e+nu+Tc(e,"grow","positive")+e;case 4554:return ou+Tc(e,/([^-])(transform)/g,"$1"+ou+"$2")+e;case 6187:return Tc(Tc(Tc(e,/(zoom-|grab)/,ou+"$1"),/(image-set)/,ou+"$1"),e,"")+e;case 5495:case 3959:return Tc(e,/(image-set\([^]*)/,ou+"$1$`$1");case 4968:return Tc(Tc(e,/(.+:)(flex-)?(.*)/,ou+"box-pack:$3"+nu+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ou+e+e;case 4095:case 3583:case 4068:case 2532:return Tc(e,/(.+)-inline(.+)/,ou+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ic(e)-1-t>6)switch(Pc(e,t+1)){case 109:if(45!==Pc(e,t+4))break;case 102:return Tc(e,/(.+:)(.+)-([^]+)/,"$1"+ou+"$2-$3$1"+ru+(108==Pc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Rc(e,"stretch")?xu(Tc(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Pc(e,t+1))break;case 6444:switch(Pc(e,Ic(e)-3-(~Rc(e,"!important")&&10))){case 107:return Tc(e,":",":"+ou)+e;case 101:return Tc(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ou+(45===Pc(e,14)?"inline-":"")+"box$3$1"+ou+"$2$3$1"+nu+"$2box$3")+e}break;case 5936:switch(Pc(e,t+11)){case 114:return ou+e+nu+Tc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ou+e+nu+Tc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ou+e+nu+Tc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ou+e+nu+e+e}return e}var Eu=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case su:e.return=xu(e.value,e.length);break;case lu:return cu([Vc(e,{value:Tc(e.value,"@","@"+ou)})],r);case au:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cu([Vc(e,{props:[Tc(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return cu([Vc(e,{props:[Tc(t,/:(plac\w+)/,":"+ou+"input-$1")]}),Vc(e,{props:[Tc(t,/:(plac\w+)/,":-moz-$1")]}),Vc(e,{props:[Tc(t,/:(plac\w+)/,nu+"input-$1")]})],r)}return""}))}}],_u=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Eu;var o,i,a={},s=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,f=[uu,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],p=(c=[yu,wu].concat(r,f),u=Nc(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});i=function(e,t,n,r){l=n,function(e){cu(du(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new Ec({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return m.sheet.hydrate(s),m};var Cu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Su(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ku=/[A-Z]|^ms/g,Tu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ru=function(e){return 45===e.charCodeAt(1)},Pu=function(e){return null!=e&&"boolean"!=typeof e},Mu=Su((function(e){return Ru(e)?e:e.replace(ku,"-$&").toLowerCase()})),Iu=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Tu,(function(e,t,n){return Ou={name:t,styles:n,next:Ou},t}))}return 1===Cu[e]||Ru(e)||"number"!=typeof t||0===t?t:t+"px"};function Nu(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ou={name:n.name,styles:n.styles,next:Ou},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ou={name:r.name,styles:r.styles,next:Ou},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Nu(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":Pu(a)&&(r+=Mu(i)+":"+Iu(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Nu(e,t,a);switch(i){case"animation":case"animationName":r+=Mu(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var l=0;l<a.length;l++)Pu(a[l])&&(r+=Mu(i)+":"+Iu(i,a[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ou,i=n(e);return Ou=o,Nu(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Ou,Du=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Au=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ou=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Nu(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=Nu(n,t,e[a]),r&&(o+=i[a]);Du.lastIndex=0;for(var s,l="";null!==(s=Du.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:Ou}},Lu=!!v.useInsertionEffect&&v.useInsertionEffect,zu=Lu||function(e){return e()},Fu=(Lu||v.useLayoutEffect,v.createContext("undefined"!=typeof HTMLElement?_u({key:"css"}):null));var Bu=Fu.Provider,ju=function(e){return(0,v.forwardRef)((function(t,n){var r=(0,v.useContext)(Fu);return e(t,r,n)}))};var Vu=v.createContext({});function Hu(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var $u=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Wu=function(e,t,n){$u(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};function Uu(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Gu(e,t,n){var r=[],o=Hu(e,r,n);return r.length<2?n:o+t(r)}var Ku=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n},qu=function(e){var t=_u(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Au(n,t.registered,void 0);return Wu(t,o,!1),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Gu(t.registered,n,Ku(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Au(n,t.registered);Uu(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Au(n,t.registered),i="animation-"+o.name;return Uu(t,{name:o.name,styles:"@keyframes "+i+"{"+o.styles+"}"}),i},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Hu.bind(null,t.registered),merge:Gu.bind(null,t.registered,n)}}({key:"css"}),Yu=(qu.flush,qu.hydrate,qu.cx);qu.merge,qu.getRegisteredStyles,qu.injectGlobal,qu.keyframes,qu.css,qu.sheet,qu.cache;const Xu=()=>{const e=(0,v.useContext)(Fu),t=(0,a.useCallback)(((...t)=>{if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");return Yu(...t.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(Wu(e,t,!1),`${e.key}-${t.name}`):t)))}),[e]);return t};function Zu(e,t){const n=ac();void 0===t&&"undefined"!=typeof process&&process.env;const r=n?.[t]||{},o={[cc]:!0,...(i=t,{[lc]:i})};var i;const{_overrides:a,...s}=r,l=Object.entries(s).length?Object.assign({},s,e):e,c=Xu()(xc(t),e.className),u="function"==typeof l.renderChildren?l.renderChildren(l):l.children;for(const e in l)o[e]=l[e];for(const e in a)o[e]=a[e];return void 0!==u&&(o.children=u),o.className=c,o}function Ju(e,t){return ed(e,t,{forwardsRef:!0})}function Qu(e,t){return ed(e,t)}function ed(e,t,n){const r=n?.forwardsRef?(0,a.forwardRef)(e):e;void 0===t&&"undefined"!=typeof process&&process.env;let o=r[uc]||[t];return Array.isArray(t)&&(o=[...o,...t]),"string"==typeof t&&(o=[...o,t]),Object.assign(r,{[uc]:[...new Set(o)],displayName:t,selector:`.${xc(t)}`})}function td(e){if(!e)return[];let t=[];return e[uc]&&(t=e[uc]),e.type&&e.type[uc]&&(t=e.type[uc]),t}function nd(e,t){return!!e&&("string"==typeof t?td(e).includes(t):!!Array.isArray(t)&&t.some((t=>td(e).includes(t))))}const rd={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};function od(){return od=Object.assign?Object.assign.bind():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},od.apply(this,arguments)}function id(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ad=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,sd=id((function(e){return ad.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),ld=function(e){return"theme"!==e},cd=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?sd:ld},ud=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},dd=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return $u(t,n,r),zu((function(){return Wu(t,n,r)})),null},fd=function e(t,n){var r,o,i=t.__emotion_real===t,a=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=ud(t,n,i),l=s||cd(a),c=!l("as");return function(){var u=arguments,d=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{0,d.push(u[0][0]);for(var f=u.length,p=1;p<f;p++)d.push(u[p],u[0][p])}var m=ju((function(e,t,n){var r=c&&e.as||a,i="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=v.useContext(Vu)}"string"==typeof e.className?i=Hu(t.registered,u,e.className):null!=e.className&&(i=e.className+" ");var m=Au(d.concat(u),t.registered,f);i+=t.key+"-"+m.name,void 0!==o&&(i+=" "+o);var h=c&&void 0===s?cd(r):l,g={};for(var b in e)c&&"as"===b||h(b)&&(g[b]=e[b]);return g.className=i,g.ref=n,v.createElement(v.Fragment,null,v.createElement(dd,{cache:t,serialized:m,isStringTag:"string"==typeof r}),v.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,od({},n,r,{shouldForwardProp:ud(m,r,!0)})).apply(void 0,d)},m}};const pd=fd("div",{target:"e19lxcc00"})("");pd.selector=".components-view",pd.displayName="View";var md=pd;var hd=Ju((function(e,t){const{style:n,...r}=Zu(e,"VisuallyHidden");return(0,a.createElement)(md,{ref:t,...r,style:{...rd,...n||{}}})}),"VisuallyHidden");const gd=["onMouseDown","onClick"];const vd=(0,a.forwardRef)((function(e,t){const{__next40pxDefaultSize:n,isPressed:r,isBusy:o,isDestructive:i,className:s,disabled:c,icon:d,iconPosition:f="left",iconSize:p,showTooltip:m,tooltipPosition:h,shortcut:g,label:v,children:b,size:y="default",text:w,variant:x,__experimentalIsFocusable:E,describedBy:_,...C}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:r,isLink:o,isSmall:i,size:a,variant:s,...l}){let c=a,u=s;var d,f,p,m,h,g;return i&&(null!==(d=c)&&void 0!==d||(c="small")),t&&(null!==(f=u)&&void 0!==f||(u="primary")),r&&(null!==(p=u)&&void 0!==p||(u="tertiary")),n&&(null!==(m=u)&&void 0!==m||(u="secondary")),e&&(ql()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(h=u)&&void 0!==h||(u="secondary")),o&&(null!==(g=u)&&void 0!==g||(u="link")),{...l,size:c,variant:u}}(e),{href:S,target:k,...T}="href"in C?C:{href:void 0,target:void 0,...C},R=(0,u.useInstanceId)(vd,"components-button__description"),P="string"==typeof b&&!!b||Array.isArray(b)&&b?.[0]&&null!==b[0]&&"components-tooltip"!==b?.[0]?.props?.className,M=l()("components-button",s,{"is-next-40px-default-size":n,"is-secondary":"secondary"===x,"is-primary":"primary"===x,"is-small":"small"===y,"is-compact":"compact"===y,"is-tertiary":"tertiary"===x,"is-pressed":r,"is-busy":o,"is-link":"link"===x,"is-destructive":i,"has-text":!!d&&P,"has-icon":!!d}),I=c&&!E,N=void 0===S||I?"button":"a",O="button"===N?{type:"button",disabled:I,"aria-pressed":r}:{},D="a"===N?{href:S,target:k}:{};if(c&&E){O["aria-disabled"]=!0,D["aria-disabled"]=!0;for(const e of gd)T[e]=e=>{e&&(e.stopPropagation(),e.preventDefault())}}const A=!I&&(m&&v||g||!!v&&!b?.length&&!1!==m),L=_?R:void 0,z=T["aria-describedby"]||L,F={className:M,"aria-label":T["aria-label"]||v,"aria-describedby":z,ref:t},B=(0,a.createElement)(a.Fragment,null,d&&"left"===f&&(0,a.createElement)(Zl,{icon:d,size:p}),w&&(0,a.createElement)(a.Fragment,null,w),d&&"right"===f&&(0,a.createElement)(Zl,{icon:d,size:p}),b),j="a"===N?(0,a.createElement)("a",{...D,...T,...F},B):(0,a.createElement)("button",{...O,...T,...F},B);return A?(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Xf,{text:b?.length&&_?_:v,shortcut:g,position:h},j),_&&(0,a.createElement)(hd,null,(0,a.createElement)("span",{id:L},_))):(0,a.createElement)(a.Fragment,null,j,_&&(0,a.createElement)(hd,null,(0,a.createElement)("span",{id:L},_)))}));var bd=vd;let yd=0;function wd(e){const t=document.scrollingElement||document.body;e&&(yd=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=yd)}let xd=0;var Ed=function(){return(0,a.useEffect)((()=>(0===xd&&wd(!0),++xd,()=>{1===xd&&wd(!1),--xd})),[]),null};const _d=Symbol(),Cd=Symbol(),Sd=Symbol();let kd=(e,t)=>new Proxy(e,t);const Td=Object.getPrototypeOf,Rd=new WeakMap,Pd=e=>e&&(Rd.has(e)?Rd.get(e):Td(e)===Object.prototype||Td(e)===Array.prototype),Md=e=>"object"==typeof e&&null!==e,Id=new WeakMap,Nd=e=>e[Sd]||e,Od=(e,t,n)=>{if(!Pd(e))return e;const r=Nd(e),o=(e=>Object.isFrozen(e)||Object.values(Object.getOwnPropertyDescriptors(e)).some((e=>!e.writable)))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((e,t)=>{const n={f:t};let r=!1;const o=(t,o)=>{if(!r){let r=n.a.get(e);r||(r=new Set,n.a.set(e,r)),o&&r.has(_d)||r.add(t)}},i={get:(t,r)=>r===Sd?e:(o(r),Od(t[r],n.a,n.c)),has:(t,i)=>i===Cd?(r=!0,n.a.delete(e),!0):(o(i),i in t),getOwnPropertyDescriptor:(e,t)=>(o(t,!0),Object.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(o(_d),Reflect.ownKeys(e))};return t&&(i.set=i.deleteProperty=()=>!1),[i,n]})(r,o),i[1].p=kd(o?(e=>{let t=Id.get(e);if(!t){if(Array.isArray(e))t=Array.from(e);else{const n=Object.getOwnPropertyDescriptors(e);Object.values(n).forEach((e=>{e.configurable=!0})),t=Object.create(Td(e),n)}Id.set(e,t)}return t})(r):r,i[0]),n&&n.set(r,i)),i[1].a=t,i[1].c=n,i[1].p},Dd=(e,t)=>{const n=Reflect.ownKeys(e),r=Reflect.ownKeys(t);return n.length!==r.length||n.some(((e,t)=>e!==r[t]))},Ad=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Md(e)||!Md(t))return!0;const o=n.get(Nd(e));if(!o)return!0;if(r){const n=r.get(e);if(n&&n.n===t)return n.g;r.set(e,{n:t,g:!1})}let i=null;for(const a of o){const o=a===_d?Dd(e,t):Ad(e[a],t[a],n,r);if(!0!==o&&!1!==o||(i=o),i)break}return null===i&&(i=!0),r&&r.set(e,{n:t,g:i}),i},Ld=(e,t=!0)=>{Rd.set(e,t)};var zd=o(635);const Fd=e=>"object"==typeof e&&null!==e,Bd=new WeakSet,jd=Symbol("VERSION"),Vd=Symbol("LISTENERS"),Hd=Symbol("SNAPSHOT"),$d=(e=Object.is,t=((e,t)=>new Proxy(e,t)),n=(e=>Fd(e)&&!Bd.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),r=Symbol("PROMISE_RESULT"),o=Symbol("PROMISE_ERROR"),i=new WeakMap,a=((e,t,n)=>{const a=i.get(n);if((null==a?void 0:a[0])===e)return a[1];const s=Array.isArray(t)?[]:Object.create(Object.getPrototypeOf(t));return Ld(s,!0),i.set(n,[e,s]),Reflect.ownKeys(t).forEach((e=>{const i=Reflect.get(t,e,n);if(Bd.has(i))Ld(i,!1),s[e]=i;else if(i instanceof Promise)if(r in i)s[e]=i[r];else{const t=i[o]||i;Object.defineProperty(s,e,{get(){if(r in i)return i[r];throw t}})}else(null==i?void 0:i[Vd])?s[e]=i[Hd]:s[e]=i})),Object.freeze(s)}),s=new WeakMap,l=[1],c=(i=>{if(!Fd(i))throw new Error("object required");const c=s.get(i);if(c)return c;let u=l[0];const d=new Set,f=(e,t=++l[0])=>{u!==t&&(u=t,d.forEach((n=>n(e,t))))},p=new Map,m=e=>{let t=p.get(e);return t||(t=(t,n)=>{const r=[...t];r[1]=[e,...r[1]],f(r,n)},p.set(e,t)),t},h=e=>{const t=p.get(e);return p.delete(e),t},g=Array.isArray(i)?[]:Object.create(Object.getPrototypeOf(i)),v={get(e,t,n){return t===jd?u:t===Vd?d:t===Hd?a(u,e,n):Reflect.get(e,t,n)},deleteProperty(e,t){const n=Reflect.get(e,t),r=null==n?void 0:n[Vd];r&&r.delete(h(t));const o=Reflect.deleteProperty(e,t);return o&&f(["delete",[t],n]),o},set(t,i,a,s){var l;const c=Reflect.has(t,i),u=Reflect.get(t,i,s);if(c&&e(u,a))return!0;const d=null==u?void 0:u[Vd];let p;return d&&d.delete(h(i)),Fd(a)&&(a=(e=>Pd(e)&&e[Sd]||null)(a)||a),(null==(l=Object.getOwnPropertyDescriptor(t,i))?void 0:l.set)?p=a:a instanceof Promise?p=a.then((e=>(p[r]=e,f(["resolve",[i],e]),e))).catch((e=>{p[o]=e,f(["reject",[i],e])})):(null==a?void 0:a[Vd])?(p=a,p[Vd].add(m(i))):n(a)?(p=Ud(a),p[Vd].add(m(i))):p=a,Reflect.set(t,i,p,s),f(["set",[i],a,u]),!0}},b=t(g,v);return s.set(i,b),Reflect.ownKeys(i).forEach((e=>{const t=Object.getOwnPropertyDescriptor(i,e);t.get||t.set?Object.defineProperty(g,e,t):b[e]=i[e]})),b}))=>[c,Bd,jd,Vd,Hd,e,t,n,r,o,i,a,s,l],[Wd]=$d();function Ud(e={}){return Wd(e)}function Gd(e,t,n){let r;(null==e?void 0:e[Vd])||console.warn("Please use proxy object");const o=[],i=e=>{o.push(e),n?t(o.splice(0)):r||(r=Promise.resolve().then((()=>{r=void 0,t(o.splice(0))})))};return e[Vd].add(i),()=>{e[Vd].delete(i)}}function Kd(e){return(null==e?void 0:e[Hd])||console.warn("Please use proxy object"),e[Hd]}function qd(e){return Bd.add(e),e}const{useSyncExternalStore:Yd}=zd,Xd=(e,t)=>{const n=(0,v.useRef)();(0,v.useEffect)((()=>{n.current=((e,t)=>{const n=[],r=new WeakSet,o=(e,i)=>{if(r.has(e))return;Md(e)&&r.add(e);const a=Md(e)&&t.get(Nd(e));a?a.forEach((t=>{o(e[t],i?[...i,t]:[t])})):i&&n.push(i)};return o(e),n})(e,t)})),(0,v.useDebugValue)(n.current)};function Zd(e,t){const n=null==t?void 0:t.sync,r=(0,v.useRef)(),o=(0,v.useRef)();let i=!0;const a=Yd((0,v.useCallback)((t=>{const r=Gd(e,t,n);return t(),r}),[e,n]),(()=>{const t=Kd(e);try{if(!i&&r.current&&o.current&&!Ad(r.current,t,o.current,new WeakMap))return r.current}catch(e){}return t}),(()=>Kd(e)));i=!1;const s=new WeakMap;(0,v.useEffect)((()=>{r.current=a,o.current=s})),Xd(a,s);const l=(0,v.useMemo)((()=>new WeakMap),[]);return Od(a,s,l)}Symbol();function Jd(e){const t=Ud({data:Array.from(e||[]),has(e){return this.data.some((t=>t[0]===e))},set(e,t){const n=this.data.find((t=>t[0]===e));return n?n[1]=t:this.data.push([e,t]),this},get(e){var t;return null==(t=this.data.find((t=>t[0]===e)))?void 0:t[1]},delete(e){const t=this.data.findIndex((t=>t[0]===e));return-1!==t&&(this.data.splice(t,1),!0)},clear(){this.data.splice(0)},get size(){return this.data.length},toJSON(){return{}},forEach(e){this.data.forEach((t=>{e(t[1],t[0],this)}))},keys(){return this.data.map((e=>e[0])).values()},values(){return this.data.map((e=>e[1])).values()},entries(){return new Map(this.data).entries()},get[Symbol.toStringTag](){return"Map"},[Symbol.iterator](){return this.entries()}});return Object.defineProperties(t,{data:{enumerable:!1},size:{enumerable:!1},toJSON:{enumerable:!1}}),Object.seal(t),t}var Qd=(0,a.createContext)({slots:Jd(),fills:Jd(),registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function ef(e){const t=(0,a.useContext)(Qd);return{...Zd(t.slots,{sync:!0}).get(e),...(0,a.useMemo)((()=>({updateSlot:n=>t.updateSlot(e,n),unregisterSlot:n=>t.unregisterSlot(e,n),registerFill:n=>t.registerFill(e,n),unregisterFill:n=>t.unregisterFill(e,n)})),[e,t])}}var tf=(0,a.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});var nf=e=>{const{getSlot:t,subscribe:n}=(0,a.useContext)(tf);return(0,a.useSyncExternalStore)(n,(()=>t(e)),(()=>t(e)))};function rf({name:e,children:t}){const{registerFill:n,unregisterFill:r}=(0,a.useContext)(tf),o=nf(e),i=(0,a.useRef)({name:e,children:t});return(0,a.useLayoutEffect)((()=>{const t=i.current;return n(e,t),()=>r(e,t)}),[]),(0,a.useLayoutEffect)((()=>{i.current.children=t,o&&o.forceUpdate()}),[t]),(0,a.useLayoutEffect)((()=>{e!==i.current.name&&(r(i.current.name,i.current),i.current.name=e,n(e,i.current))}),[e]),null}function of(e){return"function"==typeof e}class af extends a.Component{constructor(){super(...arguments),this.isUnmounted=!1}componentDidMount(){const{registerSlot:e}=this.props;this.isUnmounted=!1,e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){var e;const{children:t,name:n,fillProps:r={},getFills:o}=this.props,i=(null!==(e=o(n,this))&&void 0!==e?e:[]).map((e=>{const t=of(e.children)?e.children(r):e.children;return a.Children.map(t,((e,t)=>{if(!e||"string"==typeof e)return e;const n=e.key||t;return(0,a.cloneElement)(e,{key:n})}))})).filter((e=>!(0,a.isEmptyElement)(e)));return(0,a.createElement)(a.Fragment,null,of(t)?t(i):i)}}var sf,lf=e=>(0,a.createElement)(tf.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:r})=>(0,a.createElement)(af,{...e,registerSlot:t,unregisterSlot:n,getFills:r}))),cf=new Uint8Array(16);function uf(){if(!sf&&!(sf="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sf(cf)}var df=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var ff=function(e){return"string"==typeof e&&df.test(e)},pf=[],mf=0;mf<256;++mf)pf.push((mf+256).toString(16).substr(1));var hf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(pf[e[t+0]]+pf[e[t+1]]+pf[e[t+2]]+pf[e[t+3]]+"-"+pf[e[t+4]]+pf[e[t+5]]+"-"+pf[e[t+6]]+pf[e[t+7]]+"-"+pf[e[t+8]]+pf[e[t+9]]+"-"+pf[e[t+10]]+pf[e[t+11]]+pf[e[t+12]]+pf[e[t+13]]+pf[e[t+14]]+pf[e[t+15]]).toLowerCase();if(!ff(n))throw TypeError("Stringified UUID is invalid");return n};var gf=function(e,t,n){var r=(e=e||{}).random||(e.rng||uf)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return hf(r)};const vf=new Set,bf=wc((e=>{let t=gf().replace(/[0-9]/g,"");for(;vf.has(t);)t=gf().replace(/[0-9]/g,"");return vf.add(t),_u({container:e,key:t})}));var yf=function(e){const{children:t,document:n}=e;if(!n)return null;const r=bf(n.head);return(0,a.createElement)(Bu,{value:r},t)};function wf({name:e,children:t}){const{registerFill:n,unregisterFill:r,...o}=ef(e),i=function(){const[,e]=(0,a.useState)({}),t=(0,a.useRef)(!0);return(0,a.useEffect)((()=>(t.current=!0,()=>{t.current=!1})),[]),()=>{t.current&&e({})}}(),s=(0,a.useRef)({rerender:i});if((0,a.useEffect)((()=>(n(s),()=>{r(s)})),[n,r]),!o.ref||!o.ref.current)return null;"function"==typeof t&&(t=t(o.fillProps));const l=(0,a.createElement)(yf,{document:o.ref.current.ownerDocument},t);return(0,a.createPortal)(l,o.ref.current)}var xf=(0,a.forwardRef)((function({name:e,fillProps:t={},as:n="div",...r},o){const{registerSlot:i,unregisterSlot:s,...l}=(0,a.useContext)(Qd),c=(0,a.useRef)();return(0,a.useLayoutEffect)((()=>(i(e,c,t),()=>{s(e,c)})),[i,s,e]),(0,a.useLayoutEffect)((()=>{l.updateSlot(e,t)})),(0,a.createElement)(n,{ref:(0,u.useMergeRefs)([o,c]),...r})})),Ef=window.wp.isShallowEqual,_f=o.n(Ef);function Cf(){const e=Jd(),t=Jd();return{slots:e,fills:t,registerSlot:function(t,n,r){const o=e.get(t)||{};e.set(t,qd({...o,ref:n||o.ref,fillProps:r||o.fillProps||{}}))},updateSlot:function(n,r){const o=e.get(n);if(!o)return;if(_f()(o.fillProps,r))return;o.fillProps=r;const i=t.get(n);i&&i.map((e=>e.current.rerender()))},unregisterSlot:function(t,n){e.get(t)?.ref===n&&e.delete(t)},registerFill:function(e,n){t.set(e,qd([...t.get(e)||[],n]))},unregisterFill:function(e,n){const r=t.get(e);r&&t.set(e,qd(r.filter((e=>e!==n))))}}}function Sf({children:e}){const[t]=(0,a.useState)(Cf);return(0,a.createElement)(Qd.Provider,{value:t},e)}class kf extends a.Component{constructor(){super(...arguments),this.registerSlot=this.registerSlot.bind(this),this.registerFill=this.registerFill.bind(this),this.unregisterSlot=this.unregisterSlot.bind(this),this.unregisterFill=this.unregisterFill.bind(this),this.getSlot=this.getSlot.bind(this),this.getFills=this.getFills.bind(this),this.subscribe=this.subscribe.bind(this),this.slots={},this.fills={},this.listeners=[],this.contextValue={registerSlot:this.registerSlot,unregisterSlot:this.unregisterSlot,registerFill:this.registerFill,unregisterFill:this.unregisterFill,getSlot:this.getSlot,getFills:this.getFills,subscribe:this.subscribe}}registerSlot(e,t){const n=this.slots[e];this.slots[e]=t,this.triggerListeners(),this.forceUpdateSlot(e),n&&n.forceUpdate()}registerFill(e,t){this.fills[e]=[...this.fills[e]||[],t],this.forceUpdateSlot(e)}unregisterSlot(e,t){this.slots[e]===t&&(delete this.slots[e],this.triggerListeners())}unregisterFill(e,t){var n;this.fills[e]=null!==(n=this.fills[e]?.filter((e=>e!==t)))&&void 0!==n?n:[],this.forceUpdateSlot(e)}getSlot(e){return this.slots[e]}getFills(e,t){return this.slots[e]!==t?[]:this.fills[e]}forceUpdateSlot(e){const t=this.getSlot(e);t&&t.forceUpdate()}triggerListeners(){this.listeners.forEach((e=>e()))}subscribe(e){return this.listeners.push(e),()=>{this.listeners=this.listeners.filter((t=>t!==e))}}render(){return(0,a.createElement)(tf.Provider,{value:this.contextValue},this.props.children)}}function Tf(e){return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(rf,{...e}),(0,a.createElement)(wf,{...e}))}const Rf=(0,a.forwardRef)((({bubblesVirtually:e,...t},n)=>e?(0,a.createElement)(xf,{...t,ref:n}):(0,a.createElement)(lf,{...t})));function Pf({children:e,...t}){return(0,a.createElement)(kf,{...t},(0,a.createElement)(Sf,null,e))}function Mf(e){const t="symbol"==typeof e?e.description:e,n=t=>(0,a.createElement)(Tf,{name:e,...t});n.displayName=`${t}Fill`;const r=t=>(0,a.createElement)(Rf,{name:e,...t});return r.displayName=`${t}Slot`,r.__unstableName=e,{Fill:n,Slot:r}}const If={bottom:"bottom",top:"top","middle left":"left","middle right":"right","bottom left":"bottom-end","bottom center":"bottom","bottom right":"bottom-start","top left":"top-end","top center":"top","top right":"top-start","middle left left":"left","middle left right":"left","middle left bottom":"left-end","middle left top":"left-start","middle right left":"right","middle right right":"right","middle right bottom":"right-end","middle right top":"right-start","bottom left left":"bottom-end","bottom left right":"bottom-end","bottom left bottom":"bottom-end","bottom left top":"bottom-end","bottom center left":"bottom","bottom center right":"bottom","bottom center bottom":"bottom","bottom center top":"bottom","bottom right left":"bottom-start","bottom right right":"bottom-start","bottom right bottom":"bottom-start","bottom right top":"bottom-start","top left left":"top-end","top left right":"top-end","top left bottom":"top-end","top left top":"top-end","top center left":"top","top center right":"top","top center bottom":"top","top center top":"top","top right left":"top-start","top right right":"top-start","top right bottom":"top-start","top right top":"top-start",middle:"bottom","middle center":"bottom","middle center bottom":"bottom","middle center left":"bottom","middle center right":"bottom","middle center top":"bottom"},Nf=e=>{var t;return null!==(t=If[e])&&void 0!==t?t:"bottom"},Of={top:{originX:.5,originY:1},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},right:{originX:0,originY:.5},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},bottom:{originX:.5,originY:0},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},left:{originX:1,originY:.5},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1},overlay:{originX:.5,originY:.5}},Df=e=>{const t=e?.defaultView?.frameElement;if(!t)return;const n=t.getBoundingClientRect();return{x:n.left,y:n.top}},Af=e=>null===e||Number.isNaN(e)?void 0:Math.round(e);function Lf(e){return e.split("-")[0]}const zf=(e={})=>({options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=function(e){return["top","bottom"].includes(Lf(e))?"x":"y"}(o),f="x"===d?"y":"x";let p=u[d],m=u[f];const h="function"==typeof s?s(t):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h},v={x:0,y:0,...a.frameOffset?.amount};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis+v[d],n=i.reference[d]+i.reference[e]-g.mainAxis+v[d];p<t?p=t:p>n&&(p=n)}if(c){var b,y;const e="y"===d?"width":"height",t=["top","left"].includes(Lf(o)),n=i.reference[f]-i.floating[e]+(t&&null!==(b=a.offset?.[f])&&void 0!==b?b:0)+(t?0:g.crossAxis)+v[f],r=i.reference[f]+i.reference[e]+(t?0:null!==(y=a.offset?.[f])&&void 0!==y?y:0)-(t?g.crossAxis:0)+v[f];m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}});const Ff="Popover",Bf=()=>(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",className:"components-popover__triangle",role:"presentation"},(0,a.createElement)(r.Path,{className:"components-popover__triangle-bg",d:"M 0 0 L 50 50 L 100 0"}),(0,a.createElement)(r.Path,{className:"components-popover__triangle-border",d:"M 0 0 L 50 50 L 100 0",vectorEffect:"non-scaling-stroke"})),jf=(0,a.forwardRef)((({style:e,placement:t,shouldAnimate:n=!1,...r},o)=>{const i=function(){!Bt.current&&jt();const[e]=(0,v.useState)(Ft.current);return e}(),{style:s,...l}=(0,a.useMemo)((()=>(e=>{const t=e.startsWith("top")||e.startsWith("bottom")?"translateY":"translateX",n=e.startsWith("top")||e.startsWith("left")?1:-1;return{style:Of[e],initial:{opacity:0,scale:0,[t]:2*n+"em"},animate:{opacity:1,scale:1,[t]:0},transition:{duration:.1,ease:[0,0,.2,1]}}})(t)),[t]),c=n&&!i?{style:{...s,...e},...l}:{animate:!1,style:e};return(0,a.createElement)(Ul.div,{...c,...r,ref:o})})),Vf=(0,a.createContext)(void 0),Hf=(0,a.forwardRef)(((e,t)=>{var n,r;const{animate:o=!0,headerTitle:i,onClose:s,children:c,className:d,noArrow:f=!0,position:p,placement:m="bottom-start",offset:h=0,focusOnMount:g="firstElement",anchor:v,expandOnMobile:b,onFocusOutside:y,__unstableSlotName:w=Ff,flip:x=!0,resize:E=!0,shift:_=!1,variant:C,__unstableForcePosition:S,anchorRef:k,anchorRect:T,getAnchorRect:R,isAlternate:P,...M}=e;let I=x,N=E;void 0!==S&&(ql()("`__unstableForcePosition` prop in wp.components.Popover",{since:"6.1",version:"6.3",alternative:"`flip={ false }` and `resize={ false }`"}),I=!S,N=!S),void 0!==k&&ql()("`anchorRef` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==T&&ql()("`anchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"}),void 0!==R&&ql()("`getAnchorRect` prop in wp.components.Popover",{since:"6.1",alternative:"`anchor` prop"});const O=P?"toolbar":C;void 0!==P&&ql()("`isAlternate` prop in wp.components.Popover",{since:"6.2",alternative:"`variant` prop with the `'toolbar'` value"});const D=(0,a.useRef)(null),[A,L]=(0,a.useState)(null),[z,F]=(0,a.useState)(),B=(0,a.useCallback)((e=>{L(e)}),[]),j=(0,u.useViewportMatch)("medium","<"),V=b&&j,H=!V&&!f,$=p?Nf(p):m,W=(0,a.useRef)(Df(z)),U=[..."overlay"===m?[{name:"overlay",fn({rects:e}){return e.reference}},Je({apply({rects:e,elements:t}){var n;const{firstElementChild:r}=null!==(n=t.floating)&&void 0!==n?n:{};r instanceof HTMLElement&&Object.assign(r.style,{width:`${e.reference.width}px`,height:`${e.reference.height}px`})}})]:[],{name:"frameOffset",fn({x:e,y:t}){return W.current?{x:e+W.current.x,y:t+W.current.y,data:{amount:W.current}}:{x:e,y:t}}},Xe(h),I?Ye():void 0,N?Je({apply(e){var t;const{firstElementChild:n}=null!==(t=te.floating.current)&&void 0!==t?t:{};n instanceof HTMLElement&&Object.assign(n.style,{maxHeight:`${e.availableHeight}px`,overflow:"auto"})}}):void 0,_?Ze({crossAxis:!0,limiter:zf(),padding:1}):void 0,Lt({element:D})].filter((e=>void 0!==e)),G=(0,a.useContext)(Vf)||w,K=ef(G);let q;(s||y)&&(q=(e,t)=>{"focus-outside"===e&&y?y(t):s&&s()});const[Y,X]=(0,u.__experimentalUseDialog)({focusOnMount:g,__unstableOnClose:q,onClose:q}),{x:Z,y:J,reference:Q,floating:ee,refs:te,strategy:ne,update:re,placement:oe,middlewareData:{arrow:ie}}=At({placement:"overlay"===$?void 0:$,middleware:U,whileElementsMounted:(e,t,n)=>Pt(e,t,n,{animationFrame:!0})}),ae=(0,a.useCallback)((e=>{D.current=e,re()}),[re]),se=k?.top,le=k?.bottom,ce=k?.startContainer,ue=k?.current;(0,a.useLayoutEffect)((()=>{const e=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o,fallbackDocument:i})=>{var a;let s;return e?s=e.ownerDocument:t?.top?s=t?.top.ownerDocument:t?.startContainer?s=t.startContainer.ownerDocument:t?.current?s=t.current.ownerDocument:t?s=t.ownerDocument:n&&n?.ownerDocument?s=n.ownerDocument:r&&(s=r(o)?.ownerDocument),null!==(a=s)&&void 0!==a?a:i})({anchor:v,anchorRef:k,anchorRect:T,getAnchorRect:R,fallbackReferenceElement:A,fallbackDocument:document}),t=(e=>{const t=e?.defaultView?.frameElement;if(!t)return{x:1,y:1};const n=t.getBoundingClientRect();return{x:n.width/t.offsetWidth,y:n.height/t.offsetHeight}})(e),n=(({anchor:e,anchorRef:t,anchorRect:n,getAnchorRect:r,fallbackReferenceElement:o,scale:i})=>{var a;let s=null;if(e?s=e:t?.top?s={getBoundingClientRect(){const e=t.top.getBoundingClientRect(),n=t.bottom.getBoundingClientRect();return new window.DOMRect(e.x,e.y,e.width,n.bottom-e.top)}}:t?.current?s=t.current:t?s=t:n?s={getBoundingClientRect(){return n}}:r?s={getBoundingClientRect(){var e,t,n,i;const a=r(o);return new window.DOMRect(null!==(e=a.x)&&void 0!==e?e:a.left,null!==(t=a.y)&&void 0!==t?t:a.top,null!==(n=a.width)&&void 0!==n?n:a.right-a.left,null!==(i=a.height)&&void 0!==i?i:a.bottom-a.top)}}:o&&(s=o.parentElement),s&&(1!==i.x||1!==i.y)){const e=s.getBoundingClientRect();s={getBoundingClientRect(){return new window.DOMRect(e.x*i.x,e.y*i.y,e.width*i.x,e.height*i.y)}}}return null!==(a=s)&&void 0!==a?a:null})({anchor:v,anchorRef:k,anchorRect:T,getAnchorRect:R,fallbackReferenceElement:A,scale:t});Q(n),F(e)}),[v,k,se,le,ce,ue,T,R,A,Q]),(0,a.useLayoutEffect)((()=>{if(z===document||z===te.floating.current?.ownerDocument||!z?.defaultView?.frameElement)return void(W.current=void 0);const{defaultView:e}=z,{frameElement:t}=e,n=t?(0,Yl.getScrollContainer)(t):null,r=()=>{W.current=Df(z),re()};return e.addEventListener("resize",r),n?.addEventListener("scroll",r),r(),()=>{e.removeEventListener("resize",r),n?.removeEventListener("scroll",r)}}),[z,re,te.floating]);const de=(0,u.useMergeRefs)([ee,Y,t]);let fe=(0,a.createElement)(jf,{shouldAnimate:o&&!V,placement:oe,className:l()("components-popover",d,{"is-expanded":V,"is-positioned":null!==Z&&null!==J,[`is-${"toolbar"===O?"alternate":O}`]:O}),...M,ref:de,...X,tabIndex:-1,style:V?void 0:{position:ne,top:0,left:0,x:Af(Z),y:Af(J)}},V&&(0,a.createElement)(Ed,null),V&&(0,a.createElement)("div",{className:"components-popover__header"},(0,a.createElement)("span",{className:"components-popover__header-title"},i),(0,a.createElement)(bd,{className:"components-popover__close",icon:Gl,onClick:s})),(0,a.createElement)("div",{className:"components-popover__content"},c),H&&(0,a.createElement)("div",{ref:ae,className:["components-popover__arrow",`is-${oe.split("-")[0]}`].join(" "),style:{left:void 0!==ie?.x&&Number.isFinite(ie.x)?`${ie.x+(null!==(n=W.current?.x)&&void 0!==n?n:0)}px`:"",top:void 0!==ie?.y&&Number.isFinite(ie.y)?`${ie.y+(null!==(r=W.current?.y)&&void 0!==r?r:0)}px`:""}},(0,a.createElement)(Bf,null)));return K.ref&&(fe=(0,a.createElement)(Tf,{name:G},fe)),k||T||v?fe:(0,a.createElement)("span",{ref:B},fe)}));Hf.Slot=(0,a.forwardRef)((function({name:e=Ff},t){return(0,a.createElement)(Rf,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})})),Hf.__unstableSlotNameProvider=Vf.Provider;var $f=Hf;var Wf=function(e){const{shortcut:t,className:n}=e;if(!t)return null;let r,o;return"string"==typeof t&&(r=t),null!==t&&"object"==typeof t&&(r=t.display,o=t.ariaLabel),(0,a.createElement)("span",{className:n,"aria-label":o},r)};const Uf=700,Gf=(0,a.createElement)("div",{className:"event-catcher"}),Kf=({eventHandlers:e,child:t,childrenWithPopover:n,mergedRefs:r})=>(0,a.cloneElement)((0,a.createElement)("span",{className:"disabled-element-wrapper"},(0,a.cloneElement)(Gf,e),(0,a.cloneElement)(t,{children:n,ref:r})),{...e}),qf=({child:e,eventHandlers:t,childrenWithPopover:n,mergedRefs:r})=>(0,a.cloneElement)(e,{...t,children:n,ref:r}),Yf=(e,t,n)=>{if(1!==a.Children.count(e))return;const r=a.Children.only(e);r.props.disabled||"function"==typeof r.props[t]&&r.props[t](n)};var Xf=function(e){const{children:t,position:n="bottom middle",text:r,shortcut:o,delay:i=Uf,...s}=e,[c,d]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),m=(0,u.useDebounce)(p,i),[h,g]=(0,a.useState)(null),v=a.Children.toArray(t)[0]?.ref,b=(0,u.useMergeRefs)([g,v]),y=e=>{"OPTION"!==e.target.tagName&&(Yf(t,"onMouseDown",e),document.addEventListener("mouseup",E),d(!0))},w=e=>{"OPTION"!==e.target.tagName&&(Yf(t,"onMouseUp",e),document.removeEventListener("mouseup",E),d(!1))},x=e=>"mouseUp"===e?w:"mouseDown"===e?y:void 0,E=x("mouseUp"),_=(e,n)=>r=>{if(Yf(t,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&c)return;m.cancel();const o=["focus","mouseenter"].includes(r.type);o!==f&&(n?m(o):p(o))},C=()=>{m.cancel(),document.removeEventListener("mouseup",E)};if((0,a.useEffect)((()=>C),[]),1!==a.Children.count(t))return t;const S={onMouseEnter:_("onMouseEnter",!0),onMouseLeave:_("onMouseLeave"),onClick:_("onClick"),onFocus:_("onFocus"),onBlur:_("onBlur"),onMouseDown:x("mouseDown")},k=a.Children.only(t),{children:T,disabled:R}=k.props,P=R?Kf:qf,M=(({anchor:e,grandchildren:t,isOver:n,offset:r,position:o,shortcut:i,text:s,className:c,...u})=>(0,a.concatChildren)(t,n&&(0,a.createElement)($f,{focusOnMount:!1,position:o,className:l()("components-tooltip",c),"aria-hidden":"true",animate:!1,offset:r,anchor:e,shift:!0,...u},s,(0,a.createElement)(Wf,{className:"components-tooltip__shortcut",shortcut:i}))))({grandchildren:T,...{anchor:h,isOver:f,offset:4,position:n,shortcut:o,text:r},...s});return P({child:k,eventHandlers:S,childrenWithPopover:M,mergedRefs:b})};const Zf=[["top left","top center","top right"],["center left","center center","center right"],["bottom left","bottom center","bottom right"]],Jf={"top left":(0,c.__)("Top Left"),"top center":(0,c.__)("Top Center"),"top right":(0,c.__)("Top Right"),"center left":(0,c.__)("Center Left"),"center center":(0,c.__)("Center"),center:(0,c.__)("Center"),"center right":(0,c.__)("Center Right"),"bottom left":(0,c.__)("Bottom Left"),"bottom center":(0,c.__)("Bottom Center"),"bottom right":(0,c.__)("Bottom Right")},Qf=Zf.flat();function ep(e){return("center"===e?"center center":e).replace("-"," ")}function tp(e,t){return`${e}-${ep(t).replace(" ","-")}`}o(1281);function np(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Au(t)}var rp=function(){var e=np.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};var op={grad:.9,turn:360,rad:360/(2*Math.PI)},ip=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},ap=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},sp=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},lp=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},cp=function(e){return{r:sp(e.r,0,255),g:sp(e.g,0,255),b:sp(e.b,0,255),a:sp(e.a)}},up=function(e){return{r:ap(e.r),g:ap(e.g),b:ap(e.b),a:ap(e.a,3)}},dp=/^#([0-9a-f]{3,8})$/i,fp=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},pp=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(s<0?s+6:s),s:i?a/i*100:0,v:i/255*100,a:o}},mp=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,s,a,a,l,r][c],g:255*[l,r,r,s,a,a][c],b:255*[a,a,l,r,r,s][c],a:o}},hp=function(e){return{h:lp(e.h),s:sp(e.s,0,100),l:sp(e.l,0,100),a:sp(e.a)}},gp=function(e){return{h:ap(e.h),s:ap(e.s),l:ap(e.l),a:ap(e.a,3)}},vp=function(e){return mp((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},bp=function(e){return{h:(t=pp(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},yp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,wp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,xp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ep=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_p={string:[[function(e){var t=dp.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?ap(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?ap(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=xp.exec(e)||Ep.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:cp({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=yp.exec(e)||wp.exec(e);if(!t)return null;var n,r,o=hp({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(op[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return vp(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return ip(t)&&ip(n)&&ip(r)?cp({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!ip(t)||!ip(n)||!ip(r))return null;var a=hp({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return vp(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!ip(t)||!ip(n)||!ip(r))return null;var a=function(e){return{h:lp(e.h),s:sp(e.s,0,100),v:sp(e.v,0,100),a:sp(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return mp(a)},"hsv"]]},Cp=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},Sp=function(e){return"string"==typeof e?Cp(e.trim(),_p.string):"object"==typeof e&&null!==e?Cp(e,_p.object):[null,void 0]},kp=function(e,t){var n=bp(e);return{h:n.h,s:sp(n.s+100*t,0,100),l:n.l,a:n.a}},Tp=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Rp=function(e,t){var n=bp(e);return{h:n.h,s:n.s,l:sp(n.l+100*t,0,100),a:n.a}},Pp=function(){function e(e){this.parsed=Sp(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return ap(Tp(this.rgba),2)},e.prototype.isDark=function(){return Tp(this.rgba)<.5},e.prototype.isLight=function(){return Tp(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=up(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?fp(ap(255*o)):"","#"+fp(t)+fp(n)+fp(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return up(this.rgba)},e.prototype.toRgbString=function(){return t=(e=up(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return gp(bp(this.rgba))},e.prototype.toHslString=function(){return t=(e=gp(bp(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=pp(this.rgba),{h:ap(e.h),s:ap(e.s),v:ap(e.v),a:ap(e.a,3)};var e},e.prototype.invert=function(){return Mp({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Mp(kp(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Mp(kp(this.rgba,-e))},e.prototype.grayscale=function(){return Mp(kp(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Mp(Rp(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Mp(Rp(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Mp({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):ap(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=bp(this.rgba);return"number"==typeof e?Mp({h:e,s:t.s,l:t.l,a:t.a}):ap(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Mp(e).toHex()},e}(),Mp=function(e){return e instanceof Pp?e:new Pp(e)},Ip=[],Np=function(e){e.forEach((function(e){Ip.indexOf(e)<0&&(e(Pp,_p),Ip.push(e))}))};function Op(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var i={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,a,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var l=this.toRgb(),c=1/0,u="black";if(!i.length)for(var d in n)i[d]=new e(n[d]).toRgb();for(var f in n){var p=(o=l,a=i[f],Math.pow(o.r-a.r,2)+Math.pow(o.g-a.g,2)+Math.pow(o.b-a.b,2));p<c&&(c=p,u=f)}return u}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}function Dp(e="",t=1){return Mp(e).alpha(t).toRgbString()}Np([Op]);const Ap="#fff",Lp={900:"#1e1e1e",800:"#2f2f2f",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},zp="var(--wp-components-color-accent-darker-10, var(--wp-admin-theme-color-darker-10, #2145e6))",Fp={theme:"var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9))",themeDark10:zp,background:Ap,backgroundDisabled:Lp[100],border:Lp[600],borderHover:Lp[700],borderFocus:zp,borderDisabled:Lp[400],textDisabled:Lp[600],textDark:Ap,darkGrayPlaceholder:Dp(Lp[900],.62),lightGrayPlaceholder:Dp(Ap,.65)},Bp=Object.freeze({gray:Lp,white:Ap,alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},ui:Fp});function jp(e="transition"){let t;switch(e){case"transition":t="transition-duration: 0ms;";break;case"animation":t="animation-duration: 1ms;";break;default:t="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${t};\n\t\t}\n\t`}var Vp={name:"93uojk",styles:"border-radius:2px;box-sizing:border-box;direction:ltr;display:grid;grid-template-columns:repeat( 3, 1fr );outline:none"};const Hp=()=>Vp,$p=fd("div",{target:"ecapk1j3"})(Hp,";border:1px solid transparent;cursor:pointer;grid-template-columns:auto;",(({size:e=92})=>np("grid-template-rows:repeat( 3, calc( ",e,"px / 3 ) );width:",e,"px;","")),";"),Wp=fd("div",{target:"ecapk1j2"})({name:"1x5gbbj",styles:"box-sizing:border-box;display:grid;grid-template-columns:repeat( 3, 1fr )"}),Up=e=>np("background:currentColor;box-sizing:border-box;display:grid;margin:auto;transition:all 120ms linear;",jp("transition")," ",(({isActive:e})=>np("box-shadow:",e?`0 0 0 2px ${Bp.gray[900]}`:null,";color:",e?Bp.gray[900]:Bp.gray[400],";*:hover>&{color:",e?Bp.gray[900]:Bp.ui.theme,";}",""))(e),";",""),Gp=fd("span",{target:"ecapk1j1"})("height:6px;width:6px;",Up,";"),Kp=fd("span",{target:"ecapk1j0"})({name:"rjf3ub",styles:"appearance:none;border:none;box-sizing:border-box;margin:0;display:flex;position:relative;outline:none;align-items:center;justify-content:center;padding:0"});function qp({isActive:e=!1,value:t,...n}){const r=Jf[t];return(0,a.createElement)(Xf,{text:r},(0,a.createElement)(ke,{as:Kp,role:"gridcell",...n},(0,a.createElement)(hd,null,t),(0,a.createElement)(Gp,{isActive:e,role:"presentation"})))}function Yp(e){return(0,v.useState)(e)[0]}function Xp(e){for(var t,n=[[]],r=function(){var e=t.value,r=n.find((function(t){return!t[0]||t[0].groupId===e.groupId}));r?r.push(e):n.push([e])},o=g(e);!(t=o()).done;)r();return n}function Zp(e){for(var t,n=[],r=g(e);!(t=r()).done;){var o=t.value;n.push.apply(n,o)}return n}function Jp(e){return e.slice().reverse()}function Qp(e,t){if(t)return null==e?void 0:e.find((function(e){return e.id===t&&!e.disabled}))}function em(e,t){return function(e){return"function"==typeof e}(e)?e(t):e}function tm(e){void 0===e&&(e={});var t=Yp(e).baseId,n=(0,v.useContext)(we),r=(0,v.useRef)(0),o=(0,v.useState)((function(){return t||n()}));return{baseId:o[0],setBaseId:o[1],unstable_idCountRef:r}}function nm(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function rm(e,t){return e.findIndex((function(e){return!(!e.ref.current||!t.ref.current)&&nm(t.ref.current,e.ref.current)}))}function om(e){for(var t,n=0,r=g(e);!(t=r()).done;){var o=t.value.length;o>n&&(n=o)}return n}function im(e){for(var t=Xp(e),n=om(t),r=[],o=0;o<n;o+=1)for(var i,a=g(t);!(i=a()).done;){var s=i.value;s[o]&&r.push(p(p({},s[o]),{},{groupId:s[o].groupId?""+o:void 0}))}return r}function am(e,t,n){for(var r,o=om(e),i=g(e);!(r=i()).done;)for(var a=r.value,s=0;s<o;s+=1){var l=a[s];if(!l||n&&l.disabled){var c=0===s&&n?ue(a):a[s-1];a[s]=c&&t!==(null==c?void 0:c.id)&&n?c:{id:"__EMPTY_ITEM__",disabled:!0,ref:{current:null},groupId:null==c?void 0:c.groupId}}}return e}var sm={id:null,ref:{current:null}};function lm(e,t){return e.filter((function(e){return e.groupId===t}))}var cm={horizontal:"vertical",vertical:"horizontal"};function um(e,t,n){return n in e?[].concat(e.slice(0,n),[t],e.slice(n)):[].concat(e,[t])}function dm(e){var t=e.map((function(e,t){return[t,e]})),n=!1;return t.sort((function(e,t){var r=e[0],o=e[1],i=t[0],a=t[1],s=o.ref.current,l=a.ref.current;return s&&l?nm(s,l)?(r>i&&(n=!0),-1):(r<i&&(n=!0),1):0})),n?t.map((function(e){e[0];return e[1]})):e}function fm(e,t){var n=dm(e);e!==n&&t(n)}function pm(e,t){var n=(0,v.useRef)([]);(0,v.useEffect)((function(){for(var r,o=function(e){for(var t,n=e[0],r=e.slice(1),o=null==n||null===(t=n.ref.current)||void 0===t?void 0:t.parentElement,i=function(){var e=o;if(r.every((function(t){return e.contains(t.ref.current)})))return{v:o};o=o.parentElement};o;){var a=i();if("object"==typeof a)return a.v}return H(o).body}(e),i=new IntersectionObserver((function(){!!n.current.length&&fm(e,t),n.current=e}),{root:o}),a=g(e);!(r=a()).done;){var s=r.value;s.ref.current&&i.observe(s.ref.current)}return function(){i.disconnect()}}),[e])}function mm(e,t){"function"==typeof IntersectionObserver?pm(e,t):function(e,t){(0,v.useEffect)((function(){var n=setTimeout((function(){return fm(e,t)}),250);return function(){return clearTimeout(n)}}))}(e,t)}function hm(e,t){var n=e.unstable_virtual,r=e.rtl,o=e.orientation,i=e.items,a=e.groups,s=e.currentId,l=e.loop,c=e.wrap,u=e.pastIds,d=e.shift,f=e.unstable_moves,m=e.unstable_includesBaseElement,h=e.initialVirtual,g=e.initialRTL,v=e.initialOrientation,b=e.initialCurrentId,y=e.initialLoop,w=e.initialWrap,x=e.initialShift,E=e.hasSetCurrentId;switch(t.type){case"registerGroup":var _=t.group;if(0===a.length)return p(p({},e),{},{groups:[_]});var C=rm(a,_);return p(p({},e),{},{groups:um(a,_,C)});case"unregisterGroup":var S=t.id,k=a.filter((function(e){return e.id!==S}));return k.length===a.length?e:p(p({},e),{},{groups:k});case"registerItem":var T,R=t.item,P=a.find((function(e){var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(R.ref.current)})),M=p({groupId:null==P?void 0:P.id},R),I=rm(i,M),N=p(p({},e),{},{items:um(i,M,I)});return E||f||void 0!==b?N:p(p({},N),{},{currentId:null===(T=ue(N.items))||void 0===T?void 0:T.id});case"unregisterItem":var O=t.id,D=i.filter((function(e){return e.id!==O}));if(D.length===i.length)return e;var A=u.filter((function(e){return e!==O})),L=p(p({},e),{},{pastIds:A,items:D});if(s&&s===O){var z=m?null:de(p(p({},L),{},{currentId:A[0]}));return p(p({},L),{},{currentId:z})}return L;case"move":var F=t.id;if(void 0===F)return e;var B=u.filter((function(e){return e!==s&&e!==F})),j=s?[s].concat(B):B,V=p(p({},e),{},{pastIds:j});if(null===F)return p(p({},V),{},{unstable_moves:f+1,currentId:de(V,F)});var H=Qp(i,F);return p(p({},V),{},{unstable_moves:H?f+1:f,currentId:de(V,null==H?void 0:H.id)});case"next":if(null==s)return hm(e,p(p({},t),{},{type:"first"}));var $=r&&"vertical"!==o,W=$?Jp(i):i,U=W.find((function(e){return e.id===s}));if(!U)return hm(e,p(p({},t),{},{type:"first"}));var G=!!U.groupId,K=W.indexOf(U),q=W.slice(K+1),Y=lm(q,U.groupId);if(t.allTheWay){var X=ue($?lm(W,U.groupId):Jp(Y));return hm(e,p(p({},t),{},{type:"move",id:null==X?void 0:X.id}))}var Z=function(e){return e&&cm[e]}(G?o||"horizontal":o),J=l&&l!==Z,Q=G&&c&&c!==Z,ee=t.hasNullItem||!G&&J&&m;if(J){var te=function(e,t,n){var r=e.findIndex((function(e){return e.id===t}));return[].concat(e.slice(r+1),n?[sm]:[],e.slice(0,r))}(Q&&!ee?W:lm(W,U.groupId),s,ee),ne=ue(te,s);return hm(e,p(p({},t),{},{type:"move",id:null==ne?void 0:ne.id}))}if(Q){var re=ue(ee?Y:q,s),oe=ee?(null==re?void 0:re.id)||null:null==re?void 0:re.id;return hm(e,p(p({},t),{},{type:"move",id:oe}))}var ie=ue(Y,s);return hm(e,!ie&&ee?p(p({},t),{},{type:"move",id:null}):p(p({},t),{},{type:"move",id:null==ie?void 0:ie.id}));case"previous":var ae=!!!a.length&&m,se=hm(p(p({},e),{},{items:Jp(i)}),p(p({},t),{},{type:"next",hasNullItem:ae}));return p(p({},se),{},{items:i});case"down":var le=d&&!t.allTheWay,ce=im(Zp(am(Xp(i),s,le))),fe=l&&"horizontal"!==l&&m,pe=hm(p(p({},e),{},{orientation:"vertical",items:ce}),p(p({},t),{},{type:"next",hasNullItem:fe}));return p(p({},pe),{},{orientation:o,items:i});case"up":var me=d&&!t.allTheWay,he=im(Jp(Zp(am(Xp(i),s,me)))),ge=m,ve=hm(p(p({},e),{},{orientation:"vertical",items:he}),p(p({},t),{},{type:"next",hasNullItem:ge}));return p(p({},ve),{},{orientation:o,items:i});case"first":var be=ue(i);return hm(e,p(p({},t),{},{type:"move",id:null==be?void 0:be.id}));case"last":var ye=hm(p(p({},e),{},{items:Jp(i)}),p(p({},t),{},{type:"first"}));return p(p({},ye),{},{items:i});case"sort":return p(p({},e),{},{items:dm(i),groups:dm(a)});case"setVirtual":return p(p({},e),{},{unstable_virtual:em(t.virtual,n)});case"setRTL":return p(p({},e),{},{rtl:em(t.rtl,r)});case"setOrientation":return p(p({},e),{},{orientation:em(t.orientation,o)});case"setCurrentId":var we=de(p(p({},e),{},{currentId:em(t.currentId,s)}));return p(p({},e),{},{currentId:we,hasSetCurrentId:!0});case"setLoop":return p(p({},e),{},{loop:em(t.loop,l)});case"setWrap":return p(p({},e),{},{wrap:em(t.wrap,c)});case"setShift":return p(p({},e),{},{shift:em(t.shift,d)});case"setIncludesBaseElement":return p(p({},e),{},{unstable_includesBaseElement:em(t.includesBaseElement,m)});case"reset":return p(p({},e),{},{unstable_virtual:h,rtl:g,orientation:v,currentId:de(p(p({},e),{},{currentId:b})),loop:y,wrap:w,shift:x,unstable_moves:0,pastIds:[]});case"setItems":return p(p({},e),{},{items:t.items});default:throw new Error}}function gm(e){return(0,v.useCallback)(e,[])}function vm(e){void 0===e&&(e={});var t=Yp(e),n=t.unstable_virtual,r=void 0!==n&&n,o=t.rtl,i=void 0!==o&&o,a=t.orientation,s=t.currentId,l=t.loop,c=void 0!==l&&l,u=t.wrap,d=void 0!==u&&u,f=t.shift,h=void 0!==f&&f,g=t.unstable_includesBaseElement,b=tm(m(t,["unstable_virtual","rtl","orientation","currentId","loop","wrap","shift","unstable_includesBaseElement"])),y=(0,v.useReducer)(hm,{unstable_virtual:r,rtl:i,orientation:a,items:[],groups:[],currentId:s,loop:c,wrap:d,shift:h,unstable_moves:0,pastIds:[],unstable_includesBaseElement:null!=g?g:null===s,initialVirtual:r,initialRTL:i,initialOrientation:a,initialCurrentId:s,initialLoop:c,initialWrap:d,initialShift:h}),w=y[0],x=(w.pastIds,w.initialVirtual,w.initialRTL,w.initialOrientation,w.initialCurrentId,w.initialLoop,w.initialWrap,w.initialShift,w.hasSetCurrentId,m(w,["pastIds","initialVirtual","initialRTL","initialOrientation","initialCurrentId","initialLoop","initialWrap","initialShift","hasSetCurrentId"])),E=y[1],_=(0,v.useState)(!1),C=_[0],S=_[1],k=function(){var e=(0,v.useRef)(!1);return U((function(){return function(){e.current=!0}}),[]),e}(),T=(0,v.useCallback)((function(e){return E({type:"setItems",items:e})}),[]);return mm(x.items,T),p(p(p({},b),x),{},{unstable_hasActiveWidget:C,unstable_setHasActiveWidget:S,registerItem:gm((function(e){k.current||E({type:"registerItem",item:e})})),unregisterItem:gm((function(e){k.current||E({type:"unregisterItem",id:e})})),registerGroup:gm((function(e){k.current||E({type:"registerGroup",group:e})})),unregisterGroup:gm((function(e){k.current||E({type:"unregisterGroup",id:e})})),move:gm((function(e){return E({type:"move",id:e})})),next:gm((function(e){return E({type:"next",allTheWay:e})})),previous:gm((function(e){return E({type:"previous",allTheWay:e})})),up:gm((function(e){return E({type:"up",allTheWay:e})})),down:gm((function(e){return E({type:"down",allTheWay:e})})),first:gm((function(){return E({type:"first"})})),last:gm((function(){return E({type:"last"})})),sort:gm((function(){return E({type:"sort"})})),unstable_setVirtual:gm((function(e){return E({type:"setVirtual",virtual:e})})),setRTL:gm((function(e){return E({type:"setRTL",rtl:e})})),setOrientation:gm((function(e){return E({type:"setOrientation",orientation:e})})),setCurrentId:gm((function(e){return E({type:"setCurrentId",currentId:e})})),setLoop:gm((function(e){return E({type:"setLoop",loop:e})})),setWrap:gm((function(e){return E({type:"setWrap",wrap:e})})),setShift:gm((function(e){return E({type:"setShift",shift:e})})),unstable_setIncludesBaseElement:gm((function(e){return E({type:"setIncludesBaseElement",includesBaseElement:e})})),reset:gm((function(){return E({type:"reset"})}))})}function bm(e,t,n){return void 0===n&&(n={}),"function"==typeof FocusEvent?new FocusEvent(t,n):Ee(e,t,n)}function ym(e,t){var n=bm(e,"blur",t),r=e.dispatchEvent(n),o=I(I({},t),{},{bubbles:!0});return e.dispatchEvent(bm(e,"focusout",o)),r}function wm(e,t,n){return e.dispatchEvent(function(e,t,n){if(void 0===n&&(n={}),"function"==typeof KeyboardEvent)return new KeyboardEvent(t,n);var r=H(e).createEvent("KeyboardEvent");return r.initKeyboardEvent(t,n.bubbles,n.cancelable,$(e),n.key,n.location,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey),r}(e,t,n))}var xm=W&&"msCrypto"in window;var Em=W&&"msCrypto"in window;function _m(e,t,n){var r=G(n);return(0,v.useCallback)((function(n){var o;if(null===(o=r.current)||void 0===o||o.call(r,n),!n.defaultPrevented&&e&&function(e){return!!K(e)&&!e.metaKey&&"Tab"!==e.key}(n)){var i=null==t?void 0:t.ref.current;i&&(wm(i,n.type,n)||n.preventDefault(),n.currentTarget.contains(i)&&n.stopPropagation())}}),[e,t])}function Cm(e,t){return null==e?void 0:e.some((function(e){return!!t&&e.ref.current===t}))}var Sm=B({name:"Composite",compose:[le],keys:fe,useOptions:function(e){return p(p({},e),{},{currentId:de(e)})},useProps:function(e,t){var n=t.ref,r=t.onFocusCapture,o=t.onFocus,i=t.onBlurCapture,a=t.onKeyDown,s=t.onKeyDownCapture,l=t.onKeyUpCapture,c=m(t,["ref","onFocusCapture","onFocus","onBlurCapture","onKeyDown","onKeyDownCapture","onKeyUpCapture"]),u=(0,v.useRef)(null),d=Qp(e.items,e.currentId),f=(0,v.useRef)(null),h=G(r),g=G(o),b=G(i),y=G(a),w=function(e){var t=G(e),n=(0,v.useReducer)((function(e){return e+1}),0),r=n[0],o=n[1];return(0,v.useEffect)((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.ref.current;r&&n&&he(n)}),[r]),o}(d),x=Em?function(e){var t=(0,v.useRef)(null);return(0,v.useEffect)((function(){var n=H(e.current),r=function(e){var n=e.target;t.current=n};return n.addEventListener("focus",r,!0),function(){n.removeEventListener("focus",r,!0)}}),[]),t}(u):void 0;(0,v.useEffect)((function(){var t=u.current;e.unstable_moves&&!d&&(null==t||t.focus())}),[e.unstable_moves,d]);var E=_m(e.unstable_virtual,d,s),_=_m(e.unstable_virtual,d,l),C=(0,v.useCallback)((function(t){var n;if(null===(n=h.current)||void 0===n||n.call(h,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==x?void 0:x.current)||t.relatedTarget,o=Cm(e.items,r);K(t)&&o&&(t.stopPropagation(),f.current=r)}}),[e.unstable_virtual,e.items]),S=(0,v.useCallback)((function(t){var n;if(null===(n=g.current)||void 0===n||n.call(g,t),!t.defaultPrevented)if(e.unstable_virtual)K(t)&&w();else if(K(t)){var r;null===(r=e.setCurrentId)||void 0===r||r.call(e,null)}}),[e.unstable_virtual,e.setCurrentId]),k=(0,v.useCallback)((function(t){var n;if(null===(n=b.current)||void 0===n||n.call(b,t),!t.defaultPrevented&&e.unstable_virtual){var r=(null==d?void 0:d.ref.current)||null,o=function(e){return xm?q(e.currentTarget):e.relatedTarget}(t),i=Cm(e.items,o);if(K(t)&&i)o===r?f.current&&f.current!==o&&ym(f.current,t):r&&ym(r,t),t.stopPropagation();else!Cm(e.items,t.target)&&r&&ym(r,t)}}),[e.unstable_virtual,e.items,d]),T=(0,v.useCallback)((function(t){var n,r;if(null===(n=y.current)||void 0===n||n.call(y,t),!t.defaultPrevented&&null===e.currentId&&K(t)){var o="horizontal"!==e.orientation,i="vertical"!==e.orientation,a=!(null===(r=e.groups)||void 0===r||!r.length),s={ArrowUp:(a||o)&&function(){if(a){var t,n=ue(Zp(Jp(Xp(e.items))));if(null!=n&&n.id)null===(t=e.move)||void 0===t||t.call(e,n.id)}else{var r;null===(r=e.last)||void 0===r||r.call(e)}},ArrowRight:(a||i)&&e.first,ArrowDown:(a||o)&&e.first,ArrowLeft:(a||i)&&e.last,Home:e.first,End:e.last,PageUp:e.first,PageDown:e.last},l=s[t.key];l&&(t.preventDefault(),l())}}),[e.currentId,e.orientation,e.groups,e.items,e.move,e.last,e.first]);return p({ref:V(u,n),id:e.baseId,onFocus:S,onFocusCapture:C,onBlurCapture:k,onKeyDownCapture:E,onKeyDown:T,onKeyUpCapture:_,"aria-activedescendant":e.unstable_virtual&&(null==d?void 0:d.id)||void 0},c)},useComposeProps:function(e,t){t=re(e,t,!0);var n=le(e,t,!0);return e.unstable_virtual||null===e.currentId?p({tabIndex:0},n):p(p({},t),{},{ref:n.ref})}}),km=z({as:"div",useHook:Sm,useCreateElement:function(e,t,n){return R(e,t,n)}}),Tm=B({name:"Group",compose:re,keys:[],useProps:function(e,t){return p({role:"group"},t)}}),Rm=(z({as:"div",useHook:Tm}),B({name:"CompositeGroup",compose:[Tm,xe],keys:pe,propsAreEqual:function(e,t){if(!t.id||e.id!==t.id)return Tm.unstable_propsAreEqual(e,t);var n=e.currentId,r=(e.unstable_moves,m(e,["currentId","unstable_moves"])),o=t.currentId,i=(t.unstable_moves,m(t,["currentId","unstable_moves"]));if(e.items&&t.items){var a=Qp(e.items,n),s=Qp(t.items,o),l=null==a?void 0:a.groupId,c=null==s?void 0:s.groupId;if(t.id===c||t.id===l)return!1}return Tm.unstable_propsAreEqual(r,i)},useProps:function(e,t){var n=t.ref,r=m(t,["ref"]),o=(0,v.useRef)(null),i=e.id;return U((function(){var t;if(i)return null===(t=e.registerGroup)||void 0===t||t.call(e,{id:i,ref:o}),function(){var t;null===(t=e.unregisterGroup)||void 0===t||t.call(e,i)}}),[i,e.registerGroup,e.unregisterGroup]),p({ref:V(o,n)},r)}})),Pm=z({as:"div",useHook:Rm});fd("div",{target:"erowt52"})({name:"ogl07i",styles:"box-sizing:border-box;padding:2px"});const Mm=fd("div",{target:"erowt51"})("transform-origin:top left;height:100%;width:100%;",Hp,";",(()=>np({gridTemplateRows:"repeat( 3, calc( 21px / 3))",padding:1.5,maxHeight:24,maxWidth:24},"","")),";",(({disablePointerEvents:e})=>np({pointerEvents:e?"none":void 0},"","")),";"),Im=fd("span",{target:"erowt50"})("height:2px;width:2px;",Up,";",(({isActive:e})=>np("box-shadow:",e?"0 0 0 1px currentColor":null,";color:currentColor;*:hover>&{color:currentColor;}","")),";"),Nm=Kp;var Om=function({className:e,disablePointerEvents:t=!0,size:n=24,style:r={},value:o="center",...i}){const s=function(e="center"){const t=ep(e),n=Qf.indexOf(t);return n>-1?n:void 0}(o),c=(n/24).toFixed(2),u=l()("component-alignment-matrix-control-icon",e),d={...r,transform:`scale(${c})`};return(0,a.createElement)(Mm,{...i,className:u,disablePointerEvents:t,role:"presentation",style:d},Qf.map(((e,t)=>{const n=s===t;return(0,a.createElement)(Nm,{key:e},(0,a.createElement)(Im,{isActive:n}))})))};const Dm=()=>{};function Am({className:e,id:t,label:n=(0,c.__)("Alignment Matrix Control"),defaultValue:r="center center",value:o,onChange:i=Dm,width:s=92,...d}){const[f]=(0,a.useState)(null!=o?o:r),p=function(e){const t=(0,u.useInstanceId)(Am,"alignment-matrix-control");return e||t}(t),m=tp(p,f),h=vm({baseId:p,currentId:m,rtl:(0,c.isRTL)()}),{setCurrentId:g}=h;(0,a.useEffect)((()=>{void 0!==o&&g(tp(p,o))}),[o,g,p]);const v=l()("component-alignment-matrix-control",e);return(0,a.createElement)(km,{...d,...h,"aria-label":n,as:$p,className:v,role:"grid",size:s},Zf.map(((e,t)=>(0,a.createElement)(Pm,{...h,as:Wp,role:"row",key:t},e.map((e=>{const t=tp(p,e),n=h.currentId===t;return(0,a.createElement)(qp,{...h,id:t,isActive:n,key:e,value:e,onFocus:()=>{i(e)},tabIndex:n?0:-1})}))))))}Am.Icon=Om;var Lm=Am;function zm(e){return"appear"===e?"top":"left"}function Fm(e){if("loading"===e.type)return l()("components-animate__loading");const{type:t,origin:n=zm(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return l()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?l()("components-animate__slide-in","is-from-"+n):void 0}var Bm=function({type:e,options:t={},children:n}){return n({className:Fm({type:e,...t})})};function jm(){const e=(0,v.useRef)(!1);return Wt((()=>(e.current=!0,()=>{e.current=!1})),[]),e}class Vm extends v.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Hm({children:e,isPresent:t}){const n=(0,v.useId)(),r=(0,v.useRef)(null),o=(0,v.useRef)({width:0,height:0,top:0,left:0});return(0,v.useInsertionEffect)((()=>{const{width:e,height:i,top:a,left:s}=o.current;if(t||!r.current||!e||!i)return;r.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${i}px !important;\n top: ${a}px !important;\n left: ${s}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),v.createElement(Vm,{isPresent:t,childRef:r,sizeRef:o},v.cloneElement(e,{ref:r}))}const $m=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=rn(Wm),l=(0,v.useId)(),c=(0,v.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:e=>{s.set(e,!0);for(const e of s.values())if(!e)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))})),i?void 0:[n]);return(0,v.useMemo)((()=>{s.forEach(((e,t)=>s.set(t,!1)))}),[n]),v.useEffect((()=>{!n&&!s.size&&r&&r()}),[n]),"popLayout"===a&&(e=v.createElement(Hm,{isPresent:n},e)),v.createElement($t.Provider,{value:c},e)};function Wm(){return new Map}const Um=e=>e.key||"";const Gm=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{so(!o,"Replace exitBeforeEnter with mode='wait'");let[s]=function(){const e=jm(),[t,n]=(0,v.useState)(0),r=(0,v.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,v.useCallback)((()=>jr.postRender(r)),[r]),t]}();const l=(0,v.useContext)(sn).forceRender;l&&(s=l);const c=jm(),u=function(e){const t=[];return v.Children.forEach(e,(e=>{(0,v.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const f=new Set,p=(0,v.useRef)(d),m=(0,v.useRef)(new Map).current,h=(0,v.useRef)(!0);var g;if(Wt((()=>{h.current=!1,function(e,t){e.forEach((e=>{const n=Um(e);t.set(n,e)}))}(u,m),p.current=d})),g=()=>{h.current=!0,m.clear(),f.clear()},(0,v.useEffect)((()=>()=>g()),[]),h.current)return v.createElement(v.Fragment,null,d.map((e=>v.createElement($m,{key:Um(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:a},e))));d=[...d];const b=p.current.map(Um),y=u.map(Um),w=b.length;for(let e=0;e<w;e++){const t=b[e];-1===y.indexOf(t)&&f.add(t)}return"wait"===a&&f.size&&(d=[]),f.forEach((e=>{if(-1!==y.indexOf(e))return;const n=m.get(e);if(!n)return;const o=b.indexOf(e);d.splice(o,0,v.createElement($m,{key:Um(n),isPresent:!1,onExitComplete:()=>{m.delete(e),f.delete(e);const t=p.current.findIndex((t=>t.key===e));if(p.current.splice(t,1),!f.size){if(p.current=u,!1===c.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:i,mode:a},n))})),d=d.map((e=>{const t=e.key;return f.has(t)?e:v.createElement($m,{key:Um(e),isPresent:!0,presenceAffectsLayout:i,mode:a},e)})),v.createElement(v.Fragment,null,f.size?d:d.map((e=>(0,v.cloneElement)(e))))},Km=(0,a.createContext)({flexItemDisplay:void 0}),qm=()=>(0,a.useContext)(Km);const Ym={name:"zjik7",styles:"display:flex"},Xm={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},Zm={name:"82a6rk",styles:"flex:1"},Jm={name:"13nosa1",styles:">*{min-height:0;}"},Qm={name:"1pwxzk4",styles:">*{min-width:0;}"};function eh(e){const{className:t,display:n,isBlock:r=!1,...o}=Zu(e,"FlexItem"),i={},a=qm().flexItemDisplay;i.Base=np({display:n||a},"","");return{...o,className:Xu()(Xm,i.Base,r&&Zm,t)}}var th=Ju((function(e,t){const n=function(e){return eh({isBlock:!0,...Zu(e,"FlexBlock")})}(e);return(0,a.createElement)(md,{...n,ref:t})}),"FlexBlock");const nh="4px";function rh(e){if(void 0===e)return;if(!e)return"0";const t="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&window.CSS?.supports?.("margin",e.toString())||Number.isNaN(t)?e.toString():`calc(${nh} * ${e})`}const oh=new RegExp(/-left/g),ih=new RegExp(/-right/g),ah=new RegExp(/Left/g),sh=new RegExp(/Right/g);function lh(e){return"left"===e?"right":"right"===e?"left":oh.test(e)?e.replace(oh,"-right"):ih.test(e)?e.replace(ih,"-left"):ah.test(e)?e.replace(ah,"Right"):sh.test(e)?e.replace(sh,"Left"):e}const ch=(e={})=>Object.fromEntries(Object.entries(e).map((([e,t])=>[lh(e),t])));function uh(e={},t){return()=>t?(0,c.isRTL)()?np(t,""):np(e,""):(0,c.isRTL)()?np(ch(e),""):np(e,"")}uh.watch=()=>(0,c.isRTL)();const dh=e=>null!=e;const fh=Ju((function(e,t){const n=function(e){const{className:t,margin:n,marginBottom:r=2,marginLeft:o,marginRight:i,marginTop:a,marginX:s,marginY:l,padding:c,paddingBottom:u,paddingLeft:d,paddingRight:f,paddingTop:p,paddingX:m,paddingY:h,...g}=Zu(e,"Spacer");return{...g,className:Xu()(dh(n)&&np("margin:",rh(n),";",""),dh(l)&&np("margin-bottom:",rh(l),";margin-top:",rh(l),";",""),dh(s)&&np("margin-left:",rh(s),";margin-right:",rh(s),";",""),dh(a)&&np("margin-top:",rh(a),";",""),dh(r)&&np("margin-bottom:",rh(r),";",""),dh(o)&&uh({marginLeft:rh(o)})(),dh(i)&&uh({marginRight:rh(i)})(),dh(c)&&np("padding:",rh(c),";",""),dh(h)&&np("padding-bottom:",rh(h),";padding-top:",rh(h),";",""),dh(m)&&np("padding-left:",rh(m),";padding-right:",rh(m),";",""),dh(p)&&np("padding-top:",rh(p),";",""),dh(u)&&np("padding-bottom:",rh(u),";",""),dh(d)&&uh({paddingLeft:rh(d)})(),dh(f)&&uh({paddingRight:rh(f)})(),t)}}(e);return(0,a.createElement)(md,{...n,ref:t})}),"Spacer");var ph=fh;var mh=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));var hh=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M7 11.5h10V13H7z"}));const gh=["40em","52em","64em"],vh=(e={})=>{const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>gh.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${gh.length} breakpoints, got index ${t}`);const[n,r]=(0,a.useState)(t);return(0,a.useEffect)((()=>{const e=()=>{const e=gh.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n};function bh(e,t={}){const n=vh(t);if(!Array.isArray(e)&&"function"!=typeof e)return e;const r=e||[];return r[n>=r.length?r.length-1:n]}function yh(e){const{align:t,className:n,direction:r="row",expanded:o=!0,gap:i=2,justify:s="space-between",wrap:l=!1,...c}=Zu(function(e){const{isReversed:t,...n}=e;return void 0!==t?(ql()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),u=bh(Array.isArray(r)?r:[r]),d="string"==typeof u&&!!u.includes("column"),f=Xu();return{...c,className:(0,a.useMemo)((()=>{const e=np({alignItems:null!=t?t:d?"normal":"center",flexDirection:u,flexWrap:l?"wrap":void 0,gap:rh(i),justifyContent:s,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0},"","");return f(Ym,e,d?Jm:Qm,n)}),[t,n,f,u,o,i,d,s,l]),isColumn:d}}var wh=Ju((function(e,t){const{children:n,isColumn:r,...o}=yh(e);return(0,a.createElement)(Km.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,a.createElement)(md,{...o,ref:t},n))}),"Flex");var xh=Ju((function(e,t){const n=eh(e);return(0,a.createElement)(md,{...n,ref:t})}),"FlexItem");const Eh={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"};function _h(e){return null!=e}const Ch=e=>"string"==typeof e?(e=>parseFloat(e))(e):e,Sh="…",kh={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},Th={ellipsis:Sh,ellipsizeMode:kh.auto,limit:0,numberOfLines:0};function Rh(e="",t){const n={...Th,...t},{ellipsis:r,ellipsizeMode:o,limit:i}=n;if(o===kh.none)return e;let a,s;switch(o){case kh.head:a=0,s=i;break;case kh.middle:a=Math.floor(i/2),s=Math.floor(i/2);break;default:a=i,s=0}const l=o!==kh.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,i=~~t,a=~~n,s=_h(r)?r:Sh;return 0===i&&0===a||i>=o||a>=o||i+a>=o?e:0===a?e.slice(0,i)+s:e.slice(0,i)+s+e.slice(o-a)}(e,a,s,r):e;return l}function Ph(e){const{className:t,children:n,ellipsis:r=Sh,ellipsizeMode:o=kh.auto,limit:i=0,numberOfLines:s=0,...l}=Zu(e,"Truncate"),c=Xu(),u=Rh("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:i,numberOfLines:s}),d=o===kh.auto;return{...l,className:(0,a.useMemo)((()=>c(d&&!s&&Eh,d&&!!s&&np("-webkit-box-orient:vertical;-webkit-line-clamp:",s,";display:-webkit-box;overflow:hidden;",""),t)),[t,c,s,d]),children:u}}let Mh;Np([Op]);const Ih=wc((function(e){if("string"!=typeof e)return"";if("string"==typeof(t=e)&&Mp(t).isValid())return e;var t;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const n=function(){if("undefined"!=typeof document){if(!Mh){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),Mh=e}return Mh}}();if(!n)return"";n.style.background=e;const r=window?.getComputedStyle(n).background;return n.style.background="",r||""}));function Nh(e){const t=function(e){const t=Ih(e);return Mp(t).isLight()?"#000000":"#ffffff"}(e);return"#000000"===t?"dark":"light"}const Oh="36px",Dh="12px",Ah={controlSurfaceColor:Bp.white,controlTextActiveColor:Bp.ui.theme,controlPaddingX:Dh,controlPaddingXLarge:`calc(${Dh} * 1.3334)`,controlPaddingXSmall:`calc(${Dh} / 1.3334)`,controlBackgroundColor:Bp.white,controlBorderRadius:"2px",controlBoxShadow:"transparent",controlBoxShadowFocus:`0 0 0 0.5px ${Bp.ui.theme}`,controlDestructiveBorderColor:Bp.alert.red,controlHeight:Oh,controlHeightXSmall:`calc( ${Oh} * 0.6 )`,controlHeightSmall:`calc( ${Oh} * 0.8 )`,controlHeightLarge:`calc( ${Oh} * 1.2 )`,controlHeightXLarge:`calc( ${Oh} * 1.4 )`},Lh={toggleGroupControlBackgroundColor:Ah.controlBackgroundColor,toggleGroupControlBorderColor:Bp.ui.border,toggleGroupControlBackdropBackgroundColor:Ah.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Bp.ui.border,toggleGroupControlButtonColorActive:Ah.controlBackgroundColor};var zh=Object.assign({},Ah,Lh,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${rh(2)}`,cardPaddingSmall:`${rh(4)}`,cardPaddingMedium:`${rh(4)} ${rh(6)}`,cardPaddingLarge:`${rh(6)} ${rh(8)}`,popoverShadow:"0 0.7px 1px rgba(0, 0, 0, 0.1), 0 1.2px 1.7px -0.2px rgba(0, 0, 0, 0.1), 0 2.3px 3.3px -0.5px rgba(0, 0, 0, 0.1)",surfaceBackgroundColor:Bp.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Bp.white,surfaceColor:Bp.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});const Fh=np("color:",Bp.gray[900],";line-height:",zh.fontLineHeightBase,";margin:0;",""),Bh={name:"4zleql",styles:"display:block"},jh=np("color:",Bp.alert.green,";",""),Vh=np("color:",Bp.alert.red,";",""),Hh=np("color:",Bp.gray[700],";",""),$h=np("mark{background:",Bp.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),Wh={name:"50zrmy",styles:"text-transform:uppercase"};var Uh=o(3138);const Gh=wc((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t}));const Kh=13,qh={body:Kh,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20},Yh=[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));function Xh(e=Kh){if(e in qh)return Xh(qh[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc(${`(${e} / ${Kh})`} * ${zh.fontSize})`}function Zh(e=3){if(!Yh.includes(e))return Xh(e);return zh[`fontSizeH${e}`]}var Jh={name:"50zrmy",styles:"text-transform:uppercase"};function Qh(t){const{adjustLineHeightForInnerControls:n,align:r,children:o,className:i,color:s,ellipsizeMode:l,isDestructive:c=!1,display:u,highlightEscape:d=!1,highlightCaseSensitive:f=!1,highlightWords:p,highlightSanitize:m,isBlock:h=!1,letterSpacing:g,lineHeight:v,optimizeReadabilityFor:b,size:y,truncate:w=!1,upperCase:x=!1,variant:E,weight:_=zh.fontWeight,...C}=Zu(t,"Text");let S=o;const k=Array.isArray(p),T="caption"===y;if(k){if("string"!=typeof o)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");S=function({activeClassName:e="",activeIndex:t=-1,activeStyle:n,autoEscape:r,caseSensitive:o=!1,children:i,findChunks:s,highlightClassName:l="",highlightStyle:c={},highlightTag:u="mark",sanitize:d,searchWords:f=[],unhighlightClassName:p="",unhighlightStyle:m}){if(!i)return null;if("string"!=typeof i)return i;const h=i,g=(0,Uh.findAll)({autoEscape:r,caseSensitive:o,findChunks:s,sanitize:d,searchWords:f,textToHighlight:h}),v=u;let b,y=-1,w="";const x=g.map(((r,i)=>{const s=h.substr(r.start,r.end-r.start);if(r.highlight){let r;y++,r="object"==typeof l?o?l[s]:(l=Gh(l))[s.toLowerCase()]:l;const u=y===+t;w=`${r} ${u?e:""}`,b=!0===u&&null!==n?Object.assign({},c,n):c;const d={children:s,className:w,key:i,style:b};return"string"!=typeof v&&(d.highlightIndex=y),(0,a.createElement)(v,d)}return(0,a.createElement)("span",{children:s,className:p,key:i,style:m})}));return x}({autoEscape:d,children:o,caseSensitive:f,searchWords:p,sanitize:m})}const R=Xu();let P;!0===w&&(P="auto"),!1===w&&(P="none");const M=Ph({...C,className:(0,a.useMemo)((()=>{const t={},o=function(e,t){if(t)return t;if(!e)return;let n=`calc(${zh.controlHeight} + ${rh(2)})`;switch(e){case"large":n=`calc(${zh.controlHeightLarge} + ${rh(2)})`;break;case"small":n=`calc(${zh.controlHeightSmall} + ${rh(2)})`;break;case"xSmall":n=`calc(${zh.controlHeightXSmall} + ${rh(2)})`}return n}(n,v);if(t.Base=np({color:s,display:u,fontSize:Xh(y),fontWeight:_,lineHeight:o,letterSpacing:g,textAlign:r},"",""),t.upperCase=Jh,t.optimalTextColor=null,b){const e="dark"===Nh(b);t.optimalTextColor=np(e?{color:Bp.gray[900]}:{color:Bp.white},"","")}return R(Fh,t.Base,t.optimalTextColor,c&&Vh,!!k&&$h,h&&Bh,T&&Hh,E&&e[E],x&&t.upperCase,i)}),[n,r,i,s,R,u,h,T,c,k,g,v,b,y,x,E,_]),children:o,ellipsizeMode:l||P});return!w&&Array.isArray(o)&&(S=a.Children.map(o,(e=>{if("object"!=typeof e||null===e||!("props"in e))return e;return nd(e,["Link"])?(0,a.cloneElement)(e,{size:e.props.size||"inherit"}):e}))),{...M,children:w?M.children:S}}var eg=Ju((function(e,t){const n=Qh(e);return(0,a.createElement)(md,{as:"span",...n,ref:t})}),"Text");const tg={name:"9amh4a",styles:"font-size:11px;font-weight:500;line-height:1.4;text-transform:uppercase"};var ng={name:"1739oy8",styles:"z-index:1"};const rg=({isFocused:e})=>e?ng:"",og=fd(wh,{target:"em5sgkm7"})("box-sizing:border-box;position:relative;border-radius:2px;padding-top:0;",rg,";");var ig={name:"1d3w5wq",styles:"width:100%"};const ag=fd("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(({disabled:e})=>np({backgroundColor:e?Bp.ui.backgroundDisabled:Bp.ui.background},"",""))," ",(({__unstableInputWidth:e,labelPosition:t})=>e?"side"===t?"":np("edge"===t?{flex:`0 0 ${e}`}:{width:e},"",""):ig),";"),sg=({inputSize:e,__next36pxDefaultSize:t})=>{const n={default:{height:36,lineHeight:1,minHeight:36,paddingLeft:rh(4),paddingRight:rh(4)},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:rh(2),paddingRight:rh(2)},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:rh(4),paddingRight:rh(4)}};return t||(n.default={height:30,lineHeight:1,minHeight:30,paddingLeft:rh(2),paddingRight:rh(2)}),n[e]||n.default},lg=fd("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Bp.gray[900],";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(({isDragging:e,dragCursor:t})=>{let n,r;return e&&(n=np("cursor:",t,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),e&&t&&(r=np("&:active{cursor:",t,";}","")),np(n," ",r,";","")})," ",(({disabled:e})=>e?np({color:Bp.ui.textDisabled},"",""):"")," ",(({inputSize:e})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"},n=t[e]||t.default;return n?np("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""})," ",(e=>np(sg(e),"",""))," ",(({paddingInlineStart:e,paddingInlineEnd:t})=>np({paddingInlineStart:e,paddingInlineEnd:t},"",""))," &::-webkit-input-placeholder{line-height:normal;}}"),cg=fd(eg,{target:"em5sgkm4"})("&&&{",tg,";box-sizing:border-box;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),ug=e=>(0,a.createElement)(cg,{...e,as:"label"}),dg=fd(xh,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),fg=fd("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(({disabled:e,isFocused:t})=>{let n,r,o,i=t?Bp.ui.borderFocus:Bp.ui.border;return t&&(n=`0 0 0 1px ${Bp.ui.borderFocus} inset`,r="2px solid transparent",o="-2px"),e&&(i=Bp.ui.borderDisabled),np({boxShadow:n,borderColor:i,borderStyle:"solid",borderWidth:1,outline:r,outlineOffset:o},"","")})," ",uh({paddingLeft:2}),";}"),pg=fd("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),mg=fd("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"});const hg=(0,a.memo)((function({disabled:e=!1,isFocused:t=!1}){return(0,a.createElement)(fg,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:e,isFocused:t})}));var gg=hg;function vg({children:e,hideLabelFromVision:t,htmlFor:n,...r}){return e?t?(0,a.createElement)(hd,{as:"label",htmlFor:n},e):(0,a.createElement)(dg,null,(0,a.createElement)(ug,{htmlFor:n,...r},e)):null}function bg(e){const t={};switch(e){case"top":t.direction="column",t.expanded=!1,t.gap=0;break;case"bottom":t.direction="column-reverse",t.expanded=!1,t.gap=0;break;case"edge":t.justify="space-between"}return t}function yg({__next36pxDefaultSize:e,__unstableInputWidth:t,children:n,className:r,disabled:o=!1,hideLabelFromVision:i=!1,labelPosition:s,id:l,isFocused:c=!1,label:d,prefix:f,size:p="default",suffix:m,...h},g){const v=function(e){const t=(0,u.useInstanceId)(yg);return e||`input-base-control-${t}`}(l),b=i||!d,{paddingLeft:y,paddingRight:w}=sg({inputSize:p,__next36pxDefaultSize:e}),x=(0,a.useMemo)((()=>({InputControlPrefixWrapper:{paddingLeft:y},InputControlSuffixWrapper:{paddingRight:w}})),[y,w]);return(0,a.createElement)(og,{...h,...bg(s),className:r,gap:2,isFocused:c,labelPosition:s,ref:g},(0,a.createElement)(vg,{className:"components-input-control__label",hideLabelFromVision:i,labelPosition:s,htmlFor:v},d),(0,a.createElement)(ag,{__unstableInputWidth:t,className:"components-input-control__container",disabled:o,hideLabel:b,labelPosition:s},(0,a.createElement)(sc,{value:x},f&&(0,a.createElement)(pg,{className:"components-input-control__prefix"},f),n,m&&(0,a.createElement)(mg,{className:"components-input-control__suffix"},m)),(0,a.createElement)(gg,{disabled:o,isFocused:c})))}var wg=(0,a.forwardRef)(yg);const xg={toVector(e,t){return void 0===e&&(e=t),Array.isArray(e)?e:[e,e]},add(e,t){return[e[0]+t[0],e[1]+t[1]]},sub(e,t){return[e[0]-t[0],e[1]-t[1]]},addTo(e,t){e[0]+=t[0],e[1]+=t[1]},subTo(e,t){e[0]-=t[0],e[1]-=t[1]}};function Eg(e,t,n){return 0===t||Math.abs(t)===1/0?Math.pow(e,5*n):e*t*n/(t+n*e)}function _g(e,t,n,r=.15){return 0===r?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Eg(t-e,n-t,r)+t:e>n?+Eg(e-n,n-t,r)+n:e}function Cg(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function Sg(e,t,n){return(t=Cg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kg(Object(n),!0).forEach((function(t){Sg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Rg={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Pg(e){return e?e[0].toUpperCase()+e.slice(1):""}const Mg=["enter","leave"];function Ig(e,t="",n=!1){const r=Rg[e],o=r&&r[t]||t;return"on"+Pg(e)+Pg(o)+(function(e=!1,t){return e&&!Mg.includes(t)}(n,o)?"Capture":"")}const Ng=["gotpointercapture","lostpointercapture"];function Og(e){let t=e.substring(2).toLowerCase();const n=!!~t.indexOf("passive");n&&(t=t.replace("passive",""));const r=Ng.includes(t)?"capturecapture":"capture",o=!!~t.indexOf(r);return o&&(t=t.replace("capture","")),{device:t,capture:o,passive:n}}function Dg(e){return"touches"in e}function Ag(e){return Dg(e)?"touch":"pointerType"in e?e.pointerType:"mouse"}function Lg(e){return Dg(e)?function(e){return"touchend"===e.type||"touchcancel"===e.type?e.changedTouches:e.targetTouches}(e)[0]:e}function zg(e){return function(e){return Array.from(e.touches).filter((t=>{var n,r;return t.target===e.currentTarget||(null===(n=e.currentTarget)||void 0===n||null===(r=n.contains)||void 0===r?void 0:r.call(n,t.target))}))}(e).map((e=>e.identifier))}function Fg(e){const t=Lg(e);return Dg(e)?t.identifier:t.pointerId}function Bg(e){const t=Lg(e);return[t.clientX,t.clientY]}function jg(e,...t){return"function"==typeof e?e(...t):e}function Vg(){}function Hg(...e){return 0===e.length?Vg:1===e.length?e[0]:function(){let t;for(const n of e)t=n.apply(this,arguments)||t;return t}}function $g(e,t){return Object.assign({},t,e||{})}class Wg{constructor(e,t,n){this.ctrl=e,this.args=t,this.key=n,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(e){this.ctrl.state[this.key]=e}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:e,shared:t,ingKey:n,args:r}=this;t[n]=e._active=e.active=e._blocked=e._force=!1,e._step=[!1,!1],e.intentional=!1,e._movement=[0,0],e._distance=[0,0],e._direction=[0,0],e._delta=[0,0],e._bounds=[[-1/0,1/0],[-1/0,1/0]],e.args=r,e.axis=void 0,e.memo=void 0,e.elapsedTime=e.timeDelta=0,e.direction=[0,0],e.distance=[0,0],e.overflow=[0,0],e._movementBound=[!1,!1],e.velocity=[0,0],e.movement=[0,0],e.delta=[0,0],e.timeStamp=0}start(e){const t=this.state,n=this.config;t._active||(this.reset(),this.computeInitial(),t._active=!0,t.target=e.target,t.currentTarget=e.currentTarget,t.lastOffset=n.from?jg(n.from,t):t.offset,t.offset=t.lastOffset,t.startTime=t.timeStamp=e.timeStamp)}computeValues(e){const t=this.state;t._values=e,t.values=this.config.transform(e)}computeInitial(){const e=this.state;e._initial=e._values,e.initial=e.values}compute(e){const{state:t,config:n,shared:r}=this;t.args=this.args;let o=0;if(e&&(t.event=e,n.preventDefault&&e.cancelable&&t.event.preventDefault(),t.type=e.type,r.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,r.locked=!!document.pointerLockElement,Object.assign(r,function(e){const t={};if("buttons"in e&&(t.buttons=e.buttons),"shiftKey"in e){const{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i}=e;Object.assign(t,{shiftKey:n,altKey:r,metaKey:o,ctrlKey:i})}return t}(e)),r.down=r.pressed=r.buttons%2==1||r.touches>0,o=e.timeStamp-t.timeStamp,t.timeStamp=e.timeStamp,t.elapsedTime=t.timeStamp-t.startTime),t._active){const e=t._delta.map(Math.abs);xg.addTo(t._distance,e)}this.axisIntent&&this.axisIntent(e);const[i,a]=t._movement,[s,l]=n.threshold,{_step:c,values:u}=t;if(n.hasCustomTransform?(!1===c[0]&&(c[0]=Math.abs(i)>=s&&u[0]),!1===c[1]&&(c[1]=Math.abs(a)>=l&&u[1])):(!1===c[0]&&(c[0]=Math.abs(i)>=s&&Math.sign(i)*s),!1===c[1]&&(c[1]=Math.abs(a)>=l&&Math.sign(a)*l)),t.intentional=!1!==c[0]||!1!==c[1],!t.intentional)return;const d=[0,0];if(n.hasCustomTransform){const[e,t]=u;d[0]=!1!==c[0]?e-c[0]:0,d[1]=!1!==c[1]?t-c[1]:0}else d[0]=!1!==c[0]?i-c[0]:0,d[1]=!1!==c[1]?a-c[1]:0;this.restrictToAxis&&!t._blocked&&this.restrictToAxis(d);const f=t.offset,p=t._active&&!t._blocked||t.active;p&&(t.first=t._active&&!t.active,t.last=!t._active&&t.active,t.active=r[this.ingKey]=t._active,e&&(t.first&&("bounds"in n&&(t._bounds=jg(n.bounds,t)),this.setup&&this.setup()),t.movement=d,this.computeOffset()));const[m,h]=t.offset,[[g,v],[b,y]]=t._bounds;t.overflow=[m<g?-1:m>v?1:0,h<b?-1:h>y?1:0],t._movementBound[0]=!!t.overflow[0]&&(!1===t._movementBound[0]?t._movement[0]:t._movementBound[0]),t._movementBound[1]=!!t.overflow[1]&&(!1===t._movementBound[1]?t._movement[1]:t._movementBound[1]);const w=t._active&&n.rubberband||[0,0];if(t.offset=function(e,[t,n],[r,o]){const[[i,a],[s,l]]=e;return[_g(t,i,a,r),_g(n,s,l,o)]}(t._bounds,t.offset,w),t.delta=xg.sub(t.offset,f),this.computeMovement(),p&&(!t.last||o>32)){t.delta=xg.sub(t.offset,f);const e=t.delta.map(Math.abs);xg.addTo(t.distance,e),t.direction=t.delta.map(Math.sign),t._direction=t._delta.map(Math.sign),!t.first&&o>0&&(t.velocity=[e[0]/o,e[1]/o],t.timeDelta=o)}}emit(){const e=this.state,t=this.shared,n=this.config;if(e._active||this.clean(),(e._blocked||!e.intentional)&&!e._force&&!n.triggerAllEvents)return;const r=this.handler(Tg(Tg(Tg({},t),e),{},{[this.aliasKey]:e.values}));void 0!==r&&(e.memo=r)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}class Ug extends Wg{constructor(...e){super(...e),Sg(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=xg.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=xg.sub(this.state.offset,this.state.lastOffset)}axisIntent(e){const t=this.state,n=this.config;if(!t.axis&&e){const r="object"==typeof n.axisThreshold?n.axisThreshold[Ag(e)]:n.axisThreshold;t.axis=function([e,t],n){const r=Math.abs(e),o=Math.abs(t);return r>o&&r>n?"x":o>r&&o>n?"y":void 0}(t._movement,r)}t._blocked=(n.lockDirection||!!n.axis)&&!t.axis||!!n.axis&&n.axis!==t.axis}restrictToAxis(e){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":e[1]=0;break;case"y":e[0]=0}}}const Gg=e=>e,Kg={enabled(e=!0){return e},eventOptions(e,t,n){return Tg(Tg({},n.shared.eventOptions),e)},preventDefault(e=!1){return e},triggerAllEvents(e=!1){return e},rubberband(e=0){switch(e){case!0:return[.15,.15];case!1:return[0,0];default:return xg.toVector(e)}},from(e){return"function"==typeof e?e:null!=e?xg.toVector(e):void 0},transform(e,t,n){const r=e||n.shared.transform;return this.hasCustomTransform=!!r,r||Gg},threshold(e){return xg.toVector(e,0)}};const qg=Tg(Tg({},Kg),{},{axis(e,t,{axis:n}){if(this.lockDirection="lock"===n,!this.lockDirection)return n},axisThreshold(e=0){return e},bounds(e={}){if("function"==typeof e)return t=>qg.bounds(e(t));if("current"in e)return()=>e.current;if("function"==typeof HTMLElement&&e instanceof HTMLElement)return e;const{left:t=-1/0,right:n=1/0,top:r=-1/0,bottom:o=1/0}=e;return[[t,n],[r,o]]}}),Yg={ArrowRight:(e,t=1)=>[e*t,0],ArrowLeft:(e,t=1)=>[-1*e*t,0],ArrowUp:(e,t=1)=>[0,-1*e*t],ArrowDown:(e,t=1)=>[0,e*t]};const Xg="undefined"!=typeof window&&window.document&&window.document.createElement;function Zg(){return Xg&&"ontouchstart"in window}const Jg={isBrowser:Xg,gesture:function(){try{return"constructor"in GestureEvent}catch(e){return!1}}(),touch:Zg(),touchscreen:Zg()||Xg&&window.navigator.maxTouchPoints>1,pointer:Xg&&"onpointerdown"in window,pointerLock:Xg&&"exitPointerLock"in window.document},Qg={mouse:0,touch:0,pen:8},ev=Tg(Tg({},qg),{},{device(e,t,{pointer:{touch:n=!1,lock:r=!1,mouse:o=!1}={}}){return this.pointerLock=r&&Jg.pointerLock,Jg.touch&&n?"touch":this.pointerLock?"mouse":Jg.pointer&&!o?"pointer":Jg.touch?"touch":"mouse"},preventScrollAxis(e,t,{preventScroll:n}){if(this.preventScrollDelay="number"==typeof n?n:n||void 0===n&&e?250:void 0,Jg.touchscreen&&!1!==n)return e||(void 0!==n?"y":void 0)},pointerCapture(e,t,{pointer:{capture:n=!0,buttons:r=1,keys:o=!0}={}}){return this.pointerButtons=r,this.keys=o,!this.pointerLock&&"pointer"===this.device&&n},threshold(e,t,{filterTaps:n=!1,tapsThreshold:r=3,axis:o}){const i=xg.toVector(e,n?r:o?1:0);return this.filterTaps=n,this.tapsThreshold=r,i},swipe({velocity:e=.5,distance:t=50,duration:n=250}={}){return{velocity:this.transform(xg.toVector(e)),distance:this.transform(xg.toVector(t)),duration:n}},delay(e=0){switch(e){case!0:return 180;case!1:return 0;default:return e}},axisThreshold(e){return e?Tg(Tg({},Qg),e):Qg},keyboardDisplacement(e=10){return e}});Tg(Tg({},Kg),{},{device(e,t,{shared:n,pointer:{touch:r=!1}={}}){if(n.target&&!Jg.touch&&Jg.gesture)return"gesture";if(Jg.touch&&r)return"touch";if(Jg.touchscreen){if(Jg.pointer)return"pointer";if(Jg.touch)return"touch"}},bounds(e,t,{scaleBounds:n={},angleBounds:r={}}){const o=e=>{const t=$g(jg(n,e),{min:-1/0,max:1/0});return[t.min,t.max]},i=e=>{const t=$g(jg(r,e),{min:-1/0,max:1/0});return[t.min,t.max]};return"function"!=typeof n&&"function"!=typeof r?[o(),i()]:e=>[o(e),i(e)]},threshold(e,t,n){this.lockDirection="lock"===n.axis;return xg.toVector(e,this.lockDirection?[.1,3]:0)},modifierKey(e){return void 0===e?"ctrlKey":e},pinchOnWheel(e=!0){return e}});Tg(Tg({},qg),{},{mouseOnly:(e=!0)=>e});const tv=Tg(Tg({},qg),{},{mouseOnly:(e=!0)=>e}),nv=new Map,rv=new Map;function ov(e){nv.set(e.key,e.engine),rv.set(e.key,e.resolver)}const iv={key:"drag",engine:class extends Ug{constructor(...e){super(...e),Sg(this,"ingKey","dragging")}reset(){super.reset();const e=this.state;e._pointerId=void 0,e._pointerActive=!1,e._keyboardActive=!1,e._preventScroll=!1,e._delayed=!1,e.swipe=[0,0],e.tap=!1,e.canceled=!1,e.cancel=this.cancel.bind(this)}setup(){const e=this.state;if(e._bounds instanceof HTMLElement){const t=e._bounds.getBoundingClientRect(),n=e.currentTarget.getBoundingClientRect(),r={left:t.left-n.left+e.offset[0],right:t.right-n.right+e.offset[0],top:t.top-n.top+e.offset[1],bottom:t.bottom-n.bottom+e.offset[1]};e._bounds=qg.bounds(r)}}cancel(){const e=this.state;e.canceled||(e.canceled=!0,e._active=!1,setTimeout((()=>{this.compute(),this.emit()}),0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(e){const t=this.config,n=this.state;if(null!=e.buttons&&(Array.isArray(t.pointerButtons)?!t.pointerButtons.includes(e.buttons):-1!==t.pointerButtons&&t.pointerButtons!==e.buttons))return;const r=this.ctrl.setEventIds(e);t.pointerCapture&&e.target.setPointerCapture(e.pointerId),r&&r.size>1&&n._pointerActive||(this.start(e),this.setupPointer(e),n._pointerId=Fg(e),n._pointerActive=!0,this.computeValues(Bg(e)),this.computeInitial(),t.preventScrollAxis&&"mouse"!==Ag(e)?(n._active=!1,this.setupScrollPrevention(e)):t.delay>0?(this.setupDelayTrigger(e),t.triggerAllEvents&&(this.compute(e),this.emit())):this.startPointerDrag(e))}startPointerDrag(e){const t=this.state;t._active=!0,t._preventScroll=!0,t._delayed=!1,this.compute(e),this.emit()}pointerMove(e){const t=this.state,n=this.config;if(!t._pointerActive)return;const r=Fg(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;const o=Bg(e);return document.pointerLockElement===e.target?t._delta=[e.movementX,e.movementY]:(t._delta=xg.sub(o,t._values),this.computeValues(o)),xg.addTo(t._movement,t._delta),this.compute(e),t._delayed&&t.intentional?(this.timeoutStore.remove("dragDelay"),t.active=!1,void this.startPointerDrag(e)):n.preventScrollAxis&&!t._preventScroll?t.axis?t.axis===n.preventScrollAxis||"xy"===n.preventScrollAxis?(t._active=!1,void this.clean()):(this.timeoutStore.remove("startPointerDrag"),void this.startPointerDrag(e)):void 0:void this.emit()}pointerUp(e){this.ctrl.setEventIds(e);try{this.config.pointerCapture&&e.target.hasPointerCapture(e.pointerId)&&e.target.releasePointerCapture(e.pointerId)}catch(e){0}const t=this.state,n=this.config;if(!t._active||!t._pointerActive)return;const r=Fg(e);if(void 0!==t._pointerId&&r!==t._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(e);const[o,i]=t._distance;if(t.tap=o<=n.tapsThreshold&&i<=n.tapsThreshold,t.tap&&n.filterTaps)t._force=!0;else{const[e,r]=t._delta,[o,i]=t._movement,[a,s]=n.swipe.velocity,[l,c]=n.swipe.distance,u=n.swipe.duration;if(t.elapsedTime<u){const n=Math.abs(e/t.timeDelta),u=Math.abs(r/t.timeDelta);n>a&&Math.abs(o)>l&&(t.swipe[0]=Math.sign(e)),u>s&&Math.abs(i)>c&&(t.swipe[1]=Math.sign(r))}}this.emit()}pointerClick(e){!this.state.tap&&e.detail>0&&(e.preventDefault(),e.stopPropagation())}setupPointer(e){const t=this.config,n=t.device;t.pointerLock&&e.currentTarget.requestPointerLock(),t.pointerCapture||(this.eventStore.add(this.sharedConfig.window,n,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,n,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(e){this.state._preventScroll&&e.cancelable&&e.preventDefault()}setupScrollPrevention(e){this.state._preventScroll=!1,function(e){"persist"in e&&"function"==typeof e.persist&&e.persist()}(e);const t=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",t),this.eventStore.add(this.sharedConfig.window,"touch","cancel",t),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,e)}setupDelayTrigger(e){this.state._delayed=!0,this.timeoutStore.add("dragDelay",(()=>{this.state._step=[0,0],this.startPointerDrag(e)}),this.config.delay)}keyDown(e){const t=Yg[e.key];if(t){const n=this.state,r=e.shiftKey?10:e.altKey?.1:1;this.start(e),n._delta=t(this.config.keyboardDisplacement,r),n._keyboardActive=!0,xg.addTo(n._movement,n._delta),this.compute(e),this.emit()}}keyUp(e){e.key in Yg&&(this.state._keyboardActive=!1,this.setActive(),this.compute(e),this.emit())}bind(e){const t=this.config.device;e(t,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(e(t,"change",this.pointerMove.bind(this)),e(t,"end",this.pointerUp.bind(this)),e(t,"cancel",this.pointerUp.bind(this)),e("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(e("key","down",this.keyDown.bind(this)),e("key","up",this.keyUp.bind(this))),this.config.filterTaps&&e("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}},resolver:ev},av={key:"hover",engine:class extends Ug{constructor(...e){super(...e),Sg(this,"ingKey","hovering")}enter(e){this.config.mouseOnly&&"mouse"!==e.pointerType||(this.start(e),this.computeValues(Bg(e)),this.compute(e),this.emit())}leave(e){if(this.config.mouseOnly&&"mouse"!==e.pointerType)return;const t=this.state;if(!t._active)return;t._active=!1;const n=Bg(e);t._movement=t._delta=xg.sub(n,t._values),this.computeValues(n),this.compute(e),t.delta=t.movement,this.emit()}bind(e){e("pointer","enter",this.enter.bind(this)),e("pointer","leave",this.leave.bind(this))}},resolver:tv};function sv(e,t){if(null==e)return{};var n,r,o=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}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const lv={target(e){if(e)return()=>"current"in e?e.current:e},enabled(e=!0){return e},window(e=(Jg.isBrowser?window:void 0)){return e},eventOptions({passive:e=!0,capture:t=!1}={}){return{passive:e,capture:t}},transform(e){return e}},cv=["target","eventOptions","window","enabled","transform"];function uv(e={},t){const n={};for(const[r,o]of Object.entries(t))switch(typeof o){case"function":n[r]=o.call(n,e[r],r,e);break;case"object":n[r]=uv(e[r],o);break;case"boolean":o&&(n[r]=e[r])}return n}class dv{constructor(e,t){Sg(this,"_listeners",new Set),this._ctrl=e,this._gestureKey=t}add(e,t,n,r,o){const i=this._listeners,a=function(e,t=""){const n=Rg[e];return e+(n&&n[t]||t)}(t,n),s=Tg(Tg({},this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{}),o);e.addEventListener(a,r,s);const l=()=>{e.removeEventListener(a,r,s),i.delete(l)};return i.add(l),l}clean(){this._listeners.forEach((e=>e())),this._listeners.clear()}}class fv{constructor(){Sg(this,"_timeouts",new Map)}add(e,t,n=140,...r){this.remove(e),this._timeouts.set(e,window.setTimeout(t,n,...r))}remove(e){const t=this._timeouts.get(e);t&&window.clearTimeout(t)}clean(){this._timeouts.forEach((e=>{window.clearTimeout(e)})),this._timeouts.clear()}}class pv{constructor(e){Sg(this,"gestures",new Set),Sg(this,"_targetEventStore",new dv(this)),Sg(this,"gestureEventStores",{}),Sg(this,"gestureTimeoutStores",{}),Sg(this,"handlers",{}),Sg(this,"config",{}),Sg(this,"pointerIds",new Set),Sg(this,"touchIds",new Set),Sg(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),function(e,t){t.drag&&mv(e,"drag");t.wheel&&mv(e,"wheel");t.scroll&&mv(e,"scroll");t.move&&mv(e,"move");t.pinch&&mv(e,"pinch");t.hover&&mv(e,"hover")}(this,e)}setEventIds(e){return Dg(e)?(this.touchIds=new Set(zg(e)),this.touchIds):"pointerId"in e?("pointerup"===e.type||"pointercancel"===e.type?this.pointerIds.delete(e.pointerId):"pointerdown"===e.type&&this.pointerIds.add(e.pointerId),this.pointerIds):void 0}applyHandlers(e,t){this.handlers=e,this.nativeHandlers=t}applyConfig(e,t){this.config=function(e,t,n={}){const r=e,{target:o,eventOptions:i,window:a,enabled:s,transform:l}=r,c=sv(r,cv);if(n.shared=uv({target:o,eventOptions:i,window:a,enabled:s,transform:l},lv),t){const e=rv.get(t);n[t]=uv(Tg({shared:n.shared},c),e)}else for(const e in c){const t=rv.get(e);t&&(n[e]=uv(Tg({shared:n.shared},c[e]),t))}return n}(e,t,this.config)}clean(){this._targetEventStore.clean();for(const e of this.gestures)this.gestureEventStores[e].clean(),this.gestureTimeoutStores[e].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...e){const t=this.config.shared,n={};let r;if(!t.target||(r=t.target(),r)){if(t.enabled){for(const t of this.gestures){const o=this.config[t],i=hv(n,o.eventOptions,!!r);if(o.enabled){new(nv.get(t))(this,e,t).bind(i)}}const o=hv(n,t.eventOptions,!!r);for(const t in this.nativeHandlers)o(t,"",(n=>this.nativeHandlers[t](Tg(Tg({},this.state.shared),{},{event:n,args:e}))),void 0,!0)}for(const e in n)n[e]=Hg(...n[e]);if(!r)return n;for(const e in n){const{device:t,capture:o,passive:i}=Og(e);this._targetEventStore.add(r,t,"",n[e],{capture:o,passive:i})}}}}function mv(e,t){e.gestures.add(t),e.gestureEventStores[t]=new dv(e,t),e.gestureTimeoutStores[t]=new fv}const hv=(e,t,n)=>(r,o,i,a={},s=!1)=>{var l,c;const u=null!==(l=a.capture)&&void 0!==l?l:t.capture,d=null!==(c=a.passive)&&void 0!==c?c:t.passive;let f=s?r:Ig(r,o,u);n&&d&&(f+="Passive"),e[f]=e[f]||[],e[f].push(i)};function gv(e,t={},n,r){const o=y().useMemo((()=>new pv(e)),[]);if(o.applyHandlers(e,r),o.applyConfig(t,n),y().useEffect(o.effect.bind(o)),y().useEffect((()=>o.clean.bind(o)),[]),void 0===t.target)return o.bind.bind(o)}const vv=e=>e,bv={error:null,initialValue:"",isDirty:!1,isDragEnabled:!1,isDragging:!1,isPressEnterToChange:!1,value:""},yv="CHANGE",wv="COMMIT",xv="CONTROL",Ev="DRAG_END",_v="DRAG_START",Cv="DRAG",Sv="INVALIDATE",kv="PRESS_DOWN",Tv="PRESS_ENTER",Rv="PRESS_UP",Pv="RESET";function Mv(e=vv,t=bv,n){const[r,o]=(0,a.useReducer)((i=e,(e,t)=>{const n={...e};switch(t.type){case xv:return n.value=t.payload.value,n.isDirty=!1,n._event=void 0,n;case Rv:case kv:n.isDirty=!1;break;case _v:n.isDragging=!0;break;case Ev:n.isDragging=!1;break;case yv:n.error=null,n.value=t.payload.value,e.isPressEnterToChange&&(n.isDirty=!0);break;case wv:n.value=t.payload.value,n.isDirty=!1;break;case Pv:n.error=null,n.isDirty=!1,n.value=t.payload.value||e.initialValue;break;case Sv:n.error=t.payload.error}return n._event=t.payload.event,i(n,t)}),function(e=bv){const{value:t}=e;return{...bv,...e,initialValue:t}}(t));var i;const s=e=>(t,n)=>{o({type:e,payload:{value:t,event:n}})},l=e=>t=>{o({type:e,payload:{event:t}})},c=e=>t=>{o({type:e,payload:t})},u=s(yv),d=s(Pv),f=s(wv),p=c(_v),m=c(Cv),h=c(Ev),g=l(Rv),v=l(kv),b=l(Tv),y=(0,a.useRef)(r),w=(0,a.useRef)({value:t.value,onChangeHandler:n});return(0,a.useLayoutEffect)((()=>{y.current=r,w.current={value:t.value,onChangeHandler:n}})),(0,a.useLayoutEffect)((()=>{var e;void 0===y.current._event||r.value===w.current.value||r.isDirty||w.current.onChangeHandler(null!==(e=r.value)&&void 0!==e?e:"",{event:y.current._event})}),[r.value,r.isDirty]),(0,a.useLayoutEffect)((()=>{var e;t.value===y.current.value||y.current.isDirty||o({type:xv,payload:{value:null!==(e=t.value)&&void 0!==e?e:""}})}),[t.value]),{change:u,commit:f,dispatch:o,drag:m,dragEnd:h,dragStart:p,invalidate:(e,t)=>o({type:Sv,payload:{error:e,event:t}}),pressDown:v,pressEnter:b,pressUp:g,reset:d,state:r}}const Iv=()=>{};const Nv=(0,a.forwardRef)((function({disabled:e=!1,dragDirection:t="n",dragThreshold:n=10,id:r,isDragEnabled:o=!1,isFocused:i,isPressEnterToChange:s=!1,onBlur:l=Iv,onChange:c=Iv,onDrag:u=Iv,onDragEnd:d=Iv,onDragStart:f=Iv,onFocus:p=Iv,onKeyDown:m=Iv,onValidate:h=Iv,size:g="default",setIsFocused:v,stateReducer:b=(e=>e),value:y,type:w,...x},E){const{state:_,change:C,commit:S,drag:k,dragEnd:T,dragStart:R,invalidate:P,pressDown:M,pressEnter:I,pressUp:N,reset:O}=Mv(b,{isDragEnabled:o,value:y,isPressEnterToChange:s},c),{value:D,isDragging:A,isDirty:L}=_,z=(0,a.useRef)(!1),F=function(e,t){const n=function(e){let t="ns-resize";switch(e){case"n":case"s":t="ns-resize";break;case"e":case"w":t="ew-resize"}return t}(t);return(0,a.useEffect)((()=>{document.documentElement.style.cursor=e?n:null}),[e,n]),n}(A,t),B=e=>{const t=e.currentTarget.value;try{h(t),S(t,e)}catch(t){P(t,e)}},j=(V=e=>{const{distance:t,dragging:n,event:r,target:o}=e;if(e.event={...e.event,target:o},t){if(r.stopPropagation(),!n)return d(e),void T(e);u(e),k(e),A||(f(e),R(e))}},H={axis:"e"===t||"w"===t?"x":"y",threshold:n,enabled:o,pointer:{capture:!1}},ov(iv),gv({drag:V},H||{},"drag"));var V,H;const $=o?j():{};let W;return"number"===w&&(W=e=>{x.onMouseDown?.(e),e.currentTarget!==e.currentTarget.ownerDocument.activeElement&&e.currentTarget.focus()}),(0,a.createElement)(lg,{...x,...$,className:"components-input-control__input",disabled:e,dragCursor:F,isDragging:A,id:r,onBlur:e=>{l(e),v?.(!1),!L&&e.target.validity.valid||(z.current=!0,B(e))},onChange:e=>{const t=e.target.value;C(t,e)},onFocus:e=>{p(e),v?.(!0)},onKeyDown:e=>{const{key:t}=e;switch(m(e),t){case"ArrowUp":N(e);break;case"ArrowDown":M(e);break;case"Enter":I(e),s&&(e.preventDefault(),B(e));break;case"Escape":s&&L&&(e.preventDefault(),O(y,e))}},onMouseDown:W,ref:E,inputSize:g,value:null!=D?D:"",type:w})}));var Ov=Nv,Dv={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function Av(e){var t;return null!==(t=Dv[e])&&void 0!==t?t:""}const Lv={name:"kv6lnz",styles:"box-sizing:border-box;*,*::before,*::after{box-sizing:inherit;}"};const zv=fd("div",{target:"ej5x27r4"})("font-family:",Av("default.fontFamily"),";font-size:",Av("default.fontSize"),";",Lv,";"),Fv=fd("div",{target:"ej5x27r3"})((({__nextHasNoMarginBottom:e=!1})=>!e&&np("margin-bottom:",rh(2),";",""))," .components-panel__row &{margin-bottom:inherit;}"),Bv=np(tg,";display:inline-block;margin-bottom:",rh(2),";padding:0;",""),jv=fd("label",{target:"ej5x27r2"})(Bv,";");var Vv={name:"11yad0w",styles:"margin-bottom:revert"};const Hv=fd("p",{target:"ej5x27r1"})("margin-top:",rh(2),";margin-bottom:0;font-size:",Av("helpText.fontSize"),";font-style:normal;color:",Bp.gray[700],";",(({__nextHasNoMarginBottom:e=!1})=>!e&&Vv),";"),$v=fd("span",{target:"ej5x27r0"})(Bv,";"),Wv=({__nextHasNoMarginBottom:e=!1,id:t,label:n,hideLabelFromVision:r=!1,help:o,className:i,children:s})=>(0,a.createElement)(zv,{className:l()("components-base-control",i)},(0,a.createElement)(Fv,{className:"components-base-control__field",__nextHasNoMarginBottom:e},n&&t&&(r?(0,a.createElement)(hd,{as:"label",htmlFor:t},n):(0,a.createElement)(jv,{className:"components-base-control__label",htmlFor:t},n)),n&&!t&&(r?(0,a.createElement)(hd,{as:"label"},n):(0,a.createElement)(Wv.VisualLabel,null,n)),s),!!o&&(0,a.createElement)(Hv,{id:t?t+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:e},o));Wv.VisualLabel=({className:e,children:t,...n})=>(0,a.createElement)($v,{...n,className:l()("components-base-control__label",e)},t);var Uv=Wv;const Gv=()=>{};const Kv=(0,a.forwardRef)((function({__next36pxDefaultSize:e,__unstableStateReducer:t=(e=>e),__unstableInputWidth:n,className:r,disabled:o=!1,help:i,hideLabelFromVision:s=!1,id:c,isPressEnterToChange:d=!1,label:f,labelPosition:p="top",onChange:m=Gv,onValidate:h=Gv,onKeyDown:g=Gv,prefix:v,size:b="default",style:y,suffix:w,value:x,...E},_){const[C,S]=(0,a.useState)(!1),k=function(e){const t=(0,u.useInstanceId)(Kv);return e||`inspector-input-control-${t}`}(c),T=l()("components-input-control",r),R=function(e){const t=(0,a.useRef)(e.value),[n,r]=(0,a.useState)({}),o=void 0!==n.value?n.value:e.value;return(0,a.useLayoutEffect)((()=>{const{current:o}=t;t.current=e.value,void 0===n.value||n.isStale?n.isStale&&e.value!==o&&r({}):r({...n,isStale:!0})}),[e.value,n]),{value:o,onBlur:t=>{r({}),e.onBlur?.(t)},onChange:(t,n)=>{r((e=>Object.assign(e,{value:t,isStale:!1}))),e.onChange(t,n)}}}({value:x,onBlur:E.onBlur,onChange:m}),P=i?{["string"==typeof i?"aria-describedby":"aria-details"]:`${k}__help`}:{};return(0,a.createElement)(Uv,{className:T,help:i,id:k,__nextHasNoMarginBottom:!0},(0,a.createElement)(wg,{__next36pxDefaultSize:e,__unstableInputWidth:n,disabled:o,gap:3,hideLabelFromVision:s,id:k,isFocused:C,justify:"left",label:f,labelPosition:p,prefix:v,size:b,style:y,suffix:w},(0,a.createElement)(Ov,{...E,...P,__next36pxDefaultSize:e,className:"components-input-control__input",disabled:o,id:k,isFocused:C,isPressEnterToChange:d,onKeyDown:g,onValidate:h,paddingInlineStart:v?rh(2):void 0,paddingInlineEnd:w?rh(2):void 0,ref:_,setIsFocused:S,size:b,stateReducer:t,...R})))}));var qv=Kv;var Yv={name:"euqsgg",styles:"input[type='number']::-webkit-outer-spin-button,input[type='number']::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}input[type='number']{-moz-appearance:textfield;}"};const Xv=({hideHTMLArrows:e})=>e?Yv:"",Zv=fd(qv,{target:"ep09it41"})(Xv,";"),Jv=fd(bd,{target:"ep09it40"})("&&&&&{color:",Bp.ui.theme,";}"),Qv={smallSpinButtons:np("width:",rh(5),";min-width:",rh(5),";height:",rh(5),";","")};function eb(e){const t=Number(e);return isNaN(t)?0:t}function tb(...e){return e.reduce(((e,t)=>e+eb(t)),0)}function nb(e,t,n){const r=eb(e);return Math.max(t,Math.min(r,n))}function rb(e=0,t=1/0,n=1/0,r=1){const o=eb(e),i=eb(r),a=function(e){const t=(e+"").split(".");return void 0!==t[1]?t[1].length:0}(r),s=nb(Math.round(o/i)*i,t,n);return a?eb(s.toFixed(a)):s}const ob={bottom:{align:"flex-end",justify:"center"},bottomLeft:{align:"flex-end",justify:"flex-start"},bottomRight:{align:"flex-end",justify:"flex-end"},center:{align:"center",justify:"center"},edge:{align:"center",justify:"space-between"},left:{align:"center",justify:"flex-start"},right:{align:"center",justify:"flex-end"},stretch:{align:"stretch"},top:{align:"flex-start",justify:"center"},topLeft:{align:"flex-start",justify:"flex-start"},topRight:{align:"flex-start",justify:"flex-end"}},ib={bottom:{justify:"flex-end",align:"center"},bottomLeft:{justify:"flex-end",align:"flex-start"},bottomRight:{justify:"flex-end",align:"flex-end"},center:{justify:"center",align:"center"},edge:{justify:"space-between",align:"center"},left:{justify:"center",align:"flex-start"},right:{justify:"center",align:"flex-end"},stretch:{align:"stretch"},top:{justify:"flex-start",align:"center"},topLeft:{justify:"flex-start",align:"flex-start"},topRight:{justify:"flex-start",align:"flex-end"}};function ab(e){return"string"==typeof e?[e]:a.Children.toArray(e).filter((e=>(0,a.isValidElement)(e)))}function sb(e){const{alignment:t="edge",children:n,direction:r,spacing:o=2,...i}=Zu(e,"HStack"),s=function(e,t="row"){if(!_h(e))return{};const n="column"===t?ib:ob;return e in n?n[e]:{align:e}}(t,r),l=ab(n).map(((e,t)=>{if(nd(e,["Spacer"])){const n=e,r=n.key||`hstack-${t}`;return(0,a.createElement)(xh,{isBlock:!0,key:r,...n.props})}return e}));return yh({children:l,direction:r,justify:"center",...s,...i,gap:o})}var lb=Ju((function(e,t){const n=sb(e);return(0,a.createElement)(md,{...n,ref:t})}),"HStack");const cb=()=>{};const ub=(0,a.forwardRef)((function({__unstableStateReducer:e,className:t,dragDirection:n="n",hideHTMLArrows:r=!1,spinControls:o="native",isDragEnabled:i=!0,isShiftStepEnabled:s=!0,label:d,max:f=1/0,min:p=-1/0,required:m=!1,shiftStep:h=10,step:g=1,type:v="number",value:b,size:y="default",suffix:w,onChange:x=cb,...E},_){r&&(ql()("wp.components.NumberControl hideHTMLArrows prop ",{alternative:'spinControls="none"',since:"6.2",version:"6.3"}),o="none");const C=(0,a.useRef)(),S=(0,u.useMergeRefs)([C,_]),k="any"===g,T=k?1:Ch(g),R=rb(0,p,f,T),P=(e,t)=>k?Math.min(f,Math.max(p,Ch(e))):rb(e,p,f,null!=t?t:T),M="number"===v?"off":void 0,I=l()("components-number-control",t),N=Xu()("small"===y&&Qv.smallSpinButtons),O=(e,t,n)=>{n?.preventDefault();const r=n?.shiftKey&&s,o=r?Ch(h)*T:T;let i=function(e){const t=""===e;return!_h(e)||t}(e)?R:e;return"up"===t?i=tb(i,o):"down"===t&&(i=function(...e){return e.reduce(((e,t,n)=>{const r=eb(t);return 0===n?r:e-r}),0)}(i,o)),P(i,r?o:void 0)},D=e=>t=>x(String(O(b,e,t)),{event:{...t,target:C.current}});return(0,a.createElement)(Zv,{autoComplete:M,inputMode:"numeric",...E,className:I,dragDirection:n,hideHTMLArrows:"native"!==o,isDragEnabled:i,label:d,max:f,min:p,ref:S,required:m,step:g,type:v,value:b,__unstableStateReducer:(t,r)=>{var o;const a=((e,t)=>{const r={...e},{type:o,payload:a}=t,l=a.event,u=r.value;if(o!==Rv&&o!==kv||(r.value=O(u,o===Rv?"up":"down",l)),o===Cv&&i){const[e,t]=a.delta,o=a.shiftKey&&s,i=o?Ch(h)*T:T;let l,d;switch(n){case"n":d=t,l=-1;break;case"e":d=e,l=(0,c.isRTL)()?-1:1;break;case"s":d=t,l=1;break;case"w":d=e,l=(0,c.isRTL)()?1:-1}if(0!==d){d=Math.ceil(Math.abs(d))*Math.sign(d);const e=d*i*l;r.value=P(tb(u,e),o?i:void 0)}}if(o===Tv||o===wv){const e=!1===m&&""===u;r.value=e?u:P(u)}return r})(t,r);return null!==(o=e?.(a,r))&&void 0!==o?o:a},size:y,suffix:"custom"===o?(0,a.createElement)(a.Fragment,null,w,(0,a.createElement)(ph,{marginBottom:0,marginRight:2},(0,a.createElement)(lb,{spacing:1},(0,a.createElement)(Jv,{className:N,icon:mh,isSmall:!0,"aria-hidden":"true","aria-label":(0,c.__)("Increment"),tabIndex:-1,onClick:D("up")}),(0,a.createElement)(Jv,{className:N,icon:hh,isSmall:!0,"aria-hidden":"true","aria-label":(0,c.__)("Decrement"),tabIndex:-1,onClick:D("down")})))):w,onChange:x})}));var db=ub;const fb=({__nextHasNoMarginBottom:e})=>e?"":np("margin-bottom:",rh(2),";",""),pb=fd(wh,{target:"eln3bjz4"})(fb,";"),mb=fd("div",{target:"eln3bjz3"})("border-radius:50%;border:",zh.borderWidth," solid ",Bp.ui.border,";box-sizing:border-box;cursor:grab;height:",32,"px;overflow:hidden;width:",32,"px;:active{cursor:grabbing;}"),hb=fd("div",{target:"eln3bjz2"})({name:"1r307gh",styles:"box-sizing:border-box;position:relative;width:100%;height:100%;:focus-visible{outline:none;}"}),gb=fd("div",{target:"eln3bjz1"})("background:",Bp.ui.theme,";border-radius:50%;box-sizing:border-box;display:block;left:50%;top:4px;transform:translateX( -50% );position:absolute;width:",6,"px;height:",6,"px;"),vb=fd(eg,{target:"eln3bjz0"})("color:",Bp.ui.theme,";margin-right:",rh(3),";");var bb=function({value:e,onChange:t,...n}){const r=(0,a.useRef)(null),o=(0,a.useRef)(),i=(0,a.useRef)(),s=e=>{if(void 0!==e&&(e.preventDefault(),e.target?.focus(),void 0!==o.current&&void 0!==t)){const{x:n,y:r}=o.current;t(function(e,t,n,r){const o=r-t,i=n-e,a=Math.atan2(o,i),s=Math.round(a*(180/Math.PI))+90;if(s<0)return 360+s;return s}(n,r,e.clientX,e.clientY))}},{startDrag:l,isDragging:c}=(0,u.__experimentalUseDragging)({onDragStart:e=>{(()=>{if(null===r.current)return;const e=r.current.getBoundingClientRect();o.current={x:e.x+e.width/2,y:e.y+e.height/2}})(),s(e)},onDragMove:s,onDragEnd:s});return(0,a.useEffect)((()=>{c?(void 0===i.current&&(i.current=document.body.style.cursor),document.body.style.cursor="grabbing"):(document.body.style.cursor=i.current||"",i.current=void 0)}),[c]),(0,a.createElement)(mb,{ref:r,onMouseDown:l,className:"components-angle-picker-control__angle-circle",...n},(0,a.createElement)(hb,{style:e?{transform:`rotate(${e}deg)`}:void 0,className:"components-angle-picker-control__angle-circle-indicator-wrapper",tabIndex:-1},(0,a.createElement)(gb,{className:"components-angle-picker-control__angle-circle-indicator"})))};var yb=(0,a.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,label:o=(0,c.__)("Angle"),onChange:i,value:s,...u}=e;n||ql()("Bottom margin styles for wp.components.AnglePickerControl",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const d=l()("components-angle-picker-control",r),f=(0,a.createElement)(vb,null,"°"),[p,m]=(0,c.isRTL)()?[f,null]:[null,f];return(0,a.createElement)(pb,{...u,ref:t,__nextHasNoMarginBottom:n,className:d,gap:2},(0,a.createElement)(th,null,(0,a.createElement)(db,{label:o,className:"components-angle-picker-control__input-field",max:360,min:0,onChange:e=>{if(void 0===i)return;const t=void 0!==e&&""!==e?parseInt(e,10):0;i(t)},size:"__unstable-large",step:"1",value:s,spinControls:"none",prefix:p,suffix:m})),(0,a.createElement)(ph,{marginBottom:"1",marginTop:"auto"},(0,a.createElement)(bb,{"aria-hidden":"true",value:s,onChange:i})))})),wb=o(4793),xb=o.n(wb),Eb=window.wp.richText,_b=window.wp.a11y;const Cb=new RegExp(`[${["-","~","","֊","־","᐀","᠆","‐","‑","‒","–","—","―","⁓","⁻","₋","−","⸗","⸺","⸻","〜","〰","゠","︱","︲","﹘","﹣","-"].join("")}]`,"g"),Sb=e=>xb()(e).toLocaleLowerCase().replace(Cb,"-");function kb(e){return e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}function Tb(e){return t=>{const[n,r]=(0,a.useState)([]);return(0,a.useLayoutEffect)((()=>{const{options:n,isDebounced:o}=e,i=(0,u.debounce)((()=>{const o=Promise.resolve("function"==typeof n?n(t):n).then((n=>{if(o.canceled)return;const i=n.map(((t,n)=>({key:`${e.name}-${n}`,value:t,label:e.getOptionLabel(t),keywords:e.getOptionKeywords?e.getOptionKeywords(t):[],isDisabled:!!e.isOptionDisabled&&e.isOptionDisabled(t)}))),a=new RegExp("(?:\\b|\\s|^)"+kb(t),"i");r(function(e,t=[],n=10){const r=[];for(let o=0;o<t.length;o++){const i=t[o];let{keywords:a=[]}=i;if("string"==typeof i.label&&(a=[...a,i.label]),a.some((t=>e.test(xb()(t))))&&(r.push(i),r.length===n))break}return r}(a,i))}));return o}),o?250:0),a=i();return()=>{i.cancel(),a&&(a.canceled=!0)}}),[t]),[n]}}function Rb(e){const t=e.useItems?e.useItems:Tb(e);return function({filterValue:e,instanceId:n,listBoxId:r,className:o,selectedIndex:i,onChangeOptions:s,onSelect:d,onReset:f,reset:p,contentRef:m}){const[h]=t(e),g=(0,Eb.useAnchor)({editableContentElement:m.current}),[v,b]=(0,a.useState)(!1),y=(0,a.useRef)(null),w=(0,u.useMergeRefs)([y,(0,u.useRefEffect)((e=>{m.current&&b(e.ownerDocument!==m.current.ownerDocument)}),[m])]);!function(e,t){(0,a.useEffect)((()=>{const n=n=>{e.current&&!e.current.contains(n.target)&&t(n)};return document.addEventListener("mousedown",n),document.addEventListener("touchstart",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("touchstart",n)}}),[t])}(y,p);const x=(0,u.useDebounce)(_b.speak,500);if((0,a.useLayoutEffect)((()=>{s(h),function(t){x&&(t.length?x(e?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",t.length),t.length):(0,c.sprintf)((0,c._n)("Initial %d result loaded. Type to filter all available results. Use up and down arrow keys to navigate.","Initial %d results loaded. Type to filter all available results. Use up and down arrow keys to navigate.",t.length),t.length),"assertive"):x((0,c.__)("No results."),"assertive"))}(h)}),[h]),0===h.length)return null;const E=({Component:e="div"})=>(0,a.createElement)(e,{id:r,role:"listbox",className:"components-autocomplete__results"},h.map(((e,t)=>(0,a.createElement)(bd,{key:e.key,id:`components-autocomplete-item-${n}-${e.key}`,role:"option","aria-selected":t===i,disabled:e.isDisabled,className:l()("components-autocomplete__result",o,{"is-selected":t===i}),onClick:()=>d(e)},e.label))));return(0,a.createElement)(a.Fragment,null,(0,a.createElement)($f,{focusOnMount:!1,onClose:f,placement:"top-start",className:"components-autocomplete__popover",anchor:g,ref:w},(0,a.createElement)(E,null)),m.current&&v&&(0,It.createPortal)((0,a.createElement)(E,{Component:hd}),m.current.ownerDocument.body))}}const Pb=[];function Mb({record:e,onChange:t,onReplace:n,completers:r,contentRef:o}){const i=(0,u.useInstanceId)(Mb),[s,l]=(0,a.useState)(0),[c,d]=(0,a.useState)(Pb),[f,p]=(0,a.useState)(""),[m,h]=(0,a.useState)(null),[g,v]=(0,a.useState)(null),b=(0,a.useRef)(!1);function y(r){const{getOptionCompletion:o}=m||{};if(!r.isDisabled){if(o){const i=o(r.value,f),s=(e=>null!==e&&"object"==typeof e&&"action"in e&&void 0!==e.action&&"value"in e&&void 0!==e.value)(i)?i:{action:"insert-at-caret",value:i};if("replace"===s.action)return void n([s.value]);"insert-at-caret"===s.action&&function(n){if(null===m)return;const r=e.start,o=r-m.triggerPrefix.length-f.length,i=(0,Eb.create)({html:(0,a.renderToString)(n)});t((0,Eb.insert)(e,i,o,r))}(s.value)}w()}}function w(){l(0),d(Pb),p(""),h(null),v(null)}const x=(0,a.useMemo)((()=>(0,Eb.isCollapsed)(e)?(0,Eb.getTextContent)((0,Eb.slice)(e,0)):""),[e]);(0,a.useEffect)((()=>{if(!x)return void(m&&w());const t=r?.find((({triggerPrefix:t,allowContext:n})=>{const r=x.lastIndexOf(t);if(-1===r)return!1;const o=x.slice(r+t.length);if(o.length>50)return!1;const i=0===c.length,a=1===o.split(/\s/).length,s=b.current&&o.split(/\s/).length<=3;if(i&&!s&&!a)return!1;const l=(0,Eb.getTextContent)((0,Eb.slice)(e,void 0,(0,Eb.getTextContent)(e).length));return!(n&&!n(x.slice(0,r),l))&&(!/^\s/.test(o)&&!/\s\s+$/.test(o)&&/[\u0000-\uFFFF]*$/.test(o))}));if(!t)return void(m&&w());const n=kb(t.triggerPrefix),o=xb()(x),i=o.slice(o.lastIndexOf(t.triggerPrefix)).match(new RegExp(`${n}([\0-]*)$`)),a=i&&i[1];h(t),v((()=>t!==m?Rb(t):g)),p(null===a?"":a)}),[x]);const{key:E=""}=c[s]||{},{className:_}=m||{},C=!!m&&c.length>0,S=C?`components-autocomplete-listbox-${i}`:void 0;return{listBoxId:S,activeId:C?`components-autocomplete-item-${i}-${E}`:null,onKeyDown:function(e){if(b.current="Backspace"===e.key,m&&0!==c.length&&!e.defaultPrevented&&!e.isComposing&&229!==e.keyCode){switch(e.key){case"ArrowUp":l((0===s?c.length:s)-1);break;case"ArrowDown":l((s+1)%c.length);break;case"Escape":h(null),v(null),e.preventDefault();break;case"Enter":y(c[s]);break;case"ArrowLeft":case"ArrowRight":return void w();default:return}e.preventDefault()}},popover:void 0!==e.start&&g&&(0,a.createElement)(g,{className:_,filterValue:f,instanceId:i,listBoxId:S,selectedIndex:s,onChangeOptions:function(e){l(e.length===c.length?s:0),d(e)},onSelect:y,value:e,contentRef:o,reset:w})}}function Ib(e){const t=(0,a.useRef)(null),n=(0,a.useRef)(),{record:r}=e,o=function(e){const t=(0,a.useRef)(new Set);return t.current.add(e),t.current.size>2&&t.current.delete(Array.from(t.current)[0]),Array.from(t.current)[0]}(r),{popover:i,listBoxId:s,activeId:l,onKeyDown:c}=Mb({...e,contentRef:t});n.current=c;const d=(0,u.useMergeRefs)([t,(0,u.useRefEffect)((e=>{function t(e){n.current?.(e)}return e.addEventListener("keydown",t),()=>{e.removeEventListener("keydown",t)}}),[])]);return r.text!==o?.text?{ref:d,children:i,"aria-autocomplete":s?"list":void 0,"aria-owns":s,"aria-activedescendant":l}:{ref:d}}function Nb({children:e,isSelected:t,...n}){const{popover:r,...o}=Mb(n);return(0,a.createElement)(a.Fragment,null,e(o),t&&r)}function Ob(e){const{help:t,id:n,...r}=e,o=(0,u.useInstanceId)(Uv,"wp-components-base-control",n);return{baseControlProps:{id:o,help:t,...r},controlProps:{id:o,...t?{["string"==typeof t?"aria-describedby":"aria-details"]:`${o}__help`}:{}}}}var Db=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z"}));var Ab=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"}));const Lb=np("",""),zb={name:"bjn8wh",styles:"position:relative"},Fb=e=>{const{color:t=Bp.gray[200],style:n="solid",width:r=zh.borderWidth}=e||{};return`${t} ${!!r&&"0"!==r||!!t?n||"solid":n} ${r!==zh.borderWidth?`clamp(1px, ${r}, 10px)`:r}`},Bb={name:"1nwbfnf",styles:"grid-column:span 2;margin:0 auto"};function jb(e){const{className:t,size:n="default",...r}=Zu(e,"BorderBoxControlLinkedButton"),o=Xu();return{...r,className:(0,a.useMemo)((()=>o((e=>np("position:absolute;top:","__unstable-large"===e?"8px":"3px",";",uh({right:0})()," line-height:0;",""))(n),t)),[t,o,n])}}var Vb=Ju(((e,t)=>{const{className:n,isLinked:r,...o}=jb(e),i=r?(0,c.__)("Unlink sides"):(0,c.__)("Link sides");return(0,a.createElement)(Xf,{text:i},(0,a.createElement)(md,{className:n},(0,a.createElement)(bd,{...o,isSmall:!0,icon:r?Db:Ab,iconSize:24,"aria-label":i,ref:t})))}),"BorderBoxControlLinkedButton");function Hb(e){const{className:t,value:n,size:r="default",...o}=Zu(e,"BorderBoxControlVisualizer"),i=Xu(),s=(0,a.useMemo)((()=>i(((e,t)=>np("position:absolute;top:","__unstable-large"===t?"20px":"15px",";right:","__unstable-large"===t?"39px":"29px",";bottom:","__unstable-large"===t?"20px":"15px",";left:","__unstable-large"===t?"39px":"29px",";border-top:",Fb(e?.top),";border-bottom:",Fb(e?.bottom),";",uh({borderLeft:Fb(e?.left)})()," ",uh({borderRight:Fb(e?.right)})(),";",""))(n,r),t)),[i,t,n,r]);return{...o,className:s,value:n}}var $b=Ju(((e,t)=>{const{value:n,...r}=Hb(e);return(0,a.createElement)(md,{...r,ref:t})}),"BorderBoxControlVisualizer");var Wb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));var Ub=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 11.25h14v1.5H5z"}));var Gb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{fillRule:"evenodd",d:"M5 11.25h3v1.5H5v-1.5zm5.5 0h3v1.5h-3v-1.5zm8.5 0h-3v1.5h3v-1.5z",clipRule:"evenodd"}));var Kb=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{fillRule:"evenodd",d:"M5.25 11.25h1.5v1.5h-1.5v-1.5zm3 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5zm1.5 0h1.5v1.5h-1.5v-1.5zm4.5 0h-1.5v1.5h1.5v-1.5z",clipRule:"evenodd"}));const qb=fd(db,{target:"e1bagdl32"})("&&&{input{display:block;width:100%;}",fg,"{transition:box-shadow 0.1s linear;}}"),Yb=({selectSize:e})=>{const t={default:np("box-sizing:border-box;padding:2px 1px;width:20px;color:",Bp.gray[800],";font-size:8px;line-height:1;letter-spacing:-0.5px;text-transform:uppercase;text-align-last:center;",""),large:np("box-sizing:border-box;min-width:24px;max-width:48px;height:24px;margin-inline-end:",rh(2),";padding:",rh(1),";color:",Bp.ui.theme,";font-size:13px;line-height:1;text-align-last:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;","")};return"__unstable-large"===e?t.large:t.default},Xb=fd("div",{target:"e1bagdl31"})("&&&{pointer-events:none;",Yb,";color:",Bp.gray[900],";}"),Zb=fd("select",{target:"e1bagdl30"})("&&&{appearance:none;background:transparent;border-radius:2px;border:none;display:block;outline:none;margin:0;min-height:auto;font-family:inherit;",Yb,";",(({selectSize:e="default"})=>{const t={default:np("height:100%;border:1px solid transparent;transition:box-shadow 0.1s linear,border 0.1s linear;",uh({borderTopLeftRadius:0,borderBottomLeftRadius:0})()," &:not(:disabled):hover{background-color:",Bp.gray[100],";}&:focus{border:1px solid ",Bp.ui.borderFocus,";box-shadow:inset 0 0 0 ",zh.borderWidth+" "+Bp.ui.borderFocus,";outline-offset:0;outline:2px solid transparent;z-index:1;}",""),large:np("display:flex;justify-content:center;align-items:center;&:hover{color:",Bp.ui.borderFocus,";box-shadow:inset 0 0 0 ",zh.borderWidth+" "+Bp.ui.borderFocus,";outline:",zh.borderWidth," solid transparent;}&:focus{box-shadow:0 0 0 ",zh.borderWidthFocus+" "+Bp.ui.borderFocus,";outline:",zh.borderWidthFocus," solid transparent;}","")};return"__unstable-large"===e?t.large:t.default}),";&:not( :disabled ){cursor:pointer;}}");const Jb={name:"f3vz0n",styles:"font-weight:500"},Qb=np("box-shadow:inset 0 0 0 ",zh.borderWidth," ",Bp.ui.borderFocus,";",""),ey=np("border:0;padding:0;margin:0;",Lv,";",""),ty=np(qb,"{flex:0 0 auto;}",""),ny=(e,t)=>{const{style:n}=e||{};return np("border-radius:9999px;border:2px solid transparent;",n?(e=>{const{color:t,style:n}=e||{},r=n&&"none"!==n?Bp.gray[300]:void 0;return np("border-style:","none"===n?"solid":n,";border-color:",t||r,";","")})(e):void 0," width:","__unstable-large"===t?"24px":"22px",";height:","__unstable-large"===t?"24px":"22px",";padding:","__unstable-large"===t?"2px":"1px",";&>span{height:",rh(4),";width:",rh(4),";background:linear-gradient(\n\t\t\t\t-45deg,\n\t\t\t\ttransparent 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 48%,\n\t\t\t\trgb( 0 0 0 / 20% ) 52%,\n\t\t\t\ttransparent 52%\n\t\t\t);}","")},ry=np("width:",228,"px;>div:first-of-type>",jv,"{margin-bottom:0;",Jb,";}&& ",jv,"+button:not( .has-text ){min-width:24px;padding:0;}",""),oy=np("",""),iy=np("",""),ay=np("justify-content:center;width:100%;&&{border-top:",zh.borderWidth," solid ",Bp.gray[200],";border-top-left-radius:0;border-top-right-radius:0;height:46px;}",""),sy=np(jv,"{",Jb,";}",""),ly={name:"1486260",styles:"&&&&&{min-width:30px;width:30px;height:30px;padding:3px;}"};const cy=[{label:(0,c.__)("Solid"),icon:Ub,value:"solid"},{label:(0,c.__)("Dashed"),icon:Gb,value:"dashed"},{label:(0,c.__)("Dotted"),icon:Kb,value:"dotted"}],uy=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(hd,{as:"label"},t):(0,a.createElement)(jv,null,t):null},dy=Ju(((e,t)=>{const{buttonClassName:n,hideLabelFromVision:r,label:o,onChange:i,value:s,...l}=function(e){const{className:t,...n}=Zu(e,"BorderControlStylePicker"),r=Xu();return{...n,className:(0,a.useMemo)((()=>r(sy,t)),[t,r]),buttonClassName:(0,a.useMemo)((()=>r(ly)),[r])}}(e);return(0,a.createElement)(md,{...l,ref:t},(0,a.createElement)(uy,{label:o,hideLabelFromVision:r}),(0,a.createElement)(wh,{justify:"flex-start",gap:1},cy.map((e=>(0,a.createElement)(bd,{key:e.value,className:n,icon:e.icon,isSmall:!0,isPressed:e.value===s,onClick:()=>i(e.value===s?void 0:e.value),"aria-label":e.label,label:e.label,showTooltip:!0})))))}),"BorderControlStylePicker");var fy=dy;var py=(0,a.forwardRef)((function(e,t){const{className:n,colorValue:r,...o}=e;return(0,a.createElement)("span",{className:l()("component-color-indicator",n),style:{background:r},ref:t,...o})})),my=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},hy=function(e){return.2126*my(e.r)+.7152*my(e.g)+.0722*my(e.b)};function gy(e){e.prototype.luminance=function(){return e=hy(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,r,o,i,a,s,l,c=t instanceof e?t:new e(t);return i=this.rgba,a=c.toRgb(),n=(s=hy(i))>(l=hy(a))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(r=2)&&(r=0),void 0===o&&(o=Math.pow(10,r)),Math.floor(o*n)/o+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(a=void 0===(i=(n=t).size)?"normal":i,"AAA"===(o=void 0===(r=n.level)?"AA":r)&&"normal"===a?7:"AA"===o&&"large"===a?3:4.5);var n,r,o,i,a}}const vy=Ju(((e,t)=>{const{renderContent:n,renderToggle:r,className:o,contentClassName:i,expandOnMobile:s,headerTitle:c,focusOnMount:d,popoverProps:f,onClose:p,onToggle:m,style:h,position:g,variant:v}=Zu(e,"Dropdown");void 0!==g&&ql()("`position` prop in wp.components.Dropdown",{since:"6.2",alternative:"`popoverProps.placement` prop",hint:"Note that the `position` prop will override any values passed through the `popoverProps.placement` prop."});const[b,y]=(0,a.useState)(null),w=(0,a.useRef)(),[x,E]=function(e,t){const[n,r]=(0,a.useState)(e);return[n,e=>{r(e),t&&t(e)}]}(!1,m);function _(){p&&p(),E(!1)}(0,a.useEffect)((()=>()=>{m&&x&&m(!1)}),[m,x]);const C={isOpen:x,onToggle:function(){E(!x)},onClose:_},S=!!(f?.anchor||f?.anchorRef||f?.getAnchorRect||f?.anchorRect);return(0,a.createElement)("div",{className:o,ref:(0,u.useMergeRefs)([w,t,y]),tabIndex:-1,style:h},r(C),x&&(0,a.createElement)($f,{position:g,onClose:_,onFocusOutside:function(){if(!w.current)return;const{ownerDocument:e}=w.current,t=e?.activeElement?.closest('[role="dialog"]');w.current.contains(e.activeElement)||t&&!t.contains(w.current)||_()},expandOnMobile:s,headerTitle:c,focusOnMount:d,offset:13,anchor:S?void 0:b,variant:v,...f,className:l()("components-dropdown__content",f?.className,i)},n(C)))}),"Dropdown");var by=vy;var yy=Ju((function(e,t){const n=Zu(e,"InputControlSuffixWrapper");return(0,a.createElement)(ph,{marginBottom:0,...n,ref:t})}),"InputControlSuffixWrapper");const wy=fd("select",{target:"e1mv6sxx2"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Bp.gray[900],";display:block;font-family:inherit;margin:0;width:100%;max-width:none;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;",(({disabled:e})=>e?np({color:Bp.ui.textDisabled},"",""):""),";",(({selectSize:e="default"})=>{const t={default:"13px",small:"11px","__unstable-large":"13px"}[e];return t?np("font-size:","16px",";@media ( min-width: 600px ){font-size:",t,";}",""):""}),";",(({__next36pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{if(t)return;const r={default:{height:36,minHeight:36,paddingTop:0,paddingBottom:0},small:{height:24,minHeight:24,paddingTop:0,paddingBottom:0},"__unstable-large":{height:40,minHeight:40,paddingTop:0,paddingBottom:0}};e||(r.default={height:30,minHeight:30,paddingTop:0,paddingBottom:0});return np(r[n]||r.default,"","")}),";",(({__next36pxDefaultSize:e,multiple:t,selectSize:n="default"})=>{const r={default:16,small:8,"__unstable-large":16};e||(r.default=8);const o=r[n]||r.default;return uh({paddingLeft:o,paddingRight:o+18,...t?{paddingTop:o,paddingBottom:o}:{}})}),";",(({multiple:e})=>({overflow:e?"auto":"hidden"})),";}"),xy=fd("div",{target:"e1mv6sxx1"})("margin-inline-end:",rh(-1),";line-height:0;"),Ey=fd(yy,{target:"e1mv6sxx0"})("position:absolute;pointer-events:none;",uh({right:0}),";");var _y=function({icon:e,size:t=24,...n}){return(0,a.cloneElement)(e,{width:t,height:t,...n})};var Cy=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));var Sy=()=>(0,a.createElement)(Ey,null,(0,a.createElement)(xy,null,(0,a.createElement)(_y,{icon:Cy,size:18})));const ky=()=>{};const Ty=(0,a.forwardRef)((function(e,t){const{className:n,disabled:r=!1,help:o,hideLabelFromVision:i,id:s,label:c,multiple:d=!1,onBlur:f=ky,onChange:p,onFocus:m=ky,options:h=[],size:g="default",value:v,labelPosition:b="top",children:y,prefix:w,suffix:x,__next36pxDefaultSize:E=!1,__nextHasNoMarginBottom:_=!1,...C}=e,[S,k]=(0,a.useState)(!1),T=function(e){const t=(0,u.useInstanceId)(Ty);return e||`inspector-select-control-${t}`}(s),R=o?`${T}__help`:void 0;if(!h?.length&&!y)return null;const P=l()("components-select-control",n);return(0,a.createElement)(Uv,{help:o,id:T,__nextHasNoMarginBottom:_},(0,a.createElement)(wg,{className:P,disabled:r,hideLabelFromVision:i,id:T,isFocused:S,label:c,size:g,suffix:x||!d&&(0,a.createElement)(Sy,null),prefix:w,labelPosition:b,__next36pxDefaultSize:E},(0,a.createElement)(wy,{...C,__next36pxDefaultSize:E,"aria-describedby":R,className:"components-select-control__input",disabled:r,id:T,multiple:d,onBlur:e=>{f(e),k(!1)},onChange:t=>{if(e.multiple){const n=Array.from(t.target.options).filter((({selected:e})=>e)).map((({value:e})=>e));e.onChange?.(n,{event:t})}else e.onChange?.(t.target.value,{event:t})},onFocus:e=>{m(e),k(!0)},ref:t,selectSize:g,value:v},y||h.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,a.createElement)("option",{key:n,value:e.value,disabled:e.disabled,hidden:e.hidden},e.label)})))))}));var Ry=Ty;const Py={initial:void 0,fallback:""};var My=function(e,t=Py){const{initial:n,fallback:r}={...Py,...t},[o,i]=(0,a.useState)(e),s=_h(e);return(0,a.useEffect)((()=>{s&&o&&i(void 0)}),[s,o]),[function(e=[],t){var n;return null!==(n=e.find(_h))&&void 0!==n?n:t}([e,o,n],r),(0,a.useCallback)((e=>{s||i(e)}),[s])]};function Iy(e,t,n){return"number"!=typeof e?null:parseFloat(`${nb(e,t,n)}`)}const Ny=()=>np({height:30,minHeight:30},"",""),Oy=12,Dy=fd("div",{target:"e1epgpqk14"})({name:"1se47kl",styles:"-webkit-tap-highlight-color:transparent;align-items:flex-start;display:flex;justify-content:flex-start;padding:0;position:relative;touch-action:none;width:100%"}),Ay=fd("div",{target:"e1epgpqk13"})("display:block;flex:1;position:relative;width:100%;",(({color:e=Bp.ui.borderFocus})=>np({color:e},"","")),";",Ny,";",(({marks:e,__nextHasNoMarginBottom:t})=>t?"":np({marginBottom:e?16:void 0},"","")),";"),Ly=fd("span",{target:"e1epgpqk12"})("display:flex;margin-top:",4,"px;",uh({marginRight:6}),";"),zy=fd("span",{target:"e1epgpqk11"})("display:flex;margin-top:",4,"px;",uh({marginLeft:6}),";"),Fy=fd("span",{target:"e1epgpqk10"})("background-color:",Bp.gray[300],";left:0;pointer-events:none;right:0;display:block;height:",4,"px;position:absolute;margin-top:",13,"px;top:0;border-radius:",4,"px;",(({disabled:e,railColor:t})=>{let n=t||"";return e&&(n=Bp.ui.backgroundDisabled),np({background:n},"","")}),";"),By=fd("span",{target:"e1epgpqk9"})("background-color:currentColor;border-radius:",4,"px;height:",4,"px;pointer-events:none;display:block;position:absolute;margin-top:",13,"px;top:0;",(({disabled:e,trackColor:t})=>{let n=t||"currentColor";return e&&(n=Bp.gray[400]),np({background:n},"","")}),";"),jy=fd("span",{target:"e1epgpqk8"})({name:"l7tjj5",styles:"display:block;pointer-events:none;position:relative;width:100%;user-select:none"}),Vy=fd("span",{target:"e1epgpqk7"})("height:",Oy,"px;left:0;position:absolute;top:-4px;width:1px;",(({disabled:e,isFilled:t})=>{let n=t?"currentColor":Bp.gray[300];return e&&(n=Bp.gray[400]),np({backgroundColor:n},"","")}),";"),Hy=fd("span",{target:"e1epgpqk6"})("color:",Bp.gray[300],";left:0;font-size:11px;position:absolute;top:12px;transform:translateX( -50% );white-space:nowrap;",(({isFilled:e})=>np({color:e?Bp.gray[700]:Bp.gray[300]},"","")),";"),$y=({disabled:e})=>np("background-color:",e?Bp.gray[400]:Bp.ui.theme,";",""),Wy=fd("span",{target:"e1epgpqk5"})("align-items:center;display:flex;height:",Oy,"px;justify-content:center;margin-top:",9,"px;outline:0;pointer-events:none;position:absolute;top:0;user-select:none;width:",Oy,"px;border-radius:50%;",$y,";",uh({marginLeft:-10}),";",uh({transform:"translateX( 4.5px )"},{transform:"translateX( -4.5px )"}),";"),Uy=fd("span",{target:"e1epgpqk4"})("align-items:center;border-radius:50%;height:100%;outline:0;position:absolute;user-select:none;width:100%;",$y,";",(({isFocused:e})=>e?np("&::before{content:' ';position:absolute;background-color:",Bp.ui.theme,";opacity:0.4;border-radius:50%;height:",20,"px;width:",20,"px;top:-4px;left:-4px;}",""):""),";"),Gy=fd("input",{target:"e1epgpqk3"})("box-sizing:border-box;cursor:pointer;display:block;height:100%;left:0;margin:0 -",6,"px;opacity:0;outline:none;position:absolute;right:0;top:0;width:calc( 100% + ",Oy,"px );");var Ky={name:"1cypxip",styles:"top:-80%"},qy={name:"1lr98c4",styles:"bottom:-80%"};const Yy=fd("span",{target:"e1epgpqk2"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;color:white;display:inline-block;font-size:12px;min-width:32px;opacity:0;padding:4px 8px;pointer-events:none;position:absolute;text-align:center;transition:opacity 120ms ease;user-select:none;line-height:1.4;",(({show:e})=>np({opacity:e?1:0},"","")),";",(({position:e})=>"bottom"===e?qy:Ky),";",jp("transition"),";",uh({transform:"translateX(-50%)"},{transform:"translateX(50%)"}),";"),Xy=fd(db,{target:"e1epgpqk1"})("display:inline-block;font-size:13px;margin-top:0;width:",rh(16),"!important;input[type='number']&{",Ny,";}",uh({marginLeft:`${rh(4)} !important`}),";"),Zy=fd("span",{target:"e1epgpqk0"})("display:block;margin-top:0;button,button.is-small{margin-left:0;",Ny,";}",uh({marginLeft:8}),";");var Jy=(0,a.forwardRef)((function(e,t){const{describedBy:n,label:r,value:o,...i}=e;return(0,a.createElement)(Gy,{...i,"aria-describedby":n,"aria-label":r,"aria-hidden":!1,ref:t,tabIndex:0,type:"range",value:o})}));function Qy(e){const{className:t,isFilled:n=!1,label:r,style:o={},...i}=e,s=l()("components-range-control__mark",n&&"is-filled",t),c=l()("components-range-control__mark-label",n&&"is-filled");return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Vy,{...i,"aria-hidden":"true",className:s,isFilled:n,style:o}),r&&(0,a.createElement)(Hy,{"aria-hidden":"true",className:c,isFilled:n,style:o},r))}function ew(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0,...l}=e;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Fy,{disabled:t,...l}),n&&(0,a.createElement)(tw,{disabled:t,marks:n,min:r,max:o,step:i,value:s}))}function tw(e){const{disabled:t=!1,marks:n=!1,min:r=0,max:o=100,step:i=1,value:s=0}=e,l=function({marks:e,min:t=0,max:n=100,step:r=1,value:o=0}){if(!e)return[];const i=n-t;if(!Array.isArray(e)){e=[];const n=1+Math.round(i/r);for(;n>e.push({value:r*e.length+t}););}const a=[];return e.forEach(((e,r)=>{if(e.value<t||e.value>n)return;const s=`mark-${r}`,l=e.value<=o,u=(e.value-t)/i*100+"%",d={[(0,c.isRTL)()?"right":"left"]:u};a.push({...e,isFilled:l,key:s,style:d})})),a}({marks:n,min:r,max:o,step:"any"===i?1:i,value:s});return(0,a.createElement)(jy,{"aria-hidden":"true",className:"components-range-control__marks"},l.map((e=>(0,a.createElement)(Qy,{...e,key:e.key,"aria-hidden":"true",disabled:t}))))}function nw(e){const{className:t,inputRef:n,tooltipPosition:r,show:o=!1,style:i={},value:s=0,renderTooltipContent:c=(e=>e),zIndex:u=100,...d}=e,f=function({inputRef:e,tooltipPosition:t}){const[n,r]=(0,a.useState)(),o=(0,a.useCallback)((()=>{e&&e.current&&r(t)}),[t,e]);return(0,a.useEffect)((()=>{o()}),[o]),(0,a.useEffect)((()=>(window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}))),n}({inputRef:n,tooltipPosition:r}),p=l()("components-simple-tooltip",t),m={...i,zIndex:u};return(0,a.createElement)(Yy,{...d,"aria-hidden":o,className:p,position:f,show:o,role:"tooltip",style:m},c(s))}const rw=()=>{};const ow=(0,a.forwardRef)((function e(t,n){const{__nextHasNoMarginBottom:r=!1,afterIcon:o,allowReset:i=!1,beforeIcon:s,className:d,color:f=Bp.ui.theme,currentInput:p,disabled:m=!1,help:h,hideLabelFromVision:g=!1,initialPosition:v,isShiftStepEnabled:b=!0,label:y,marks:w=!1,max:x=100,min:E=0,onBlur:_=rw,onChange:C=rw,onFocus:S=rw,onMouseLeave:k=rw,onMouseMove:T=rw,railColor:R,renderTooltipContent:P=(e=>e),resetFallbackValue:M,shiftStep:I=10,showTooltip:N,step:O=1,trackColor:D,value:A,withInputField:L=!0,...z}=t,[F,B]=function(e){const{min:t,max:n,value:r,initial:o}=e,[i,s]=My(Iy(r,t,n),{initial:Iy(null!=o?o:null,t,n),fallback:null});return[i,(0,a.useCallback)((e=>{s(null===e?null:Iy(e,t,n))}),[t,n,s])]}({min:E,max:x,value:null!=A?A:null,initial:v}),j=(0,a.useRef)(!1);let V=N,H=L;"any"===O&&(V=!1,H=!1);const[$,W]=(0,a.useState)(V),[U,G]=(0,a.useState)(!1),K=(0,a.useRef)(),q=K.current?.matches(":focus"),Y=!m&&U,X=null===F,Z=X?"":void 0!==F?F:p,J=X?(x-E)/2+E:F,Q=`${nb(X?50:(F-E)/(x-E)*100,0,100)}%`,ee=l()("components-range-control",d),te=l()("components-range-control__wrapper",!!w&&"is-marked"),ne=(0,u.useInstanceId)(e,"inspector-range-control"),re=h?`${ne}__help`:void 0,oe=!1!==V&&Number.isFinite(F),ie=()=>{let e=parseFloat(`${M}`),t=e;isNaN(e)&&(e=null,t=void 0),B(e),C(t)},ae={[(0,c.isRTL)()?"right":"left"]:Q};return(0,a.createElement)(Uv,{__nextHasNoMarginBottom:r,className:ee,label:y,hideLabelFromVision:g,id:`${ne}`,help:h},(0,a.createElement)(Dy,{className:"components-range-control__root"},s&&(0,a.createElement)(Ly,null,(0,a.createElement)(Zl,{icon:s})),(0,a.createElement)(Ay,{__nextHasNoMarginBottom:r,className:te,color:f,marks:!!w},(0,a.createElement)(Jy,{...z,className:"components-range-control__slider",describedBy:re,disabled:m,id:`${ne}`,label:y,max:x,min:E,onBlur:e=>{_(e),G(!1),W(!1)},onChange:e=>{const t=parseFloat(e.target.value);B(t),C(t)},onFocus:e=>{S(e),G(!0),W(!0)},onMouseMove:T,onMouseLeave:k,ref:(0,u.useMergeRefs)([K,n]),step:O,value:null!=Z?Z:void 0}),(0,a.createElement)(ew,{"aria-hidden":!0,disabled:m,marks:w,max:x,min:E,railColor:R,step:O,value:J}),(0,a.createElement)(By,{"aria-hidden":!0,className:"components-range-control__track",disabled:m,style:{width:Q},trackColor:D}),(0,a.createElement)(Wy,{className:"components-range-control__thumb-wrapper",style:ae,disabled:m},(0,a.createElement)(Uy,{"aria-hidden":!0,isFocused:Y,disabled:m})),oe&&(0,a.createElement)(nw,{className:"components-range-control__tooltip",inputRef:K,tooltipPosition:"bottom",renderTooltipContent:P,show:q||$,style:ae,value:F})),o&&(0,a.createElement)(zy,null,(0,a.createElement)(Zl,{icon:o})),H&&(0,a.createElement)(Xy,{"aria-label":y,className:"components-range-control__number",disabled:m,inputMode:"decimal",isShiftStepEnabled:b,max:x,min:E,onBlur:()=>{j.current&&(ie(),j.current=!1)},onChange:e=>{let t=parseFloat(e);B(t),isNaN(t)?i&&(j.current=!0):((t<E||t>x)&&(t=Iy(t,E,x)),C(t),j.current=!1)},shiftStep:I,step:O,value:Z}),i&&(0,a.createElement)(Zy,null,(0,a.createElement)(bd,{className:"components-range-control__reset",disabled:m||void 0===F,variant:"secondary",isSmall:!0,onClick:ie},(0,c.__)("Reset")))))}));var iw=ow;const aw=fd(db,{target:"ez9hsf47"})(ag,"{width:",rh(24),";}"),sw=fd(Ry,{target:"ez9hsf46"})("margin-left:",rh(-2),";width:5em;select:not( :focus )~",fg,fg,fg,"{border-color:transparent;}"),lw=fd(iw,{target:"ez9hsf45"})("flex:1;margin-right:",rh(2),";"),cw=`\n.react-colorful__interactive {\n\twidth: calc( 100% - ${rh(2)} );\n\tmargin-left: ${rh(1)};\n}`,uw=fd("div",{target:"ez9hsf44"})("padding-top:",rh(2),";padding-right:0;padding-left:0;padding-bottom:0;"),dw=fd(lb,{target:"ez9hsf43"})("padding-left:",rh(4),";padding-right:",rh(4),";"),fw=fd(wh,{target:"ez9hsf42"})("padding-top:",rh(4),";padding-left:",rh(4),";padding-right:",rh(3),";padding-bottom:",rh(5),";"),pw=fd("div",{target:"ez9hsf41"})(Lv,";width:216px;.react-colorful{display:flex;flex-direction:column;align-items:center;width:216px;height:auto;overflow:hidden;}.react-colorful__saturation{width:100%;border-radius:0;height:216px;margin-bottom:",rh(4),";border-bottom:none;}.react-colorful__hue,.react-colorful__alpha{width:184px;height:16px;border-radius:16px;margin-bottom:",rh(2),";}.react-colorful__pointer{height:16px;width:16px;border:none;box-shadow:0 0 2px 0 rgba( 0, 0, 0, 0.25 );outline:2px solid transparent;}.react-colorful__pointer-fill{box-shadow:inset 0 0 0 ",zh.borderWidthFocus," #fff;}",cw,";"),mw=fd(bd,{target:"ez9hsf40"})("&&&&&{min-width:",rh(6),";padding:0;>svg{margin-right:0;}}");var hw=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M20.2 8v11c0 .7-.6 1.2-1.2 1.2H6v1.5h13c1.5 0 2.7-1.2 2.7-2.8V8zM18 16.4V4.6c0-.9-.7-1.6-1.6-1.6H4.6C3.7 3 3 3.7 3 4.6v11.8c0 .9.7 1.6 1.6 1.6h11.8c.9 0 1.6-.7 1.6-1.6zm-13.5 0V4.6c0-.1.1-.1.1-.1h11.8c.1 0 .1.1.1.1v11.8c0 .1-.1.1-.1.1H4.6l-.1-.1z"}));function gw(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vw(e){return e instanceof gw(e).Element||e instanceof Element}function bw(e){return e instanceof gw(e).HTMLElement||e instanceof HTMLElement}function yw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof gw(e).ShadowRoot||e instanceof ShadowRoot)}var ww=Math.max,xw=Math.min,Ew=Math.round;function _w(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Cw(){return!/^((?!chrome|android).)*safari/i.test(_w())}function Sw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&bw(e)&&(o=e.offsetWidth>0&&Ew(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ew(r.height)/e.offsetHeight||1);var a=(vw(e)?gw(e):window).visualViewport,s=!Cw()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function kw(e){var t=gw(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Tw(e){return e?(e.nodeName||"").toLowerCase():null}function Rw(e){return((vw(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pw(e){return Sw(Rw(e)).left+kw(e).scrollLeft}function Mw(e){return gw(e).getComputedStyle(e)}function Iw(e){var t=Mw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Nw(e,t,n){void 0===n&&(n=!1);var r=bw(t),o=bw(t)&&function(e){var t=e.getBoundingClientRect(),n=Ew(t.width)/e.offsetWidth||1,r=Ew(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Rw(t),a=Sw(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Tw(t)||Iw(i))&&(s=function(e){return e!==gw(e)&&bw(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:kw(e);var t}(t)),bw(t)?((l=Sw(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Pw(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ow(e){var t=Sw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Dw(e){return"html"===Tw(e)?e:e.assignedSlot||e.parentNode||(yw(e)?e.host:null)||Rw(e)}function Aw(e){return["html","body","#document"].indexOf(Tw(e))>=0?e.ownerDocument.body:bw(e)&&Iw(e)?e:Aw(Dw(e))}function Lw(e,t){var n;void 0===t&&(t=[]);var r=Aw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=gw(r),a=o?[i].concat(i.visualViewport||[],Iw(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Lw(Dw(a)))}function zw(e){return["table","td","th"].indexOf(Tw(e))>=0}function Fw(e){return bw(e)&&"fixed"!==Mw(e).position?e.offsetParent:null}function Bw(e){for(var t=gw(e),n=Fw(e);n&&zw(n)&&"static"===Mw(n).position;)n=Fw(n);return n&&("html"===Tw(n)||"body"===Tw(n)&&"static"===Mw(n).position)?t:n||function(e){var t=/firefox/i.test(_w());if(/Trident/i.test(_w())&&bw(e)&&"fixed"===Mw(e).position)return null;var n=Dw(e);for(yw(n)&&(n=n.host);bw(n)&&["html","body"].indexOf(Tw(n))<0;){var r=Mw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var jw="top",Vw="bottom",Hw="right",$w="left",Ww="auto",Uw=[jw,Vw,Hw,$w],Gw="start",Kw="end",qw="clippingParents",Yw="viewport",Xw="popper",Zw="reference",Jw=Uw.reduce((function(e,t){return e.concat([t+"-"+Gw,t+"-"+Kw])}),[]),Qw=[].concat(Uw,[Ww]).reduce((function(e,t){return e.concat([t,t+"-"+Gw,t+"-"+Kw])}),[]),ex=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function tx(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var nx={placement:"bottom",modifiers:[],strategy:"absolute"};function rx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ox(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?nx:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},nx,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:vw(e)?Lw(e):e.contextElement?Lw(e.contextElement):[],popper:Lw(t)};var a,c,f=function(e){var t=tx(e);return ex.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r}),a=function(){};l.push(i||a)}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(rx(t,n)){s.rects={reference:Nw(t,Bw(n),"fixed"===s.options.strategy),popper:Ow(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!rx(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var ix={passive:!0};var ax={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=gw(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,ix)})),s&&l.addEventListener("resize",n.update,ix),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ix)})),s&&l.removeEventListener("resize",n.update,ix)}},data:{}};function sx(e){return e.split("-")[0]}function lx(e){return e.split("-")[1]}function cx(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ux(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?sx(o):null,a=o?lx(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case jw:t={x:s,y:n.y-r.height};break;case Vw:t={x:s,y:n.y+n.height};break;case Hw:t={x:n.x+n.width,y:l};break;case $w:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?cx(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Gw:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Kw:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var dx={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ux({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},fx={top:"auto",right:"auto",bottom:"auto",left:"auto"};function px(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,m=a.y,h=void 0===m?0:m,g="function"==typeof u?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var v=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=$w,w=jw,x=window;if(c){var E=Bw(n),_="clientHeight",C="clientWidth";if(E===gw(n)&&"static"!==Mw(E=Rw(n)).position&&"absolute"===s&&(_="scrollHeight",C="scrollWidth"),o===jw||(o===$w||o===Hw)&&i===Kw)w=Vw,h-=(d&&E===x&&x.visualViewport?x.visualViewport.height:E[_])-r.height,h*=l?1:-1;if(o===$w||(o===jw||o===Vw)&&i===Kw)y=Hw,p-=(d&&E===x&&x.visualViewport?x.visualViewport.width:E[C])-r.width,p*=l?1:-1}var S,k=Object.assign({position:s},c&&fx),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ew(n*o)/o||0,y:Ew(r*o)/o||0}}({x:p,y:h},gw(n)):{x:p,y:h};return p=T.x,h=T.y,l?Object.assign({},k,((S={})[w]=b?"0":"",S[y]=v?"0":"",S.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",S)):Object.assign({},k,((t={})[w]=b?h+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var mx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:sx(t.placement),variation:lx(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,px(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,px(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var hx={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];bw(o)&&Tw(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});bw(r)&&Tw(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var gx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Qw.reduce((function(e,n){return e[n]=function(e,t,n){var r=sx(e),o=[$w,jw].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[$w,Hw].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},vx={left:"right",right:"left",bottom:"top",top:"bottom"};function bx(e){return e.replace(/left|right|bottom|top/g,(function(e){return vx[e]}))}var yx={start:"end",end:"start"};function wx(e){return e.replace(/start|end/g,(function(e){return yx[e]}))}function xx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&yw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ex(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _x(e,t,n){return t===Yw?Ex(function(e,t){var n=gw(e),r=Rw(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Cw();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Pw(e),y:l}}(e,n)):vw(t)?function(e,t){var n=Sw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ex(function(e){var t,n=Rw(e),r=kw(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ww(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ww(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Pw(e),l=-r.scrollTop;return"rtl"===Mw(o||n).direction&&(s+=ww(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Rw(e)))}function Cx(e,t,n,r){var o="clippingParents"===t?function(e){var t=Lw(Dw(e)),n=["absolute","fixed"].indexOf(Mw(e).position)>=0&&bw(e)?Bw(e):e;return vw(n)?t.filter((function(e){return vw(e)&&xx(e,n)&&"body"!==Tw(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=_x(e,n,r);return t.top=ww(o.top,t.top),t.right=xw(o.right,t.right),t.bottom=xw(o.bottom,t.bottom),t.left=ww(o.left,t.left),t}),_x(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Sx(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function kx(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Tx(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?qw:s,c=n.rootBoundary,u=void 0===c?Yw:c,d=n.elementContext,f=void 0===d?Xw:d,p=n.altBoundary,m=void 0!==p&&p,h=n.padding,g=void 0===h?0:h,v=Sx("number"!=typeof g?g:kx(g,Uw)),b=f===Xw?Zw:Xw,y=e.rects.popper,w=e.elements[m?b:f],x=Cx(vw(w)?w:w.contextElement||Rw(e.elements.popper),l,u,a),E=Sw(e.elements.reference),_=ux({reference:E,element:y,strategy:"absolute",placement:o}),C=Ex(Object.assign({},y,_)),S=f===Xw?C:E,k={top:x.top-S.top+v.top,bottom:S.bottom-x.bottom+v.bottom,left:x.left-S.left+v.left,right:S.right-x.right+v.right},T=e.modifiersData.offset;if(f===Xw&&T){var R=T[o];Object.keys(k).forEach((function(e){var t=[Hw,Vw].indexOf(e)>=0?1:-1,n=[jw,Vw].indexOf(e)>=0?"y":"x";k[e]+=R[n]*t}))}return k}var Rx={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,g=t.options.placement,v=sx(g),b=l||(v===g||!m?[bx(g)]:function(e){if(sx(e)===Ww)return[];var t=bx(e);return[wx(e),t,wx(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(sx(n)===Ww?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Qw:l,u=lx(r),d=u?s?Jw:Jw.filter((function(e){return lx(e)===u})):Uw,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Tx(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[sx(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),w=t.rects.reference,x=t.rects.popper,E=new Map,_=!0,C=y[0],S=0;S<y.length;S++){var k=y[S],T=sx(k),R=lx(k)===Gw,P=[jw,Vw].indexOf(T)>=0,M=P?"width":"height",I=Tx(t,{placement:k,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),N=P?R?Hw:$w:R?Vw:jw;w[M]>x[M]&&(N=bx(N));var O=bx(N),D=[];if(i&&D.push(I[T]<=0),s&&D.push(I[N]<=0,I[O]<=0),D.every((function(e){return e}))){C=k,_=!1;break}E.set(k,D)}if(_)for(var A=function(e){var t=y.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},L=m?3:1;L>0;L--){if("break"===A(L))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Px(e,t,n){return ww(e,xw(t,n))}var Mx={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=Tx(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=sx(t.placement),b=lx(t.placement),y=!b,w=cx(v),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,_=t.rects.reference,C=t.rects.popper,S="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,k="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(E){if(i){var P,M="y"===w?jw:$w,I="y"===w?Vw:Hw,N="y"===w?"height":"width",O=E[w],D=O+g[M],A=O-g[I],L=p?-C[N]/2:0,z=b===Gw?_[N]:C[N],F=b===Gw?-C[N]:-_[N],B=t.elements.arrow,j=p&&B?Ow(B):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=V[M],$=V[I],W=Px(0,_[N],j[N]),U=y?_[N]/2-L-W-H-k.mainAxis:z-W-H-k.mainAxis,G=y?-_[N]/2+L+W+$+k.mainAxis:F+W+$+k.mainAxis,K=t.elements.arrow&&Bw(t.elements.arrow),q=K?"y"===w?K.clientTop||0:K.clientLeft||0:0,Y=null!=(P=null==T?void 0:T[w])?P:0,X=O+G-Y,Z=Px(p?xw(D,O+U-Y-q):D,O,p?ww(A,X):A);E[w]=Z,R[w]=Z-O}if(s){var J,Q="x"===w?jw:$w,ee="x"===w?Vw:Hw,te=E[x],ne="y"===x?"height":"width",re=te+g[Q],oe=te-g[ee],ie=-1!==[jw,$w].indexOf(v),ae=null!=(J=null==T?void 0:T[x])?J:0,se=ie?re:te-_[ne]-C[ne]-ae+k.altAxis,le=ie?te+_[ne]+C[ne]-ae-k.altAxis:oe,ce=p&&ie?function(e,t,n){var r=Px(e,t,n);return r>n?n:r}(se,te,le):Px(p?se:re,te,p?le:oe);E[x]=ce,R[x]=ce-te}t.modifiersData[r]=R}},requiresIfExists:["offset"]};var Ix={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=sx(n.placement),l=cx(s),c=[$w,Hw].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Sx("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:kx(e,Uw))}(o.padding,n),d=Ow(i),f="y"===l?jw:$w,p="y"===l?Vw:Hw,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],h=a[l]-n.rects.reference[l],g=Bw(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,y=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+b,E=Px(y,x,w),_=l;n.modifiersData[r]=((t={})[_]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&xx(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nx(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ox(e){return[jw,Hw,Vw,$w].some((function(t){return e[t]>=0}))}var Dx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Tx(t,{elementContext:"reference"}),s=Tx(t,{altBoundary:!0}),l=Nx(a,r),c=Nx(s,o,i),u=Ox(l),d=Ox(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},Ax=ox({defaultModifiers:[ax,dx,mx,hx,gx,Rx,Mx,Ix,Dx]});function Lx(e){void 0===e&&(e={});var t,n,r=Yp(e),o=r.visible,i=void 0!==o&&o,a=r.animated,s=void 0!==a&&a,l=tm(m(r,["visible","animated"])),c=(0,v.useState)(i),u=c[0],d=c[1],f=(0,v.useState)(s),h=f[0],g=f[1],b=(0,v.useState)(!1),y=b[0],w=b[1],x=(t=u,n=(0,v.useRef)(null),U((function(){n.current=t}),[t]),n),E=null!=x.current&&x.current!==u;h&&!y&&E&&w(!0),(0,v.useEffect)((function(){if("number"==typeof h&&y){var e=setTimeout((function(){return w(!1)}),h);return function(){clearTimeout(e)}}return function(){}}),[h,y]);var _=(0,v.useCallback)((function(){return d(!0)}),[]),C=(0,v.useCallback)((function(){return d(!1)}),[]),S=(0,v.useCallback)((function(){return d((function(e){return!e}))}),[]),k=(0,v.useCallback)((function(){return w(!1)}),[]);return p(p({},l),{},{visible:u,animated:h,animating:y,show:_,hide:C,toggle:S,setVisible:d,setAnimated:g,stopAnimation:k})}var zx=ee("Mac")&&!ee("Chrome")&&ee("Safari");function Fx(e){return function(t){return e&&!A(t,e)?e:t}}function Bx(e){void 0===e&&(e={});var t=Yp(e),n=t.gutter,r=void 0===n?12:n,o=t.placement,i=void 0===o?"bottom":o,a=t.unstable_flip,s=void 0===a||a,l=t.unstable_offset,c=t.unstable_preventOverflow,u=void 0===c||c,d=t.unstable_fixed,f=void 0!==d&&d,h=t.modal,g=void 0!==h&&h,b=m(t,["gutter","placement","unstable_flip","unstable_offset","unstable_preventOverflow","unstable_fixed","modal"]),y=(0,v.useRef)(null),w=(0,v.useRef)(null),x=(0,v.useRef)(null),E=(0,v.useRef)(null),_=(0,v.useState)(i),C=_[0],S=_[1],k=(0,v.useState)(i),T=k[0],R=k[1],P=(0,v.useState)(l||[0,r])[0],M=(0,v.useState)({position:"fixed",left:"100%",top:"100%"}),I=M[0],N=M[1],O=(0,v.useState)({}),D=O[0],A=O[1],L=function(e){void 0===e&&(e={});var t=Yp(e),n=t.modal,r=void 0===n||n,o=Lx(m(t,["modal"])),i=(0,v.useState)(r),a=i[0],s=i[1],l=(0,v.useRef)(null);return p(p({},o),{},{modal:a,setModal:s,unstable_disclosureRef:l})}(p({modal:g},b)),z=(0,v.useCallback)((function(){return!!y.current&&(y.current.forceUpdate(),!0)}),[]),F=(0,v.useCallback)((function(e){e.placement&&R(e.placement),e.styles&&(N(Fx(e.styles.popper)),E.current&&A(Fx(e.styles.arrow)))}),[]);return U((function(){return w.current&&x.current&&(y.current=Ax(w.current,x.current,{placement:C,strategy:f?"fixed":"absolute",onFirstUpdate:zx?F:void 0,modifiers:[{name:"eventListeners",enabled:L.visible},{name:"applyStyles",enabled:!1},{name:"flip",enabled:s,options:{padding:8}},{name:"offset",options:{offset:P}},{name:"preventOverflow",enabled:u,options:{tetherOffset:function(){var e;return(null===(e=E.current)||void 0===e?void 0:e.clientWidth)||0}}},{name:"arrow",enabled:!!E.current,options:{element:E.current}},{name:"updateState",phase:"write",requires:["computeStyles"],enabled:L.visible&&!0,fn:function(e){var t=e.state;return F(t)}}]})),function(){y.current&&(y.current.destroy(),y.current=null)}}),[C,f,L.visible,s,P,u]),(0,v.useEffect)((function(){if(L.visible){var e=window.requestAnimationFrame((function(){var e;null===(e=y.current)||void 0===e||e.forceUpdate()}));return function(){window.cancelAnimationFrame(e)}}}),[L.visible]),p(p({},L),{},{unstable_referenceRef:w,unstable_popoverRef:x,unstable_arrowRef:E,unstable_popoverStyles:I,unstable_arrowStyles:D,unstable_update:z,unstable_originalPlacement:C,placement:T,place:S})}var jx={currentTooltipId:null,listeners:new Set,subscribe:function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},show:function(e){this.currentTooltipId=e,this.listeners.forEach((function(t){return t(e)}))},hide:function(e){this.currentTooltipId===e&&(this.currentTooltipId=null,this.listeners.forEach((function(e){return e(null)})))}};var Vx=["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation","unstable_disclosureRef","unstable_referenceRef","unstable_popoverRef","unstable_arrowRef","unstable_popoverStyles","unstable_arrowStyles","unstable_originalPlacement","unstable_update","placement","place","unstable_timeout","unstable_setTimeout"],Hx=[].concat(Vx,["unstable_portal"]),$x=B({name:"TooltipReference",compose:re,keys:Vx,useProps:function(e,t){var n=t.ref,r=t.onFocus,o=t.onBlur,i=t.onMouseEnter,a=t.onMouseLeave,s=m(t,["ref","onFocus","onBlur","onMouseEnter","onMouseLeave"]),l=G(r),c=G(o),u=G(i),d=G(a),f=(0,v.useCallback)((function(t){var n,r;null===(n=l.current)||void 0===n||n.call(l,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),h=(0,v.useCallback)((function(t){var n,r;null===(n=c.current)||void 0===n||n.call(c,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]),g=(0,v.useCallback)((function(t){var n,r;null===(n=u.current)||void 0===n||n.call(u,t),t.defaultPrevented||null===(r=e.show)||void 0===r||r.call(e)}),[e.show]),b=(0,v.useCallback)((function(t){var n,r;null===(n=d.current)||void 0===n||n.call(d,t),t.defaultPrevented||null===(r=e.hide)||void 0===r||r.call(e)}),[e.hide]);return p({ref:V(e.unstable_referenceRef,n),tabIndex:0,onFocus:f,onBlur:h,onMouseEnter:g,onMouseLeave:b,"aria-describedby":e.baseId},s)}}),Wx=z({as:"div",useHook:$x});const Ux=(0,a.createContext)({});var Gx=B({name:"DisclosureContent",compose:re,keys:["baseId","unstable_idCountRef","visible","animated","animating","setBaseId","show","hide","toggle","setVisible","setAnimated","stopAnimation"],useProps:function(e,t){var n=t.onTransitionEnd,r=t.onAnimationEnd,o=t.style,i=m(t,["onTransitionEnd","onAnimationEnd","style"]),a=e.animated&&e.animating,s=(0,v.useState)(null),l=s[0],c=s[1],u=!e.visible&&!a,d=u?p({display:"none"},o):o,f=G(n),h=G(r),g=(0,v.useRef)(0);(0,v.useEffect)((function(){if(e.animated)return g.current=window.requestAnimationFrame((function(){g.current=window.requestAnimationFrame((function(){e.visible?c("enter"):c(a?"leave":null)}))})),function(){return window.cancelAnimationFrame(g.current)}}),[e.animated,e.visible,a]);var b=(0,v.useCallback)((function(t){var n;K(t)&&(a&&!0===e.animated&&(null===(n=e.stopAnimation)||void 0===n||n.call(e)))}),[e.animated,a,e.stopAnimation]),y=(0,v.useCallback)((function(e){var t;null===(t=f.current)||void 0===t||t.call(f,e),b(e)}),[b]),w=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),b(e)}),[b]);return p({id:e.baseId,"data-enter":"enter"===l?"":void 0,"data-leave":"leave"===l?"":void 0,onTransitionEnd:y,onAnimationEnd:w,hidden:u,style:d},i)}}),Kx=z({as:"div",useHook:Gx});function qx(){return W?document.body:null}var Yx=(0,v.createContext)(qx());function Xx(e){var t=e.children,n=(0,v.useContext)(Yx)||qx(),r=(0,v.useState)((function(){if(W){var e=document.createElement("div");return e.className=Xx.__className,e}return null}))[0];return U((function(){if(r&&n)return n.appendChild(r),function(){n.removeChild(r)}}),[r,n]),r?(0,It.createPortal)((0,v.createElement)(Yx.Provider,{value:r},t),r):null}function Zx(e){e.defaultPrevented||"Escape"===e.key&&jx.show(null)}Xx.__className="__reakit-portal",Xx.__selector="."+Xx.__className;var Jx=B({name:"Tooltip",compose:Gx,keys:Hx,useOptions:function(e){var t=e.unstable_portal;return p({unstable_portal:void 0===t||t},m(e,["unstable_portal"]))},useProps:function(e,t){var n=t.ref,r=t.style,o=t.wrapElement,i=m(t,["ref","style","wrapElement"]);(0,v.useEffect)((function(){var t;H(null===(t=e.unstable_popoverRef)||void 0===t?void 0:t.current).addEventListener("keydown",Zx)}),[]);var a=(0,v.useCallback)((function(t){return e.unstable_portal&&(t=(0,v.createElement)(Xx,null,t)),o?o(t):t}),[e.unstable_portal,o]);return p({ref:V(e.unstable_popoverRef,n),role:"tooltip",style:p(p({},e.unstable_popoverStyles),{},{pointerEvents:"none"},r),wrapElement:a},i)}}),Qx=z({as:"div",memo:!0,useHook:Jx});var eE=Ju((function(e,t){const{as:n="span",shortcut:r,className:o,...i}=Zu(e,"Shortcut");if(!r)return null;let s,l;return"string"==typeof r?s=r:(s=r.display,l=r.ariaLabel),(0,a.createElement)(md,{as:n,className:o,"aria-label":l,ref:t,...i},s)}),"Shortcut");const tE=np("z-index:",1000002,";box-sizing:border-box;opacity:0;outline:none;transform-origin:top center;transition:opacity ",zh.transitionDurationFastest," ease;font-size:",zh.fontSize,";&[data-enter]{opacity:1;}",""),nE=fd("div",{target:"e7tfjmw1"})("background:rgba( 0, 0, 0, 0.8 );border-radius:2px;box-shadow:0 0 0 1px rgba( 255, 255, 255, 0.04 );color:",Bp.white,";padding:4px 8px;"),rE={name:"12mkfdx",styles:"outline:none"},oE=fd(eE,{target:"e7tfjmw0"})("display:inline-block;margin-left:",rh(1),";"),{TooltipPopoverView:iE}=t;var aE=Ju((function(e,t){const{children:n,className:r,...o}=Zu(e,"TooltipContent"),{tooltip:i}=(0,a.useContext)(Ux),s=Xu()(tE,r);return(0,a.createElement)(Qx,{as:md,...o,...i,className:s,ref:t},(0,a.createElement)(iE,null,n))}),"TooltipContent");const sE=Ju((function(e,t){const{animated:n=!0,animationDuration:r=160,baseId:o,children:i,content:s,focusable:l=!0,gutter:c=4,id:u,modal:d=!0,placement:f,visible:h=!1,shortcut:g,...b}=Zu(e,"Tooltip"),y=function(e){void 0===e&&(e={});var t=Yp(e),n=t.placement,r=void 0===n?"top":n,o=t.unstable_timeout,i=void 0===o?0:o,a=m(t,["placement","unstable_timeout"]),s=(0,v.useState)(i),l=s[0],c=s[1],u=(0,v.useRef)(null),d=(0,v.useRef)(null),f=Bx(p(p({},a),{},{placement:r})),h=(f.modal,f.setModal,m(f,["modal","setModal"])),g=(0,v.useCallback)((function(){null!==u.current&&window.clearTimeout(u.current),null!==d.current&&window.clearTimeout(d.current)}),[]),b=(0,v.useCallback)((function(){g(),h.hide(),d.current=window.setTimeout((function(){jx.hide(h.baseId)}),l)}),[g,h.hide,l,h.baseId]),y=(0,v.useCallback)((function(){g(),!l||jx.currentTooltipId?(jx.show(h.baseId),h.show()):(jx.show(null),u.current=window.setTimeout((function(){jx.show(h.baseId),h.show()}),l))}),[g,l,h.show,h.baseId]);return(0,v.useEffect)((function(){return jx.subscribe((function(e){e!==h.baseId&&(g(),h.visible&&h.hide())}))}),[h.baseId,g,h.visible,h.hide]),(0,v.useEffect)((function(){return function(){g(),jx.hide(h.baseId)}}),[g,h.baseId]),p(p({},h),{},{hide:b,show:y,unstable_timeout:l,unstable_setTimeout:c})}({animated:n?r:void 0,baseId:o||u,gutter:c,placement:f,visible:h,...b}),w=(0,a.useMemo)((()=>({tooltip:y})),[y]);return(0,a.createElement)(Ux.Provider,{value:w},s&&(0,a.createElement)(aE,{unstable_portal:d,ref:t},s,g&&(0,a.createElement)(oE,{shortcut:g})),i&&(0,a.createElement)(Wx,{...y,...i.props,ref:i?.ref},(e=>(l||(e.tabIndex=void 0),(0,a.cloneElement)(i,e)))))}),"Tooltip");var lE=sE;const cE=e=>{const{color:t,colorType:n}=e,[r,o]=(0,a.useState)(null),i=(0,a.useRef)(),s=(0,u.useCopyToClipboard)((()=>{switch(n){case"hsl":return t.toHslString();case"rgb":return t.toRgbString();default:return t.toHex()}}),(()=>{i.current&&clearTimeout(i.current),o(t.toHex()),i.current=setTimeout((()=>{o(null),i.current=void 0}),3e3)}));return(0,a.useEffect)((()=>()=>{i.current&&clearTimeout(i.current)}),[]),(0,a.createElement)(lE,{content:(0,a.createElement)(eg,{color:"white"},r===t.toHex()?(0,c.__)("Copied!"):(0,c.__)("Copy")),placement:"bottom"},(0,a.createElement)(mw,{isSmall:!0,ref:s,icon:hw,showTooltip:!1}))},uE=({min:e,max:t,label:n,abbreviation:r,onChange:o,value:i})=>(0,a.createElement)(lb,{spacing:4},(0,a.createElement)(aw,{min:e,max:t,label:n,hideLabelFromVision:!0,value:i,onChange:e=>{o(e?"string"!=typeof e?e:parseInt(e,10):0)},prefix:(0,a.createElement)(ph,{as:eg,paddingLeft:rh(4),color:Bp.ui.theme,lineHeight:1},r),spinControls:"none",size:"__unstable-large"}),(0,a.createElement)(lw,{__nextHasNoMarginBottom:!0,label:n,hideLabelFromVision:!0,min:e,max:t,value:i,onChange:o,withInputField:!1})),dE=({color:e,onChange:t,enableAlpha:n})=>{const{r:r,g:o,b:i,a:s}=e.toRgb();return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(uE,{min:0,max:255,label:"Red",abbreviation:"R",value:r,onChange:e=>t(Mp({r:e,g:o,b:i,a:s}))}),(0,a.createElement)(uE,{min:0,max:255,label:"Green",abbreviation:"G",value:o,onChange:e=>t(Mp({r:r,g:e,b:i,a:s}))}),(0,a.createElement)(uE,{min:0,max:255,label:"Blue",abbreviation:"B",value:i,onChange:e=>t(Mp({r:r,g:o,b:e,a:s}))}),n&&(0,a.createElement)(uE,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>t(Mp({r:r,g:o,b:i,a:e/100}))}))},fE=({color:e,onChange:t,enableAlpha:n})=>{const{h:r,s:o,l:i,a:s}=e.toHsl();return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(uE,{min:0,max:359,label:"Hue",abbreviation:"H",value:r,onChange:e=>{t(Mp({h:e,s:o,l:i,a:s}))}}),(0,a.createElement)(uE,{min:0,max:100,label:"Saturation",abbreviation:"S",value:o,onChange:e=>{t(Mp({h:r,s:e,l:i,a:s}))}}),(0,a.createElement)(uE,{min:0,max:100,label:"Lightness",abbreviation:"L",value:i,onChange:e=>{t(Mp({h:r,s:o,l:e,a:s}))}}),n&&(0,a.createElement)(uE,{min:0,max:100,label:"Alpha",abbreviation:"A",value:Math.trunc(100*s),onChange:e=>{t(Mp({h:r,s:o,l:i,a:e/100}))}}))},pE=({color:e,onChange:t,enableAlpha:n})=>(0,a.createElement)(Kv,{prefix:(0,a.createElement)(ph,{as:eg,marginLeft:rh(4),color:Bp.ui.theme,lineHeight:1},"#"),value:e.toHex().slice(1).toUpperCase(),onChange:e=>{if(!e)return;const n=e.startsWith("#")?e:"#"+e;t(Mp(n))},maxLength:n?9:7,label:(0,c.__)("Hex color"),hideLabelFromVision:!0,size:"__unstable-large",__unstableStateReducer:(e,t)=>{const n=t.payload?.event?.nativeEvent;if("insertFromPaste"!==n?.inputType)return{...e};const r=e.value?.startsWith("#")?e.value.slice(1).toUpperCase():e.value?.toUpperCase();return{...e,value:r}},__unstableInputWidth:"9em"}),mE=({colorType:e,color:t,onChange:n,enableAlpha:r})=>{const o={color:t,onChange:n,enableAlpha:r};switch(e){case"hsl":return(0,a.createElement)(fE,{...o});case"rgb":return(0,a.createElement)(dE,{...o});default:return(0,a.createElement)(pE,{...o})}};function hE(){return(hE=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}).apply(this,arguments)}function gE(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function vE(e){var t=(0,v.useRef)(e),n=(0,v.useRef)((function(e){t.current&&t.current(e)}));return t.current=e,n.current}var bE=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},yE=function(e){return"touches"in e},wE=function(e){return e&&e.ownerDocument.defaultView||self},xE=function(e,t,n){var r=e.getBoundingClientRect(),o=yE(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:bE((o.pageX-(r.left+wE(e).pageXOffset))/r.width),top:bE((o.pageY-(r.top+wE(e).pageYOffset))/r.height)}},EE=function(e){!yE(e)&&e.preventDefault()},_E=v.memo((function(e){var t=e.onMove,n=e.onKey,r=gE(e,["onMove","onKey"]),o=(0,v.useRef)(null),i=vE(t),a=vE(n),s=(0,v.useRef)(null),l=(0,v.useRef)(!1),c=(0,v.useMemo)((function(){var e=function(e){EE(e),(yE(e)?e.touches.length>0:e.buttons>0)&&o.current?i(xE(o.current,e,s.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,i=wE(o.current),a=n?i.addEventListener:i.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=o.current;if(r&&(EE(t),!function(e,t){return t&&!yE(e)}(t,l.current)&&r)){if(yE(t)){l.current=!0;var a=t.changedTouches||[];a.length&&(s.current=a[0].identifier)}r.focus(),i(xE(r,t,s.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),a({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]}),[a,i]),u=c[0],d=c[1],f=c[2];return(0,v.useEffect)((function(){return f}),[f]),v.createElement("div",hE({},r,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:o,onKeyDown:d,tabIndex:0,role:"slider"}))})),CE=function(e){return e.filter(Boolean).join(" ")},SE=function(e){var t=e.color,n=e.left,r=e.top,o=void 0===r?.5:r,i=CE(["react-colorful__pointer",e.className]);return v.createElement("div",{className:i,style:{top:100*o+"%",left:100*n+"%"}},v.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},kE=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},TE=(Math.PI,function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:kE(e.h),s:kE(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:kE(o/2),a:kE(r,2)}}),RE=function(e){var t=TE(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},PE=function(e){var t=TE(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},ME=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:kE(255*[r,s,a,a,l,r][c]),g:kE(255*[l,r,r,s,a,a][c]),b:kE(255*[a,a,l,r,r,s][c]),a:kE(o,2)}},IE=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?OE({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},NE=IE,OE=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:kE(60*(s<0?s+6:s)),s:kE(i?a/i*100:0),v:kE(i/255*100),a:o}},DE=v.memo((function(e){var t=e.hue,n=e.onChange,r=CE(["react-colorful__hue",e.className]);return v.createElement("div",{className:r},v.createElement(_E,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:bE(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":kE(t),"aria-valuemax":"360","aria-valuemin":"0"},v.createElement(SE,{className:"react-colorful__hue-pointer",left:t/360,color:RE({h:t,s:100,v:100,a:1})})))})),AE=v.memo((function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:RE({h:t.h,s:100,v:100,a:1})};return v.createElement("div",{className:"react-colorful__saturation",style:r},v.createElement(_E,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:bE(t.s+100*e.left,0,100),v:bE(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+kE(t.s)+"%, Brightness "+kE(t.v)+"%"},v.createElement(SE,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:RE(t)})))})),LE=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},zE=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")};function FE(e,t,n){var r=vE(n),o=(0,v.useState)((function(){return e.toHsva(t)})),i=o[0],a=o[1],s=(0,v.useRef)({color:t,hsva:i});(0,v.useEffect)((function(){if(!e.equal(t,s.current.color)){var n=e.toHsva(t);s.current={hsva:n,color:t},a(n)}}),[t,e]),(0,v.useEffect)((function(){var t;LE(i,s.current.hsva)||e.equal(t=e.fromHsva(i),s.current.color)||(s.current={hsva:i,color:t},r(t))}),[i,e,r]);var l=(0,v.useCallback)((function(e){a((function(t){return Object.assign({},t,e)}))}),[]);return[i,l]}var BE,jE="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,VE=new Map,HE=function(e){jE((function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!VE.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',VE.set(t,n);var r=BE||o.nc;r&&n.setAttribute("nonce",r),t.head.appendChild(n)}}),[])},$E=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=gE(e,["className","colorModel","color","onChange"]),s=(0,v.useRef)(null);HE(s);var l=FE(n,o,i),c=l[0],u=l[1],d=CE(["react-colorful",t]);return v.createElement("div",hE({},a,{ref:s,className:d}),v.createElement(AE,{hsva:c,onChange:u}),v.createElement(DE,{hue:c.h,onChange:u,className:"react-colorful__last-control"}))},WE=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+PE(Object.assign({},n,{a:0}))+", "+PE(Object.assign({},n,{a:1}))+")"},i=CE(["react-colorful__alpha",t]),a=kE(100*n.a);return v.createElement("div",{className:i},v.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),v.createElement(_E,{onMove:function(e){r({a:e.left})},onKey:function(e){r({a:bE(n.a+e.left)})},"aria-label":"Alpha","aria-valuetext":a+"%","aria-valuenow":a,"aria-valuemin":"0","aria-valuemax":"100"},v.createElement(SE,{className:"react-colorful__alpha-pointer",left:n.a,color:PE(n)})))},UE=function(e){var t=e.className,n=e.colorModel,r=e.color,o=void 0===r?n.defaultColor:r,i=e.onChange,a=gE(e,["className","colorModel","color","onChange"]),s=(0,v.useRef)(null);HE(s);var l=FE(n,o,i),c=l[0],u=l[1],d=CE(["react-colorful",t]);return v.createElement("div",hE({},a,{ref:s,className:d}),v.createElement(AE,{hsva:c,onChange:u}),v.createElement(DE,{hue:c.h,onChange:u}),v.createElement(WE,{hsva:c,onChange:u,className:"react-colorful__last-control"}))},GE={defaultColor:"rgba(0, 0, 0, 1)",toHsva:IE,fromHsva:function(e){var t=ME(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:zE},KE=function(e){return v.createElement(UE,hE({},e,{colorModel:GE}))},qE={defaultColor:"rgb(0, 0, 0)",toHsva:NE,fromHsva:function(e){var t=ME(e);return"rgb("+t.r+", "+t.g+", "+t.b+")"},equal:zE},YE=function(e){return v.createElement($E,hE({},e,{colorModel:qE}))};const XE=({color:e,enableAlpha:t,onChange:n})=>{const r=t?KE:YE,o=(0,a.useMemo)((()=>e.toRgbString()),[e]);return(0,a.createElement)(r,{color:o,onChange:e=>{n(Mp(e))}})};function ZE({defaultValue:e,onChange:t,value:n}){const r=void 0!==n,o=r?n:e,[i,s]=(0,a.useState)(o);let l;return l=r&&"function"==typeof t?t:r||"function"!=typeof t?s:e=>{t(e),s(e)},[r?n:i,l]}Np([Op]);const JE=[{label:"RGB",value:"rgb"},{label:"HSL",value:"hsl"},{label:"Hex",value:"hex"}],QE=Ju(((e,t)=>{const{enableAlpha:n=!1,color:r,onChange:o,defaultValue:i="#fff",copyFormat:s,...l}=Zu(e,"ColorPicker"),[d,f]=ZE({onChange:o,value:r,defaultValue:i}),p=(0,a.useMemo)((()=>Mp(d||"")),[d]),m=(0,u.useDebounce)(f),h=(0,a.useCallback)((e=>{m(e.toHex())}),[m]),[g,v]=(0,a.useState)(s||"hex");return(0,a.createElement)(pw,{ref:t,...l},(0,a.createElement)(XE,{onChange:h,color:p,enableAlpha:n}),(0,a.createElement)(uw,null,(0,a.createElement)(dw,{justify:"space-between"},(0,a.createElement)(sw,{__nextHasNoMarginBottom:!0,options:JE,value:g,onChange:e=>v(e),label:(0,c.__)("Color format"),hideLabelFromVision:!0}),(0,a.createElement)(cE,{color:p,colorType:s||g})),(0,a.createElement)(fw,{direction:"column",gap:2},(0,a.createElement)(mE,{colorType:g,color:p,onChange:h,enableAlpha:n}))))}),"ColorPicker");var e_=QE;function t_(e){if(void 0!==e)return"string"==typeof e?e:e.hex?e.hex:void 0}const n_=wc((e=>{const t=Mp(e),n=t.toHex(),r=t.toRgb(),o=t.toHsv(),i=t.toHsl();return{hex:n,rgb:r,hsv:o,hsl:i,source:"hex",oldHue:i.h}}));function r_(e){const{onChangeComplete:t}=e,n=(0,a.useCallback)((e=>{t(n_(e))}),[t]);return function(e){return void 0!==e.onChangeComplete||void 0!==e.disableAlpha||"string"==typeof e.color?.hex}(e)?{color:t_(e.color),enableAlpha:!e.disableAlpha,onChange:n}:{...e,color:e.color,enableAlpha:e.enableAlpha,onChange:e.onChange}}const o_=e=>(0,a.createElement)(e_,{...r_(e)});var i_=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));function a_(e){const{actions:t,className:n,options:r,children:o}=e;return(0,a.createElement)("div",{className:l()("components-circular-option-picker",n)},(0,a.createElement)("div",{className:"components-circular-option-picker__swatches"},r),o,t&&(0,a.createElement)("div",{className:"components-circular-option-picker__custom-clear-wrapper"},t))}a_.Option=function({className:e,isSelected:t,selectedIconProps:n,tooltipText:r,...o}){const i=(0,a.createElement)(bd,{isPressed:t,className:"components-circular-option-picker__option",...o});return(0,a.createElement)("div",{className:l()(e,"components-circular-option-picker__option-wrapper")},r?(0,a.createElement)(Xf,{text:r},i):i,t&&(0,a.createElement)(_y,{icon:i_,...n||{}}))},a_.ButtonAction=function({className:e,children:t,...n}){return(0,a.createElement)(bd,{className:l()("components-circular-option-picker__clear",e),variant:"tertiary",...n},t)},a_.DropdownLinkAction=function({buttonProps:e,className:t,dropdownProps:n,linkText:r}){return(0,a.createElement)(by,{className:l()("components-circular-option-picker__dropdown-link-action",t),renderToggle:({isOpen:t,onToggle:n})=>(0,a.createElement)(bd,{"aria-expanded":t,"aria-haspopup":"true",onClick:n,variant:"link",...e},r),...n})};var s_=a_;var l_=Ju((function(e,t){const n=function(e){const{expanded:t=!1,alignment:n="stretch",...r}=Zu(e,"VStack");return sb({direction:"column",expanded:t,alignment:n,...r})}(e);return(0,a.createElement)(md,{...n,ref:t})}),"VStack");var c_=Ju((function(e,t){const n=Ph(e);return(0,a.createElement)(md,{as:"span",...n,ref:t})}),"Truncate");var u_=Ju((function(e,t){const n=function(e){const{as:t,level:n=2,...r}=Zu(e,"Heading"),o=t||`h${n}`,i={};return"string"==typeof o&&"h"!==o[0]&&(i.role="heading",i["aria-level"]="string"==typeof n?parseInt(n):n),{...Qh({color:Bp.gray[900],size:Zh(n),isBlock:!0,weight:zh.fontWeightHeading,...r}),...i,as:o}}(e);return(0,a.createElement)(md,{...n,ref:t})}),"Heading");const d_=fd(u_,{target:"ev9wop70"})({name:"13lxv2o",styles:"text-transform:uppercase;line-height:24px;font-weight:500;&&&{font-size:11px;margin-bottom:0;}"}),f_=fd("div",{target:"eovvns30"})("margin-left:",rh(-2),";margin-right:",rh(-2),";&:first-of-type{margin-top:",rh(-2),";}&:last-of-type{margin-bottom:",rh(-2),";}",(({paddingSize:e="small"})=>{if("none"===e)return;const t={small:rh(2),medium:rh(4)};return np("padding:",t[e]||t.small,";","")}),";");var p_=Ju((function(e,t){const{paddingSize:n="small",...r}=Zu(e,"DropdownContentWrapper");return(0,a.createElement)(f_,{...r,paddingSize:n,ref:t})}),"DropdownContentWrapper");Np([Op,gy]);const m_=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.colors)&&!("color"in t);var t}));function h_({className:e,clearColor:t,colors:n,onChange:r,value:o,actions:i}){const s=(0,a.useMemo)((()=>n.map((({color:e,name:n},i)=>{const s=Mp(e),l=o===e;return(0,a.createElement)(s_.Option,{key:`${e}-${i}`,isSelected:l,selectedIconProps:l?{fill:s.contrast()>s.contrast("#000")?"#fff":"#000"}:{},tooltipText:n||(0,c.sprintf)((0,c.__)("Color code: %s"),e),style:{backgroundColor:e,color:e},onClick:l?t:()=>r(e,i),"aria-label":n?(0,c.sprintf)((0,c.__)("Color: %s"),n):(0,c.sprintf)((0,c.__)("Color code: %s"),e)})}))),[n,o,r,t]);return(0,a.createElement)(s_,{className:e,options:s,actions:i})}function g_({className:e,clearColor:t,colors:n,onChange:r,value:o,actions:i,headingLevel:s}){return 0===n.length?null:(0,a.createElement)(l_,{spacing:3,className:e},n.map((({name:e,colors:l},c)=>(0,a.createElement)(l_,{spacing:2,key:c},(0,a.createElement)(d_,{level:s},e),(0,a.createElement)(h_,{clearColor:t,colors:l,onChange:e=>r(e,c),value:o,actions:n.length===c+1?i:null})))))}function v_({isRenderedInSidebar:e,popoverProps:t,...n}){const r=(0,a.useMemo)((()=>({shift:!0,...e?{placement:"left-start",offset:34}:{placement:"bottom",offset:8},...t})),[e,t]);return(0,a.createElement)(by,{contentClassName:"components-color-palette__custom-color-dropdown-content",popoverProps:r,...n})}Np([Op,gy]);const b_=(0,a.forwardRef)((function(e,t){const{clearable:n=!0,colors:r=[],disableCustomColors:o=!1,enableAlpha:i=!1,onChange:s,value:u,__experimentalIsRenderedInSidebar:d=!1,headingLevel:f=2,...p}=e,[m,h]=(0,a.useState)(u),g=(0,a.useCallback)((()=>s(void 0)),[s]),v=(0,a.useCallback)((e=>{h(((e,t)=>{if(!/^var\(/.test(null!=e?e:"")||null===t)return e;const{ownerDocument:n}=t,{defaultView:r}=n,o=r?.getComputedStyle(t).backgroundColor;return o?Mp(o).toHex():e})(u,e))}),[u]),b=m_(r),y=(0,a.useMemo)((()=>((e,t=[],n=!1)=>{if(!e)return"";const r=/^var\(/.test(e),o=r?e:Mp(e).toHex(),i=n?t:[{colors:t}];for(const{colors:e}of i)for(const{name:t,color:n}of e)if(o===(r?n:Mp(n).toHex()))return t;return(0,c.__)("Custom")})(u,r,b)),[u,r,b]),w=u?.startsWith("#"),x=u?.replace(/^var\((.+)\)$/,"$1"),E=x?(0,c.sprintf)((0,c.__)('Custom color picker. The currently selected color is called "%1$s" and has a value of "%2$s".'),y,w?x.split("").join("-"):x):(0,c.__)("Custom color picker."),_={clearable:n,clearColor:g,onChange:s,value:u,actions:!!n&&(0,a.createElement)(s_.ButtonAction,{onClick:g},(0,c.__)("Clear")),headingLevel:f};return(0,a.createElement)(l_,{spacing:3,ref:t,...p},!o&&(0,a.createElement)(v_,{isRenderedInSidebar:d,renderContent:()=>(0,a.createElement)(p_,{paddingSize:"none"},(0,a.createElement)(o_,{color:m,onChange:e=>s(e),enableAlpha:i})),renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(l_,{className:"components-color-palette__custom-color-wrapper",spacing:0},(0,a.createElement)("button",{ref:v,className:"components-color-palette__custom-color-button","aria-expanded":e,"aria-haspopup":"true",onClick:t,"aria-label":E,style:{background:u}}),(0,a.createElement)(l_,{className:"components-color-palette__custom-color-text-wrapper",spacing:.5},(0,a.createElement)(c_,{className:"components-color-palette__custom-color-name"},u?y:"No color selected"),(0,a.createElement)(c_,{className:l()("components-color-palette__custom-color-value",{"components-color-palette__custom-color-value--is-hex":w})},x)))}),b?(0,a.createElement)(g_,{..._,colors:r}):(0,a.createElement)(h_,{..._,colors:r}))}));var y_=b_;const w_="web"===a.Platform.OS,x_={px:{value:"px",label:w_?"px":(0,c.__)("Pixels (px)"),a11yLabel:(0,c.__)("Pixels (px)"),step:1},"%":{value:"%",label:w_?"%":(0,c.__)("Percentage (%)"),a11yLabel:(0,c.__)("Percent (%)"),step:.1},em:{value:"em",label:w_?"em":(0,c.__)("Relative to parent font size (em)"),a11yLabel:(0,c._x)("ems","Relative to parent font size (em)"),step:.01},rem:{value:"rem",label:w_?"rem":(0,c.__)("Relative to root font size (rem)"),a11yLabel:(0,c._x)("rems","Relative to root font size (rem)"),step:.01},vw:{value:"vw",label:w_?"vw":(0,c.__)("Viewport width (vw)"),a11yLabel:(0,c.__)("Viewport width (vw)"),step:.1},vh:{value:"vh",label:w_?"vh":(0,c.__)("Viewport height (vh)"),a11yLabel:(0,c.__)("Viewport height (vh)"),step:.1},vmin:{value:"vmin",label:w_?"vmin":(0,c.__)("Viewport smallest dimension (vmin)"),a11yLabel:(0,c.__)("Viewport smallest dimension (vmin)"),step:.1},vmax:{value:"vmax",label:w_?"vmax":(0,c.__)("Viewport largest dimension (vmax)"),a11yLabel:(0,c.__)("Viewport largest dimension (vmax)"),step:.1},ch:{value:"ch",label:w_?"ch":(0,c.__)("Width of the zero (0) character (ch)"),a11yLabel:(0,c.__)("Width of the zero (0) character (ch)"),step:.01},ex:{value:"ex",label:w_?"ex":(0,c.__)("x-height of the font (ex)"),a11yLabel:(0,c.__)("x-height of the font (ex)"),step:.01},cm:{value:"cm",label:w_?"cm":(0,c.__)("Centimeters (cm)"),a11yLabel:(0,c.__)("Centimeters (cm)"),step:.001},mm:{value:"mm",label:w_?"mm":(0,c.__)("Millimeters (mm)"),a11yLabel:(0,c.__)("Millimeters (mm)"),step:.1},in:{value:"in",label:w_?"in":(0,c.__)("Inches (in)"),a11yLabel:(0,c.__)("Inches (in)"),step:.001},pc:{value:"pc",label:w_?"pc":(0,c.__)("Picas (pc)"),a11yLabel:(0,c.__)("Picas (pc)"),step:1},pt:{value:"pt",label:w_?"pt":(0,c.__)("Points (pt)"),a11yLabel:(0,c.__)("Points (pt)"),step:1}},E_=Object.values(x_),__=[x_.px,x_["%"],x_.em,x_.rem,x_.vw,x_.vh],C_=x_.px;function S_(e,t,n){return T_(t?`${null!=e?e:""}${t}`:e,n)}function k_(e){return Array.isArray(e)&&!!e.length}function T_(e,t=E_){let n,r;if(void 0!==e||null===e){n=`${e}`.trim();const t=parseFloat(n);r=isFinite(t)?t:void 0}const o=n?.match(/[\d.\-\+]*\s*(.*)/),i=o?.[1]?.toLowerCase();let a;if(k_(t)){const e=t.find((e=>e.value===i));a=e?.value}else a=C_.value;return[r,a]}const R_=({units:e=E_,availableUnits:t=[],defaultValues:n})=>{const r=function(e=[],t){return Array.isArray(t)?t.filter((t=>e.includes(t.value))):[]}(t,e);return n&&r.forEach(((e,t)=>{if(n[e.value]){const[o]=T_(n[e.value]);r[t].default=o}})),r};function P_(e){const{border:t,className:n,colors:r=[],enableAlpha:o=!1,enableStyle:i=!0,onChange:s,previousStyleSelection:l,size:c="default",__experimentalIsRenderedInSidebar:u=!1,...d}=Zu(e,"BorderControlDropdown"),[f]=T_(t?.width),p=0===f,m=Xu(),h=(0,a.useMemo)((()=>m((e=>np("background:#fff;&&>button{height:","__unstable-large"===e?"40px":"30px",";width:","__unstable-large"===e?"40px":"30px",";padding:0;display:flex;align-items:center;justify-content:center;",uh({borderRadius:"2px 0 0 2px"},{borderRadius:"0 2px 2px 0"})()," border:",zh.borderWidth," solid ",Bp.ui.border,";&:focus,&:hover:not( :disabled ){",Qb," border-color:",Bp.ui.borderFocus,";z-index:1;position:relative;}}",""))(c),n)),[n,m,c]),g=(0,a.useMemo)((()=>m(iy)),[m]),v=(0,a.useMemo)((()=>m(ny(t,c))),[t,m,c]),b=(0,a.useMemo)((()=>m(ry)),[m]),y=(0,a.useMemo)((()=>m(oy)),[m]),w=(0,a.useMemo)((()=>m(ay)),[m]);return{...d,border:t,className:h,colors:r,enableAlpha:o,enableStyle:i,indicatorClassName:g,indicatorWrapperClassName:v,onColorChange:e=>{s({color:e,style:"none"===t?.style?l:t?.style,width:p&&e?"1px":t?.width})},onStyleChange:e=>{const n=p&&e?"1px":t?.width;s({...t,style:e,width:n})},onReset:()=>{s({...t,color:void 0,style:void 0})},popoverContentClassName:y,popoverControlsClassName:b,resetButtonClassName:w,__experimentalIsRenderedInSidebar:u}}const M_=e=>{const t=e.startsWith("#"),n=e.replace(/^var\((.+)\)$/,"$1");return t?n.split("").join("-"):n},I_=Ju(((e,t)=>{const{__experimentalIsRenderedInSidebar:n,border:r,colors:o,disableCustomColors:i,enableAlpha:s,enableStyle:l,indicatorClassName:u,indicatorWrapperClassName:d,onReset:f,onColorChange:p,onStyleChange:m,popoverContentClassName:h,popoverControlsClassName:g,resetButtonClassName:v,showDropdownHeader:b,__unstablePopoverProps:y,...w}=P_(e),{color:x,style:E}=r||{},_=((e,t)=>{if(e&&t){if(m_(t)){let n;return t.some((t=>t.colors.some((t=>t.color===e&&(n=t,!0))))),n}return t.find((t=>t.color===e))}})(x,o),C=((e,t,n,r)=>{if(r){if(t){const e=M_(t.color);return n?(0,c.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s". The currently selected style is "%3$s".',t.name,e,n):(0,c.sprintf)('Border color and style picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,e)}if(e){const t=M_(e);return n?(0,c.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s". The currently selected style is "%2$s".',t,n):(0,c.sprintf)('Border color and style picker. The currently selected color has a value of "%1$s".',t)}return(0,c.__)("Border color and style picker.")}return t?(0,c.sprintf)('Border color picker. The currently selected color is called "%1$s" and has a value of "%2$s".',t.name,M_(t.color)):e?(0,c.sprintf)('Border color picker. The currently selected color has a value of "%1$s".',M_(e)):(0,c.__)("Border color picker.")})(x,_,E,l),S=x||E&&"none"!==E,k=n?"bottom left":void 0;return(0,a.createElement)(by,{renderToggle:({onToggle:e})=>(0,a.createElement)(bd,{onClick:e,variant:"tertiary","aria-label":C,tooltipPosition:k,label:(0,c.__)("Border color and style picker"),showTooltip:!0},(0,a.createElement)("span",{className:d},(0,a.createElement)(py,{className:u,colorValue:x}))),renderContent:({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(p_,{paddingSize:"medium"},(0,a.createElement)(l_,{className:g,spacing:6},b?(0,a.createElement)(lb,null,(0,a.createElement)(jv,null,(0,c.__)("Border color")),(0,a.createElement)(bd,{isSmall:!0,label:(0,c.__)("Close border color"),icon:Wb,onClick:e})):void 0,(0,a.createElement)(y_,{className:h,value:x,onChange:p,colors:o,disableCustomColors:i,__experimentalIsRenderedInSidebar:n,clearable:!1,enableAlpha:s}),l&&(0,a.createElement)(fy,{label:(0,c.__)("Style"),value:E,onChange:m}))),S&&(0,a.createElement)(p_,{paddingSize:"none"},(0,a.createElement)(bd,{className:v,variant:"tertiary",onClick:()=>{f(),e()}},(0,c.__)("Reset to default")))),popoverProps:{...y},...w,ref:t})}),"BorderControlDropdown");var N_=I_;var O_=(0,a.forwardRef)((function({className:e,isUnitSelectTabbable:t=!0,onChange:n,size:r="default",unit:o="px",units:i=__,...s},c){if(!k_(i)||1===i?.length)return(0,a.createElement)(Xb,{className:"components-unit-control__unit-label",selectSize:r},o);const u=l()("components-unit-control__select",e);return(0,a.createElement)(Zb,{ref:c,className:u,onChange:e=>{const{value:t}=e.target,r=i.find((e=>e.value===t));n?.(t,{event:e,data:r})},selectSize:r,tabIndex:t?void 0:-1,value:o,...s},i.map((e=>(0,a.createElement)("option",{value:e.value,key:e.value},e.label))))}));const D_=(0,a.forwardRef)((function(e,t){const{__unstableStateReducer:n,autoComplete:r="off",children:o,className:i,disabled:s=!1,disableUnits:u=!1,isPressEnterToChange:d=!1,isResetValueOnUnitChange:f=!1,isUnitSelectTabbable:p=!0,label:m,onChange:h,onUnitChange:g,size:v="default",unit:b,units:y=__,value:w,onFocus:x,...E}=e;"unit"in e&&ql()("UnitControl unit prop",{since:"5.6",hint:"The unit should be provided within the `value` prop.",version:"6.2"});const _=null!=w?w:void 0,[C,S]=(0,a.useMemo)((()=>{const e=function(e,t,n=E_){const r=Array.isArray(n)?[...n]:[],[,o]=S_(e,t,E_);return o&&!r.some((e=>e.value===o))&&x_[o]&&r.unshift(x_[o]),r}(_,b,y),[{value:t=""}={},...n]=e,r=n.reduce(((e,{value:t})=>{const n=kb(t?.substring(0,1)||"");return e.includes(n)?e:`${e}|${n}`}),kb(t.substring(0,1)));return[e,new RegExp(`^(?:${r})$`,"i")]}),[_,b,y]),[k,T]=S_(_,b,C),[R,P]=My(1===C.length?C[0].value:b,{initial:T,fallback:""});(0,a.useEffect)((()=>{void 0!==T&&P(T)}),[T,P]);const M=l()("components-unit-control","components-unit-control-wrapper",i);let I;!u&&p&&C.length&&(I=e=>{E.onKeyDown?.(e),!e.metaKey&&S.test(e.key)&&N.current?.focus()});const N=(0,a.useRef)(null),O=u?null:(0,a.createElement)(O_,{ref:N,"aria-label":(0,c.__)("Select unit"),disabled:s,isUnitSelectTabbable:p,onChange:(e,t)=>{const{data:n}=t;let r=`${null!=k?k:""}${e}`;f&&void 0!==n?.default&&(r=`${n.default}${e}`),h?.(r,t),g?.(e,t),P(e)},size:v,unit:R,units:C,onFocus:x,onBlur:e.onBlur});let D=E.step;if(!D&&C){var A;const e=C.find((e=>e.value===R));D=null!==(A=e?.step)&&void 0!==A?A:1}return(0,a.createElement)(qb,{...E,autoComplete:r,className:M,disabled:s,spinControls:"none",isPressEnterToChange:d,label:m,onKeyDown:I,onChange:(e,t)=>{if(""===e||null==e)return void h?.("",t);const n=function(e,t,n,r){const[o,i]=T_(e,t),a=null!=o?o:n;let s=i||r;return!s&&k_(t)&&(s=t[0].value),[a,s]}(e,C,k,R).join("");h?.(n,t)},ref:t,size:v,suffix:O,type:d?"text":"number",value:null!=k?k:"",step:D,onFocus:x,__unstableStateReducer:n})}));var A_=D_;function L_(e){const{className:t,colors:n=[],isCompact:r,onChange:o,enableAlpha:i=!0,enableStyle:s=!0,shouldSanitizeBorder:l=!0,size:c="default",value:u,width:d,__experimentalIsRenderedInSidebar:f=!1,...p}=Zu(e,"BorderControl"),[m,h]=T_(u?.width),g=h||"px",v=0===m,[b,y]=(0,a.useState)(),[w,x]=(0,a.useState)(),E=(0,a.useCallback)((e=>{if(l)return o((e=>{if(void 0!==e?.width&&""!==e.width||void 0!==e?.color)return e})(e));o(e)}),[o,l]),_=(0,a.useCallback)((e=>{const t=""===e?void 0:e,[n]=T_(e),r=0===n,o={...u,width:t};r&&!v&&(y(u?.color),x(u?.style),o.color=void 0,o.style="none"),!r&&v&&(void 0===o.color&&(o.color=b),"none"===o.style&&(o.style=w)),E(o)}),[u,v,b,w,E]),C=(0,a.useCallback)((e=>{_(`${e}${g}`)}),[_,g]),S=Xu(),k=(0,a.useMemo)((()=>S(ey,t)),[t,S]);let T=d;r&&(T="__unstable-large"===c?"116px":"90px");const R=(0,a.useMemo)((()=>{const e=!!T&&ty,t=(e=>np("height:","__unstable-large"===e?"40px":"30px",";",""))(c);return S(np(qb,"{flex:1 1 40%;}&& ",Zb,"{min-height:0;}",""),e,t)}),[T,S,c]),P=(0,a.useMemo)((()=>S(np("flex:1 1 60%;",uh({marginRight:rh(3)})(),";",""))),[S]);return{...p,className:k,colors:n,enableAlpha:i,enableStyle:s,innerWrapperClassName:R,inputWidth:T,onBorderChange:E,onSliderChange:C,onWidthChange:_,previousStyleSelection:w,sliderClassName:P,value:u,widthUnit:g,widthValue:m,size:c,__experimentalIsRenderedInSidebar:f}}const z_=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(hd,{as:"legend"},t):(0,a.createElement)(jv,{as:"legend"},t):null},F_=Ju(((e,t)=>{const{colors:n,disableCustomColors:r,disableUnits:o,enableAlpha:i,enableStyle:s,hideLabelFromVision:l,innerWrapperClassName:u,inputWidth:d,label:f,onBorderChange:p,onSliderChange:m,onWidthChange:h,placeholder:g,__unstablePopoverProps:v,previousStyleSelection:b,showDropdownHeader:y,size:w,sliderClassName:x,value:E,widthUnit:_,widthValue:C,withSlider:S,__experimentalIsRenderedInSidebar:k,...T}=L_(e);return(0,a.createElement)(md,{as:"fieldset",...T,ref:t},(0,a.createElement)(z_,{label:f,hideLabelFromVision:l}),(0,a.createElement)(lb,{spacing:4,className:u},(0,a.createElement)(A_,{prefix:(0,a.createElement)(N_,{border:E,colors:n,__unstablePopoverProps:v,disableCustomColors:r,enableAlpha:i,enableStyle:s,onChange:p,previousStyleSelection:b,showDropdownHeader:y,__experimentalIsRenderedInSidebar:k,size:w}),label:(0,c.__)("Border width"),hideLabelFromVision:!0,min:0,onChange:h,value:E?.width||"",placeholder:g,disableUnits:o,__unstableInputWidth:d,size:w}),S&&(0,a.createElement)(iw,{__nextHasNoMarginBottom:!0,label:(0,c.__)("Border width"),hideLabelFromVision:!0,className:x,initialPosition:0,max:100,min:0,onChange:m,step:["px","%"].includes(_)?1:.1,value:C||void 0,withInputField:!1})))}),"BorderControl");var B_=F_;const j_={bottom:{alignItems:"flex-end",justifyContent:"center"},bottomLeft:{alignItems:"flex-start",justifyContent:"flex-end"},bottomRight:{alignItems:"flex-end",justifyContent:"flex-end"},center:{alignItems:"center",justifyContent:"center"},spaced:{alignItems:"center",justifyContent:"space-between"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"},stretch:{alignItems:"stretch"},top:{alignItems:"flex-start",justifyContent:"center"},topLeft:{alignItems:"flex-start",justifyContent:"flex-start"},topRight:{alignItems:"flex-start",justifyContent:"flex-end"}};function V_(e){const{align:t,alignment:n,className:r,columnGap:o,columns:i=2,gap:s=3,isInline:l=!1,justify:c,rowGap:u,rows:d,templateColumns:f,templateRows:p,...m}=Zu(e,"Grid"),h=bh(Array.isArray(i)?i:[i]),g=bh(Array.isArray(d)?d:[d]),v=f||!!i&&`repeat( ${h}, 1fr )`,b=p||!!d&&`repeat( ${g}, 1fr )`,y=Xu();return{...m,className:(0,a.useMemo)((()=>{const e=function(e){return e?j_[e]:{}}(n),i=np({alignItems:t,display:l?"inline-grid":"grid",gap:`calc( ${zh.gridBase} * ${s} )`,gridTemplateColumns:v||void 0,gridTemplateRows:b||void 0,gridRowGap:u,gridColumnGap:o,justifyContent:c,verticalAlign:l?"middle":void 0,...e},"","");return y(i,r)}),[t,n,r,o,y,s,v,b,l,c,u])}}var H_=Ju((function(e,t){const n=V_(e);return(0,a.createElement)(md,{...n,ref:t})}),"Grid");function $_(e){const{className:t,colors:n=[],enableAlpha:r=!1,enableStyle:o=!0,size:i="default",__experimentalIsRenderedInSidebar:s=!1,...l}=Zu(e,"BorderBoxControlSplitControls"),c=Xu(),u=(0,a.useMemo)((()=>c((e=>np("position:relative;flex:1;width:","__unstable-large"===e?void 0:"80%",";",""))(i),t)),[c,t,i]);return{...l,centeredClassName:(0,a.useMemo)((()=>c(Bb,t)),[c,t]),className:u,colors:n,enableAlpha:r,enableStyle:o,rightAlignedClassName:(0,a.useMemo)((()=>c(np(uh({marginLeft:"auto"})(),";",""),t)),[c,t]),size:i,__experimentalIsRenderedInSidebar:s}}const W_=Ju(((e,t)=>{const{centeredClassName:n,colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,onChange:l,popoverPlacement:d,popoverOffset:f,rightAlignedClassName:p,size:m="default",value:h,__experimentalIsRenderedInSidebar:g,...v}=$_(e),[b,y]=(0,a.useState)(null),w=(0,a.useMemo)((()=>d?{placement:d,offset:f,anchor:b,shift:!0}:void 0),[d,f,b]),x={colors:r,disableCustomColors:o,enableAlpha:i,enableStyle:s,isCompact:!0,__experimentalIsRenderedInSidebar:g,size:m},E=(0,u.useMergeRefs)([y,t]);return(0,a.createElement)(H_,{...v,ref:E,gap:4},(0,a.createElement)($b,{value:h,size:m}),(0,a.createElement)(B_,{className:n,hideLabelFromVision:!0,label:(0,c.__)("Top border"),onChange:e=>l(e,"top"),__unstablePopoverProps:w,value:h?.top,...x}),(0,a.createElement)(B_,{hideLabelFromVision:!0,label:(0,c.__)("Left border"),onChange:e=>l(e,"left"),__unstablePopoverProps:w,value:h?.left,...x}),(0,a.createElement)(B_,{className:p,hideLabelFromVision:!0,label:(0,c.__)("Right border"),onChange:e=>l(e,"right"),__unstablePopoverProps:w,value:h?.right,...x}),(0,a.createElement)(B_,{className:n,hideLabelFromVision:!0,label:(0,c.__)("Bottom border"),onChange:e=>l(e,"bottom"),__unstablePopoverProps:w,value:h?.bottom,...x}))}),"BorderBoxControlSplitControls");var U_=W_;const G_=/^([\d.\-+]*)\s*(fr|cm|mm|Q|in|pc|pt|px|em|ex|ch|rem|lh|vw|vh|vmin|vmax|%|cap|ic|rlh|vi|vb|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?$/;const K_=["top","right","bottom","left"],q_=["color","style","width"],Y_=e=>!e||!q_.some((t=>void 0!==e[t])),X_=e=>{if(!e)return!1;if(Z_(e)){return!K_.every((t=>Y_(e[t])))}return!Y_(e)},Z_=(e={})=>Object.keys(e).some((e=>-1!==K_.indexOf(e))),J_=e=>{if(!Z_(e))return!1;const t=K_.map((t=>Q_(e?.[t])));return!t.every((e=>e===t[0]))},Q_=(e,t)=>{if(Y_(e))return t;const{color:n,style:r,width:o}=t||{},{color:i=n,style:a=r,width:s=o}=e;return[s,!!s&&"0"!==s||!!i?a||"solid":a,i].filter(Boolean).join(" ")},eC=e=>function(e){if(0===e.length)return;const t={};let n,r=0;return e.forEach((e=>{t[e]=void 0===t[e]?1:t[e]+1,t[e]>r&&(n=e,r=t[e])})),n}(e.map((e=>void 0===e?void 0:function(e){const t=e.trim().match(G_);if(!t)return[void 0,void 0];const[,n,r]=t;let o=parseFloat(n);return o=Number.isNaN(o)?void 0:o,[o,r]}(`${e}`)[1])).filter((e=>void 0!==e)));function tC(e){const{className:t,colors:n=[],onChange:r,enableAlpha:o=!1,enableStyle:i=!0,size:s="default",value:l,__experimentalIsRenderedInSidebar:c=!1,...u}=Zu(e,"BorderBoxControl"),d=J_(l),f=Z_(l),p=f?(e=>{if(!e)return;const t=[],n=[],r=[];K_.forEach((o=>{t.push(e[o]?.color),n.push(e[o]?.style),r.push(e[o]?.width)}));const o=t.every((e=>e===t[0])),i=n.every((e=>e===n[0])),a=r.every((e=>e===r[0]));return{color:o?t[0]:void 0,style:i?n[0]:void 0,width:a?r[0]:eC(r)}})(l):l,m=f?l:(e=>{if(e&&!Y_(e))return{top:e,right:e,bottom:e,left:e}})(l),h=!isNaN(parseFloat(`${p?.width}`)),[g,v]=(0,a.useState)(!d),b=Xu(),y=(0,a.useMemo)((()=>b(Lb,t)),[b,t]),w=(0,a.useMemo)((()=>b(np("flex:1;",uh({marginRight:"24px"})(),";",""))),[b]),x=(0,a.useMemo)((()=>b(zb)),[b]);return{...u,className:y,colors:n,disableUnits:d&&!h,enableAlpha:o,enableStyle:i,hasMixedBorders:d,isLinked:g,linkedControlClassName:w,onLinkedChange:e=>{if(!e)return r(void 0);if(!d||(t=e)&&q_.every((e=>void 0!==t[e])))return r(Y_(e)?void 0:e);var t;const n=((e,t)=>{const n={};return e.color!==t.color&&(n.color=t.color),e.style!==t.style&&(n.style=t.style),e.width!==t.width&&(n.width=t.width),n})(p,e),o={top:{...l?.top,...n},right:{...l?.right,...n},bottom:{...l?.bottom,...n},left:{...l?.left,...n}};if(J_(o))return r(o);const i=Y_(o.top)?void 0:o.top;r(i)},onSplitChange:(e,t)=>{const n={...m,[t]:e};J_(n)?r(n):r(e)},toggleLinked:()=>v(!g),linkedValue:p,size:s,splitValue:m,wrapperClassName:x,__experimentalIsRenderedInSidebar:c}}const nC=e=>{const{label:t,hideLabelFromVision:n}=e;return t?n?(0,a.createElement)(hd,{as:"label"},t):(0,a.createElement)(jv,null,t):null},rC=Ju(((e,t)=>{const{className:n,colors:r,disableCustomColors:o,disableUnits:i,enableAlpha:s,enableStyle:l,hasMixedBorders:d,hideLabelFromVision:f,isLinked:p,label:m,linkedControlClassName:h,linkedValue:g,onLinkedChange:v,onSplitChange:b,popoverPlacement:y,popoverOffset:w,size:x,splitValue:E,toggleLinked:_,wrapperClassName:C,__experimentalIsRenderedInSidebar:S,...k}=tC(e),[T,R]=(0,a.useState)(null),P=(0,a.useMemo)((()=>y?{placement:y,offset:w,anchor:T,shift:!0}:void 0),[y,w,T]),M=(0,u.useMergeRefs)([R,t]);return(0,a.createElement)(md,{className:n,...k,ref:M},(0,a.createElement)(nC,{label:m,hideLabelFromVision:f}),(0,a.createElement)(md,{className:C},p?(0,a.createElement)(B_,{className:h,colors:r,disableUnits:i,disableCustomColors:o,enableAlpha:s,enableStyle:l,onChange:v,placeholder:d?(0,c.__)("Mixed"):void 0,__unstablePopoverProps:P,shouldSanitizeBorder:!1,value:g,withSlider:!0,width:"__unstable-large"===x?"116px":"110px",__experimentalIsRenderedInSidebar:S,size:x}):(0,a.createElement)(U_,{colors:r,disableCustomColors:o,enableAlpha:s,enableStyle:l,onChange:b,popoverPlacement:y,popoverOffset:w,value:E,__experimentalIsRenderedInSidebar:S,size:x}),(0,a.createElement)(Vb,{onClick:_,isLinked:p,size:x})))}),"BorderBoxControl");var oC=rC;const iC=fd("div",{target:"e1jovhle6"})({name:"14bvcyk",styles:"box-sizing:border-box;max-width:235px;padding-bottom:12px;width:100%"}),aC=fd(wh,{target:"e1jovhle5"})({name:"5bhc30",styles:"margin-bottom:8px"}),sC=fd(wh,{target:"e1jovhle4"})({name:"aujtid",styles:"min-height:30px;gap:0"}),lC=fd("div",{target:"e1jovhle3"})({name:"112jwab",styles:"box-sizing:border-box;max-width:80px"}),cC=fd(wh,{target:"e1jovhle2"})({name:"xy18ro",styles:"justify-content:center;padding-top:8px"}),uC=fd(wh,{target:"e1jovhle1"})({name:"3tw5wk",styles:"position:relative;height:100%;width:100%;justify-content:flex-start"});var dC={name:"1ch9yvl",styles:"border-radius:0"},fC={name:"tg3mx0",styles:"border-radius:2px"};const pC=({isFirst:e,isLast:t,isOnly:n})=>e?uh({borderTopRightRadius:0,borderBottomRightRadius:0})():t?uh({borderTopLeftRadius:0,borderBottomLeftRadius:0})():n?fC:dC,mC=({isFirst:e,isOnly:t})=>uh({marginLeft:e||t?0:-1})(),hC=fd(A_,{target:"e1jovhle0"})("max-width:60px;",pC,";",mC,";"),gC=()=>{};function vC({isFirst:e,isLast:t,isOnly:n,onHoverOn:r=gC,onHoverOff:o=gC,label:i,value:s,...l}){const c=(u=({event:e,...t})=>{t.hovering?r(e,t):o(e,t)},ov(av),gv({hover:u},d||{},"hover"));var u,d;return(0,a.createElement)(lC,{...c()},(0,a.createElement)(bC,{text:i},(0,a.createElement)(hC,{"aria-label":i,className:"component-box-control__unit-control",isFirst:e,isLast:t,isOnly:n,isPressEnterToChange:!0,isResetValueOnUnitChange:!1,value:s,...l})))}function bC({children:e,text:t}){return t?(0,a.createElement)(Xf,{text:t,position:"top"},(0,a.createElement)("div",null,e)):e}const yC={all:(0,c.__)("All"),top:(0,c.__)("Top"),bottom:(0,c.__)("Bottom"),left:(0,c.__)("Left"),right:(0,c.__)("Right"),mixed:(0,c.__)("Mixed"),vertical:(0,c.__)("Vertical"),horizontal:(0,c.__)("Horizontal")},wC={top:void 0,right:void 0,bottom:void 0,left:void 0},xC=["top","right","bottom","left"];function EC(e){return e.sort(((t,n)=>e.filter((e=>e===t)).length-e.filter((e=>e===n)).length)).pop()}function _C(e={},t,n=xC){const r=function(e){const t=[];if(!e?.length)return xC;if(e.includes("vertical"))t.push("top","bottom");else if(e.includes("horizontal"))t.push("left","right");else{const n=xC.filter((t=>e.includes(t)));t.push(...n)}return t}(n).map((t=>T_(e[t]))),o=r.map((e=>{var t;return null!==(t=e[0])&&void 0!==t?t:""})),i=r.map((e=>e[1])),a=o.every((e=>e===o[0]))?o[0]:"";let s;var l;"number"==typeof a?s=EC(i):s=null!==(l=function(e){if(!e||"object"!=typeof e)return;const t=Object.values(e).filter(Boolean);return EC(t)}(t))&&void 0!==l?l:EC(i);return[a,s].join("")}function CC(e={},t,n=xC){const r=_C(e,t,n);return isNaN(parseFloat(r))}function SC(e){return void 0!==e&&Object.values(e).filter((e=>!!e&&/\d/.test(e))).length>0}function kC(e,t){let n="all";return e||(n=t?"vertical":"top"),n}function TC(e,t,n){const r={...e};return n?.length?n.forEach((e=>{"vertical"===e?(r.top=t,r.bottom=t):"horizontal"===e?(r.left=t,r.right=t):r[e]=t})):xC.forEach((e=>r[e]=t)),r}const RC=()=>{};function PC({onChange:e=RC,onFocus:t=RC,onHoverOn:n=RC,onHoverOff:r=RC,values:o,sides:i,selectedUnits:s,setSelectedUnits:l,...c}){const u=_C(o,s,i),d=SC(o)&&CC(o,s,i),f=d?yC.mixed:void 0;return(0,a.createElement)(vC,{...c,disableUnits:d,isOnly:!0,value:u,onChange:t=>{const n=void 0!==t&&!isNaN(parseFloat(t)),r=TC(o,n?t:void 0,i);e(r)},onUnitChange:e=>{const t=TC(s,e,i);l(t)},onFocus:e=>{t(e,{side:"all"})},onHoverOn:()=>{n({top:!0,bottom:!0,left:!0,right:!0})},onHoverOff:()=>{r({top:!1,bottom:!1,left:!1,right:!1})},placeholder:f})}const MC=()=>{};function IC({onChange:e=MC,onFocus:t=MC,onHoverOn:n=MC,onHoverOff:r=MC,values:o,selectedUnits:i,setSelectedUnits:s,sides:l,...c}){const u=e=>n=>{t(n,{side:e})},d=e=>()=>{n({[e]:!0})},f=e=>()=>{r({[e]:!1})},p=t=>(n,{event:r})=>{const i={...o},a=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;if(i[t]=a,r.altKey)switch(t){case"top":i.bottom=a;break;case"bottom":i.top=a;break;case"left":i.right=a;break;case"right":i.left=a}(t=>{e(t)})(i)},m=e=>t=>{const n={...i};n[e]=t,s(n)},h=l?.length?xC.filter((e=>l.includes(e))):xC,g=h[0],v=h[h.length-1],b=g===v&&g;return(0,a.createElement)(cC,{className:"component-box-control__input-controls-wrapper"},(0,a.createElement)(uC,{gap:0,align:"top",className:"component-box-control__input-controls"},h.map((e=>{const[t,n]=T_(o[e]),r=o[e]?n:i[e];return(0,a.createElement)(vC,{...c,isFirst:g===e,isLast:v===e,isOnly:b===e,value:[t,r].join(""),onChange:p(e),onUnitChange:m(e),onFocus:u(e),onHoverOn:d(e),onHoverOff:f(e),label:yC[e],key:`box-control-${e}`})}))))}const NC=["vertical","horizontal"];function OC({onChange:e,onFocus:t,onHoverOn:n,onHoverOff:r,values:o,selectedUnits:i,setSelectedUnits:s,sides:l,...c}){const u=e=>n=>{t&&t(n,{side:e})},d=e=>()=>{n&&("vertical"===e&&n({top:!0,bottom:!0}),"horizontal"===e&&n({left:!0,right:!0}))},f=e=>()=>{r&&("vertical"===e&&r({top:!1,bottom:!1}),"horizontal"===e&&r({left:!1,right:!1}))},p=t=>n=>{if(!e)return;const r={...o},i=void 0!==n&&!isNaN(parseFloat(n))?n:void 0;"vertical"===t&&(r.top=i,r.bottom=i),"horizontal"===t&&(r.left=i,r.right=i),e(r)},m=e=>t=>{const n={...i};"vertical"===e&&(n.top=t,n.bottom=t),"horizontal"===e&&(n.left=t,n.right=t),s(n)},h=l?.length?NC.filter((e=>l.includes(e))):NC,g=h[0],v=h[h.length-1],b=g===v&&g;return(0,a.createElement)(uC,{gap:0,align:"top",className:"component-box-control__vertical-horizontal-input-controls"},h.map((e=>{const[t,n]=T_("vertical"===e?o.top:o.left),r="vertical"===e?i.top:i.left;return(0,a.createElement)(vC,{...c,isFirst:g===e,isLast:v===e,isOnly:b===e,value:[t,null!=r?r:n].join(""),onChange:p(e),onUnitChange:m(e),onFocus:u(e),onHoverOn:d(e),onHoverOff:f(e),label:yC[e],key:e})})))}const DC=fd("span",{target:"e1j5nr4z8"})({name:"1w884gc",styles:"box-sizing:border-box;display:block;width:24px;height:24px;position:relative;padding:4px"}),AC=fd("span",{target:"e1j5nr4z7"})({name:"i6vjox",styles:"box-sizing:border-box;display:block;position:relative;width:100%;height:100%"}),LC=fd("span",{target:"e1j5nr4z6"})("box-sizing:border-box;display:block;pointer-events:none;position:absolute;",(({isFocused:e})=>np({backgroundColor:"currentColor",opacity:e?1:.3},"","")),";"),zC=fd(LC,{target:"e1j5nr4z5"})({name:"1k2w39q",styles:"bottom:3px;top:3px;width:2px"}),FC=fd(LC,{target:"e1j5nr4z4"})({name:"1q9b07k",styles:"height:2px;left:3px;right:3px"}),BC=fd(FC,{target:"e1j5nr4z3"})({name:"abcix4",styles:"top:0"}),jC=fd(zC,{target:"e1j5nr4z2"})({name:"1wf8jf",styles:"right:0"}),VC=fd(FC,{target:"e1j5nr4z1"})({name:"8tapst",styles:"bottom:0"}),HC=fd(zC,{target:"e1j5nr4z0"})({name:"1ode3cm",styles:"left:0"}),$C=24;function WC({size:e=24,side:t="all",sides:n,...r}){const o=e=>!(e=>n?.length&&!n.includes(e))(e)&&("all"===t||t===e),i=o("top")||o("vertical"),s=o("right")||o("horizontal"),l=o("bottom")||o("vertical"),c=o("left")||o("horizontal"),u=e/$C;return(0,a.createElement)(DC,{style:{transform:`scale(${u})`},...r},(0,a.createElement)(AC,null,(0,a.createElement)(BC,{isFocused:i}),(0,a.createElement)(jC,{isFocused:s}),(0,a.createElement)(VC,{isFocused:l}),(0,a.createElement)(HC,{isFocused:c})))}function UC({isLinked:e,...t}){const n=e?(0,c.__)("Unlink sides"):(0,c.__)("Link sides");return(0,a.createElement)(Xf,{text:n},(0,a.createElement)(bd,{...t,className:"component-box-control__linked-button",isSmall:!0,icon:e?Db:Ab,iconSize:24,"aria-label":n}))}const GC={min:0},KC=()=>{};function qC({id:e,inputProps:t=GC,onChange:n=KC,label:r=(0,c.__)("Box Control"),values:o,units:i,sides:s,splitOnAxis:l=!1,allowReset:d=!0,resetValues:f=wC,onMouseOver:p,onMouseOut:m}){const[h,g]=My(o,{fallback:wC}),v=h||wC,b=SC(o),y=1===s?.length,[w,x]=(0,a.useState)(b),[E,_]=(0,a.useState)(!b||!CC(v)||y),[C,S]=(0,a.useState)(kC(E,l)),[k,T]=(0,a.useState)({top:T_(o?.top)[1],right:T_(o?.right)[1],bottom:T_(o?.bottom)[1],left:T_(o?.left)[1]}),R=function(e){const t=(0,u.useInstanceId)(qC,"inspector-box-control");return e||t}(e),P=`${R}-heading`,M={...t,onChange:e=>{n(e),g(e),x(!0)},onFocus:(e,{side:t})=>{S(t)},isLinked:E,units:i,selectedUnits:k,setSelectedUnits:T,sides:s,values:v,onMouseOver:p,onMouseOut:m};return(0,a.createElement)(iC,{id:R,role:"group","aria-labelledby":P},(0,a.createElement)(aC,{className:"component-box-control__header"},(0,a.createElement)(xh,null,(0,a.createElement)(Wv.VisualLabel,{id:P},r)),d&&(0,a.createElement)(xh,null,(0,a.createElement)(bd,{className:"component-box-control__reset-button",variant:"secondary",isSmall:!0,onClick:()=>{n(f),g(f),T(f),x(!1)},disabled:!w},(0,c.__)("Reset")))),(0,a.createElement)(sC,{className:"component-box-control__header-control-wrapper"},(0,a.createElement)(xh,null,(0,a.createElement)(WC,{side:C,sides:s})),E&&(0,a.createElement)(th,null,(0,a.createElement)(PC,{"aria-label":r,...M})),!E&&l&&(0,a.createElement)(th,null,(0,a.createElement)(OC,{...M})),!y&&(0,a.createElement)(xh,null,(0,a.createElement)(UC,{onClick:()=>{_(!E),S(kC(!E,l))},isLinked:E}))),!E&&!l&&(0,a.createElement)(IC,{...M}))}var YC=qC;var XC=(0,a.forwardRef)((function(e,t){const{className:n,...r}=e,o=l()("components-button-group",n);return(0,a.createElement)("div",{ref:t,role:"group",className:o,...r})}));const ZC={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"};function JC(e){return`0 ${e}px ${2*e}px 0\n\t${`rgba(0, 0, 0, ${e/20})`}`}const QC=Ju((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:i,isInteractive:s=!1,offset:l=0,value:c=0,...u}=Zu(e,"Elevation"),d=Xu();return{...u,className:(0,a.useMemo)((()=>{let e=_h(i)?i:2*c,a=_h(t)?t:c/2;s||(e=_h(i)?i:void 0,a=_h(t)?t:void 0);const u=`box-shadow ${zh.transitionDuration} ${zh.transitionTimingFunction}`,f={};return f.Base=np({borderRadius:n,bottom:l,boxShadow:JC(c),opacity:zh.elevationIntensity,left:l,right:l,top:l,transition:u},jp("transition"),"",""),_h(e)&&(f.hover=np("*:hover>&{box-shadow:",JC(e),";}","")),_h(a)&&(f.active=np("*:active>&{box-shadow:",JC(a),";}","")),_h(o)&&(f.focus=np("*:focus>&{box-shadow:",JC(o),";}","")),d(ZC,f.Base,f.hover,f.focus,f.active,r)}),[t,n,r,d,o,i,s,l,c]),"aria-hidden":!0}}(e);return(0,a.createElement)(md,{...n,ref:t})}),"Elevation");var eS=QC;const tS=`calc(${zh.cardBorderRadius} - 1px)`,nS=np("box-shadow:0 0 0 1px ",zh.surfaceBorderColor,";outline:none;",""),rS={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},oS={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},iS={name:"13udsys",styles:"height:100%"},aS={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},sS={name:"dq805e",styles:"box-sizing:border-box;overflow:hidden;&>img,&>iframe{display:block;height:auto;max-width:100%;width:100%;}"},lS={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},cS=np("&:first-of-type{border-top-left-radius:",tS,";border-top-right-radius:",tS,";}&:last-of-type{border-bottom-left-radius:",tS,";border-bottom-right-radius:",tS,";}",""),uS=np("border-color:",zh.colorDivider,";",""),dS={name:"1t90u8d",styles:"box-shadow:none"},fS={name:"1e1ncky",styles:"border:none"},pS=np("border-radius:",tS,";",""),mS=np("padding:",zh.cardPaddingXSmall,";",""),hS={large:np("padding:",zh.cardPaddingLarge,";",""),medium:np("padding:",zh.cardPaddingMedium,";",""),small:np("padding:",zh.cardPaddingSmall,";",""),xSmall:mS,extraSmall:mS},gS=np("background-color:",Bp.ui.backgroundDisabled,";",""),vS=np("background-color:",zh.surfaceColor,";color:",Bp.gray[900],";position:relative;","");zh.surfaceBackgroundColor;function bS({borderBottom:e,borderLeft:t,borderRight:n,borderTop:r}){const o=`1px solid ${zh.surfaceBorderColor}`;return np({borderBottom:e?o:void 0,borderLeft:t?o:void 0,borderRight:n?o:void 0,borderTop:r?o:void 0},"","")}const yS=np("",""),wS=np("background:",zh.surfaceBackgroundTintColor,";",""),xS=np("background:",zh.surfaceBackgroundTertiaryColor,";",""),ES=e=>[e,e].join(" "),_S=e=>["90deg",[zh.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),CS=e=>[[zh.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),SS=(e,t)=>np("background:",(e=>[`linear-gradient( ${_S(e)} ) center`,`linear-gradient( ${CS(e)} ) center`,zh.surfaceBorderBoldColor].join(","))(t),";background-size:",ES(e),";",""),kS=[`linear-gradient( ${[`${zh.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${zh.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),TS=(e,t,n)=>{switch(e){case"dotted":return SS(t,n);case"grid":return(e=>np("background:",zh.surfaceBackgroundColor,";background-image:",kS,";background-size:",ES(e),";",""))(t);case"primary":return yS;case"secondary":return wS;case"tertiary":return xS}};function RS(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:i=!1,className:s,variant:l="primary",...c}=Zu(e,"Surface"),u=Xu();return{...c,className:(0,a.useMemo)((()=>{const e={borders:bS({borderBottom:n,borderLeft:r,borderRight:o,borderTop:i})};return u(vS,e.borders,TS(l,`${t}px`,t-1+"px"),s)}),[t,n,r,o,i,s,u,l])}}function PS(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:i="medium",...s}=Zu(function({elevation:e,isElevated:t,...n}){const r={...n};let o=e;var i;return t&&(ql()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=o)&&void 0!==i||(o=2)),void 0!==o&&(r.elevation=o),r}(e),"Card"),l=Xu();return{...RS({...s,className:(0,a.useMemo)((()=>l(nS,r&&dS,o&&pS,t)),[t,l,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:i}}const MS=Ju((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:i,size:s,...l}=PS(e),c=i?zh.cardBorderRadius:0,u=Xu(),d=(0,a.useMemo)((()=>u(np({borderRadius:c},"",""))),[u,c]),f=(0,a.useMemo)((()=>{const e={size:s,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,s]);return(0,a.createElement)(sc,{value:f},(0,a.createElement)(md,{...l,ref:t},(0,a.createElement)(md,{className:u(iS)},n),(0,a.createElement)(eS,{className:d,isInteractive:!1,value:r?1:0}),(0,a.createElement)(eS,{className:d,isInteractive:!1,value:r})))}),"Card");var IS=MS;const NS=np("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",zh.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",zh.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",zh.colorScrollbarThumbHover,";}}",""),OS={name:"13udsys",styles:"height:100%"},DS={name:"7zq9w",styles:"scroll-behavior:smooth"},AS={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},LS={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},zS={name:"umwchj",styles:"overflow-y:auto"};const FS=Ju((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Zu(e,"Scrollable"),i=Xu();return{...o,className:(0,a.useMemo)((()=>i(OS,NS,r&&DS,"x"===n&&AS,"y"===n&&LS,"auto"===n&&zS,t)),[t,i,n,r])}}(e);return(0,a.createElement)(md,{...n,ref:t})}),"Scrollable");var BS=FS;const jS=Ju((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...i}=Zu(e,"CardBody"),s=Xu();return{...i,className:(0,a.useMemo)((()=>s(aS,cS,hS[o],r&&gS,"components-card__body",t)),[t,s,r,o]),isScrollable:n}}(e);return n?(0,a.createElement)(BS,{...r,ref:t}):(0,a.createElement)(md,{...r,ref:t})}),"CardBody");var VS=jS,HS=B({name:"Separator",compose:re,keys:["orientation"],useOptions:function(e){var t=e.orientation;return p({orientation:void 0===t?"horizontal":t},m(e,["orientation"]))},useProps:function(e,t){return p({role:"separator","aria-orientation":e.orientation},t)}}),$S=z({as:"hr",memo:!0,useHook:HS});const WS={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var US={name:"1u4hpl4",styles:"display:inline"};const GS=fd("hr",{target:"e19on6iw0"})("border:0;margin:0;",(({"aria-orientation":e="horizontal"})=>"vertical"===e?US:void 0)," ",(({"aria-orientation":e="horizontal"})=>np({["vertical"===e?"borderRight":"borderBottom"]:"1px solid currentColor"},"",""))," ",(({"aria-orientation":e="horizontal"})=>np({height:"vertical"===e?"auto":0,width:"vertical"===e?0:"auto"},"",""))," ",(({"aria-orientation":e="horizontal",margin:t,marginStart:n,marginEnd:r})=>np(uh({[WS[e].start]:rh(null!=n?n:t),[WS[e].end]:rh(null!=r?r:t)})(),"","")),";");var KS=Ju((function(e,t){const n=Zu(e,"Divider");return(0,a.createElement)($S,{as:GS,...n,ref:t})}),"Divider");const qS=Ju((function(e,t){const n=function(e){const{className:t,...n}=Zu(e,"CardDivider"),r=Xu();return{...n,className:(0,a.useMemo)((()=>r(lS,uS,"components-card__divider",t)),[t,r])}}(e);return(0,a.createElement)(KS,{...n,ref:t})}),"CardDivider");var YS=qS;const XS=Ju((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:i="medium",...s}=Zu(e,"CardFooter"),l=Xu();return{...s,className:(0,a.useMemo)((()=>l(oS,cS,uS,hS[i],r&&fS,o&&gS,"components-card__footer",t)),[t,l,r,o,i]),justify:n}}(e);return(0,a.createElement)(wh,{...n,ref:t})}),"CardFooter");var ZS=XS;const JS=Ju((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...i}=Zu(e,"CardHeader"),s=Xu();return{...i,className:(0,a.useMemo)((()=>s(rS,cS,uS,hS[o],n&&fS,r&&gS,"components-card__header",t)),[t,s,n,r,o])}}(e);return(0,a.createElement)(wh,{...n,ref:t})}),"CardHeader");var QS=JS;const ek=Ju((function(e,t){const n=function(e){const{className:t,...n}=Zu(e,"CardMedia"),r=Xu();return{...n,className:(0,a.useMemo)((()=>r(sS,cS,"components-card__media",t)),[t,r])}}(e);return(0,a.createElement)(md,{...n,ref:t})}),"CardMedia");var tk=ek;var nk=function e(t){const{__nextHasNoMarginBottom:n,label:r,className:o,heading:i,checked:s,indeterminate:c,help:d,id:f,onChange:p,...m}=t;i&&ql()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[h,g]=(0,a.useState)(!1),[v,b]=(0,a.useState)(!1),y=(0,u.useRefEffect)((e=>{e&&(e.indeterminate=!!c,g(e.matches(":checked")),b(e.matches(":indeterminate")))}),[s,c]),w=(0,u.useInstanceId)(e,"inspector-checkbox-control",f);return(0,a.createElement)(Uv,{__nextHasNoMarginBottom:n,label:i,id:w,help:d,className:l()("components-checkbox-control",o)},(0,a.createElement)("span",{className:"components-checkbox-control__input-container"},(0,a.createElement)("input",{ref:y,id:w,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>p(e.target.checked),checked:s,"aria-describedby":d?w+"__help":void 0,...m}),v?(0,a.createElement)(_y,{icon:hh,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,h?(0,a.createElement)(_y,{icon:i_,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,a.createElement)("label",{className:"components-checkbox-control__label",htmlFor:w},r))};const rk=4e3;function ok({className:e,children:t,onCopy:n,onFinishCopy:r,text:o,...i}){ql()("wp.components.ClipboardButton",{since:"5.8",alternative:"wp.compose.useCopyToClipboard"});const s=(0,a.useRef)(),c=(0,u.useCopyToClipboard)(o,(()=>{n(),s.current&&clearTimeout(s.current),r&&(s.current=setTimeout((()=>r()),rk))}));(0,a.useEffect)((()=>{s.current&&clearTimeout(s.current)}),[]);const d=l()("components-clipboard-button",e);return(0,a.createElement)(bd,{...i,className:d,ref:c,onCopy:e=>{e.target.focus()}},t)}var ik=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const ak=np("appearance:none;border:1px solid transparent;cursor:pointer;background:none;text-align:start;svg,path{fill:currentColor;}&:hover{color:",Bp.ui.theme,";}&:focus-visible{box-shadow:0 0 0 var( --wp-admin-border-width-focus ) var(\n\t\t\t\t--wp-components-color-accent,\n\t\t\t\tvar( --wp-admin-theme-color, ",Bp.ui.theme," )\n\t\t\t);outline:2px solid transparent;}",""),sk={name:"1bcj5ek",styles:"width:100%;display:block"},lk={name:"150ruhm",styles:"box-sizing:border-box;width:100%;display:block;margin:0;color:inherit"},ck=np("border:1px solid ",zh.surfaceBorderColor,";",""),uk=np(">*:not( marquee )>*{border-bottom:1px solid ",zh.surfaceBorderColor,";}>*:last-of-type>*:not( :focus ){border-bottom-color:transparent;}",""),dk=zh.controlBorderRadius,fk=np("border-radius:",dk,";",""),pk=np("border-radius:",dk,";>*:first-of-type>*{border-top-left-radius:",dk,";border-top-right-radius:",dk,";}>*:last-of-type>*{border-bottom-left-radius:",dk,";border-bottom-right-radius:",dk,";}",""),mk=`calc(${zh.fontSize} * ${zh.fontLineHeightBase})`,hk=`calc((${zh.controlHeight} - ${mk} - 2px) / 2)`,gk=`calc((${zh.controlHeightSmall} - ${mk} - 2px) / 2)`,vk=`calc((${zh.controlHeightLarge} - ${mk} - 2px) / 2)`,bk={small:np("padding:",gk," ",zh.controlPaddingXSmall,";",""),medium:np("padding:",hk," ",zh.controlPaddingX,";",""),large:np("padding:",vk," ",zh.controlPaddingXLarge,";","")};const yk=(0,a.createContext)({size:"medium"}),wk=()=>(0,a.useContext)(yk);var xk=Ju((function(e,t){const{isBordered:n,isSeparated:r,size:o,...i}=function(e){const{className:t,isBordered:n=!1,isRounded:r=!0,isSeparated:o=!1,role:i="list",...a}=Zu(e,"ItemGroup");return{isBordered:n,className:Xu()(n&&ck,o&&uk,r&&pk,t),role:i,isSeparated:o,...a}}(e),{size:s}=wk(),l={spacedAround:!n&&!r,size:o||s};return(0,a.createElement)(yk.Provider,{value:l},(0,a.createElement)(md,{...i,ref:t}))}),"ItemGroup");const Ek=10,_k=0,Ck=Ek;function Sk(e){return Math.max(0,Math.min(100,e))}function kk(e,t,n){const r=e.slice();return r[t]=n,r}function Tk(e,t,n){if(function(e,t,n,r=_k){const o=e[t].position,i=Math.min(o,n),a=Math.max(o,n);return e.some((({position:e},o)=>o!==t&&(Math.abs(e-n)<r||i<e&&e<a)))}(e,t,n))return e;return kk(e,t,{...e[t],position:n})}function Rk(e,t,n){return kk(e,t,{...e[t],color:n})}function Pk(e,t){if(!t)return;const{x:n,width:r}=t.getBoundingClientRect(),o=e-n;return Math.round(Sk(100*o/r))}function Mk({isOpen:e,position:t,color:n,...r}){const o=`components-custom-gradient-picker__control-point-button-description-${(0,u.useInstanceId)(Mk)}`;return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(bd,{"aria-label":(0,c.sprintf)((0,c.__)("Gradient control point at position %1$s%% with color code %2$s."),t,n),"aria-describedby":o,"aria-haspopup":"true","aria-expanded":e,className:l()("components-custom-gradient-picker__control-point-button",{"is-active":e}),...r}),(0,a.createElement)(hd,{id:o},(0,c.__)("Use your left or right arrow keys or drag and drop with the mouse to change the gradient position. Press the button to change the color or remove the control point.")))}function Ik({isRenderedInSidebar:e,className:t,...n}){const r=(0,a.useMemo)((()=>({placement:"bottom",offset:8})),[]),o=l()("components-custom-gradient-picker__control-point-dropdown",t);return(0,a.createElement)(v_,{isRenderedInSidebar:e,popoverProps:r,className:o,...n})}function Nk({disableRemove:e,disableAlpha:t,gradientPickerDomRef:n,ignoreMarkerPosition:r,value:o,onChange:i,onStartControlPointChange:s,onStopControlPointChange:l,__experimentalIsRenderedInSidebar:u}){const d=(0,a.useRef)(),f=e=>{if(void 0===d.current||null===n.current)return;const t=Pk(e.clientX,n.current),{initialPosition:r,index:a,significantMoveHappened:s}=d.current;!s&&Math.abs(r-t)>=5&&(d.current.significantMoveHappened=!0),i(Tk(o,a,t))},p=()=>{window&&window.removeEventListener&&d.current&&d.current.listenersActivated&&(window.removeEventListener("mousemove",f),window.removeEventListener("mouseup",p),l(),d.current.listenersActivated=!1)},m=(0,a.useRef)();return m.current=p,(0,a.useEffect)((()=>()=>{m.current?.()}),[]),(0,a.createElement)(a.Fragment,null,o.map(((n,m)=>{const h=n?.position;return r!==h&&(0,a.createElement)(Ik,{isRenderedInSidebar:u,key:m,onClose:l,renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(Mk,{key:m,onClick:()=>{d.current&&d.current.significantMoveHappened||(e?l():s(),t())},onMouseDown:()=>{window&&window.addEventListener&&(d.current={initialPosition:h,index:m,significantMoveHappened:!1,listenersActivated:!0},s(),window.addEventListener("mousemove",f),window.addEventListener("mouseup",p))},onKeyDown:e=>{"ArrowLeft"===e.code?(e.stopPropagation(),i(Tk(o,m,Sk(n.position-Ck)))):"ArrowRight"===e.code&&(e.stopPropagation(),i(Tk(o,m,Sk(n.position+Ck))))},isOpen:e,position:n.position,color:n.color}),renderContent:({onClose:r})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(o_,{enableAlpha:!t,color:n.color,onChange:e=>{i(Rk(o,m,Mp(e).toRgbString()))}}),!e&&o.length>2&&(0,a.createElement)(lb,{className:"components-custom-gradient-picker__remove-control-point-wrapper",alignment:"center"},(0,a.createElement)(bd,{onClick:()=>{i(function(e,t){return e.filter(((e,n)=>n!==t))}(o,m)),r()},variant:"link"},(0,c.__)("Remove Control Point")))),style:{left:`${n.position}%`,transform:"translateX( -50% )"}})})))}Nk.InsertPoint=function({value:e,onChange:t,onOpenInserter:n,onCloseInserter:r,insertPosition:o,disableAlpha:i,__experimentalIsRenderedInSidebar:s}){const[l,c]=(0,a.useState)(!1);return(0,a.createElement)(Ik,{isRenderedInSidebar:s,className:"components-custom-gradient-picker__inserter",onClose:()=>{r()},renderToggle:({isOpen:e,onToggle:t})=>(0,a.createElement)(bd,{"aria-expanded":e,"aria-haspopup":"true",onClick:()=>{e?r():(c(!1),n()),t()},className:"components-custom-gradient-picker__insert-point-dropdown",icon:mh}),renderContent:()=>(0,a.createElement)(o_,{enableAlpha:!i,onChange:n=>{l?t(function(e,t,n){const r=e.findIndex((e=>e.position===t));return Rk(e,r,n)}(e,o,Mp(n).toRgbString())):(t(function(e,t,n){const r=e.findIndex((e=>e.position>t)),o={color:n,position:t},i=e.slice();return i.splice(r-1,0,o),i}(e,o,Mp(n).toRgbString())),c(!0))}}),style:null!==o?{left:`${o}%`,transform:"translateX( -50% )"}:void 0})};var Ok=Nk;const Dk=(e,t)=>{switch(t.type){case"MOVE_INSERTER":if("IDLE"===e.id||"MOVING_INSERTER"===e.id)return{id:"MOVING_INSERTER",insertPosition:t.insertPosition};break;case"STOP_INSERTER_MOVE":if("MOVING_INSERTER"===e.id)return{id:"IDLE"};break;case"OPEN_INSERTER":if("MOVING_INSERTER"===e.id)return{id:"INSERTING_CONTROL_POINT",insertPosition:e.insertPosition};break;case"CLOSE_INSERTER":if("INSERTING_CONTROL_POINT"===e.id)return{id:"IDLE"};break;case"START_CONTROL_CHANGE":if("IDLE"===e.id)return{id:"MOVING_CONTROL_POINT"};break;case"STOP_CONTROL_CHANGE":if("MOVING_CONTROL_POINT"===e.id)return{id:"IDLE"}}return e},Ak={id:"IDLE"};function Lk({background:e,hasGradient:t,value:n,onChange:r,disableInserter:o=!1,disableAlpha:i=!1,__experimentalIsRenderedInSidebar:s=!1}){const c=(0,a.useRef)(null),[u,d]=(0,a.useReducer)(Dk,Ak),f=e=>{if(!c.current)return;const t=Pk(e.clientX,c.current);n.some((({position:e})=>Math.abs(t-e)<Ek))?"MOVING_INSERTER"===u.id&&d({type:"STOP_INSERTER_MOVE"}):d({type:"MOVE_INSERTER",insertPosition:t})},p="MOVING_INSERTER"===u.id,m="INSERTING_CONTROL_POINT"===u.id;return(0,a.createElement)("div",{className:l()("components-custom-gradient-picker__gradient-bar",{"has-gradient":t}),onMouseEnter:f,onMouseMove:f,onMouseLeave:()=>{d({type:"STOP_INSERTER_MOVE"})}},(0,a.createElement)("div",{className:"components-custom-gradient-picker__gradient-bar-background",style:{background:e,opacity:t?1:.4}}),(0,a.createElement)("div",{ref:c,className:"components-custom-gradient-picker__markers-container"},!o&&(p||m)&&(0,a.createElement)(Ok.InsertPoint,{__experimentalIsRenderedInSidebar:s,disableAlpha:i,insertPosition:u.insertPosition,value:n,onChange:r,onOpenInserter:()=>{d({type:"OPEN_INSERTER"})},onCloseInserter:()=>{d({type:"CLOSE_INSERTER"})}}),(0,a.createElement)(Ok,{__experimentalIsRenderedInSidebar:s,disableAlpha:i,disableRemove:o,gradientPickerDomRef:c,ignoreMarkerPosition:m?u.insertPosition:void 0,value:n,onChange:r,onStartControlPointChange:()=>{d({type:"START_CONTROL_CHANGE"})},onStopControlPointChange:()=>{d({type:"STOP_CONTROL_CHANGE"})}})))}var zk=o(7115);const Fk="linear-gradient(135deg, rgba(6, 147, 227, 1) 0%, rgb(155, 81, 224) 100%)",Bk={type:"angular",value:"90"},jk=[{value:"linear-gradient",label:(0,c.__)("Linear")},{value:"radial-gradient",label:(0,c.__)("Radial")}],Vk={top:0,"top right":45,"right top":45,right:90,"right bottom":135,"bottom right":135,bottom:180,"bottom left":225,"left bottom":225,left:270,"top left":315,"left top":315};function Hk({type:e,value:t,length:n}){return`${function({type:e,value:t}){return"literal"===e?t:"hex"===e?`#${t}`:`${e}(${t.join(",")})`}({type:e,value:t})} ${function(e){if(!e)return"";const{value:t,type:n}=e;return`${t}${n}`}(n)}`}function $k({type:e,orientation:t,colorStops:n}){const r=function(e){if(!Array.isArray(e)&&e&&"angular"===e.type)return`${e.value}deg`}(t);return`${e}(${[r,...n.sort(((e,t)=>{const n=e=>void 0===e?.length?.value?0:parseInt(e.length.value);return n(e)-n(t)})).map(Hk)].filter(Boolean).join(",")})`}function Wk(e){return void 0===e.length||"%"!==e.length.type}function Uk(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;case"rgb":case"rgba":return`${e.type}(${e.value.join(",")})`;default:return"transparent"}}Np([Op]);const Gk=fd(th,{target:"e10bzpgi1"})({name:"1gvx10y",styles:"flex-grow:5"}),Kk=fd(th,{target:"e10bzpgi0"})({name:"1gvx10y",styles:"flex-grow:5"}),qk=({gradientAST:e,hasGradient:t,onChange:n})=>{var r;const o=null!==(r=e?.orientation?.value)&&void 0!==r?r:180;return(0,a.createElement)(yb,{__nextHasNoMarginBottom:!0,onChange:t=>{n($k({...e,orientation:{type:"angular",value:`${t}`}}))},value:t?o:""})},Yk=({gradientAST:e,hasGradient:t,onChange:n})=>{const{type:r}=e;return(0,a.createElement)(Ry,{__nextHasNoMarginBottom:!0,className:"components-custom-gradient-picker__type-picker",label:(0,c.__)("Type"),labelPosition:"top",onChange:t=>{"linear-gradient"===t&&n($k({...e,orientation:e.orientation?void 0:Bk,type:"linear-gradient"})),"radial-gradient"===t&&(()=>{const{orientation:t,...r}=e;n($k({...r,type:"radial-gradient"}))})()},options:jk,size:"__unstable-large",value:t?r:void 0})};var Xk=function({__nextHasNoMargin:e=!1,value:t,onChange:n,__experimentalIsRenderedInSidebar:r=!1}){const{gradientAST:o,hasGradient:i}=function(e){let t,n=!!e;const r=null!=e?e:Fk;try{t=zk.parse(r)[0]}catch(e){console.warn("wp.components.CustomGradientPicker failed to parse the gradient with error",e),t=zk.parse(Fk)[0],n=!1}if(Array.isArray(t.orientation)||"directional"!==t.orientation?.type||(t.orientation={type:"angular",value:Vk[t.orientation.value].toString()}),t.colorStops.some(Wk)){const{colorStops:e}=t,n=100/(e.length-1);e.forEach(((e,t)=>{e.length={value:""+n*t,type:"%"}}))}return{gradientAST:t,hasGradient:n}}(t),s=function(e){return $k({type:"linear-gradient",orientation:Bk,colorStops:e.colorStops})}(o),c=o.colorStops.map((e=>({color:Uk(e),position:parseInt(e.length.value)})));return e||ql()("Outer margin styles for wp.components.CustomGradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"}),(0,a.createElement)(l_,{spacing:4,className:l()("components-custom-gradient-picker",{"is-next-has-no-margin":e})},(0,a.createElement)(Lk,{__experimentalIsRenderedInSidebar:r,background:s,hasGradient:i,value:c,onChange:e=>{n($k(function(e,t){return{...e,colorStops:t.map((({position:e,color:t})=>{const{r:n,g:r,b:o,a:i}=Mp(t).toRgb();return{length:{type:"%",value:e?.toString()},type:i<1?"rgba":"rgb",value:i<1?[`${n}`,`${r}`,`${o}`,`${i}`]:[`${n}`,`${r}`,`${o}`]}}))}}(o,e)))}}),(0,a.createElement)(wh,{gap:3,className:"components-custom-gradient-picker__ui-line"},(0,a.createElement)(Gk,null,(0,a.createElement)(Yk,{gradientAST:o,hasGradient:i,onChange:n})),(0,a.createElement)(Kk,null,"linear-gradient"===o.type&&(0,a.createElement)(qk,{gradientAST:o,hasGradient:i,onChange:n}))))};const Zk=e=>e.length>0&&e.every((e=>{return t=e,Array.isArray(t.gradients)&&!("gradient"in t);var t}));function Jk({className:e,clearGradient:t,gradients:n,onChange:r,value:o,actions:i}){const s=(0,a.useMemo)((()=>n.map((({gradient:e,name:n},i)=>(0,a.createElement)(s_.Option,{key:e,value:e,isSelected:o===e,tooltipText:n||(0,c.sprintf)((0,c.__)("Gradient code: %s"),e),style:{color:"rgba( 0,0,0,0 )",background:e},onClick:o===e?t:()=>r(e,i),"aria-label":n?(0,c.sprintf)((0,c.__)("Gradient: %s"),n):(0,c.sprintf)((0,c.__)("Gradient code: %s"),e)})))),[n,o,r,t]);return(0,a.createElement)(s_,{className:e,options:s,actions:i})}function Qk({className:e,clearGradient:t,gradients:n,onChange:r,value:o,actions:i,headingLevel:s}){return(0,a.createElement)(l_,{spacing:3,className:e},n.map((({name:e,gradients:l},c)=>(0,a.createElement)(l_,{spacing:2,key:c},(0,a.createElement)(d_,{level:s},e),(0,a.createElement)(Jk,{clearGradient:t,gradients:l,onChange:e=>r(e,c),value:o,...n.length===c+1?{actions:i}:{}})))))}function eT(e){return Zk(e.gradients)?(0,a.createElement)(Qk,{...e}):(0,a.createElement)(Jk,{...e})}var tT=function({__nextHasNoMargin:e=!1,className:t,gradients:n=[],onChange:r,value:o,clearable:i=!0,disableCustomGradients:s=!1,__experimentalIsRenderedInSidebar:l,headingLevel:u=2}){const d=(0,a.useCallback)((()=>r(void 0)),[r]);e||ql()("Outer margin styles for wp.components.GradientPicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMargin` prop to true to start opting into the new styles, which will become the default in a future version"});const f=e?{}:{marginTop:n.length?void 0:3,marginBottom:i?0:6};return(0,a.createElement)(ph,{marginBottom:0,...f},(0,a.createElement)(l_,{spacing:n.length?4:0},!s&&(0,a.createElement)(Xk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:l,value:o,onChange:r}),(n.length||i)&&(0,a.createElement)(eT,{className:t,clearGradient:d,gradients:n,onChange:r,value:o,actions:i&&!s&&(0,a.createElement)(s_.ButtonAction,{onClick:d},(0,c.__)("Clear")),headingLevel:u})))};var nT=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));const rT=()=>{},oT=["menuitem","menuitemradio","menuitemcheckbox"];class iT extends a.Component{constructor(e){super(e),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container&&this.container.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){this.container&&this.container.removeEventListener("keydown",this.onKeyDown)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,"function"==typeof t?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){if(!this.container)return null;const{onlyBrowserTabstops:t}=this.props,n=(t?Yl.focus.tabbable:Yl.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){return e.indexOf(t)}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=rT,stopNavigationEvents:i}=this.props,a=r(e);if(void 0!==a&&i){e.stopImmediatePropagation();const t=e.target?.getAttribute("role");!!t&&oT.includes(t)&&e.preventDefault()}if(!a)return;const s=e.target?.ownerDocument?.activeElement;if(!s)return;const l=t(s);if(!l)return;const{index:c,focusables:u}=l,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(c,u.length,a):c+a;d>=0&&d<u.length&&(u[d].focus(),o(d,u[d]),"Tab"===e.code&&e.preventDefault())}render(){const{children:e,stopNavigationEvents:t,eventToOffset:n,onNavigate:r,onKeyDown:o,cycle:i,onlyBrowserTabstops:s,forwardedRef:l,...c}=this.props;return(0,a.createElement)("div",{ref:this.bindContainer,...c},e)}}const aT=(e,t)=>(0,a.createElement)(iT,{...e,forwardedRef:t});aT.displayName="NavigableContainer";var sT=(0,a.forwardRef)(aT);const lT=(0,a.forwardRef)((function({role:e="menu",orientation:t="vertical",...n},r){return(0,a.createElement)(sT,{ref:r,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:e,"aria-orientation":"presentation"===e||"vertical"!==t&&"horizontal"!==t?void 0:t,eventToOffset:e=>{const{code:n}=e;let r=["ArrowDown"],o=["ArrowUp"];return"horizontal"===t&&(r=["ArrowRight"],o=["ArrowLeft"]),"both"===t&&(r=["ArrowRight","ArrowDown"],o=["ArrowLeft","ArrowUp"]),r.includes(n)?1:o.includes(n)?-1:["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(n)?0:void 0},...n})}));var cT=lT;function uT(e={},t={}){const n={...e,...t};return t.className&&e.className&&(n.className=l()(t.className,e.className)),n}function dT(e){return"function"==typeof e}const fT=Qu((function(e){const{children:t,className:n,controls:r,icon:o=nT,label:i,popoverProps:s,toggleProps:c,menuProps:u,disableOpenOnArrowDown:d=!1,text:f,noIcons:p,variant:m}=Zu(e,"DropdownMenu");if(!r?.length&&!dT(t))return null;let h;r?.length&&(h=r,Array.isArray(h[0])||(h=[r]));const g=uT({className:"components-dropdown-menu__popover",variant:m},s);return(0,a.createElement)(by,{className:n,popoverProps:g,renderToggle:({isOpen:e,onToggle:t})=>{var n;const{as:r=bd,...s}=null!=c?c:{},u=uT({className:l()("components-dropdown-menu__toggle",{"is-opened":e})},s);return(0,a.createElement)(r,{...u,icon:o,onClick:e=>{t(),u.onClick&&u.onClick(e)},onKeyDown:n=>{(n=>{d||e||"ArrowDown"!==n.code||(n.preventDefault(),t())})(n),u.onKeyDown&&u.onKeyDown(n)},"aria-haspopup":"true","aria-expanded":e,label:i,text:f,showTooltip:null===(n=c?.showTooltip)||void 0===n||n},u.children)},renderContent:e=>{const n=uT({"aria-label":i,className:l()("components-dropdown-menu__menu",{"no-icons":p})},u);return(0,a.createElement)(cT,{...n,role:"menu"},dT(t)?t(e):null,h?.flatMap(((t,n)=>t.map(((t,r)=>(0,a.createElement)(bd,{key:[n,r].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:l()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title))))))}})}),"DropdownMenu");var pT=fT;const mT=fd(s_.Option,{target:"e5bw3229"})("width:",rh(6),";height:",rh(6),";pointer-events:none;"),hT=fd(qv,{target:"e5bw3228"})(ag,"{background:",Bp.gray[100],";border-radius:",zh.controlBorderRadius,";",lg,lg,lg,lg,"{height:",rh(8),";}",fg,fg,fg,"{border-color:transparent;box-shadow:none;}}"),gT=fd(md,{target:"e5bw3227"})("padding:3px 0 3px ",rh(3),";height:calc( 40px - ",zh.borderWidth," );border:1px solid ",zh.surfaceBorderColor,";border-bottom-color:transparent;&:first-of-type{border-top-left-radius:",zh.controlBorderRadius,";border-top-right-radius:",zh.controlBorderRadius,";}&:last-of-type{border-bottom-left-radius:",zh.controlBorderRadius,";border-bottom-right-radius:",zh.controlBorderRadius,";border-bottom-color:",zh.surfaceBorderColor,";}&.is-selected+&{border-top-color:transparent;}&.is-selected{border-color:",Bp.ui.theme,";}"),vT=fd("div",{target:"e5bw3226"})("line-height:",rh(8),";margin-left:",rh(2),";margin-right:",rh(2),";white-space:nowrap;overflow:hidden;",gT,":hover &{color:",Bp.ui.theme,";}"),bT=fd(u_,{target:"e5bw3225"})("text-transform:uppercase;line-height:",rh(6),";font-weight:500;&&&{font-size:11px;margin-bottom:0;}"),yT=fd(md,{target:"e5bw3224"})("height:",rh(6),";display:flex;"),wT=fd(lb,{target:"e5bw3223"})("margin-bottom:",rh(2),";"),xT=fd(md,{target:"e5bw3222"})({name:"u6wnko",styles:"&&&{.components-button.has-icon{min-width:0;padding:0;}}"}),ET=fd(bd,{target:"e5bw3221"})("&&{color:",Bp.ui.theme,";}"),_T=fd(bd,{target:"e5bw3220"})("&&{margin-top:",rh(1),";}"),CT="#000";function ST({value:e,onChange:t,label:n}){return(0,a.createElement)(hT,{label:n,hideLabelFromVision:!0,value:e,onChange:t})}function kT({isGradient:e,element:t,onChange:n,popoverProps:r,onClose:o=(()=>{})}){const i=(0,a.useMemo)((()=>({shift:!0,offset:20,placement:"left-start",...r,className:l()("components-palette-edit__popover",r?.className)})),[r]);return(0,a.createElement)($f,{...i,onClose:o},!e&&(0,a.createElement)(o_,{color:t.color,enableAlpha:!0,onChange:e=>{n({...t,color:e})}}),e&&(0,a.createElement)("div",{className:"components-palette-edit__popover-gradient-picker"},(0,a.createElement)(Xk,{__nextHasNoMargin:!0,__experimentalIsRenderedInSidebar:!0,value:t.gradient,onChange:e=>{n({...t,gradient:e})}})))}function TT({canOnlyChangeValues:e,element:t,onChange:n,isEditing:r,onStartEditing:o,onRemove:i,onStopEditing:s,popoverProps:l,slugPrefix:d,isGradient:f}){const p=(0,u.__experimentalUseFocusOutside)(s),m=f?t.gradient:t.color,[h,g]=(0,a.useState)(null),v=(0,a.useMemo)((()=>({...l,anchor:h})),[h,l]);return(0,a.createElement)(gT,{className:r?"is-selected":void 0,as:"div",onClick:o,ref:g,...r?{...p}:{style:{cursor:"pointer"}}},(0,a.createElement)(lb,{justify:"flex-start"},(0,a.createElement)(xh,null,(0,a.createElement)(mT,{style:{background:m,color:"transparent"}})),(0,a.createElement)(xh,null,r&&!e?(0,a.createElement)(ST,{label:f?(0,c.__)("Gradient name"):(0,c.__)("Color name"),value:t.name,onChange:e=>n({...t,name:e,slug:d+yc(null!=e?e:"")})}):(0,a.createElement)(vT,null,t.name)),r&&!e&&(0,a.createElement)(xh,null,(0,a.createElement)(_T,{isSmall:!0,icon:Ub,label:(0,c.__)("Remove color"),onClick:i}))),r&&(0,a.createElement)(kT,{isGradient:f,onChange:n,element:t,popoverProps:v}))}function RT(e,{slug:t,color:n,gradient:r}){return new RegExp(`^${e}color-([\\d]+)$`).test(t)&&(!!n&&n===CT||!!r&&r===Fk)}function PT({elements:e,onChange:t,editingElement:n,setEditingElement:r,canOnlyChangeValues:o,slugPrefix:i,isGradient:s,popoverProps:l}){const c=(0,a.useRef)();(0,a.useEffect)((()=>{c.current=e}),[e]),(0,a.useEffect)((()=>()=>{if(c.current?.some((e=>RT(i,e)))){const e=c.current.filter((e=>!RT(i,e)));t(e.length?e:void 0)}}),[]);const d=(0,u.useDebounce)(t,100);return(0,a.createElement)(l_,{spacing:3},(0,a.createElement)(xk,{isRounded:!0},e.map(((c,u)=>(0,a.createElement)(TT,{isGradient:s,canOnlyChangeValues:o,key:u,element:c,onStartEditing:()=>{n!==u&&r(u)},onChange:t=>{d(e.map(((e,n)=>n===u?t:e)))},onRemove:()=>{r(null);const n=e.filter(((e,t)=>t!==u));t(n.length?n:void 0)},isEditing:u===n,onStopEditing:()=>{u===n&&r(null)},slugPrefix:i,popoverProps:l})))))}const MT=[];var IT=function({gradients:e,colors:t=MT,onChange:n,paletteLabel:r,paletteLabelHeadingLevel:o=2,emptyMessage:i,canOnlyChangeValues:s,canReset:l,slugPrefix:d="",popoverProps:f}){const p=!!e,m=p?e:t,[h,g]=(0,a.useState)(!1),[v,b]=(0,a.useState)(null),y=h&&!!v&&m[v]&&!m[v].slug,w=m.length>0,x=(0,u.useDebounce)(n,100),E=(0,a.useCallback)(((e,t)=>{const n=void 0===t?void 0:m[t];n&&n[p?"gradient":"color"]===e?b(t):g(!0)}),[p,m]);return(0,a.createElement)(xT,null,(0,a.createElement)(wT,null,(0,a.createElement)(bT,{level:o},r),(0,a.createElement)(yT,null,w&&h&&(0,a.createElement)(ET,{isSmall:!0,onClick:()=>{g(!1),b(null)}},(0,c.__)("Done")),!s&&(0,a.createElement)(bd,{isSmall:!0,isPressed:y,icon:mh,label:p?(0,c.__)("Add gradient"):(0,c.__)("Add color"),onClick:()=>{const r=function(e,t){const n=new RegExp(`^${t}color-([\\d]+)$`),r=e.reduce(((e,t)=>{if("string"==typeof t?.slug){const r=t?.slug.match(n);if(r){const t=parseInt(r[1],10);if(t>=e)return t+1}}return e}),1);return(0,c.sprintf)((0,c.__)("Color %s"),r)}(m,d);n(e?[...e,{gradient:Fk,name:r,slug:d+yc(r)}]:[...t,{color:CT,name:r,slug:d+yc(r)}]),g(!0),b(m.length)}}),w&&(!h||!s||l)&&(0,a.createElement)(pT,{icon:ik,label:p?(0,c.__)("Gradient options"):(0,c.__)("Color options"),toggleProps:{isSmall:!0}},(({onClose:e})=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(cT,{role:"menu"},!h&&(0,a.createElement)(bd,{variant:"tertiary",onClick:()=>{g(!0),e()},className:"components-palette-edit__menu-button"},(0,c.__)("Show details")),!s&&(0,a.createElement)(bd,{variant:"tertiary",onClick:()=>{b(null),g(!1),n(),e()},className:"components-palette-edit__menu-button"},p?(0,c.__)("Remove all gradients"):(0,c.__)("Remove all colors")),l&&(0,a.createElement)(bd,{variant:"tertiary",onClick:()=>{b(null),n(),e()}},p?(0,c.__)("Reset gradient"):(0,c.__)("Reset colors")))))))),w&&(0,a.createElement)(a.Fragment,null,h&&(0,a.createElement)(PT,{canOnlyChangeValues:s,elements:m,onChange:n,editingElement:v,setEditingElement:b,slugPrefix:d,isGradient:p,popoverProps:f}),!h&&null!==v&&(0,a.createElement)(kT,{isGradient:p,onClose:()=>b(null),onChange:e=>{x(m.map(((t,n)=>n===v?e:t)))},element:m[null!=v?v:-1],popoverProps:f}),!h&&(p?(0,a.createElement)(tT,{__nextHasNoMargin:!0,gradients:e,onChange:E,clearable:!1,disableCustomGradients:!0}):(0,a.createElement)(y_,{colors:t,onChange:E,clearable:!1,disableCustomColors:!0}))),!w&&i)};const NT=({__next40pxDefaultSize:e})=>!e&&np("height:28px;padding-left:",rh(1),";padding-right:",rh(1),";",""),OT=fd(wh,{target:"evuatpg0"})("height:38px;padding-left:",rh(2),";padding-right:",rh(2),";",NT,";");const DT=(0,a.forwardRef)((function(e,t){const{value:n,isExpanded:r,instanceId:o,selectedSuggestionIndex:i,className:s,onChange:c,onFocus:u,onBlur:d,...f}=e,[p,m]=(0,a.useState)(!1),h=n?n.length+1:0;return(0,a.createElement)("input",{ref:t,id:`components-form-token-input-${o}`,type:"text",...f,value:n||"",onChange:e=>{c&&c({value:e.target.value})},onFocus:e=>{m(!0),u?.(e)},onBlur:e=>{m(!1),d?.(e)},size:h,className:l()(s,"components-form-token-field__input"),autoComplete:"off",role:"combobox","aria-expanded":r,"aria-autocomplete":"list","aria-owns":r?`components-form-token-suggestions-${o}`:void 0,"aria-activedescendant":p&&-1!==i&&r?`components-form-token-suggestions-${o}-${i}`:void 0,"aria-describedby":`components-form-token-suggestions-howto-${o}`})}));var AT=DT,LT=o(5425),zT=o.n(LT);const FT=e=>{e.preventDefault()};var BT=function({selectedIndex:e,scrollIntoView:t,match:n,onHover:r,onSelect:o,suggestions:i=[],displayTransform:s,instanceId:c,__experimentalRenderItem:d}){const[f,p]=(0,a.useState)(!1),m=(0,u.useRefEffect)((n=>{let r;return e>-1&&t&&n.children[e]&&(p(!0),zT()(n.children[e],n,{onlyScrollIfNeeded:!0}),r=requestAnimationFrame((()=>{p(!1)}))),()=>{void 0!==r&&cancelAnimationFrame(r)}}),[e,t]),h=e=>()=>{f||r?.(e)},g=e=>()=>{o?.(e)};return(0,a.createElement)("ul",{ref:m,className:"components-form-token-field__suggestions-list",id:`components-form-token-suggestions-${c}`,role:"listbox"},i.map(((t,r)=>{const o=(e=>{const t=s(n).toLocaleLowerCase();if(0===t.length)return null;const r=s(e),o=r.toLocaleLowerCase().indexOf(t);return{suggestionBeforeMatch:r.substring(0,o),suggestionMatch:r.substring(o,o+t.length),suggestionAfterMatch:r.substring(o+t.length)}})(t),i=l()("components-form-token-field__suggestion",{"is-selected":r===e});let u;return u="function"==typeof d?d({item:t}):o?(0,a.createElement)("span",{"aria-label":s(t)},o.suggestionBeforeMatch,(0,a.createElement)("strong",{className:"components-form-token-field__suggestion-match"},o.suggestionMatch),o.suggestionAfterMatch):s(t),(0,a.createElement)("li",{id:`components-form-token-suggestions-${c}-${r}`,role:"option",className:i,key:"object"==typeof t&&"value"in t?t?.value:s(t),onMouseDown:FT,onClick:g(t),onMouseEnter:h(t),"aria-selected":r===e},u)})))},jT=(0,u.createHigherOrderComponent)((e=>t=>{const[n,r]=(0,a.useState)(),o=(0,a.useCallback)((e=>r((()=>e?.handleFocusOutside?e.handleFocusOutside.bind(e):void 0))),[]);return(0,a.createElement)("div",{...(0,u.__experimentalUseFocusOutside)(n)},(0,a.createElement)(e,{ref:o,...t}))}),"withFocusOutside");function VT(e,t){const{__next36pxDefaultSize:n,__next40pxDefaultSize:r,...o}=e;return void 0!==n&&ql()("`__next36pxDefaultSize` prop in "+t,{alternative:"`__next40pxDefaultSize`",since:"6.3"}),{...o,__next40pxDefaultSize:null!=r?r:n}}const HT=()=>{},$T=jT(class extends a.Component{handleFocusOutside(e){this.props.onFocusOutside(e)}render(){return this.props.children}}),WT=(e,t)=>null===e?-1:t.indexOf(e);var UT=function e(t){var n;const{__nextHasNoMarginBottom:r=!1,__next40pxDefaultSize:o=!1,value:i,label:s,options:d,onChange:f,onFilterValueChange:p=HT,hideLabelFromVision:m,help:h,allowReset:g=!0,className:v,messages:b={selected:(0,c.__)("Item selected.")},__experimentalRenderItem:y}=VT(t,"wp.components.ComboboxControl"),[w,x]=ZE({value:i,onChange:f}),E=d.find((e=>e.value===w)),_=null!==(n=E?.label)&&void 0!==n?n:"",C=(0,u.useInstanceId)(e,"combobox-control"),[S,k]=(0,a.useState)(E||null),[T,R]=(0,a.useState)(!1),[P,M]=(0,a.useState)(!1),[I,N]=(0,a.useState)(""),O=(0,a.useRef)(null),D=(0,a.useMemo)((()=>{const e=[],t=[],n=Sb(I);return d.forEach((r=>{const o=Sb(r.label).indexOf(n);0===o?e.push(r):o>0&&t.push(r)})),e.concat(t)}),[I,d]),A=e=>{x(e.value),(0,_b.speak)(b.selected,"assertive"),k(e),N(""),R(!1)},L=(e=1)=>{let t=WT(S,D)+e;t<0?t=D.length-1:t>=D.length&&(t=0),k(D[t]),R(!0)};return(0,a.useEffect)((()=>{const e=D.length>0,t=WT(S,D)>0;e&&!t&&k(D[0])}),[D,S]),(0,a.useEffect)((()=>{const e=D.length>0;if(T){const t=e?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",D.length),D.length):(0,c.__)("No results.");(0,_b.speak)(t,"polite")}}),[D,T]),(0,a.createElement)($T,{onFocusOutside:()=>{R(!1)}},(0,a.createElement)(Uv,{__nextHasNoMarginBottom:r,className:l()(v,"components-combobox-control"),label:s,id:`components-form-token-input-${C}`,hideLabelFromVision:m,help:h},(0,a.createElement)("div",{className:"components-combobox-control__suggestions-container",tabIndex:-1,onKeyDown:e=>{let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.code){case"Enter":S&&(A(S),t=!0);break;case"ArrowUp":L(-1),t=!0;break;case"ArrowDown":L(1),t=!0;break;case"Escape":R(!1),k(null),t=!0}t&&e.preventDefault()}}},(0,a.createElement)(OT,{__next40pxDefaultSize:o},(0,a.createElement)(th,null,(0,a.createElement)(AT,{className:"components-combobox-control__input",instanceId:C,ref:O,value:T?I:_,onFocus:()=>{M(!0),R(!0),p(""),N("")},onBlur:()=>{M(!1)},isExpanded:T,selectedSuggestionIndex:WT(S,D),onChange:e=>{const t=e.value;N(t),p(t),P&&R(!0)}})),g&&(0,a.createElement)(xh,null,(0,a.createElement)(bd,{className:"components-combobox-control__reset",icon:Wb,disabled:!w,onClick:()=>{x(null),O.current?.focus()},label:(0,c.__)("Reset")}))),T&&(0,a.createElement)(BT,{instanceId:C,match:{label:I,value:""},displayTransform:e=>e.label,suggestions:D,selectedIndex:WT(S,D),onHover:k,onSelect:A,scrollIntoView:!0,__experimentalRenderItem:y}))))};const GT=new Set(["alert","status","log","marquee","timer"]);let KT=[],qT=!1;function YT(e){if(qT)return;Array.from(document.body.children).forEach((t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||t&>.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),KT.push(t))})),qT=!0}let XT=0;const ZT=(0,a.forwardRef)((function(e,t){const{bodyOpenClassName:n="modal-open",role:r="dialog",title:o=null,focusOnMount:i=!0,shouldCloseOnEsc:s=!0,shouldCloseOnClickOutside:d=!0,isDismissible:f=!0,aria:p={labelledby:void 0,describedby:void 0},onRequestClose:m,icon:h,closeButtonLabel:g,children:v,style:b,overlayClassName:y,className:w,contentLabel:x,onKeyDown:E,isFullScreen:_=!1,__experimentalHideHeader:C=!1}=e,S=(0,a.useRef)(),k=(0,u.useInstanceId)(ZT),T=o?`components-modal-header-${k}`:p.labelledby,R=(0,u.useFocusOnMount)(i),P=(0,u.useConstrainedTabbing)(),M=(0,u.useFocusReturn)(),I=(0,u.__experimentalUseFocusOutside)(m),N=(0,a.useRef)(null),O=(0,a.useRef)(null),[D,A]=(0,a.useState)(!1),[L,z]=(0,a.useState)(!1),F=(0,a.useCallback)((()=>{if(!N.current)return;const e=(0,Yl.getScrollContainer)(N.current);N.current===e?z(!0):z(!1)}),[N]);(0,a.useEffect)((()=>(XT++,1===XT&&(YT(S.current),document.body.classList.add(n)),()=>{XT--,0===XT&&(document.body.classList.remove(n),qT&&(KT.forEach((e=>{e.removeAttribute("aria-hidden")})),KT=[],qT=!1))})),[n]),(0,a.useLayoutEffect)((()=>{if(!window.ResizeObserver||!O.current)return;const e=new ResizeObserver(F);return e.observe(O.current),F(),()=>{e.disconnect()}}),[F,O]);const B=(0,a.useCallback)((e=>{var t;const n=null!==(t=e?.currentTarget?.scrollTop)&&void 0!==t?t:-1;!D&&n>0?A(!0):D&&n<=0&&A(!1)}),[D]);return(0,a.createPortal)((0,a.createElement)("div",{ref:(0,u.useMergeRefs)([S,t]),className:l()("components-modal__screen-overlay",y),onKeyDown:function(e){e.nativeEvent.isComposing||229===e.keyCode||s&&"Escape"===e.code&&!e.defaultPrevented&&(e.preventDefault(),m&&m(e))}},(0,a.createElement)(yf,{document:document},(0,a.createElement)("div",{className:l()("components-modal__frame",w,{"is-full-screen":_}),style:b,ref:(0,u.useMergeRefs)([P,M,R]),role:r,"aria-label":x,"aria-labelledby":x?void 0:T,"aria-describedby":p.describedby,tabIndex:-1,...d?I:{},onKeyDown:E},(0,a.createElement)("div",{className:l()("components-modal__content",{"hide-header":C,"is-scrollable":L,"has-scrolled-content":D}),role:"document",onScroll:B,ref:N,"aria-label":L?(0,c.__)("Scrollable section"):void 0,tabIndex:L?0:void 0},!C&&(0,a.createElement)("div",{className:"components-modal__header"},(0,a.createElement)("div",{className:"components-modal__header-heading-container"},h&&(0,a.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},h),o&&(0,a.createElement)("h1",{id:T,className:"components-modal__header-heading"},o)),f&&(0,a.createElement)(bd,{onClick:m,icon:Gl,label:g||(0,c.__)("Close")})),(0,a.createElement)("div",{ref:O},v))))),document.body)}));var JT=ZT;const QT={name:"7g5ii0",styles:"&&{z-index:1000001;}"};var eR=Ju((function(e,t){const{isOpen:n,onConfirm:r,onCancel:o,children:i,confirmButtonText:s,cancelButtonText:l,...u}=Zu(e,"ConfirmDialog"),d=Xu()(QT),f=(0,a.useRef)(),p=(0,a.useRef)(),[m,h]=(0,a.useState)(),[g,v]=(0,a.useState)();(0,a.useEffect)((()=>{const e=void 0!==n;h(!e||n),v(!e)}),[n]);const b=(0,a.useCallback)((e=>t=>{e?.(t),g&&h(!1)}),[g,h]),y=(0,a.useCallback)((e=>{e.target===f.current||e.target===p.current||"Enter"!==e.key||b(r)(e)}),[b,r]),w=null!=l?l:(0,c.__)("Cancel"),x=null!=s?s:(0,c.__)("OK");return(0,a.createElement)(a.Fragment,null,m&&(0,a.createElement)(JT,{onRequestClose:b(o),onKeyDown:y,closeButtonLabel:w,isDismissible:!0,ref:t,overlayClassName:d,__experimentalHideHeader:!0,...u},(0,a.createElement)(l_,{spacing:8},(0,a.createElement)(eg,null,i),(0,a.createElement)(wh,{direction:"row",justify:"flex-end"},(0,a.createElement)(bd,{ref:f,variant:"tertiary",onClick:b(o)},w),(0,a.createElement)(bd,{ref:p,variant:"primary",onClick:b(r)},x)))))}),"ConfirmDialog"),tR=o(2652),nR=o.n(tR);o(2797);function rR(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function oR(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function iR(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return oR(n.overflowY,t)||oR(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function aR(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}let sR=0;function lR(){}function cR(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,s=t.skipOverflowHiddenElements,l="function"==typeof a?a:function(e){return e!==a};if(!rR(e))throw new TypeError("Invalid target");for(var c,u,d=document.scrollingElement||document.documentElement,f=[],p=e;rR(p)&&l(p);){if((p=null==(u=(c=p).parentElement)?c.getRootNode().host||null:u)===d){f.push(p);break}null!=p&&p===document.body&&iR(p)&&!iR(document.documentElement)||null!=p&&iR(p,s)&&f.push(p)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,v=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),y=b.height,w=b.width,x=b.top,E=b.right,_=b.bottom,C=b.left,S="start"===o||"nearest"===o?x:"end"===o?_:x+y/2,k="center"===i?C+w/2:"end"===i?E:C,T=[],R=0;R<f.length;R++){var P=f[R],M=P.getBoundingClientRect(),I=M.height,N=M.width,O=M.top,D=M.right,A=M.bottom,L=M.left;if("if-needed"===r&&x>=0&&C>=0&&_<=h&&E<=m&&x>=O&&_<=A&&C>=L&&E<=D)return T;var z=getComputedStyle(P),F=parseInt(z.borderLeftWidth,10),B=parseInt(z.borderTopWidth,10),j=parseInt(z.borderRightWidth,10),V=parseInt(z.borderBottomWidth,10),H=0,$=0,W="offsetWidth"in P?P.offsetWidth-P.clientWidth-F-j:0,U="offsetHeight"in P?P.offsetHeight-P.clientHeight-B-V:0,G="offsetWidth"in P?0===P.offsetWidth?0:N/P.offsetWidth:0,K="offsetHeight"in P?0===P.offsetHeight?0:I/P.offsetHeight:0;if(d===P)H="start"===o?S:"end"===o?S-h:"nearest"===o?aR(v,v+h,h,B,V,v+S,v+S+y,y):S-h/2,$="start"===i?k:"center"===i?k-m/2:"end"===i?k-m:aR(g,g+m,m,F,j,g+k,g+k+w,w),H=Math.max(0,H+v),$=Math.max(0,$+g);else{H="start"===o?S-O-B:"end"===o?S-A+V+U:"nearest"===o?aR(O,A,I,B,V+U,S,S+y,y):S-(O+I/2)+U/2,$="start"===i?k-L-F:"center"===i?k-(L+N/2)+W/2:"end"===i?k-D+j+W:aR(L,D,N,F,j+W,k,k+w,w);var q=P.scrollLeft,Y=P.scrollTop;S+=Y-(H=Math.max(0,Math.min(Y+H/K,P.scrollHeight-I/K+U))),k+=q-($=Math.max(0,Math.min(q+$/G,P.scrollWidth-N/G+W)))}T.push({el:P,top:H,left:$})}return T}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function uR(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function dR(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((()=>{n=null,e(...i)}),t)}return o.cancel=r,o}function fR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((t=>(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function pR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function mR(){return String(sR++)}function hR(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function gR(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=vR(t,r)?t[r]:e[r],n)),{})}function vR(e,t){return void 0!==e[t]}function bR(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function yR(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);let a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);const s=wR(e,a,n,r,o);return-1===s?t>=n?-1:t:s}function wR(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!r(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?wR(1,0,n,r,!1):wR(-1,n-1,n,r,!1):-1}function xR(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(uR(t,e,n)||r&&uR(t,n.document.activeElement,n))))}const ER=dR((e=>{CR(e).textContent=""}),500);function _R(e,t){const n=CR(t);e&&(n.textContent=e,ER(t))}function CR(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const SR={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function kR(e,t,n){const{props:r,type:o}=e,i={};Object.keys(t).forEach((r=>{!function(e,t,n,r){const{props:o,type:i}=t,a=`on${NR(e)}Change`;o[a]&&void 0!==r[e]&&r[e]!==n[e]&&o[a]({type:i,...r})}(r,e,t,n),n[r]!==t[r]&&(i[r]=n[r])})),r.onStateChange&&Object.keys(i).length&&r.onStateChange({type:o,...i})}const TR=dR(((e,t)=>{_R(e(),t)}),200),RR="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?v.useLayoutEffect:v.useEffect;function PR(e){let{id:t=`downshift-${mR()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:i,inputId:a}=e;const s=(0,v.useRef)({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:o||(e=>`${t}-item-${e}`),toggleButtonId:i||`${t}-toggle-button`,inputId:a||`${t}-input`});return s.current}function MR(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}function IR(e){return/^\S{1}$/.test(e)}function NR(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function OR(e){const t=(0,v.useRef)(e);return t.current=e,t}function DR(e,t,n){const r=(0,v.useRef)(),o=(0,v.useRef)(),i=(0,v.useCallback)(((t,n)=>{o.current=n,t=gR(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[a,s]=(0,v.useReducer)(i,t),l=OR(n),c=(0,v.useCallback)((e=>s({props:l.current,...e})),[l]),u=o.current;return(0,v.useEffect)((()=>{u&&r.current&&r.current!==a&&kR(u,gR(r.current,u.props),a),r.current=a}),[a,n,u]),[a,c]}function AR(e,t,n){const[r,o]=DR(e,t,n);return[gR(r,n),o]}const LR={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:cR,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function zR(e,t,n){void 0===n&&(n=SR);const r=e[`default${NR(t)}`];return void 0!==r?r:n[t]}function FR(e,t,n){void 0===n&&(n=SR);const r=e[t];if(void 0!==r)return r;const o=e[`initial${NR(t)}`];return void 0!==o?o:zR(e,t,n)}function BR(e){const t=FR(e,"selectedItem"),n=FR(e,"isOpen"),r=FR(e,"highlightedIndex"),o=FR(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}function jR(e,t,n,r){const{items:o,initialHighlightedIndex:i,defaultHighlightedIndex:a}=e,{selectedItem:s,highlightedIndex:l}=t;return 0===o.length?-1:void 0!==i&&l===i?i:void 0!==a?a:s?0===n?o.indexOf(s):yR(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function VR(e,t,n,r){const o=(0,v.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,v.useEffect)((()=>{const i=()=>{o.current.isMouseDown=!0},a=i=>{o.current.isMouseDown=!1,e&&!xR(i.target,t.map((e=>e.current)),n)&&r()},s=()=>{o.current.isTouchMove=!1},l=()=>{o.current.isTouchMove=!0},c=i=>{!e||o.current.isTouchMove||xR(i.target,t.map((e=>e.current)),n,!1)||r()};return n.addEventListener("mousedown",i),n.addEventListener("mouseup",a),n.addEventListener("touchstart",s),n.addEventListener("touchmove",l),n.addEventListener("touchend",c),function(){n.removeEventListener("mousedown",i),n.removeEventListener("mouseup",a),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",l),n.removeEventListener("touchend",c)}}),[e,n]),o}let HR=()=>lR;function $R(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:i,environment:a,...s}=n;(0,v.useEffect)((()=>{r||TR((()=>e({highlightedIndex:o,highlightedItem:i[o],resultCount:i.length,...s})),a.document)}),t)}function WR(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:i,scrollIntoView:a}=e;const s=(0,v.useRef)(!0);return RR((()=>{t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:a(o(t),i))}),[t]),s}let UR=lR;function GR(e,t,n){const{type:r,props:o}=t;let i;switch(r){case n.ItemMouseMove:i={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:i={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:i={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:jR(o,e,0)};break;case n.FunctionOpenMenu:i={isOpen:!0,highlightedIndex:jR(o,e,0)};break;case n.FunctionCloseMenu:i={isOpen:!1};break;case n.FunctionSetHighlightedIndex:i={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:i={inputValue:t.inputValue};break;case n.FunctionReset:i={highlightedIndex:zR(o,"highlightedIndex"),isOpen:zR(o,"isOpen"),selectedItem:zR(o,"selectedItem"),inputValue:zR(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...i}}function KR(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,i=e.getItemNodeFromIndex,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+1)%r.length,c=r[l];if(void 0!==c&&o(c).toLowerCase().startsWith(a)){var u=i(l);if(!(null==u?void 0:u.hasAttribute("disabled")))return l}}return n}nR().array.isRequired,nR().func,nR().func,nR().func,nR().bool,nR().number,nR().number,nR().number,nR().bool,nR().bool,nR().bool,nR().any,nR().any,nR().any,nR().string,nR().string,nR().string,nR().func,nR().string,nR().func,nR().func,nR().func,nR().func,nR().func,nR().shape({addEventListener:nR().func,removeEventListener:nR().func,document:nR().shape({getElementById:nR().func,activeElement:nR().any,body:nR().any})});var qR=dc(dc({},LR),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),YR=lR;const XR=0,ZR=1,JR=2,QR=3,eP=4,tP=5,nP=6,rP=7,oP=8,iP=9,aP=10,sP=11,lP=12,cP=13,uP=14,dP=15,fP=16,pP=17,mP=18,hP=19,gP=20,vP=21,bP=22;var yP=Object.freeze({__proto__:null,MenuKeyDownArrowDown:XR,MenuKeyDownArrowUp:ZR,MenuKeyDownEscape:JR,MenuKeyDownHome:QR,MenuKeyDownEnd:eP,MenuKeyDownEnter:tP,MenuKeyDownSpaceButton:nP,MenuKeyDownCharacter:rP,MenuBlur:oP,MenuMouseLeave:iP,ItemMouseMove:aP,ItemClick:sP,ToggleButtonClick:lP,ToggleButtonKeyDownArrowDown:cP,ToggleButtonKeyDownArrowUp:uP,ToggleButtonKeyDownCharacter:dP,FunctionToggleMenu:fP,FunctionOpenMenu:pP,FunctionCloseMenu:mP,FunctionSetHighlightedIndex:hP,FunctionSelectItem:gP,FunctionSetInputValue:vP,FunctionReset:bP});function wP(e,t){const{type:n,props:r,shiftKey:o}=t;let i;switch(n){case sP:i={isOpen:zR(r,"isOpen"),highlightedIndex:zR(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case dP:{const n=t.key,o=`${e.inputValue}${n}`,a=KR({keysSoFar:o,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{selectedItem:r.items[a]}}}break;case cP:i={highlightedIndex:jR(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case uP:i={highlightedIndex:jR(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case tP:case nP:i={isOpen:zR(r,"isOpen"),highlightedIndex:zR(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case QR:i={highlightedIndex:wR(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case eP:i={highlightedIndex:wR(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case JR:case oP:i={isOpen:!1,highlightedIndex:-1};break;case rP:{const n=t.key,o=`${e.inputValue}${n}`,a=KR({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});i={inputValue:o,...a>=0&&{highlightedIndex:a}}}break;case XR:i={highlightedIndex:yR(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case ZR:i={highlightedIndex:yR(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case gP:i={selectedItem:t.selectedItem};break;default:return GR(e,t,yP)}return{...e,...i}}function xP(e){void 0===e&&(e={}),YR(e,xP);const t={...qR,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:i,defaultIsOpen:a,itemToString:s,getA11ySelectionMessage:l,getA11yStatusMessage:c}=t,u=BR(t),[d,f]=AR(wP,u,t),{isOpen:p,highlightedIndex:m,selectedItem:h,inputValue:g}=d,b=(0,v.useRef)(null),y=(0,v.useRef)(null),w=(0,v.useRef)({}),x=(0,v.useRef)(!0),E=(0,v.useRef)(null),_=PR(t),C=(0,v.useRef)(),S=(0,v.useRef)(!0),k=OR({state:d,props:t}),T=(0,v.useCallback)((e=>w.current[_.getItemId(e)]),[_]);$R(c,[p,m,g,n],{isInitialMount:S.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d}),$R(l,[h],{isInitialMount:S.current,previousResultCount:C.current,items:n,environment:o,itemToString:s,...d});const R=WR({menuElement:y.current,highlightedIndex:m,isOpen:p,itemRefs:w,scrollIntoView:r,getItemNodeFromIndex:T});(0,v.useEffect)((()=>(E.current=dR((e=>{e({type:vP,inputValue:""})}),500),()=>{E.current.cancel()})),[]),(0,v.useEffect)((()=>{g&&E.current(f)}),[f,g]),UR({isInitialMount:S.current,props:t,state:d}),(0,v.useEffect)((()=>{S.current?(i||a||p)&&y.current&&y.current.focus():p?y.current&&y.current.focus():o.document.activeElement===y.current&&b.current&&(x.current=!1,b.current.focus())}),[p]),(0,v.useEffect)((()=>{S.current||(C.current=n.length)}));const P=VR(p,[y,b],o,(()=>{f({type:oP})})),M=HR("getMenuProps","getToggleButtonProps");(0,v.useEffect)((()=>{S.current=!1}),[]),(0,v.useEffect)((()=>{p||(w.current={})}),[p]);const I=(0,v.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:cP,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:uP,getItemNodeFromIndex:T,shiftKey:e.shiftKey})}})),[f,T]),N=(0,v.useMemo)((()=>({ArrowDown(e){e.preventDefault(),f({type:XR,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),f({type:ZR,getItemNodeFromIndex:T,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),f({type:QR,getItemNodeFromIndex:T})},End(e){e.preventDefault(),f({type:eP,getItemNodeFromIndex:T})},Escape(){f({type:JR})},Enter(e){e.preventDefault(),f({type:tP})}," "(e){e.preventDefault(),f({type:nP})}})),[f,T]),O=(0,v.useCallback)((()=>{f({type:fP})}),[f]),D=(0,v.useCallback)((()=>{f({type:mP})}),[f]),A=(0,v.useCallback)((()=>{f({type:pP})}),[f]),L=(0,v.useCallback)((e=>{f({type:hP,highlightedIndex:e})}),[f]),z=(0,v.useCallback)((e=>{f({type:gP,selectedItem:e})}),[f]),F=(0,v.useCallback)((()=>{f({type:bP})}),[f]),B=(0,v.useCallback)((e=>{f({type:vP,inputValue:e})}),[f]),j=(0,v.useCallback)((e=>({id:_.labelId,htmlFor:_.toggleButtonId,...e})),[_]),V=(0,v.useCallback)((function(e,t){let{onMouseLeave:n,refKey:r="ref",onKeyDown:o,onBlur:i,ref:a,...s}=void 0===e?{}:e,{suppressRefError:l=!1}=void 0===t?{}:t;const c=k.current.state;return M("getMenuProps",l,r,y),{[r]:pR(a,(e=>{y.current=e})),id:_.menuId,role:"listbox","aria-labelledby":_.labelId,tabIndex:-1,...c.isOpen&&c.highlightedIndex>-1&&{"aria-activedescendant":_.getItemId(c.highlightedIndex)},onMouseLeave:fR(n,(()=>{f({type:iP})})),onKeyDown:fR(o,(e=>{const t=bR(e);t&&N[t]?N[t](e):IR(t)&&f({type:rP,key:t,getItemNodeFromIndex:T})})),onBlur:fR(i,(()=>{if(!1===x.current)return void(x.current=!0);!P.current.isMouseDown&&f({type:oP})})),...s}}),[f,k,N,P,M,_,T]),H=(0,v.useCallback)((function(e,t){let{onClick:n,onKeyDown:r,refKey:o="ref",ref:i,...a}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===t?{}:t;const l=()=>{f({type:lP})},c=e=>{const t=bR(e);t&&I[t]?I[t](e):IR(t)&&f({type:dP,key:t,getItemNodeFromIndex:T})},u={[o]:pR(i,(e=>{b.current=e})),id:_.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":k.current.state.isOpen,"aria-labelledby":`${_.labelId} ${_.toggleButtonId}`,...a};return a.disabled||(u.onClick=fR(n,l),u.onKeyDown=fR(r,c)),M("getToggleButtonProps",s,o,b),u}),[f,k,I,M,_,T]),$=(0,v.useCallback)((function(e){let{item:t,index:n,onMouseMove:r,onClick:o,refKey:i="ref",ref:a,disabled:s,...l}=void 0===e?{}:e;const{state:c,props:u}=k.current,d=()=>{f({type:sP,index:n})},p=MR(n,t,u.items);if(p<0)throw new Error("Pass either item or item index in getItemProps!");const m={disabled:s,role:"option","aria-selected":`${p===c.highlightedIndex}`,id:_.getItemId(p),[i]:pR(a,(e=>{e&&(w.current[_.getItemId(p)]=e)})),...l};return s||(m.onClick=fR(o,d)),m.onMouseMove=fR(r,(()=>{n!==c.highlightedIndex&&(R.current=!1,f({type:aP,index:n,disabled:s}))})),m}),[f,k,R,_]);return{getToggleButtonProps:H,getLabelProps:j,getMenuProps:V,getItemProps:$,toggleMenu:O,openMenu:A,closeMenu:D,setHighlightedIndex:L,selectItem:z,reset:F,setInputValue:B,highlightedIndex:m,isOpen:p,selectedItem:h,inputValue:g}}xP.stateChangeTypes=yP;nR().array.isRequired,nR().func,nR().func,nR().func,nR().bool,nR().number,nR().number,nR().number,nR().bool,nR().bool,nR().bool,nR().any,nR().any,nR().any,nR().string,nR().string,nR().string,nR().string,nR().string,nR().string,nR().func,nR().string,nR().string,nR().func,nR().func,nR().func,nR().func,nR().func,nR().func,nR().shape({addEventListener:nR().func,removeEventListener:nR().func,document:nR().shape({getElementById:nR().func,activeElement:nR().any,body:nR().any})});nR().array,nR().array,nR().array,nR().func,nR().func,nR().func,nR().number,nR().number,nR().number,nR().func,nR().func,nR().string,nR().string,nR().shape({addEventListener:nR().func,removeEventListener:nR().func,document:nR().shape({getElementById:nR().func,activeElement:nR().any,body:nR().any})});const EP=e=>e.__nextUnconstrainedWidth?"":np(ag,"{min-width:130px;}",""),_P=fd(wg,{target:"eswuck60"})(EP,";"),CP=e=>e?.name,SP=({selectedItem:e},{type:t,changes:n,props:{items:r}})=>{switch(t){case xP.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:r[e?Math.min(r.indexOf(e)+1,r.length-1):0]};case xP.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:r[e?Math.max(r.indexOf(e)-1,0):r.length-1]};default:return n}};function kP(e){const{__next36pxDefaultSize:t=!1,__nextUnconstrainedWidth:n=!1,className:r,hideLabelFromVision:o,label:i,describedBy:s,options:u,onChange:d,size:f="default",value:p,onMouseOver:m,onMouseOut:h,onFocus:g,onBlur:v,__experimentalShowSelectedHint:b=!1}=e,{getLabelProps:y,getToggleButtonProps:w,getMenuProps:x,getItemProps:E,isOpen:_,highlightedIndex:C,selectedItem:S}=xP({initialSelectedItem:u[0],items:u,itemToString:CP,onSelectedItemChange:d,...null!=p?{selectedItem:p}:void 0,stateReducer:SP}),[k,T]=(0,a.useState)(!1);n||ql()("Constrained width styles for wp.components.CustomSelectControl",{since:"6.1",version:"6.4",hint:"Set the `__nextUnconstrainedWidth` prop to true to start opting into the new styles, which will become the default in a future version"});const R=x({className:"components-custom-select-control__menu","aria-hidden":!_}),P=(0,a.useCallback)((e=>{e.stopPropagation(),R?.onKeyDown?.(e)}),[R]);return R["aria-activedescendant"]?.startsWith("downshift-null")&&delete R["aria-activedescendant"],(0,a.createElement)("div",{className:l()("components-custom-select-control",r)},o?(0,a.createElement)(hd,{as:"label",...y()},i):(0,a.createElement)(jv,{...y({className:"components-custom-select-control__label"})},i),(0,a.createElement)(_P,{__next36pxDefaultSize:t,__nextUnconstrainedWidth:n,isFocused:_||k,__unstableInputWidth:n?void 0:"auto",labelPosition:n?void 0:"top",size:f,suffix:(0,a.createElement)(Sy,null)},(0,a.createElement)(wy,{onMouseOver:m,onMouseOut:h,as:"button",onFocus:function(e){T(!0),g?.(e)},onBlur:function(e){T(!1),v?.(e)},selectSize:f,__next36pxDefaultSize:t,...w({"aria-label":i,"aria-labelledby":void 0,className:"components-custom-select-control__button",describedBy:s||(S?(0,c.sprintf)((0,c.__)("Currently selected: %s"),S.name):(0,c.__)("No selection"))})},CP(S),b&&S.__experimentalHint&&(0,a.createElement)("span",{className:"components-custom-select-control__hint"},S.__experimentalHint))),(0,a.createElement)("ul",{...R,onKeyDown:P},_&&u.map(((e,n)=>(0,a.createElement)("li",{...E({item:e,index:n,key:e.key,className:l()(e.className,"components-custom-select-control__item",{"is-highlighted":n===C,"has-hint":!!e.__experimentalHint,"is-next-36px-default-size":t}),style:e.style})},e.name,e.__experimentalHint&&(0,a.createElement)("span",{className:"components-custom-select-control__item-hint"},e.__experimentalHint),e===S&&(0,a.createElement)(_y,{icon:i_,className:"components-custom-select-control__item-icon"}))))))}function TP(e){return(0,a.createElement)(kP,{...e,__experimentalShowSelectedHint:!1})}function RP(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function PP(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function MP(e){PP(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function IP(e,t){PP(2,arguments);var n=MP(e),r=RP(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}var NP,OP,DP={};function AP(){return DP}function LP(e,t){var n,r,o,i,a,s,l,c;PP(1,arguments);var u=AP(),d=RP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=MP(e),p=f.getDay(),m=(p<d?7:0)+p-d;return f.setDate(f.getDate()-m),f.setHours(0,0,0,0),f}function zP(e,t){return PP(2,arguments),function(e,t){PP(2,arguments);var n=MP(e),r=RP(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(e,7*RP(t))}function FP(e,t){return PP(2,arguments),IP(e,12*RP(t))}function BP(e){PP(1,arguments);var t=MP(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function jP(e,t){var n;PP(1,arguments);var r=e||{},o=MP(r.start),i=MP(r.end).getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var a=[],s=o;s.setHours(0,0,0,0);var l=Number(null!==(n=null==t?void 0:t.step)&&void 0!==n?n:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)a.push(MP(s)),s.setDate(s.getDate()+l),s.setHours(0,0,0,0);return a}function VP(e){PP(1,arguments);var t=MP(e);return t.setDate(1),t.setHours(0,0,0,0),t}function HP(e,t){var n,r,o,i,a,s,l,c;PP(1,arguments);var u=AP(),d=RP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=MP(e),p=f.getDay(),m=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+m),f.setHours(23,59,59,999),f}function $P(e,t){PP(2,arguments);var n=MP(e),r=MP(t);return n.getTime()===r.getTime()}function WP(e,t){PP(2,arguments);var n=MP(e),r=RP(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){PP(1,arguments);var t=MP(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}function UP(){return function(e){PP(1,arguments);var t=MP(e);return t.setHours(0,0,0,0),t}(Date.now())}!function(e){e[e.JANUARY=0]="JANUARY",e[e.FEBRUARY=1]="FEBRUARY",e[e.MARCH=2]="MARCH",e[e.APRIL=3]="APRIL",e[e.MAY=4]="MAY",e[e.JUNE=5]="JUNE",e[e.JULY=6]="JULY",e[e.AUGUST=7]="AUGUST",e[e.SEPTEMBER=8]="SEPTEMBER",e[e.OCTOBER=9]="OCTOBER",e[e.NOVEMBER=10]="NOVEMBER",e[e.DECEMBER=11]="DECEMBER"}(NP||(NP={})),function(e){e[e.SUNDAY=0]="SUNDAY",e[e.MONDAY=1]="MONDAY",e[e.TUESDAY=2]="TUESDAY",e[e.WEDNESDAY=3]="WEDNESDAY",e[e.THURSDAY=4]="THURSDAY",e[e.FRIDAY=5]="FRIDAY",e[e.SATURDAY=6]="SATURDAY"}(OP||(OP={}));var GP=function(e,t,n){return($P(e,t)||function(e,t){PP(2,arguments);var n=MP(e),r=MP(t);return n.getTime()>r.getTime()}(e,t))&&($P(e,n)||function(e,t){PP(2,arguments);var n=MP(e),r=MP(t);return n.getTime()<r.getTime()}(e,n))},KP=function(e){return function(e,t){if(PP(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=MP(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=WP(n,t.month)),null!=t.date&&n.setDate(RP(t.date)),null!=t.hours&&n.setHours(RP(t.hours)),null!=t.minutes&&n.setMinutes(RP(t.minutes)),null!=t.seconds&&n.setSeconds(RP(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(RP(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0})},qP=function(e){var t=void 0===e?{}:e,n=t.weekStartsOn,r=void 0===n?OP.SUNDAY:n,o=t.viewing,i=void 0===o?new Date:o,a=t.selected,s=void 0===a?[]:a,l=t.numberOfMonths,c=void 0===l?1:l,u=(0,v.useState)(i),d=u[0],f=u[1],p=(0,v.useCallback)((function(){return f(UP())}),[f]),m=(0,v.useCallback)((function(e){return f((function(t){return WP(t,e)}))}),[]),h=(0,v.useCallback)((function(){return f((function(e){return function(e,t){return PP(2,arguments),IP(e,-RP(t))}(e,1)}))}),[]),g=(0,v.useCallback)((function(){return f((function(e){return IP(e,1)}))}),[]),b=(0,v.useCallback)((function(e){return f((function(t){return function(e,t){PP(2,arguments);var n=MP(e),r=RP(t);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(r),n)}(t,e)}))}),[]),y=(0,v.useCallback)((function(){return f((function(e){return function(e,t){return PP(2,arguments),FP(e,-RP(t))}(e,1)}))}),[]),w=(0,v.useCallback)((function(){return f((function(e){return FP(e,1)}))}),[]),x=(0,v.useState)(s.map(KP)),E=x[0],_=x[1],C=(0,v.useCallback)((function(e){return E.findIndex((function(t){return $P(t,e)}))>-1}),[E]),S=(0,v.useCallback)((function(e,t){_(t?Array.isArray(e)?e:[e]:function(t){return t.concat(Array.isArray(e)?e:[e])})}),[]),k=(0,v.useCallback)((function(e){return _((function(t){return Array.isArray(e)?t.filter((function(t){return!e.map((function(e){return e.getTime()})).includes(t.getTime())})):t.filter((function(t){return!$P(t,e)}))}))}),[]),T=(0,v.useCallback)((function(e,t){return C(e)?k(e):S(e,t)}),[k,C,S]),R=(0,v.useCallback)((function(e,t,n){_(n?jP({start:e,end:t}):function(n){return n.concat(jP({start:e,end:t}))})}),[]),P=(0,v.useCallback)((function(e,t){_((function(n){return n.filter((function(n){return!jP({start:e,end:t}).map((function(e){return e.getTime()})).includes(n.getTime())}))}))}),[]),M=(0,v.useMemo)((function(){return function(e){PP(1,arguments);var t=e||{},n=MP(t.start),r=MP(t.end).getTime(),o=[];if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var i=n;for(i.setHours(0,0,0,0),i.setDate(1);i.getTime()<=r;)o.push(MP(i)),i.setMonth(i.getMonth()+1);return o}({start:VP(d),end:BP(IP(d,c-1))}).map((function(e){return function(e,t){PP(1,arguments);var n=e||{},r=MP(n.start),o=MP(n.end),i=o.getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var a=LP(r,t),s=LP(o,t);a.setHours(15),s.setHours(15),i=s.getTime();for(var l=[],c=a;c.getTime()<=i;)c.setHours(0),l.push(MP(c)),(c=zP(c,1)).setHours(15);return l}({start:VP(e),end:BP(e)},{weekStartsOn:r}).map((function(e){return jP({start:LP(e,{weekStartsOn:r}),end:HP(e,{weekStartsOn:r})})}))}))}),[d,r,c]);return{clearTime:KP,inRange:GP,viewing:d,setViewing:f,viewToday:p,viewMonth:m,viewPreviousMonth:h,viewNextMonth:g,viewYear:b,viewPreviousYear:y,viewNextYear:w,selected:E,setSelected:_,clearSelected:function(){return _([])},isSelected:C,select:S,deselect:k,toggle:T,selectRange:R,deselectRange:P,calendar:M}};function YP(e){return YP="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},YP(e)}function XP(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function ZP(e){XP(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===YP(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function JP(e){XP(1,arguments);var t=ZP(e);return t.setHours(0,0,0,0),t}function QP(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function eM(e,t){XP(2,arguments);var n=ZP(e),r=QP(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function tM(e,t){return XP(2,arguments),eM(e,-QP(t))}function nM(e){if(XP(1,arguments),!function(e){return XP(1,arguments),e instanceof Date||"object"===YP(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=ZP(e);return!isNaN(Number(t))}function rM(e,t){return XP(2,arguments),function(e,t){XP(2,arguments);var n=ZP(e).getTime(),r=QP(t);return new Date(n+r)}(e,-QP(t))}function oM(e){XP(1,arguments);var t=ZP(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function iM(e){XP(1,arguments);var t=ZP(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=oM(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=oM(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function aM(e){XP(1,arguments);var t=ZP(e),n=oM(t).getTime()-function(e){XP(1,arguments);var t=iM(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),oM(n)}(t).getTime();return Math.round(n/6048e5)+1}var sM={};function lM(){return sM}function cM(e,t){var n,r,o,i,a,s,l,c;XP(1,arguments);var u=lM(),d=QP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ZP(e),p=f.getUTCDay(),m=(p<d?7:0)+p-d;return f.setUTCDate(f.getUTCDate()-m),f.setUTCHours(0,0,0,0),f}function uM(e,t){var n,r,o,i,a,s,l,c;XP(1,arguments);var u=ZP(e),d=u.getUTCFullYear(),f=lM(),p=QP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==r?r:null===(l=f.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,p),m.setUTCHours(0,0,0,0);var h=cM(m,t),g=new Date(0);g.setUTCFullYear(d,0,p),g.setUTCHours(0,0,0,0);var v=cM(g,t);return u.getTime()>=h.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function dM(e,t){XP(1,arguments);var n=ZP(e),r=cM(n,t).getTime()-function(e,t){var n,r,o,i,a,s,l,c;XP(1,arguments);var u=lM(),d=QP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:u.firstWeekContainsDate)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),f=uM(e,t),p=new Date(0);return p.setUTCFullYear(f,0,d),p.setUTCHours(0,0,0,0),cM(p,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function fM(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var pM={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return fM("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):fM(n+1,2)},d:function(e,t){return fM(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return fM(e.getUTCHours()%12||12,t.length)},H:function(e,t){return fM(e.getUTCHours(),t.length)},m:function(e,t){return fM(e.getUTCMinutes(),t.length)},s:function(e,t){return fM(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return fM(Math.floor(r*Math.pow(10,n-3)),t.length)}},mM=pM,hM="midnight",gM="noon",vM="morning",bM="afternoon",yM="evening",wM="night",xM={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return mM.y(e,t)},Y:function(e,t,n,r){var o=uM(e,r),i=o>0?o:1-o;return"YY"===t?fM(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):fM(i,t.length)},R:function(e,t){return fM(iM(e),t.length)},u:function(e,t){return fM(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return fM(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return fM(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return mM.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return fM(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=dM(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):fM(o,t.length)},I:function(e,t,n){var r=aM(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):fM(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):mM.d(e,t)},D:function(e,t,n){var r=function(e){XP(1,arguments);var t=ZP(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):fM(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return fM(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return fM(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return fM(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?gM:0===o?hM:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?yM:o>=12?bM:o>=4?vM:wM,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return mM.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):mM.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):fM(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):fM(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):mM.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):mM.s(e,t)},S:function(e,t){return mM.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return _M(o);case"XXXX":case"XX":return CM(o);default:return CM(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return _M(o);case"xxxx":case"xx":return CM(o);default:return CM(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+EM(o,":");default:return"GMT"+CM(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+EM(o,":");default:return"GMT"+CM(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return fM(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return fM((r._originalDate||e).getTime(),t.length)}};function EM(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+fM(i,2)}function _M(e,t){return e%60==0?(e>0?"-":"+")+fM(Math.abs(e)/60,2):CM(e,t)}function CM(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+fM(Math.floor(o/60),2)+n+fM(o%60,2)}var SM=xM,kM=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},TM=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},RM={p:TM,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return kM(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",kM(o,t)).replace("{{time}}",TM(i,t))}},PM=RM;var MM=["D","DD"],IM=["YY","YYYY"];function NM(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var OM={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},DM=function(e,t,n){var r,o=OM[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function AM(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var LM={date:AM({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:AM({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:AM({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},zM={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},FM=function(e,t,n,r){return zM[e]};function BM(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var jM={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:BM({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:BM({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:BM({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:BM({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:BM({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},VM=jM;function HM(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(c):c,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var $M,WM={ordinalNumber:($M={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match($M.matchPattern);if(!n)return null;var r=n[0],o=e.match($M.parsePattern);if(!o)return null;var i=$M.valueCallback?$M.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:HM({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:HM({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:HM({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:HM({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:HM({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},UM={code:"en-US",formatDistance:DM,formatLong:LM,formatRelative:FM,localize:VM,match:WM,options:{weekStartsOn:0,firstWeekContainsDate:1}},GM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,KM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qM=/^'([^]*?)'?$/,YM=/''/g,XM=/[a-zA-Z]/;function ZM(e,t,n){var r,o,i,a,s,l,c,u,d,f,p,m,h,g,v,b,y,w;XP(2,arguments);var x=String(t),E=lM(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:UM,C=QP(null!==(i=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(c=n.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==s?s:E.firstWeekContainsDate)&&void 0!==a?a:null===(d=E.locale)||void 0===d||null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=QP(null!==(p=null!==(m=null!==(h=null!==(g=null==n?void 0:n.weekStartsOn)&&void 0!==g?g:null==n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==h?h:E.weekStartsOn)&&void 0!==m?m:null===(y=E.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var k=ZP(e);if(!nM(k))throw new RangeError("Invalid time value");var T=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(k),R=rM(k,T),P={firstWeekContainsDate:C,weekStartsOn:S,locale:_,_originalDate:k},M=x.match(KM).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,PM[t])(e,_.formatLong):e})).join("").match(GM).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(qM);if(!t)return e;return t[1].replace(YM,"'")}(r);var i=SM[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!function(e){return-1!==IM.indexOf(e)}(r)||NM(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==MM.indexOf(e)}(r)||NM(r,t,String(e)),i(R,r,_.localize,P);if(o.match(XM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return M}function JM(e,t){XP(2,arguments);var n=ZP(e),r=ZP(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function QM(e,t){XP(2,arguments);var n=ZP(e),r=ZP(t);return n.getTime()===r.getTime()}function eI(e,t){XP(2,arguments);var n=JP(e),r=JP(t);return n.getTime()===r.getTime()}function tI(e,t){XP(2,arguments);var n=ZP(e),r=QP(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function nI(e,t){return XP(2,arguments),tI(e,7*QP(t))}var rI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"m14.5 6.5-1 1 3.7 3.7H4v1.6h13.2l-3.7 3.7 1 1 5.6-5.5z"}));var oI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})),iI=window.wp.date;const aI=fd("div",{target:"e105ri6r5"})({name:"1khn195",styles:"box-sizing:border-box"}),sI=fd(lb,{target:"e105ri6r4"})("margin-bottom:",rh(4),";"),lI=fd(u_,{target:"e105ri6r3"})("font-size:",zh.fontSize,";font-weight:",zh.fontWeight,";strong{font-weight:",zh.fontWeightHeading,";}"),cI=fd("div",{target:"e105ri6r2"})("column-gap:",rh(2),";display:grid;grid-template-columns:0.5fr repeat( 5, 1fr ) 0.5fr;justify-items:center;row-gap:",rh(2),";"),uI=fd("div",{target:"e105ri6r1"})("color:",Bp.gray[700],";font-size:",zh.fontSize,";line-height:",zh.fontLineHeightBase,";&:nth-of-type( 1 ){justify-self:start;}&:nth-of-type( 7 ){justify-self:end;}"),dI=fd(bd,{shouldForwardProp:e=>!["column","isSelected","isToday","hasEvents"].includes(e),target:"e105ri6r0"})("grid-column:",(e=>e.column),";position:relative;justify-content:center;",(e=>1===e.column&&"\n\t\tjustify-self: start;\n\t\t")," ",(e=>7===e.column&&"\n\t\tjustify-self: end;\n\t\t")," ",(e=>e.disabled&&"\n\t\tpointer-events: none;\n\t\t")," &&&{border-radius:100%;height:",rh(7),";width:",rh(7),";",(e=>e.isSelected&&`\n\t\t\tbackground: ${Bp.ui.theme};\n\t\t\tcolor: ${Bp.white};\n\t\t\t`)," ",(e=>!e.isSelected&&e.isToday&&`\n\t\t\tbackground: ${Bp.gray[200]};\n\t\t\t`),";}",(e=>e.hasEvents&&`\n\t\t::before {\n\t\t\tbackground: ${e.isSelected?Bp.white:Bp.ui.theme};\n\t\t\tborder-radius: 2px;\n\t\t\tbottom: 0;\n\t\t\tcontent: " ";\n\t\t\theight: 4px;\n\t\t\tleft: 50%;\n\t\t\tmargin-left: -2px;\n\t\t\tposition: absolute;\n\t\t\twidth: 4px;\n\t\t}\n\t\t`),";");function fI(e){return"string"==typeof e?new Date(e):ZP(e)}const pI="yyyy-MM-dd'T'HH:mm:ss";function mI({day:e,column:t,isSelected:n,isFocusable:r,isFocusAllowed:o,isToday:i,isInvalid:s,numEvents:l,onClick:c,onKeyDown:u}){const d=(0,a.useRef)();return(0,a.useEffect)((()=>{d.current&&r&&o&&d.current.focus()}),[r]),(0,a.createElement)(dI,{ref:d,className:"components-datetime__date__day",disabled:s,tabIndex:r?0:-1,"aria-label":hI(e,n,l),column:t,isSelected:n,isToday:i,hasEvents:l>0,onClick:c,onKeyDown:u},(0,iI.dateI18n)("j",e,-e.getTimezoneOffset()))}function hI(e,t,n){const{formats:r}=(0,iI.getSettings)(),o=(0,iI.dateI18n)(r.date,e,-e.getTimezoneOffset());return t&&n>0?(0,c.sprintf)((0,c._n)("%1$s. Selected. There is %2$d event","%1$s. Selected. There are %2$d events",n),o,n):t?(0,c.sprintf)((0,c.__)("%1$s. Selected"),o):n>0?(0,c.sprintf)((0,c._n)("%1$s. There is %2$d event","%1$s. There are %2$d events",n),o,n):o}var gI=function({currentDate:e,onChange:t,events:n=[],isInvalidDate:r,onMonthPreviewed:o,startOfWeek:i=0}){const s=e?fI(e):new Date,{calendar:l,viewing:u,setSelected:d,setViewing:f,isSelected:p,viewPreviousMonth:m,viewNextMonth:h}=qP({selected:[JP(s)],viewing:JP(s),weekStartsOn:i}),[g,v]=(0,a.useState)(JP(s)),[b,y]=(0,a.useState)(!1),[w,x]=(0,a.useState)(e);return e!==w&&(x(e),d([JP(s)]),f(JP(s)),v(JP(s))),(0,a.createElement)(aI,{className:"components-datetime__date",role:"application","aria-label":(0,c.__)("Calendar")},(0,a.createElement)(sI,null,(0,a.createElement)(bd,{icon:(0,c.isRTL)()?rI:oI,variant:"tertiary","aria-label":(0,c.__)("View previous month"),onClick:()=>{m(),v(tM(g,1)),o?.(ZM(tM(u,1),pI))}}),(0,a.createElement)(lI,{level:3},(0,a.createElement)("strong",null,(0,iI.dateI18n)("F",u,-u.getTimezoneOffset()))," ",(0,iI.dateI18n)("Y",u,-u.getTimezoneOffset())),(0,a.createElement)(bd,{icon:(0,c.isRTL)()?oI:rI,variant:"tertiary","aria-label":(0,c.__)("View next month"),onClick:()=>{h(),v(eM(g,1)),o?.(ZM(eM(u,1),pI))}})),(0,a.createElement)(cI,{onFocus:()=>y(!0),onBlur:()=>y(!1)},l[0][0].map((e=>(0,a.createElement)(uI,{key:e.toString()},(0,iI.dateI18n)("D",e,-e.getTimezoneOffset())))),l[0].map((e=>e.map(((e,i)=>JM(e,u)?(0,a.createElement)(mI,{key:e.toString(),day:e,column:i+1,isSelected:p(e),isFocusable:QM(e,g),isFocusAllowed:b,isToday:eI(e,new Date),isInvalid:!!r&&r(e),numEvents:n.filter((t=>eI(t.date,e))).length,onClick:()=>{d([e]),v(e),t?.(ZM(new Date(e.getFullYear(),e.getMonth(),e.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds()),pI))},onKeyDown:t=>{let n;"ArrowLeft"===t.key&&(n=tI(e,(0,c.isRTL)()?1:-1)),"ArrowRight"===t.key&&(n=tI(e,(0,c.isRTL)()?-1:1)),"ArrowUp"===t.key&&(n=function(e,t){return XP(2,arguments),nI(e,-QP(t))}(e,1)),"ArrowDown"===t.key&&(n=nI(e,1)),"PageUp"===t.key&&(n=tM(e,1)),"PageDown"===t.key&&(n=eM(e,1)),"Home"===t.key&&(n=function(e,t){var n,r,o,i,a,s,l,c;XP(1,arguments);var u=lM(),d=QP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ZP(e),p=f.getDay(),m=(p<d?7:0)+p-d;return f.setDate(f.getDate()-m),f.setHours(0,0,0,0),f}(e)),"End"===t.key&&(n=JP(function(e,t){var n,r,o,i,a,s,l,c;XP(1,arguments);var u=lM(),d=QP(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:u.weekStartsOn)&&void 0!==r?r:null===(l=u.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=ZP(e),p=f.getDay(),m=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+m),f.setHours(23,59,59,999),f}(e))),n&&(t.preventDefault(),v(n),JM(n,u)||(f(n),o?.(ZM(n,pI))))}}):null))))))};function vI(e){XP(1,arguments);var t=ZP(e);return t.setSeconds(0,0),t}function bI(e,t){XP(2,arguments);var n=ZP(e),r=QP(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=function(e){XP(1,arguments);var t=ZP(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}(a);return n.setMonth(r,Math.min(i,s)),n}const yI=fd("div",{target:"evcr23110"})("box-sizing:border-box;font-size:",zh.fontSize,";"),wI=fd("fieldset",{target:"evcr2319"})("border:0;margin:0 0 ",rh(4)," 0;padding:0;&:last-child{margin-bottom:0;}"),xI=fd("div",{target:"evcr2318"})({name:"pd0mhc",styles:"direction:ltr;display:flex"}),EI=np("&&& ",lg,"{padding-left:",rh(2),";padding-right:",rh(2),";text-align:center;}",""),_I=fd(db,{target:"evcr2317"})(EI," width:",rh(9),";&&& ",lg,"{padding-right:0;}&&& ",fg,"{border-right:0;border-top-right-radius:0;border-bottom-right-radius:0;}"),CI=fd("span",{target:"evcr2316"})("border-top:",zh.borderWidth," solid ",Bp.gray[700],";border-bottom:",zh.borderWidth," solid ",Bp.gray[700],";line-height:calc(\n\t\t",zh.controlHeight," - ",zh.borderWidth," * 2\n\t);display:inline-block;"),SI=fd(db,{target:"evcr2315"})(EI," width:",rh(9),";&&& ",lg,"{padding-left:0;}&&& ",fg,"{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;}"),kI=fd("div",{target:"evcr2314"})({name:"1ff36h2",styles:"flex-grow:1"}),TI=fd(Ry,{target:"evcr2313"})("height:36px;",wy,"{line-height:30px;}"),RI=fd(db,{target:"evcr2312"})(EI," width:",rh(9),";"),PI=fd(db,{target:"evcr2311"})(EI," width:",rh(14),";"),MI=fd("div",{target:"evcr2310"})({name:"ebu3jh",styles:"text-decoration:underline dotted"});var II=()=>{const{timezone:e}=(0,iI.getSettings)(),t=(new Date).getTimezoneOffset()/60*-1;if(Number(e.offset)===t)return null;const n=Number(e.offset)>=0?"+":"",r=""!==e.abbr&&isNaN(Number(e.abbr))?e.abbr:`UTC${n}${e.offset}`,o="UTC"===e.string?(0,c.__)("Coordinated Universal Time"):`(${r}) ${e.string.replace("_"," ")}`;return(0,a.createElement)(Xf,{position:"top center",text:o},(0,a.createElement)(MI,{className:"components-datetime__timezone"},r))};function NI(e,t){return t?(e%12+12)%24:e%12}function OI(e){return(t,n)=>{const r={...t};return n.type!==wv&&n.type!==Rv&&n.type!==kv||void 0!==r.value&&(r.value=r.value.toString().padStart(e,"0")),r}}var DI=function({is12Hour:e,currentTime:t,onChange:n}){const[r,o]=(0,a.useState)((()=>t?vI(fI(t)):new Date));(0,a.useEffect)((()=>{o(t?vI(fI(t)):new Date)}),[t]);const{day:i,month:s,year:l,minutes:u,hours:d,am:f}=(0,a.useMemo)((()=>({day:ZM(r,"dd"),month:ZM(r,"MM"),year:ZM(r,"yyyy"),minutes:ZM(r,"mm"),hours:ZM(r,e?"hh":"HH"),am:ZM(r,"a")})),[r,e]),p=t=>(i,{event:a})=>{if(!(a.target instanceof HTMLInputElement))return;if(!a.target.validity.valid)return;let s=Number(i);"hours"===t&&e&&(s=NI(s,"PM"===f));const l=function(e,t){if(XP(2,arguments),"object"!==YP(t)||null===t)throw new RangeError("values parameter must be an object");var n=ZP(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=bI(n,t.month)),null!=t.date&&n.setDate(QP(t.date)),null!=t.hours&&n.setHours(QP(t.hours)),null!=t.minutes&&n.setMinutes(QP(t.minutes)),null!=t.seconds&&n.setSeconds(QP(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(QP(t.milliseconds)),n)}(r,{[t]:s});o(l),n?.(ZM(l,pI))};function m(e){return()=>{if(f===e)return;const t=parseInt(d,10),i=function(e,t){XP(2,arguments);var n=ZP(e),r=QP(t);return n.setHours(r),n}(r,NI(t,"PM"===e));o(i),n?.(ZM(i,pI))}}const h=(0,a.createElement)(RI,{className:"components-datetime__time-field components-datetime__time-field-day",label:(0,c.__)("Day"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:i,step:1,min:1,max:31,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("date")}),g=(0,a.createElement)(kI,null,(0,a.createElement)(TI,{className:"components-datetime__time-field components-datetime__time-field-month",label:(0,c.__)("Month"),hideLabelFromVision:!0,__nextHasNoMarginBottom:!0,value:s,options:[{value:"01",label:(0,c.__)("January")},{value:"02",label:(0,c.__)("February")},{value:"03",label:(0,c.__)("March")},{value:"04",label:(0,c.__)("April")},{value:"05",label:(0,c.__)("May")},{value:"06",label:(0,c.__)("June")},{value:"07",label:(0,c.__)("July")},{value:"08",label:(0,c.__)("August")},{value:"09",label:(0,c.__)("September")},{value:"10",label:(0,c.__)("October")},{value:"11",label:(0,c.__)("November")},{value:"12",label:(0,c.__)("December")}],onChange:e=>{const t=bI(r,Number(e)-1);o(t),n?.(ZM(t,pI))}}));return(0,a.createElement)(yI,{className:"components-datetime__time"},(0,a.createElement)(wI,null,(0,a.createElement)(Uv.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,c.__)("Time")),(0,a.createElement)(lb,{className:"components-datetime__time-wrapper"},(0,a.createElement)(xI,{className:"components-datetime__time-field components-datetime__time-field-time"},(0,a.createElement)(_I,{className:"components-datetime__time-field-hours-input",label:(0,c.__)("Hours"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:d,step:1,min:e?1:0,max:e?12:23,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("hours"),__unstableStateReducer:OI(2)}),(0,a.createElement)(CI,{className:"components-datetime__time-separator","aria-hidden":"true"},":"),(0,a.createElement)(SI,{className:"components-datetime__time-field-minutes-input",label:(0,c.__)("Minutes"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:u,step:1,min:0,max:59,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("minutes"),__unstableStateReducer:OI(2)})),e&&(0,a.createElement)(XC,{className:"components-datetime__time-field components-datetime__time-field-am-pm"},(0,a.createElement)(bd,{className:"components-datetime__time-am-button",variant:"AM"===f?"primary":"secondary",onClick:m("AM")},(0,c.__)("AM")),(0,a.createElement)(bd,{className:"components-datetime__time-pm-button",variant:"PM"===f?"primary":"secondary",onClick:m("PM")},(0,c.__)("PM"))),(0,a.createElement)(ph,null),(0,a.createElement)(II,null))),(0,a.createElement)(wI,null,(0,a.createElement)(Uv.VisualLabel,{as:"legend",className:"components-datetime__time-legend"},(0,c.__)("Date")),(0,a.createElement)(lb,{className:"components-datetime__time-wrapper"},e?(0,a.createElement)(a.Fragment,null,g,h):(0,a.createElement)(a.Fragment,null,h,g),(0,a.createElement)(PI,{className:"components-datetime__time-field components-datetime__time-field-year",label:(0,c.__)("Year"),hideLabelFromVision:!0,__next36pxDefaultSize:!0,value:l,step:1,min:1,max:9999,required:!0,spinControls:"none",isPressEnterToChange:!0,isDragEnabled:!1,isShiftStepEnabled:!1,onChange:p("year"),__unstableStateReducer:OI(4)}))))};const AI=fd(l_,{target:"e1p5onf00"})({name:"1khn195",styles:"box-sizing:border-box"}),LI=()=>{};const zI=(0,a.forwardRef)((function({currentDate:e,is12Hour:t,isInvalidDate:n,onMonthPreviewed:r=LI,onChange:o,events:i,startOfWeek:s},l){return(0,a.createElement)(AI,{ref:l,className:"components-datetime",spacing:4},(0,a.createElement)(a.Fragment,null,(0,a.createElement)(DI,{currentTime:e,onChange:o,is12Hour:t}),(0,a.createElement)(gI,{currentDate:e,onChange:o,isInvalidDate:n,events:i,onMonthPreviewed:r,startOfWeek:s})))}));var FI=zI;var BI=[{name:(0,c._x)("None","Size of a UI element"),slug:"none"},{name:(0,c._x)("Small","Size of a UI element"),slug:"small"},{name:(0,c._x)("Medium","Size of a UI element"),slug:"medium"},{name:(0,c._x)("Large","Size of a UI element"),slug:"large"},{name:(0,c._x)("Extra Large","Size of a UI element"),slug:"xlarge"}];var jI=function(e){const{label:t,value:n,sizes:r=BI,icon:o,onChange:i,className:s=""}=e,u=(0,a.createElement)(a.Fragment,null,o&&(0,a.createElement)(Zl,{icon:o}),t);return(0,a.createElement)(Ry,{className:l()(s,"block-editor-dimension-control"),label:u,hideLabelFromVision:!1,value:n,onChange:e=>{const t=((e,t)=>e.find((e=>t===e.slug)))(r,e);t&&n!==t.slug?"function"==typeof i&&i(t.slug):i?.(void 0)},options:(e=>{const t=e.map((({name:e,slug:t})=>({label:e,value:t})));return[{label:(0,c.__)("Default"),value:""},...t]})(r)})};const VI={name:"u2jump",styles:"position:relative;pointer-events:none;&::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;}*{pointer-events:none;}"},HI=(0,a.createContext)(!1),{Consumer:$I,Provider:WI}=HI;function UI({className:e,children:t,isDisabled:n=!0,...r}){const o=Xu();return(0,a.createElement)(WI,{value:n},(0,a.createElement)("div",{inert:n?"true":void 0,className:n?o(VI,e,"components-disabled"):void 0,...r},t))}UI.Context=HI,UI.Consumer=$I;var GI=UI;const KI="is-dragging-components-draggable";var qI=function({children:e,onDragStart:t,onDragOver:n,onDragEnd:r,appendToOwnerDocument:o=!1,cloneClassname:i,elementId:s,transferData:l,__experimentalTransferDataType:c="text",__experimentalDragComponent:d}){const f=(0,a.useRef)(null),p=(0,a.useRef)((()=>{}));return(0,a.useEffect)((()=>()=>{p.current()}),[]),(0,a.createElement)(a.Fragment,null,e({onDraggableStart:function(e){const{ownerDocument:r}=e.target;e.dataTransfer.setData(c,JSON.stringify(l));const a=r.createElement("div");a.style.top="0",a.style.left="0";const d=r.createElement("div");"function"==typeof e.dataTransfer.setDragImage&&(d.classList.add("components-draggable__invisible-drag-image"),r.body.appendChild(d),e.dataTransfer.setDragImage(d,0,0)),a.classList.add("components-draggable__clone"),i&&a.classList.add(i);let m=0,h=0;if(f.current){m=e.clientX,h=e.clientY,a.style.transform=`translate( ${m}px, ${h}px )`;const t=r.createElement("div");t.innerHTML=f.current.innerHTML,a.appendChild(t),r.body.appendChild(a)}else{const e=r.getElementById(s),t=e.getBoundingClientRect(),n=e.parentNode,i=t.top,l=t.left;a.style.width=`${t.width+0}px`;const c=e.cloneNode(!0);c.id=`clone-${s}`,m=l-0,h=i-0,a.style.transform=`translate( ${m}px, ${h}px )`,Array.from(c.querySelectorAll("iframe")).forEach((e=>e.parentNode?.removeChild(e))),a.appendChild(c),o?r.body.appendChild(a):n?.appendChild(a)}let g=e.clientX,v=e.clientY;const b=(0,u.throttle)((function(e){if(g===e.clientX&&v===e.clientY)return;const t=m+e.clientX-g,r=h+e.clientY-v;a.style.transform=`translate( ${t}px, ${r}px )`,g=e.clientX,v=e.clientY,m=t,h=r,n&&n(e)}),16);r.addEventListener("dragover",b),r.body.classList.add(KI),t&&t(e),p.current=()=>{a&&a.parentNode&&a.parentNode.removeChild(a),d&&d.parentNode&&d.parentNode.removeChild(d),r.body.classList.remove(KI),r.removeEventListener("dragover",b)}},onDraggableEnd:function(e){e.preventDefault(),p.current(),r&&r(e)}}),d&&(0,a.createElement)("div",{className:"components-draggable-drag-component-root",style:{display:"none"},ref:f},d))};var YI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));var XI=function({className:e,label:t,onFilesDrop:n,onHTMLDrop:r,onDrop:o,...i}){const[s,d]=(0,a.useState)(),[f,p]=(0,a.useState)(),[m,h]=(0,a.useState)(),g=(0,u.__experimentalUseDropZone)({onDrop(e){const t=e.dataTransfer?(0,Yl.getFilesFromDataTransfer)(e.dataTransfer):[],i=e.dataTransfer?.getData("text/html");i&&r?r(i):t.length&&n?n(t):o&&o(e)},onDragStart(e){d(!0);let t="default";e.dataTransfer?.types.includes("text/html")?t="html":(e.dataTransfer?.types.includes("Files")||(e.dataTransfer?(0,Yl.getFilesFromDataTransfer)(e.dataTransfer):[]).length>0)&&(t="file"),h(t)},onDragEnd(){d(!1),h(void 0)},onDragEnter(){p(!0)},onDragLeave(){p(!1)}}),v=(0,u.useReducedMotion)();let b;const y={hidden:{opacity:0},show:{opacity:1,transition:{type:"tween",duration:.2,delay:0,delayChildren:.1}},exit:{opacity:0,transition:{duration:.2,delayChildren:0}}},w={hidden:{opacity:0,scale:.9},show:{opacity:1,scale:1,transition:{duration:.1}},exit:{opacity:0,scale:.9}};f&&(b=(0,a.createElement)(Ul.div,{variants:y,initial:v?"show":"hidden",animate:"show",exit:v?"show":"exit",className:"components-drop-zone__content",style:{pointerEvents:"none"}},(0,a.createElement)(Ul.div,{variants:w},(0,a.createElement)(_y,{icon:YI,className:"components-drop-zone__content-icon"}),(0,a.createElement)("span",{className:"components-drop-zone__content-text"},t||(0,c.__)("Drop files to upload")))));const x=l()("components-drop-zone",e,{"is-active":(s||f)&&("file"===m&&n||"html"===m&&r||"default"===m&&o),"is-dragging-over-document":s,"is-dragging-over-element":f,[`is-dragging-${m}`]:!!m});return(0,a.createElement)("div",{...i,ref:g,className:x},v?b:(0,a.createElement)(Gm,null,b))};function ZI({children:e}){return ql()("wp.components.DropZoneProvider",{since:"5.8",hint:"wp.component.DropZone no longer needs a provider. wp.components.DropZoneProvider is safe to remove from your code."}),e}var JI=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M5 17.7c.4.5.8.9 1.2 1.2l1.1-1.4c-.4-.3-.7-.6-1-1L5 17.7zM5 6.3l1.4 1.1c.3-.4.6-.7 1-1L6.3 5c-.5.4-.9.8-1.3 1.3zm.1 7.8l-1.7.5c.2.6.4 1.1.7 1.6l1.5-.8c-.2-.4-.4-.8-.5-1.3zM4.8 12v-.7L3 11.1v1.8l1.7-.2c.1-.2.1-.5.1-.7zm3 7.9c.5.3 1.1.5 1.6.7l.5-1.7c-.5-.1-.9-.3-1.3-.5l-.8 1.5zM19 6.3c-.4-.5-.8-.9-1.2-1.2l-1.1 1.4c.4.3.7.6 1 1L19 6.3zm-.1 3.6l1.7-.5c-.2-.6-.4-1.1-.7-1.6l-1.5.8c.2.4.4.8.5 1.3zM5.6 8.6l-1.5-.8c-.3.5-.5 1-.7 1.6l1.7.5c.1-.5.3-.9.5-1.3zm2.2-4.5l.8 1.5c.4-.2.8-.4 1.3-.5l-.5-1.7c-.6.2-1.1.4-1.6.7zm8.8 13.5l1.1 1.4c.5-.4.9-.8 1.2-1.2l-1.4-1.1c-.2.3-.5.6-.9.9zm1.8-2.2l1.5.8c.3-.5.5-1.1.7-1.6l-1.7-.5c-.1.5-.3.9-.5 1.3zm2.6-4.3l-1.7.2v1.4l1.7.2V12v-.9zM11.1 3l.2 1.7h1.4l.2-1.7h-1.8zm3 2.1c.5.1.9.3 1.3.5l.8-1.5c-.5-.3-1.1-.5-1.6-.7l-.5 1.7zM12 19.2h-.7l-.2 1.8h1.8l-.2-1.7c-.2-.1-.5-.1-.7-.1zm2.1-.3l.5 1.7c.6-.2 1.1-.4 1.6-.7l-.8-1.5c-.4.2-.8.4-1.3.5z"}));function QI(e=[],t="90deg"){const n=100/e.length,r=e.map(((e,t)=>`${e} ${t*n}%, ${e} ${(t+1)*n}%`)).join(", ");return`linear-gradient( ${t}, ${r} )`}Np([Op]);var eN=function({values:e}){return e?(0,a.createElement)(py,{colorValue:QI(e,"135deg")}):(0,a.createElement)(Zl,{icon:JI})};function tN({label:e,value:t,colors:n,disableCustomColors:r,enableAlpha:o,onChange:i}){const[s,l]=(0,a.useState)(!1);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(bd,{className:"components-color-list-picker__swatch-button",onClick:()=>l((e=>!e))},(0,a.createElement)(lb,{justify:"flex-start",spacing:2},t?(0,a.createElement)(py,{colorValue:t,className:"components-color-list-picker__swatch-color"}):(0,a.createElement)(Zl,{icon:JI}),(0,a.createElement)("span",null,e))),s&&(0,a.createElement)(y_,{className:"components-color-list-picker__color-picker",colors:n,value:t,clearable:!1,onChange:i,disableCustomColors:r,enableAlpha:o}))}var nN=function({colors:e,labels:t,value:n=[],disableCustomColors:r,enableAlpha:o,onChange:i}){return(0,a.createElement)("div",{className:"components-color-list-picker"},t.map(((t,s)=>(0,a.createElement)(tN,{key:s,label:t,value:n[s],colors:e,disableCustomColors:r,enableAlpha:o,onChange:e=>{const t=n.slice();t[s]=e,i(t)}}))))};const rN=["#333","#CCC"];function oN({value:e,onChange:t}){const n=!!e,r=n?e:rN,o=QI(r),i=(s=r).map(((e,t)=>({position:100*t/(s.length-1),color:e})));var s;return(0,a.createElement)(Lk,{disableInserter:!0,background:o,hasGradient:n,value:i,onChange:e=>{const n=function(e=[]){return e.map((({color:e})=>e))}(e);t(n)}})}var iN=function({clearable:e=!0,unsetable:t=!0,colorPalette:n,duotonePalette:r,disableCustomColors:o,disableCustomDuotone:i,value:s,onChange:l}){const[u,d]=(0,a.useMemo)((()=>{return!(e=n)||e.length<2?["#000","#fff"]:e.map((({color:e})=>({color:e,brightness:Mp(e).brightness()}))).reduce((([e,t],n)=>[n.brightness<=e.brightness?n:e,n.brightness>=t.brightness?n:t]),[{brightness:1,color:""},{brightness:0,color:""}]).map((({color:e})=>e));var e}),[n]),f="unset"===s,p=(0,a.createElement)(s_.Option,{key:"unset",value:"unset",isSelected:f,tooltipText:(0,c.__)("Unset"),className:"components-duotone-picker__color-indicator",onClick:()=>{l(f?void 0:"unset")}}),m=r.map((({colors:e,slug:t,name:n})=>{const r={background:QI(e,"135deg"),color:"transparent"},o=null!=n?n:(0,c.sprintf)((0,c.__)("Duotone code: %s"),t),i=n?(0,c.sprintf)((0,c.__)("Duotone: %s"),n):o,u=tc()(e,s);return(0,a.createElement)(s_.Option,{key:t,value:e,isSelected:u,"aria-label":i,tooltipText:o,style:r,onClick:()=>{l(u?void 0:e)}})}));return(0,a.createElement)(s_,{options:t?[p,...m]:m,actions:!!e&&(0,a.createElement)(s_.ButtonAction,{onClick:()=>l(void 0)},(0,c.__)("Clear"))},(0,a.createElement)(ph,{paddingTop:4},(0,a.createElement)(l_,{spacing:3},!o&&!i&&(0,a.createElement)(oN,{value:f?void 0:s,onChange:l}),!i&&(0,a.createElement)(nN,{labels:[(0,c.__)("Shadows"),(0,c.__)("Highlights")],colors:n,value:f?void 0:s,disableCustomColors:o,enableAlpha:!0,onChange:e=>{e[0]||(e[0]=u),e[1]||(e[1]=d);const t=e.length>=2?e:void 0;l(t)}}))))};var aN=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const sN=fd(_y,{target:"esh4a730"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"});var lN=(0,a.forwardRef)((function(e,t){const{href:n,children:r,className:o,rel:i="",...s}=e,u=[...new Set([...i.split(" "),"external","noreferrer","noopener"].filter(Boolean))].join(" "),d=l()("components-external-link",o),f=!!n?.startsWith("#");return(0,a.createElement)("a",{...s,className:d,href:n,onClick:t=>{f&&t.preventDefault(),e.onClick&&e.onClick(t)},target:"_blank",rel:u,ref:t},r,(0,a.createElement)(hd,{as:"span"},(0,c.__)("(opens in a new tab)")),(0,a.createElement)(sN,{icon:aN,className:"components-external-link__icon"}))}));const cN={width:200,height:170},uN=["avi","mpg","mpeg","mov","mp4","m4v","ogg","ogv","webm","wmv"];function dN(e){return Math.round(100*e)}const fN=fd("div",{target:"eeew7dm8"})({name:"w0nf6b",styles:"background-color:transparent;text-align:center;width:100%"}),pN=fd("div",{target:"eeew7dm7"})({name:"megach",styles:"align-items:center;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.2 );cursor:pointer;display:inline-flex;justify-content:center;margin:auto;position:relative;height:100%;img,video{box-sizing:border-box;display:block;height:auto;margin:0;max-height:100%;max-width:100%;pointer-events:none;user-select:none;width:auto;}"}),mN=fd("div",{target:"eeew7dm6"})("background:",Bp.gray[100],";box-sizing:border-box;height:",cN.height,"px;max-width:280px;min-width:",cN.width,"px;width:100%;"),hN=fd(A_,{target:"eeew7dm5"})({name:"1pzk433",styles:"width:100px"});var gN={name:"1mn7kwb",styles:"padding-bottom:1em"};const vN=({__nextHasNoMarginBottom:e})=>e?void 0:gN;var bN={name:"1mn7kwb",styles:"padding-bottom:1em"};const yN=({hasHelpText:e=!1})=>e?bN:void 0,wN=fd(wh,{target:"eeew7dm4"})("max-width:320px;padding-top:1em;",yN," ",vN,";"),xN=fd("div",{target:"eeew7dm3"})("left:50%;overflow:hidden;pointer-events:none;position:absolute;top:50%;transform:translate3d( -50%, -50%, 0 );transition:opacity 120ms linear;z-index:1;opacity:",(({showOverlay:e})=>e?1:0),";"),EN=fd("div",{target:"eeew7dm2"})({name:"1d42i6k",styles:"background:white;box-shadow:0 0 2px rgba( 0, 0, 0, 0.6 );position:absolute;opacity:0.4;transform:translateZ( 0 )"}),_N=fd(EN,{target:"eeew7dm1"})({name:"1qp910y",styles:"height:1px;left:0;right:0"}),CN=fd(EN,{target:"eeew7dm0"})({name:"1oz3zka",styles:"width:1px;top:0;bottom:0"}),SN=0,kN=100,TN=()=>{};function RN({__nextHasNoMarginBottom:e,hasHelpText:t,onChange:n=TN,point:r={x:.5,y:.5}}){const o=dN(r.x),i=dN(r.y),s=(e,t)=>{if(void 0===e)return;const o=parseInt(e,10);isNaN(o)||n({...r,[t]:o/100})};return(0,a.createElement)(wN,{className:"focal-point-picker__controls",__nextHasNoMarginBottom:e,hasHelpText:t},(0,a.createElement)(PN,{label:(0,c.__)("Left"),"aria-label":(0,c.__)("Focal point left position"),value:[o,"%"].join(""),onChange:e=>s(e,"x"),dragDirection:"e"}),(0,a.createElement)(PN,{label:(0,c.__)("Top"),"aria-label":(0,c.__)("Focal point top position"),value:[i,"%"].join(""),onChange:e=>s(e,"y"),dragDirection:"s"}))}function PN(e){return(0,a.createElement)(hN,{className:"focal-point-picker__controls-position-unit-control",labelPosition:"top",max:kN,min:SN,units:[{value:"%",label:"%"}],...e})}const MN=fd("div",{target:"e19snlhg0"})("background-color:transparent;cursor:grab;height:48px;margin:-24px 0 0 -24px;position:absolute;user-select:none;width:48px;will-change:transform;z-index:10000;background:rgba( 255, 255, 255, 0.6 );border-radius:50%;backdrop-filter:blur( 4px );box-shadow:rgb( 0 0 0 / 20% ) 0px 0px 10px;",(({isDragging:e})=>e&&"cursor: grabbing;"),";");function IN({left:e="50%",top:t="50%",...n}){const r=l()("components-focal-point-picker__icon_container"),o={left:e,top:t};return(0,a.createElement)(MN,{...n,className:r,style:o})}function NN({bounds:e,...t}){return(0,a.createElement)(xN,{...t,className:"components-focal-point-picker__grid",style:{width:e.width,height:e.height}},(0,a.createElement)(_N,{style:{top:"33%"}}),(0,a.createElement)(_N,{style:{top:"66%"}}),(0,a.createElement)(CN,{style:{left:"33%"}}),(0,a.createElement)(CN,{style:{left:"66%"}}))}function ON({alt:e,autoPlay:t,src:n,onLoad:r,mediaRef:o,muted:i=!0,...s}){if(!n)return(0,a.createElement)(mN,{className:"components-focal-point-picker__media components-focal-point-picker__media--placeholder",ref:o,...s});return function(e=""){return!!e&&(e.startsWith("data:video/")||uN.includes(function(e=""){const t=e.split(".");return t[t.length-1]}(e)))}(n)?(0,a.createElement)("video",{...s,autoPlay:t,className:"components-focal-point-picker__media components-focal-point-picker__media--video",loop:!0,muted:i,onLoadedData:r,ref:o,src:n}):(0,a.createElement)("img",{...s,alt:e,className:"components-focal-point-picker__media components-focal-point-picker__media--image",onLoad:r,ref:o,src:n})}var DN=function e({__nextHasNoMarginBottom:t,autoPlay:n=!0,className:r,help:o,label:i,onChange:s,onDrag:d,onDragEnd:f,onDragStart:p,resolvePoint:m,url:h,value:g={x:.5,y:.5},...v}){const[b,y]=(0,a.useState)(g),[w,x]=(0,a.useState)(!1),{startDrag:E,endDrag:_,isDragging:C}=(0,u.__experimentalUseDragging)({onDragStart:e=>{T.current?.focus();const t=I(e);t&&(p?.(t,e),y(t))},onDragMove:e=>{e.preventDefault();const t=I(e);t&&(d?.(t,e),y(t))},onDragEnd:()=>{f?.(),s?.(b)}}),{x:S,y:k}=C?b:g,T=(0,a.useRef)(null),[R,P]=(0,a.useState)(cN),M=(0,a.useRef)((()=>{if(!T.current)return;const{clientWidth:e,clientHeight:t}=T.current;P(e>0&&t>0?{width:e,height:t}:{...cN})}));(0,a.useEffect)((()=>{const e=M.current;if(!T.current)return;const{defaultView:t}=T.current.ownerDocument;return t?.addEventListener("resize",e),()=>t?.removeEventListener("resize",e)}),[]),(0,u.useIsomorphicLayoutEffect)((()=>{M.current()}),[]);const I=({clientX:e,clientY:t,shiftKey:n})=>{if(!T.current)return;const{top:r,left:o}=T.current.getBoundingClientRect();let i=(e-o)/R.width,a=(t-r)/R.height;return n&&(i=.1*Math.round(i/.1),a=.1*Math.round(a/.1)),N({x:i,y:a})},N=e=>{var t;const n=null!==(t=m?.(e))&&void 0!==t?t:e;n.x=Math.max(0,Math.min(n.x,1)),n.y=Math.max(0,Math.min(n.y,1));const r=e=>Math.round(100*e)/100;return{x:r(n.x),y:r(n.y)}},O={left:S*R.width,top:k*R.height},D=l()("components-focal-point-picker-control",r),A=`inspector-focal-point-picker-control-${(0,u.useInstanceId)(e)}`;return oc((()=>{x(!0);const e=window.setTimeout((()=>{x(!1)}),600);return()=>window.clearTimeout(e)}),[S,k]),(0,a.createElement)(Uv,{...v,__nextHasNoMarginBottom:t,label:i,id:A,help:o,className:D},(0,a.createElement)(fN,{className:"components-focal-point-picker-wrapper"},(0,a.createElement)(pN,{className:"components-focal-point-picker",onKeyDown:e=>{const{code:t,shiftKey:n}=e;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t))return;e.preventDefault();const r={x:S,y:k},o=n?.1:.01,i="ArrowUp"===t||"ArrowLeft"===t?-1*o:o,a="ArrowUp"===t||"ArrowDown"===t?"y":"x";r[a]=r[a]+i,s?.(N(r))},onMouseDown:E,onBlur:()=>{C&&_()},ref:T,role:"button",tabIndex:-1},(0,a.createElement)(NN,{bounds:R,showOverlay:w}),(0,a.createElement)(ON,{alt:(0,c.__)("Media preview"),autoPlay:n,onLoad:M.current,src:h}),(0,a.createElement)(IN,{...O,isDragging:C}))),(0,a.createElement)(RN,{__nextHasNoMarginBottom:t,hasHelpText:!!o,point:{x:S,y:k},onChange:e=>{s?.(N(e))}}))};function AN({iframeRef:e,...t}){const n=(0,u.useMergeRefs)([e,(0,u.useFocusableIframe)()]);return ql()("wp.components.FocusableIframe",{since:"5.9",alternative:"wp.compose.useFocusableIframe"}),(0,a.createElement)("iframe",{ref:n,...t})}var LN=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"}));function zN(e){const[t,...n]=e;if(!t)return null;const[,r]=T_(t.size);return n.every((e=>{const[,t]=T_(e.size);return t===r}))?r:null}const FN=fd("fieldset",{target:"e8tqeku5"})({name:"1t1ytme",styles:"border:0;margin:0;padding:0"}),BN=fd(lb,{target:"e8tqeku4"})("height:",rh(4),";"),jN=fd(bd,{target:"e8tqeku3"})("margin-top:",rh(-1),";"),VN=fd(Uv.VisualLabel,{target:"e8tqeku2"})("display:flex;gap:",rh(1),";justify-content:flex-start;margin-bottom:0;"),HN=fd("span",{target:"e8tqeku1"})("color:",Bp.gray[700],";"),$N=fd("div",{target:"e8tqeku0"})((e=>!e.__nextHasNoMarginBottom&&`margin-bottom: ${rh(6)};`),";"),WN={key:"default",name:(0,c.__)("Default"),value:void 0},UN={key:"custom",name:(0,c.__)("Custom")};var GN=e=>{var t;const{fontSizes:n,value:r,disableCustomFontSizes:o,size:i,onChange:s,onSelectCustom:l}=e,u=!!zN(n),d=[WN,...n.map((e=>{let t;if(u){const[n]=T_(e.size);void 0!==n&&(t=String(n))}else(function(e){return/^[\d\.]+(px|em|rem|vw|vh|%)?$/i.test(String(e))})(e.size)&&(t=String(e.size));return{key:e.slug,name:e.name||e.slug,value:e.size,__experimentalHint:t}})),...o?[]:[UN]],f=r?null!==(t=d.find((e=>e.value===r)))&&void 0!==t?t:UN:WN;return(0,a.createElement)(kP,{__nextUnconstrainedWidth:!0,className:"components-font-size-picker__select",label:(0,c.__)("Font size"),hideLabelFromVision:!0,describedBy:(0,c.sprintf)((0,c.__)("Currently selected font size: %s"),f.name),options:d,value:f,__experimentalShowSelectedHint:!0,onChange:({selectedItem:e})=>{e===UN?l():s(e.value)},size:i})};const KN=e=>{const t=np("border-color:",Bp.ui.border,";","");return np(e&&t," &:hover{border-color:",Bp.ui.borderHover,";}&:focus-within{border-color:",Bp.ui.borderFocus,";box-shadow:",zh.controlBoxShadowFocus,";z-index:1;outline:2px solid transparent;outline-offset:-2px;}","")},qN=e=>np("min-height:",{default:"36px","__unstable-large":"40px"}[e],";",""),YN={name:"7whenc",styles:"display:flex;width:100%"},XN=fd("div",{target:"eakva831"})("background:",Bp.gray[900],";border-radius:",zh.controlBorderRadius,";left:0;position:absolute;top:2px;bottom:2px;transition:transform ",zh.transitionDurationFast," ease;",jp("transition")," z-index:1;outline:2px solid transparent;outline-offset:-3px;"),ZN=fd("div",{target:"eakva830"})({name:"zjik7",styles:"display:flex"});function JN(e){void 0===e&&(e={});var t=Yp(e),n=t.state,r=t.loop,o=void 0===r||r,i=m(t,["state","loop"]),a=(0,v.useState)(n),s=a[0],l=a[1],c=vm(p(p({},i),{},{loop:o}));return p(p({},c),{},{state:s,setState:l})}var QN=["baseId","unstable_idCountRef","unstable_virtual","rtl","orientation","items","groups","currentId","loop","wrap","shift","unstable_moves","unstable_hasActiveWidget","unstable_includesBaseElement","state","setBaseId","registerItem","unregisterItem","registerGroup","unregisterGroup","move","next","previous","up","down","first","last","sort","unstable_setVirtual","setRTL","setOrientation","setCurrentId","setLoop","setWrap","setShift","reset","unstable_setIncludesBaseElement","unstable_setHasActiveWidget","setState"],eO=[].concat(QN,["value","checked","unstable_checkOnFocus"]),tO=z({as:"div",useHook:B({name:"RadioGroup",compose:Sm,keys:QN,useProps:function(e,t){return p({role:"radiogroup"},t)}}),useCreateElement:function(e,t,n){return R(e,t,n)}});var nO=(0,a.memo)((function({containerRef:e,containerWidth:t,isAdaptiveWidth:n,state:r}){const[o,i]=(0,a.useState)(0),[s,l]=(0,a.useState)(0),[c,u]=(0,a.useState)(!1),[d,f]=(0,a.useState)(!1);return(0,a.useEffect)((()=>{const t=e?.current;if(!t)return;const n=t.querySelector(`[data-value="${r}"]`);if(f(!!n),!n)return;const o=window.setTimeout((()=>{const{width:e,x:r}=n.getBoundingClientRect(),{x:o}=t.getBoundingClientRect();i(r-o-1),l(e)}),100);let a;return c||(a=window.requestAnimationFrame((()=>{u(!0)}))),()=>{window.clearTimeout(o),window.cancelAnimationFrame(a)}}),[c,e,t,r,n]),d?(0,a.createElement)(XN,{role:"presentation",style:{transform:`translateX(${o}px)`,transition:c?void 0:"none",width:s}}):null}));const rO=(0,a.createContext)({});var oO=rO;const iO=(0,a.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,...s},l){const c=(0,a.useRef)(),[d,f]=(0,u.useResizeObserver)(),p=JN({baseId:(0,u.useInstanceId)(iO,"toggle-group-control-as-radio-group").toString(),state:i}),m=(0,u.usePrevious)(i);return oc((()=>{m!==p.state&&r(p.state)}),[p.state]),oc((()=>{i!==p.state&&p.setState(i)}),[i]),(0,a.createElement)(oO.Provider,{value:{...p,isBlock:!t,size:o}},(0,a.createElement)(tO,{...p,"aria-label":n,as:md,...s,ref:(0,u.useMergeRefs)([c,l])},d,(0,a.createElement)(nO,{state:p.state,containerRef:c,containerWidth:f.width,isAdaptiveWidth:t}),e))}));const aO=(0,a.forwardRef)((function({children:e,isAdaptiveWidth:t,label:n,onChange:r,size:o,value:i,...s},l){const c=(0,a.useRef)(),[d,f]=(0,u.useResizeObserver)(),p=(0,u.useInstanceId)(aO,"toggle-group-control-as-button-group").toString(),[m,h]=(0,a.useState)(i),g={baseId:p,state:m,setState:h},v=(0,u.usePrevious)(i);return oc((()=>{v!==g.state&&r(g.state)}),[g.state]),oc((()=>{i!==g.state&&g.setState(i)}),[i]),(0,a.createElement)(oO.Provider,{value:{...g,isBlock:!t,isDeselectable:!0,size:o}},(0,a.createElement)(md,{"aria-label":n,...s,ref:(0,u.useMergeRefs)([c,l]),role:"group"},d,(0,a.createElement)(nO,{state:g.state,containerRef:c,containerWidth:f.width,isAdaptiveWidth:t}),e))})),sO=()=>{};const lO=Ju((function(e,t){const{__nextHasNoMarginBottom:n=!1,className:r,isAdaptiveWidth:o=!1,isBlock:i=!1,isDeselectable:s=!1,label:l,hideLabelFromVision:c=!1,help:u,onChange:d=sO,size:f="default",value:p,children:m,...h}=Zu(e,"ToggleGroupControl"),g=Xu(),v=(0,a.useMemo)((()=>g((({isBlock:e,isDeselectable:t,size:n})=>np("background:",Bp.ui.background,";border:1px solid transparent;border-radius:",zh.controlBorderRadius,";display:inline-flex;min-width:0;padding:2px;position:relative;transition:transform ",zh.transitionDurationFastest," linear;",jp("transition")," ",qN(n)," ",!t&&KN(e),";",""))({isBlock:i,isDeselectable:s,size:f}),i&&YN,r)),[r,g,i,s,f]),b=s?aO:iO;return(0,a.createElement)(Uv,{help:u,__nextHasNoMarginBottom:n},!c&&(0,a.createElement)(ZN,null,(0,a.createElement)(Uv.VisualLabel,null,l)),(0,a.createElement)(b,{...h,children:m,className:v,isAdaptiveWidth:o,label:l,onChange:d,ref:t,size:f,value:p}))}),"ToggleGroupControl");var cO=lO;function uO(e){return void 0!==e.checked?e.checked:void 0!==e.value&&e.state===e.value}function dO(e,t){var n=Ee(e,"change");Object.defineProperties(n,{type:{value:"change"},target:{value:e},currentTarget:{value:e}}),null==t||t(n)}var fO=B({name:"Radio",compose:Se,keys:eO,useOptions:function(e,t){var n,r=t.value,o=t.checked,i=e.unstable_clickOnEnter,a=void 0!==i&&i,s=e.unstable_checkOnFocus,l=void 0===s||s,c=m(e,["unstable_clickOnEnter","unstable_checkOnFocus"]);return p(p({checked:o,unstable_clickOnEnter:a,unstable_checkOnFocus:l},c),{},{value:null!=(n=c.value)?n:r})},useProps:function(e,t){var n=t.ref,r=t.onChange,o=t.onClick,i=m(t,["ref","onChange","onClick"]),a=(0,v.useRef)(null),s=(0,v.useState)(!0),l=s[0],c=s[1],u=uO(e),d=G(e.currentId===e.id),f=G(r),h=G(o);!function(e){var t=(0,v.useState)((function(){return uO(e)}))[0],n=(0,v.useState)(e.currentId)[0],r=e.id,o=e.setCurrentId;(0,v.useEffect)((function(){t&&r&&n!==r&&(null==o||o(r))}),[t,r,o,n])}(e),(0,v.useEffect)((function(){var e=a.current;e&&("INPUT"===e.tagName&&"radio"===e.type||c(!1))}),[]);var g=(0,v.useCallback)((function(t){var n,r;null===(n=f.current)||void 0===n||n.call(f,t),t.defaultPrevented||e.disabled||null===(r=e.setState)||void 0===r||r.call(e,e.value)}),[e.disabled,e.setState,e.value]),b=(0,v.useCallback)((function(e){var t;null===(t=h.current)||void 0===t||t.call(h,e),e.defaultPrevented||l||dO(e.currentTarget,g)}),[g,l]);return(0,v.useEffect)((function(){var t=a.current;t&&e.unstable_moves&&d.current&&e.unstable_checkOnFocus&&dO(t,g)}),[e.unstable_moves,e.unstable_checkOnFocus,g]),p({ref:V(a,n),role:l?void 0:"radio",type:l?"radio":void 0,value:l?e.value:void 0,name:l?e.baseId:void 0,"aria-checked":u,checked:u,onChange:g,onClick:b},i)}}),pO=z({as:"input",memo:!0,useHook:fO});const mO=fd("div",{target:"et6ln9s1"})({name:"sln1fl",styles:"display:inline-flex;max-width:100%;min-width:0;position:relative"}),hO={name:"82a6rk",styles:"flex:1"},gO=({isDeselectable:e,isIcon:t,isPressed:n,size:r})=>np("align-items:center;appearance:none;background:transparent;border:none;border-radius:",zh.controlBorderRadius,";color:",Bp.gray[700],";fill:currentColor;cursor:pointer;display:flex;font-family:inherit;height:100%;justify-content:center;line-height:100%;outline:none;padding:0 12px;position:relative;text-align:center;transition:background ",zh.transitionDurationFast," linear,color ",zh.transitionDurationFast," linear,font-weight 60ms linear;",jp("transition")," user-select:none;width:100%;z-index:2;&::-moz-focus-inner{border:0;}&:active{background:",zh.toggleGroupControlBackgroundColor,";}",e&&bO," ",t&&wO({size:r})," ",n&&vO,";",""),vO=np("color:",Bp.white,";&:active{background:transparent;}",""),bO=np("color:",Bp.gray[900],";&:focus{box-shadow:inset 0 0 0 1px ",Bp.white,",0 0 0 ",zh.borderWidthFocus," ",Bp.ui.theme,";outline:2px solid transparent;}",""),yO=fd("div",{target:"et6ln9s0"})("display:flex;font-size:",zh.fontSize,";line-height:1;"),wO=({size:e="default"})=>np("color:",Bp.gray[900],";width:",{default:"30px","__unstable-large":"34px"}[e],";padding-left:0;padding-right:0;",""),{ButtonContentView:xO,LabelView:EO}=n,_O=({showTooltip:e,text:t,children:n})=>e&&t?(0,a.createElement)(Xf,{text:t,position:"top center"},n):(0,a.createElement)(a.Fragment,null,n);const CO=Ju((function e(t,n){const r=(0,a.useContext)(rO),o=Zu({...t,id:(0,u.useInstanceId)(e,r.baseId||"toggle-group-control-option-base")},"ToggleGroupControlOptionBase"),{isBlock:i=!1,isDeselectable:s=!1,size:l="default",...c}=r,{className:d,isIcon:f=!1,value:p,children:m,showTooltip:h=!1,...g}=o,v=c.state===p,b=Xu(),y=b(i&&hO),w=b(gO({isDeselectable:s,isIcon:f,isPressed:v,size:l}),d),x={...g,className:w,"data-value":p,ref:n};return(0,a.createElement)(EO,{className:y},(0,a.createElement)(_O,{showTooltip:h,text:g["aria-label"]},s?(0,a.createElement)("button",{...x,"aria-pressed":v,type:"button",onClick:()=>{s&&v?c.setState(void 0):c.setState(p)}},(0,a.createElement)(xO,null,m)):(0,a.createElement)(pO,{...x,...c,as:"button",value:p},(0,a.createElement)(xO,null,m))))}),"ToggleGroupControlOptionBase");var SO=CO;var kO=(0,a.forwardRef)((function(e,t){const{label:n,...r}=e,o=r["aria-label"]||n;return(0,a.createElement)(SO,{...r,"aria-label":o,ref:t},n)}));const TO=[(0,c.__)("S"),(0,c.__)("M"),(0,c.__)("L"),(0,c.__)("XL"),(0,c.__)("XXL")],RO=[(0,c.__)("Small"),(0,c.__)("Medium"),(0,c.__)("Large"),(0,c.__)("Extra Large"),(0,c.__)("Extra Extra Large")];var PO=e=>{const{fontSizes:t,value:n,__nextHasNoMarginBottom:r,size:o,onChange:i}=e;return(0,a.createElement)(cO,{__nextHasNoMarginBottom:r,label:(0,c.__)("Font size"),hideLabelFromVision:!0,value:n,onChange:i,isBlock:!0,size:o},t.map(((e,t)=>(0,a.createElement)(kO,{key:e.slug,value:e.size,label:TO[t],"aria-label":e.name||RO[t],showTooltip:!0}))))};const MO=(0,a.forwardRef)(((e,t)=>{const{__nextHasNoMarginBottom:n=!1,fallbackFontSize:r,fontSizes:o=[],disableCustomFontSizes:i=!1,onChange:s,size:l="default",units:u,value:d,withSlider:f=!1,withReset:p=!0}=e;n||ql()("Bottom margin styles for wp.components.FontSizePicker",{since:"6.1",version:"6.4",hint:"Set the `__nextHasNoMarginBottom` prop to true to start opting into the new styles, which will become the default in a future version."});const m=R_({availableUnits:u||["px","em","rem"]}),h=o.length>5,g=o.find((e=>e.size===d)),v=!!d&&!g,[b,y]=(0,a.useState)(!i&&v),w=(0,a.useMemo)((()=>{if(b)return(0,c.__)("Custom");if(!h)return g?g.name||RO[o.indexOf(g)]:"";const e=zN(o);return e?`(${e})`:""}),[b,h,g,o]);if(0===o.length&&i)return null;const x="string"==typeof d||"string"==typeof o[0]?.size,[E,_]=T_(d,m),C=!!_&&["em","rem"].includes(_);return(0,a.createElement)(FN,{ref:t,className:"components-font-size-picker"},(0,a.createElement)(hd,{as:"legend"},(0,c.__)("Font size")),(0,a.createElement)(ph,null,(0,a.createElement)(BN,{className:"components-font-size-picker__header"},(0,a.createElement)(VN,{"aria-label":`${(0,c.__)("Size")} ${w||""}`},(0,c.__)("Size"),w&&(0,a.createElement)(HN,{className:"components-font-size-picker__header__hint"},w)),!i&&(0,a.createElement)(jN,{label:b?(0,c.__)("Use size preset"):(0,c.__)("Set custom size"),icon:LN,onClick:()=>{y(!b)},isPressed:b,isSmall:!0}))),(0,a.createElement)($N,{className:"components-font-size-picker__controls",__nextHasNoMarginBottom:n},!!o.length&&h&&!b&&(0,a.createElement)(GN,{fontSizes:o,value:d,disableCustomFontSizes:i,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(x?e:Number(e),o.find((t=>t.size===e)))},onSelectCustom:()=>y(!0)}),!h&&!b&&(0,a.createElement)(PO,{fontSizes:o,value:d,__nextHasNoMarginBottom:n,size:l,onChange:e=>{void 0===e?s?.(void 0):s?.(x?e:Number(e),o.find((t=>t.size===e)))}}),!i&&b&&(0,a.createElement)(wh,{className:"components-font-size-picker__custom-size-control"},(0,a.createElement)(xh,{isBlock:!0},(0,a.createElement)(A_,{label:(0,c.__)("Custom"),labelPosition:"top",hideLabelFromVision:!0,value:d,onChange:e=>{s?.(void 0===e?void 0:x?e:parseInt(e,10))},size:l,units:x?m:[],min:0})),f&&(0,a.createElement)(xh,{isBlock:!0},(0,a.createElement)(ph,{marginX:2,marginBottom:0},(0,a.createElement)(iw,{__nextHasNoMarginBottom:n,className:"components-font-size-picker__custom-input",label:(0,c.__)("Custom Size"),hideLabelFromVision:!0,value:E,initialPosition:r,withInputField:!1,onChange:e=>{s?.(void 0===e?void 0:x?e+(null!=_?_:"px"):e)},min:0,max:C?10:100,step:C?.1:1}))),p&&(0,a.createElement)(xh,null,(0,a.createElement)(vd,{disabled:void 0===d,onClick:()=>{s?.(void 0)},variant:"secondary",__next40pxDefaultSize:!0,size:"__unstable-large"!==l?"small":"default"},(0,c.__)("Reset"))))))}));var IO=MO;var NO=function({accept:e,children:t,multiple:n=!1,onChange:r,onClick:o,render:i,...s}){const l=(0,a.useRef)(null),c=()=>{l.current?.click()},u=i?i({openFileDialog:c}):(0,a.createElement)(bd,{onClick:c,...s},t);return(0,a.createElement)("div",{className:"components-form-file-upload"},u,(0,a.createElement)("input",{type:"file",ref:l,multiple:n,style:{display:"none"},accept:e,onChange:r,onClick:o,"data-testid":"form-file-upload-input"}))};const OO=()=>{};var DO=function(e){const{className:t,checked:n,id:r,disabled:o,onChange:i=OO,...s}=e,c=l()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return(0,a.createElement)("span",{className:c},(0,a.createElement)("input",{className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:i,disabled:o,...s}),(0,a.createElement)("span",{className:"components-form-toggle__track"}),(0,a.createElement)("span",{className:"components-form-toggle__thumb"}))};const AO=()=>{};function LO({value:e,status:t,title:n,displayTransform:r,isBorderless:o=!1,disabled:i=!1,onClickRemove:s=AO,onMouseEnter:d,onMouseLeave:f,messages:p,termPosition:m,termsCount:h}){const g=(0,u.useInstanceId)(LO),v=l()("components-form-token-field__token",{"is-error":"error"===t,"is-success":"success"===t,"is-validating":"validating"===t,"is-borderless":o,"is-disabled":i}),b=r(e),y=(0,c.sprintf)((0,c.__)("%1$s (%2$s of %3$s)"),b,m,h);return(0,a.createElement)("span",{className:v,onMouseEnter:d,onMouseLeave:f,title:n},(0,a.createElement)("span",{className:"components-form-token-field__token-text",id:`components-form-token-field__token-text-${g}`},(0,a.createElement)(hd,{as:"span"},y),(0,a.createElement)("span",{"aria-hidden":"true"},b)),(0,a.createElement)(bd,{className:"components-form-token-field__remove-token",icon:Wb,onClick:i?void 0:()=>s({value:e}),label:p.remove,"aria-describedby":`components-form-token-field__token-text-${g}`}))}const zO=({__next40pxDefaultSize:e,hasTokens:t})=>!e&&np("padding-top:",rh(t?1:.5),";padding-bottom:",rh(t?1:.5),";",""),FO=fd(wh,{target:"ehq8nmi0"})("padding:7px;",zO,";"),BO=e=>e;var jO=function e(t){const{autoCapitalize:n,autoComplete:r,maxLength:o,placeholder:i,label:s=(0,c.__)("Add item"),className:d,suggestions:f=[],maxSuggestions:p=100,value:m=[],displayTransform:h=BO,saveTransform:g=(e=>e.trim()),onChange:v=(()=>{}),onInputChange:b=(()=>{}),onFocus:y,isBorderless:w=!1,disabled:x=!1,tokenizeOnSpace:E=!1,messages:_={added:(0,c.__)("Item added."),removed:(0,c.__)("Item removed."),remove:(0,c.__)("Remove item"),__experimentalInvalid:(0,c.__)("Invalid item")},__experimentalRenderItem:C,__experimentalExpandOnFocus:S=!1,__experimentalValidateInput:k=(()=>!0),__experimentalShowHowTo:T=!0,__next40pxDefaultSize:R=!1,__experimentalAutoSelectFirstMatch:P=!1,__nextHasNoMarginBottom:M=!1}=VT(t,"wp.components.FormTokenField"),I=(0,u.useInstanceId)(e),[N,O]=(0,a.useState)(""),[D,A]=(0,a.useState)(0),[L,z]=(0,a.useState)(!1),[F,B]=(0,a.useState)(!1),[j,V]=(0,a.useState)(-1),[H,$]=(0,a.useState)(!1),W=(0,u.usePrevious)(f),U=(0,u.usePrevious)(m),G=(0,a.useRef)(null),K=(0,a.useRef)(null),q=(0,u.useDebounce)(_b.speak,500);function Y(){G.current?.focus()}function X(){return G.current===G.current?.ownerDocument.activeElement}function Z(){fe()&&k(N)?z(!1):(O(""),A(0),z(!1),B(!1),V(-1),$(!1))}function J(e){e.target===K.current&&L&&e.preventDefault()}function Q(e){se(e.value),Y()}function ee(e){const t=e.value,n=E?/[ ,\t]+/:/[,\t]+/,r=t.split(n),o=r[r.length-1]||"";r.length>1&&ie(r.slice(0,-1)),O(o),b(o)}function te(e){let t=!1;return X()&&de()&&(e(),t=!0),t}function ne(){const e=ue()-1;e>-1&&se(m[e])}function re(){const e=ue();e<m.length&&(se(m[e]),function(e){A(m.length-Math.max(e,-1)-1)}(e))}function oe(){let e=!1;const t=function(){if(-1!==j)return ce()[j];return}();return t?(ae(t),e=!0):fe()&&(ae(N),e=!0),e}function ie(e){const t=[...new Set(e.map(g).filter(Boolean).filter((e=>!function(e){return m.some((t=>le(e)===le(t)))}(e))))];if(t.length>0){const e=[...m];e.splice(ue(),0,...t),v(e)}}function ae(e){k(e)?(ie([e]),(0,_b.speak)(_.added,"assertive"),O(""),V(-1),$(!1),B(!S),L&&Y()):(0,_b.speak)(_.__experimentalInvalid,"assertive")}function se(e){const t=m.filter((t=>le(t)!==le(e)));v(t),(0,_b.speak)(_.removed,"assertive")}function le(e){return"object"==typeof e?e.value:e}function ce(e=N,t=f,n=m,r=p,o=g){let i=o(e);const a=[],s=[],l=n.map((e=>"string"==typeof e?e:e.value));return 0===i.length?t=t.filter((e=>!l.includes(e))):(i=i.toLocaleLowerCase(),t.forEach((e=>{const t=e.toLocaleLowerCase().indexOf(i);-1===l.indexOf(e)&&(0===t?a.push(e):t>0&&s.push(e))})),t=a.concat(s)),t.slice(0,r)}function ue(){return m.length-D}function de(){return 0===N.length}function fe(){return g(N).length>0}function pe(e=!0){const t=N.trim().length>1,n=ce(N),r=n.length>0,o=X()&&S;if(B(o||t&&r),e&&(P&&t&&r?(V(0),$(!0)):(V(-1),$(!1))),t){const e=r?(0,c.sprintf)((0,c._n)("%d result found, use up and down arrow keys to navigate.","%d results found, use up and down arrow keys to navigate.",n.length),n.length):(0,c.__)("No results.");q(e,"assertive")}}function me(e,t,n){const r=le(e),o="string"!=typeof e?e.status:void 0,i=t+1,s=n.length;return(0,a.createElement)(xh,{key:"token-"+r},(0,a.createElement)(LO,{value:r,status:o,title:"string"!=typeof e?e.title:void 0,displayTransform:h,onClickRemove:Q,isBorderless:"string"!=typeof e&&e.isBorderless||w,onMouseEnter:"string"!=typeof e?e.onMouseEnter:void 0,onMouseLeave:"string"!=typeof e?e.onMouseLeave:void 0,disabled:"error"!==o&&x,messages:_,termsCount:s,termPosition:i}))}(0,a.useEffect)((()=>{L&&!X()&&Y()}),[L]),(0,a.useEffect)((()=>{const e=!_f()(f,W||[]);(e||m!==U)&&pe(e)}),[f,W,m,U]),(0,a.useEffect)((()=>{pe()}),[N]),(0,a.useEffect)((()=>{pe()}),[P]),x&&L&&(z(!1),O(""));const he=l()(d,"components-form-token-field__input-container",{"is-active":L,"is-disabled":x});let ge={className:"components-form-token-field",tabIndex:-1};const ve=ce();return x||(ge=Object.assign({},ge,{onKeyDown:function(e){let t=!1;if(!e.defaultPrevented&&!e.nativeEvent.isComposing&&229!==e.keyCode){switch(e.key){case"Backspace":t=te(ne);break;case"Enter":t=oe();break;case"ArrowLeft":t=function(){let e=!1;return de()&&(A((e=>Math.min(e+1,m.length))),e=!0),e}();break;case"ArrowUp":V((e=>(0===e?ce(N,f,m,p,g).length:e)-1)),$(!0),t=!0;break;case"ArrowRight":t=function(){let e=!1;return de()&&(A((e=>Math.max(e-1,0))),e=!0),e}();break;case"ArrowDown":V((e=>(e+1)%ce(N,f,m,p,g).length)),$(!0),t=!0;break;case"Delete":t=te(re);break;case"Space":E&&(t=oe());break;case"Escape":t=function(e){return e.target instanceof HTMLInputElement&&(O(e.target.value),B(!1),V(-1),$(!1)),!0}(e)}t&&e.preventDefault()}},onKeyPress:function(e){let t=!1;","===e.key&&(fe()&&ae(N),t=!0);t&&e.preventDefault()},onFocus:function(e){X()||e.target===K.current?(z(!0),B(S||F)):z(!1),"function"==typeof y&&y(e)}})),(0,a.createElement)("div",{...ge},(0,a.createElement)(jv,{htmlFor:`components-form-token-input-${I}`,className:"components-form-token-field__label"},s),(0,a.createElement)("div",{ref:K,className:he,tabIndex:-1,onMouseDown:J,onTouchStart:J},(0,a.createElement)(FO,{justify:"flex-start",align:"center",gap:1,wrap:!0,__next40pxDefaultSize:R,hasTokens:!!m.length},function(){const e=m.map(me);return e.splice(ue(),0,function(){const e={instanceId:I,autoCapitalize:n,autoComplete:r,placeholder:0===m.length?i:"",key:"input",disabled:x,value:N,onBlur:Z,isExpanded:F,selectedSuggestionIndex:j};return(0,a.createElement)(AT,{...e,onChange:o&&m.length>=o?void 0:ee,ref:G})}()),e}()),F&&(0,a.createElement)(BT,{instanceId:I,match:g(N),displayTransform:h,suggestions:ve,selectedIndex:j,scrollIntoView:H,onHover:function(e){const t=ce().indexOf(e);t>=0&&(V(t),$(!1))},onSelect:function(e){ae(e)},__experimentalRenderItem:C})),!M&&(0,a.createElement)(ph,{marginBottom:2}),T&&(0,a.createElement)(Hv,{id:`components-form-token-suggestions-howto-${I}`,className:"components-form-token-field__help",__nextHasNoMarginBottom:M},E?(0,c.__)("Separate with commas, spaces, or the Enter key."):(0,c.__)("Separate with commas or the Enter key.")))};const VO=()=>(0,a.createElement)(r.SVG,{width:"8",height:"8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Circle,{cx:"4",cy:"4",r:"4"}));function HO({currentPage:e,numberOfPages:t,setCurrentPage:n}){return(0,a.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,c.__)("Guide controls")},Array.from({length:t}).map(((r,o)=>(0,a.createElement)("li",{key:o,"aria-current":o===e?"step":void 0},(0,a.createElement)(bd,{key:o,icon:(0,a.createElement)(VO,null),"aria-label":(0,c.sprintf)((0,c.__)("Page %1$d of %2$d"),o+1,t),onClick:()=>n(o)})))))}var $O=function({children:e,className:t,contentLabel:n,finishButtonText:r=(0,c.__)("Finish"),onFinish:o,pages:i=[]}){const s=(0,a.useRef)(null),[u,d]=(0,a.useState)(0);var f;(0,a.useEffect)((()=>{const e=s.current?.querySelector(".components-guide");e instanceof HTMLElement&&e.focus()}),[u]),(0,a.useEffect)((()=>{a.Children.count(e)&&ql()("Passing children to <Guide>",{since:"5.5",alternative:"the `pages` prop"})}),[e]),a.Children.count(e)&&(i=null!==(f=a.Children.map(e,(e=>({content:e}))))&&void 0!==f?f:[]);const p=u>0,m=u<i.length-1,h=()=>{p&&d(u-1)},g=()=>{m&&d(u+1)};return 0===i.length?null:(0,a.createElement)(JT,{className:l()("components-guide",t),contentLabel:n,isDismissible:i.length>1,onRequestClose:o,onKeyDown:e=>{"ArrowLeft"===e.code?(h(),e.preventDefault()):"ArrowRight"===e.code&&(g(),e.preventDefault())},ref:s},(0,a.createElement)("div",{className:"components-guide__container"},(0,a.createElement)("div",{className:"components-guide__page"},i[u].image,i.length>1&&(0,a.createElement)(HO,{currentPage:u,numberOfPages:i.length,setCurrentPage:d}),i[u].content),(0,a.createElement)("div",{className:"components-guide__footer"},p&&(0,a.createElement)(bd,{className:"components-guide__back-button",variant:"tertiary",onClick:h},(0,c.__)("Previous")),m&&(0,a.createElement)(bd,{className:"components-guide__forward-button",variant:"primary",onClick:g},(0,c.__)("Next")),!m&&(0,a.createElement)(bd,{className:"components-guide__finish-button",variant:"primary",onClick:o},r))))};function WO(e){return(0,a.useEffect)((()=>{ql()("<GuidePage>",{since:"5.5",alternative:"the `pages` prop in <Guide>"})}),[]),(0,a.createElement)("div",{...e})}var UO=(0,a.forwardRef)((function({label:e,labelPosition:t,size:n,tooltip:r,...o},i){return ql()("wp.components.IconButton",{since:"5.4",alternative:"wp.components.Button",version:"6.2"}),(0,a.createElement)(bd,{...o,ref:i,tooltipPosition:t,iconSize:n,showTooltip:void 0!==r?!!r:void 0,label:r||e})}));const GO=Ju((function(e,t){const{role:n,wrapperClassName:r,...o}=function(e){const{as:t,className:n,onClick:r,role:o="listitem",size:i,...s}=Zu(e,"Item"),{spacedAround:l,size:c}=wk(),u=i||c,d=t||(void 0!==r?"button":"div"),f=Xu(),p=(0,a.useMemo)((()=>f("button"===d&&ak,bk[u]||bk.medium,lk,l&&fk,n)),[d,n,f,u,l]),m=f(sk);return{as:d,className:p,onClick:r,wrapperClassName:m,role:o,...s}}(e);return(0,a.createElement)("div",{role:n,className:r},(0,a.createElement)(md,{...o,ref:t}))}),"Item");var KO=GO;var qO=Ju((function(e,t){const n=Zu(e,"InputControlPrefixWrapper");return(0,a.createElement)(ph,{marginBottom:0,...n,ref:t})}),"InputControlPrefixWrapper");function YO({target:e,callback:t,shortcut:n,bindGlobal:r,eventName:o}){return(0,u.useKeyboardShortcut)(n,t,{bindGlobal:r,target:e,eventName:o}),null}var XO=function({children:e,shortcuts:t,bindGlobal:n,eventName:r}){const o=(0,a.useRef)(null),i=Object.entries(null!=t?t:{}).map((([e,t])=>(0,a.createElement)(YO,{key:e,shortcut:e,callback:t,bindGlobal:n,eventName:r,target:o})));return a.Children.count(e)?(0,a.createElement)("div",{ref:o},i,e):(0,a.createElement)(a.Fragment,null,i)};var ZO=function e(t){const{children:n,className:r="",label:o,hideSeparator:i}=t,s=(0,u.useInstanceId)(e);if(!a.Children.count(n))return null;const c=`components-menu-group-label-${s}`,d=l()(r,"components-menu-group",{"has-hidden-separator":i});return(0,a.createElement)("div",{className:d},o&&(0,a.createElement)("div",{className:"components-menu-group__label",id:c,"aria-hidden":"true"},o),(0,a.createElement)("div",{role:"group","aria-labelledby":o?c:void 0},n))};var JO=(0,a.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:i,iconPosition:s="right",shortcut:c,isSelected:u,role:d="menuitem",suffix:f,...p}=e;return o=l()("components-menu-item__button",o),r&&(n=(0,a.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,a.createElement)("span",{className:"components-menu-item__item"},n),(0,a.createElement)("span",{className:"components-menu-item__info"},r))),i&&"string"!=typeof i&&(i=(0,a.cloneElement)(i,{className:l()("components-menu-items__item-icon",{"has-icon-right":"right"===s})})),(0,a.createElement)(bd,{ref:t,"aria-checked":"menuitemcheckbox"===d||"menuitemradio"===d?u:void 0,role:d,icon:"left"===s?i:void 0,className:o,...p},(0,a.createElement)("span",{className:"components-menu-item__item"},n),!f&&(0,a.createElement)(Wf,{className:"components-menu-item__shortcut",shortcut:c}),!f&&i&&"right"===s&&(0,a.createElement)(Zl,{icon:i}),f)}));const QO=()=>{};var eD=function({choices:e=[],onHover:t=QO,onSelect:n,value:r}){return(0,a.createElement)(a.Fragment,null,e.map((e=>{const o=r===e.value;return(0,a.createElement)(JO,{key:e.value,role:"menuitemradio",icon:o&&i_,info:e.info,isSelected:o,shortcut:e.shortcut,className:"components-menu-items-choice",onClick:()=>{o||n(e.value)},onMouseEnter:()=>t(e.value),onMouseLeave:()=>t(null),"aria-label":e["aria-label"]},e.label)})))};var tD=(0,a.forwardRef)((function({eventToOffset:e,...t},n){return(0,a.createElement)(sT,{ref:n,stopNavigationEvents:!0,onlyBrowserTabstops:!0,eventToOffset:t=>{const{code:n,shiftKey:r}=t;return"Tab"===n?r?-1:1:e?e(t):void 0},...t})}));const nD="root",rD=100,oD=()=>{},iD=()=>{},aD=(0,a.createContext)({activeItem:void 0,activeMenu:nD,setActiveMenu:oD,navigationTree:{items:{},getItem:iD,addItem:oD,removeItem:oD,menus:{},getMenu:iD,addMenu:oD,removeMenu:oD,childMenu:{},traverseMenu:oD,isMenuEmpty:()=>!1}}),sD=()=>(0,a.useContext)(aD);var lD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));const cD=(0,a.forwardRef)((function({__nextHasNoMarginBottom:e,className:t,onChange:n,onKeyDown:r,value:o,label:i,placeholder:s=(0,c.__)("Search"),hideLabelFromVision:d=!0,help:f,onClose:p,...m},h){const g=(0,a.useRef)(),v=`components-search-control-${(0,u.useInstanceId)(cD)}`;return(0,a.createElement)(Uv,{__nextHasNoMarginBottom:e,label:i,id:v,hideLabelFromVision:d,help:f,className:l()(t,"components-search-control")},(0,a.createElement)("div",{className:"components-search-control__input-wrapper"},(0,a.createElement)("input",{...m,ref:(0,u.useMergeRefs)([g,h]),className:"components-search-control__input",id:v,type:"search",placeholder:s,onChange:e=>n(e.target.value),onKeyDown:r,autoComplete:"off",value:o||""}),(0,a.createElement)("div",{className:"components-search-control__icon"},p?(0,a.createElement)(bd,{icon:Wb,label:(0,c.__)("Close search"),onClick:p}):o?(0,a.createElement)(bd,{icon:Wb,label:(0,c.__)("Reset search"),onClick:()=>{n(""),g.current?.focus()}}):(0,a.createElement)(_y,{icon:lD}))))}));var uD=cD;const dD=fd("div",{target:"eeiismy11"})("width:100%;box-sizing:border-box;padding:0 ",rh(4),";overflow:hidden;"),fD=fd("div",{target:"eeiismy10"})("margin-top:",rh(6),";margin-bottom:",rh(6),";display:flex;flex-direction:column;ul{padding:0;margin:0;list-style:none;}.components-navigation__back-button{margin-bottom:",rh(6),";}.components-navigation__group+.components-navigation__group{margin-top:",rh(6),";}"),pD=fd(bd,{target:"eeiismy9"})({name:"26l0q2",styles:"&.is-tertiary{color:inherit;opacity:0.7;&:hover:not( :disabled ){opacity:1;box-shadow:none;color:inherit;}&:active:not( :disabled ){background:transparent;opacity:1;color:inherit;}}"}),mD=fd("div",{target:"eeiismy8"})({name:"1aubja5",styles:"overflow:hidden;width:100%"}),hD=fd("span",{target:"eeiismy7"})("height:",rh(6),";.components-button.is-small{color:inherit;opacity:0.7;margin-right:",rh(1),";padding:0;&:active:not( :disabled ){background:none;opacity:1;color:inherit;}&:hover:not( :disabled ){box-shadow:none;opacity:1;color:inherit;}}"),gD=fd(uD,{target:"eeiismy6"})({name:"za3n3e",styles:"input[type='search'].components-search-control__input{margin:0;background:#303030;color:#fff;&:focus{background:#434343;color:#fff;}&::placeholder{color:rgba( 255, 255, 255, 0.6 );}}svg{fill:white;}.components-button.has-icon{padding:0;min-width:auto;}"}),vD=fd(u_,{target:"eeiismy5"})("min-height:",rh(12),";align-items:center;color:inherit;display:flex;justify-content:space-between;margin-bottom:",rh(2),";padding:",(()=>(0,c.isRTL)()?`${rh(1)} ${rh(4)} ${rh(1)} ${rh(2)}`:`${rh(1)} ${rh(2)} ${rh(1)} ${rh(4)}`),";"),bD=fd("li",{target:"eeiismy4"})("border-radius:2px;color:inherit;margin-bottom:0;>button,>a.components-button,>a{width:100%;color:inherit;opacity:0.7;padding:",rh(2)," ",rh(4),";",uh({textAlign:"left"},{textAlign:"right"})," &:hover,&:focus:not( [aria-disabled='true'] ):active,&:active:not( [aria-disabled='true'] ):active{color:inherit;opacity:1;}}&.is-active{background-color:",Bp.ui.theme,";color:",Bp.white,";>button,>a{color:",Bp.white,";opacity:1;}}>svg path{color:",Bp.gray[600],";}"),yD=fd("div",{target:"eeiismy3"})("display:flex;align-items:center;height:auto;min-height:40px;margin:0;padding:",rh(1.5)," ",rh(4),";font-weight:400;line-height:20px;width:100%;color:inherit;opacity:0.7;"),wD=fd("span",{target:"eeiismy2"})("display:flex;margin-right:",rh(2),";"),xD=fd("span",{target:"eeiismy1"})("margin-left:",(()=>(0,c.isRTL)()?"0":rh(2)),";margin-right:",(()=>(0,c.isRTL)()?rh(2):"0"),";display:inline-flex;padding:",rh(1)," ",rh(3),";border-radius:2px;animation:fade-in 250ms ease-out;@keyframes fade-in{from{opacity:0;}to{opacity:1;}}",jp("animation"),";"),ED=fd(eg,{target:"eeiismy0"})((()=>(0,c.isRTL)()?"margin-left: auto;":"margin-right: auto;")," font-size:14px;line-height:20px;color:inherit;");function _D(){const[e,t]=(0,a.useState)({});return{nodes:e,getNode:t=>e[t],addNode:(e,n)=>{const{children:r,...o}=n;return t((t=>({...t,[e]:o})))},removeNode:e=>t((t=>{const{[e]:n,...r}=t;return r}))}}const CD=()=>{};var SD=function({activeItem:e,activeMenu:t=nD,children:n,className:r,onActivateMenu:o=CD}){const[i,s]=(0,a.useState)(t),[u,d]=(0,a.useState)(),f=(()=>{const{nodes:e,getNode:t,addNode:n,removeNode:r}=_D(),{nodes:o,getNode:i,addNode:s,removeNode:l}=_D(),[c,u]=(0,a.useState)({}),d=e=>c[e]||[],f=(e,t)=>{const n=[];let r,o=[e];for(;o.length>0&&(r=i(o.shift()),!r||n.includes(r.menu)||(n.push(r.menu),o=[...o,...d(r.menu)],!1!==t(r))););};return{items:e,getItem:t,addItem:n,removeItem:r,menus:o,getMenu:i,addMenu:(e,t)=>{u((n=>{const r={...n};return t.parentMenu?(r[t.parentMenu]||(r[t.parentMenu]=[]),r[t.parentMenu].push(e),r):r})),s(e,t)},removeMenu:l,childMenu:c,traverseMenu:f,isMenuEmpty:e=>{let t=!0;return f(e,(e=>{if(!e.isEmpty)return t=!1,!1})),t}}})(),p=(0,c.isRTL)()?"right":"left",m=(e,t=p)=>{f.getMenu(e)&&(d(t),s(e),o(e))},h=(0,a.useRef)(!1);(0,a.useEffect)((()=>{h.current||(h.current=!0)}),[]),(0,a.useEffect)((()=>{t!==i&&m(t)}),[t]);const g={activeItem:e,activeMenu:i,setActiveMenu:m,navigationTree:f},v=l()("components-navigation",r),b=Fm({type:"slide-in",origin:u});return(0,a.createElement)(dD,{className:v},(0,a.createElement)("div",{key:i,className:b?l()({[b]:h.current&&u}):void 0},(0,a.createElement)(aD.Provider,{value:g},n)))};var kD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));var TD=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));const RD=(0,a.forwardRef)((function({backButtonLabel:e,className:t,href:n,onClick:r,parentMenu:o},i){const{setActiveMenu:s,navigationTree:u}=sD(),d=l()("components-navigation__back-button",t),f=void 0!==o?u.getMenu(o)?.title:void 0,p=(0,c.isRTL)()?kD:TD;return(0,a.createElement)(pD,{className:d,href:n,variant:"tertiary",ref:i,onClick:e=>{"function"==typeof r&&r(e);const t=(0,c.isRTL)()?"left":"right";o&&!e.defaultPrevented&&s(o,t)}},(0,a.createElement)(_y,{icon:p}),e||f||(0,c.__)("Back"))}));var PD=RD;const MD=(0,a.createContext)({group:void 0});let ID=0;var ND=function({children:e,className:t,title:n}){const[r]=(0,a.useState)("group-"+ ++ID),{navigationTree:{items:o}}=sD(),i={group:r};if(!Object.values(o).some((e=>e.group===r&&e._isVisible)))return(0,a.createElement)(MD.Provider,{value:i},e);const s=`components-navigation__group-title-${r}`,c=l()("components-navigation__group",t);return(0,a.createElement)(MD.Provider,{value:i},(0,a.createElement)("li",{className:c},n&&(0,a.createElement)(vD,{className:"components-navigation__group-title",id:s,level:3},n),(0,a.createElement)("ul",{"aria-labelledby":s,role:"group"},e)))};function OD(e){const{badge:t,title:n}=e;return(0,a.createElement)(a.Fragment,null,n&&(0,a.createElement)(ED,{className:"components-navigation__item-title",as:"span"},n),t&&(0,a.createElement)(xD,{className:"components-navigation__item-badge"},t))}const DD=(0,a.createContext)({menu:void 0,search:""}),AD=()=>(0,a.useContext)(DD),LD=e=>xb()(e).replace(/^\//,"").toLowerCase(),zD=(e,t)=>{const{activeMenu:n,navigationTree:{addItem:r,removeItem:o}}=sD(),{group:i}=(0,a.useContext)(MD),{menu:s,search:l}=AD();(0,a.useEffect)((()=>{const a=n===s,c=!l||void 0!==t.title&&((e,t)=>-1!==LD(e).indexOf(LD(t)))(t.title,l);return r(e,{...t,group:i,menu:s,_isVisible:a&&c}),()=>{o(e)}}),[n,l])};let FD=0;function BD(e){const{children:t,className:n,title:r,href:o,...i}=e,[s]=(0,a.useState)("item-"+ ++FD);zD(s,e);const{navigationTree:c}=sD();if(!c.getItem(s)?._isVisible)return null;const u=l()("components-navigation__item",n);return(0,a.createElement)(bD,{className:u,...i},t)}const jD=()=>{};var VD=function(e){const{badge:t,children:n,className:r,href:o,item:i,navigateToMenu:s,onClick:u=jD,title:d,icon:f,hideIfTargetMenuEmpty:p,isText:m,...h}=e,{activeItem:g,setActiveMenu:v,navigationTree:{isMenuEmpty:b}}=sD();if(p&&s&&b(s))return null;const y=i&&g===i,w=l()(r,{"is-active":y}),x=(0,c.isRTL)()?TD:kD,E=n?e:{...e,onClick:void 0},_=m?h:{as:bd,href:o,onClick:e=>{s&&v(s),u(e)},"aria-current":y?"page":void 0,...h};return(0,a.createElement)(BD,{...E,className:w},n||(0,a.createElement)(yD,{..._},f&&(0,a.createElement)(wD,null,(0,a.createElement)(_y,{icon:f})),(0,a.createElement)(OD,{title:d,badge:t}),s&&(0,a.createElement)(_y,{icon:x})))};var HD=(0,u.createHigherOrderComponent)((e=>t=>(0,a.createElement)(e,{...t,speak:_b.speak,debouncedSpeak:(0,u.useDebounce)(_b.speak,500)})),"withSpokenMessages");var $D=HD((function({debouncedSpeak:e,onCloseSearch:t,onSearch:n,search:r,title:o}){const{navigationTree:{items:i}}=sD(),{menu:s}=AD(),l=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e=setTimeout((()=>{l.current?.focus()}),rD);return()=>{clearTimeout(e)}}),[]),(0,a.useEffect)((()=>{if(!r)return;const t=Object.values(i).filter((e=>e._isVisible)).length,n=(0,c.sprintf)((0,c._n)("%d result found.","%d results found.",t),t);e(n)}),[i,r]);const u=()=>{n?.(""),t()},d=`components-navigation__menu-title-search-${s}`,f=(0,c.sprintf)((0,c.__)("Search %s"),o?.toLowerCase()).trim();return(0,a.createElement)("div",{className:"components-navigation__menu-title-search"},(0,a.createElement)(gD,{autoComplete:"off",className:"components-navigation__menu-search-input",id:d,onChange:e=>n?.(e),onKeyDown:e=>{"Escape"!==e.code||e.defaultPrevented||(e.preventDefault(),u())},placeholder:f,onClose:u,ref:l,type:"search",value:r}))}));function WD({hasSearch:e,onSearch:t,search:n,title:r,titleAction:o}){const[i,s]=(0,a.useState)(!1),{menu:l}=AD(),u=(0,a.useRef)(null);if(!r)return null;const d=`components-navigation__menu-title-${l}`,f=(0,c.sprintf)((0,c.__)("Search in %s"),r);return(0,a.createElement)(mD,{className:"components-navigation__menu-title"},!i&&(0,a.createElement)(vD,{as:"h2",className:"components-navigation__menu-title-heading",level:3},(0,a.createElement)("span",{id:d},r),(e||o)&&(0,a.createElement)(hD,null,o,e&&(0,a.createElement)(bd,{isSmall:!0,variant:"tertiary",label:f,onClick:()=>s(!0),ref:u},(0,a.createElement)(_y,{icon:lD})))),i&&(0,a.createElement)("div",{className:Fm({type:"slide-in",origin:"left"})},(0,a.createElement)($D,{onCloseSearch:()=>{s(!1),setTimeout((()=>{u.current?.focus()}),rD)},onSearch:t,search:n,title:r})))}function UD({search:e}){const{navigationTree:{items:t}}=sD(),n=Object.values(t).filter((e=>e._isVisible)).length;return!e||n?null:(0,a.createElement)(bD,null,(0,a.createElement)(yD,null,(0,c.__)("No results found.")," "))}var GD=function(e){const{backButtonLabel:t,children:n,className:r,hasSearch:o,menu:i=nD,onBackButtonClick:s,onSearch:c,parentMenu:u,search:d,isSearchDebouncing:f,title:p,titleAction:m}=e,[h,g]=(0,a.useState)("");(e=>{const{navigationTree:{addMenu:t,removeMenu:n}}=sD(),r=e.menu||nD;(0,a.useEffect)((()=>(t(r,{...e,menu:r}),()=>{n(r)})),[])})(e);const{activeMenu:v}=sD(),b={menu:i,search:h};if(v!==i)return(0,a.createElement)(DD.Provider,{value:b},n);const y=!!c,w=y?d:h,x=y?c:g,E=`components-navigation__menu-title-${i}`,_=l()("components-navigation__menu",r);return(0,a.createElement)(DD.Provider,{value:b},(0,a.createElement)(fD,{className:_},(u||s)&&(0,a.createElement)(PD,{backButtonLabel:t,parentMenu:u,onClick:s}),p&&(0,a.createElement)(WD,{hasSearch:o,onSearch:x,search:w,title:p,titleAction:m}),(0,a.createElement)(cT,null,(0,a.createElement)("ul",{"aria-labelledby":E},n,w&&!f&&(0,a.createElement)(UD,{search:w})))))};const KD=(0,a.createContext)({location:{},goTo:()=>{},goBack:()=>{},goToParent:()=>{},addScreen:()=>{},removeScreen:()=>{},params:{}});function qD(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[s=n+1])throw new TypeError('Pattern cannot start with "?" at '.concat(s));for(;s<e.length;)if("\\"!==e[s]){if(")"===e[s]){if(0==--o){s++;break}}else if("("===e[s]&&(o++,"?"!==e[s+1]))throw new TypeError("Capturing groups are not allowed at ".concat(s));i+=e[s++]}else i+=e[s++]+e[s++];if(o)throw new TypeError("Unbalanced pattern at ".concat(n));if(!i)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:i}),n=s}else{for(var a="",s=n+1;s<e.length;){var l=e.charCodeAt(s);if(!(l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||95===l))break;a+=e[s++]}if(!a)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:a}),n=s}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,i="[^".concat(XD(t.delimiter||"/#?"),"]+?"),a=[],s=0,l=0,c="",u=function(e){if(l<n.length&&n[l].type===e)return n[l++].value},d=function(e){var t=u(e);if(void 0!==t)return t;var r=n[l],o=r.type,i=r.index;throw new TypeError("Unexpected ".concat(o," at ").concat(i,", expected ").concat(e))},f=function(){for(var e,t="";e=u("CHAR")||u("ESCAPED_CHAR");)t+=e;return t};l<n.length;){var p=u("CHAR"),m=u("NAME"),h=u("PATTERN");if(m||h){var g=p||"";-1===o.indexOf(g)&&(c+=g,g=""),c&&(a.push(c),c=""),a.push({name:m||s++,prefix:g,suffix:"",pattern:h||i,modifier:u("MODIFIER")||""})}else{var v=p||u("ESCAPED_CHAR");if(v)c+=v;else if(c&&(a.push(c),c=""),u("OPEN")){g=f();var b=u("NAME")||"",y=u("PATTERN")||"",w=f();d("CLOSE"),a.push({name:b||(y?s++:""),pattern:b&&!y?i:y,prefix:g,suffix:w,modifier:u("MODIFIER")||""})}else d("END")}}return a}function YD(e,t){var n=[];return function(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var i=r[0],a=r.index,s=Object.create(null),l=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?s[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):s[n.name]=o(r[e],n)},c=1;c<r.length;c++)l(c);return{path:i,index:a,params:s}}}(QD(e,n,t),n,t)}function XD(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function ZD(e){return e&&e.sensitive?"":"i"}function JD(e,t,n){return function(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,i=n.start,a=void 0===i||i,s=n.end,l=void 0===s||s,c=n.encode,u=void 0===c?function(e){return e}:c,d=n.delimiter,f=void 0===d?"/#?":d,p=n.endsWith,m="[".concat(XD(void 0===p?"":p),"]|$"),h="[".concat(XD(f),"]"),g=a?"^":"",v=0,b=e;v<b.length;v++){var y=b[v];if("string"==typeof y)g+=XD(u(y));else{var w=XD(u(y.prefix)),x=XD(u(y.suffix));if(y.pattern)if(t&&t.push(y),w||x)if("+"===y.modifier||"*"===y.modifier){var E="*"===y.modifier?"?":"";g+="(?:".concat(w,"((?:").concat(y.pattern,")(?:").concat(x).concat(w,"(?:").concat(y.pattern,"))*)").concat(x,")").concat(E)}else g+="(?:".concat(w,"(").concat(y.pattern,")").concat(x,")").concat(y.modifier);else"+"===y.modifier||"*"===y.modifier?g+="((?:".concat(y.pattern,")").concat(y.modifier,")"):g+="(".concat(y.pattern,")").concat(y.modifier);else g+="(?:".concat(w).concat(x,")").concat(y.modifier)}}if(l)o||(g+="".concat(h,"?")),g+=n.endsWith?"(?=".concat(m,")"):"$";else{var _=e[e.length-1],C="string"==typeof _?h.indexOf(_[_.length-1])>-1:void 0===_;o||(g+="(?:".concat(h,"(?=").concat(m,"))?")),C||(g+="(?=".concat(h,"|").concat(m,")"))}return new RegExp(g,ZD(n))}(qD(e,n),t,n)}function QD(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;for(var n=/\((?:\?<(.*?)>)?(?!\?)/g,r=0,o=n.exec(e.source);o;)t.push({name:o[1]||r++,prefix:"",suffix:"",modifier:"",pattern:""}),o=n.exec(e.source);return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return QD(e,t,n).source}));return new RegExp("(?:".concat(r.join("|"),")"),ZD(n))}(e,t,n):JD(e,t,n)}function eA(e,t){return YD(t,{decode:decodeURIComponent})(e)}function tA(e=[],t){switch(t.type){case"add":return[...e,t.screen];case"remove":return e.filter((e=>e.id!==t.screen.id))}return e}var nA={name:"15bx5k",styles:"overflow-x:hidden"};const rA=Ju((function(e,t){const{initialPath:n,children:r,className:o,...i}=Zu(e,"NavigatorProvider"),[s,l]=(0,a.useState)([{path:n}]),c=(0,a.useRef)([]),[u,d]=(0,a.useReducer)(tA,[]),f=(0,a.useRef)([]);(0,a.useEffect)((()=>{f.current=u}),[u]),(0,a.useEffect)((()=>{c.current=s}),[s]);const p=(0,a.useRef)(),m=(0,a.useMemo)((()=>{let e;if(0===s.length||void 0===(e=s[s.length-1].path))return void(p.current=void 0);const t=(e=>{const t=function(e,t){for(const n of t){const t=eA(e,n.path);if(t)return{params:t.params,id:n.id}}}(e,u);return p.current&&t&&_f()(t.params,p.current.params)&&t.id===p.current.id?p.current:t})(e);return p.current=t,t}),[u,s]),h=(0,a.useCallback)((e=>d({type:"add",screen:e})),[]),g=(0,a.useCallback)((e=>d({type:"remove",screen:e})),[]),v=(0,a.useCallback)((()=>{l((e=>e.length<=1?e:[...e.slice(0,-2),{...e[e.length-2],isBack:!0,hasRestoredFocus:!1}]))}),[]),b=(0,a.useCallback)(((e,t={})=>{const{focusTargetSelector:n,isBack:r=!1,skipFocus:o=!1,replace:i=!1,...a}=t;r&&c.current.length>1&&c.current[c.current.length-2].path===e?v():l((t=>{const s={...a,path:e,isBack:r,hasRestoredFocus:!1,skipFocus:o};if(0===t.length)return i?[]:[s];const l=t.slice(t.length>49?1:0,-1);return i||l.push({...t[t.length-1],focusTargetSelector:n}),l.push(s),l}))}),[v]),y=(0,a.useCallback)(((e={})=>{const t=c.current[c.current.length-1].path;if(void 0===t)return;const n=function(e,t){if(!e.startsWith("/"))return;const n=e.split("/");let r;for(;n.length>1&&void 0===r;){n.pop();const e=""===n.join("/")?"/":n.join("/");t.find((t=>!1!==eA(e,t.path)))&&(r=e)}return r}(t,f.current);void 0!==n&&b(n,{...e,isBack:!0})}),[b]),w=(0,a.useMemo)((()=>({location:{...s[s.length-1],isInitial:1===s.length},params:m?m.params:{},match:m?m.id:void 0,goTo:b,goBack:v,goToParent:y,addScreen:h,removeScreen:g})),[s,m,b,v,y,h,g]),x=Xu(),E=(0,a.useMemo)((()=>x(nA,o)),[o,x]);return(0,a.createElement)(md,{ref:t,className:E,...i},(0,a.createElement)(KD.Provider,{value:w},r))}),"NavigatorProvider");var oA=rA,iA=window.wp.escapeHtml;var aA={name:"14x3t6z",styles:"overflow-x:auto;max-height:100%"};const sA=Ju((function(e,t){const n=(0,a.useId)(),{children:r,className:o,path:i,...s}=Zu(e,"NavigatorScreen"),l=(0,u.useReducedMotion)(),{location:d,match:f,addScreen:p,removeScreen:m}=(0,a.useContext)(KD),h=f===n,g=(0,a.useRef)(null);(0,a.useEffect)((()=>{const e={id:n,path:(0,iA.escapeAttribute)(i)};return p(e),()=>m(e)}),[n,i,p,m]);const v=Xu(),b=(0,a.useMemo)((()=>v(aA,o)),[o,v]),y=(0,a.useRef)(d);(0,a.useEffect)((()=>{y.current=d}),[d]);const w=d.isInitial&&!d.isBack;(0,a.useEffect)((()=>{if(w||!h||!g.current||y.current.hasRestoredFocus||d.skipFocus)return;const e=g.current.ownerDocument.activeElement;if(g.current.contains(e))return;let t=null;if(d.isBack&&d?.focusTargetSelector&&(t=g.current.querySelector(d.focusTargetSelector)),!t){const e=Yl.focus.tabbable.find(g.current)[0];t=null!=e?e:g.current}y.current.hasRestoredFocus=!0,t.focus()}),[w,h,d.isBack,d.focusTargetSelector,d.skipFocus]);const x=(0,u.useMergeRefs)([t,g]);if(!h)return null;if(l)return(0,a.createElement)(md,{ref:x,className:b,...s},r);const E={opacity:1,transition:{delay:0,duration:.14,ease:"easeInOut"},x:0},_=!(d.isInitial&&!d.isBack)&&{opacity:0,x:(0,c.isRTL)()&&d.isBack||!(0,c.isRTL)()&&!d.isBack?50:-50},C={animate:E,exit:{delay:0,opacity:0,x:!(0,c.isRTL)()&&d.isBack||(0,c.isRTL)()&&!d.isBack?50:-50,transition:{duration:.14,ease:"easeInOut"}},initial:_};return(0,a.createElement)(Ul.div,{ref:x,className:b,...s,...C},r)}),"NavigatorScreen");var lA=sA;var cA=function(){const{location:e,params:t,goTo:n,goBack:r,goToParent:o}=(0,a.useContext)(KD);return{location:e,goTo:n,goBack:r,goToParent:o,params:t}};const uA=(e,t)=>`[${e}="${t}"]`;var dA=Ju((function(e,t){const n=function(e){const{path:t,onClick:n,as:r=bd,attributeName:o="id",...i}=Zu(e,"NavigatorButton"),s=(0,iA.escapeAttribute)(t),{goTo:l}=cA();return{as:r,onClick:(0,a.useCallback)((e=>{e.preventDefault(),l(s,{focusTargetSelector:uA(o,s)}),n?.(e)}),[l,n,o,s]),...i,[o]:s}}(e);return(0,a.createElement)(md,{ref:t,...n})}),"NavigatorButton");function fA(e){const{onClick:t,as:n=bd,goToParent:r=!1,...o}=Zu(e,"NavigatorBackButton"),{goBack:i,goToParent:s}=cA();return{as:n,onClick:(0,a.useCallback)((e=>{e.preventDefault(),r?s():i(),t?.(e)}),[r,s,i,t]),...o}}var pA=Ju((function(e,t){const n=fA(e);return(0,a.createElement)(md,{ref:t,...n})}),"NavigatorBackButton");var mA=Ju((function(e,t){const n=fA({...e,goToParent:!0});return(0,a.createElement)(md,{ref:t,...n})}),"NavigatorToParentButton");const hA=()=>{};function gA(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}var vA=function({className:e,status:t="info",children:n,spokenMessage:r=n,onRemove:o=hA,isDismissible:i=!0,actions:s=[],politeness:u=gA(t),__unstableHTML:d,onDismiss:f=hA}){!function(e,t){const n="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{n&&(0,_b.speak)(n,t)}),[n,t])}(r,u);const p=l()(e,"components-notice","is-"+t,{"is-dismissible":i});return d&&"string"==typeof n&&(n=(0,a.createElement)(a.RawHTML,null,n)),(0,a.createElement)("div",{className:p},(0,a.createElement)("div",{className:"components-notice__content"},n,(0,a.createElement)("div",{className:"components-notice__actions"},s.map((({className:e,label:t,isPrimary:n,variant:r,noDefaultClasses:o=!1,onClick:i,url:s},c)=>{let u=r;return"primary"===r||o||(u=s?"link":"secondary"),void 0===u&&n&&(u="primary"),(0,a.createElement)(bd,{key:c,href:s,variant:u,onClick:s?void 0:i,className:l()("components-notice__action",e)},t)})))),i&&(0,a.createElement)(bd,{className:"components-notice__dismiss",icon:Gl,label:(0,c.__)("Dismiss this notice"),onClick:e=>{e?.preventDefault?.(),f(),o()},showTooltip:!1}))};const bA=()=>{};var yA=function({notices:e,onRemove:t=bA,className:n,children:r}){const o=e=>()=>t(e);return n=l()("components-notice-list",n),(0,a.createElement)("div",{className:n},r,[...e].reverse().map((e=>{const{content:t,...n}=e;return(0,a.createElement)(vA,{...n,key:e.id,onRemove:o(e.id)},e.content)})))};var wA=function({label:e,children:t}){return(0,a.createElement)("div",{className:"components-panel__header"},e&&(0,a.createElement)("h2",null,e),t)};var xA=(0,a.forwardRef)((function({header:e,className:t,children:n},r){const o=l()(t,"components-panel");return(0,a.createElement)("div",{className:o,ref:r},e&&(0,a.createElement)(wA,{label:e}),n)}));var EA=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));const _A=()=>{};const CA=(0,a.forwardRef)((({isOpened:e,icon:t,title:n,...r},o)=>n?(0,a.createElement)("h2",{className:"components-panel__body-title"},(0,a.createElement)(bd,{className:"components-panel__body-toggle","aria-expanded":e,ref:o,...r},(0,a.createElement)("span",{"aria-hidden":"true"},(0,a.createElement)(Zl,{className:"components-panel__arrow",icon:e?EA:Cy})),n,t&&(0,a.createElement)(Zl,{icon:t,className:"components-panel__icon",size:20}))):null)),SA=(0,a.forwardRef)((function(e,t){const{buttonProps:n={},children:r,className:o,icon:i,initialOpen:s,onToggle:c=_A,opened:d,title:f,scrollAfterOpen:p=!0}=e,[m,h]=My(d,{initial:void 0===s||s,fallback:!1}),g=(0,a.useRef)(null),v=(0,u.useReducedMotion)()?"auto":"smooth",b=(0,a.useRef)();b.current=p,oc((()=>{m&&b.current&&g.current?.scrollIntoView&&g.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:v})}),[m,v]);const y=l()("components-panel__body",o,{"is-opened":m});return(0,a.createElement)("div",{className:y,ref:(0,u.useMergeRefs)([g,t])},(0,a.createElement)(CA,{icon:i,isOpened:Boolean(m),onClick:e=>{e.preventDefault();const t=!m;h(t),c(t)},title:f,...n}),"function"==typeof r?r({opened:Boolean(m)}):m&&r)}));var kA=SA;var TA=(0,a.forwardRef)((function({className:e,children:t},n){return(0,a.createElement)("div",{className:l()("components-panel__row",e),ref:n},t)}));const RA=(0,a.createElement)(r.SVG,{className:"components-placeholder__illustration",fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",preserveAspectRatio:"none"},(0,a.createElement)(r.Path,{vectorEffect:"non-scaling-stroke",d:"M60 60 0 0"}));var PA=function(e){const{icon:t,children:n,label:r,instructions:o,className:i,notices:s,preview:c,isColumnLayout:d,withIllustration:f,...p}=e,[m,{width:h}]=(0,u.useResizeObserver)();let g;"number"==typeof h&&(g={"is-large":h>=480,"is-medium":h>=160&&h<480,"is-small":h<160});const v=l()("components-placeholder",i,g,f?"has-illustration":null),b=l()("components-placeholder__fieldset",{"is-column-layout":d});return(0,a.createElement)("div",{...p,className:v},f?RA:null,m,s,c&&(0,a.createElement)("div",{className:"components-placeholder__preview"},c),(0,a.createElement)("div",{className:"components-placeholder__label"},(0,a.createElement)(Zl,{icon:t}),r),(0,a.createElement)("fieldset",{className:b},!!o&&(0,a.createElement)("legend",{className:"components-placeholder__instructions"},o),n))};const MA=e=>e.every((e=>null!==e.parent));function IA(e){const t=e.map((e=>({children:[],parent:null,...e,id:String(e.id)})));if(!MA(t))return t;const n=t.reduce(((e,t)=>{const{parent:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{}),r=e=>e.map((e=>{const t=n[e.id];return{...e,children:t&&t.length?r(t):[]}}));return r(n[0]||[])}var NA=window.wp.htmlEntities;function OA(e,t=0){return e.flatMap((e=>[{value:e.id,label:" ".repeat(3*t)+(0,NA.decodeEntities)(e.name)},...OA(e.children||[],t+1)]))}var DA=function({label:e,noOptionLabel:t,onChange:n,selectedId:r,tree:o=[],...i}){const s=(0,a.useMemo)((()=>[t&&{value:"",label:t},...OA(o)].filter((e=>!!e))),[t,o]);return(0,a.createElement)(Ty,{label:e,options:s,onChange:n,value:r,...i})};function AA({label:e,noOptionLabel:t,authorList:n,selectedAuthorId:r,onChange:o}){if(!n)return null;const i=IA(n);return(0,a.createElement)(DA,{label:e,noOptionLabel:t,onChange:o,tree:i,selectedId:void 0!==r?String(r):void 0,__nextHasNoMarginBottom:!0})}function LA({label:e,noOptionLabel:t,categoriesList:n,selectedCategoryId:r,onChange:o,...i}){const s=(0,a.useMemo)((()=>IA(n)),[n]);return(0,a.createElement)(DA,{label:e,noOptionLabel:t,onChange:o,tree:s,selectedId:void 0!==r?String(r):void 0,...i,__nextHasNoMarginBottom:!0})}function zA(e){return"categoriesList"in e}function FA(e){return"categorySuggestions"in e}var BA=function({authorList:e,selectedAuthorId:t,numberOfItems:n,order:r,orderBy:o,maxItems:i=100,minItems:s=1,onAuthorChange:l,onNumberOfItemsChange:u,onOrderChange:d,onOrderByChange:f,...p}){return(0,a.createElement)(l_,{spacing:"4",className:"components-query-controls"},[d&&f&&(0,a.createElement)(Ry,{__nextHasNoMarginBottom:!0,key:"query-controls-order-select",label:(0,c.__)("Order by"),value:`${o}/${r}`,options:[{label:(0,c.__)("Newest to oldest"),value:"date/desc"},{label:(0,c.__)("Oldest to newest"),value:"date/asc"},{label:(0,c.__)("A → Z"),value:"title/asc"},{label:(0,c.__)("Z → A"),value:"title/desc"}],onChange:e=>{if("string"!=typeof e)return;const[t,n]=e.split("/");n!==r&&d(n),t!==o&&f(t)}}),zA(p)&&p.categoriesList&&p.onCategoryChange&&(0,a.createElement)(LA,{key:"query-controls-category-select",categoriesList:p.categoriesList,label:(0,c.__)("Category"),noOptionLabel:(0,c.__)("All"),selectedCategoryId:p.selectedCategoryId,onChange:p.onCategoryChange}),FA(p)&&p.categorySuggestions&&p.onCategoryChange&&(0,a.createElement)(jO,{__nextHasNoMarginBottom:!0,key:"query-controls-categories-select",label:(0,c.__)("Categories"),value:p.selectedCategories&&p.selectedCategories.map((e=>({id:e.id,value:e.name||e.value}))),suggestions:Object.keys(p.categorySuggestions),onChange:p.onCategoryChange,maxSuggestions:20}),l&&(0,a.createElement)(AA,{key:"query-controls-author-select",authorList:e,label:(0,c.__)("Author"),noOptionLabel:(0,c.__)("All"),selectedAuthorId:t,onChange:l}),u&&(0,a.createElement)(iw,{__nextHasNoMarginBottom:!0,key:"query-controls-range-control",label:(0,c.__)("Number of items"),value:n,onChange:u,min:s,max:i,required:!0})])};var jA=(0,a.createContext)({state:null,setState:()=>{}});var VA=(0,a.forwardRef)((function({children:e,value:t,...n},r){const o=(0,a.useContext)(jA),i=o.state===t;return(0,a.createElement)(pO,{ref:r,as:bd,variant:i?"primary":"secondary",value:t,...o,...n},e||t)}));var HA=(0,a.forwardRef)((function({label:e,checked:t,defaultChecked:n,disabled:r,onChange:o,...i},s){const l=JN({state:n,baseId:i.id}),c={...l,disabled:r,state:null!=t?t:l.state,setState:null!=o?o:l.setState};return(0,a.createElement)(jA.Provider,{value:c},(0,a.createElement)(tO,{ref:s,as:XC,"aria-label":e,...l,...i}))}));var $A=function e(t){const{label:n,className:r,selected:o,help:i,onChange:s,hideLabelFromVision:c,options:d=[],...f}=t,p=`inspector-radio-control-${(0,u.useInstanceId)(e)}`,m=e=>s(e.target.value);return d?.length?(0,a.createElement)(Uv,{__nextHasNoMarginBottom:!0,label:n,id:p,hideLabelFromVision:c,help:i,className:l()(r,"components-radio-control")},(0,a.createElement)(l_,{spacing:1},d.map(((e,t)=>(0,a.createElement)("div",{key:`${p}-${t}`,className:"components-radio-control__option"},(0,a.createElement)("input",{id:`${p}-${t}`,className:"components-radio-control__input",type:"radio",name:p,value:e.value,onChange:m,checked:e.value===o,"aria-describedby":i?`${p}__help`:void 0,...f}),(0,a.createElement)("label",{htmlFor:`${p}-${t}`},e.label)))))):null},WA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),UA=function(){return UA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},UA.apply(this,arguments)},GA={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},KA={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},qA={width:"20px",height:"20px",position:"absolute"},YA={top:UA(UA({},GA),{top:"-5px"}),right:UA(UA({},KA),{left:void 0,right:"-5px"}),bottom:UA(UA({},GA),{top:void 0,bottom:"-5px"}),left:UA(UA({},KA),{left:"-5px"}),topRight:UA(UA({},qA),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:UA(UA({},qA),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:UA(UA({},qA),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:UA(UA({},qA),{left:"-10px",top:"-10px",cursor:"nw-resize"})},XA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return WA(t,e),t.prototype.render=function(){return v.createElement("div",{className:this.props.className||"",style:UA(UA({position:"absolute",userSelect:"none"},YA[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(v.PureComponent),ZA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),JA=function(){return JA=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},JA.apply(this,arguments)},QA={width:"auto",height:"auto"},eL=function(e,t,n){return Math.max(Math.min(e,n),t)},tL=function(e,t){return Math.round(e/t)*t},nL=function(e,t){return new RegExp(e,"i").test(t)},rL=function(e){return Boolean(e.touches&&e.touches.length)},oL=function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,o){return Math.abs(r-e)<Math.abs(t[n]-e)?o:n}),0),o=Math.abs(t[r]-e);return 0===n||o<n?t[r]:e},iL=function(e){return"auto"===(e=e.toString())||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:e+"px"},aL=function(e,t,n,r){if(e&&"string"==typeof e){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%"))return t*(Number(e.replace("%",""))/100);if(e.endsWith("vw"))return n*(Number(e.replace("vw",""))/100);if(e.endsWith("vh"))return r*(Number(e.replace("vh",""))/100)}return e},sL=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],lL="__resizable_base__",cL=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0 0 100%",t.classList?t.classList.add(lL):t.className+=lL,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return ZA(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||QA},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,o=this.resizable.style.position;"relative"!==o&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=o}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&e.propsSize[t].toString().endsWith("%")){if(e.state[t].toString().endsWith("%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return iL(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?iL(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?iL(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%",e.style.minHeight="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,o=this.props.boundsByDirection,i=this.state.direction,a=o&&nL("left",i),s=o&&nL("top",i);if("parent"===this.props.bounds){var l=this.parentNode;l&&(n=a?this.resizableRight-this.parentLeft:l.offsetWidth+(this.parentLeft-this.resizableLeft),r=s?this.resizableBottom-this.parentTop:l.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,o=this.state,i=o.direction,a=o.original,s=this.props,l=s.lockAspectRatio,c=s.lockAspectRatioExtraHeight,u=s.lockAspectRatioExtraWidth,d=a.width,f=a.height,p=c||0,m=u||0;return nL("right",i)&&(d=a.width+(e-a.x)*r/n,l&&(f=(d-m)/this.ratio+p)),nL("left",i)&&(d=a.width-(e-a.x)*r/n,l&&(f=(d-m)/this.ratio+p)),nL("bottom",i)&&(f=a.height+(t-a.y)*r/n,l&&(d=(f-p)*this.ratio+m)),nL("top",i)&&(f=a.height-(t-a.y)*r/n,l&&(d=(f-p)*this.ratio+m)),{newWidth:d,newHeight:f}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var o=this.props,i=o.lockAspectRatio,a=o.lockAspectRatioExtraHeight,s=o.lockAspectRatioExtraWidth,l=void 0===r.width?10:r.width,c=void 0===n.width||n.width<0?e:n.width,u=void 0===r.height?10:r.height,d=void 0===n.height||n.height<0?t:n.height,f=a||0,p=s||0;if(i){var m=(u-f)*this.ratio+p,h=(d-f)*this.ratio+p,g=(l-p)/this.ratio+f,v=(c-p)/this.ratio+f,b=Math.max(l,m),y=Math.min(c,h),w=Math.max(u,g),x=Math.min(d,v);e=eL(e,b,y),t=eL(t,w,x)}else e=eL(e,l,c),t=eL(t,u,d);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),o=r.left,i=r.top,a=r.right,s=r.bottom;this.resizableLeft=o,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,o=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)?(r=e.nativeEvent.clientX,o=e.nativeEvent.clientY):e.nativeEvent&&rL(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,o=e.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:r,y:o,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:JA(JA({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){var t=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&rL(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var n=this.props,r=n.maxWidth,o=n.maxHeight,i=n.minWidth,a=n.minHeight,s=rL(e)?e.touches[0].clientX:e.clientX,l=rL(e)?e.touches[0].clientY:e.clientY,c=this.state,u=c.direction,d=c.original,f=c.width,p=c.height,m=this.getParentSize(),h=function(e,t,n,r,o,i,a){return r=aL(r,e.width,t,n),o=aL(o,e.height,t,n),i=aL(i,e.width,t,n),a=aL(a,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===o?void 0:Number(o),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}}(m,this.window.innerWidth,this.window.innerHeight,r,o,i,a);r=h.maxWidth,o=h.maxHeight,i=h.minWidth,a=h.minHeight;var g=this.calculateNewSizeFromDirection(s,l),v=g.newHeight,b=g.newWidth,y=this.calculateNewMaxFromBoundary(r,o);this.props.snap&&this.props.snap.x&&(b=oL(b,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(v=oL(v,this.props.snap.y,this.props.snapGap));var w=this.calculateNewSizeFromAspectRatio(b,v,{width:y.maxWidth,height:y.maxHeight},{width:i,height:a});if(b=w.newWidth,v=w.newHeight,this.props.grid){var x=tL(b,this.props.grid[0]),E=tL(v,this.props.grid[1]),_=this.props.snapGap||0;b=0===_||Math.abs(x-b)<=_?x:b,v=0===_||Math.abs(E-v)<=_?E:v}var C={width:b-d.width,height:v-d.height};if(f&&"string"==typeof f)if(f.endsWith("%"))b=b/m.width*100+"%";else if(f.endsWith("vw")){b=b/this.window.innerWidth*100+"vw"}else if(f.endsWith("vh")){b=b/this.window.innerHeight*100+"vh"}if(p&&"string"==typeof p)if(p.endsWith("%"))v=v/m.height*100+"%";else if(p.endsWith("vw")){v=v/this.window.innerWidth*100+"vw"}else if(p.endsWith("vh")){v=v/this.window.innerHeight*100+"vh"}var S={width:this.createSizeForCssProperty(b,"width"),height:this.createSizeForCssProperty(v,"height")};"row"===this.flexDir?S.flexBasis=S.width:"column"===this.flexDir&&(S.flexBasis=S.height),(0,It.flushSync)((function(){t.setState(S)})),this.props.onResize&&this.props.onResize(e,u,this.resizable,C)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,o=t.original;if(n&&this.resizable){var i={width:this.size.width-o.width,height:this.size.height-o.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:JA(JA({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,r=t.handleStyles,o=t.handleClasses,i=t.handleWrapperStyle,a=t.handleWrapperClass,s=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?v.createElement(XA,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:r&&r[t],className:o&&o[t]},s&&s[t]?s[t]:null):null}));return v.createElement("div",{className:a,style:i},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==sL.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=JA(JA(JA({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var r=this.props.as||"div";return v.createElement(r,JA({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&v.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(v.PureComponent);const uL=()=>{},dL={bottom:"bottom",corner:"corner"};function fL({axis:e,fadeTimeout:t=180,onResize:n=uL,position:r=dL.bottom,showPx:o=!1}){const[i,s]=(0,u.useResizeObserver)(),l=!!e,[c,d]=(0,a.useState)(!1),[f,p]=(0,a.useState)(!1),{width:m,height:h}=s,g=(0,a.useRef)(h),v=(0,a.useRef)(m),b=(0,a.useRef)(),y=(0,a.useCallback)((()=>{b.current&&window.clearTimeout(b.current),b.current=window.setTimeout((()=>{l||(d(!1),p(!1))}),t)}),[t,l]);(0,a.useEffect)((()=>{if(!(null!==m||null!==h))return;const e=m!==v.current,t=h!==g.current;if(e||t){if(m&&!v.current&&h&&!g.current)return v.current=m,void(g.current=h);e&&(d(!0),v.current=m),t&&(p(!0),g.current=h),n({width:m,height:h}),y()}}),[m,h,n,y]);const w=function({axis:e,height:t,moveX:n=!1,moveY:r=!1,position:o=dL.bottom,showPx:i=!1,width:a}){if(!n&&!r)return;if(o===dL.corner)return`${a} x ${t}`;const s=i?" px":"";if(e){if("x"===e&&n)return`${a}${s}`;if("y"===e&&r)return`${t}${s}`}if(n&&r)return`${a} x ${t}`;if(n)return`${a}${s}`;if(r)return`${t}${s}`;return}({axis:e,height:h,moveX:c,moveY:f,position:r,showPx:o,width:m});return{label:w,resizeListener:i}}const pL=fd("div",{target:"e1wq7y4k3"})({name:"1cd7zoc",styles:"bottom:0;box-sizing:border-box;left:0;pointer-events:none;position:absolute;right:0;top:0"}),mL=fd("div",{target:"e1wq7y4k2"})({name:"ajymcs",styles:"align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity 120ms linear"}),hL=fd("div",{target:"e1wq7y4k1"})("background:",Bp.gray[900],";border-radius:2px;box-sizing:border-box;font-family:",Av("default.fontFamily"),";font-size:12px;color:",Bp.ui.textDark,";padding:4px 8px;position:relative;"),gL=fd(eg,{target:"e1wq7y4k0"})("&&&{color:",Bp.ui.textDark,";display:block;font-size:13px;line-height:1.4;white-space:nowrap;}");const vL=(0,a.forwardRef)((function({label:e,position:t=dL.corner,zIndex:n=1e3,...r},o){const i=!!e,s=t===dL.bottom,l=t===dL.corner;if(!i)return null;let u={opacity:i?1:void 0,zIndex:n},d={};return s&&(u={...u,position:"absolute",bottom:-10,left:"50%",transform:"translate(-50%, 0)"},d={transform:"translate(0, 100%)"}),l&&(u={...u,position:"absolute",top:4,right:(0,c.isRTL)()?void 0:4,left:(0,c.isRTL)()?4:void 0}),(0,a.createElement)(mL,{"aria-hidden":"true",className:"components-resizable-tooltip__tooltip-wrapper",ref:o,style:u,...r},(0,a.createElement)(hL,{className:"components-resizable-tooltip__tooltip",style:d},(0,a.createElement)(gL,{as:"span"},e)))}));var bL=vL;const yL=()=>{};const wL=(0,a.forwardRef)((function({axis:e,className:t,fadeTimeout:n=180,isVisible:r=!0,labelRef:o,onResize:i=yL,position:s=dL.bottom,showPx:c=!0,zIndex:u=1e3,...d},f){const{label:p,resizeListener:m}=fL({axis:e,fadeTimeout:n,onResize:i,showPx:c,position:s});if(!r)return null;const h=l()("components-resize-tooltip",t);return(0,a.createElement)(pL,{"aria-hidden":"true",className:h,ref:f,...d},m,(0,a.createElement)(bL,{"aria-hidden":d["aria-hidden"],label:p,position:s,ref:o,zIndex:u}))}));var xL=wL;const EL="components-resizable-box__handle",_L="components-resizable-box__side-handle",CL="components-resizable-box__corner-handle",SL={top:l()(EL,_L,"components-resizable-box__handle-top"),right:l()(EL,_L,"components-resizable-box__handle-right"),bottom:l()(EL,_L,"components-resizable-box__handle-bottom"),left:l()(EL,_L,"components-resizable-box__handle-left"),topLeft:l()(EL,CL,"components-resizable-box__handle-top","components-resizable-box__handle-left"),topRight:l()(EL,CL,"components-resizable-box__handle-top","components-resizable-box__handle-right"),bottomRight:l()(EL,CL,"components-resizable-box__handle-bottom","components-resizable-box__handle-right"),bottomLeft:l()(EL,CL,"components-resizable-box__handle-bottom","components-resizable-box__handle-left")},kL={width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},TL={top:kL,right:kL,bottom:kL,left:kL,topLeft:kL,topRight:kL,bottomRight:kL,bottomLeft:kL};var RL=(0,a.forwardRef)((function({className:e,children:t,showHandle:n=!0,__experimentalShowTooltip:r=!1,__experimentalTooltipProps:o={},...i},s){return(0,a.createElement)(cL,{className:l()("components-resizable-box__container",n&&"has-show-handle",e),handleClasses:SL,handleStyles:TL,ref:s,...i},t,r&&(0,a.createElement)(xL,{...o}))}));var PL=function({naturalWidth:e,naturalHeight:t,children:n,isInline:r=!1}){if(1!==a.Children.count(n))return null;const o=r?"span":"div";let i;return e&&t&&(i=`${e} / ${t}`),(0,a.createElement)(o,{className:"components-responsive-wrapper"},(0,a.createElement)("div",null,(0,a.cloneElement)(n,{className:l()("components-responsive-wrapper__content",n.props.className),style:{...n.props.style,aspectRatio:i}})))};const ML=function(){const{MutationObserver:e}=window;if(!e||!document.body||!window.parent)return;function t(){const e=document.body.getBoundingClientRect();window.parent.postMessage({action:"resize",width:e.width,height:e.height},"*")}function n(e){e.style&&["width","height","minHeight","maxHeight"].forEach((function(t){/^\\d+(vmin|vmax|vh|vw)$/.test(e.style[t])&&(e.style[t]="")}))}new e(t).observe(document.body,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),window.addEventListener("load",t,!0),Array.prototype.forEach.call(document.querySelectorAll("[style]"),n),Array.prototype.forEach.call(document.styleSheets,(function(e){Array.prototype.forEach.call(e.cssRules||e.rules,n)})),document.body.style.position="absolute",document.body.style.width="100%",document.body.setAttribute("data-resizable-iframe-connected",""),t(),window.addEventListener("resize",t,!0)};var IL=function({html:e="",title:t="",type:n,styles:r=[],scripts:o=[],onFocus:i}){const s=(0,a.useRef)(),[l,c]=(0,a.useState)(0),[d,f]=(0,a.useState)(0);function p(i=!1){if(!function(){try{return!!s.current?.contentDocument?.body}catch(e){return!1}}())return;const{contentDocument:l,ownerDocument:c}=s.current;if(!i&&null!==l?.body.getAttribute("data-resizable-iframe-connected"))return;const u=(0,a.createElement)("html",{lang:c.documentElement.lang,className:n},(0,a.createElement)("head",null,(0,a.createElement)("title",null,t),(0,a.createElement)("style",{dangerouslySetInnerHTML:{__html:"\n\tbody {\n\t\tmargin: 0;\n\t}\n\thtml,\n\tbody,\n\tbody > div {\n\t\twidth: 100%;\n\t}\n\thtml.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio,\n\tbody.wp-has-aspect-ratio > div,\n\tbody.wp-has-aspect-ratio > div iframe {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\toverflow: hidden; /* If it has an aspect ratio, it shouldn't scroll. */\n\t}\n\tbody > div > * {\n\t\tmargin-top: 0 !important; /* Has to have !important to override inline styles. */\n\t\tmargin-bottom: 0 !important;\n\t}\n"}}),r.map(((e,t)=>(0,a.createElement)("style",{key:t,dangerouslySetInnerHTML:{__html:e}})))),(0,a.createElement)("body",{"data-resizable-iframe-connected":"data-resizable-iframe-connected",className:n},(0,a.createElement)("div",{dangerouslySetInnerHTML:{__html:e}}),(0,a.createElement)("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`(${ML.toString()})();`}}),o.map((e=>(0,a.createElement)("script",{key:e,src:e})))));l.open(),l.write("<!DOCTYPE html>"+(0,a.renderToString)(u)),l.close()}return(0,a.useEffect)((()=>{function e(){p(!1)}function t(e){const t=s.current;if(!t||t.contentWindow!==e.source)return;let n=e.data||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){}"resize"===n.action&&(c(n.width),f(n.height))}p();const n=s.current,r=n?.ownerDocument?.defaultView;return n?.addEventListener("load",e,!1),r?.addEventListener("message",t),()=>{n?.removeEventListener("load",e,!1),r?.addEventListener("message",t)}}),[]),(0,a.useEffect)((()=>{p()}),[t,r,o]),(0,a.useEffect)((()=>{p(!0)}),[e,n]),(0,a.createElement)("iframe",{ref:(0,u.useMergeRefs)([s,(0,u.useFocusableIframe)()]),title:t,className:"components-sandbox",sandbox:"allow-scripts allow-same-origin allow-presentation",onFocus:i,width:Math.ceil(l),height:Math.ceil(d)})};const NL=(0,a.forwardRef)((function({className:e,children:t,spokenMessage:n=t,politeness:r="polite",actions:o=[],onRemove:i,icon:s=null,explicitDismiss:u=!1,onDismiss:d,listRef:f},p){function m(e){e&&e.preventDefault&&e.preventDefault(),f?.current?.focus(),d?.(),i?.()}!function(e,t){const n="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{n&&(0,_b.speak)(n,t)}),[n,t])}(n,r),(0,a.useEffect)((()=>{const e=setTimeout((()=>{u||(d?.(),i?.())}),1e4);return()=>clearTimeout(e)}),[d,i,u]);const h=l()(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!u});o&&o.length>1&&("undefined"!=typeof process&&process.env,o=[o[0]]);const g=l()("components-snackbar__content",{"components-snackbar__content-with-icon":!!s});return(0,a.createElement)("div",{ref:p,className:h,onClick:u?void 0:m,tabIndex:0,role:u?"":"button",onKeyPress:u?void 0:m,"aria-label":u?"":(0,c.__)("Dismiss this notice")},(0,a.createElement)("div",{className:g},s&&(0,a.createElement)("div",{className:"components-snackbar__icon"},s),t,o.map((({label:e,onClick:t,url:n},r)=>(0,a.createElement)(bd,{key:r,href:n,variant:"tertiary",onClick:e=>function(e,t){e.stopPropagation(),i?.(),t&&t(e)}(e,t),className:"components-snackbar__action"},e))),u&&(0,a.createElement)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:0,className:"components-snackbar__dismiss-button",onClick:m,onKeyPress:m},"✕")))}));var OL=NL;const DL={init:{height:0,opacity:0},open:{height:"auto",opacity:1,transition:{height:{stiffness:1e3,velocity:-100}}},exit:{opacity:0,transition:{duration:.5}}};var AL=function({notices:e,className:t,children:n,onRemove:r}){const o=(0,a.useRef)(null),i=(0,u.useReducedMotion)();t=l()("components-snackbar-list",t);const s=e=>()=>r?.(e.id);return(0,a.createElement)("div",{className:t,tabIndex:-1,ref:o},n,(0,a.createElement)(Gm,null,e.map((e=>{const{content:t,...n}=e;return(0,a.createElement)(Ul.div,{layout:!i,initial:"init",animate:"open",exit:"exit",key:e.id,variants:i?void 0:DL},(0,a.createElement)("div",{className:"components-snackbar-list__notice-container"},(0,a.createElement)(OL,{...n,onRemove:s(e),listRef:o},e.content)))}))))};const LL=rp`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
- `,IL=sd("svg",{target:"ea4tfvq2"})("width:",Nh.spinnerSize,"px;height:",Nh.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",Dp.ui.theme,";overflow:visible;opacity:1;background-color:transparent;"),NL={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},OL=sd("circle",{target:"ea4tfvq1"})(NL,";stroke:",Dp.gray[300],";"),DL=sd("path",{target:"ea4tfvq0"})(NL,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",ML,";");var AL=(0,a.forwardRef)((function({className:e,...t},n){return(0,a.createElement)(IL,{className:l()("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n},(0,a.createElement)(OL,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,a.createElement)(DL,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}));var LL=Ku((function(e,t){const n=ES(e);return(0,a.createElement)(cd,{...n,ref:t})}),"Surface");const zL=({tabId:e,children:t,selected:n,...r})=>(0,a.createElement)(pd,{role:"tab",tabIndex:n?void 0:-1,"aria-selected":n,id:e,__experimentalIsFocusable:!0,...r},t),FL=(0,a.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:r=!0,initialTabName:o,orientation:i="horizontal",activeClass:s="is-active",onSelect:c},d)=>{var f;const p=(0,u.useInstanceId)(FL,"tab-panel"),[m,h]=(0,a.useState)(),g=(0,a.useCallback)((e=>{h(e),c?.(e)}),[c]),v=n.find((({name:e})=>e===m)),b=`${p}-${null!==(f=v?.name)&&void 0!==f?f:"none"}`;return(0,a.useLayoutEffect)((()=>{if(v)return;const e=n.find((e=>e.name===o));if(!o||e)if(e&&!e.disabled)g(e.name);else{const e=n.find((e=>!e.disabled));e&&g(e.name)}}),[n,v,o,g]),(0,a.useEffect)((()=>{if(!v?.disabled)return;const e=n.find((e=>!e.disabled));e&&g(e.name)}),[n,v?.disabled,g]),(0,a.createElement)("div",{className:e,ref:d},(0,a.createElement)(rT,{role:"tablist",orientation:i,onNavigate:r?(e,t)=>{t.click()}:void 0,className:"components-tab-panel__tabs"},n.map((e=>(0,a.createElement)(zL,{className:l()("components-tab-panel__tabs-item",e.className,{[s]:e.name===m}),tabId:`${p}-${e.name}`,"aria-controls":`${p}-${e.name}-view`,selected:e.name===m,key:e.name,onClick:()=>g(e.name),disabled:e.disabled,label:e.icon&&e.title,icon:e.icon,showTooltip:!!e.icon},!e.icon&&e.title)))),v&&(0,a.createElement)("div",{key:b,"aria-labelledby":b,role:"tabpanel",id:`${b}-view`,className:"components-tab-panel__tab-content"},t(v)))}));var BL=FL;const jL=(0,a.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,className:l,onChange:c,type:d="text",...f}=e,p=`inspector-text-control-${(0,u.useInstanceId)(jL)}`;return(0,a.createElement)(jv,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:p,help:s,className:l},(0,a.createElement)("input",{className:"components-text-control__input",type:d,id:p,value:i,onChange:e=>c(e.target.value),"aria-describedby":s?p+"__help":void 0,ref:t,...f}))}));var VL=jL;const HL=Zf("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Nh.radiusBlockUi,";border:",Nh.borderWidth," solid ",Dp.ui.border,";",""),$L=Zf("border-color:",Dp.ui.theme,";box-shadow:0 0 0 calc( ",Nh.borderWidthFocus," - ",Nh.borderWidth," ) ",Dp.ui.theme,";outline:2px solid transparent;","");var WL={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"};const UL=Zf("display:block;font-family:",Mv("default.fontFamily"),";padding:6px 8px;",HL,";font-size:",Mv("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${WL["small"]})`,"{font-size:",Mv("default.fontSize"),";line-height:normal;}&:focus{",$L,";}&::-webkit-input-placeholder{color:",Dp.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Dp.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Dp.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Dp.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Dp.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",Dp.ui.lightGrayPlaceholder,";}}","");const GL=sd("textarea",{target:"e1w5nnrk0"})("width:100%;",UL,";");var KL=function e(t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,onChange:l,rows:c=4,className:d,...f}=t,p=`inspector-textarea-control-${(0,u.useInstanceId)(e)}`;return(0,a.createElement)(jv,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:p,help:s,className:d},(0,a.createElement)(GL,{className:"components-textarea-control__input",id:p,rows:c,onChange:e=>l(e.target.value),"aria-describedby":s?p+"__help":void 0,value:i,...f}))};var qL=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,a.createElement)(a.Fragment,null,t);const o=new RegExp(`(${xb(r)})`,"gi");return(0,a.createInterpolateElement)(t.replace(o,"<mark>$&</mark>"),{mark:(0,a.createElement)("mark",null)})};var YL=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}));var XL=function(e){const{children:t}=e;return(0,a.createElement)("div",{className:"components-tip"},(0,a.createElement)(by,{icon:YL}),(0,a.createElement)("p",null,t))};var ZL=function e({__nextHasNoMarginBottom:t,label:n,checked:r,help:o,className:i,onChange:s,disabled:l}){const c=`inspector-toggle-control-${(0,u.useInstanceId)(e)}`,d=Uu()("components-toggle-control",i,!t&&Zf({marginBottom:Jm(3)},"",""));let f,p;return o&&("function"==typeof o?void 0!==r&&(p=o(r)):p=o,p&&(f=c+"__help")),(0,a.createElement)(jv,{id:c,help:p,className:d,__nextHasNoMarginBottom:!0},(0,a.createElement)(rb,{justify:"flex-start",spacing:3},(0,a.createElement)(RO,{id:c,checked:r,onChange:function(e){s(e.target.checked)},"aria-describedby":f,disabled:l}),(0,a.createElement)(Xm,{as:"label",htmlFor:c,className:"components-toggle-control__label"},n)))};const JL=(0,a.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,a.createElement)(yO,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t},(0,a.createElement)(Gl,{icon:n}))}));var QL=JL,ez=(0,v.createContext)(!0),tz=Object.defineProperty,nz=Object.defineProperties,rz=Object.getOwnPropertyDescriptors,oz=Object.getOwnPropertySymbols,iz=Object.prototype.hasOwnProperty,az=Object.prototype.propertyIsEnumerable,sz=(e,t,n)=>t in e?tz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,lz=(e,t)=>{for(var n in t||(t={}))iz.call(t,n)&&sz(e,n,t[n]);if(oz)for(var n of oz(t))az.call(t,n)&&sz(e,n,t[n]);return e},cz=(e,t)=>nz(e,rz(t)),uz=(e,t)=>{var n={};for(var r in e)iz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&oz)for(var r of oz(e))t.indexOf(r)<0&&az.call(e,r)&&(n[r]=e[r]);return n},dz=Object.defineProperty,fz=Object.defineProperties,pz=Object.getOwnPropertyDescriptors,mz=Object.getOwnPropertySymbols,hz=Object.prototype.hasOwnProperty,gz=Object.prototype.propertyIsEnumerable,vz=(e,t,n)=>t in e?dz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bz=(e,t)=>{for(var n in t||(t={}))hz.call(t,n)&&vz(e,n,t[n]);if(mz)for(var n of mz(t))gz.call(t,n)&&vz(e,n,t[n]);return e},yz=(e,t)=>fz(e,pz(t));function wz(...e){}function xz(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ez(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function _z(e){return e}function Cz(...e){for(const t of e)if(void 0!==t)return t}function Sz(e){return function(e){return!!e&&!!(0,v.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var kz,Tz="undefined"!=typeof window&&!!(null==(kz=window.document)?void 0:kz.createElement);function Rz(e){return e?e.ownerDocument||e:document}function Pz(e,t=!1){const{activeElement:n}=Rz(e);if(!(null==n?void 0:n.nodeName))return null;if("IFRAME"===n.tagName&&n.contentDocument)return Pz(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=Rz(n).getElementById(e);if(t)return t}}return n}function Mz(e,t){return e===t||e.contains(t)}function Iz(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Nz.indexOf(e.type)}var Nz=["button","color","file","image","reset","submit"];function Oz(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function Dz(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function Az(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return Az(e.parentElement)||document.scrollingElement||document.body}var Lz=lz({},b),zz=Lz.useId,Fz=(Lz.useDeferredValue,Lz.useInsertionEffect),Bz=Tz?v.useLayoutEffect:v.useEffect;function jz(e){const t=(0,v.useRef)(e);return Bz((()=>{t.current=e})),t}function Vz(e){const t=(0,v.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return Fz?Fz((()=>{t.current=e})):t.current=e,(0,v.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function Hz(...e){return(0,v.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)))}}),e)}function $z(e){if(zz){const t=zz();return e||t}const[t,n]=(0,v.useState)(e);return Bz((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Wz(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,v.useState)((()=>n(t)));return Bz((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}Symbol("setNextState");function Uz(e){return Vz("function"==typeof e?e:()=>e)}function Gz(e,t,n=[]){const r=(0,v.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return cz(lz({},e),{wrapElement:r})}var Kz=o(7557);function qz(e){return v.forwardRef(((t,n)=>e(lz({ref:n},t))))}function Yz(e){const t=qz(e);return v.memo(t)}function Xz(e,t){const n=t,{as:r,wrapElement:o,render:i}=n,a=uz(n,["as","wrapElement","render"]);let s;const l=Hz(t.ref,Sz(i));if(r&&"string"!=typeof r)s=(0,Kz.jsx)(r,cz(lz({},a),{render:i}));else if(v.isValidElement(i)){const e=cz(lz({},i.props),{ref:l});s=v.cloneElement(i,function(e,t){const n=lz({},e);for(const r in t){if(!xz(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?lz(lz({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(a,e))}else if(i)s=i(a);else if("function"==typeof t.children){const e=a,{children:n}=e,r=uz(e,["children"]);s=t.children(r)}else s=r?(0,Kz.jsx)(r,lz({},a)):(0,Kz.jsx)(e,lz({},a));return o?o(s):s}function Zz(e){return(t={})=>{const n=e(t),r={};for(const e in n)xz(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function Jz(e){return Boolean(e.currentTarget&&!Mz(e.currentTarget,e.target))}function Qz(e){return e.target===e.currentTarget}function eF(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=yz(bz({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function tF(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function nF(e,t,n){const r=requestAnimationFrame((()=>{e.removeEventListener(t,o,!0),n()})),o=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function rF(e,t,n,r=window){var o;try{r.document.addEventListener(e,t,n)}catch(e){}const i=[];for(let a=0;a<(null==(o=r.frames)?void 0:o.length);a+=1){const o=r.frames[a];o&&i.push(rF(e,t,n,o))}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}i.forEach((e=>e()))}}var oF="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function iF(e){return!!Oz(e,oF)&&(!!function(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)&&!function(e,t){if("closest"in e)return e.closest(t);do{if(Oz(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}(e,"[inert]"))}function aF(e){const t=Pz(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function sF(e){!function(e){const t=Pz(e);if(!t)return!1;if(Mz(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&"id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`))}(e)&&iF(e)&&e.focus()}var lF=Tz&&!!Tz&&/mac|iphone|ipad|ipod/i.test(navigator.platform)&&/apple/i.test(navigator.vendor),cF=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function uF(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function dF(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function fF(e,t){return Vz((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var pF=!0;function mF(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(pF=!1))}function hF(e){e.metaKey||e.ctrlKey||e.altKey||(pF=!0)}var gF=Zz((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,a=uz(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const s=(0,v.useRef)(null);(0,v.useEffect)((()=>{n&&(rF("mousedown",mF,!0),rF("keydown",hF,!0))}),[n]),lF&&(0,v.useEffect)((()=>{if(!n)return;const e=s.current;if(!e)return;if(!uF(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",r))),()=>{t.forEach((e=>e.removeEventListener("mouseup",r)))}}),[n]);const l=n&&a.disabled,c=!!l&&!r,[u,d]=(0,v.useState)(!1);(0,v.useEffect)((()=>{n&&c&&u&&d(!1)}),[n,c,u]),(0,v.useEffect)((()=>{if(!n)return;if(!u)return;const e=s.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{iF(e)||d(!1)}));return t.observe(e),()=>t.disconnect()}),[n,u]);const f=fF(a.onKeyPressCapture,l),p=fF(a.onMouseDownCapture,l),m=fF(a.onClickCapture,l),h=a.onMouseDown,g=Vz((e=>{if(null==h||h(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!lF)return;if(Jz(e))return;if(!Iz(t)&&!uF(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),nF(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||sF(t)}))})),b=(e,t)=>{if(t&&(e.currentTarget=t),null==i||i(e),e.defaultPrevented)return;if(!n)return;const r=e.currentTarget;r&&aF(r)&&d(!0)},y=a.onKeyDownCapture,w=Vz((e=>{if(null==y||y(e),e.defaultPrevented)return;if(!n)return;if(u)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!Qz(e))return;const t=e.currentTarget;queueMicrotask((()=>b(e,t)))})),x=a.onFocusCapture,E=Vz((e=>{if(null==x||x(e),e.defaultPrevented)return;if(!n)return;if(!Qz(e))return void d(!1);const t=e.currentTarget,r=()=>b(e,t);pF||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:cF.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?d(!1):nF(e.target,"focusout",r)})),_=a.onBlur,C=Vz((e=>{null==_||_(e),n&&function(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Mz(n,r)}(e)&&d(!1)})),S=(0,v.useContext)(ez),k=Vz((e=>{n&&o&&e&&S&&queueMicrotask((()=>{aF(e)||iF(e)&&e.focus()}))})),T=Wz(s,a.as),R=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(T),P=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(T),M=c?lz({pointerEvents:"none"},a.style):a.style;return a=cz(lz({"data-focus-visible":n&&u?"":void 0,"data-autofocus":!!o||void 0,"aria-disabled":!!l||void 0},a),{ref:Hz(s,k,a.ref),style:M,tabIndex:dF(n,c,R,P,a.tabIndex),disabled:!(!P||!c)||void 0,contentEditable:l?void 0:a.contentEditable,onKeyPressCapture:f,onClickCapture:m,onMouseDownCapture:p,onMouseDown:g,onKeyDownCapture:w,onFocusCapture:E,onBlur:C})}));qz((e=>Xz("div",e=gF(e))));function vF(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?Iz(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(Iz(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var bF=Zz((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=uz(t,["clickOnEnter","clickOnSpace"]);const i=(0,v.useRef)(null),a=Wz(i,o.as),s=o.type,[l,c]=(0,v.useState)((()=>!!a&&Iz({tagName:a,type:s})));(0,v.useEffect)((()=>{i.current&&c(Iz(i.current))}),[]);const[u,d]=(0,v.useState)(!1),f=(0,v.useRef)(!1),p="data-command"in o,m=o.onKeyDown,h=Vz((e=>{null==m||m(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(p)return;if(o.disabled)return;if(!Qz(e))return;if(Dz(t))return;if(t.isContentEditable)return;const i=n&&"Enter"===e.key,a=r&&" "===e.key,s="Enter"===e.key&&!n,l=" "===e.key&&!r;if(s||l)e.preventDefault();else if(i||a){const n=vF(e);if(i){if(!n){e.preventDefault();const n=e,{view:r}=n,o=uz(n,["view"]),i=()=>tF(t,o);Tz&&/firefox\//i.test(navigator.userAgent)?nF(t,"keyup",i):queueMicrotask(i)}}else a&&(f.current=!0,n||(e.preventDefault(),d(!0)))}})),g=o.onKeyUp,b=Vz((e=>{if(null==g||g(e),e.defaultPrevented)return;if(p)return;if(o.disabled)return;if(e.metaKey)return;const t=r&&" "===e.key;if(f.current&&t&&(f.current=!1,!vF(e))){d(!1);const t=e.currentTarget,n=e,{view:r}=n,o=uz(n,["view"]);queueMicrotask((()=>tF(t,o)))}}));return o=cz(lz({"data-command":"","data-active":u?"":void 0,type:l?"button":void 0},o),{ref:Hz(i,o.ref),onKeyDown:h,onKeyUp:b}),o=gF(o)}));qz((e=>Xz("button",e=bF(e))));var yF=(0,v.createContext)(void 0),wF=Zz((e=>{var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=_z,element:i}=t,a=uz(t,["store","shouldRegisterItem","getItem","element"]);const s=(0,v.useContext)(yF);n=n||s;const l=$z(a.id),c=(0,v.useRef)(i);return(0,v.useEffect)((()=>{const e=c.current;if(!l)return;if(!e)return;if(!r)return;const t=o({id:l,element:e});return null==n?void 0:n.renderItem(t)}),[l,r,o,n]),a=cz(lz({},a),{ref:Hz(c,a.ref)})}));qz((e=>Xz("div",wF(e))));function xF(e,t){return t&&e.item(t)||null}var EF=Symbol("FOCUS_SILENTLY");function _F(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}var CF=(0,v.createContext)(void 0),SF=(0,v.createContext)(void 0),kF=(0,v.createContext)(void 0);function TF(e,t){const n=e.__unstableInternals;return function(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}(n,"Invalid store"),n[t]}function RF(e,...t){let n=e,r=n,o=Symbol(),i=!1;const a=new Set,s=new Set,l=new Set,c=new Set,u=new WeakMap,d=new WeakMap,f=(e,t,n=!1)=>{const r=n?c:l;return r.add(t),d.set(t,e),()=>{var e;null==(e=u.get(t))||e(),u.delete(t),d.delete(t),r.delete(t)}},p=(e,i)=>{if(!xz(n,e))return;const s=function(e,t){if(function(e){return"function"==typeof e}(e))return e(function(e){return"function"==typeof e}(t)?t():t);return e}(i,n[e]);if(s===n[e])return;t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,s)}));const f=n;n=yz(bz({},n),{[e]:s});const p=Symbol();o=p,a.add(e);const m=(t,r,o)=>{var i;const a=d.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=u.get(t))||i(),u.set(t,t(n,r)))};l.forEach((e=>m(e,f))),queueMicrotask((()=>{if(o!==p)return;const e=n;c.forEach((e=>{m(e,r,a)})),r=e,a.clear()}))},m={getState:()=>n,setState:p,__unstableInternals:{setup:e=>(s.add(e),()=>s.delete(e)),init:()=>{if(i)return wz;if(!t.length)return wz;i=!0;const e=(r=n,Object.keys(r)).map((e=>Ez(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&xz(r,e))return IF(t,[e],(t=>p(e,t[e])))})))));var r;const o=[];s.forEach((e=>o.push(e())));const a=t.map(MF);return Ez(...e,...o,...a,(()=>{i=!1}))},subscribe:(e,t)=>f(e,t),sync:(e,t)=>(u.set(t,t(n,n)),f(e,t)),batch:(e,t)=>(u.set(t,t(n,r)),f(e,t,!0)),pick:e=>RF(function(e,t){const n={};for(const r of t)xz(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>RF(function(e,t){const n=bz({},e);for(const e of t)xz(n,e)&&delete n[e];return n}(n,e),m)}};return m}function PF(e,...t){if(e)return TF(e,"setup")(...t)}function MF(e,...t){if(e)return TF(e,"init")(...t)}function IF(e,...t){if(e)return TF(e,"sync")(...t)}function NF(e,...t){if(e)return TF(e,"batch")(...t)}var OF=()=>()=>{},DF=!1;function AF(e,t=_z){const n=v.useCallback((t=>e?function(e,...t){if(e)return TF(e,"subscribe")(...t)}(e,null,t):OF()),[e]),r=()=>{if(!e)return;const n=e.getState(),r="function"==typeof t?t:null,o="string"==typeof t?t:null;return r?r(n):o&&xz(n,o)?n[o]:void 0};return(0,Nd.useSyncExternalStore)(n,r,r)}function LF(e,t,n,r){const o=xz(t,n)?t[n]:void 0,i=jz({value:o,setValue:r?t[r]:void 0});Bz((()=>{let t=!1;return queueMicrotask((()=>{t=!0})),IF(e,[n],((e,r)=>{const{value:o,setValue:a}=i.current;a&&e[n]!==r[n]&&e[n]!==o&&function(e,t=!0){if(DF||!t)return void e();DF=!0;const n=console.error;try{(0,kt.flushSync)(e)}finally{console.error=n,DF=!1}}((()=>a(e[n])),t)}))}),[e,n]),Bz((()=>NF(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))),[e,n,o])}function zF(e){const t=function(e){const t=(0,v.useRef)();return void 0===t.current&&(t.current=e()),t.current}(e);Bz((()=>MF(t)),[t]);const n=v.useCallback((e=>AF(t,e)),[t]);return v.useMemo((()=>cz(lz({},t),{useState:n})),[t,n])}function FF(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function BF(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=Az(e);if(!a)return;const s=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(a,r);let l,c;for(let e=0;e<i.length;e+=1){const i=l;if(l=n(e),!l)break;if(l===i)continue;const a=null==(o=xF(t,l))?void 0:o.element;if(!a)continue;const u=FF(a,r)-s,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=i);break}c=d}return l}var jF=Zz((e=>{var t,n=e,{store:r,rowId:o,preventScrollOnKeyDown:i=!1,moveOnKeyPress:a=!0,getItem:s,"aria-setsize":l,"aria-posinset":c}=n,u=uz(n,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","getItem","aria-setsize","aria-posinset"]);const d=(0,v.useContext)(kF);r=r||d;const f=$z(u.id),p=(0,v.useRef)(null),m=(0,v.useContext)(SF),h=AF(r,(e=>o||((null==m?void 0:m.baseElement)&&m.baseElement===e.baseElement?m.id:void 0))),g=u.disabled&&!u.accessibleWhenDisabled,b=(0,v.useCallback)((e=>{const t=cz(lz({},e),{id:f||e.id,rowId:h,disabled:!!g});return s?s(t):t}),[f,h,g,s]),y=u.onFocus,w=(0,v.useRef)(!1),x=Vz((e=>{if(null==y||y(e),e.defaultPrevented)return;if(Jz(e))return;if(!f)return;if(!r)return;const{activeId:t,virtualFocus:n,baseElement:o}=r.getState();if(function(e,t){return!Qz(e)&&_F(t,e.target)}(e,r))return;if(t!==f&&r.setActiveId(f),!n)return;if(!Qz(e))return;if((i=e.currentTarget).isContentEditable||Dz(i)||"INPUT"===i.tagName&&!Iz(i))return;var i;if(!o)return;w.current=!0;e.relatedTarget===o||_F(r,e.relatedTarget)?function(e){e[EF]=!0,e.focus()}(o):o.focus()})),E=u.onBlurCapture,_=Vz((e=>{if(null==E||E(e),e.defaultPrevented)return;const t=null==r?void 0:r.getState();(null==t?void 0:t.virtualFocus)&&w.current&&(w.current=!1,e.preventDefault(),e.stopPropagation())})),C=u.onKeyDown,S=Uz(i),k=Uz(a),T=Vz((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!Qz(e))return;if(!r)return;const{currentTarget:t}=e,n=r.getState(),o=r.item(f),i=!!(null==o?void 0:o.rowId),a="horizontal"!==n.orientation,s="vertical"!==n.orientation,l={ArrowUp:(i||a)&&r.up,ArrowRight:(i||s)&&r.next,ArrowDown:(i||a)&&r.down,ArrowLeft:(i||s)&&r.previous,Home:()=>!i||e.ctrlKey?null==r?void 0:r.first():null==r?void 0:r.previous(-1),End:()=>!i||e.ctrlKey?null==r?void 0:r.last():null==r?void 0:r.next(-1),PageUp:()=>BF(t,r,null==r?void 0:r.up,!0),PageDown:()=>BF(t,r,null==r?void 0:r.down)}[e.key];if(l){const t=l();if(S(e)||void 0!==t){if(!k(e))return;e.preventDefault(),r.move(t)}}})),R=AF(r,(e=>e.baseElement||void 0)),P=(0,v.useMemo)((()=>({id:f,baseElement:R})),[f,R]);u=Gz(u,(e=>(0,Kz.jsx)(CF.Provider,{value:P,children:e})),[P]);const M=AF(r,(e=>e.activeId===f)),I=AF(r,"virtualFocus"),N=function(e,t){const n=t.role,[r,o]=(0,v.useState)(n);return Bz((()=>{const t=e.current;t&&o(t.getAttribute("role")||n)}),[n]),r}(p,u);let O;M&&(!function(e){return"option"===e||"treeitem"===e}(N)?I&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(N)&&(O=!0):O=!0);const D=AF(r,(e=>null!=l?l:(null==m?void 0:m.ariaSetSize)&&m.baseElement===e.baseElement?m.ariaSetSize:void 0)),A=AF(r,(e=>{if(null!=c)return c;if(!(null==m?void 0:m.ariaPosInSet))return;if(m.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===h));return m.ariaPosInSet+t.findIndex((e=>e.id===f))})),L=null==(t=AF(r,(e=>!e.renderedItems.length||!e.virtualFocus&&e.activeId===f)))||t;return u=cz(lz({id:f,"aria-selected":O,"data-active-item":M?"":void 0},u),{ref:Hz(p,u.ref),tabIndex:L?u.tabIndex:-1,onFocus:x,onBlurCapture:_,onKeyDown:T}),u=bF(u),u=wF(cz(lz({store:r},u),{getItem:b,shouldRegisterItem:!!f&&u.shouldRegisterItem})),cz(lz({},u),{"aria-setsize":D,"aria-posinset":A})}));Yz((e=>Xz("button",jF(e))));var VF=Zz((e=>{var t=e,{store:n}=t,r=uz(t,["store"]);return r=jF(lz({store:n},r))})),HF=Yz((e=>Xz("button",VF(e))));var $F=(0,a.createContext)(void 0);var WF=(0,a.forwardRef)((function({children:e,as:t,...n},r){const o=(0,a.useContext)($F),i="function"==typeof e;if(!i&&!t)return"undefined"!=typeof process&&process.env,null;const s={...n,ref:r,"data-toolbar-item":!0};if(!o)return t?(0,a.createElement)(t,{...s},e):i?e(s):null;const l=i?e:t&&(0,a.createElement)(t,null);return(0,a.createElement)(HF,{...s,store:o,render:l})}));var UF=({children:e,className:t})=>(0,a.createElement)("div",{className:t},e);var GF=(0,a.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:r,isActive:o,isDisabled:i,title:s,...c},u){return(0,a.useContext)($F)?(0,a.createElement)(WF,{className:l()("components-toolbar-button",t),...r,...c,ref:u},(t=>(0,a.createElement)(pd,{label:s,isPressed:o,disabled:i,...t},e))):(0,a.createElement)(UF,{className:n},(0,a.createElement)(pd,{ref:u,icon:c.icon,label:s,shortcut:c.shortcut,"data-subscript":c.subscript,onClick:e=>{e.stopPropagation(),c.onClick&&c.onClick(e)},className:l()("components-toolbar__control",t),isPressed:o,disabled:i,"data-toolbar-item":!0,...r,...c},e))}));var KF=({className:e,children:t,...n})=>(0,a.createElement)("div",{className:e,...n},t);var qF=function({controls:e=[],toggleProps:t,...n}){const r=t=>(0,a.createElement)(sT,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,a.useContext)($F)?(0,a.createElement)(WF,{...t},r):r(t)};var YF=function({controls:e=[],children:t,className:n,isCollapsed:r,title:o,...i}){const s=(0,a.useContext)($F);if(!(e&&e.length||t))return null;const c=l()(s?"components-toolbar-group":"components-toolbar",n);let u=e;return Array.isArray(u[0])||(u=[u]),r?(0,a.createElement)(qF,{label:o,controls:u,className:c,children:t,...i}):(0,a.createElement)(KF,{className:c,...i},u?.flatMap(((e,t)=>e.map(((e,n)=>(0,a.createElement)(GF,{key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null,...e}))))),t)};function XF(e,t){return LF(e,t,"items","setItems"),e}function ZF(e,t){return LF(e=XF(e,t),t,"activeId","setActiveId"),LF(e,t,"includesBaseElement"),LF(e,t,"virtualFocus"),LF(e,t,"orientation"),LF(e,t,"rtl"),LF(e,t,"focusLoop"),LF(e,t,"focusWrap"),LF(e,t,"focusShift"),e}function JF(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,o])=>{const i=t.element,a=o.element;return i===a?0:i&&a?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(i,a)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1):0})),n?t.map((([e,t])=>t)):e}function QF(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Cz(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:Cz(null==n?void 0:n.renderedItems,[])},a=RF({renderedItems:i.renderedItems}),s=RF(i,e.store),l=()=>{const e=JF(a.getState().renderedItems);a.setState("renderedItems",e),s.setState("renderedItems",e)};PF(s,(()=>NF(a,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame(l);if("function"!=typeof IntersectionObserver)return;const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return Rz(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame(l))}),{root:r});return e.renderedItems.forEach((e=>{e.element&&o.observe(e.element)})),()=>{cancelAnimationFrame(n),o.disconnect()}}))));const c=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const a=bz(bz({},r),e);i[n]=a,o.set(e.id,a)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const a=t.slice();return a[i]=r,o.set(e.id,r),a}))}},u=e=>c(e,(e=>s.setState("items",e)),!0);return yz(bz({},s),{registerItem:u,renderItem:e=>Ez(u(e),c(e,(e=>a.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=s.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null}})}function eB(e){const t=[];for(const n of e)t.push(...n);return t}function tB(e){return e.slice().reverse()}var nB={id:null};function rB(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function oB(e,t){return e.filter((e=>e.rowId===t))}function iB(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function aB(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function sB(e,t,n){const r=aB(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?rB(o):o[e-1];o[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}function lB(e){const t=iB(e),n=aB(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(yz(bz({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function cB(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=QF(e),o=Cz(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=RF(yz(bz({},r.getState()),{activeId:o,baseElement:Cz(null==n?void 0:n.baseElement,null),includesBaseElement:Cz(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:Cz(null==n?void 0:n.moves,0),orientation:Cz(e.orientation,null==n?void 0:n.orientation,"both"),rtl:Cz(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:Cz(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:Cz(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:Cz(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:Cz(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);PF(i,(()=>IF(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=rB(e.renderedItems))?void 0:n.id}))}))));const a=(e,t,n,r)=>{var o,a;const{activeId:s,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=i.getState(),f=l&&"vertical"!==t?tB(e):e;if(null==s)return null==(o=rB(f))?void 0:o.id;const p=f.find((e=>e.id===s));if(!p)return null==(a=rB(f))?void 0:a.id;const m=!!p.rowId,h=f.indexOf(p),g=f.slice(h+1),v=oB(g,p.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,s),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const b=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(m?t||"horizontal":t),y=c&&c!==b,w=m&&u&&u!==b;if(n=n||!m&&y&&d,y){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[nB]:[],...e.slice(0,r)]}(w&&!n?f:oB(f,p.rowId),s,n),t=rB(e,s);return null==t?void 0:t.id}if(w){const e=rB(n?v:g,s);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const x=rB(v,s);return!x&&n?null:null==x?void 0:x.id};return yz(bz(bz({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=rB(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=rB(tB(i.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=i.getState();return a(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:o}=i.getState(),s=!!!(null==(t=rB(n))?void 0:t.rowId)&&o;return a(tB(n),r,s,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:s}=i.getState(),l=r&&!e,c=lB(eB(sB(iB(n),t,l)));return a(c,"vertical",o&&"horizontal"!==o&&s,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:o}=i.getState(),s=r&&!e,l=lB(tB(eB(sB(iB(n),t,s))));return a(l,"vertical",o,e)}})}function uB(e={}){const t={},n=zF((()=>function(e={}){var t;const n=null==(t=e.store)?void 0:t.getState();return cB(yz(bz({},e),{orientation:Cz(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:Cz(e.focusLoop,null==n?void 0:n.focusLoop,!0)}))}(lz(lz({},e),t))));return function(e,t){return ZF(e,t)}(n,e)}var dB=(0,v.createContext)(void 0);function fB(e){return e.some((e=>!!e.rowId))}function pB(e,t,n){return Vz((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;const i=e.getState(),a=null==(o=xF(e,i.activeId))?void 0:o.element;if(!a)return;if(!function(e,t){if(!Qz(e))return!1;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(e))return!1;const n=e.target;if(!n)return!0;if(Dz(n)){if(function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}(e))return!1;const n=fB(t.renderedItems),r=null===t.activeId,o=n&&!r,i="Home"===e.key||"End"===e.key;if(!o&&i)return!1}return!e.isPropagationStopped()}(r,i))return;const s=r,{view:l}=s,c=uz(s,["view"]);a!==(null==n?void 0:n.current)&&a.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(a,r.type,c)||r.preventDefault(),r.currentTarget.contains(a)&&r.stopPropagation()}))}var mB=Zz((e=>{var t=e,{store:n,composite:r=!0,focusOnMove:o=r,moveOnKeyPress:i=!0}=t,a=uz(t,["store","composite","focusOnMove","moveOnKeyPress"]);const s=(0,v.useRef)(null),l=function(e){const[t,n]=(0,v.useState)(!1),r=(0,v.useCallback)((()=>n(!0)),[]),o=e.useState((t=>xF(e,t.activeId)));return(0,v.useEffect)((()=>{const e=null==o?void 0:o.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[o,t]),r}(n),c=n.useState("moves");(0,v.useEffect)((()=>{var e;if(!c)return;if(!r)return;if(!o)return;const{activeId:t}=n.getState(),i=null==(e=xF(n,t))?void 0:e.element;i&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(bz({block:"nearest",inline:"nearest"},t))):e.focus()}(i)}),[c,r,o]),Bz((()=>{if(!r)return;if(!c)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const o=s.current;s.current=null,o&&eF(o,{relatedTarget:e}),aF(e)?function(e,t){const n=new FocusEvent("focus",t),r=e.dispatchEvent(n),o=yz(bz({},t),{bubbles:!0});e.dispatchEvent(new FocusEvent("focusin",o))}(e,{relatedTarget:o}):e.focus()}),[c,r]);const u=n.useState("activeId"),d=n.useState("virtualFocus");Bz((()=>{var e;if(!r)return;if(!d)return;const t=s.current;if(s.current=null,!t)return;eF(t,{relatedTarget:(null==(e=xF(n,u))?void 0:e.element)||Pz(t)})}),[u,d,r]);const f=pB(n,a.onKeyDownCapture,s),p=pB(n,a.onKeyUpCapture,s),m=a.onFocusCapture,h=Vz((e=>{if(null==m||m(e),e.defaultPrevented)return;const{virtualFocus:t}=n.getState();if(!t)return;const r=e.relatedTarget,o=function(e){const t=e[EF];return delete e[EF],t}(e.currentTarget);Qz(e)&&o&&(e.stopPropagation(),s.current=r)})),g=a.onFocus,b=Vz((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!r)return;const{relatedTarget:t}=e,{virtualFocus:o}=n.getState();o?Qz(e)&&!_F(n,t)&&queueMicrotask(l):Qz(e)&&n.setActiveId(null)})),y=a.onBlurCapture,w=Vz((e=>{var t;if(null==y||y(e),e.defaultPrevented)return;const{virtualFocus:r,activeId:o}=n.getState();if(!r)return;const i=null==(t=xF(n,o))?void 0:t.element,a=e.relatedTarget,l=_F(n,a),c=s.current;if(s.current=null,Qz(e)&&l)a===i?c&&c!==a&&eF(c,e):i&&eF(i,e),e.stopPropagation();else{!_F(n,e.target)&&i&&eF(i,e)}})),x=a.onKeyDown,E=Uz(i),_=Vz((e=>{var t;if(null==x||x(e),e.defaultPrevented)return;if(!Qz(e))return;const{orientation:r,items:o,renderedItems:i,activeId:a}=n.getState(),s=xF(n,a);if(null==(t=null==s?void 0:s.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=fB(i),d={ArrowUp:(u||l)&&(()=>{if(u){const e=o&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(eB(tB(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},f=d[e.key];if(f){const t=f();if(void 0!==t){if(!E(e))return;e.preventDefault(),n.move(t)}}}));a=Gz(a,(e=>(0,Kz.jsx)(kF.Provider,{value:n,children:e})),[n]);const C=n.useState((e=>{var t;return r&&e.virtualFocus?null==(t=xF(n,e.activeId))?void 0:t.id:void 0}));a=cz(lz({"aria-activedescendant":C},a),{ref:Hz(r?n.setBaseElement:null,a.ref),onKeyDownCapture:f,onKeyUpCapture:p,onFocusCapture:h,onFocus:b,onBlurCapture:w,onKeyDown:_});const S=n.useState((e=>r&&(e.virtualFocus||null===e.activeId)));return a=gF(lz({focusable:S},a))}));qz((e=>Xz("div",mB(e))));var hB=Zz((e=>{var t=e,{store:n}=t,r=uz(t,["store"]);const o=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=Gz(r,(e=>(0,Kz.jsx)(dB.Provider,{value:n,children:e})),[n]),r=lz({role:"toolbar","aria-orientation":o},r),r=mB(lz({store:n},r))})),gB=qz((e=>Xz("div",hB(e))));var vB=(0,a.forwardRef)((function({label:e,...t},n){const r=uB({focusLoop:!0,rtl:(0,c.isRTL)()});return(0,a.createElement)($F.Provider,{value:r},(0,a.createElement)(gB,{ref:n,"aria-label":e,store:r,...t}))}));const bB={DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}};var yB=(0,a.forwardRef)((function({className:e,label:t,...n},r){if(!t)return $l()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),(0,a.createElement)(YF,{...n,className:e});const o=l()("components-accessible-toolbar",e);return(0,a.createElement)(nc,{value:bB},(0,a.createElement)(vB,{className:o,label:t,ref:r,...n}))}));var wB=(0,a.forwardRef)((function(e,t){return(0,a.useContext)($F)?(0,a.createElement)(WF,{ref:t,...e.toggleProps},(t=>(0,a.createElement)(sT,{...e,popoverProps:{...e.popoverProps},toggleProps:t}))):(0,a.createElement)(sT,{...e})}));const xB={columns:e=>Zf("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:Zf("column-gap:",Jm(2),";row-gap:",Jm(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},EB={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},_B=Zf(xB.item.fullWidth," gap:",Jm(2),";.components-dropdown-menu{margin:",Jm(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",Jm(6),";}",""),CB={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},SB=Zf(xB.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",Nv,"{margin-bottom:0;",Ov,":last-child{margin-bottom:0;}}",zv,"{margin-bottom:0;}&& ",ag,"{label{line-height:1.4em;}}",""),kB={name:"eivff4",styles:"display:none"},TB={name:"16gsvie",styles:"min-width:200px"},RB=sd("span",{target:"ews648u0"})("color:",Dp.ui.themeDark10,";font-size:11px;font-weight:500;line-height:1.4;",ih({marginLeft:Jm(3)})," text-transform:uppercase;"),PB=Zf("color:",Dp.gray[900],";&&[aria-disabled='true']{color:",Dp.gray[700],";opacity:1;&:hover{color:",Dp.gray[700],";}",RB,"{opacity:0.3;}}",""),MB=()=>{},IB=(0,a.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:MB,deregisterPanelItem:MB,flagItemCustomization:MB,registerResetAllFilter:MB,deregisterResetAllFilter:MB,areAllOptionalControlsHidden:!0}),NB=()=>(0,a.useContext)(IB);const OB=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const r=(0,a.createElement)(RB,{"aria-hidden":!0},(0,c.__)("Reset"));return(0,a.createElement)(UO,{label:(0,c.__)("Defaults")},t.map((([t,o])=>o?(0,a.createElement)(GO,{key:t,className:e,role:"menuitem",label:(0,c.sprintf)((0,c.__)("Reset %s"),t),onClick:()=>{n(t),(0,bb.speak)((0,c.sprintf)((0,c.__)("%s reset to default"),t),"assertive")},suffix:r},t):(0,a.createElement)(GO,{key:t,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0},t))))},DB=({items:e,toggleItem:t})=>e.length?(0,a.createElement)(UO,{label:(0,c.__)("Tools")},e.map((([e,n])=>{const r=n?(0,c.sprintf)((0,c.__)("Hide and reset %s"),e):(0,c.sprintf)((0,c.__)("Show %s"),e);return(0,a.createElement)(GO,{key:e,icon:n&&e_,isSelected:n,label:r,onClick:()=>{n?(0,bb.speak)((0,c.sprintf)((0,c.__)("%s hidden and reset to default"),e),"assertive"):(0,bb.speak)((0,c.sprintf)((0,c.__)("%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox"},e)}))):null,AB=Ku(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:r,dropdownMenuClassName:o,hasMenuItems:i,headingClassName:s,headingLevel:l=2,label:u,menuItems:d,resetAll:f,toggleItem:p,...m}=function(e){const{className:t,headingLevel:n=2,...r}=Gu(e,"ToolsPanelHeader"),o=Uu(),i=(0,a.useMemo)((()=>o(_B,t)),[t,o]),s=(0,a.useMemo)((()=>o(TB)),[o]),l=(0,a.useMemo)((()=>o(CB)),[o]),c=(0,a.useMemo)((()=>o(PB)),[o]),{menuItems:u,hasMenuItems:d,areAllOptionalControlsHidden:f}=NB();return{...r,areAllOptionalControlsHidden:f,defaultControlsItemClassName:c,dropdownMenuClassName:s,hasMenuItems:d,headingClassName:l,headingLevel:n,menuItems:u,className:i}}(e);if(!u)return null;const h=Object.entries(d?.default||{}),g=Object.entries(d?.optional||{}),v=n?ch:QS,b=(0,c.sprintf)((0,c._x)("%s options","Button label to reveal tool panel options"),u),y=n?(0,c.__)("All options are currently hidden"):void 0,w=[...h,...g].some((([,e])=>e));return(0,a.createElement)(rb,{...m,ref:t},(0,a.createElement)(i_,{level:l,className:s},u),i&&(0,a.createElement)(sT,{icon:v,label:b,menuProps:{className:o},toggleProps:{isSmall:!0,describedBy:y}},(()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(OB,{items:h,toggleItem:p,itemClassName:r}),(0,a.createElement)(DB,{items:g,toggleItem:p}),(0,a.createElement)(UO,null,(0,a.createElement)(GO,{"aria-disabled":!w,variant:"tertiary",onClick:()=>{w&&(f(),(0,bb.speak)((0,c.__)("All options reset"),"assertive"))}},(0,c.__)("Reset all")))))))}),"ToolsPanelHeader");var LB=AB;const zB=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:r})=>{const o={default:{},optional:{}},i={default:{},optional:{}};return e.forEach((({hasValue:e,isShownByDefault:r,label:i})=>{const a=r?"default":"optional",s=n?.[a]?.[i],l=s||e();o[a][i]=!t&&l})),r.forEach((e=>{o.default.hasOwnProperty(e)&&(i.default[e]=o.default[e]),o.optional.hasOwnProperty(e)&&(i.optional[e]=o.optional[e])})),Object.keys(o.default).forEach((e=>{i.default.hasOwnProperty(e)||(i.default[e]=o.default[e])})),Object.keys(o.optional).forEach((e=>{i.optional.hasOwnProperty(e)||(i.optional[e]=o.optional[e])})),i},FB=e=>e&&0===Object.keys(e).length;function BB(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:s=!1,__experimentalFirstVisibleItemClass:l,__experimentalLastVisibleItemClass:c,...u}=Gu(e,"ToolsPanel"),d=(0,a.useRef)(!1),f=d.current;(0,a.useEffect)((()=>{f&&(d.current=!1)}),[f]);const[p,m]=(0,a.useState)([]),[h,g]=(0,a.useState)([]),[v,b]=(0,a.useState)([]),y=(0,a.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]})),g((t=>t.includes(e.label)?t:[...t,e.label]))}),[m,g]),w=(0,a.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[m]),x=(0,a.useCallback)((e=>{b((t=>[...t,e]))}),[b]),E=(0,a.useCallback)((e=>{b((t=>t.filter((t=>t!==e))))}),[b]),[_,C]=(0,a.useState)({default:{},optional:{}});(0,a.useEffect)((()=>{C((e=>zB({panelItems:p,shouldReset:!1,currentMenuItems:e,menuItemOrder:h})))}),[p,C,h]);const S=(0,a.useCallback)(((e,t="default")=>{C((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[C]),[k,T]=(0,a.useState)(!1);(0,a.useEffect)((()=>{if(FB(_?.default)&&!FB(_?.optional)){const e=!Object.entries(_.optional).some((([,e])=>e));T(e)}}),[_,T]);const R=Uu(),P=(0,a.useMemo)((()=>{const e=i&&Zf(">div:not( :first-of-type ){display:grid;",xB.columns(2)," ",xB.spacing," ",xB.item.fullWidth,";}","");const n=FB(_?.default)&&k&&EB;return R((e=>Zf(xB.columns(e)," ",xB.spacing," border-top:",Nh.borderWidth," solid ",Dp.gray[300],";margin-top:-1px;padding:",Jm(4),";",""))(2),e,n,t)}),[k,t,R,i,_]),M=(0,a.useCallback)((e=>{const t=p.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={..._,[n]:{..._[n],[e]:!_[n][e]}};C(r)}),[_,p,C]),I=(0,a.useCallback)((()=>{"function"==typeof r&&(d.current=!0,r(v));const e=zB({panelItems:p,menuItemOrder:h,shouldReset:!0});C(e)}),[p,v,r,C,h]),N=e=>{const t=_.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return n?.label},O=N(p),D=N([...p].reverse());return{...u,headingLevel:n,panelContext:(0,a.useMemo)((()=>({areAllOptionalControlsHidden:k,deregisterPanelItem:w,deregisterResetAllFilter:E,firstDisplayedItem:O,flagItemCustomization:S,hasMenuItems:!!p.length,isResetting:d.current,lastDisplayedItem:D,menuItems:_,panelId:o,registerPanelItem:y,registerResetAllFilter:x,shouldRenderPlaceholderItems:s,__experimentalFirstVisibleItemClass:l,__experimentalLastVisibleItemClass:c})),[k,w,E,O,S,D,_,o,p,x,y,s,l,c]),resetAllItems:I,toggleItem:M,className:P}}var jB=Ku(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:s,headingLevel:l,...c}=BB(e);return(0,a.createElement)(z_,{...c,columns:2,ref:t},(0,a.createElement)(IB.Provider,{value:o},(0,a.createElement)(LB,{label:r,resetAll:i,toggleItem:s,headingLevel:l}),n))}),"ToolsPanel");const VB=()=>{};const HB=Ku(((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...i}=function(e){const{className:t,hasValue:n,isShownByDefault:r=!1,label:o,panelId:i,resetAllFilter:s=VB,onDeselect:l,onSelect:c,...d}=Gu(e,"ToolsPanelItem"),{panelId:f,menuItems:p,registerResetAllFilter:m,deregisterResetAllFilter:h,registerPanelItem:g,deregisterPanelItem:v,flagItemCustomization:b,isResetting:y,shouldRenderPlaceholderItems:w,firstDisplayedItem:x,lastDisplayedItem:E,__experimentalFirstVisibleItemClass:_,__experimentalLastVisibleItemClass:C}=NB(),S=(0,a.useCallback)(n,[i,n]),k=(0,a.useCallback)(s,[i,s]),T=(0,u.usePrevious)(f),R=f===i||null===f;(0,a.useEffect)((()=>(R&&null!==T&&g({hasValue:S,isShownByDefault:r,label:o,panelId:i}),()=>{(null===T&&f||f===i)&&v(o)})),[f,R,r,o,S,i,T,g,v]),(0,a.useEffect)((()=>(R&&m(k),()=>{R&&h(k)})),[m,h,k,R]);const P=r?"default":"optional",M=p?.[P]?.[o],I=(0,u.usePrevious)(M),N=void 0!==p?.[P]?.[o],O=n(),D=(0,u.usePrevious)(O),A=O&&!D;(0,a.useEffect)((()=>{A&&(r||null===f)&&b(o,P)}),[f,A,r,P,o,b]),(0,a.useEffect)((()=>{N&&!y&&R&&(!M||O||I||c?.(),!M&&I&&l?.())}),[R,M,N,y,O,I,c,l]);const L=r?void 0!==p?.[P]?.[o]:M,z=Uu(),F=(0,a.useMemo)((()=>z(SB,w&&!L&&kB,t,x===o&&_,E===o&&C)),[L,w,t,z,x,E,_,C,o]);return{...d,isShown:L,shouldRenderPlaceholder:w,className:F}}(e);return r?(0,a.createElement)(cd,{...i,ref:t},n):o?(0,a.createElement)(cd,{...i,ref:t}):null}),"ToolsPanelItem");var $B=HB,WB=window.wp.keycodes;const UB=(0,a.createContext)(void 0),GB=UB.Provider;function KB({children:e}){const[t,n]=(0,a.useState)(),r=(0,a.useMemo)((()=>({lastFocusedElement:t,setLastFocusedElement:n})),[t]);return(0,a.createElement)(GB,{value:r},e)}function qB(e){return Wl.focus.focusable.find(e,{sequential:!0}).filter((t=>t.closest('[role="row"]')===e))}const YB=(0,a.forwardRef)((function({children:e,onExpandRow:t=(()=>{}),onCollapseRow:n=(()=>{}),onFocusRow:r=(()=>{}),applicationAriaLabel:o,...i},s){const l=(0,a.useCallback)((e=>{const{keyCode:o,metaKey:i,ctrlKey:a,altKey:s}=e;if(i||a||s||![WB.UP,WB.DOWN,WB.LEFT,WB.RIGHT,WB.HOME,WB.END].includes(o))return;e.stopPropagation();const{activeElement:l}=document,{currentTarget:c}=e;if(!l||!c.contains(l))return;const u=l.closest('[role="row"]');if(!u)return;const d=qB(u),f=d.indexOf(l),p=0===f,m=p&&("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))&&o===WB.RIGHT;if([WB.LEFT,WB.RIGHT].includes(o)){let r;if(r=o===WB.LEFT?Math.max(0,f-1):Math.min(f+1,d.length-1),p){if(o===WB.LEFT){var h;if("true"===u.getAttribute("data-expanded")||"true"===u.getAttribute("aria-expanded"))return n(u),void e.preventDefault();const t=Math.max(parseInt(null!==(h=u?.getAttribute("aria-level"))&&void 0!==h?h:"1",10)-1,1),r=Array.from(c.querySelectorAll('[role="row"]'));let o=u;for(let e=r.indexOf(u);e>=0;e--){const n=r[e].getAttribute("aria-level");if(null!==n&&parseInt(n,10)===t){o=r[e];break}}qB(o)?.[0]?.focus()}if(o===WB.RIGHT){if("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))return t(u),void e.preventDefault();const n=qB(u);n.length>0&&n[r]?.focus()}return void e.preventDefault()}if(m)return;d[r].focus(),e.preventDefault()}else if([WB.UP,WB.DOWN].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===WB.UP?Math.max(0,n-1):Math.min(n+1,t.length-1),i===n)return void e.preventDefault();const a=qB(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}else if([WB.HOME,WB.END].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===WB.HOME?0:t.length-1,i===n)return void e.preventDefault();const a=qB(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}}),[t,n,r]);return(0,a.createElement)(KB,null,(0,a.createElement)("div",{role:"application","aria-label":o},(0,a.createElement)("table",{...i,role:"treegrid",onKeyDown:l,ref:s},(0,a.createElement)("tbody",null,e))))}));var XB=YB;var ZB=(0,a.forwardRef)((function({children:e,level:t,positionInSet:n,setSize:r,isExpanded:o,...i},s){return(0,a.createElement)("tr",{...i,ref:s,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":r,"aria-expanded":o},e)}));const JB=(0,a.forwardRef)((function({children:e,as:t,...n},r){const o=(0,a.useRef)(),i=r||o,{lastFocusedElement:s,setLastFocusedElement:l}=(0,a.useContext)(UB);let c;s&&(c=s===("current"in i?i.current:void 0)?0:-1);const u={ref:i,tabIndex:c,onFocus:e=>l?.(e.target),...n};return"function"==typeof e?e(u):t?(0,a.createElement)(t,{...u},e):null}));var QB=JB;var ej=(0,a.forwardRef)((function({children:e,...t},n){return(0,a.createElement)(QB,{ref:n,...t},e)}));var tj=(0,a.forwardRef)((function({children:e,withoutGridItem:t=!1,...n},r){return(0,a.createElement)("td",{...n,role:"gridcell"},t?(0,a.createElement)(a.Fragment,null,e):(0,a.createElement)(ej,{ref:r},e))}));function nj(e){e.stopPropagation()}var rj=(0,a.forwardRef)(((e,t)=>($l()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,a.createElement)("div",{...e,ref:t,onMouseDown:nj}))));function oj(e){return Gd((0,a.useContext)(qd).fills,{sync:!0}).get(e)}const ij=sd("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>Zf({marginInlineStart:e},"","")),";}",(({zIndex:e})=>Zf({zIndex:e},"","")),";");var aj={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const sj=sd("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",ij,"{position:relative;justify-self:start;",(({isLayered:e})=>e?aj:void 0),";}");const lj=Ku((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:s=0,...l}=Gu(e,"ZStack"),c=tb(n),u=c.length-1,d=c.map(((e,t)=>{const n=i?u-t:t,r=o?s*t:s,l=(0,a.isValidElement)(e)?e.key:t;return(0,a.createElement)(ij,{offsetAmount:r,zIndex:n,key:l},e)}));return(0,a.createElement)(sj,{...l,className:r,isLayered:o,ref:t},d)}),"ZStack");var cj=lj;const uj={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function dj(e=uj){const t=(0,a.useRef)(null),[n,r]=(0,a.useState)(!1);function o(e){var n;const o=Array.from(null!==(n=t.current?.querySelectorAll('[role="region"][tabindex="-1"]'))&&void 0!==n?n:[]);if(!o.length)return;let i=o[0];const a=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),s=a?o.indexOf(a):-1;if(-1!==s){let t=s+e;t=-1===t?o.length-1:t,t=t===o.length?0:t,i=o[t]}i.focus(),r(!0)}const i=(0,u.useRefEffect)((e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[r]);return{ref:(0,u.useMergeRefs)([t,i]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some((({modifier:e,character:n})=>WB.isKeyboardEvent[e](t,n)))?o(-1):e.next.some((({modifier:e,character:n})=>WB.isKeyboardEvent[e](t,n)))&&o(1)}}}var fj=(0,u.createHigherOrderComponent)((e=>({shortcuts:t,...n})=>(0,a.createElement)("div",{...dj(t)},(0,a.createElement)(e,{...n}))),"navigateRegions");var pj=(0,u.createHigherOrderComponent)((e=>function(t){const n=(0,u.useConstrainedTabbing)();return(0,a.createElement)("div",{ref:n,tabIndex:-1},(0,a.createElement)(e,{...t}))}),"withConstrainedTabbing"),mj=e=>(0,u.createHigherOrderComponent)((t=>class extends a.Component{constructor(e){super(e),this.nodeRef=this.props.node,this.state={fallbackStyles:void 0,grabStylesCompleted:!1},this.bindRef=this.bindRef.bind(this)}bindRef(e){e&&(this.nodeRef=e)}componentDidMount(){this.grabFallbackStyles()}componentDidUpdate(){this.grabFallbackStyles()}grabFallbackStyles(){const{grabStylesCompleted:t,fallbackStyles:n}=this.state;if(this.nodeRef&&!t){const t=e(this.nodeRef,this.props);Xl()(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:Object.values(t).every(Boolean)})}}render(){const e=(0,a.createElement)(t,{...this.props,...this.state.fallbackStyles});return this.props.node?e:(0,a.createElement)("div",{ref:this.bindRef}," ",e," ")}}),"withFallbackStyles"),hj=window.wp.hooks;const gj=16;function vj(e){return(0,u.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let r;class o extends a.Component{constructor(n){super(n),void 0===r&&(r=(0,hj.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&((0,hj.addAction)("hookRemoved",n,s),(0,hj.addAction)("hookAdded",n,s))}componentWillUnmount(){o.instances=o.instances.filter((e=>e!==this)),0===o.instances.length&&((0,hj.removeAction)("hookRemoved",n),(0,hj.removeAction)("hookAdded",n))}render(){return(0,a.createElement)(r,{...this.props})}}o.instances=[];const i=(0,u.debounce)((()=>{r=(0,hj.applyFilters)(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),gj);function s(t){t===e&&i()}return o}),"withFilters")}var bj=(0,u.createHigherOrderComponent)((e=>{const t=({onFocusReturn:e}={})=>t=>n=>{const r=(0,u.useFocusReturn)(e);return(0,a.createElement)("div",{ref:r},(0,a.createElement)(t,{...n}))};if((n=e)instanceof a.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn");const yj=({children:e})=>($l()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),e);var wj=(0,u.createHigherOrderComponent)((e=>{function t(t,r){const[o,i]=(0,a.useState)([]),s=(0,a.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:df()};i((e=>[...e,t]))};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{i((t=>t.filter((t=>t.id!==e))))},removeAllNotices:()=>{i([])}}}),[]),l={...t,noticeList:o,noticeOperations:s,noticeUI:o.length>0&&(0,a.createElement)(pA,{className:"components-with-notices-ui",notices:o,onRemove:s.removeNotice})};return n?(0,a.createElement)(e,{...l,ref:r}):(0,a.createElement)(e,{...l})}let n;const{render:r}=e;return"function"==typeof r?(n=!0,(0,a.forwardRef)(t)):t}),"withNotices"),xj=window.wp.privateApis;function Ej(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function _j(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Cj(...e){return(0,v.useCallback)(_j(...e),e)}function Sj(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,v.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,v.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,v.createContext)(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=(0,v.useMemo)((()=>a),Object.values(a));return(0,v.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=(0,v.useContext)(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},kj(r,...t)]}function kj(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,v.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Tj(e){const t=(0,v.useRef)(e);return(0,v.useEffect)((()=>{t.current=e})),(0,v.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Rj({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,v.useState)(e),[r]=n,o=(0,v.useRef)(r),i=Tj(t);return(0,v.useEffect)((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=Tj(n);return[a,(0,v.useCallback)((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const Pj=(0,v.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(Nj);if(i){const e=i.props.children,n=o.map((t=>t===i?v.Children.count(e)>1?v.Children.only(null):(0,v.isValidElement)(e)?e.props.children:null:t));return(0,v.createElement)(Mj,Qu({},r,{ref:t}),(0,v.isValidElement)(e)?(0,v.cloneElement)(e,void 0,n):null)}return(0,v.createElement)(Mj,Qu({},r,{ref:t}),n)}));Pj.displayName="Slot";const Mj=(0,v.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,v.isValidElement)(n)?(0,v.cloneElement)(n,{...Oj(r,n.props),ref:_j(t,n.ref)}):v.Children.count(n)>1?v.Children.only(null):null}));Mj.displayName="SlotClone";const Ij=({children:e})=>(0,v.createElement)(v.Fragment,null,e);function Nj(e){return(0,v.isValidElement)(e)&&e.type===Ij}function Oj(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Dj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,v.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,i=r?Pj:t;return(0,v.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,v.createElement)(i,Qu({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Aj(e,t){e&&(0,kt.flushSync)((()=>e.dispatchEvent(t)))}function Lj(e){const t=e+"CollectionProvider",[n,r]=Sj(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:t,children:n}=e,r=y().useRef(null),i=y().useRef(new Map).current;return y().createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},s=e+"CollectionSlot",l=y().forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Cj(t,i(s,n).collectionRef);return y().createElement(Pj,{ref:o},r)})),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=y().forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=y().useRef(null),s=Cj(t,a),l=i(c,n);return y().useEffect((()=>(l.itemMap.set(a,{ref:a,...o}),()=>{l.itemMap.delete(a)}))),y().createElement(Pj,{[u]:"",ref:s},r)}));return[{Provider:a,Slot:l,ItemSlot:d},function(t){const n=i(e+"CollectionConsumer",t),r=y().useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}const zj=(0,v.createContext)(void 0);function Fj(e){const t=(0,v.useContext)(zj);return e||t||"ltr"}const Bj="dismissableLayer.update",jj="dismissableLayer.pointerDownOutside",Vj="dismissableLayer.focusOutside";let Hj;const $j=(0,v.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Wj=(0,v.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=(0,v.useContext)($j),[d,f]=(0,v.useState)(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,m]=(0,v.useState)({}),h=Cj(t,(e=>f(e))),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),w=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,_=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Tj(e),r=(0,v.useRef)(!1),o=(0,v.useRef)((()=>{}));return(0,v.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){Gj(jj,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));E&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p),C=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Tj(e),r=(0,v.useRef)(!1);return(0,v.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){Gj(Vj,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Tj(e);(0,v.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{w===u.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),(0,v.useEffect)((()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Hj=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Uj(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=Hj)}}),[d,p,r,u]),(0,v.useEffect)((()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Uj())}),[d,u]),(0,v.useEffect)((()=>{const e=()=>m({});return document.addEventListener(Bj,e),()=>document.removeEventListener(Bj,e)}),[]),(0,v.createElement)(Dj.div,Qu({},c,{ref:h,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:Ej(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Ej(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ej(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function Uj(){const e=new CustomEvent(Bj);document.dispatchEvent(e)}function Gj(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Aj(o,i):o.dispatchEvent(i)}let Kj=0;function qj(){(0,v.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Yj()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Yj()),Kj++,()=>{1===Kj&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Kj--}}),[])}function Yj(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Xj="focusScope.autoFocusOnMount",Zj="focusScope.autoFocusOnUnmount",Jj={bubbles:!1,cancelable:!0},Qj=(0,v.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=(0,v.useState)(null),c=Tj(o),u=Tj(i),d=(0,v.useRef)(null),f=Cj(t,(e=>l(e))),p=(0,v.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,v.useEffect)((()=>{if(r){function e(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:rV(d.current,{select:!0})}function t(e){!p.paused&&s&&(s.contains(e.relatedTarget)||rV(d.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,s,p.paused]),(0,v.useEffect)((()=>{if(s){oV.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(Xj,Jj);s.addEventListener(Xj,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rV(r,{select:t}),document.activeElement!==n)return}((e=eV(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&rV(s))}return()=>{s.removeEventListener(Xj,c),setTimeout((()=>{const e=new CustomEvent(Zj,Jj);s.addEventListener(Zj,u),s.dispatchEvent(e),e.defaultPrevented||rV(null!=t?t:document.body,{select:!0}),s.removeEventListener(Zj,u),oV.remove(p)}),0)}}var e}),[s,c,u,p]);const m=(0,v.useCallback)((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=eV(e),n=tV(t,e),r=tV(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&rV(i,{select:!0})):(e.preventDefault(),n&&rV(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return(0,v.createElement)(Dj.div,Qu({tabIndex:-1},a,{ref:f,onKeyDown:m}))}));function eV(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tV(e,t){for(const n of e)if(!nV(n,{upTo:t}))return n}function nV(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function rV(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const oV=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=iV(e,t),e.unshift(t)},remove(t){var n;e=iV(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function iV(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const aV=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?v.useLayoutEffect:()=>{},sV=v["useId".toString()]||(()=>{});let lV=0;function cV(e){const[t,n]=v.useState(sV());return aV((()=>{e||n((e=>null!=e?e:String(lV++)))}),[e]),e||(t?`radix-${t}`:"")}function uV(e){return e.split("-")[0]}function dV(e){return e.split("-")[1]}function fV(e){return["top","bottom"].includes(uV(e))?"x":"y"}function pV(e){return"y"===e?"height":"width"}function mV(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=fV(t),l=pV(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(uV(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(dV(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function hV(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function gV(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function vV(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=hV(p),h=s[f?"floating"===d?"reference":"floating":d],g=gV(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=gV(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:g.top-v.top+m.top,bottom:v.bottom-g.bottom+m.bottom,left:g.left-v.left+m.left,right:v.right-g.right+m.right}}const bV=Math.min,yV=Math.max;function wV(e,t,n){return yV(e,bV(t,n))}const xV=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:s,platform:l}=t;if(null==n)return{};const c=hV(r),u={x:o,y:i},d=fV(a),f=dV(a),p=pV(d),m=await l.getDimensions(n),h="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[p]+s.reference[d]-u[d]-s.floating[p],b=u[d]-s.reference[d],y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let w=y?"y"===d?y.clientHeight||0:y.clientWidth||0:0;0===w&&(w=s.floating[p]);const x=v/2-b/2,E=c[h],_=w-m[p]-c[g],C=w/2-m[p]/2+x,S=wV(E,C,_),k=("start"===f?c[h]:c[g])>0&&C!==S&&s.reference[p]<=s.floating[p];return{[d]:u[d]-(k?C<E?E-C:_-C:0),data:{[d]:S,centerOffset:C-S}}}}),EV={left:"right",right:"left",bottom:"top",top:"bottom"};function _V(e){return e.replace(/left|right|bottom|top/g,(e=>EV[e]))}function CV(e,t,n){void 0===n&&(n=!1);const r=dV(e),o=fV(e),i=pV(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=_V(a)),{main:a,cross:_V(a)}}const SV={start:"end",end:"start"};function kV(e){return e.replace(/start|end/g,(e=>SV[e]))}const TV=["top","right","bottom","left"],RV=(TV.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=uV(r),g=d||(h!==a&&p?function(e){const t=_V(e);return[kV(e),t,kV(t)]}(a):[_V(a)]),v=[a,...g],b=await vV(t,m),y=[];let w=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&y.push(b[h]),u){const{main:e,cross:t}=CV(r,i,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(b[e],b[t])}if(w=[...w,{placement:r,overflows:y}],!y.every((e=>e<=0))){var x,E;const e=(null!=(x=null==(E=o.flip)?void 0:E.index)?x:0)+1,t=v[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var _;const e=null==(_=w.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}});function PV(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function MV(e){return TV.some((t=>e[t]>=0))}const IV=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=PV(await vV(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:MV(t)}}}case"escaped":{const t=PV(await vV(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:MV(t)}}}default:return{}}}}},NV=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=uV(n),s=dV(n),l="x"===fV(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function OV(e){return"x"===e?"y":"x"}const DV=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await vV(t,l),d=fV(uV(o)),f=OV(d);let p=c[d],m=c[f];if(i){const e="y"===d?"bottom":"right";p=wV(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=wV(m+u["y"===f?"top":"left"],m,m-u[e])}const h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},AV=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=fV(o),f=OV(d);let p=u[d],m=u[f];const h="function"==typeof s?s({...i,placement:o}):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,n=i.reference[d]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,b,y,w;const e="y"===d?"width":"height",t=["top","left"].includes(uV(o)),n=i.reference[f]-i.floating[e]+(t&&null!=(v=null==(b=a.offset)?void 0:b[f])?v:0)+(t?0:g.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:null!=(y=null==(w=a.offset)?void 0:w[f])?y:0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},LV=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a,...s}=e,l=await vV(t,s),c=uV(n),u=dV(n);let d,f;"top"===c||"bottom"===c?(d=c,f=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=c,d="end"===u?"top":"bottom");const p=yV(l.left,0),m=yV(l.right,0),h=yV(l.top,0),g=yV(l.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==g?h+g:yV(l.top,l.bottom)):l[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:yV(l.left,l.right)):l[f])},b=await o.getDimensions(i.floating);null==a||a({...t,...v});const y=await o.getDimensions(i.floating);return b.width!==y.width||b.height!==y.height?{reset:{rects:!0}}:{}}}};function zV(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function FV(e){if(null==e)return window;if(!zV(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function BV(e){return FV(e).getComputedStyle(e)}function jV(e){return zV(e)?"":e?(e.nodeName||"").toLowerCase():""}function VV(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function HV(e){return e instanceof FV(e).HTMLElement}function $V(e){return e instanceof FV(e).Element}function WV(e){return"undefined"!=typeof ShadowRoot&&(e instanceof FV(e).ShadowRoot||e instanceof ShadowRoot)}function UV(e){const{overflow:t,overflowX:n,overflowY:r}=BV(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function GV(e){return["table","td","th"].includes(jV(e))}function KV(e){const t=/firefox/i.test(VV()),n=BV(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function qV(){return!/^((?!chrome|android).)*safari/i.test(VV())}const YV=Math.min,XV=Math.max,ZV=Math.round;function JV(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&HV(e)&&(l=e.offsetWidth>0&&ZV(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&ZV(s.height)/e.offsetHeight||1);const u=$V(e)?FV(e):window,d=!qV()&&n,f=(s.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/l,p=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,m=s.width/l,h=s.height/c;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function QV(e){return(t=e,(t instanceof FV(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function eH(e){return $V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tH(e){return JV(QV(e)).left+eH(e).scrollLeft}function nH(e,t,n){const r=HV(t),o=QV(t),i=JV(e,r&&function(e){const t=JV(e);return ZV(t.width)!==e.offsetWidth||ZV(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==jV(t)||UV(o))&&(a=eH(t)),HV(t)){const e=JV(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=tH(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function rH(e){return"html"===jV(e)?e:e.assignedSlot||e.parentNode||(WV(e)?e.host:null)||QV(e)}function oH(e){return HV(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function iH(e){const t=FV(e);let n=oH(e);for(;n&&GV(n)&&"static"===getComputedStyle(n).position;)n=oH(n);return n&&("html"===jV(n)||"body"===jV(n)&&"static"===getComputedStyle(n).position&&!KV(n))?t:n||function(e){let t=rH(e);for(WV(t)&&(t=t.host);HV(t)&&!["html","body"].includes(jV(t));){if(KV(t))return t;t=t.parentNode}return null}(e)||t}function aH(e){if(HV(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=JV(e);return{width:t.width,height:t.height}}function sH(e){const t=rH(e);return["html","body","#document"].includes(jV(t))?e.ownerDocument.body:HV(t)&&UV(t)?t:sH(t)}function lH(e,t){var n;void 0===t&&(t=[]);const r=sH(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=FV(r),a=o?[i].concat(i.visualViewport||[],UV(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(lH(a))}function cH(e,t,n){return"viewport"===t?gV(function(e,t){const n=FV(e),r=QV(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=qV();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):$V(t)?function(e,t){const n=JV(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):gV(function(e){var t;const n=QV(e),r=eH(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=XV(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=XV(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+tH(e);const l=-r.scrollTop;return"rtl"===BV(o||n).direction&&(s+=XV(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(QV(e)))}function uH(e){const t=lH(e),n=["absolute","fixed"].includes(BV(e).position)&&HV(e)?iH(e):e;return $V(n)?t.filter((e=>$V(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&WV(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==jV(e))):[]}const dH={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?uH(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=cH(t,n,o);return e.top=XV(r.top,e.top),e.right=YV(r.right,e.right),e.bottom=YV(r.bottom,e.bottom),e.left=XV(r.left,e.left),e}),cH(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=HV(n),i=QV(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==jV(n)||UV(i))&&(a=eH(n)),HV(n))){const e=JV(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:$V,getDimensions:aH,getOffsetParent:iH,getDocumentElement:QV,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:nH(t,iH(n),r),floating:{...aH(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===BV(e).direction};function fH(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=i&&!s,u=l||c?[...$V(e)?lH(e):[],...lH(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),$V(e)&&!s&&f.observe(e),f.observe(t)}let p=s?JV(e):null;return s&&function t(){const r=JV(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}const pH=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=mV(l,r,s),d=r,f={},p=0;for(let n=0;n<i.length;n++){const{name:m,fn:h}=i[n],{x:g,y:v,data:b,reset:y}=await h({x:c,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,u=null!=v?v:u,f={...f,[m]:{...f[m],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(d=y.placement),y.rects&&(l=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:c,y:u}=mV(l,d,s))),n=-1)}return{x:c,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{platform:dH,...n});var mH="undefined"!=typeof document?v.useLayoutEffect:v.useEffect;function hH(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!hH(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!hH(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function gH(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=v.useRef(null),a=v.useRef(null),s=function(e){const t=v.useRef(e);return mH((()=>{t.current=e})),t}(o),l=v.useRef(null),[c,u]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=v.useState(t);hH(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const p=v.useCallback((()=>{i.current&&a.current&&pH(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{m.current&&kt.flushSync((()=>{u(e)}))}))}),[d,n,r]);mH((()=>{m.current&&p()}),[p]);const m=v.useRef(!1);mH((()=>(m.current=!0,()=>{m.current=!1})),[]);const h=v.useCallback((()=>{if("function"==typeof l.current&&(l.current(),l.current=null),i.current&&a.current)if(s.current){const e=s.current(i.current,a.current,p);l.current=e}else p()}),[p,s]),g=v.useCallback((e=>{i.current=e,h()}),[h]),b=v.useCallback((e=>{a.current=e,h()}),[h]),y=v.useMemo((()=>({reference:i,floating:a})),[]);return v.useMemo((()=>({...c,update:p,refs:y,reference:g,floating:b})),[c,p,y,g,b])}const vH=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?xV({element:t.current,padding:n}).fn(e):{}:t?xV({element:t,padding:n}).fn(e):{};var r}}};const bH="Popper",[yH,wH]=Sj(bH),[xH,EH]=yH(bH),_H=e=>{const{__scopePopper:t,children:n}=e,[r,o]=(0,v.useState)(null);return(0,v.createElement)(xH,{scope:t,anchor:r,onAnchorChange:o},n)},CH="PopperAnchor",SH=(0,v.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=EH(CH,n),a=(0,v.useRef)(null),s=Cj(t,a);return(0,v.useEffect)((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:(0,v.createElement)(Dj.div,Qu({},o,{ref:s}))})),kH="PopperContent",[TH,RH]=yH(kH),[PH,MH]=yH(kH,{hasParent:!1,positionUpdateFns:new Set}),IH=(0,v.forwardRef)(((e,t)=>{var n,r,o,i,a,s,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,collisionBoundary:g=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:w=!1,avoidCollisions:x=!0,onPlaced:E,..._}=e,C=EH(kH,u),[S,k]=(0,v.useState)(null),T=Cj(t,(e=>k(e))),[R,P]=(0,v.useState)(null),M=function(e){const[t,n]=(0,v.useState)(void 0);return aV((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(R),I=null!==(n=null==M?void 0:M.width)&&void 0!==n?n:0,N=null!==(r=null==M?void 0:M.height)&&void 0!==r?r:0,O=d+("center"!==p?"-"+p:""),D="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},A=Array.isArray(g)?g:[g],L=A.length>0,z={padding:D,boundary:A.filter(OH),altBoundary:L},{reference:F,floating:B,strategy:j,x:V,y:H,placement:$,middlewareData:W,update:U}=gH({strategy:"fixed",placement:O,whileElementsMounted:fH,middleware:[DH(),NV({mainAxis:f+N,alignmentAxis:m}),x?DV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?AV():void 0,...z}):void 0,R?vH({element:R,padding:h}):void 0,x?RV({...z}):void 0,LV({...z,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),AH({arrowWidth:I,arrowHeight:N}),w?IV({strategy:"referenceHidden"}):void 0].filter(NH)});aV((()=>{F(C.anchor)}),[F,C.anchor]);const G=null!==V&&null!==H,[K,q]=LH($),Y=Tj(E);aV((()=>{G&&(null==Y||Y())}),[G,Y]);const X=null===(o=W.arrow)||void 0===o?void 0:o.x,Z=null===(i=W.arrow)||void 0===i?void 0:i.y,J=0!==(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset),[Q,ee]=(0,v.useState)();aV((()=>{S&&ee(window.getComputedStyle(S).zIndex)}),[S]);const{hasParent:te,positionUpdateFns:ne}=MH(kH,u),re=!te;(0,v.useLayoutEffect)((()=>{if(!re)return ne.add(U),()=>{ne.delete(U)}}),[re,ne,U]),aV((()=>{re&&G&&Array.from(ne).reverse().forEach((e=>requestAnimationFrame(e)))}),[re,G,ne]);const oe={"data-side":K,"data-align":q,..._,ref:T,style:{..._.style,animation:G?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,v.createElement)("div",{ref:B,"data-radix-popper-content-wrapper":"",style:{position:j,left:0,top:0,transform:G?`translate3d(${Math.round(V)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(c=W.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},(0,v.createElement)(TH,{scope:u,placedSide:K,onArrowChange:P,arrowX:X,arrowY:Z,shouldHideArrow:J},re?(0,v.createElement)(PH,{scope:u,hasParent:!0,positionUpdateFns:ne},(0,v.createElement)(Dj.div,oe)):(0,v.createElement)(Dj.div,oe)))}));function NH(e){return void 0!==e}function OH(e){return null!==e}const DH=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),AH=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=LH(s),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let b="",y="";return"bottom"===p?(b=u?h:`${g}px`,y=-f+"px"):"top"===p?(b=u?h:`${g}px`,y=`${l.floating.height+f}px`):"right"===p?(b=-f+"px",y=u?h:`${v}px`):"left"===p&&(b=`${l.floating.width+f}px`,y=u?h:`${v}px`),{data:{x:b,y:y}}}});function LH(e){const[t,n="center"]=e.split("-");return[t,n]}const zH=_H,FH=SH,BH=IH,jH=(0,v.forwardRef)(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?Tt().createPortal((0,v.createElement)(Dj.div,Qu({},o,{ref:t})),r):null}));const VH=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,v.useState)(),r=(0,v.useRef)({}),o=(0,v.useRef)(e),i=(0,v.useRef)("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return(0,v.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,v.useEffect)((()=>{const e=HH(r.current);i.current="mounted"===s?e:"none"}),[s]),aV((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=HH(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),aV((()=>{if(t){const e=e=>{const n=HH(r.current).includes(e.animationName);e.target===t&&n&&(0,kt.flushSync)((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=HH(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,v.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),i=Cj(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,v.cloneElement)(o,{ref:i}):null};function HH(e){return(null==e?void 0:e.animationName)||"none"}VH.displayName="Presence";const $H="rovingFocusGroup.onEntryFocus",WH={bubbles:!1,cancelable:!0},UH="RovingFocusGroup",[GH,KH,qH]=Lj(UH),[YH,XH]=Sj(UH,[qH]),[ZH,JH]=YH(UH),QH=(0,v.forwardRef)(((e,t)=>(0,v.createElement)(GH.Provider,{scope:e.__scopeRovingFocusGroup},(0,v.createElement)(GH.Slot,{scope:e.__scopeRovingFocusGroup},(0,v.createElement)(e$,Qu({},e,{ref:t})))))),e$=(0,v.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=(0,v.useRef)(null),f=Cj(t,d),p=Fj(i),[m=null,h]=Rj({prop:a,defaultProp:s,onChange:l}),[g,b]=(0,v.useState)(!1),y=Tj(c),w=KH(n),x=(0,v.useRef)(!1),[E,_]=(0,v.useState)(0);return(0,v.useEffect)((()=>{const e=d.current;if(e)return e.addEventListener($H,y),()=>e.removeEventListener($H,y)}),[y]),(0,v.createElement)(ZH,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:m,onItemFocus:(0,v.useCallback)((e=>h(e)),[h]),onItemShiftTab:(0,v.useCallback)((()=>b(!0)),[]),onFocusableItemAdd:(0,v.useCallback)((()=>_((e=>e+1))),[]),onFocusableItemRemove:(0,v.useCallback)((()=>_((e=>e-1))),[])},(0,v.createElement)(Dj.div,Qu({tabIndex:g||0===E?-1:0,"data-orientation":r},u,{ref:f,style:{outline:"none",...e.style},onMouseDown:Ej(e.onMouseDown,(()=>{x.current=!0})),onFocus:Ej(e.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent($H,WH);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable)),t=e.find((e=>e.active)),n=e.find((e=>e.id===m)),r=[t,n,...e].filter(Boolean).map((e=>e.ref.current));o$(r)}}x.current=!1})),onBlur:Ej(e.onBlur,(()=>b(!1)))})))})),t$="RovingFocusGroupItem",n$=(0,v.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=cV(),l=i||s,c=JH(t$,n),u=c.currentTabStopId===l,d=KH(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=c;return(0,v.useEffect)((()=>{if(r)return f(),()=>p()}),[r,f,p]),(0,v.createElement)(GH.ItemSlot,{scope:n,id:l,focusable:r,active:o},(0,v.createElement)(Dj.span,Qu({tabIndex:u?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:Ej(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:Ej(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:Ej(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:r$[r]}(e,c.orientation,c.dir);if(void 0!==t){e.preventDefault();const o=d().filter((e=>e.focusable));let i=o.map((e=>e.ref.current));if("last"===t)i.reverse();else if("prev"===t||"next"===t){"prev"===t&&i.reverse();const o=i.indexOf(e.currentTarget);i=c.loop?(r=o+1,(n=i).map(((e,t)=>n[(r+t)%n.length]))):i.slice(o+1)}setTimeout((()=>o$(i)))}var n,r}))})))})),r$={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function o$(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const i$=QH,a$=n$;var s$=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},l$=new WeakMap,c$=new WeakMap,u$={},d$=0,f$=function(e){return e&&(e.host||f$(e.parentNode))},p$=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=f$(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);u$[n]||(u$[n]=new WeakMap);var i=u$[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(l$.get(e)||0)+1,c=(i.get(e)||0)+1;l$.set(e,l),i.set(e,c),a.push(e),1===l&&o&&c$.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),s.clear(),d$++,function(){a.forEach((function(e){var t=l$.get(e)-1,o=i.get(e)-1;l$.set(e,t),i.set(e,o),t||(c$.has(e)||e.removeAttribute(r),c$.delete(e)),o||e.removeAttribute(n)})),--d$||(l$=new WeakMap,l$=new WeakMap,c$=new WeakMap,u$={})}},m$=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||s$(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),p$(r,o,n,"aria-hidden")):function(){return null}},h$="right-scroll-bar-position",g$="width-before-scroll-bar";function v$(e,t){return function(e,t){var n=(0,v.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}function b$(e){return e}function y$(e,t){void 0===t&&(t=b$);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}var w$=function(e){void 0===e&&(e={});var t=y$(null);return t.options=ac({async:!0,ssr:!1},e),t}(),x$=function(){},E$=v.forwardRef((function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:x$,onWheelCapture:x$,onTouchMoveCapture:x$}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,b=void 0===g?"div":g,y=sc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=f,x=v$([n,t]),E=ac(ac({},y),o);return v.createElement(v.Fragment,null,u&&v.createElement(w,{sideCar:w$,removeScrollBar:c,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n}),a?v.cloneElement(v.Children.only(s),ac(ac({},E),{ref:x})):v.createElement(b,ac({},E,{className:l,ref:x}),s))}));E$.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},E$.classNames={fullWidth:g$,zeroRight:h$};var _$,C$=function(e){var t=e.sideCar,n=sc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,ac({},n))};C$.isSideCarExport=!0;function S$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_$||o.nc;return t&&e.setAttribute("nonce",t),e}var k$=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=S$())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},T$=function(){var e=function(){var e=k$();return function(t,n){v.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},R$={left:0,top:0,right:0,gap:0},P$=function(e){return parseInt(e||"",10)||0},M$=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return R$;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[P$(n),P$(r),P$(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},I$=T$(),N$=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(h$," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(g$," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(h$," .").concat(h$," {\n right: 0 ").concat(r,";\n }\n \n .").concat(g$," .").concat(g$," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},O$=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=v.useMemo((function(){return M$(o)}),[o]);return v.createElement(I$,{styles:N$(i,!t,o,n?"":"!important")})},D$=!1;if("undefined"!=typeof window)try{var A$=Object.defineProperty({},"passive",{get:function(){return D$=!0,!0}});window.addEventListener("test",A$,A$),window.removeEventListener("test",A$,A$)}catch(e){D$=!1}var L$=!!D$&&{passive:!1},z$=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},F$=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),B$(e,n)){var r=j$(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},B$=function(e,t){return"v"===e?function(e){return z$(e,"overflowY")}(t):function(e){return z$(e,"overflowX")}(t)},j$=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},V$=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},H$=function(e){return[e.deltaX,e.deltaY]},$$=function(e){return e&&"current"in e?e.current:e},W$=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},U$=0,G$=[];var K$,q$=(K$=function(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(U$++)[0],i=v.useState((function(){return T$()}))[0],a=v.useRef(e);v.useEffect((function(){a.current=e}),[e]),v.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=lc([e.lockRef.current],(e.shards||[]).map($$),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=V$(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=F$(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=F$(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{var p=j$(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&B$(e,s)&&(d+=h,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===f||!o&&-a>f))&&(c=!0),c}(p,t,e,"h"===p?l:c,!0)}),[]),l=v.useCallback((function(e){var n=e;if(G$.length&&G$[G$.length-1]===i){var r="deltaY"in n?H$(n):V$(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map($$).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=v.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),u=v.useCallback((function(e){n.current=V$(e),r.current=void 0}),[]),d=v.useCallback((function(t){c(t.type,H$(t),t.target,s(t,e.lockRef.current))}),[]),f=v.useCallback((function(t){c(t.type,V$(t),t.target,s(t,e.lockRef.current))}),[]);v.useEffect((function(){return G$.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,L$),document.addEventListener("touchmove",l,L$),document.addEventListener("touchstart",u,L$),function(){G$=G$.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,L$),document.removeEventListener("touchmove",l,L$),document.removeEventListener("touchstart",u,L$)}}),[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(i,{styles:W$(o)}):null,p?v.createElement(O$,{gapMode:"margin"}):null)},w$.useMedium(K$),C$),Y$=v.forwardRef((function(e,t){return v.createElement(E$,ac({},e,{ref:t,sideCar:q$}))}));Y$.classNames=E$.classNames;var X$=Y$;const Z$=["Enter"," "],J$=["ArrowUp","PageDown","End"],Q$=["ArrowDown","PageUp","Home",...J$],eW={ltr:[...Z$,"ArrowRight"],rtl:[...Z$,"ArrowLeft"]},tW={ltr:["ArrowLeft"],rtl:["ArrowRight"]},nW="Menu",[rW,oW,iW]=Lj(nW),[aW,sW]=Sj(nW,[iW,wH,XH]),lW=wH(),cW=XH(),[uW,dW]=aW(nW),[fW,pW]=aW(nW),mW=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=lW(t),[l,c]=(0,v.useState)(null),u=(0,v.useRef)(!1),d=Tj(i),f=Fj(o);return(0,v.useEffect)((()=>{const e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,v.createElement)(zH,s,(0,v.createElement)(uW,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},(0,v.createElement)(fW,{scope:t,onClose:(0,v.useCallback)((()=>d(!1)),[d]),isUsingKeyboardRef:u,dir:f,modal:a},r)))},hW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e,o=lW(n);return(0,v.createElement)(FH,Qu({},o,r,{ref:t}))})),gW="MenuPortal",[vW,bW]=aW(gW,{forceMount:void 0}),yW=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=dW(gW,t);return(0,v.createElement)(vW,{scope:t,forceMount:n},(0,v.createElement)(VH,{present:n||i.open},(0,v.createElement)(jH,{asChild:!0,container:o},r)))},wW="MenuContent",[xW,EW]=aW(wW),_W=(0,v.forwardRef)(((e,t)=>{const n=bW(wW,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=dW(wW,e.__scopeMenu),a=pW(wW,e.__scopeMenu);return(0,v.createElement)(rW.Provider,{scope:e.__scopeMenu},(0,v.createElement)(VH,{present:r||i.open},(0,v.createElement)(rW.Slot,{scope:e.__scopeMenu},a.modal?(0,v.createElement)(CW,Qu({},o,{ref:t})):(0,v.createElement)(SW,Qu({},o,{ref:t})))))})),CW=(0,v.forwardRef)(((e,t)=>{const n=dW(wW,e.__scopeMenu),r=(0,v.useRef)(null),o=Cj(t,r);return(0,v.useEffect)((()=>{const e=r.current;if(e)return m$(e)}),[]),(0,v.createElement)(kW,Qu({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ej(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),SW=(0,v.forwardRef)(((e,t)=>{const n=dW(wW,e.__scopeMenu);return(0,v.createElement)(kW,Qu({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),kW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=dW(wW,n),b=pW(wW,n),y=lW(n),w=cW(n),x=oW(n),[E,_]=(0,v.useState)(null),C=(0,v.useRef)(null),S=Cj(t,C,g.onContentChange),k=(0,v.useRef)(0),T=(0,v.useRef)(""),R=(0,v.useRef)(0),P=(0,v.useRef)(null),M=(0,v.useRef)("right"),I=(0,v.useRef)(0),N=m?X$:v.Fragment,O=m?{as:Pj,allowPinchZoom:!0}:void 0,D=e=>{var t,n;const r=T.current+e,o=x().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,s=o.map((e=>e.textValue)),l=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(s=e,l=Math.max(i,0),s.map(((e,t)=>s[(l+t)%s.length])));var s,l;const c=1===o.length;c&&(a=a.filter((e=>e!==n)));const u=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==n?u:void 0}(s,r,a),c=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;!function e(t){T.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout((()=>e("")),1e3))}(r),c&&setTimeout((()=>c.focus()))};(0,v.useEffect)((()=>()=>window.clearTimeout(k.current)),[]),qj();const A=(0,v.useCallback)((e=>{var t,n;return M.current===(null===(t=P.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)}),[]);return(0,v.createElement)(xW,{scope:n,searchRef:T,onItemEnter:(0,v.useCallback)((e=>{A(e)&&e.preventDefault()}),[A]),onItemLeave:(0,v.useCallback)((e=>{var t;A(e)||(null===(t=C.current)||void 0===t||t.focus(),_(null))}),[A]),onTriggerLeave:(0,v.useCallback)((e=>{A(e)&&e.preventDefault()}),[A]),pointerGraceTimerRef:R,onPointerGraceIntentChange:(0,v.useCallback)((e=>{P.current=e}),[])},(0,v.createElement)(N,O,(0,v.createElement)(Qj,{asChild:!0,trapped:o,onMountAutoFocus:Ej(i,(e=>{var t;e.preventDefault(),null===(t=C.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},(0,v.createElement)(Wj,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p},(0,v.createElement)(i$,Qu({asChild:!0},w,{dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:_,onEntryFocus:Ej(l,(e=>{b.isUsingKeyboardRef.current||e.preventDefault()}))}),(0,v.createElement)(BH,Qu({role:"menu","aria-orientation":"vertical","data-state":QW(g.open),"data-radix-menu-content":"",dir:b.dir},y,h,{ref:S,style:{outline:"none",...h.style},onKeyDown:Ej(h.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&D(e.key));const o=C.current;if(e.target!==o)return;if(!Q$.includes(e.key))return;e.preventDefault();const i=x().filter((e=>!e.disabled)),a=i.map((e=>e.ref.current));J$.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:Ej(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),T.current="")})),onPointerMove:Ej(e.onPointerMove,nU((e=>{const t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>I.current?"right":"left";M.current=t,I.current=e.clientX}})))})))))))})),TW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Dj.div,Qu({role:"group"},r,{ref:t}))})),RW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Dj.div,Qu({},r,{ref:t}))})),PW="MenuItem",MW="menu.itemSelect",IW=(0,v.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=(0,v.useRef)(null),a=pW(PW,e.__scopeMenu),s=EW(PW,e.__scopeMenu),l=Cj(t,i),c=(0,v.useRef)(!1);return(0,v.createElement)(NW,Qu({},o,{ref:l,disabled:n,onClick:Ej(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(MW,{bubbles:!0,cancelable:!0});e.addEventListener(MW,(e=>null==r?void 0:r(e)),{once:!0}),Aj(e,t),t.defaultPrevented?c.current=!1:a.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),c.current=!0},onPointerUp:Ej(e.onPointerUp,(e=>{var t;c.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:Ej(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||Z$.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),NW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=EW(PW,n),s=cW(n),l=(0,v.useRef)(null),c=Cj(t,l),[u,d]=(0,v.useState)(!1),[f,p]=(0,v.useState)("");return(0,v.useEffect)((()=>{const e=l.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),(0,v.createElement)(rW.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:f},(0,v.createElement)(a$,Qu({asChild:!0},s,{focusable:!r}),(0,v.createElement)(Dj.div,Qu({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:Ej(e.onPointerMove,nU((e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:Ej(e.onPointerLeave,nU((e=>a.onItemLeave(e)))),onFocus:Ej(e.onFocus,(()=>d(!0))),onBlur:Ej(e.onBlur,(()=>d(!1)))}))))})),OW=(0,v.forwardRef)(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return(0,v.createElement)(VW,{scope:e.__scopeMenu,checked:n},(0,v.createElement)(IW,Qu({role:"menuitemcheckbox","aria-checked":eU(n)?"mixed":n},o,{ref:t,"data-state":tU(n),onSelect:Ej(o.onSelect,(()=>null==r?void 0:r(!!eU(n)||!n)),{checkForDefaultPrevented:!1})})))})),DW="MenuRadioGroup",[AW,LW]=aW(DW,{value:void 0,onValueChange:()=>{}}),zW=(0,v.forwardRef)(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Tj(r);return(0,v.createElement)(AW,{scope:e.__scopeMenu,value:n,onValueChange:i},(0,v.createElement)(TW,Qu({},o,{ref:t})))})),FW="MenuRadioItem",BW=(0,v.forwardRef)(((e,t)=>{const{value:n,...r}=e,o=LW(FW,e.__scopeMenu),i=n===o.value;return(0,v.createElement)(VW,{scope:e.__scopeMenu,checked:i},(0,v.createElement)(IW,Qu({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":tU(i),onSelect:Ej(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),jW="MenuItemIndicator",[VW,HW]=aW(jW,{checked:!1}),$W=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=HW(jW,n);return(0,v.createElement)(VH,{present:r||eU(i.checked)||!0===i.checked},(0,v.createElement)(Dj.span,Qu({},o,{ref:t,"data-state":tU(i.checked)})))})),WW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Dj.div,Qu({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),UW="MenuSub",[GW,KW]=aW(UW),qW=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=dW(UW,t),a=lW(t),[s,l]=(0,v.useState)(null),[c,u]=(0,v.useState)(null),d=Tj(o);return(0,v.useEffect)((()=>(!1===i.open&&d(!1),()=>d(!1))),[i.open,d]),(0,v.createElement)(zH,a,(0,v.createElement)(uW,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:u},(0,v.createElement)(GW,{scope:t,contentId:cV(),triggerId:cV(),trigger:s,onTriggerChange:l},n)))},YW="MenuSubTrigger",XW=(0,v.forwardRef)(((e,t)=>{const n=dW(YW,e.__scopeMenu),r=pW(YW,e.__scopeMenu),o=KW(YW,e.__scopeMenu),i=EW(YW,e.__scopeMenu),a=(0,v.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=(0,v.useCallback)((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return(0,v.useEffect)((()=>u),[u]),(0,v.useEffect)((()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}}),[s,l]),(0,v.createElement)(hW,Qu({asChild:!0},c),(0,v.createElement)(NW,Qu({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":QW(n.open)},e,{ref:_j(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ej(e.onPointerMove,nU((t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(i.onPointerGraceIntentChange(null),a.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:Ej(e.onPointerLeave,nU((e=>{var t;u();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,a="right"===t,l=a?-5:5,c=r[a?"left":"right"],u=r[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+l,y:e.clientY},{x:c,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:c,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:Ej(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||eW[r.dir].includes(t.key)&&(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),ZW="MenuSubContent",JW=(0,v.forwardRef)(((e,t)=>{const n=bW(wW,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=dW(wW,e.__scopeMenu),a=pW(wW,e.__scopeMenu),s=KW(ZW,e.__scopeMenu),l=(0,v.useRef)(null),c=Cj(t,l);return(0,v.createElement)(rW.Provider,{scope:e.__scopeMenu},(0,v.createElement)(VH,{present:r||i.open},(0,v.createElement)(rW.Slot,{scope:e.__scopeMenu},(0,v.createElement)(kW,Qu({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Ej(e.onFocusOutside,(e=>{e.target!==s.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:Ej(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:Ej(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=tW[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function QW(e){return e?"open":"closed"}function eU(e){return"indeterminate"===e}function tU(e){return eU(e)?"indeterminate":e?"checked":"unchecked"}function nU(e){return t=>"mouse"===t.pointerType?e(t):void 0}const rU=mW,oU=hW,iU=yW,aU=_W,sU=TW,lU=RW,cU=IW,uU=OW,dU=zW,fU=BW,pU=$W,mU=WW,hU=qW,gU=XW,vU=JW,bU="DropdownMenu",[yU,wU]=Sj(bU,[sW]),xU=sW(),[EU,_U]=yU(bU),CU=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=xU(t),c=(0,v.useRef)(null),[u=!1,d]=Rj({prop:o,defaultProp:i,onChange:a});return(0,v.createElement)(EU,{scope:t,triggerId:cV(),triggerRef:c,contentId:cV(),open:u,onOpenChange:d,onOpenToggle:(0,v.useCallback)((()=>d((e=>!e))),[d]),modal:s},(0,v.createElement)(rU,Qu({},l,{open:u,onOpenChange:d,dir:r,modal:s}),n))},SU="DropdownMenuTrigger",kU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=_U(SU,n),a=xU(n);return(0,v.createElement)(oU,Qu({asChild:!0},a),(0,v.createElement)(Dj.button,Qu({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:_j(t,i.triggerRef),onPointerDown:Ej(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:Ej(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),TU=e=>{const{__scopeDropdownMenu:t,...n}=e,r=xU(t);return(0,v.createElement)(iU,Qu({},r,n))},RU="DropdownMenuContent",PU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=_U(RU,n),i=xU(n),a=(0,v.useRef)(!1);return(0,v.createElement)(aU,Qu({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:Ej(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:Ej(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),MU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xU(n);return(0,v.createElement)(sU,Qu({},o,r,{ref:t}))})),IU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xU(n);return(0,v.createElement)(lU,Qu({},o,r,{ref:t}))})),NU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xU(n);return(0,v.createElement)(cU,Qu({},o,r,{ref:t}))})),OU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xU(n);return(0,v.createElement)(uU,Qu({},o,r,{ref:t}))})),DU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xU(n);return(0,v.createElement)(dU,Qu({},o,r,{ref:t}))})),AU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xU(n);return(0,v.createElement)(fU,Qu({},o,r,{ref:t}))})),LU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xU(n);return(0,v.createElement)(pU,Qu({},o,r,{ref:t}))})),zU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xU(n);return(0,v.createElement)(mU,Qu({},o,r,{ref:t}))})),FU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xU(n);return(0,v.createElement)(gU,Qu({},o,r,{ref:t}))})),BU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xU(n);return(0,v.createElement)(vU,Qu({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),jU=CU,VU=kU,HU=TU,$U=PU,WU=MU,UU=IU,GU=NU,KU=OU,qU=DU,YU=AU,XU=LU,ZU=zU,JU=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=xU(t),[s=!1,l]=Rj({prop:r,defaultProp:i,onChange:o});return(0,v.createElement)(hU,Qu({},a,{open:s,onOpenChange:l}),n)},QU=FU,eG=BU;var tG=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));const nG="2px",rG="400ms",oG="cubic-bezier( 0.16, 1, 0.3, 1 )",iG=Jm(2),aG=Jm(7),sG=Jm(2),lG=Jm(2.5),cG=Dp.ui.borderDisabled,uG=Dp.gray[900],dG=`0 0 0 ${Nh.borderWidth} ${cG}, ${Nh.popoverShadow}`,fG=`0 0 0 ${Nh.borderWidth} ${uG}`,pG=Jf({"0%":{opacity:0,transform:`translateY(${nG})`},"100%":{opacity:1,transform:"translateY(0)"}}),mG=Jf({"0%":{opacity:0,transform:`translateX(-${nG})`},"100%":{opacity:1,transform:"translateX(0)"}}),hG=Jf({"0%":{opacity:0,transform:`translateY(-${nG})`},"100%":{opacity:1,transform:"translateY(0)"}}),gG=Jf({"0%":{opacity:0,transform:`translateX(${nG})`},"100%":{opacity:1,transform:"translateX(0)"}}),vG=e=>Zf("min-width:220px;background-color:",Dp.ui.background,";border-radius:",Nh.radiusBlockUi,";padding:",iG,";box-shadow:","toolbar"===e?fG:dG,";animation-duration:",rG,";animation-timing-function:",oG,";will-change:transform,opacity;&[data-side='top']{animation-name:",hG,";}&[data-side='right']{animation-name:",gG,";}&[data-side='bottom']{animation-name:",pG,";}&[data-side='left']{animation-name:",mG,";}@media ( prefers-reduced-motion ){animation-duration:0s;}",""),bG=Zf("width:",aG,";display:inline-flex;align-items:center;justify-content:center;margin-inline-start:calc( -1 * ",sG," );margin-top:",Jm(-2),";margin-bottom:",Jm(-2),";",""),yG=Zf("width:max-content;display:inline-flex;align-items:center;justify-content:center;margin-inline-start:auto;padding-inline-start:",Jm(6),";margin-top:",Jm(-2),";margin-bottom:",Jm(-2),";opacity:0.6;[data-highlighted]>&,[data-state='open']>&,[data-disabled]>&{opacity:1;}",""),wG=sd("span",{target:"e1kdzosf11"})(bG,";"),xG=sd("span",{target:"e1kdzosf10"})(yG,";"),EG=Zf("all:unset;font-size:",Mv("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",Dp.gray[900],";border-radius:",Nh.radiusBlockUi,";display:flex;align-items:center;padding:",Jm(2)," ",lG," ",Jm(2)," ",sG,";position:relative;user-select:none;outline:none;&[data-disabled]{opacity:0.5;pointer-events:none;}&[data-highlighted]{background-color:",Dp.gray[100],";outline:2px solid transparent;}svg{fill:currentColor;}&:not( :has( ",wG," ) ){padding-inline-start:",aG,";}",""),_G=sd($U,{target:"e1kdzosf9"})((e=>vG(e.variant)),";"),CG=sd(eG,{target:"e1kdzosf8"})((e=>vG(e.variant)),";"),SG=sd(GU,{target:"e1kdzosf7"})(EG,";"),kG=sd(KU,{target:"e1kdzosf6"})(EG,";"),TG=sd(YU,{target:"e1kdzosf5"})(EG,";"),RG=sd(QU,{target:"e1kdzosf4"})(EG," &[data-state='open']{background-color:",Dp.gray[100],";}"),PG=sd(UU,{target:"e1kdzosf3"})("box-sizing:border-box;display:flex;align-items:center;min-height:",Jm(8),";padding:",Jm(2)," ",lG," ",Jm(2)," ",aG,";color:",Dp.gray[700],";font-size:11px;line-height:1.4;font-weight:500;text-transform:uppercase;"),MG=sd(ZU,{target:"e1kdzosf2"})("height:",Nh.borderWidth,";background-color:",(e=>"toolbar"===e.variant?uG:cG),";margin:",Jm(2)," calc( -1 * ",iG," );"),IG=sd(XU,{target:"e1kdzosf1"})({name:"pl708y",styles:"display:inline-flex;align-items:center;justify-content:center"}),NG=sd(Gl,{target:"e1kdzosf0"})(ih({transform:`scaleX(1) translateX(${Jm(2)})`},{transform:`scaleX(-1) translateX(${Jm(2)})`})(),";"),OG=(0,a.createContext)({variant:void 0,portalContainer:null}),DG=qu((e=>{const{defaultOpen:t,open:n,onOpenChange:r,modal:o=!0,side:i="bottom",sideOffset:s=0,align:l="center",alignOffset:u=0,children:d,trigger:f,variant:p}=Gu(e,"DropdownMenu"),m=Yd(Of),h=m.ref?.current,g=(0,a.useMemo)((()=>({variant:p,portalContainer:h})),[p,h]);return(0,a.createElement)(jU,{defaultOpen:t,open:n,onOpenChange:r,modal:o,dir:(0,c.isRTL)()?"rtl":"ltr"},(0,a.createElement)(VU,{asChild:!0},f),(0,a.createElement)(HU,{container:h},(0,a.createElement)(_G,{side:i,align:l,sideOffset:s,alignOffset:u,loop:!0,variant:p},(0,a.createElement)(OG.Provider,{value:g},d))))}),"DropdownMenu"),AG=(0,a.forwardRef)((({children:e,prefix:t,suffix:n,...r},o)=>(0,a.createElement)(SG,{...r,ref:o},t&&(0,a.createElement)(wG,null,t),e,n&&(0,a.createElement)(xG,null,n)))),LG=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Circle,{cx:12,cy:12,r:3,fill:"currentColor"})),{lock:zG,unlock:FG}=(0,xj.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/components"),BG={};zG(BG,{CustomSelectControl:wP,__experimentalPopoverLegacyPositionToPlacement:Tf,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...Sf(t)}},ComponentsContext:ec,DropdownMenuV2:DG,DropdownMenuCheckboxItemV2:({children:e,checked:t=!1,suffix:n,...r})=>(0,a.createElement)(kG,{...r,checked:t},(0,a.createElement)(wG,null,(0,a.createElement)(IG,null,("indeterminate"===t||!0===t)&&(0,a.createElement)(Gl,{icon:"indeterminate"===t?jb:e_,size:24}))),e,n&&(0,a.createElement)(xG,null,n)),DropdownMenuGroupV2:e=>(0,a.createElement)(WU,{...e}),DropdownMenuItemV2:AG,DropdownMenuLabelV2:e=>(0,a.createElement)(PG,{...e}),DropdownMenuRadioGroupV2:e=>(0,a.createElement)(qU,{...e}),DropdownMenuRadioItemV2:({children:e,suffix:t,...n})=>(0,a.createElement)(TG,{...n},(0,a.createElement)(wG,null,(0,a.createElement)(IG,null,(0,a.createElement)(Gl,{icon:LG,size:22}))),e,t&&(0,a.createElement)(xG,null,t)),DropdownMenuSeparatorV2:e=>{const{variant:t}=(0,a.useContext)(OG);return(0,a.createElement)(MG,{...e,variant:t})},DropdownSubMenuV2:({defaultOpen:e,open:t,onOpenChange:n,disabled:r,textValue:o,children:i,trigger:s})=>{const{variant:l,portalContainer:c}=(0,a.useContext)(OG);return(0,a.createElement)(JU,{defaultOpen:e,open:t,onOpenChange:n},(0,a.createElement)(RG,{disabled:r,textValue:o},s),(0,a.createElement)(HU,{container:c},(0,a.createElement)(CG,{loop:!0,sideOffset:16,alignOffset:-8,variant:l},i)))},DropdownSubMenuTriggerV2:({prefix:e,suffix:t=(0,a.createElement)(NG,{icon:tG,size:24}),children:n})=>(0,a.createElement)(a.Fragment,null,e&&(0,a.createElement)(wG,null,e),n,t&&(0,a.createElement)(xG,null,t))})}(),(window.wp=window.wp||{}).components=i}();
\ No newline at end of file
+ `,zL=fd("svg",{target:"ea4tfvq2"})("width:",zh.spinnerSize,"px;height:",zh.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:",Bp.ui.theme,";overflow:visible;opacity:1;background-color:transparent;"),FL={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},BL=fd("circle",{target:"ea4tfvq1"})(FL,";stroke:",Bp.gray[300],";"),jL=fd("path",{target:"ea4tfvq0"})(FL,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",LL,";");var VL=(0,a.forwardRef)((function({className:e,...t},n){return(0,a.createElement)(zL,{className:l()("components-spinner",e),viewBox:"0 0 100 100",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false",...t,ref:n},(0,a.createElement)(BL,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,a.createElement)(jL,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}));var HL=Ju((function(e,t){const n=RS(e);return(0,a.createElement)(md,{...n,ref:t})}),"Surface");const $L=({tabId:e,children:t,selected:n,...r})=>(0,a.createElement)(bd,{role:"tab",tabIndex:n?void 0:-1,"aria-selected":n,id:e,__experimentalIsFocusable:!0,...r},t),WL=(0,a.forwardRef)((({className:e,children:t,tabs:n,selectOnMove:r=!0,initialTabName:o,orientation:i="horizontal",activeClass:s="is-active",onSelect:c},d)=>{var f;const p=(0,u.useInstanceId)(WL,"tab-panel"),[m,h]=(0,a.useState)(),g=(0,a.useCallback)((e=>{h(e),c?.(e)}),[c]),v=n.find((({name:e})=>e===m)),b=`${p}-${null!==(f=v?.name)&&void 0!==f?f:"none"}`;return(0,a.useLayoutEffect)((()=>{if(v)return;const e=n.find((e=>e.name===o));if(!o||e)if(e&&!e.disabled)g(e.name);else{const e=n.find((e=>!e.disabled));e&&g(e.name)}}),[n,v,o,g]),(0,a.useEffect)((()=>{if(!v?.disabled)return;const e=n.find((e=>!e.disabled));e&&g(e.name)}),[n,v?.disabled,g]),(0,a.createElement)("div",{className:e,ref:d},(0,a.createElement)(cT,{role:"tablist",orientation:i,onNavigate:r?(e,t)=>{t.click()}:void 0,className:"components-tab-panel__tabs"},n.map((e=>(0,a.createElement)($L,{className:l()("components-tab-panel__tabs-item",e.className,{[s]:e.name===m}),tabId:`${p}-${e.name}`,"aria-controls":`${p}-${e.name}-view`,selected:e.name===m,key:e.name,onClick:()=>g(e.name),disabled:e.disabled,label:e.icon&&e.title,icon:e.icon,showTooltip:!!e.icon},!e.icon&&e.title)))),v&&(0,a.createElement)("div",{key:b,"aria-labelledby":b,role:"tabpanel",id:`${b}-view`,className:"components-tab-panel__tab-content"},t(v)))}));var UL=WL;const GL=(0,a.forwardRef)((function(e,t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,className:l,onChange:c,type:d="text",...f}=e,p=`inspector-text-control-${(0,u.useInstanceId)(GL)}`;return(0,a.createElement)(Uv,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:p,help:s,className:l},(0,a.createElement)("input",{className:"components-text-control__input",type:d,id:p,value:i,onChange:e=>c(e.target.value),"aria-describedby":s?p+"__help":void 0,ref:t,...f}))}));var KL=GL;const qL=np("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",zh.radiusBlockUi,";border:",zh.borderWidth," solid ",Bp.ui.border,";",""),YL=np("border-color:",Bp.ui.theme,";box-shadow:0 0 0 calc( ",zh.borderWidthFocus," - ",zh.borderWidth," ) ",Bp.ui.theme,";outline:2px solid transparent;","");var XL={huge:"1440px",wide:"1280px","x-large":"1080px",large:"960px",medium:"782px",small:"600px",mobile:"480px","zoomed-in":"280px"};const ZL=np("display:block;font-family:",Av("default.fontFamily"),";padding:6px 8px;",qL,";font-size:",Av("mobileTextMinFontSize"),";line-height:normal;",`@media (min-width: ${XL["small"]})`,"{font-size:",Av("default.fontSize"),";line-height:normal;}&:focus{",YL,";}&::-webkit-input-placeholder{color:",Bp.ui.darkGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Bp.ui.darkGrayPlaceholder,";}&:-ms-input-placeholder{color:",Bp.ui.darkGrayPlaceholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Bp.ui.lightGrayPlaceholder,";}&::-moz-placeholder{opacity:1;color:",Bp.ui.lightGrayPlaceholder,";}&:-ms-input-placeholder{color:",Bp.ui.lightGrayPlaceholder,";}}","");const JL=fd("textarea",{target:"e1w5nnrk0"})("width:100%;",ZL,";");var QL=function e(t){const{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,value:i,help:s,onChange:l,rows:c=4,className:d,...f}=t,p=`inspector-textarea-control-${(0,u.useInstanceId)(e)}`;return(0,a.createElement)(Uv,{__nextHasNoMarginBottom:n,label:r,hideLabelFromVision:o,id:p,help:s,className:d},(0,a.createElement)(JL,{className:"components-textarea-control__input",id:p,rows:c,onChange:e=>l(e.target.value),"aria-describedby":s?p+"__help":void 0,value:i,...f}))};var ez=e=>{const{text:t="",highlight:n=""}=e,r=n.trim();if(!r)return(0,a.createElement)(a.Fragment,null,t);const o=new RegExp(`(${kb(r)})`,"gi");return(0,a.createInterpolateElement)(t.replace(o,"<mark>$&</mark>"),{mark:(0,a.createElement)("mark",null)})};var tz=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"}));var nz=function(e){const{children:t}=e;return(0,a.createElement)("div",{className:"components-tip"},(0,a.createElement)(_y,{icon:tz}),(0,a.createElement)("p",null,t))};var rz=function e({__nextHasNoMarginBottom:t,label:n,checked:r,help:o,className:i,onChange:s,disabled:l}){const c=`inspector-toggle-control-${(0,u.useInstanceId)(e)}`,d=Xu()("components-toggle-control",i,!t&&np({marginBottom:rh(3)},"",""));let f,p;return o&&("function"==typeof o?void 0!==r&&(p=o(r)):p=o,p&&(f=c+"__help")),(0,a.createElement)(Uv,{id:c,help:p,className:d,__nextHasNoMarginBottom:!0},(0,a.createElement)(lb,{justify:"flex-start",spacing:3},(0,a.createElement)(DO,{id:c,checked:r,onChange:function(e){s(e.target.checked)},"aria-describedby":f,disabled:l}),(0,a.createElement)(th,{as:"label",htmlFor:c,className:"components-toggle-control__label"},n)))};const oz=(0,a.forwardRef)((function(e,t){const{icon:n,label:r,...o}=e;return(0,a.createElement)(SO,{...o,isIcon:!0,"aria-label":r,showTooltip:!0,ref:t},(0,a.createElement)(Zl,{icon:n}))}));var iz=oz,az=(0,v.createContext)(!0),sz=Object.defineProperty,lz=Object.defineProperties,cz=Object.getOwnPropertyDescriptors,uz=Object.getOwnPropertySymbols,dz=Object.prototype.hasOwnProperty,fz=Object.prototype.propertyIsEnumerable,pz=(e,t,n)=>t in e?sz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mz=(e,t)=>{for(var n in t||(t={}))dz.call(t,n)&&pz(e,n,t[n]);if(uz)for(var n of uz(t))fz.call(t,n)&&pz(e,n,t[n]);return e},hz=(e,t)=>lz(e,cz(t)),gz=(e,t)=>{var n={};for(var r in e)dz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&uz)for(var r of uz(e))t.indexOf(r)<0&&fz.call(e,r)&&(n[r]=e[r]);return n},vz=Object.defineProperty,bz=Object.defineProperties,yz=Object.getOwnPropertyDescriptors,wz=Object.getOwnPropertySymbols,xz=Object.prototype.hasOwnProperty,Ez=Object.prototype.propertyIsEnumerable,_z=(e,t,n)=>t in e?vz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Cz=(e,t)=>{for(var n in t||(t={}))xz.call(t,n)&&_z(e,n,t[n]);if(wz)for(var n of wz(t))Ez.call(t,n)&&_z(e,n,t[n]);return e},Sz=(e,t)=>bz(e,yz(t));function kz(...e){}function Tz(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Rz(...e){return(...t)=>{for(const n of e)"function"==typeof n&&n(...t)}}function Pz(e){return e}function Mz(...e){for(const t of e)if(void 0!==t)return t}function Iz(e){return function(e){return!!e&&!!(0,v.isValidElement)(e)&&"ref"in e}(e)?e.ref:null}var Nz,Oz="undefined"!=typeof window&&!!(null==(Nz=window.document)?void 0:Nz.createElement);function Dz(e){return e?e.ownerDocument||e:document}function Az(e,t=!1){const{activeElement:n}=Dz(e);if(!(null==n?void 0:n.nodeName))return null;if("IFRAME"===n.tagName&&n.contentDocument)return Az(n.contentDocument.body,t);if(t){const e=n.getAttribute("aria-activedescendant");if(e){const t=Dz(n).getElementById(e);if(t)return t}}return n}function Lz(e,t){return e===t||e.contains(t)}function zz(e){const t=e.tagName.toLowerCase();return"button"===t||!("input"!==t||!e.type)&&-1!==Fz.indexOf(e.type)}var Fz=["button","color","file","image","reset","submit"];function Bz(e,t){return"matches"in e?e.matches(t):"msMatchesSelector"in e?e.msMatchesSelector(t):e.webkitMatchesSelector(t)}function jz(e){try{const t=e instanceof HTMLInputElement&&null!==e.selectionStart,n="TEXTAREA"===e.tagName;return t||n||!1}catch(e){return!1}}function Vz(e){if(!e)return null;if(e.clientHeight&&e.scrollHeight>e.clientHeight){const{overflowY:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}else if(e.clientWidth&&e.scrollWidth>e.clientWidth){const{overflowX:t}=getComputedStyle(e);if("visible"!==t&&"hidden"!==t)return e}return Vz(e.parentElement)||document.scrollingElement||document.body}var Hz=mz({},b),$z=Hz.useId,Wz=(Hz.useDeferredValue,Hz.useInsertionEffect),Uz=Oz?v.useLayoutEffect:v.useEffect;function Gz(e){const t=(0,v.useRef)(e);return Uz((()=>{t.current=e})),t}function Kz(e){const t=(0,v.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return Wz?Wz((()=>{t.current=e})):t.current=e,(0,v.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function qz(...e){return(0,v.useMemo)((()=>{if(e.some(Boolean))return t=>{e.forEach((e=>function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)))}}),e)}function Yz(e){if($z){const t=$z();return e||t}const[t,n]=(0,v.useState)(e);return Uz((()=>{if(e||t)return;const r=Math.random().toString(36).substr(2,6);n(`id-${r}`)}),[e,t]),e||t}function Xz(e,t){const n=e=>{if("string"==typeof e)return e},[r,o]=(0,v.useState)((()=>n(t)));return Uz((()=>{const r=e&&"current"in e?e.current:e;o((null==r?void 0:r.tagName.toLowerCase())||n(t))}),[e,t]),r}Symbol("setNextState");function Zz(e){return Kz("function"==typeof e?e:()=>e)}function Jz(e,t,n=[]){const r=(0,v.useCallback)((n=>(e.wrapElement&&(n=e.wrapElement(n)),t(n))),[...n,e.wrapElement]);return hz(mz({},e),{wrapElement:r})}var Qz=o(7557);function eF(e){return v.forwardRef(((t,n)=>e(mz({ref:n},t))))}function tF(e){const t=eF(e);return v.memo(t)}function nF(e,t){const n=t,{as:r,wrapElement:o,render:i}=n,a=gz(n,["as","wrapElement","render"]);let s;const l=qz(t.ref,Iz(i));if(r&&"string"!=typeof r)s=(0,Qz.jsx)(r,hz(mz({},a),{render:i}));else if(v.isValidElement(i)){const e=hz(mz({},i.props),{ref:l});s=v.cloneElement(i,function(e,t){const n=mz({},e);for(const r in t){if(!Tz(t,r))continue;if("className"===r){const r="className";n[r]=e[r]?`${e[r]} ${t[r]}`:t[r];continue}if("style"===r){const r="style";n[r]=e[r]?mz(mz({},e[r]),t[r]):t[r];continue}const o=t[r];if("function"==typeof o&&r.startsWith("on")){const t=e[r];if("function"==typeof t){n[r]=(...e)=>{o(...e),t(...e)};continue}}n[r]=o}return n}(a,e))}else if(i)s=i(a);else if("function"==typeof t.children){const e=a,{children:n}=e,r=gz(e,["children"]);s=t.children(r)}else s=r?(0,Qz.jsx)(r,mz({},a)):(0,Qz.jsx)(e,mz({},a));return o?o(s):s}function rF(e){return(t={})=>{const n=e(t),r={};for(const e in n)Tz(n,e)&&void 0!==n[e]&&(r[e]=n[e]);return r}}function oF(e){return Boolean(e.currentTarget&&!Lz(e.currentTarget,e.target))}function iF(e){return e.target===e.currentTarget}function aF(e,t){const n=new FocusEvent("blur",t),r=e.dispatchEvent(n),o=Sz(Cz({},t),{bubbles:!0});return e.dispatchEvent(new FocusEvent("focusout",o)),r}function sF(e,t){const n=new MouseEvent("click",t);return e.dispatchEvent(n)}function lF(e,t,n){const r=requestAnimationFrame((()=>{e.removeEventListener(t,o,!0),n()})),o=()=>{cancelAnimationFrame(r),n()};return e.addEventListener(t,o,{once:!0,capture:!0}),r}function cF(e,t,n,r=window){const o=[];try{r.document.addEventListener(e,t,n);for(const i of Array.from(r.frames))o.push(cF(e,t,n,i))}catch(e){}return()=>{try{r.document.removeEventListener(e,t,n)}catch(e){}o.forEach((e=>e()))}}var uF="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false'])";function dF(e){return!!Bz(e,uF)&&(!!function(e){const t=e;return t.offsetWidth>0||t.offsetHeight>0||e.getClientRects().length>0}(e)&&!function(e,t){if("closest"in e)return e.closest(t);do{if(Bz(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}(e,"[inert]"))}function fF(e){const t=Az(e);if(!t)return!1;if(t===e)return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&n===e.id}function pF(e){!function(e){const t=Az(e);if(!t)return!1;if(Lz(e,t))return!0;const n=t.getAttribute("aria-activedescendant");return!!n&&"id"in e&&(n===e.id||!!e.querySelector(`#${CSS.escape(n)}`))}(e)&&dF(e)&&e.focus()}var mF=Oz&&!!Oz&&/mac|iphone|ipad|ipod/i.test(navigator.platform)&&/apple/i.test(navigator.vendor),hF=["text","search","url","tel","email","password","number","date","month","week","time","datetime","datetime-local"];function gF(e){return!("input"!==e.tagName.toLowerCase()||!e.type)&&("radio"===e.type||"checkbox"===e.type)}function vF(e,t,n,r,o){return e?t?n&&!r?-1:void 0:n?o:o||0:o}function bF(e,t){return Kz((n=>{null==e||e(n),n.defaultPrevented||t&&(n.stopPropagation(),n.preventDefault())}))}var yF=!0;function wF(e){const t=e.target;t&&"hasAttribute"in t&&(t.hasAttribute("data-focus-visible")||(yF=!1))}function xF(e){e.metaKey||e.ctrlKey||e.altKey||(yF=!0)}var EF=rF((e=>{var t=e,{focusable:n=!0,accessibleWhenDisabled:r,autoFocus:o,onFocusVisible:i}=t,a=gz(t,["focusable","accessibleWhenDisabled","autoFocus","onFocusVisible"]);const s=(0,v.useRef)(null);(0,v.useEffect)((()=>{n&&(cF("mousedown",wF,!0),cF("keydown",xF,!0))}),[n]),mF&&(0,v.useEffect)((()=>{if(!n)return;const e=s.current;if(!e)return;if(!gF(e))return;const t=function(e){return"labels"in e?e.labels:null}(e);if(!t)return;const r=()=>queueMicrotask((()=>e.focus()));return t.forEach((e=>e.addEventListener("mouseup",r))),()=>{t.forEach((e=>e.removeEventListener("mouseup",r)))}}),[n]);const l=n&&a.disabled,c=!!l&&!r,[u,d]=(0,v.useState)(!1);(0,v.useEffect)((()=>{n&&c&&u&&d(!1)}),[n,c,u]),(0,v.useEffect)((()=>{if(!n)return;if(!u)return;const e=s.current;if(!e)return;if("undefined"==typeof IntersectionObserver)return;const t=new IntersectionObserver((()=>{dF(e)||d(!1)}));return t.observe(e),()=>t.disconnect()}),[n,u]);const f=bF(a.onKeyPressCapture,l),p=bF(a.onMouseDownCapture,l),m=bF(a.onClickCapture,l),h=a.onMouseDown,g=Kz((e=>{if(null==h||h(e),e.defaultPrevented)return;if(!n)return;const t=e.currentTarget;if(!mF)return;if(oF(e))return;if(!zz(t)&&!gF(t))return;let r=!1;const o=()=>{r=!0};t.addEventListener("focusin",o,{capture:!0,once:!0}),lF(t,"mouseup",(()=>{t.removeEventListener("focusin",o,!0),r||pF(t)}))})),b=(e,t)=>{if(t&&(e.currentTarget=t),null==i||i(e),e.defaultPrevented)return;if(!n)return;const r=e.currentTarget;r&&fF(r)&&d(!0)},y=a.onKeyDownCapture,w=Kz((e=>{if(null==y||y(e),e.defaultPrevented)return;if(!n)return;if(u)return;if(e.metaKey)return;if(e.altKey)return;if(e.ctrlKey)return;if(!iF(e))return;const t=e.currentTarget;queueMicrotask((()=>b(e,t)))})),x=a.onFocusCapture,E=Kz((e=>{if(null==x||x(e),e.defaultPrevented)return;if(!n)return;if(!iF(e))return void d(!1);const t=e.currentTarget,r=()=>b(e,t);yF||function(e){const{tagName:t,readOnly:n,type:r}=e;return"TEXTAREA"===t&&!n||"SELECT"===t&&!n||("INPUT"!==t||n?!!e.isContentEditable:hF.includes(r))}(e.target)?queueMicrotask(r):!function(e){return"combobox"===e.getAttribute("role")&&!!e.dataset.name}(e.target)?d(!1):lF(e.target,"focusout",r)})),_=a.onBlur,C=Kz((e=>{null==_||_(e),n&&function(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!Lz(n,r)}(e)&&d(!1)})),S=(0,v.useContext)(az),k=Kz((e=>{n&&o&&e&&S&&queueMicrotask((()=>{fF(e)||dF(e)&&e.focus()}))})),T=Xz(s,a.as),R=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e||"a"===e}(T),P=n&&function(e){return!e||"button"===e||"input"===e||"select"===e||"textarea"===e}(T),M=c?mz({pointerEvents:"none"},a.style):a.style;return a=hz(mz({"data-focus-visible":n&&u?"":void 0,"data-autofocus":!!o||void 0,"aria-disabled":!!l||void 0},a),{ref:qz(s,k,a.ref),style:M,tabIndex:vF(n,c,R,P,a.tabIndex),disabled:!(!P||!c)||void 0,contentEditable:l?void 0:a.contentEditable,onKeyPressCapture:f,onClickCapture:m,onMouseDownCapture:p,onMouseDown:g,onKeyDownCapture:w,onFocusCapture:E,onBlur:C})}));eF((e=>nF("div",e=EF(e))));function _F(e){if(!e.isTrusted)return!1;const t=e.currentTarget;return"Enter"===e.key?zz(t)||"SUMMARY"===t.tagName||"A"===t.tagName:" "===e.key&&(zz(t)||"SUMMARY"===t.tagName||"INPUT"===t.tagName||"SELECT"===t.tagName)}var CF=rF((e=>{var t=e,{clickOnEnter:n=!0,clickOnSpace:r=!0}=t,o=gz(t,["clickOnEnter","clickOnSpace"]);const i=(0,v.useRef)(null),a=Xz(i,o.as),s=o.type,[l,c]=(0,v.useState)((()=>!!a&&zz({tagName:a,type:s})));(0,v.useEffect)((()=>{i.current&&c(zz(i.current))}),[]);const[u,d]=(0,v.useState)(!1),f=(0,v.useRef)(!1),p="data-command"in o,m=o.onKeyDown,h=Kz((e=>{null==m||m(e);const t=e.currentTarget;if(e.defaultPrevented)return;if(p)return;if(o.disabled)return;if(!iF(e))return;if(jz(t))return;if(t.isContentEditable)return;const i=n&&"Enter"===e.key,a=r&&" "===e.key,s="Enter"===e.key&&!n,l=" "===e.key&&!r;if(s||l)e.preventDefault();else if(i||a){const n=_F(e);if(i){if(!n){e.preventDefault();const n=e,{view:r}=n,o=gz(n,["view"]),i=()=>sF(t,o);Oz&&/firefox\//i.test(navigator.userAgent)?lF(t,"keyup",i):queueMicrotask(i)}}else a&&(f.current=!0,n||(e.preventDefault(),d(!0)))}})),g=o.onKeyUp,b=Kz((e=>{if(null==g||g(e),e.defaultPrevented)return;if(p)return;if(o.disabled)return;if(e.metaKey)return;const t=r&&" "===e.key;if(f.current&&t&&(f.current=!1,!_F(e))){d(!1);const t=e.currentTarget,n=e,{view:r}=n,o=gz(n,["view"]);queueMicrotask((()=>sF(t,o)))}}));return o=hz(mz({"data-command":"","data-active":u?"":void 0,type:l?"button":void 0},o),{ref:qz(i,o.ref),onKeyDown:h,onKeyUp:b}),o=EF(o)}));eF((e=>nF("button",e=CF(e))));var SF=(0,v.createContext)(void 0),kF=rF((e=>{var t=e,{store:n,shouldRegisterItem:r=!0,getItem:o=Pz,element:i}=t,a=gz(t,["store","shouldRegisterItem","getItem","element"]);const s=(0,v.useContext)(SF);n=n||s;const l=Yz(a.id),c=(0,v.useRef)(i);return(0,v.useEffect)((()=>{const e=c.current;if(!l)return;if(!e)return;if(!r)return;const t=o({id:l,element:e});return null==n?void 0:n.renderItem(t)}),[l,r,o,n]),a=hz(mz({},a),{ref:qz(c,a.ref)})}));eF((e=>nF("div",kF(e))));function TF(e,t){return t&&e.item(t)||null}var RF=Symbol("FOCUS_SILENTLY");function PF(e,t,n){if(!t)return!1;if(t===n)return!1;const r=e.item(t.id);return!!r&&(!n||r.element!==n)}var MF=(0,v.createContext)(void 0),IF=(0,v.createContext)(void 0),NF=(0,v.createContext)(void 0);function OF(e,t){const n=e.__unstableInternals;return function(e,t){if(!e){if("string"!=typeof t)throw new Error("Invariant failed");throw new Error(t)}}(n,"Invalid store"),n[t]}function DF(e,...t){let n=e,r=n,o=Symbol(),i=!1;const a=new Set,s=new Set,l=new Set,c=new Set,u=new WeakMap,d=new WeakMap,f=(e,t,n=!1)=>{const r=n?c:l;return r.add(t),d.set(t,e),()=>{var e;null==(e=u.get(t))||e(),u.delete(t),d.delete(t),r.delete(t)}},p=(e,i)=>{if(!Tz(n,e))return;const s=function(e,t){if(function(e){return"function"==typeof e}(e))return e(function(e){return"function"==typeof e}(t)?t():t);return e}(i,n[e]);if(s===n[e])return;t.forEach((t=>{var n;null==(n=null==t?void 0:t.setState)||n.call(t,e,s)}));const f=n;n=Sz(Cz({},n),{[e]:s});const p=Symbol();o=p,a.add(e);const m=(t,r,o)=>{var i;const a=d.get(t);a&&!a.some((t=>o?o.has(t):t===e))||(null==(i=u.get(t))||i(),u.set(t,t(n,r)))};l.forEach((e=>m(e,f))),queueMicrotask((()=>{if(o!==p)return;const e=n;c.forEach((e=>{m(e,r,a)})),r=e,a.clear()}))},m={getState:()=>n,setState:p,__unstableInternals:{setup:e=>(s.add(e),()=>s.delete(e)),init:()=>{if(i)return kz;if(!t.length)return kz;i=!0;const e=(r=n,Object.keys(r)).map((e=>Rz(...t.map((t=>{var n;const r=null==(n=null==t?void 0:t.getState)?void 0:n.call(t);if(r&&Tz(r,e))return zF(t,[e],(t=>p(e,t[e])))})))));var r;const o=[];s.forEach((e=>o.push(e())));const a=t.map(LF);return Rz(...e,...o,...a,(()=>{i=!1}))},subscribe:(e,t)=>f(e,t),sync:(e,t)=>(u.set(t,t(n,n)),f(e,t)),batch:(e,t)=>(u.set(t,t(n,r)),f(e,t,!0)),pick:e=>DF(function(e,t){const n={};for(const r of t)Tz(e,r)&&(n[r]=e[r]);return n}(n,e),m),omit:e=>DF(function(e,t){const n=Cz({},e);for(const e of t)Tz(n,e)&&delete n[e];return n}(n,e),m)}};return m}function AF(e,...t){if(e)return OF(e,"setup")(...t)}function LF(e,...t){if(e)return OF(e,"init")(...t)}function zF(e,...t){if(e)return OF(e,"sync")(...t)}function FF(e,...t){if(e)return OF(e,"batch")(...t)}var{useSyncExternalStore:BF}=zd,jF=()=>()=>{},VF=!1;function HF(e,t=Pz){const n=v.useCallback((t=>e?function(e,...t){if(e)return OF(e,"subscribe")(...t)}(e,null,t):jF()),[e]),r=()=>{if(!e)return;const n=e.getState(),r="function"==typeof t?t:null,o="string"==typeof t?t:null;return r?r(n):o&&Tz(n,o)?n[o]:void 0};return BF(n,r,r)}function $F(e,t,n,r){const o=Tz(t,n)?t[n]:void 0,i=Gz({value:o,setValue:r?t[r]:void 0});Uz((()=>{let t=!1;return queueMicrotask((()=>{t=!0})),zF(e,[n],((e,r)=>{const{value:o,setValue:a}=i.current;a&&e[n]!==r[n]&&e[n]!==o&&function(e,t=!0){if(VF||!t)return void e();VF=!0;const n=console.error;try{(0,It.flushSync)(e)}finally{console.error=n,VF=!1}}((()=>a(e[n])),t)}))}),[e,n]),Uz((()=>FF(e,[n],(()=>{void 0!==o&&e.setState(n,o)}))),[e,n,o])}function WF(e){const t=function(e){const t=(0,v.useRef)();return void 0===t.current&&(t.current=e()),t.current}(e);Uz((()=>LF(t)),[t]);const n=v.useCallback((e=>HF(t,e)),[t]);return v.useMemo((()=>hz(mz({},t),{useState:n})),[t,n])}function UF(e,t=!1){const{top:n}=e.getBoundingClientRect();return t?n+e.clientHeight:n}function GF(e,t,n,r=!1){var o;if(!t)return;if(!n)return;const{renderedItems:i}=t.getState(),a=Vz(e);if(!a)return;const s=function(e,t=!1){const n=e.clientHeight,{top:r}=e.getBoundingClientRect(),o=1.5*Math.max(.875*n,n-40),i=t?n-o+r:o+r;return"HTML"===e.tagName?i+e.scrollTop:i}(a,r);let l,c;for(let e=0;e<i.length;e+=1){const i=l;if(l=n(e),!l)break;if(l===i)continue;const a=null==(o=TF(t,l))?void 0:o.element;if(!a)continue;const u=UF(a,r)-s,d=Math.abs(u);if(r&&u<=0||!r&&u>=0){void 0!==c&&c<d&&(l=i);break}c=d}return l}var KF=rF((e=>{var t,n=e,{store:r,rowId:o,preventScrollOnKeyDown:i=!1,moveOnKeyPress:a=!0,getItem:s,"aria-setsize":l,"aria-posinset":c}=n,u=gz(n,["store","rowId","preventScrollOnKeyDown","moveOnKeyPress","getItem","aria-setsize","aria-posinset"]);const d=(0,v.useContext)(NF);r=r||d;const f=Yz(u.id),p=(0,v.useRef)(null),m=(0,v.useContext)(IF),h=HF(r,(e=>o||((null==m?void 0:m.baseElement)&&m.baseElement===e.baseElement?m.id:void 0))),g=u.disabled&&!u.accessibleWhenDisabled,b=(0,v.useCallback)((e=>{const t=hz(mz({},e),{id:f||e.id,rowId:h,disabled:!!g});return s?s(t):t}),[f,h,g,s]),y=u.onFocus,w=(0,v.useRef)(!1),x=Kz((e=>{if(null==y||y(e),e.defaultPrevented)return;if(oF(e))return;if(!f)return;if(!r)return;const{activeId:t,virtualFocus:n,baseElement:o}=r.getState();if(function(e,t){return!iF(e)&&PF(t,e.target)}(e,r))return;if(t!==f&&r.setActiveId(f),!n)return;if(!iF(e))return;if((i=e.currentTarget).isContentEditable||jz(i)||"INPUT"===i.tagName&&!zz(i))return;var i;if(!o)return;w.current=!0;e.relatedTarget===o||PF(r,e.relatedTarget)?function(e){e[RF]=!0,e.focus()}(o):o.focus()})),E=u.onBlurCapture,_=Kz((e=>{if(null==E||E(e),e.defaultPrevented)return;const t=null==r?void 0:r.getState();(null==t?void 0:t.virtualFocus)&&w.current&&(w.current=!1,e.preventDefault(),e.stopPropagation())})),C=u.onKeyDown,S=Zz(i),k=Zz(a),T=Kz((e=>{if(null==C||C(e),e.defaultPrevented)return;if(!iF(e))return;if(!r)return;const{currentTarget:t}=e,n=r.getState(),o=r.item(f),i=!!(null==o?void 0:o.rowId),a="horizontal"!==n.orientation,s="vertical"!==n.orientation,l={ArrowUp:(i||a)&&r.up,ArrowRight:(i||s)&&r.next,ArrowDown:(i||a)&&r.down,ArrowLeft:(i||s)&&r.previous,Home:()=>!i||e.ctrlKey?null==r?void 0:r.first():null==r?void 0:r.previous(-1),End:()=>!i||e.ctrlKey?null==r?void 0:r.last():null==r?void 0:r.next(-1),PageUp:()=>GF(t,r,null==r?void 0:r.up,!0),PageDown:()=>GF(t,r,null==r?void 0:r.down)}[e.key];if(l){const t=l();if(S(e)||void 0!==t){if(!k(e))return;e.preventDefault(),r.move(t)}}})),R=HF(r,(e=>e.baseElement||void 0)),P=(0,v.useMemo)((()=>({id:f,baseElement:R})),[f,R]);u=Jz(u,(e=>(0,Qz.jsx)(MF.Provider,{value:P,children:e})),[P]);const M=HF(r,(e=>e.activeId===f)),I=HF(r,"virtualFocus"),N=function(e,t){const n=t.role,[r,o]=(0,v.useState)(n);return Uz((()=>{const t=e.current;t&&o(t.getAttribute("role")||n)}),[n]),r}(p,u);let O;M&&(!function(e){return"option"===e||"treeitem"===e}(N)?I&&function(e){return"option"===e||"tab"===e||"treeitem"===e||"gridcell"===e||"row"===e||"columnheader"===e||"rowheader"===e}(N)&&(O=!0):O=!0);const D=HF(r,(e=>null!=l?l:(null==m?void 0:m.ariaSetSize)&&m.baseElement===e.baseElement?m.ariaSetSize:void 0)),A=HF(r,(e=>{if(null!=c)return c;if(!(null==m?void 0:m.ariaPosInSet))return;if(m.baseElement!==e.baseElement)return;const t=e.renderedItems.filter((e=>e.rowId===h));return m.ariaPosInSet+t.findIndex((e=>e.id===f))})),L=null==(t=HF(r,(e=>!e.renderedItems.length||!e.virtualFocus&&e.activeId===f)))||t;return u=hz(mz({id:f,"aria-selected":O,"data-active-item":M?"":void 0},u),{ref:qz(p,u.ref),tabIndex:L?u.tabIndex:-1,onFocus:x,onBlurCapture:_,onKeyDown:T}),u=CF(u),u=kF(hz(mz({store:r},u),{getItem:b,shouldRegisterItem:!!f&&u.shouldRegisterItem})),hz(mz({},u),{"aria-setsize":D,"aria-posinset":A})}));tF((e=>nF("button",KF(e))));var qF=rF((e=>{var t=e,{store:n}=t,r=gz(t,["store"]);return r=KF(mz({store:n},r))})),YF=tF((e=>nF("button",qF(e))));var XF=(0,a.createContext)(void 0);var ZF=(0,a.forwardRef)((function({children:e,as:t,...n},r){const o=(0,a.useContext)(XF),i="function"==typeof e;if(!i&&!t)return"undefined"!=typeof process&&process.env,null;const s={...n,ref:r,"data-toolbar-item":!0};if(!o)return t?(0,a.createElement)(t,{...s},e):i?e(s):null;const l=i?e:t&&(0,a.createElement)(t,null);return(0,a.createElement)(YF,{...s,store:o,render:l})}));var JF=({children:e,className:t})=>(0,a.createElement)("div",{className:t},e);var QF=(0,a.forwardRef)((function({children:e,className:t,containerClassName:n,extraProps:r,isActive:o,isDisabled:i,title:s,...c},u){return(0,a.useContext)(XF)?(0,a.createElement)(ZF,{className:l()("components-toolbar-button",t),...r,...c,ref:u},(t=>(0,a.createElement)(bd,{label:s,isPressed:o,disabled:i,...t},e))):(0,a.createElement)(JF,{className:n},(0,a.createElement)(bd,{ref:u,icon:c.icon,label:s,shortcut:c.shortcut,"data-subscript":c.subscript,onClick:e=>{e.stopPropagation(),c.onClick&&c.onClick(e)},className:l()("components-toolbar__control",t),isPressed:o,disabled:i,"data-toolbar-item":!0,...r,...c},e))}));var eB=({className:e,children:t,...n})=>(0,a.createElement)("div",{className:e,...n},t);var tB=function({controls:e=[],toggleProps:t,...n}){const r=t=>(0,a.createElement)(pT,{controls:e,toggleProps:{...t,"data-toolbar-item":!0},...n});return(0,a.useContext)(XF)?(0,a.createElement)(ZF,{...t},r):r(t)};var nB=function({controls:e=[],children:t,className:n,isCollapsed:r,title:o,...i}){const s=(0,a.useContext)(XF);if(!(e&&e.length||t))return null;const c=l()(s?"components-toolbar-group":"components-toolbar",n);let u=e;return Array.isArray(u[0])||(u=[u]),r?(0,a.createElement)(tB,{label:o,controls:u,className:c,children:t,...i}):(0,a.createElement)(eB,{className:c,...i},u?.flatMap(((e,t)=>e.map(((e,n)=>(0,a.createElement)(QF,{key:[t,n].join(),containerClassName:t>0&&0===n?"has-left-divider":null,...e}))))),t)};function rB(e,t){return $F(e,t,"items","setItems"),e}function oB(e,t){return $F(e=rB(e,t),t,"activeId","setActiveId"),$F(e,t,"includesBaseElement"),$F(e,t,"virtualFocus"),$F(e,t,"orientation"),$F(e,t,"rtl"),$F(e,t,"focusLoop"),$F(e,t,"focusWrap"),$F(e,t,"focusShift"),e}function iB(e){const t=e.map(((e,t)=>[t,e]));let n=!1;return t.sort((([e,t],[r,o])=>{const i=t.element,a=o.element;return i===a?0:i&&a?function(e,t){return Boolean(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}(i,a)?(e>r&&(n=!0),-1):(e<r&&(n=!0),1):0})),n?t.map((([e,t])=>t)):e}function aB(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=Mz(e.items,null==n?void 0:n.items,e.defaultItems,[]),o=new Map(r.map((e=>[e.id,e]))),i={items:r,renderedItems:Mz(null==n?void 0:n.renderedItems,[])},a=DF({renderedItems:i.renderedItems}),s=DF(i,e.store),l=()=>{const e=iB(a.getState().renderedItems);a.setState("renderedItems",e),s.setState("renderedItems",e)};AF(s,(()=>FF(a,["renderedItems"],(e=>{let t=!0,n=requestAnimationFrame(l);if("function"!=typeof IntersectionObserver)return;const r=function(e){var t;const n=e.find((e=>!!e.element)),r=[...e].reverse().find((e=>!!e.element));let o=null==(t=null==n?void 0:n.element)?void 0:t.parentElement;for(;o&&(null==r?void 0:r.element);){if(r&&o.contains(r.element))return o;o=o.parentElement}return Dz(o).body}(e.renderedItems),o=new IntersectionObserver((()=>{t?t=!1:(cancelAnimationFrame(n),n=requestAnimationFrame(l))}),{root:r});return e.renderedItems.forEach((e=>{e.element&&o.observe(e.element)})),()=>{cancelAnimationFrame(n),o.disconnect()}}))));const c=(e,t,n=!1)=>{let r;t((t=>{const n=t.findIndex((({id:t})=>t===e.id)),i=t.slice();if(-1!==n){r=t[n];const a=Cz(Cz({},r),e);i[n]=a,o.set(e.id,a)}else i.push(e),o.set(e.id,e);return i}));return()=>{t((t=>{if(!r)return n&&o.delete(e.id),t.filter((({id:t})=>t!==e.id));const i=t.findIndex((({id:t})=>t===e.id));if(-1===i)return t;const a=t.slice();return a[i]=r,o.set(e.id,r),a}))}},u=e=>c(e,(e=>s.setState("items",e)),!0);return Sz(Cz({},s),{registerItem:u,renderItem:e=>Rz(u(e),c(e,(e=>a.setState("renderedItems",e)))),item:e=>{if(!e)return null;let t=o.get(e);if(!t){const{items:n}=s.getState();t=n.find((t=>t.id===e)),t&&o.set(e,t)}return t||null}})}function sB(e){const t=[];for(const n of e)t.push(...n);return t}function lB(e){return e.slice().reverse()}var cB={id:null};function uB(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}function dB(e,t){return e.filter((e=>e.rowId===t))}function fB(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}function pB(e){let t=0;for(const{length:n}of e)n>t&&(t=n);return t}function mB(e,t,n){const r=pB(e);for(const o of e)for(let e=0;e<r;e+=1){const r=o[e];if(!r||n&&r.disabled){const r=0===e&&n?uB(o):o[e-1];o[e]=r&&t!==r.id&&n?r:{id:"__EMPTY_ITEM__",disabled:!0,rowId:null==r?void 0:r.rowId}}}return e}function hB(e){const t=fB(e),n=pB(t),r=[];for(let e=0;e<n;e+=1)for(const n of t){const t=n[e];t&&r.push(Sz(Cz({},t),{rowId:t.rowId?`${e}`:void 0}))}return r}function gB(e={}){var t;const n=null==(t=e.store)?void 0:t.getState(),r=aB(e),o=Mz(e.activeId,null==n?void 0:n.activeId,e.defaultActiveId),i=DF(Sz(Cz({},r.getState()),{activeId:o,baseElement:Mz(null==n?void 0:n.baseElement,null),includesBaseElement:Mz(e.includesBaseElement,null==n?void 0:n.includesBaseElement,null===o),moves:Mz(null==n?void 0:n.moves,0),orientation:Mz(e.orientation,null==n?void 0:n.orientation,"both"),rtl:Mz(e.rtl,null==n?void 0:n.rtl,!1),virtualFocus:Mz(e.virtualFocus,null==n?void 0:n.virtualFocus,!1),focusLoop:Mz(e.focusLoop,null==n?void 0:n.focusLoop,!1),focusWrap:Mz(e.focusWrap,null==n?void 0:n.focusWrap,!1),focusShift:Mz(e.focusShift,null==n?void 0:n.focusShift,!1)}),r,e.store);AF(i,(()=>zF(i,["renderedItems","activeId"],(e=>{i.setState("activeId",(t=>{var n;return void 0!==t?t:null==(n=uB(e.renderedItems))?void 0:n.id}))}))));const a=(e,t,n,r)=>{var o,a;const{activeId:s,rtl:l,focusLoop:c,focusWrap:u,includesBaseElement:d}=i.getState(),f=l&&"vertical"!==t?lB(e):e;if(null==s)return null==(o=uB(f))?void 0:o.id;const p=f.find((e=>e.id===s));if(!p)return null==(a=uB(f))?void 0:a.id;const m=!!p.rowId,h=f.indexOf(p),g=f.slice(h+1),v=dB(g,p.rowId);if(void 0!==r){const e=function(e,t){return e.filter((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(v,s),t=e.slice(r)[0]||e[e.length-1];return null==t?void 0:t.id}const b=function(e){return"vertical"===e?"horizontal":"horizontal"===e?"vertical":void 0}(m?t||"horizontal":t),y=c&&c!==b,w=m&&u&&u!==b;if(n=n||!m&&y&&d,y){const e=function(e,t,n=!1){const r=e.findIndex((e=>e.id===t));return[...e.slice(r+1),...n?[cB]:[],...e.slice(0,r)]}(w&&!n?f:dB(f,p.rowId),s,n),t=uB(e,s);return null==t?void 0:t.id}if(w){const e=uB(n?v:g,s);return n?(null==e?void 0:e.id)||null:null==e?void 0:e.id}const x=uB(v,s);return!x&&n?null:null==x?void 0:x.id};return Sz(Cz(Cz({},r),i),{setBaseElement:e=>i.setState("baseElement",e),setActiveId:e=>i.setState("activeId",e),move:e=>{void 0!==e&&(i.setState("activeId",e),i.setState("moves",(e=>e+1)))},first:()=>{var e;return null==(e=uB(i.getState().renderedItems))?void 0:e.id},last:()=>{var e;return null==(e=uB(lB(i.getState().renderedItems)))?void 0:e.id},next:e=>{const{renderedItems:t,orientation:n}=i.getState();return a(t,n,!1,e)},previous:e=>{var t;const{renderedItems:n,orientation:r,includesBaseElement:o}=i.getState(),s=!!!(null==(t=uB(n))?void 0:t.rowId)&&o;return a(lB(n),r,s,e)},down:e=>{const{activeId:t,renderedItems:n,focusShift:r,focusLoop:o,includesBaseElement:s}=i.getState(),l=r&&!e,c=hB(sB(mB(fB(n),t,l)));return a(c,"vertical",o&&"horizontal"!==o&&s,e)},up:e=>{const{activeId:t,renderedItems:n,focusShift:r,includesBaseElement:o}=i.getState(),s=r&&!e,l=hB(lB(sB(mB(fB(n),t,s))));return a(l,"vertical",o,e)}})}function vB(e={}){const t={},n=WF((()=>function(e={}){var t;const n=null==(t=e.store)?void 0:t.getState();return gB(Sz(Cz({},e),{orientation:Mz(e.orientation,null==n?void 0:n.orientation,"horizontal"),focusLoop:Mz(e.focusLoop,null==n?void 0:n.focusLoop,!0)}))}(mz(mz({},e),t))));return function(e,t){return oB(e,t)}(n,e)}var bB=(0,v.createContext)(void 0);function yB(e){return e.some((e=>!!e.rowId))}function wB(e,t,n){return Kz((r=>{var o;if(null==t||t(r),r.defaultPrevented)return;const i=e.getState(),a=null==(o=TF(e,i.activeId))?void 0:o.element;if(!a)return;if(!function(e,t){if(!iF(e))return!1;if(function(e){return"Shift"===e.key||"Control"===e.key||"Alt"===e.key||"Meta"===e.key}(e))return!1;const n=e.target;if(!n)return!0;if(jz(n)){if(function(e){return 1===e.key.length&&!e.ctrlKey&&!e.metaKey}(e))return!1;const n=yB(t.renderedItems),r=null===t.activeId,o=n&&!r,i="Home"===e.key||"End"===e.key;if(!o&&i)return!1}return!e.isPropagationStopped()}(r,i))return;const s=r,{view:l}=s,c=gz(s,["view"]);a!==(null==n?void 0:n.current)&&a.focus(),function(e,t,n){const r=new KeyboardEvent(t,n);return e.dispatchEvent(r)}(a,r.type,c)||r.preventDefault(),r.currentTarget.contains(a)&&r.stopPropagation()}))}var xB=rF((e=>{var t=e,{store:n,composite:r=!0,focusOnMove:o=r,moveOnKeyPress:i=!0}=t,a=gz(t,["store","composite","focusOnMove","moveOnKeyPress"]);const s=(0,v.useRef)(null),l=function(e){const[t,n]=(0,v.useState)(!1),r=(0,v.useCallback)((()=>n(!0)),[]),o=e.useState((t=>TF(e,t.activeId)));return(0,v.useEffect)((()=>{const e=null==o?void 0:o.element;t&&e&&(n(!1),e.focus({preventScroll:!0}))}),[o,t]),r}(n),c=n.useState("moves");(0,v.useEffect)((()=>{var e;if(!c)return;if(!r)return;if(!o)return;const{activeId:t}=n.getState(),i=null==(e=TF(n,t))?void 0:e.element;i&&function(e,t){"scrollIntoView"in e?(e.focus({preventScroll:!0}),e.scrollIntoView(Cz({block:"nearest",inline:"nearest"},t))):e.focus()}(i)}),[c,r,o]),Uz((()=>{if(!r)return;if(!c)return;const{baseElement:e,activeId:t}=n.getState();if(!(null===t))return;if(!e)return;const o=s.current;s.current=null,o&&aF(o,{relatedTarget:e}),fF(e)?function(e,t){const n=new FocusEvent("focus",t),r=e.dispatchEvent(n),o=Sz(Cz({},t),{bubbles:!0});e.dispatchEvent(new FocusEvent("focusin",o))}(e,{relatedTarget:o}):e.focus()}),[c,r]);const u=n.useState("activeId"),d=n.useState("virtualFocus");Uz((()=>{var e;if(!r)return;if(!d)return;const t=s.current;if(s.current=null,!t)return;aF(t,{relatedTarget:(null==(e=TF(n,u))?void 0:e.element)||Az(t)})}),[u,d,r]);const f=wB(n,a.onKeyDownCapture,s),p=wB(n,a.onKeyUpCapture,s),m=a.onFocusCapture,h=Kz((e=>{if(null==m||m(e),e.defaultPrevented)return;const{virtualFocus:t}=n.getState();if(!t)return;const r=e.relatedTarget,o=function(e){const t=e[RF];return delete e[RF],t}(e.currentTarget);iF(e)&&o&&(e.stopPropagation(),s.current=r)})),g=a.onFocus,b=Kz((e=>{if(null==g||g(e),e.defaultPrevented)return;if(!r)return;const{relatedTarget:t}=e,{virtualFocus:o}=n.getState();o?iF(e)&&!PF(n,t)&&queueMicrotask(l):iF(e)&&n.setActiveId(null)})),y=a.onBlurCapture,w=Kz((e=>{var t;if(null==y||y(e),e.defaultPrevented)return;const{virtualFocus:r,activeId:o}=n.getState();if(!r)return;const i=null==(t=TF(n,o))?void 0:t.element,a=e.relatedTarget,l=PF(n,a),c=s.current;if(s.current=null,iF(e)&&l)a===i?c&&c!==a&&aF(c,e):i&&aF(i,e),e.stopPropagation();else{!PF(n,e.target)&&i&&aF(i,e)}})),x=a.onKeyDown,E=Zz(i),_=Kz((e=>{var t;if(null==x||x(e),e.defaultPrevented)return;if(!iF(e))return;const{orientation:r,items:o,renderedItems:i,activeId:a}=n.getState(),s=TF(n,a);if(null==(t=null==s?void 0:s.element)?void 0:t.isConnected)return;const l="horizontal"!==r,c="vertical"!==r,u=yB(i),d={ArrowUp:(u||l)&&(()=>{if(u){const e=o&&function(e){return function(e,t){return e.find((e=>t?!e.disabled&&e.id!==t:!e.disabled))}(sB(lB(function(e){const t=[];for(const n of e){const e=t.find((e=>{var t;return(null==(t=e[0])?void 0:t.rowId)===n.rowId}));e?e.push(n):t.push([n])}return t}(e))))}(o);return null==e?void 0:e.id}return n.last()}),ArrowRight:(u||c)&&n.first,ArrowDown:(u||l)&&n.first,ArrowLeft:(u||c)&&n.last,Home:n.first,End:n.last,PageUp:n.first,PageDown:n.last},f=d[e.key];if(f){const t=f();if(void 0!==t){if(!E(e))return;e.preventDefault(),n.move(t)}}}));a=Jz(a,(e=>(0,Qz.jsx)(NF.Provider,{value:n,children:e})),[n]);const C=n.useState((e=>{var t;return r&&e.virtualFocus?null==(t=TF(n,e.activeId))?void 0:t.id:void 0}));a=hz(mz({"aria-activedescendant":C},a),{ref:qz(r?n.setBaseElement:null,a.ref),onKeyDownCapture:f,onKeyUpCapture:p,onFocusCapture:h,onFocus:b,onBlurCapture:w,onKeyDown:_});const S=n.useState((e=>r&&(e.virtualFocus||null===e.activeId)));return a=EF(mz({focusable:S},a))}));eF((e=>nF("div",xB(e))));var EB=rF((e=>{var t=e,{store:n}=t,r=gz(t,["store"]);const o=n.useState((e=>"both"===e.orientation?void 0:e.orientation));return r=Jz(r,(e=>(0,Qz.jsx)(bB.Provider,{value:n,children:e})),[n]),r=mz({role:"toolbar","aria-orientation":o},r),r=xB(mz({store:n},r))})),_B=eF((e=>nF("div",EB(e))));var CB=(0,a.forwardRef)((function({label:e,...t},n){const r=vB({focusLoop:!0,rtl:(0,c.isRTL)()});return(0,a.createElement)(XF.Provider,{value:r},(0,a.createElement)(_B,{ref:n,"aria-label":e,store:r,...t}))}));const SB={DropdownMenu:{variant:"toolbar"},Dropdown:{variant:"toolbar"}};var kB=(0,a.forwardRef)((function({className:e,label:t,...n},r){if(!t)return ql()("Using Toolbar without label prop",{since:"5.6",alternative:"ToolbarGroup component",link:"https://developer.wordpress.org/block-editor/components/toolbar/"}),(0,a.createElement)(nB,{...n,className:e});const o=l()("components-accessible-toolbar",e);return(0,a.createElement)(sc,{value:SB},(0,a.createElement)(CB,{className:o,label:t,ref:r,...n}))}));var TB=(0,a.forwardRef)((function(e,t){return(0,a.useContext)(XF)?(0,a.createElement)(ZF,{ref:t,...e.toggleProps},(t=>(0,a.createElement)(pT,{...e,popoverProps:{...e.popoverProps},toggleProps:t}))):(0,a.createElement)(pT,{...e})}));const RB={columns:e=>np("grid-template-columns:",`repeat( ${e}, minmax(0, 1fr) )`,";",""),spacing:np("column-gap:",rh(2),";row-gap:",rh(4),";",""),item:{fullWidth:{name:"18iuzk9",styles:"grid-column:1/-1"}}},PB={name:"huufmu",styles:">div:not( :first-of-type ){display:none;}"},MB=np(RB.item.fullWidth," gap:",rh(2),";.components-dropdown-menu{margin:",rh(-1)," 0;line-height:0;}&&&& .components-dropdown-menu__toggle{padding:0;min-width:",rh(6),";}",""),IB={name:"1pmxm02",styles:"font-size:inherit;font-weight:500;line-height:normal;&&{margin:0;}"},NB=np(RB.item.fullWidth,"&>div,&>fieldset{padding-bottom:0;margin-bottom:0;max-width:100%;}&& ",zv,"{margin-bottom:0;",Fv,":last-child{margin-bottom:0;}}",Hv,"{margin-bottom:0;}&& ",dg,"{label{line-height:1.4em;}}",""),OB={name:"eivff4",styles:"display:none"},DB={name:"16gsvie",styles:"min-width:200px"},AB=fd("span",{target:"ews648u0"})("color:",Bp.ui.themeDark10,";font-size:11px;font-weight:500;line-height:1.4;",uh({marginLeft:rh(3)})," text-transform:uppercase;"),LB=np("color:",Bp.gray[900],";&&[aria-disabled='true']{color:",Bp.gray[700],";opacity:1;&:hover{color:",Bp.gray[700],";}",AB,"{opacity:0.3;}}",""),zB=()=>{},FB=(0,a.createContext)({menuItems:{default:{},optional:{}},hasMenuItems:!1,isResetting:!1,shouldRenderPlaceholderItems:!1,registerPanelItem:zB,deregisterPanelItem:zB,flagItemCustomization:zB,registerResetAllFilter:zB,deregisterResetAllFilter:zB,areAllOptionalControlsHidden:!0}),BB=()=>(0,a.useContext)(FB);const jB=({itemClassName:e,items:t,toggleItem:n})=>{if(!t.length)return null;const r=(0,a.createElement)(AB,{"aria-hidden":!0},(0,c.__)("Reset"));return(0,a.createElement)(ZO,{label:(0,c.__)("Defaults")},t.map((([t,o])=>o?(0,a.createElement)(JO,{key:t,className:e,role:"menuitem",label:(0,c.sprintf)((0,c.__)("Reset %s"),t),onClick:()=>{n(t),(0,_b.speak)((0,c.sprintf)((0,c.__)("%s reset to default"),t),"assertive")},suffix:r},t):(0,a.createElement)(JO,{key:t,className:e,role:"menuitemcheckbox",isSelected:!0,"aria-disabled":!0},t))))},VB=({items:e,toggleItem:t})=>e.length?(0,a.createElement)(ZO,{label:(0,c.__)("Tools")},e.map((([e,n])=>{const r=n?(0,c.sprintf)((0,c.__)("Hide and reset %s"),e):(0,c.sprintf)((0,c.__)("Show %s"),e);return(0,a.createElement)(JO,{key:e,icon:n&&i_,isSelected:n,label:r,onClick:()=>{n?(0,_b.speak)((0,c.sprintf)((0,c.__)("%s hidden and reset to default"),e),"assertive"):(0,_b.speak)((0,c.sprintf)((0,c.__)("%s is now visible"),e),"assertive"),t(e)},role:"menuitemcheckbox"},e)}))):null,HB=Ju(((e,t)=>{const{areAllOptionalControlsHidden:n,defaultControlsItemClassName:r,dropdownMenuClassName:o,hasMenuItems:i,headingClassName:s,headingLevel:l=2,label:u,menuItems:d,resetAll:f,toggleItem:p,...m}=function(e){const{className:t,headingLevel:n=2,...r}=Zu(e,"ToolsPanelHeader"),o=Xu(),i=(0,a.useMemo)((()=>o(MB,t)),[t,o]),s=(0,a.useMemo)((()=>o(DB)),[o]),l=(0,a.useMemo)((()=>o(IB)),[o]),c=(0,a.useMemo)((()=>o(LB)),[o]),{menuItems:u,hasMenuItems:d,areAllOptionalControlsHidden:f}=BB();return{...r,areAllOptionalControlsHidden:f,defaultControlsItemClassName:c,dropdownMenuClassName:s,hasMenuItems:d,headingClassName:l,headingLevel:n,menuItems:u,className:i}}(e);if(!u)return null;const h=Object.entries(d?.default||{}),g=Object.entries(d?.optional||{}),v=n?mh:ik,b=(0,c.sprintf)((0,c._x)("%s options","Button label to reveal tool panel options"),u),y=n?(0,c.__)("All options are currently hidden"):void 0,w=[...h,...g].some((([,e])=>e));return(0,a.createElement)(lb,{...m,ref:t},(0,a.createElement)(u_,{level:l,className:s},u),i&&(0,a.createElement)(pT,{icon:v,label:b,menuProps:{className:o},toggleProps:{isSmall:!0,describedBy:y}},(()=>(0,a.createElement)(a.Fragment,null,(0,a.createElement)(jB,{items:h,toggleItem:p,itemClassName:r}),(0,a.createElement)(VB,{items:g,toggleItem:p}),(0,a.createElement)(ZO,null,(0,a.createElement)(JO,{"aria-disabled":!w,variant:"tertiary",onClick:()=>{w&&(f(),(0,_b.speak)((0,c.__)("All options reset"),"assertive"))}},(0,c.__)("Reset all")))))))}),"ToolsPanelHeader");var $B=HB;const WB=({panelItems:e,shouldReset:t,currentMenuItems:n,menuItemOrder:r})=>{const o={default:{},optional:{}},i={default:{},optional:{}};return e.forEach((({hasValue:e,isShownByDefault:r,label:i})=>{const a=r?"default":"optional",s=n?.[a]?.[i],l=s||e();o[a][i]=!t&&l})),r.forEach((e=>{o.default.hasOwnProperty(e)&&(i.default[e]=o.default[e]),o.optional.hasOwnProperty(e)&&(i.optional[e]=o.optional[e])})),Object.keys(o.default).forEach((e=>{i.default.hasOwnProperty(e)||(i.default[e]=o.default[e])})),Object.keys(o.optional).forEach((e=>{i.optional.hasOwnProperty(e)||(i.optional[e]=o.optional[e])})),i},UB=e=>e&&0===Object.keys(e).length;function GB(e){const{className:t,headingLevel:n=2,resetAll:r,panelId:o,hasInnerWrapper:i=!1,shouldRenderPlaceholderItems:s=!1,__experimentalFirstVisibleItemClass:l,__experimentalLastVisibleItemClass:c,...u}=Zu(e,"ToolsPanel"),d=(0,a.useRef)(!1),f=d.current;(0,a.useEffect)((()=>{f&&(d.current=!1)}),[f]);const[p,m]=(0,a.useState)([]),[h,g]=(0,a.useState)([]),[v,b]=(0,a.useState)([]),y=(0,a.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e.label));return-1!==r&&n.splice(r,1),[...n,e]})),g((t=>t.includes(e.label)?t:[...t,e.label]))}),[m,g]),w=(0,a.useCallback)((e=>{m((t=>{const n=[...t],r=n.findIndex((t=>t.label===e));return-1!==r&&n.splice(r,1),n}))}),[m]),x=(0,a.useCallback)((e=>{b((t=>[...t,e]))}),[b]),E=(0,a.useCallback)((e=>{b((t=>t.filter((t=>t!==e))))}),[b]),[_,C]=(0,a.useState)({default:{},optional:{}});(0,a.useEffect)((()=>{C((e=>WB({panelItems:p,shouldReset:!1,currentMenuItems:e,menuItemOrder:h})))}),[p,C,h]);const S=(0,a.useCallback)(((e,t="default")=>{C((n=>({...n,[t]:{...n[t],[e]:!0}})))}),[C]),[k,T]=(0,a.useState)(!1);(0,a.useEffect)((()=>{if(UB(_?.default)&&!UB(_?.optional)){const e=!Object.entries(_.optional).some((([,e])=>e));T(e)}}),[_,T]);const R=Xu(),P=(0,a.useMemo)((()=>{const e=i&&np(">div:not( :first-of-type ){display:grid;",RB.columns(2)," ",RB.spacing," ",RB.item.fullWidth,";}","");const n=UB(_?.default)&&k&&PB;return R((e=>np(RB.columns(e)," ",RB.spacing," border-top:",zh.borderWidth," solid ",Bp.gray[300],";margin-top:-1px;padding:",rh(4),";",""))(2),e,n,t)}),[k,t,R,i,_]),M=(0,a.useCallback)((e=>{const t=p.find((t=>t.label===e));if(!t)return;const n=t.isShownByDefault?"default":"optional",r={..._,[n]:{..._[n],[e]:!_[n][e]}};C(r)}),[_,p,C]),I=(0,a.useCallback)((()=>{"function"==typeof r&&(d.current=!0,r(v));const e=WB({panelItems:p,menuItemOrder:h,shouldReset:!0});C(e)}),[p,v,r,C,h]),N=e=>{const t=_.optional||{},n=e.find((e=>e.isShownByDefault||!!t[e.label]));return n?.label},O=N(p),D=N([...p].reverse());return{...u,headingLevel:n,panelContext:(0,a.useMemo)((()=>({areAllOptionalControlsHidden:k,deregisterPanelItem:w,deregisterResetAllFilter:E,firstDisplayedItem:O,flagItemCustomization:S,hasMenuItems:!!p.length,isResetting:d.current,lastDisplayedItem:D,menuItems:_,panelId:o,registerPanelItem:y,registerResetAllFilter:x,shouldRenderPlaceholderItems:s,__experimentalFirstVisibleItemClass:l,__experimentalLastVisibleItemClass:c})),[k,w,E,O,S,D,_,o,p,x,y,s,l,c]),resetAllItems:I,toggleItem:M,className:P}}var KB=Ju(((e,t)=>{const{children:n,label:r,panelContext:o,resetAllItems:i,toggleItem:s,headingLevel:l,...c}=GB(e);return(0,a.createElement)(H_,{...c,columns:2,ref:t},(0,a.createElement)(FB.Provider,{value:o},(0,a.createElement)($B,{label:r,resetAll:i,toggleItem:s,headingLevel:l}),n))}),"ToolsPanel");const qB=()=>{};const YB=Ju(((e,t)=>{const{children:n,isShown:r,shouldRenderPlaceholder:o,...i}=function(e){const{className:t,hasValue:n,isShownByDefault:r=!1,label:o,panelId:i,resetAllFilter:s=qB,onDeselect:l,onSelect:c,...d}=Zu(e,"ToolsPanelItem"),{panelId:f,menuItems:p,registerResetAllFilter:m,deregisterResetAllFilter:h,registerPanelItem:g,deregisterPanelItem:v,flagItemCustomization:b,isResetting:y,shouldRenderPlaceholderItems:w,firstDisplayedItem:x,lastDisplayedItem:E,__experimentalFirstVisibleItemClass:_,__experimentalLastVisibleItemClass:C}=BB(),S=(0,a.useCallback)(n,[i,n]),k=(0,a.useCallback)(s,[i,s]),T=(0,u.usePrevious)(f),R=f===i||null===f;(0,a.useEffect)((()=>(R&&null!==T&&g({hasValue:S,isShownByDefault:r,label:o,panelId:i}),()=>{(null===T&&f||f===i)&&v(o)})),[f,R,r,o,S,i,T,g,v]),(0,a.useEffect)((()=>(R&&m(k),()=>{R&&h(k)})),[m,h,k,R]);const P=r?"default":"optional",M=p?.[P]?.[o],I=(0,u.usePrevious)(M),N=void 0!==p?.[P]?.[o],O=n(),D=(0,u.usePrevious)(O),A=O&&!D;(0,a.useEffect)((()=>{A&&(r||null===f)&&b(o,P)}),[f,A,r,P,o,b]),(0,a.useEffect)((()=>{N&&!y&&R&&(!M||O||I||c?.(),!M&&I&&l?.())}),[R,M,N,y,O,I,c,l]);const L=r?void 0!==p?.[P]?.[o]:M,z=Xu(),F=(0,a.useMemo)((()=>z(NB,w&&!L&&OB,t,x===o&&_,E===o&&C)),[L,w,t,z,x,E,_,C,o]);return{...d,isShown:L,shouldRenderPlaceholder:w,className:F}}(e);return r?(0,a.createElement)(md,{...i,ref:t},n):o?(0,a.createElement)(md,{...i,ref:t}):null}),"ToolsPanelItem");var XB=YB,ZB=window.wp.keycodes;const JB=(0,a.createContext)(void 0),QB=JB.Provider;function ej({children:e}){const[t,n]=(0,a.useState)(),r=(0,a.useMemo)((()=>({lastFocusedElement:t,setLastFocusedElement:n})),[t]);return(0,a.createElement)(QB,{value:r},e)}function tj(e){return Yl.focus.focusable.find(e,{sequential:!0}).filter((t=>t.closest('[role="row"]')===e))}const nj=(0,a.forwardRef)((function({children:e,onExpandRow:t=(()=>{}),onCollapseRow:n=(()=>{}),onFocusRow:r=(()=>{}),applicationAriaLabel:o,...i},s){const l=(0,a.useCallback)((e=>{const{keyCode:o,metaKey:i,ctrlKey:a,altKey:s}=e;if(i||a||s||![ZB.UP,ZB.DOWN,ZB.LEFT,ZB.RIGHT,ZB.HOME,ZB.END].includes(o))return;e.stopPropagation();const{activeElement:l}=document,{currentTarget:c}=e;if(!l||!c.contains(l))return;const u=l.closest('[role="row"]');if(!u)return;const d=tj(u),f=d.indexOf(l),p=0===f,m=p&&("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))&&o===ZB.RIGHT;if([ZB.LEFT,ZB.RIGHT].includes(o)){let r;if(r=o===ZB.LEFT?Math.max(0,f-1):Math.min(f+1,d.length-1),p){if(o===ZB.LEFT){var h;if("true"===u.getAttribute("data-expanded")||"true"===u.getAttribute("aria-expanded"))return n(u),void e.preventDefault();const t=Math.max(parseInt(null!==(h=u?.getAttribute("aria-level"))&&void 0!==h?h:"1",10)-1,1),r=Array.from(c.querySelectorAll('[role="row"]'));let o=u;for(let e=r.indexOf(u);e>=0;e--){const n=r[e].getAttribute("aria-level");if(null!==n&&parseInt(n,10)===t){o=r[e];break}}tj(o)?.[0]?.focus()}if(o===ZB.RIGHT){if("false"===u.getAttribute("data-expanded")||"false"===u.getAttribute("aria-expanded"))return t(u),void e.preventDefault();const n=tj(u);n.length>0&&n[r]?.focus()}return void e.preventDefault()}if(m)return;d[r].focus(),e.preventDefault()}else if([ZB.UP,ZB.DOWN].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===ZB.UP?Math.max(0,n-1):Math.min(n+1,t.length-1),i===n)return void e.preventDefault();const a=tj(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}else if([ZB.HOME,ZB.END].includes(o)){const t=Array.from(c.querySelectorAll('[role="row"]')),n=t.indexOf(u);let i;if(i=o===ZB.HOME?0:t.length-1,i===n)return void e.preventDefault();const a=tj(t[i]);if(!a||!a.length)return void e.preventDefault();a[Math.min(f,a.length-1)].focus(),r(e,u,t[i]),e.preventDefault()}}),[t,n,r]);return(0,a.createElement)(ej,null,(0,a.createElement)("div",{role:"application","aria-label":o},(0,a.createElement)("table",{...i,role:"treegrid",onKeyDown:l,ref:s},(0,a.createElement)("tbody",null,e))))}));var rj=nj;var oj=(0,a.forwardRef)((function({children:e,level:t,positionInSet:n,setSize:r,isExpanded:o,...i},s){return(0,a.createElement)("tr",{...i,ref:s,role:"row","aria-level":t,"aria-posinset":n,"aria-setsize":r,"aria-expanded":o},e)}));const ij=(0,a.forwardRef)((function({children:e,as:t,...n},r){const o=(0,a.useRef)(),i=r||o,{lastFocusedElement:s,setLastFocusedElement:l}=(0,a.useContext)(JB);let c;s&&(c=s===("current"in i?i.current:void 0)?0:-1);const u={ref:i,tabIndex:c,onFocus:e=>l?.(e.target),...n};return"function"==typeof e?e(u):t?(0,a.createElement)(t,{...u},e):null}));var aj=ij;var sj=(0,a.forwardRef)((function({children:e,...t},n){return(0,a.createElement)(aj,{ref:n,...t},e)}));var lj=(0,a.forwardRef)((function({children:e,withoutGridItem:t=!1,...n},r){return(0,a.createElement)("td",{...n,role:"gridcell"},t?(0,a.createElement)(a.Fragment,null,e):(0,a.createElement)(sj,{ref:r},e))}));function cj(e){e.stopPropagation()}var uj=(0,a.forwardRef)(((e,t)=>(ql()("wp.components.IsolatedEventContainer",{since:"5.7"}),(0,a.createElement)("div",{...e,ref:t,onMouseDown:cj}))));function dj(e){return Zd((0,a.useContext)(Qd).fills,{sync:!0}).get(e)}const fj=fd("div",{target:"ebn2ljm1"})("&:not( :first-of-type ){",(({offsetAmount:e})=>np({marginInlineStart:e},"","")),";}",(({zIndex:e})=>np({zIndex:e},"","")),";");var pj={name:"rs0gp6",styles:"grid-row-start:1;grid-column-start:1"};const mj=fd("div",{target:"ebn2ljm0"})("display:inline-grid;grid-auto-flow:column;position:relative;&>",fj,"{position:relative;justify-self:start;",(({isLayered:e})=>e?pj:void 0),";}");const hj=Ju((function(e,t){const{children:n,className:r,isLayered:o=!0,isReversed:i=!1,offset:s=0,...l}=Zu(e,"ZStack"),c=ab(n),u=c.length-1,d=c.map(((e,t)=>{const n=i?u-t:t,r=o?s*t:s,l=(0,a.isValidElement)(e)?e.key:t;return(0,a.createElement)(fj,{offsetAmount:r,zIndex:n,key:l},e)}));return(0,a.createElement)(mj,{...l,className:r,isLayered:o,ref:t},d)}),"ZStack");var gj=hj;const vj={previous:[{modifier:"ctrlShift",character:"`"},{modifier:"ctrlShift",character:"~"},{modifier:"access",character:"p"}],next:[{modifier:"ctrl",character:"`"},{modifier:"access",character:"n"}]};function bj(e=vj){const t=(0,a.useRef)(null),[n,r]=(0,a.useState)(!1);function o(e){var n;const o=Array.from(null!==(n=t.current?.querySelectorAll('[role="region"][tabindex="-1"]'))&&void 0!==n?n:[]);if(!o.length)return;let i=o[0];const a=t.current?.ownerDocument?.activeElement?.closest('[role="region"][tabindex="-1"]'),s=a?o.indexOf(a):-1;if(-1!==s){let t=s+e;t=-1===t?o.length-1:t,t=t===o.length?0:t,i=o[t]}i.focus(),r(!0)}const i=(0,u.useRefEffect)((e=>{function t(){r(!1)}return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}),[r]);return{ref:(0,u.useMergeRefs)([t,i]),className:n?"is-focusing-regions":"",onKeyDown(t){e.previous.some((({modifier:e,character:n})=>ZB.isKeyboardEvent[e](t,n)))?o(-1):e.next.some((({modifier:e,character:n})=>ZB.isKeyboardEvent[e](t,n)))&&o(1)}}}var yj=(0,u.createHigherOrderComponent)((e=>({shortcuts:t,...n})=>(0,a.createElement)("div",{...bj(t)},(0,a.createElement)(e,{...n}))),"navigateRegions");var wj=(0,u.createHigherOrderComponent)((e=>function(t){const n=(0,u.useConstrainedTabbing)();return(0,a.createElement)("div",{ref:n,tabIndex:-1},(0,a.createElement)(e,{...t}))}),"withConstrainedTabbing"),xj=e=>(0,u.createHigherOrderComponent)((t=>class extends a.Component{constructor(e){super(e),this.nodeRef=this.props.node,this.state={fallbackStyles:void 0,grabStylesCompleted:!1},this.bindRef=this.bindRef.bind(this)}bindRef(e){e&&(this.nodeRef=e)}componentDidMount(){this.grabFallbackStyles()}componentDidUpdate(){this.grabFallbackStyles()}grabFallbackStyles(){const{grabStylesCompleted:t,fallbackStyles:n}=this.state;if(this.nodeRef&&!t){const t=e(this.nodeRef,this.props);tc()(t,n)||this.setState({fallbackStyles:t,grabStylesCompleted:Object.values(t).every(Boolean)})}}render(){const e=(0,a.createElement)(t,{...this.props,...this.state.fallbackStyles});return this.props.node?e:(0,a.createElement)("div",{ref:this.bindRef}," ",e," ")}}),"withFallbackStyles"),Ej=window.wp.hooks;const _j=16;function Cj(e){return(0,u.createHigherOrderComponent)((t=>{const n="core/with-filters/"+e;let r;class o extends a.Component{constructor(n){super(n),void 0===r&&(r=(0,Ej.applyFilters)(e,t))}componentDidMount(){o.instances.push(this),1===o.instances.length&&((0,Ej.addAction)("hookRemoved",n,s),(0,Ej.addAction)("hookAdded",n,s))}componentWillUnmount(){o.instances=o.instances.filter((e=>e!==this)),0===o.instances.length&&((0,Ej.removeAction)("hookRemoved",n),(0,Ej.removeAction)("hookAdded",n))}render(){return(0,a.createElement)(r,{...this.props})}}o.instances=[];const i=(0,u.debounce)((()=>{r=(0,Ej.applyFilters)(e,t),o.instances.forEach((e=>{e.forceUpdate()}))}),_j);function s(t){t===e&&i()}return o}),"withFilters")}var Sj=(0,u.createHigherOrderComponent)((e=>{const t=({onFocusReturn:e}={})=>t=>n=>{const r=(0,u.useFocusReturn)(e);return(0,a.createElement)("div",{ref:r},(0,a.createElement)(t,{...n}))};if((n=e)instanceof a.Component||"function"==typeof n){const n=e;return t()(n)}var n;return t(e)}),"withFocusReturn");const kj=({children:e})=>(ql()("wp.components.FocusReturnProvider component",{since:"5.7",hint:"This provider is not used anymore. You can just remove it from your codebase"}),e);var Tj=(0,u.createHigherOrderComponent)((e=>{function t(t,r){const[o,i]=(0,a.useState)([]),s=(0,a.useMemo)((()=>{const e=e=>{const t=e.id?e:{...e,id:gf()};i((e=>[...e,t]))};return{createNotice:e,createErrorNotice:t=>{e({status:"error",content:t})},removeNotice:e=>{i((t=>t.filter((t=>t.id!==e))))},removeAllNotices:()=>{i([])}}}),[]),l={...t,noticeList:o,noticeOperations:s,noticeUI:o.length>0&&(0,a.createElement)(yA,{className:"components-with-notices-ui",notices:o,onRemove:s.removeNotice})};return n?(0,a.createElement)(e,{...l,ref:r}):(0,a.createElement)(e,{...l})}let n;const{render:r}=e;return"function"==typeof r?(n=!0,(0,a.forwardRef)(t)):t}),"withNotices"),Rj=window.wp.privateApis;function Pj(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function Mj(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Ij(...e){return(0,v.useCallback)(Mj(...e),e)}function Nj(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>(0,v.createContext)(e)));return function(n){const r=(null==n?void 0:n[e])||t;return(0,v.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=(0,v.createContext)(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=(0,v.useMemo)((()=>a),Object.values(a));return(0,v.createElement)(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=(0,v.useContext)(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Oj(r,...t)]}function Oj(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,v.useMemo)((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Dj(e){const t=(0,v.useRef)(e);return(0,v.useEffect)((()=>{t.current=e})),(0,v.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Aj({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=(0,v.useState)(e),[r]=n,o=(0,v.useRef)(r),i=Dj(t);return(0,v.useEffect)((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=Dj(n);return[a,(0,v.useCallback)((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}const Lj=(0,v.forwardRef)(((e,t)=>{const{children:n,...r}=e,o=v.Children.toArray(n),i=o.find(Bj);if(i){const e=i.props.children,n=o.map((t=>t===i?v.Children.count(e)>1?v.Children.only(null):(0,v.isValidElement)(e)?e.props.children:null:t));return(0,v.createElement)(zj,od({},r,{ref:t}),(0,v.isValidElement)(e)?(0,v.cloneElement)(e,void 0,n):null)}return(0,v.createElement)(zj,od({},r,{ref:t}),n)}));Lj.displayName="Slot";const zj=(0,v.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,v.isValidElement)(n)?(0,v.cloneElement)(n,{...jj(r,n.props),ref:Mj(t,n.ref)}):v.Children.count(n)>1?v.Children.only(null):null}));zj.displayName="SlotClone";const Fj=({children:e})=>(0,v.createElement)(v.Fragment,null,e);function Bj(e){return(0,v.isValidElement)(e)&&e.type===Fj}function jj(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Vj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,v.forwardRef)(((e,n)=>{const{asChild:r,...o}=e,i=r?Lj:t;return(0,v.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,v.createElement)(i,od({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function Hj(e,t){e&&(0,It.flushSync)((()=>e.dispatchEvent(t)))}function $j(e){const t=e+"CollectionProvider",[n,r]=Nj(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:t,children:n}=e,r=y().useRef(null),i=y().useRef(new Map).current;return y().createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},s=e+"CollectionSlot",l=y().forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Ij(t,i(s,n).collectionRef);return y().createElement(Lj,{ref:o},r)})),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=y().forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=y().useRef(null),s=Ij(t,a),l=i(c,n);return y().useEffect((()=>(l.itemMap.set(a,{ref:a,...o}),()=>{l.itemMap.delete(a)}))),y().createElement(Lj,{[u]:"",ref:s},r)}));return[{Provider:a,Slot:l,ItemSlot:d},function(t){const n=i(e+"CollectionConsumer",t),r=y().useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${u}]`)),r=Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)));return r}),[n.collectionRef,n.itemMap]);return r},r]}const Wj=(0,v.createContext)(void 0);function Uj(e){const t=(0,v.useContext)(Wj);return e||t||"ltr"}const Gj="dismissableLayer.update",Kj="dismissableLayer.pointerDownOutside",qj="dismissableLayer.focusOutside";let Yj;const Xj=(0,v.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zj=(0,v.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...c}=e,u=(0,v.useContext)(Xj),[d,f]=(0,v.useState)(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,m]=(0,v.useState)({}),h=Ij(t,(e=>f(e))),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),w=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,_=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Dj(e),r=(0,v.useRef)(!1),o=(0,v.useRef)((()=>{}));return(0,v.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const i={originalEvent:e};function a(){Qj(Kj,n,i,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));E&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p),C=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Dj(e),r=(0,v.useRef)(!1);return(0,v.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){Qj(qj,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=Dj(e);(0,v.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{w===u.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),(0,v.useEffect)((()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(Yj=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Jj(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=Yj)}}),[d,p,r,u]),(0,v.useEffect)((()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Jj())}),[d,u]),(0,v.useEffect)((()=>{const e=()=>m({});return document.addEventListener(Gj,e),()=>document.removeEventListener(Gj,e)}),[]),(0,v.createElement)(Vj.div,od({},c,{ref:h,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:Pj(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Pj(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Pj(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function Jj(){const e=new CustomEvent(Gj);document.dispatchEvent(e)}function Qj(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Hj(o,i):o.dispatchEvent(i)}let eV=0;function tV(){(0,v.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:nV()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:nV()),eV++,()=>{1===eV&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),eV--}}),[])}function nV(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const rV="focusScope.autoFocusOnMount",oV="focusScope.autoFocusOnUnmount",iV={bubbles:!1,cancelable:!0},aV=(0,v.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=(0,v.useState)(null),c=Dj(o),u=Dj(i),d=(0,v.useRef)(null),f=Ij(t,(e=>l(e))),p=(0,v.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,v.useEffect)((()=>{if(r){function e(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:uV(d.current,{select:!0})}function t(e){!p.paused&&s&&(s.contains(e.relatedTarget)||uV(d.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,s,p.paused]),(0,v.useEffect)((()=>{if(s){dV.add(p);const t=document.activeElement;if(!s.contains(t)){const n=new CustomEvent(rV,iV);s.addEventListener(rV,c),s.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(uV(r,{select:t}),document.activeElement!==n)return}((e=sV(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&uV(s))}return()=>{s.removeEventListener(rV,c),setTimeout((()=>{const e=new CustomEvent(oV,iV);s.addEventListener(oV,u),s.dispatchEvent(e),e.defaultPrevented||uV(null!=t?t:document.body,{select:!0}),s.removeEventListener(oV,u),dV.remove(p)}),0)}}var e}),[s,c,u,p]);const m=(0,v.useCallback)((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=sV(e),n=lV(t,e),r=lV(t.reverse(),e);return[n,r]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&uV(i,{select:!0})):(e.preventDefault(),n&&uV(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return(0,v.createElement)(Vj.div,od({tabIndex:-1},a,{ref:f,onKeyDown:m}))}));function sV(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function lV(e,t){for(const n of e)if(!cV(n,{upTo:t}))return n}function cV(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function uV(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const dV=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=fV(e,t),e.unshift(t)},remove(t){var n;e=fV(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function fV(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}const pV=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?v.useLayoutEffect:()=>{},mV=v["useId".toString()]||(()=>{});let hV=0;function gV(e){const[t,n]=v.useState(mV());return pV((()=>{e||n((e=>null!=e?e:String(hV++)))}),[e]),e||(t?`radix-${t}`:"")}function vV(e){return e.split("-")[0]}function bV(e){return e.split("-")[1]}function yV(e){return["top","bottom"].includes(vV(e))?"x":"y"}function wV(e){return"y"===e?"height":"width"}function xV(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=yV(t),l=wV(s),c=r[l]/2-o[l]/2,u="x"===s;let d;switch(vV(t)){case"top":d={x:i,y:r.y-o.height};break;case"bottom":d={x:i,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:a};break;case"left":d={x:r.x-o.width,y:a};break;default:d={x:r.x,y:r.y}}switch(bV(t)){case"start":d[s]-=c*(n&&u?-1:1);break;case"end":d[s]+=c*(n&&u?-1:1)}return d}function EV(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function _V(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function CV(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=t,m=EV(p),h=s[f?"floating"===d?"reference":"floating":d],g=_V(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v=_V(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...a.floating,x:r,y:o}:a.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),strategy:l}):a[d]);return{top:g.top-v.top+m.top,bottom:v.bottom-g.bottom+m.bottom,left:g.left-v.left+m.left,right:v.right-g.right+m.right}}const SV=Math.min,kV=Math.max;function TV(e,t,n){return kV(e,SV(t,n))}const RV=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=null!=e?e:{},{x:o,y:i,placement:a,rects:s,platform:l}=t;if(null==n)return{};const c=EV(r),u={x:o,y:i},d=yV(a),f=bV(a),p=wV(d),m=await l.getDimensions(n),h="y"===d?"top":"left",g="y"===d?"bottom":"right",v=s.reference[p]+s.reference[d]-u[d]-s.floating[p],b=u[d]-s.reference[d],y=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let w=y?"y"===d?y.clientHeight||0:y.clientWidth||0:0;0===w&&(w=s.floating[p]);const x=v/2-b/2,E=c[h],_=w-m[p]-c[g],C=w/2-m[p]/2+x,S=TV(E,C,_),k=("start"===f?c[h]:c[g])>0&&C!==S&&s.reference[p]<=s.floating[p];return{[d]:u[d]-(k?C<E?E-C:_-C:0),data:{[d]:S,centerOffset:C-S}}}}),PV={left:"right",right:"left",bottom:"top",top:"bottom"};function MV(e){return e.replace(/left|right|bottom|top/g,(e=>PV[e]))}function IV(e,t,n){void 0===n&&(n=!1);const r=bV(e),o=yV(e),i=wV(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=MV(a)),{main:a,cross:MV(a)}}const NV={start:"end",end:"start"};function OV(e){return e.replace(/start|end/g,(e=>NV[e]))}const DV=["top","right","bottom","left"],AV=(DV.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:p=!0,...m}=e,h=vV(r),g=d||(h!==a&&p?function(e){const t=MV(e);return[OV(e),t,OV(t)]}(a):[MV(a)]),v=[a,...g],b=await CV(t,m),y=[];let w=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&y.push(b[h]),u){const{main:e,cross:t}=IV(r,i,await(null==s.isRTL?void 0:s.isRTL(l.floating)));y.push(b[e],b[t])}if(w=[...w,{placement:r,overflows:y}],!y.every((e=>e<=0))){var x,E;const e=(null!=(x=null==(E=o.flip)?void 0:E.index)?x:0)+1,t=v[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var _;const e=null==(_=w.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:_[0].placement;e&&(n=e);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}});function LV(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zV(e){return DV.some((t=>e[t]>=0))}const FV=function(e){let{strategy:t="referenceHidden",...n}=void 0===e?{}:e;return{name:"hide",async fn(e){const{rects:r}=e;switch(t){case"referenceHidden":{const t=LV(await CV(e,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:zV(t)}}}case"escaped":{const t=LV(await CV(e,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:zV(t)}}}default:return{}}}}},BV=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=vV(n),s=bV(n),l="x"===yV(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d="function"==typeof t?t(e):t;let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return{x:n+o.x,y:r+o.y,data:o}}}};function jV(e){return"x"===e?"y":"x"}const VV=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=e,c={x:n,y:r},u=await CV(t,l),d=yV(vV(o)),f=jV(d);let p=c[d],m=c[f];if(i){const e="y"===d?"bottom":"right";p=TV(p+u["y"===d?"top":"left"],p,p-u[e])}if(a){const e="y"===f?"bottom":"right";m=TV(m+u["y"===f?"top":"left"],m,m-u[e])}const h=s.fn({...t,[d]:p,[f]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}},HV=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=yV(o),f=jV(d);let p=u[d],m=u[f];const h="function"==typeof s?s({...i,placement:o}):s,g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+g.mainAxis,n=i.reference[d]+i.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var v,b,y,w;const e="y"===d?"width":"height",t=["top","left"].includes(vV(o)),n=i.reference[f]-i.floating[e]+(t&&null!=(v=null==(b=a.offset)?void 0:b[f])?v:0)+(t?0:g.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:null!=(y=null==(w=a.offset)?void 0:w[f])?y:0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[d]:p,[f]:m}}}},$V=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a,...s}=e,l=await CV(t,s),c=vV(n),u=bV(n);let d,f;"top"===c||"bottom"===c?(d=c,f=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(f=c,d="end"===u?"top":"bottom");const p=kV(l.left,0),m=kV(l.right,0),h=kV(l.top,0),g=kV(l.bottom,0),v={availableHeight:r.floating.height-(["left","right"].includes(n)?2*(0!==h||0!==g?h+g:kV(l.top,l.bottom)):l[d]),availableWidth:r.floating.width-(["top","bottom"].includes(n)?2*(0!==p||0!==m?p+m:kV(l.left,l.right)):l[f])},b=await o.getDimensions(i.floating);null==a||a({...t,...v});const y=await o.getDimensions(i.floating);return b.width!==y.width||b.height!==y.height?{reset:{rects:!0}}:{}}}};function WV(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function UV(e){if(null==e)return window;if(!WV(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function GV(e){return UV(e).getComputedStyle(e)}function KV(e){return WV(e)?"":e?(e.nodeName||"").toLowerCase():""}function qV(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function YV(e){return e instanceof UV(e).HTMLElement}function XV(e){return e instanceof UV(e).Element}function ZV(e){return"undefined"!=typeof ShadowRoot&&(e instanceof UV(e).ShadowRoot||e instanceof ShadowRoot)}function JV(e){const{overflow:t,overflowX:n,overflowY:r}=GV(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function QV(e){return["table","td","th"].includes(KV(e))}function eH(e){const t=/firefox/i.test(qV()),n=GV(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function tH(){return!/^((?!chrome|android).)*safari/i.test(qV())}const nH=Math.min,rH=Math.max,oH=Math.round;function iH(e,t,n){var r,o,i,a;void 0===t&&(t=!1),void 0===n&&(n=!1);const s=e.getBoundingClientRect();let l=1,c=1;t&&YV(e)&&(l=e.offsetWidth>0&&oH(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&oH(s.height)/e.offsetHeight||1);const u=XV(e)?UV(e):window,d=!tH()&&n,f=(s.left+(d&&null!=(r=null==(o=u.visualViewport)?void 0:o.offsetLeft)?r:0))/l,p=(s.top+(d&&null!=(i=null==(a=u.visualViewport)?void 0:a.offsetTop)?i:0))/c,m=s.width/l,h=s.height/c;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function aH(e){return(t=e,(t instanceof UV(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function sH(e){return XV(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lH(e){return iH(aH(e)).left+sH(e).scrollLeft}function cH(e,t,n){const r=YV(t),o=aH(t),i=iH(e,r&&function(e){const t=iH(e);return oH(t.width)!==e.offsetWidth||oH(t.height)!==e.offsetHeight}(t),"fixed"===n);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&"fixed"!==n)if(("body"!==KV(t)||JV(o))&&(a=sH(t)),YV(t)){const e=iH(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=lH(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function uH(e){return"html"===KV(e)?e:e.assignedSlot||e.parentNode||(ZV(e)?e.host:null)||aH(e)}function dH(e){return YV(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function fH(e){const t=UV(e);let n=dH(e);for(;n&&QV(n)&&"static"===getComputedStyle(n).position;)n=dH(n);return n&&("html"===KV(n)||"body"===KV(n)&&"static"===getComputedStyle(n).position&&!eH(n))?t:n||function(e){let t=uH(e);for(ZV(t)&&(t=t.host);YV(t)&&!["html","body"].includes(KV(t));){if(eH(t))return t;t=t.parentNode}return null}(e)||t}function pH(e){if(YV(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=iH(e);return{width:t.width,height:t.height}}function mH(e){const t=uH(e);return["html","body","#document"].includes(KV(t))?e.ownerDocument.body:YV(t)&&JV(t)?t:mH(t)}function hH(e,t){var n;void 0===t&&(t=[]);const r=mH(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=UV(r),a=o?[i].concat(i.visualViewport||[],JV(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(hH(a))}function gH(e,t,n){return"viewport"===t?_V(function(e,t){const n=UV(e),r=aH(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=tH();(e||!e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n)):XV(t)?function(e,t){const n=iH(e,!1,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft;return{top:r,left:o,x:o,y:r,right:o+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):_V(function(e){var t;const n=aH(e),r=sH(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=rH(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=rH(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+lH(e);const l=-r.scrollTop;return"rtl"===GV(o||n).direction&&(s+=rH(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(aH(e)))}function vH(e){const t=hH(e),n=["absolute","fixed"].includes(GV(e).position)&&YV(e)?fH(e):e;return XV(n)?t.filter((e=>XV(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ZV(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==KV(e))):[]}const bH={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?vH(t):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=gH(t,n,o);return e.top=rH(r.top,e.top),e.right=nH(r.right,e.right),e.bottom=nH(r.bottom,e.bottom),e.left=rH(r.left,e.left),e}),gH(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=YV(n),i=aH(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&"fixed"!==r)&&(("body"!==KV(n)||JV(i))&&(a=sH(n)),YV(n))){const e=iH(n,!0);s.x=e.x+n.clientLeft,s.y=e.y+n.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:XV,getDimensions:pH,getOffsetParent:fH,getDocumentElement:aH,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:cH(t,fH(n),r),floating:{...pH(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===GV(e).direction};function yH(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,c=i&&!s,u=l||c?[...XV(e)?hH(e):[],...hH(t)]:[];u.forEach((e=>{l&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let d,f=null;if(a){let r=!0;f=new ResizeObserver((()=>{r||n(),r=!1})),XV(e)&&!s&&f.observe(e),f.observe(t)}let p=s?iH(e):null;return s&&function t(){const r=iH(e);!p||r.x===p.x&&r.y===p.y&&r.width===p.width&&r.height===p.height||n(),p=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{l&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=f)||e.disconnect(),f=null,s&&cancelAnimationFrame(d)}}const wH=(e,t,n)=>(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:u}=xV(l,r,s),d=r,f={},p=0;for(let n=0;n<i.length;n++){const{name:m,fn:h}=i[n],{x:g,y:v,data:b,reset:y}=await h({x:c,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:f,rects:l,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,u=null!=v?v:u,f={...f,[m]:{...f[m],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(d=y.placement),y.rects&&(l=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:c,y:u}=xV(l,d,s))),n=-1)}return{x:c,y:u,placement:d,strategy:o,middlewareData:f}})(e,t,{platform:bH,...n});var xH="undefined"!=typeof document?v.useLayoutEffect:v.useEffect;function EH(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;0!=r--;)if(!EH(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!EH(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function _H(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:o}=void 0===e?{}:e;const i=v.useRef(null),a=v.useRef(null),s=function(e){const t=v.useRef(e);return xH((()=>{t.current=e})),t}(o),l=v.useRef(null),[c,u]=v.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,f]=v.useState(t);EH(null==d?void 0:d.map((e=>{let{options:t}=e;return t})),null==t?void 0:t.map((e=>{let{options:t}=e;return t})))||f(t);const p=v.useCallback((()=>{i.current&&a.current&&wH(i.current,a.current,{middleware:d,placement:n,strategy:r}).then((e=>{m.current&&It.flushSync((()=>{u(e)}))}))}),[d,n,r]);xH((()=>{m.current&&p()}),[p]);const m=v.useRef(!1);xH((()=>(m.current=!0,()=>{m.current=!1})),[]);const h=v.useCallback((()=>{if("function"==typeof l.current&&(l.current(),l.current=null),i.current&&a.current)if(s.current){const e=s.current(i.current,a.current,p);l.current=e}else p()}),[p,s]),g=v.useCallback((e=>{i.current=e,h()}),[h]),b=v.useCallback((e=>{a.current=e,h()}),[h]),y=v.useMemo((()=>({reference:i,floating:a})),[]);return v.useMemo((()=>({...c,update:p,refs:y,reference:g,floating:b})),[c,p,y,g,b])}const CH=e=>{const{element:t,padding:n}=e;return{name:"arrow",options:e,fn(e){return r=t,Object.prototype.hasOwnProperty.call(r,"current")?null!=t.current?RV({element:t.current,padding:n}).fn(e):{}:t?RV({element:t,padding:n}).fn(e):{};var r}}};const SH="Popper",[kH,TH]=Nj(SH),[RH,PH]=kH(SH),MH=e=>{const{__scopePopper:t,children:n}=e,[r,o]=(0,v.useState)(null);return(0,v.createElement)(RH,{scope:t,anchor:r,onAnchorChange:o},n)},IH="PopperAnchor",NH=(0,v.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=PH(IH,n),a=(0,v.useRef)(null),s=Ij(t,a);return(0,v.useEffect)((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:(0,v.createElement)(Vj.div,od({},o,{ref:s}))})),OH="PopperContent",[DH,AH]=kH(OH),[LH,zH]=kH(OH,{hasParent:!1,positionUpdateFns:new Set}),FH=(0,v.forwardRef)(((e,t)=>{var n,r,o,i,a,s,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:m=0,arrowPadding:h=0,collisionBoundary:g=[],collisionPadding:b=0,sticky:y="partial",hideWhenDetached:w=!1,avoidCollisions:x=!0,onPlaced:E,..._}=e,C=PH(OH,u),[S,k]=(0,v.useState)(null),T=Ij(t,(e=>k(e))),[R,P]=(0,v.useState)(null),M=function(e){const[t,n]=(0,v.useState)(void 0);return pV((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}(R),I=null!==(n=null==M?void 0:M.width)&&void 0!==n?n:0,N=null!==(r=null==M?void 0:M.height)&&void 0!==r?r:0,O=d+("center"!==p?"-"+p:""),D="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},A=Array.isArray(g)?g:[g],L=A.length>0,z={padding:D,boundary:A.filter(jH),altBoundary:L},{reference:F,floating:B,strategy:j,x:V,y:H,placement:$,middlewareData:W,update:U}=_H({strategy:"fixed",placement:O,whileElementsMounted:yH,middleware:[VH(),BV({mainAxis:f+N,alignmentAxis:m}),x?VV({mainAxis:!0,crossAxis:!1,limiter:"partial"===y?HV():void 0,...z}):void 0,R?CH({element:R,padding:h}):void 0,x?AV({...z}):void 0,$V({...z,apply:({elements:e,availableWidth:t,availableHeight:n})=>{e.floating.style.setProperty("--radix-popper-available-width",`${t}px`),e.floating.style.setProperty("--radix-popper-available-height",`${n}px`)}}),HH({arrowWidth:I,arrowHeight:N}),w?FV({strategy:"referenceHidden"}):void 0].filter(BH)});pV((()=>{F(C.anchor)}),[F,C.anchor]);const G=null!==V&&null!==H,[K,q]=$H($),Y=Dj(E);pV((()=>{G&&(null==Y||Y())}),[G,Y]);const X=null===(o=W.arrow)||void 0===o?void 0:o.x,Z=null===(i=W.arrow)||void 0===i?void 0:i.y,J=0!==(null===(a=W.arrow)||void 0===a?void 0:a.centerOffset),[Q,ee]=(0,v.useState)();pV((()=>{S&&ee(window.getComputedStyle(S).zIndex)}),[S]);const{hasParent:te,positionUpdateFns:ne}=zH(OH,u),re=!te;(0,v.useLayoutEffect)((()=>{if(!re)return ne.add(U),()=>{ne.delete(U)}}),[re,ne,U]),pV((()=>{re&&G&&Array.from(ne).reverse().forEach((e=>requestAnimationFrame(e)))}),[re,G,ne]);const oe={"data-side":K,"data-align":q,..._,ref:T,style:{..._.style,animation:G?void 0:"none",opacity:null!==(s=W.hide)&&void 0!==s&&s.referenceHidden?0:void 0}};return(0,v.createElement)("div",{ref:B,"data-radix-popper-content-wrapper":"",style:{position:j,left:0,top:0,transform:G?`translate3d(${Math.round(V)}px, ${Math.round(H)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(l=W.transformOrigin)||void 0===l?void 0:l.x,null===(c=W.transformOrigin)||void 0===c?void 0:c.y].join(" ")},dir:e.dir},(0,v.createElement)(DH,{scope:u,placedSide:K,onArrowChange:P,arrowX:X,arrowY:Z,shouldHideArrow:J},re?(0,v.createElement)(LH,{scope:u,hasParent:!0,positionUpdateFns:ne},(0,v.createElement)(Vj.div,oe)):(0,v.createElement)(Vj.div,oe)))}));function BH(e){return void 0!==e}function jH(e){return null!==e}const VH=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:n}=e,{width:r,height:o}=t.reference;return n.floating.style.setProperty("--radix-popper-anchor-width",`${r}px`),n.floating.style.setProperty("--radix-popper-anchor-height",`${o}px`),{}}}),HH=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:c}=t,u=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),d=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[p,m]=$H(s),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!==(r=null===(o=c.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,v=(null!==(i=null===(a=c.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let b="",y="";return"bottom"===p?(b=u?h:`${g}px`,y=-f+"px"):"top"===p?(b=u?h:`${g}px`,y=`${l.floating.height+f}px`):"right"===p?(b=-f+"px",y=u?h:`${v}px`):"left"===p&&(b=`${l.floating.width+f}px`,y=u?h:`${v}px`),{data:{x:b,y:y}}}});function $H(e){const[t,n="center"]=e.split("-");return[t,n]}const WH=MH,UH=NH,GH=FH,KH=(0,v.forwardRef)(((e,t)=>{var n;const{container:r=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?Nt().createPortal((0,v.createElement)(Vj.div,od({},o,{ref:t})),r):null}));const qH=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=(0,v.useState)(),r=(0,v.useRef)({}),o=(0,v.useRef)(e),i=(0,v.useRef)("none"),a=e?"mounted":"unmounted",[s,l]=function(e,t){return(0,v.useReducer)(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,v.useEffect)((()=>{const e=YH(r.current);i.current="mounted"===s?e:"none"}),[s]),pV((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=YH(t);if(e)l("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))l("UNMOUNT");else{l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,l]),pV((()=>{if(t){const e=e=>{const n=YH(r.current).includes(e.animationName);e.target===t&&n&&(0,It.flushSync)((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=YH(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:(0,v.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):v.Children.only(n),i=Ij(r.ref,o.ref);return"function"==typeof n||r.isPresent?(0,v.cloneElement)(o,{ref:i}):null};function YH(e){return(null==e?void 0:e.animationName)||"none"}qH.displayName="Presence";const XH="rovingFocusGroup.onEntryFocus",ZH={bubbles:!1,cancelable:!0},JH="RovingFocusGroup",[QH,e$,t$]=$j(JH),[n$,r$]=Nj(JH,[t$]),[o$,i$]=n$(JH),a$=(0,v.forwardRef)(((e,t)=>(0,v.createElement)(QH.Provider,{scope:e.__scopeRovingFocusGroup},(0,v.createElement)(QH.Slot,{scope:e.__scopeRovingFocusGroup},(0,v.createElement)(s$,od({},e,{ref:t})))))),s$=(0,v.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=(0,v.useRef)(null),f=Ij(t,d),p=Uj(i),[m=null,h]=Aj({prop:a,defaultProp:s,onChange:l}),[g,b]=(0,v.useState)(!1),y=Dj(c),w=e$(n),x=(0,v.useRef)(!1),[E,_]=(0,v.useState)(0);return(0,v.useEffect)((()=>{const e=d.current;if(e)return e.addEventListener(XH,y),()=>e.removeEventListener(XH,y)}),[y]),(0,v.createElement)(o$,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:m,onItemFocus:(0,v.useCallback)((e=>h(e)),[h]),onItemShiftTab:(0,v.useCallback)((()=>b(!0)),[]),onFocusableItemAdd:(0,v.useCallback)((()=>_((e=>e+1))),[]),onFocusableItemRemove:(0,v.useCallback)((()=>_((e=>e-1))),[])},(0,v.createElement)(Vj.div,od({tabIndex:g||0===E?-1:0,"data-orientation":r},u,{ref:f,style:{outline:"none",...e.style},onMouseDown:Pj(e.onMouseDown,(()=>{x.current=!0})),onFocus:Pj(e.onFocus,(e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!g){const t=new CustomEvent(XH,ZH);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter((e=>e.focusable)),t=e.find((e=>e.active)),n=e.find((e=>e.id===m)),r=[t,n,...e].filter(Boolean).map((e=>e.ref.current));d$(r)}}x.current=!1})),onBlur:Pj(e.onBlur,(()=>b(!1)))})))})),l$="RovingFocusGroupItem",c$=(0,v.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=gV(),l=i||s,c=i$(l$,n),u=c.currentTabStopId===l,d=e$(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=c;return(0,v.useEffect)((()=>{if(r)return f(),()=>p()}),[r,f,p]),(0,v.createElement)(QH.ItemSlot,{scope:n,id:l,focusable:r,active:o},(0,v.createElement)(Vj.span,od({tabIndex:u?0:-1,"data-orientation":c.orientation},a,{ref:t,onMouseDown:Pj(e.onMouseDown,(e=>{r?c.onItemFocus(l):e.preventDefault()})),onFocus:Pj(e.onFocus,(()=>c.onItemFocus(l))),onKeyDown:Pj(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:u$[r]}(e,c.orientation,c.dir);if(void 0!==t){e.preventDefault();const o=d().filter((e=>e.focusable));let i=o.map((e=>e.ref.current));if("last"===t)i.reverse();else if("prev"===t||"next"===t){"prev"===t&&i.reverse();const o=i.indexOf(e.currentTarget);i=c.loop?(r=o+1,(n=i).map(((e,t)=>n[(r+t)%n.length]))):i.slice(o+1)}setTimeout((()=>d$(i)))}var n,r}))})))})),u$={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function d$(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const f$=a$,p$=c$;var m$=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},h$=new WeakMap,g$=new WeakMap,v$={},b$=0,y$=function(e){return e&&(e.host||y$(e.parentNode))},w$=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=y$(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);v$[n]||(v$[n]=new WeakMap);var i=v$[n],a=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))u(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(h$.get(e)||0)+1,c=(i.get(e)||0)+1;h$.set(e,l),i.set(e,c),a.push(e),1===l&&o&&g$.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return u(t),s.clear(),b$++,function(){a.forEach((function(e){var t=h$.get(e)-1,o=i.get(e)-1;h$.set(e,t),i.set(e,o),t||(g$.has(e)||e.removeAttribute(r),g$.delete(e)),o||e.removeAttribute(n)})),--b$||(h$=new WeakMap,h$=new WeakMap,g$=new WeakMap,v$={})}},x$=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||m$(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),w$(r,o,n,"aria-hidden")):function(){return null}},E$="right-scroll-bar-position",_$="width-before-scroll-bar";function C$(e,t){return function(e,t){var n=(0,v.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}function S$(e){return e}function k$(e,t){void 0===t&&(t=S$);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}var T$=function(e){void 0===e&&(e={});var t=k$(null);return t.options=dc({async:!0,ssr:!1},e),t}(),R$=function(){},P$=v.forwardRef((function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:R$,onWheelCapture:R$,onTouchMoveCapture:R$}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,b=void 0===g?"div":g,y=fc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=f,x=C$([n,t]),E=dc(dc({},y),o);return v.createElement(v.Fragment,null,u&&v.createElement(w,{sideCar:T$,removeScrollBar:c,shards:d,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n}),a?v.cloneElement(v.Children.only(s),dc(dc({},E),{ref:x})):v.createElement(b,dc({},E,{className:l,ref:x}),s))}));P$.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},P$.classNames={fullWidth:_$,zeroRight:E$};var M$,I$=function(e){var t=e.sideCar,n=fc(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,dc({},n))};I$.isSideCarExport=!0;function N$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=M$||o.nc;return t&&e.setAttribute("nonce",t),e}var O$=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=N$())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},D$=function(){var e=function(){var e=O$();return function(t,n){v.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},A$={left:0,top:0,right:0,gap:0},L$=function(e){return parseInt(e||"",10)||0},z$=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return A$;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[L$(n),L$(r),L$(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},F$=D$(),B$=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(E$," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(_$," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(E$," .").concat(E$," {\n right: 0 ").concat(r,";\n }\n \n .").concat(_$," .").concat(_$," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},j$=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=v.useMemo((function(){return z$(o)}),[o]);return v.createElement(F$,{styles:B$(i,!t,o,n?"":"!important")})},V$=!1;if("undefined"!=typeof window)try{var H$=Object.defineProperty({},"passive",{get:function(){return V$=!0,!0}});window.addEventListener("test",H$,H$),window.removeEventListener("test",H$,H$)}catch(e){V$=!1}var $$=!!V$&&{passive:!1},W$=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},U$=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),G$(e,n)){var r=K$(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},G$=function(e,t){return"v"===e?function(e){return W$(e,"overflowY")}(t):function(e){return W$(e,"overflowX")}(t)},K$=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},q$=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Y$=function(e){return[e.deltaX,e.deltaY]},X$=function(e){return e&&"current"in e?e.current:e},Z$=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},J$=0,Q$=[];var eW,tW=(eW=function(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),o=v.useState(J$++)[0],i=v.useState((function(){return D$()}))[0],a=v.useRef(e);v.useEffect((function(){a.current=e}),[e]),v.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=pc([e.lockRef.current],(e.shards||[]).map(X$),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=v.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=q$(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=U$(d,u);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=U$(d,u)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),c=!1,u=a>0,d=0,f=0;do{var p=K$(e,s),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&G$(e,s)&&(d+=h,f+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&0===d||!o&&a>d)||!u&&(o&&0===f||!o&&-a>f))&&(c=!0),c}(p,t,e,"h"===p?l:c,!0)}),[]),l=v.useCallback((function(e){var n=e;if(Q$.length&&Q$[Q$.length-1]===i){var r="deltaY"in n?Y$(n):q$(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(a.current.shards||[]).map(X$).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=v.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),u=v.useCallback((function(e){n.current=q$(e),r.current=void 0}),[]),d=v.useCallback((function(t){c(t.type,Y$(t),t.target,s(t,e.lockRef.current))}),[]),f=v.useCallback((function(t){c(t.type,q$(t),t.target,s(t,e.lockRef.current))}),[]);v.useEffect((function(){return Q$.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,$$),document.addEventListener("touchmove",l,$$),document.addEventListener("touchstart",u,$$),function(){Q$=Q$.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,$$),document.removeEventListener("touchmove",l,$$),document.removeEventListener("touchstart",u,$$)}}),[]);var p=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(i,{styles:Z$(o)}):null,p?v.createElement(j$,{gapMode:"margin"}):null)},T$.useMedium(eW),I$),nW=v.forwardRef((function(e,t){return v.createElement(P$,dc({},e,{ref:t,sideCar:tW}))}));nW.classNames=P$.classNames;var rW=nW;const oW=["Enter"," "],iW=["ArrowUp","PageDown","End"],aW=["ArrowDown","PageUp","Home",...iW],sW={ltr:[...oW,"ArrowRight"],rtl:[...oW,"ArrowLeft"]},lW={ltr:["ArrowLeft"],rtl:["ArrowRight"]},cW="Menu",[uW,dW,fW]=$j(cW),[pW,mW]=Nj(cW,[fW,TH,r$]),hW=TH(),gW=r$(),[vW,bW]=pW(cW),[yW,wW]=pW(cW),xW=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:a=!0}=e,s=hW(t),[l,c]=(0,v.useState)(null),u=(0,v.useRef)(!1),d=Dj(i),f=Uj(o);return(0,v.useEffect)((()=>{const e=()=>{u.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>u.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,v.createElement)(WH,s,(0,v.createElement)(vW,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c},(0,v.createElement)(yW,{scope:t,onClose:(0,v.useCallback)((()=>d(!1)),[d]),isUsingKeyboardRef:u,dir:f,modal:a},r)))},EW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e,o=hW(n);return(0,v.createElement)(UH,od({},o,r,{ref:t}))})),_W="MenuPortal",[CW,SW]=pW(_W,{forceMount:void 0}),kW=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=bW(_W,t);return(0,v.createElement)(CW,{scope:t,forceMount:n},(0,v.createElement)(qH,{present:n||i.open},(0,v.createElement)(KH,{asChild:!0,container:o},r)))},TW="MenuContent",[RW,PW]=pW(TW),MW=(0,v.forwardRef)(((e,t)=>{const n=SW(TW,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=bW(TW,e.__scopeMenu),a=wW(TW,e.__scopeMenu);return(0,v.createElement)(uW.Provider,{scope:e.__scopeMenu},(0,v.createElement)(qH,{present:r||i.open},(0,v.createElement)(uW.Slot,{scope:e.__scopeMenu},a.modal?(0,v.createElement)(IW,od({},o,{ref:t})):(0,v.createElement)(NW,od({},o,{ref:t})))))})),IW=(0,v.forwardRef)(((e,t)=>{const n=bW(TW,e.__scopeMenu),r=(0,v.useRef)(null),o=Ij(t,r);return(0,v.useEffect)((()=>{const e=r.current;if(e)return x$(e)}),[]),(0,v.createElement)(OW,od({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Pj(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),NW=(0,v.forwardRef)(((e,t)=>{const n=bW(TW,e.__scopeMenu);return(0,v.createElement)(OW,od({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),OW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=bW(TW,n),b=wW(TW,n),y=hW(n),w=gW(n),x=dW(n),[E,_]=(0,v.useState)(null),C=(0,v.useRef)(null),S=Ij(t,C,g.onContentChange),k=(0,v.useRef)(0),T=(0,v.useRef)(""),R=(0,v.useRef)(0),P=(0,v.useRef)(null),M=(0,v.useRef)("right"),I=(0,v.useRef)(0),N=m?rW:v.Fragment,O=m?{as:Lj,allowPinchZoom:!0}:void 0,D=e=>{var t,n;const r=T.current+e,o=x().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,s=o.map((e=>e.textValue)),l=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0])),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(s=e,l=Math.max(i,0),s.map(((e,t)=>s[(l+t)%s.length])));var s,l;const c=1===o.length;c&&(a=a.filter((e=>e!==n)));const u=a.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return u!==n?u:void 0}(s,r,a),c=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;!function e(t){T.current=t,window.clearTimeout(k.current),""!==t&&(k.current=window.setTimeout((()=>e("")),1e3))}(r),c&&setTimeout((()=>c.focus()))};(0,v.useEffect)((()=>()=>window.clearTimeout(k.current)),[]),tV();const A=(0,v.useCallback)((e=>{var t,n;return M.current===(null===(t=P.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,l=t[i].x,c=t[i].y;s>r!=c>r&&n<(l-a)*(r-s)/(c-s)+a&&(o=!o)}return o}(n,t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)}),[]);return(0,v.createElement)(RW,{scope:n,searchRef:T,onItemEnter:(0,v.useCallback)((e=>{A(e)&&e.preventDefault()}),[A]),onItemLeave:(0,v.useCallback)((e=>{var t;A(e)||(null===(t=C.current)||void 0===t||t.focus(),_(null))}),[A]),onTriggerLeave:(0,v.useCallback)((e=>{A(e)&&e.preventDefault()}),[A]),pointerGraceTimerRef:R,onPointerGraceIntentChange:(0,v.useCallback)((e=>{P.current=e}),[])},(0,v.createElement)(N,O,(0,v.createElement)(aV,{asChild:!0,trapped:o,onMountAutoFocus:Pj(i,(e=>{var t;e.preventDefault(),null===(t=C.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},(0,v.createElement)(Zj,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p},(0,v.createElement)(f$,od({asChild:!0},w,{dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:_,onEntryFocus:Pj(l,(e=>{b.isUsingKeyboardRef.current||e.preventDefault()}))}),(0,v.createElement)(GH,od({role:"menu","aria-orientation":"vertical","data-state":aU(g.open),"data-radix-menu-content":"",dir:b.dir},y,h,{ref:S,style:{outline:"none",...h.style},onKeyDown:Pj(h.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&D(e.key));const o=C.current;if(e.target!==o)return;if(!aW.includes(e.key))return;e.preventDefault();const i=x().filter((e=>!e.disabled)),a=i.map((e=>e.ref.current));iW.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:Pj(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),T.current="")})),onPointerMove:Pj(e.onPointerMove,cU((e=>{const t=e.target,n=I.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>I.current?"right":"left";M.current=t,I.current=e.clientX}})))})))))))})),DW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Vj.div,od({role:"group"},r,{ref:t}))})),AW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Vj.div,od({},r,{ref:t}))})),LW="MenuItem",zW="menu.itemSelect",FW=(0,v.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=(0,v.useRef)(null),a=wW(LW,e.__scopeMenu),s=PW(LW,e.__scopeMenu),l=Ij(t,i),c=(0,v.useRef)(!1);return(0,v.createElement)(BW,od({},o,{ref:l,disabled:n,onClick:Pj(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(zW,{bubbles:!0,cancelable:!0});e.addEventListener(zW,(e=>null==r?void 0:r(e)),{once:!0}),Hj(e,t),t.defaultPrevented?c.current=!1:a.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),c.current=!0},onPointerUp:Pj(e.onPointerUp,(e=>{var t;c.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:Pj(e.onKeyDown,(e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||oW.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),BW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=PW(LW,n),s=gW(n),l=(0,v.useRef)(null),c=Ij(t,l),[u,d]=(0,v.useState)(!1),[f,p]=(0,v.useState)("");return(0,v.useEffect)((()=>{const e=l.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),(0,v.createElement)(uW.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:f},(0,v.createElement)(p$,od({asChild:!0},s,{focusable:!r}),(0,v.createElement)(Vj.div,od({role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:Pj(e.onPointerMove,cU((e=>{if(r)a.onItemLeave(e);else if(a.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:Pj(e.onPointerLeave,cU((e=>a.onItemLeave(e)))),onFocus:Pj(e.onFocus,(()=>d(!0))),onBlur:Pj(e.onBlur,(()=>d(!1)))}))))})),jW=(0,v.forwardRef)(((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return(0,v.createElement)(qW,{scope:e.__scopeMenu,checked:n},(0,v.createElement)(FW,od({role:"menuitemcheckbox","aria-checked":sU(n)?"mixed":n},o,{ref:t,"data-state":lU(n),onSelect:Pj(o.onSelect,(()=>null==r?void 0:r(!!sU(n)||!n)),{checkForDefaultPrevented:!1})})))})),VW="MenuRadioGroup",[HW,$W]=pW(VW,{value:void 0,onValueChange:()=>{}}),WW=(0,v.forwardRef)(((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Dj(r);return(0,v.createElement)(HW,{scope:e.__scopeMenu,value:n,onValueChange:i},(0,v.createElement)(DW,od({},o,{ref:t})))})),UW="MenuRadioItem",GW=(0,v.forwardRef)(((e,t)=>{const{value:n,...r}=e,o=$W(UW,e.__scopeMenu),i=n===o.value;return(0,v.createElement)(qW,{scope:e.__scopeMenu,checked:i},(0,v.createElement)(FW,od({role:"menuitemradio","aria-checked":i},r,{ref:t,"data-state":lU(i),onSelect:Pj(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)}),{checkForDefaultPrevented:!1})})))})),KW="MenuItemIndicator",[qW,YW]=pW(KW,{checked:!1}),XW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=YW(KW,n);return(0,v.createElement)(qH,{present:r||sU(i.checked)||!0===i.checked},(0,v.createElement)(Vj.span,od({},o,{ref:t,"data-state":lU(i.checked)})))})),ZW=(0,v.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,v.createElement)(Vj.div,od({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),JW="MenuSub",[QW,eU]=pW(JW),tU=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=bW(JW,t),a=hW(t),[s,l]=(0,v.useState)(null),[c,u]=(0,v.useState)(null),d=Dj(o);return(0,v.useEffect)((()=>(!1===i.open&&d(!1),()=>d(!1))),[i.open,d]),(0,v.createElement)(WH,a,(0,v.createElement)(vW,{scope:t,open:r,onOpenChange:d,content:c,onContentChange:u},(0,v.createElement)(QW,{scope:t,contentId:gV(),triggerId:gV(),trigger:s,onTriggerChange:l},n)))},nU="MenuSubTrigger",rU=(0,v.forwardRef)(((e,t)=>{const n=bW(nU,e.__scopeMenu),r=wW(nU,e.__scopeMenu),o=eU(nU,e.__scopeMenu),i=PW(nU,e.__scopeMenu),a=(0,v.useRef)(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=(0,v.useCallback)((()=>{a.current&&window.clearTimeout(a.current),a.current=null}),[]);return(0,v.useEffect)((()=>u),[u]),(0,v.useEffect)((()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}}),[s,l]),(0,v.createElement)(EW,od({asChild:!0},c),(0,v.createElement)(BW,od({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":aU(n.open)},e,{ref:Mj(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Pj(e.onPointerMove,cU((t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(i.onPointerGraceIntentChange(null),a.current=window.setTimeout((()=>{n.onOpenChange(!0),u()}),100))}))),onPointerLeave:Pj(e.onPointerLeave,cU((e=>{var t;u();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var o;const t=null===(o=n.content)||void 0===o?void 0:o.dataset.side,a="right"===t,l=a?-5:5,c=r[a?"left":"right"],u=r[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+l,y:e.clientY},{x:c,y:r.top},{x:u,y:r.top},{x:u,y:r.bottom},{x:c,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:Pj(e.onKeyDown,(t=>{const o=""!==i.searchRef.current;var a;e.disabled||o&&" "===t.key||sW[r.dir].includes(t.key)&&(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())}))})))})),oU="MenuSubContent",iU=(0,v.forwardRef)(((e,t)=>{const n=SW(TW,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=bW(TW,e.__scopeMenu),a=wW(TW,e.__scopeMenu),s=eU(oU,e.__scopeMenu),l=(0,v.useRef)(null),c=Ij(t,l);return(0,v.createElement)(uW.Provider,{scope:e.__scopeMenu},(0,v.createElement)(qH,{present:r||i.open},(0,v.createElement)(uW.Slot,{scope:e.__scopeMenu},(0,v.createElement)(OW,od({id:s.contentId,"aria-labelledby":s.triggerId},o,{ref:c,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Pj(e.onFocusOutside,(e=>{e.target!==s.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:Pj(e.onEscapeKeyDown,(e=>{a.onClose(),e.preventDefault()})),onKeyDown:Pj(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),n=lW[a.dir].includes(e.key);var r;t&&n&&(i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})))))}));function aU(e){return e?"open":"closed"}function sU(e){return"indeterminate"===e}function lU(e){return sU(e)?"indeterminate":e?"checked":"unchecked"}function cU(e){return t=>"mouse"===t.pointerType?e(t):void 0}const uU=xW,dU=EW,fU=kW,pU=MW,mU=DW,hU=AW,gU=FW,vU=jW,bU=WW,yU=GW,wU=XW,xU=ZW,EU=tU,_U=rU,CU=iU,SU="DropdownMenu",[kU,TU]=Nj(SU,[mW]),RU=mW(),[PU,MU]=kU(SU),IU=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=RU(t),c=(0,v.useRef)(null),[u=!1,d]=Aj({prop:o,defaultProp:i,onChange:a});return(0,v.createElement)(PU,{scope:t,triggerId:gV(),triggerRef:c,contentId:gV(),open:u,onOpenChange:d,onOpenToggle:(0,v.useCallback)((()=>d((e=>!e))),[d]),modal:s},(0,v.createElement)(uU,od({},l,{open:u,onOpenChange:d,dir:r,modal:s}),n))},NU="DropdownMenuTrigger",OU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=MU(NU,n),a=RU(n);return(0,v.createElement)(dU,od({asChild:!0},a),(0,v.createElement)(Vj.button,od({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:Mj(t,i.triggerRef),onPointerDown:Pj(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:Pj(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),DU=e=>{const{__scopeDropdownMenu:t,...n}=e,r=RU(t);return(0,v.createElement)(fU,od({},r,n))},AU="DropdownMenuContent",LU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=MU(AU,n),i=RU(n),a=(0,v.useRef)(!1);return(0,v.createElement)(pU,od({id:o.contentId,"aria-labelledby":o.triggerId},i,r,{ref:t,onCloseAutoFocus:Pj(e.onCloseAutoFocus,(e=>{var t;a.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()})),onInteractOutside:Pj(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(a.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),zU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=RU(n);return(0,v.createElement)(mU,od({},o,r,{ref:t}))})),FU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=RU(n);return(0,v.createElement)(hU,od({},o,r,{ref:t}))})),BU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=RU(n);return(0,v.createElement)(gU,od({},o,r,{ref:t}))})),jU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=RU(n);return(0,v.createElement)(vU,od({},o,r,{ref:t}))})),VU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=RU(n);return(0,v.createElement)(bU,od({},o,r,{ref:t}))})),HU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=RU(n);return(0,v.createElement)(yU,od({},o,r,{ref:t}))})),$U=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=RU(n);return(0,v.createElement)(wU,od({},o,r,{ref:t}))})),WU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=RU(n);return(0,v.createElement)(xU,od({},o,r,{ref:t}))})),UU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=RU(n);return(0,v.createElement)(_U,od({},o,r,{ref:t}))})),GU=(0,v.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=RU(n);return(0,v.createElement)(CU,od({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),KU=IU,qU=OU,YU=DU,XU=LU,ZU=zU,JU=FU,QU=BU,eG=jU,tG=VU,nG=HU,rG=$U,oG=WU,iG=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=RU(t),[s=!1,l]=Aj({prop:r,defaultProp:i,onChange:o});return(0,v.createElement)(EU,od({},a,{open:s,onOpenChange:l}),n)},aG=UU,sG=GU;var lG=(0,a.createElement)(r.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,a.createElement)(r.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));const cG="2px",uG="400ms",dG="cubic-bezier( 0.16, 1, 0.3, 1 )",fG=rh(2),pG=rh(7),mG=rh(2),hG=rh(2.5),gG=Bp.ui.borderDisabled,vG=Bp.gray[900],bG=`0 0 0 ${zh.borderWidth} ${gG}, ${zh.popoverShadow}`,yG=`0 0 0 ${zh.borderWidth} ${vG}`,wG=rp({"0%":{opacity:0,transform:`translateY(${cG})`},"100%":{opacity:1,transform:"translateY(0)"}}),xG=rp({"0%":{opacity:0,transform:`translateX(-${cG})`},"100%":{opacity:1,transform:"translateX(0)"}}),EG=rp({"0%":{opacity:0,transform:`translateY(-${cG})`},"100%":{opacity:1,transform:"translateY(0)"}}),_G=rp({"0%":{opacity:0,transform:`translateX(${cG})`},"100%":{opacity:1,transform:"translateX(0)"}}),CG=e=>np("min-width:220px;background-color:",Bp.ui.background,";border-radius:",zh.radiusBlockUi,";padding:",fG,";box-shadow:","toolbar"===e?yG:bG,";animation-duration:",uG,";animation-timing-function:",dG,";will-change:transform,opacity;&[data-side='top']{animation-name:",EG,";}&[data-side='right']{animation-name:",_G,";}&[data-side='bottom']{animation-name:",wG,";}&[data-side='left']{animation-name:",xG,";}@media ( prefers-reduced-motion ){animation-duration:0s;}",""),SG=np("width:",pG,";display:inline-flex;align-items:center;justify-content:center;margin-inline-start:calc( -1 * ",mG," );margin-top:",rh(-2),";margin-bottom:",rh(-2),";",""),kG=np("width:max-content;display:inline-flex;align-items:center;justify-content:center;margin-inline-start:auto;padding-inline-start:",rh(6),";margin-top:",rh(-2),";margin-bottom:",rh(-2),";opacity:0.6;[data-highlighted]>&,[data-state='open']>&,[data-disabled]>&{opacity:1;}",""),TG=fd("span",{target:"e1kdzosf11"})(SG,";"),RG=fd("span",{target:"e1kdzosf10"})(kG,";"),PG=np("all:unset;font-size:",Av("default.fontSize"),";font-family:inherit;font-weight:normal;line-height:20px;color:",Bp.gray[900],";border-radius:",zh.radiusBlockUi,";display:flex;align-items:center;padding:",rh(2)," ",hG," ",rh(2)," ",mG,";position:relative;user-select:none;outline:none;&[data-disabled]{opacity:0.5;pointer-events:none;}&[data-highlighted]{background-color:",Bp.gray[100],";outline:2px solid transparent;}svg{fill:currentColor;}&:not( :has( ",TG," ) ){padding-inline-start:",pG,";}",""),MG=fd(XU,{target:"e1kdzosf9"})((e=>CG(e.variant)),";"),IG=fd(sG,{target:"e1kdzosf8"})((e=>CG(e.variant)),";"),NG=fd(QU,{target:"e1kdzosf7"})(PG,";"),OG=fd(eG,{target:"e1kdzosf6"})(PG,";"),DG=fd(nG,{target:"e1kdzosf5"})(PG,";"),AG=fd(aG,{target:"e1kdzosf4"})(PG," &[data-state='open']{background-color:",Bp.gray[100],";}"),LG=fd(JU,{target:"e1kdzosf3"})("box-sizing:border-box;display:flex;align-items:center;min-height:",rh(8),";padding:",rh(2)," ",hG," ",rh(2)," ",pG,";color:",Bp.gray[700],";font-size:11px;line-height:1.4;font-weight:500;text-transform:uppercase;"),zG=fd(oG,{target:"e1kdzosf2"})("height:",zh.borderWidth,";background-color:",(e=>"toolbar"===e.variant?vG:gG),";margin:",rh(2)," calc( -1 * ",fG," );"),FG=fd(rG,{target:"e1kdzosf1"})({name:"pl708y",styles:"display:inline-flex;align-items:center;justify-content:center"}),BG=fd(Zl,{target:"e1kdzosf0"})(uh({transform:`scaleX(1) translateX(${rh(2)})`},{transform:`scaleX(-1) translateX(${rh(2)})`})(),";"),jG=(0,a.createContext)({variant:void 0,portalContainer:null}),VG=Qu((e=>{const{defaultOpen:t,open:n,onOpenChange:r,modal:o=!0,side:i="bottom",sideOffset:s=0,align:l="center",alignOffset:u=0,children:d,trigger:f,variant:p}=Zu(e,"DropdownMenu"),m=ef(Ff),h=m.ref?.current,g=(0,a.useMemo)((()=>({variant:p,portalContainer:h})),[p,h]);return(0,a.createElement)(KU,{defaultOpen:t,open:n,onOpenChange:r,modal:o,dir:(0,c.isRTL)()?"rtl":"ltr"},(0,a.createElement)(qU,{asChild:!0},f),(0,a.createElement)(YU,{container:h},(0,a.createElement)(MG,{side:i,align:l,sideOffset:s,alignOffset:u,loop:!0,variant:p},(0,a.createElement)(jG.Provider,{value:g},d))))}),"DropdownMenu"),HG=(0,a.forwardRef)((({children:e,prefix:t,suffix:n,...r},o)=>(0,a.createElement)(NG,{...r,ref:o},t&&(0,a.createElement)(TG,null,t),e,n&&(0,a.createElement)(RG,null,n)))),$G=(0,a.createElement)(r.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)(r.Circle,{cx:12,cy:12,r:3,fill:"currentColor"})),{lock:WG,unlock:UG}=(0,Rj.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/components"),GG={};WG(GG,{CustomSelectControl:kP,__experimentalPopoverLegacyPositionToPlacement:Nf,createPrivateSlotFill:e=>{const t=Symbol(e);return{privateKey:t,...Mf(t)}},ComponentsContext:ic,DropdownMenuV2:VG,DropdownMenuCheckboxItemV2:({children:e,checked:t=!1,suffix:n,...r})=>(0,a.createElement)(OG,{...r,checked:t},(0,a.createElement)(TG,null,(0,a.createElement)(FG,null,("indeterminate"===t||!0===t)&&(0,a.createElement)(Zl,{icon:"indeterminate"===t?Ub:i_,size:24}))),e,n&&(0,a.createElement)(RG,null,n)),DropdownMenuGroupV2:e=>(0,a.createElement)(ZU,{...e}),DropdownMenuItemV2:HG,DropdownMenuLabelV2:e=>(0,a.createElement)(LG,{...e}),DropdownMenuRadioGroupV2:e=>(0,a.createElement)(tG,{...e}),DropdownMenuRadioItemV2:({children:e,suffix:t,...n})=>(0,a.createElement)(DG,{...n},(0,a.createElement)(TG,null,(0,a.createElement)(FG,null,(0,a.createElement)(Zl,{icon:$G,size:22}))),e,t&&(0,a.createElement)(RG,null,t)),DropdownMenuSeparatorV2:e=>{const{variant:t}=(0,a.useContext)(jG);return(0,a.createElement)(zG,{...e,variant:t})},DropdownSubMenuV2:({defaultOpen:e,open:t,onOpenChange:n,disabled:r,textValue:o,children:i,trigger:s})=>{const{variant:l,portalContainer:c}=(0,a.useContext)(jG);return(0,a.createElement)(iG,{defaultOpen:e,open:t,onOpenChange:n},(0,a.createElement)(AG,{disabled:r,textValue:o},s),(0,a.createElement)(YU,{container:c},(0,a.createElement)(IG,{loop:!0,sideOffset:16,alignOffset:-8,variant:l},i)))},DropdownSubMenuTriggerV2:({prefix:e,suffix:t=(0,a.createElement)(BG,{icon:lG,size:24}),children:n})=>(0,a.createElement)(a.Fragment,null,e&&(0,a.createElement)(TG,null,e),n,t&&(0,a.createElement)(RG,null,t))})}(),(window.wp=window.wp||{}).components=i}();
\ No newline at end of file
});
function updateAttributes(attributes) {
- // Only attempt to update attributes, if attributes is an object.
- if (!attributes || Array.isArray(attributes) || typeof attributes !== 'object') {
- return attributes;
- }
-
attributes = { ...attributes
};
/*! This file is auto-generated */
-!function(){"use strict";var e={2167:function(e){function t(e){return t="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},t(e)}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)}}function r(e,t){var n=e._map,r=e._arrayTreeMap,i=e._objectTreeMap;if(n.has(t))return n.get(t);for(var s=Object.keys(t).sort(),o=Array.isArray(t)?r:i,a=0;a<s.length;a++){var c=s[a];if(void 0===(o=o.get(c)))return;var u=t[c];if(void 0===(o=o.get(u)))return}var l=o.get("_ekm_value");return l?(n.delete(l[0]),l[0]=t,o.set("_ekm_value",l),n.set(t,l),l):void 0}var i=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var n=[];t.forEach((function(e,t){n.push([t,e])})),t=n}if(null!=t)for(var r=0;r<t.length;r++)this.set(t[r][0],t[r][1])}var i,s,o;return i=e,s=[{key:"set",value:function(n,r){if(null===n||"object"!==t(n))return this._map.set(n,r),this;for(var i=Object.keys(n).sort(),s=[n,r],o=Array.isArray(n)?this._arrayTreeMap:this._objectTreeMap,a=0;a<i.length;a++){var c=i[a];o.has(c)||o.set(c,new e),o=o.get(c);var u=n[c];o.has(u)||o.set(u,new e),o=o.get(u)}var l=o.get("_ekm_value");return l&&this._map.delete(l[0]),o.set("_ekm_value",s),this._map.set(n,s),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var n=r(this,e);return n?n[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==r(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(i,s){null!==s&&"object"===t(s)&&(i=i[1]),e.call(r,i,s,n)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],s&&n(i.prototype,s),o&&n(i,o),e}();e.exports=i},5619:function(e){e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,s;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,s[i]))return!1;for(i=r;0!=i--;){var o=s[i];if(!e(t[o],n[o]))return!1}return!0}return t!=t&&n!=n}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){n.r(r),n.d(r,{EntityProvider:function(){return kn},__experimentalFetchLinkSuggestions:function(){return An},__experimentalFetchUrlData:function(){return xn},__experimentalUseEntityRecord:function(){return Dn},__experimentalUseEntityRecords:function(){return qn},__experimentalUseResourcePermissions:function(){return Fn},store:function(){return Kn},useEntityBlockEditor:function(){return In},useEntityId:function(){return Tn},useEntityProp:function(){return Sn},useEntityRecord:function(){return Vn},useEntityRecords:function(){return Gn},useResourcePermissions:function(){return Bn}});var e={};n.r(e),n.d(e,{__experimentalBatch:function(){return ue},__experimentalReceiveCurrentGlobalStylesId:function(){return Z},__experimentalReceiveThemeBaseGlobalStyles:function(){return J},__experimentalReceiveThemeGlobalStyleVariations:function(){return X},__experimentalSaveSpecifiedEntityEdits:function(){return de},__unstableCreateUndoLevel:function(){return ae},addEntities:function(){return z},deleteEntityRecord:function(){return re},editEntityRecord:function(){return ie},receiveAutosaves:function(){return ye},receiveCurrentTheme:function(){return W},receiveCurrentUser:function(){return K},receiveEmbedPreview:function(){return ne},receiveEntityRecords:function(){return H},receiveNavigationFallbackId:function(){return Ee},receiveThemeGlobalStyleRevisions:function(){return te},receiveThemeSupports:function(){return ee},receiveUploadPermissions:function(){return fe},receiveUserPermission:function(){return pe},receiveUserQuery:function(){return Y},redo:function(){return oe},saveEditedEntityRecord:function(){return le},saveEntityRecord:function(){return ce},undo:function(){return se}});var t={};n.r(t),n.d(t,{__experimentalGetCurrentGlobalStylesId:function(){return _t},__experimentalGetCurrentThemeBaseGlobalStyles:function(){return Ct},__experimentalGetCurrentThemeGlobalStylesVariations:function(){return xt},__experimentalGetDirtyEntityRecords:function(){return nt},__experimentalGetEntitiesBeingSaved:function(){return rt},__experimentalGetEntityRecordNoResolver:function(){return Je},__experimentalGetTemplateForLink:function(){return At},canUser:function(){return wt},canUserEditEntityRecord:function(){return kt},getAuthors:function(){return $e},getAutosave:function(){return St},getAutosaves:function(){return Tt},getBlockPatternCategories:function(){return Lt},getBlockPatterns:function(){return Ut},getCurrentTheme:function(){return mt},getCurrentThemeGlobalStylesRevisions:function(){return Pt},getCurrentUser:function(){return Qe},getEditedEntityRecord:function(){return at},getEmbedPreview:function(){return bt},getEntitiesByKind:function(){return Ke},getEntitiesConfig:function(){return ze},getEntity:function(){return He},getEntityConfig:function(){return We},getEntityRecord:function(){return Ze},getEntityRecordEdits:function(){return it},getEntityRecordNonTransientEdits:function(){return st},getEntityRecords:function(){return tt},getLastEntityDeleteError:function(){return ft},getLastEntitySaveError:function(){return dt},getRawEntityRecord:function(){return Xe},getRedoEdit:function(){return Et},getReferenceByDistinctEdits:function(){return Ot},getThemeSupports:function(){return gt},getUndoEdit:function(){return yt},getUserQueryResults:function(){return Ye},hasEditsForEntityRecord:function(){return ot},hasEntityRecords:function(){return et},hasFetchedAutosaves:function(){return It},hasRedo:function(){return ht},hasUndo:function(){return vt},isAutosavingEntityRecord:function(){return ct},isDeletingEntityRecord:function(){return lt},isPreviewEmbedFallback:function(){return Rt},isRequestingEmbedPreview:function(){return Fe},isSavingEntityRecord:function(){return ut}});var i={};n.r(i),n.d(i,{__experimentalGetCurrentGlobalStylesId:function(){return Jt},__experimentalGetCurrentThemeBaseGlobalStyles:function(){return Xt},__experimentalGetCurrentThemeGlobalStylesVariations:function(){return en},__experimentalGetTemplateForLink:function(){return Zt},canUser:function(){return Kt},canUserEditEntityRecord:function(){return zt},getAuthors:function(){return Dt},getAutosave:function(){return Wt},getAutosaves:function(){return Ht},getBlockPatternCategories:function(){return rn},getBlockPatterns:function(){return nn},getCurrentTheme:function(){return $t},getCurrentThemeGlobalStylesRevisions:function(){return tn},getCurrentUser:function(){return Mt},getEditedEntityRecord:function(){return Bt},getEmbedPreview:function(){return Yt},getEntityRecord:function(){return Gt},getEntityRecords:function(){return Ft},getNavigationFallbackId:function(){return sn},getRawEntityRecord:function(){return qt},getThemeSupports:function(){return Qt}});var s=window.wp.data,o=n(5619),a=n.n(o),c=window.wp.compose,u=window.wp.isShallowEqual,l=n.n(u);var d=e=>t=>(n,r)=>void 0===n||e(r)?t(n,r):n;var f=e=>t=>(n,r)=>t(n,e(r));var p=e=>t=>(n={},r)=>{const i=r[e];if(void 0===i)return n;const s=t(n[i],r);return s===n[i]?n:{...n,[i]:s}};var y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function E(e){return e.toLowerCase()}var v=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],h=/[^A-Z0-9]+/gi;function m(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?v:n,i=t.stripRegexp,s=void 0===i?h:i,o=t.transform,a=void 0===o?E:o,c=t.delimiter,u=void 0===c?" ":c,l=_(_(e,r,"$1\0$2"),s,"\0"),d=0,f=l.length;"\0"===l.charAt(d);)d++;for(;"\0"===l.charAt(f-1);)f--;return l.slice(d,f).split("\0").map(a).join(u)}function _(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function g(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}function b(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function R(e,t){return void 0===t&&(t={}),m(e,y({delimiter:"",transform:b},t))}var w,k=window.wp.apiFetch,T=n.n(k),S=window.wp.i18n,I=new Uint8Array(16);function O(){if(!w&&!(w="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return w(I)}var A=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var C=function(e){return"string"==typeof e&&A.test(e)},x=[],U=0;U<256;++U)x.push((U+256).toString(16).substr(1));var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(x[e[t+0]]+x[e[t+1]]+x[e[t+2]]+x[e[t+3]]+"-"+x[e[t+4]]+x[e[t+5]]+"-"+x[e[t+6]]+x[e[t+7]]+"-"+x[e[t+8]]+x[e[t+9]]+"-"+x[e[t+10]]+x[e[t+11]]+x[e[t+12]]+x[e[t+13]]+x[e[t+14]]+x[e[t+15]]).toLowerCase();if(!C(n))throw TypeError("Stringified UUID is invalid");return n};var P=function(e,t,n){var r=(e=e||{}).random||(e.rng||O)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return L(r)},j=window.wp.url,N=window.wp.deprecated,V=n.n(N);function D(e,t){return{type:"RECEIVE_ITEMS",items:Array.isArray(e)?e:[e],persistedEdits:t}}let M=null;async function G(e){if(null===M){const e=await T()({path:"/batch/v1",method:"OPTIONS"});M=e.endpoints[0].args.requests.maxItems}const t=[];for(const n of function(e,t){const n=[...e],r=[];for(;n.length;)r.push(n.splice(0,t));return r}(e,M)){const e=await T()({path:"/batch/v1",method:"POST",data:{validation:"require-all-validate",requests:n.map((e=>({path:e.path,body:e.data,method:e.method,headers:e.headers})))}});let r;r=e.failed?e.responses.map((e=>({error:e?.body}))):e.responses.map((e=>{const t={};return e.status>=200&&e.status<300?t.output=e.body:t.error=e.body,t})),t.push(...r)}return t}function q(e=G){let t=0,n=[];const r=new B;return{add(e){const i=++t;r.add(i);const s=e=>new Promise(((t,s)=>{n.push({input:e,resolve:t,reject:s}),r.delete(i)}));return"function"==typeof e?Promise.resolve(e(s)).finally((()=>{r.delete(i)})):s(e)},async run(){let t;r.size&&await new Promise((e=>{const t=r.subscribe((()=>{r.size||(t(),e(void 0))}))}));try{if(t=await e(n.map((({input:e})=>e))),t.length!==n.length)throw new Error("run: Array returned by processor must be same size as input array.")}catch(e){for(const{reject:t}of n)t(e);throw e}let i=!0;return t.forEach(((e,t)=>{const r=n[t];var s;e?.error?(r?.reject(e.error),i=!1):r?.resolve(null!==(s=e?.output)&&void 0!==s?s:e)})),n=[],i}}}class B{constructor(...e){this.set=new Set(...e),this.subscribers=new Set}get size(){return this.set.size}add(e){return this.set.add(e),this.subscribers.forEach((e=>e())),this}delete(e){const t=this.set.delete(e);return this.subscribers.forEach((e=>e())),t}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}}const F="core";function $(e){return e.undo.list[e.undo.list.length-1+e.undo.offset]}function Q(e){return e.undo.list[e.undo.list.length+e.undo.offset]}function Y(e,t){return{type:"RECEIVE_USER_QUERY",users:Array.isArray(t)?t:[t],queryID:e}}function K(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function z(e){return{type:"ADD_ENTITIES",entities:e}}function H(e,t,n,r,i=!1,s){let o;return"postType"===e&&(n=(Array.isArray(n)?n:[n]).map((e=>"auto-draft"===e.status?{...e,title:""}:e))),o=r?function(e,t={},n){return{...D(e,n),query:t}}(n,r,s):D(n,s),{...o,kind:e,name:t,invalidateCache:i}}function W(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function Z(e){return{type:"RECEIVE_CURRENT_GLOBAL_STYLES_ID",id:e}}function J(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLES",stylesheet:e,globalStyles:t}}function X(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS",stylesheet:e,variations:t}}function ee(){return V()("wp.data.dispatch( 'core' ).receiveThemeSupports",{since:"5.9"}),{type:"DO_NOTHING"}}function te(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS",currentId:e,revisions:t}}function ne(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}const re=(e,t,n,r,{__unstableFetch:i=T(),throwOnError:s=!1}={})=>async({dispatch:o})=>{const a=(await o(Re(e))).find((n=>n.kind===e&&n.name===t));let c,u=!1;if(!a||a?.__experimentalNoFetch)return;const l=await o.__unstableAcquireStoreLock(F,["entities","records",e,t,n],{exclusive:!0});try{o({type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:n});let l=!1;try{let s=`${a.baseURL}/${n}`;r&&(s=(0,j.addQueryArgs)(s,r)),u=await i({path:s,method:"DELETE"}),await o(function(e,t,n,r=!1){return{type:"REMOVE_ITEMS",itemIds:Array.isArray(n)?n:[n],kind:e,name:t,invalidateCache:r}}(e,t,n,!0))}catch(e){l=!0,c=e}if(o({type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:n,error:c}),l&&s)throw c;return u}finally{o.__unstableReleaseStoreLock(l)}},ie=(e,t,n,r,i={})=>({select:s,dispatch:o})=>{const c=s.getEntityConfig(e,t);if(!c)throw new Error(`The entity being edited (${e}, ${t}) does not have a loaded config.`);const{mergedEdits:u={}}=c,l=s.getRawEntityRecord(e,t,n),d=s.getEditedEntityRecord(e,t,n),f={kind:e,name:t,recordId:n,edits:Object.keys(r).reduce(((e,t)=>{const n=l[t],i=d[t],s=u[t]?{...i,...r[t]}:r[t];return e[t]=a()(n,s)?void 0:s,e}),{})};o({type:"EDIT_ENTITY_RECORD",...f,meta:{undo:!i.undoIgnore&&{...f,edits:Object.keys(r).reduce(((e,t)=>(e[t]=d[t],e)),{}),isCached:i.isCached}}})},se=()=>({select:e,dispatch:t})=>{const n=e((e=>$(e.root)));n&&t({type:"UNDO",stackedEdits:n})},oe=()=>({select:e,dispatch:t})=>{const n=e((e=>Q(e.root)));n&&t({type:"REDO",stackedEdits:n})};function ae(){return{type:"CREATE_UNDO_LEVEL"}}const ce=(e,t,n,{isAutosave:r=!1,__unstableFetch:i=T(),throwOnError:s=!1}={})=>async({select:o,resolveSelect:a,dispatch:c})=>{const u=(await c(Re(e))).find((n=>n.kind===e&&n.name===t));if(!u||u?.__experimentalNoFetch)return;const l=u.key||ve,d=n[l],f=await c.__unstableAcquireStoreLock(F,["entities","records",e,t,d||P()],{exclusive:!0});try{for(const[r,i]of Object.entries(n))if("function"==typeof i){const s=i(o.getEditedEntityRecord(e,t,d));c.editEntityRecord(e,t,d,{[r]:s},{undoIgnore:!0}),n[r]=s}let l,f;c({type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:d,isAutosave:r});let p=!1;try{const s=`${u.baseURL}${d?"/"+d:""}`,f=o.getRawEntityRecord(e,t,d);if(r){const r=o.getCurrentUser(),u=r?r.id:void 0,d=await a.getAutosave(f.type,f.id,u);let p={...f,...d,...n};if(p=Object.keys(p).reduce(((e,t)=>(["title","excerpt","content","meta"].includes(t)&&(e[t]=p[t]),e)),{status:"auto-draft"===p.status?"draft":p.status}),l=await i({path:`${s}/autosaves`,method:"POST",data:p}),f.id===l.id){let n={...f,...p,...l};n=Object.keys(n).reduce(((e,t)=>(["title","excerpt","content"].includes(t)?e[t]=n[t]:e[t]="status"===t?"auto-draft"===f.status&&"draft"===n.status?n.status:f.status:f[t],e)),{}),c.receiveEntityRecords(e,t,n,void 0,!0)}else c.receiveAutosaves(f.id,l)}else{let r=n;u.__unstablePrePersist&&(r={...r,...u.__unstablePrePersist(f,r)}),l=await i({path:s,method:d?"PUT":"POST",data:r}),c.receiveEntityRecords(e,t,l,void 0,!0,r)}}catch(e){p=!0,f=e}if(c({type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:d,error:f,isAutosave:r}),p&&s)throw f;return l}finally{c.__unstableReleaseStoreLock(f)}},ue=e=>async({dispatch:t})=>{const n=q(),r={saveEntityRecord(e,r,i,s){return n.add((n=>t.saveEntityRecord(e,r,i,{...s,__unstableFetch:n})))},saveEditedEntityRecord(e,r,i,s){return n.add((n=>t.saveEditedEntityRecord(e,r,i,{...s,__unstableFetch:n})))},deleteEntityRecord(e,r,i,s,o){return n.add((n=>t.deleteEntityRecord(e,r,i,s,{...o,__unstableFetch:n})))}},i=e.map((e=>e(r))),[,...s]=await Promise.all([n.run(),...i]);return s},le=(e,t,n,r)=>async({select:i,dispatch:s})=>{if(!i.hasEditsForEntityRecord(e,t,n))return;const o=(await s(Re(e))).find((n=>n.kind===e&&n.name===t));if(!o)return;const a=o.key||ve,c=i.getEntityRecordNonTransientEdits(e,t,n),u={[a]:n,...c};return await s.saveEntityRecord(e,t,u,r)},de=(e,t,n,r,i)=>async({select:s,dispatch:o})=>{if(!s.hasEditsForEntityRecord(e,t,n))return;const a=s.getEntityRecordNonTransientEdits(e,t,n),c={};for(const e in a)r.some((t=>t===e))&&(c[e]=a[e]);return await o.saveEntityRecord(e,t,c,i)};function fe(e){return V()("wp.data.dispatch( 'core' ).receiveUploadPermissions",{since:"5.9",alternative:"receiveUserPermission"}),pe("create/media",e)}function pe(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function ye(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Array.isArray(t)?t:[t]}}function Ee(e){return{type:"RECEIVE_NAVIGATION_FALLBACK_ID",fallbackId:e}}const ve="id",he=["title","excerpt","content"],me=[{label:(0,S.__)("Base"),kind:"root",name:"__unstableBase",baseURL:"/",baseURLParams:{_fields:["description","gmt_offset","home","name","site_icon","site_icon_url","site_logo","timezone_string","url"].join(",")}},{label:(0,S.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",getTitle:e=>{var t;return null!==(t=e?.title)&&void 0!==t?t:(0,S.__)("Site Title")}},{label:(0,S.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types",baseURLParams:{context:"edit"}},{name:"media",kind:"root",baseURL:"/wp/v2/media",baseURLParams:{context:"edit"},plural:"mediaItems",label:(0,S.__)("Media"),rawAttributes:["caption","title","description"]},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",baseURLParams:{context:"edit"},plural:"taxonomies",label:(0,S.__)("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/wp/v2/sidebars",baseURLParams:{context:"edit"},plural:"sidebars",transientEdits:{blocks:!0},label:(0,S.__)("Widget areas")},{name:"widget",kind:"root",baseURL:"/wp/v2/widgets",baseURLParams:{context:"edit"},plural:"widgets",transientEdits:{blocks:!0},label:(0,S.__)("Widgets")},{name:"widgetType",kind:"root",baseURL:"/wp/v2/widget-types",baseURLParams:{context:"edit"},plural:"widgetTypes",label:(0,S.__)("Widget types")},{label:(0,S.__)("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",baseURLParams:{context:"edit"},plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",baseURLParams:{context:"edit"},plural:"comments",label:(0,S.__)("Comment")},{name:"menu",kind:"root",baseURL:"/wp/v2/menus",baseURLParams:{context:"edit"},plural:"menus",label:(0,S.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/wp/v2/menu-items",baseURLParams:{context:"edit"},plural:"menuItems",label:(0,S.__)("Menu Item"),rawAttributes:["title"]},{name:"menuLocation",kind:"root",baseURL:"/wp/v2/menu-locations",baseURLParams:{context:"edit"},plural:"menuLocations",label:(0,S.__)("Menu Location"),key:"name"},{label:(0,S.__)("Global Styles"),name:"globalStyles",kind:"root",baseURL:"/wp/v2/global-styles",baseURLParams:{context:"edit"},plural:"globalStylesVariations",getTitle:e=>e?.title?.rendered||e?.title},{label:(0,S.__)("Themes"),name:"theme",kind:"root",baseURL:"/wp/v2/themes",baseURLParams:{context:"edit"},key:"stylesheet"},{label:(0,S.__)("Plugins"),name:"plugin",kind:"root",baseURL:"/wp/v2/plugins",baseURLParams:{context:"edit"},key:"plugin"}],_e=[{kind:"postType",loadEntities:async function(){const e=await T()({path:"/wp/v2/types?context=view"});return Object.entries(null!=e?e:{}).map((([e,t])=>{var n;const r=["wp_template","wp_template_part"].includes(e);return{kind:"postType",baseURL:`/${null!==(n=t?.rest_namespace)&&void 0!==n?n:"wp/v2"}/${t.rest_base}`,baseURLParams:{context:"edit"},name:e,label:t.name,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:he,getTitle:e=>{var t,n,i;return e?.title?.rendered||e?.title||(r?(n=null!==(t=e.slug)&&void 0!==t?t:"",void 0===i&&(i={}),m(n,y({delimiter:" ",transform:g},i))):String(e.id))},__unstablePrePersist:r?void 0:ge,__unstable_rest_base:t.rest_base}}))}},{kind:"taxonomy",loadEntities:async function(){const e=await T()({path:"/wp/v2/taxonomies?context=view"});return Object.entries(null!=e?e:{}).map((([e,t])=>{var n;return{kind:"taxonomy",baseURL:`/${null!==(n=t?.rest_namespace)&&void 0!==n?n:"wp/v2"}/${t.rest_base}`,baseURLParams:{context:"edit"},name:e,label:t.name}}))}}],ge=(e,t)=>{const n={};return"auto-draft"===e?.status&&(t.status||n.status||(n.status="draft"),t.title&&"Auto Draft"!==t.title||n.title||e?.title&&"Auto Draft"!==e?.title||(n.title="")),n};const be=(e,t,n="get",r=!1)=>{const i=me.find((n=>n.kind===e&&n.name===t)),s="root"===e?"":R(e),o=R(t)+(r?"s":"");return`${n}${s}${r&&"plural"in i&&i?.plural?R(i.plural):o}`},Re=e=>async({select:t,dispatch:n})=>{let r=t.getEntitiesConfig(e);if(r&&0!==r.length)return r;const i=_e.find((t=>t.kind===e));return i?(r=await i.loadEntities(),n(z(r)),r):[]};var we=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var ke=function(e){const t=new WeakMap;return n=>{let r;return t.has(n)?r=t.get(n):(r=e(n),null!==n&&"object"==typeof n&&t.set(n,r)),r}}((function(e){const t={stableKey:"",page:1,perPage:10,fields:null,include:null,context:"default"},n=Object.keys(e).sort();for(let s=0;s<n.length;s++){const o=n[s];let a=e[o];switch(o){case"page":t[o]=Number(a);break;case"per_page":t.perPage=Number(a);break;case"context":t.context=a;break;default:var r,i;if("_fields"===o)t.fields=null!==(r=we(a))&&void 0!==r?r:[],a=t.fields.join();if("include"===o)"number"==typeof a&&(a=a.toString()),t.include=(null!==(i=we(a))&&void 0!==i?i:[]).map(Number),a=t.include.join();t.stableKey+=(t.stableKey?"&":"")+(0,j.addQueryArgs)("",{[o]:a}).slice(1)}}return t}));function Te(e){const{query:t}=e;if(!t)return"default";return ke(t).context}function Se(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.some((t=>Number.isInteger(t)?t===+e:t===e)))))}const Ie=(0,c.compose)([d((e=>"query"in e)),f((e=>e.query?{...e,...ke(e.query)}:e)),p("context"),p("stableKey")])(((e=null,t)=>{const{type:n,page:r,perPage:i,key:s=ve}=t;return"RECEIVE_ITEMS"!==n?e:function(e,t,n,r){var i;if(1===n&&-1===r)return t;const s=(n-1)*r,o=Math.max(null!==(i=e?.length)&&void 0!==i?i:0,s+t.length),a=new Array(o);for(let n=0;n<o;n++){const r=n>=s&&n<s+t.length;a[n]=r?t[n-s]:e?.[n]}return a}(e||[],t.items.map((e=>e[s])),r,i)}));var Oe=(0,s.combineReducers)({items:function(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=Te(t),r=t.key||ve;return{...e,[n]:{...e[n],...t.items.reduce(((t,i)=>{const s=i[r];return t[s]=function(e,t){if(!e)return t;let n=!1;const r={};for(const i in t)a()(e[i],t[i])?r[i]=e[i]:(n=!0,r[i]=t[i]);if(!n)return e;for(const t in e)r.hasOwnProperty(t)||(r[t]=e[t]);return r}(e?.[n]?.[s],i),t}),{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map((([e,n])=>[e,Se(n,t.itemIds)])))}return e},itemIsComplete:function(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=Te(t),{query:r,key:i=ve}=t,s=r?ke(r):{},o=!r||!Array.isArray(s.fields);return{...e,[n]:{...e[n],...t.items.reduce(((t,r)=>{const s=r[i];return t[s]=e?.[n]?.[s]||o,t}),{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map((([e,n])=>[e,Se(n,t.itemIds)])))}return e},queries:(e={},t)=>{switch(t.type){case"RECEIVE_ITEMS":return Ie(e,t);case"REMOVE_ITEMS":const n=t.itemIds.reduce(((e,t)=>(e[t]=!0,e)),{});return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.filter((e=>!n[e]))])))])));default:return e}}});const Ae=e=>(t,n)=>{if("UNDO"===n.type||"REDO"===n.type){const{stackedEdits:r}=n;let i=t;return r.forEach((({kind:t,name:r,recordId:s,property:o,from:a,to:c})=>{i=e(i,{type:"EDIT_ENTITY_RECORD",kind:t,name:r,recordId:s,edits:{[o]:"UNDO"===n.type?a:c}})})),i}return e(t,n)};function Ce(e){return(0,c.compose)([Ae,d((t=>t.name&&t.kind&&t.name===e.name&&t.kind===e.kind)),f((t=>({...t,key:e.key||ve})))])((0,s.combineReducers)({queriedData:Oe,edits:(e={},t)=>{var n;switch(t.type){case"RECEIVE_ITEMS":if("default"!==(null!==(n=t?.query?.context)&&void 0!==n?n:"default"))return e;const r={...e};for(const e of t.items){const n=e[t.key],i=r[n];if(!i)continue;const s=Object.keys(i).reduce(((n,r)=>{var s;return a()(i[r],null!==(s=e[r]?.raw)&&void 0!==s?s:e[r])||t.persistedEdits&&a()(i[r],t.persistedEdits[r])||(n[r]=i[r]),n}),{});Object.keys(s).length?r[n]=s:delete r[n]}return r;case"EDIT_ENTITY_RECORD":const i={...e[t.recordId],...t.edits};return Object.keys(i).forEach((e=>{void 0===i[e]&&delete i[e]})),{...e,[t.recordId]:i}}return e},saving:(e={},t)=>{switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}}}return e},deleting:(e={},t)=>{switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}}}return e}}))}const xe={list:[],offset:0};var Ue=(0,s.combineReducers)({terms:function(e={},t){return"RECEIVE_TERMS"===t.type?{...e,[t.taxonomy]:t.terms}:e},users:function(e={byId:{},queries:{}},t){return"RECEIVE_USER_QUERY"===t.type?{byId:{...e.byId,...t.users.reduce(((e,t)=>({...e,[t.id]:t})),{})},queries:{...e.queries,[t.queryID]:t.users.map((e=>e.id))}}:e},currentTheme:function(e=void 0,t){return"RECEIVE_CURRENT_THEME"===t.type?t.currentTheme.stylesheet:e},currentGlobalStylesId:function(e=void 0,t){return"RECEIVE_CURRENT_GLOBAL_STYLES_ID"===t.type?t.id:e},currentUser:function(e={},t){return"RECEIVE_CURRENT_USER"===t.type?t.currentUser:e},themeGlobalStyleVariations:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS"===t.type?{...e,[t.stylesheet]:t.variations}:e},themeBaseGlobalStyles:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLES"===t.type?{...e,[t.stylesheet]:t.globalStyles}:e},themeGlobalStyleRevisions:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS"===t.type?{...e,[t.currentId]:t.revisions}:e},taxonomies:function(e=[],t){return"RECEIVE_TAXONOMIES"===t.type?t.taxonomies:e},entities:(e={},t)=>{const n=function(e=me,t){return"ADD_ENTITIES"===t.type?[...e,...t.entities]:e}(e.config,t);let r=e.reducer;if(!r||n!==e.config){const e=n.reduce(((e,t)=>{const{kind:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{});r=(0,s.combineReducers)(Object.entries(e).reduce(((e,[t,n])=>{const r=(0,s.combineReducers)(n.reduce(((e,t)=>({...e,[t.name]:Ce(t)})),{}));return e[t]=r,e}),{}))}const i=r(e.records,t);return i===e.records&&n===e.config&&r===e.reducer?e:{reducer:r,records:i,config:n}},undo:function(e=xe,t){const n=e=>({...e,list:e.list.slice(0,e.offset||void 0),offset:0}),r=e=>{if(!e.cache)return e;let t={...e,list:[...e.list]};t=n(t);const r=t.list.pop(),s=e.cache.reduce(i,r);return t.list.push(s),{...t,cache:void 0}},i=(e=[],{kind:t,name:n,recordId:r,property:i,from:s,to:o})=>{const a=e?.findIndex((({kind:e,name:s,recordId:o,property:a})=>e===t&&s===n&&o===r&&a===i)),c=[...e];return-1!==a?c[a]={...c[a],to:o}:c.push({kind:t,name:n,recordId:r,property:i,from:s,to:o}),c};switch(t.type){case"CREATE_UNDO_LEVEL":return r(e);case"UNDO":case"REDO":return{...r(e),offset:e.offset+("UNDO"===t.type?-1:1)};case"EDIT_ENTITY_RECORD":{if(!t.meta.undo)return e;const s=Object.keys(t.edits).map((e=>({kind:t.kind,name:t.name,recordId:t.recordId,property:e,from:t.meta.undo.edits[e],to:t.edits[e]})));if(t.meta.undo.isCached)return{...e,cache:s.reduce(i,e.cache)};let o=n(e);o=r(o),o={...o,list:[...o.list]};const a=Object.values(t.meta.undo.edits).filter((e=>"function"!=typeof e)),c=Object.values(t.edits).filter((e=>"function"!=typeof e));return l()(a,c)||o.list.push(s),o}}return e},embedPreviews:function(e={},t){if("RECEIVE_EMBED_PREVIEW"===t.type){const{url:n,preview:r}=t;return{...e,[n]:r}}return e},userPermissions:function(e={},t){return"RECEIVE_USER_PERMISSION"===t.type?{...e,[t.key]:t.isAllowed}:e},autosaves:function(e={},t){if("RECEIVE_AUTOSAVES"===t.type){const{postId:n,autosaves:r}=t;return{...e,[n]:r}}return e},blockPatterns:function(e=[],t){return"RECEIVE_BLOCK_PATTERNS"===t.type?t.patterns:e},blockPatternCategories:function(e=[],t){return"RECEIVE_BLOCK_PATTERN_CATEGORIES"===t.type?t.categories:e},navigationFallbackId:function(e=null,t){return"RECEIVE_NAVIGATION_FALLBACK_ID"===t.type?t.fallbackId:e}}),Le={};function Pe(e){return[e]}function je(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function Ne(e,t){var n,r=t||Pe;function i(){n=new WeakMap}function s(){var t,i,s,o,a,c=arguments.length;for(o=new Array(c),s=0;s<c;s++)o[s]=arguments[s];for(t=function(e){var t,r,i,s,o,a=n,c=!0;for(t=0;t<e.length;t++){if(!(o=r=e[t])||"object"!=typeof o){c=!1;break}a.has(r)?a=a.get(r):(i=new WeakMap,a.set(r,i),a=i)}return a.has(Le)||((s=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=c,a.set(Le,s)),a.get(Le)}(a=r.apply(null,o)),t.isUniqueByDependants||(t.lastDependants&&!je(a,t.lastDependants,0)&&t.clear(),t.lastDependants=a),i=t.head;i;){if(je(i.args,o,1))return i!==t.head&&(i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=t.head,i.prev=null,t.head.prev=i,t.head=i),i.val;i=i.next}return i={val:e.apply(null,o)},o[0]=null,i.args=o,t.head&&(t.head.prev=i,i.next=t.head),t.head=i,i.val}return s.getDependants=r,s.clear=i,i(),s}var Ve=n(2167),De=n.n(Ve);function Me(e,t,n){return e&&"object"==typeof e?(t.reduce(((e,r,i)=>(void 0===e[r]&&(Number.isInteger(t[i+1])?e[r]=[]:e[r]={}),i===t.length-1&&(e[r]=n),e[r])),e),e):e}const Ge=new WeakMap;const qe=Ne(((e,t={})=>{let n=Ge.get(e);if(n){const e=n.get(t);if(void 0!==e)return e}else n=new(De()),Ge.set(e,n);const r=function(e,t){const{stableKey:n,page:r,perPage:i,include:s,fields:o,context:a}=ke(t);let c;if(e.queries?.[a]?.[n]&&(c=e.queries[a][n]),!c)return null;const u=-1===i?0:(r-1)*i,l=-1===i?c.length:Math.min(u+i,c.length),d=[];for(let t=u;t<l;t++){const n=c[t];if(Array.isArray(s)&&!s.includes(n))continue;if(!e.items[a]?.hasOwnProperty(n))return null;const r=e.items[a][n];let i;if(Array.isArray(o)){i={};for(let e=0;e<o.length;e++){const t=o[e].split(".");let n=r;t.forEach((e=>{n=n[e]})),Me(i,t,n)}}else{if(!e.itemIsComplete[a]?.[n])return null;i=r}d.push(i)}return d}(e,t);return n.set(t,r),r}));const Be={},Fe=(0,s.createRegistrySelector)((e=>(t,n)=>e(F).isResolving("getEmbedPreview",[n])));function $e(e,t){V()("select( 'core' ).getAuthors()",{since:"5.9",alternative:"select( 'core' ).getUsers({ who: 'authors' })"});const n=(0,j.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",t);return Ye(e,n)}function Qe(e){return e.currentUser}const Ye=Ne(((e,t)=>{var n;return(null!==(n=e.users.queries[t])&&void 0!==n?n:[]).map((t=>e.users.byId[t]))}),((e,t)=>[e.users.queries[t],e.users.byId]));function Ke(e,t){return V()("wp.data.select( 'core' ).getEntitiesByKind()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntitiesConfig()"}),ze(e,t)}function ze(e,t){return e.entities.config.filter((e=>e.kind===t))}function He(e,t,n){return V()("wp.data.select( 'core' ).getEntity()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntityConfig()"}),We(e,t,n)}function We(e,t,n){return e.entities.config?.find((e=>e.kind===t&&e.name===n))}const Ze=Ne(((e,t,n,r,i)=>{var s;const o=e.entities.records?.[t]?.[n]?.queriedData;if(!o)return;const a=null!==(s=i?.context)&&void 0!==s?s:"default";if(void 0===i){if(!o.itemIsComplete[a]?.[r])return;return o.items[a][r]}const c=o.items[a]?.[r];if(c&&i._fields){var u;const e={},t=null!==(u=we(i._fields))&&void 0!==u?u:[];for(let n=0;n<t.length;n++){const r=t[n].split(".");let i=c;r.forEach((e=>{i=i[e]})),Me(e,r,i)}return e}return c}),((e,t,n,r,i)=>{var s;const o=null!==(s=i?.context)&&void 0!==s?s:"default";return[e.entities.records?.[t]?.[n]?.queriedData?.items[o]?.[r],e.entities.records?.[t]?.[n]?.queriedData?.itemIsComplete[o]?.[r]]}));function Je(e,t,n,r){return Ze(e,t,n,r)}const Xe=Ne(((e,t,n,r)=>{const i=Ze(e,t,n,r);return i&&Object.keys(i).reduce(((r,s)=>{var o;(function(e,t){return(e.rawAttributes||[]).includes(t)})(We(e,t,n),s)?r[s]=null!==(o=i[s]?.raw)&&void 0!==o?o:i[s]:r[s]=i[s];return r}),{})}),((e,t,n,r,i)=>{var s;const o=null!==(s=i?.context)&&void 0!==s?s:"default";return[e.entities.config,e.entities.records?.[t]?.[n]?.queriedData?.items[o]?.[r],e.entities.records?.[t]?.[n]?.queriedData?.itemIsComplete[o]?.[r]]}));function et(e,t,n,r){return Array.isArray(tt(e,t,n,r))}const tt=(e,t,n,r)=>{const i=e.entities.records?.[t]?.[n]?.queriedData;return i?qe(i,r):null},nt=Ne((e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach((r=>{Object.keys(t[r]).forEach((i=>{const s=Object.keys(t[r][i].edits).filter((t=>Ze(e,r,i,t)&&ot(e,r,i,t)));if(s.length){const t=We(e,r,i);s.forEach((s=>{const o=at(e,r,i,s);n.push({key:o?o[t.key||ve]:void 0,title:t?.getTitle?.(o)||"",name:i,kind:r})}))}}))})),n}),(e=>[e.entities.records])),rt=Ne((e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach((r=>{Object.keys(t[r]).forEach((i=>{const s=Object.keys(t[r][i].saving).filter((t=>ut(e,r,i,t)));if(s.length){const t=We(e,r,i);s.forEach((s=>{const o=at(e,r,i,s);n.push({key:o?o[t.key||ve]:void 0,title:t?.getTitle?.(o)||"",name:i,kind:r})}))}}))})),n}),(e=>[e.entities.records]));function it(e,t,n,r){return e.entities.records?.[t]?.[n]?.edits?.[r]}const st=Ne(((e,t,n,r)=>{const{transientEdits:i}=We(e,t,n)||{},s=it(e,t,n,r)||{};return i?Object.keys(s).reduce(((e,t)=>(i[t]||(e[t]=s[t]),e)),{}):s}),((e,t,n,r)=>[e.entities.config,e.entities.records?.[t]?.[n]?.edits?.[r]]));function ot(e,t,n,r){return ut(e,t,n,r)||Object.keys(st(e,t,n,r)).length>0}const at=Ne(((e,t,n,r)=>({...Xe(e,t,n,r),...it(e,t,n,r)})),((e,t,n,r,i)=>{var s;const o=null!==(s=i?.context)&&void 0!==s?s:"default";return[e.entities.config,e.entities.records?.[t]?.[n]?.queriedData.items[o]?.[r],e.entities.records?.[t]?.[n]?.queriedData.itemIsComplete[o]?.[r],e.entities.records?.[t]?.[n]?.edits?.[r]]}));function ct(e,t,n,r){var i;const{pending:s,isAutosave:o}=null!==(i=e.entities.records?.[t]?.[n]?.saving?.[r])&&void 0!==i?i:{};return Boolean(s&&o)}function ut(e,t,n,r){var i;return null!==(i=e.entities.records?.[t]?.[n]?.saving?.[r]?.pending)&&void 0!==i&&i}function lt(e,t,n,r){var i;return null!==(i=e.entities.records?.[t]?.[n]?.deleting?.[r]?.pending)&&void 0!==i&&i}function dt(e,t,n,r){return e.entities.records?.[t]?.[n]?.saving?.[r]?.error}function ft(e,t,n,r){return e.entities.records?.[t]?.[n]?.deleting?.[r]?.error}function pt(e){return e.undo.offset}function yt(e){return V()("select( 'core' ).getUndoEdit()",{since:"6.3"}),e.undo.list[e.undo.list.length-2+pt(e)]?.[0]}function Et(e){return V()("select( 'core' ).getRedoEdit()",{since:"6.3"}),e.undo.list[e.undo.list.length+pt(e)]?.[0]}function vt(e){return Boolean($(e))}function ht(e){return Boolean(Q(e))}function mt(e){return Ze(e,"root","theme",e.currentTheme)}function _t(e){return e.currentGlobalStylesId}function gt(e){var t;return null!==(t=mt(e)?.theme_supports)&&void 0!==t?t:Be}function bt(e,t){return e.embedPreviews[t]}function Rt(e,t){const n=e.embedPreviews[t],r='<a href="'+t+'">'+t+"</a>";return!!n&&n.html===r}function wt(e,t,n,r){const i=[t,n,r].filter(Boolean).join("/");return e.userPermissions[i]}function kt(e,t,n,r){const i=We(e,t,n);if(!i)return!1;return wt(e,"update",i.__unstable_rest_base,r)}function Tt(e,t,n){return e.autosaves[n]}function St(e,t,n,r){if(void 0===r)return;const i=e.autosaves[n];return i?.find((e=>e.author===r))}const It=(0,s.createRegistrySelector)((e=>(t,n,r)=>e(F).hasFinishedResolution("getAutosaves",[n,r]))),Ot=Ne((e=>[]),(e=>[e.undo.list.length,e.undo.offset]));function At(e,t){const n=tt(e,"postType","wp_template",{"find-template":t});return n?.length?at(e,"postType","wp_template",n[0].id):null}function Ct(e){const t=mt(e);return t?e.themeBaseGlobalStyles[t.stylesheet]:null}function xt(e){const t=mt(e);return t?e.themeGlobalStyleVariations[t.stylesheet]:null}function Ut(e){return e.blockPatterns}function Lt(e){return e.blockPatternCategories}function Pt(e){const t=_t(e);return t?e.themeGlobalStyleRevisions[t]:null}function jt(e,t){return 0===t?e.toLowerCase():b(e,t)}function Nt(e,t){return void 0===t&&(t={}),R(e,y({transform:jt},t))}var Vt=e=>(...t)=>async({resolveSelect:n})=>{await n[e](...t)};const Dt=e=>async({dispatch:t})=>{const n=(0,j.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",e),r=await T()({path:n});t.receiveUserQuery(n,r)},Mt=()=>async({dispatch:e})=>{const t=await T()({path:"/wp/v2/users/me"});e.receiveCurrentUser(t)},Gt=(e,t,n="",r)=>async({select:i,dispatch:s})=>{const o=(await s(Re(e))).find((n=>n.name===t&&n.kind===e));if(!o||o?.__experimentalNoFetch)return;const a=await s.__unstableAcquireStoreLock(F,["entities","records",e,t,n],{exclusive:!1});try{void 0!==r&&r._fields&&(r={...r,_fields:[...new Set([...we(r._fields)||[],o.key||ve])].join()});const a=(0,j.addQueryArgs)(o.baseURL+(n?"/"+n:""),{...o.baseURLParams,...r});if(void 0!==r){r={...r,include:[n]};if(i.hasEntityRecords(e,t,r))return}const c=await T()({path:a});s.receiveEntityRecords(e,t,c,r)}finally{s.__unstableReleaseStoreLock(a)}},qt=Vt("getEntityRecord"),Bt=Vt("getEntityRecord"),Ft=(e,t,n={})=>async({dispatch:r})=>{const i=(await r(Re(e))).find((n=>n.name===t&&n.kind===e));if(!i||i?.__experimentalNoFetch)return;const s=await r.__unstableAcquireStoreLock(F,["entities","records",e,t],{exclusive:!1});try{n._fields&&(n={...n,_fields:[...new Set([...we(n._fields)||[],i.key||ve])].join()});const s=(0,j.addQueryArgs)(i.baseURL,{...i.baseURLParams,...n});let o=Object.values(await T()({path:s}));if(n._fields&&(o=o.map((e=>(n._fields.split(",").forEach((t=>{e.hasOwnProperty(t)||(e[t]=void 0)})),e)))),r.receiveEntityRecords(e,t,o,n),!n?._fields&&!n.context){const n=i.key||ve,s=o.filter((e=>e[n])).map((r=>[e,t,r[n]]));r({type:"START_RESOLUTIONS",selectorName:"getEntityRecord",args:s}),r({type:"FINISH_RESOLUTIONS",selectorName:"getEntityRecord",args:s})}}finally{r.__unstableReleaseStoreLock(s)}};Ft.shouldInvalidate=(e,t,n)=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&n===e.name;const $t=()=>async({dispatch:e,resolveSelect:t})=>{const n=await t.getEntityRecords("root","theme",{status:"active"});e.receiveCurrentTheme(n[0])},Qt=Vt("getCurrentTheme"),Yt=e=>async({dispatch:t})=>{try{const n=await T()({path:(0,j.addQueryArgs)("/oembed/1.0/proxy",{url:e})});t.receiveEmbedPreview(e,n)}catch(n){t.receiveEmbedPreview(e,!1)}},Kt=(e,t,n)=>async({dispatch:r,registry:i})=>{const{hasStartedResolution:s}=i.select(F),o=n?`${t}/${n}`:t,a=["create","read","update","delete"];if(!a.includes(e))throw new Error(`'${e}' is not a valid action.`);for(const r of a){if(r===e)continue;if(s("canUser",[r,t,n]))return}let c;try{c=await T()({path:`/wp/v2/${o}`,method:"OPTIONS",parse:!1})}catch(e){return}const u=c.headers?.get("allow"),l=u?.allow||u||"",d={},f={create:"POST",read:"GET",update:"PUT",delete:"DELETE"};for(const[e,t]of Object.entries(f))d[e]=l.includes(t);for(const e of a)r.receiveUserPermission(`${e}/${o}`,d[e])},zt=(e,t,n)=>async({dispatch:r})=>{const i=(await r(Re(e))).find((n=>n.name===t&&n.kind===e));if(!i)return;const s=i.__unstable_rest_base;await r(Kt("update",s,n))},Ht=(e,t)=>async({dispatch:n,resolveSelect:r})=>{const{rest_base:i,rest_namespace:s="wp/v2"}=await r.getPostType(e),o=await T()({path:`/${s}/${i}/${t}/autosaves?context=edit`});o&&o.length&&n.receiveAutosaves(t,o)},Wt=(e,t)=>async({resolveSelect:n})=>{await n.getAutosaves(e,t)},Zt=e=>async({dispatch:t,resolveSelect:n})=>{let r;try{r=await T()({url:(0,j.addQueryArgs)(e,{"_wp-find-template":!0})}).then((({data:e})=>e))}catch(e){}if(!r)return;const i=await n.getEntityRecord("postType","wp_template",r.id);i&&t.receiveEntityRecords("postType","wp_template",[i],{"find-template":e})};Zt.shouldInvalidate=e=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&"postType"===e.kind&&"wp_template"===e.name;const Jt=()=>async({dispatch:e,resolveSelect:t})=>{const n=await t.getEntityRecords("root","theme",{status:"active"}),r=n?.[0]?._links?.["wp:user-global-styles"]?.[0]?.href;if(r){const t=await T()({url:r});e.__experimentalReceiveCurrentGlobalStylesId(t.id)}},Xt=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.getCurrentTheme(),r=await T()({path:`/wp/v2/global-styles/themes/${n.stylesheet}`});t.__experimentalReceiveThemeBaseGlobalStyles(n.stylesheet,r)},en=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.getCurrentTheme(),r=await T()({path:`/wp/v2/global-styles/themes/${n.stylesheet}/variations`});t.__experimentalReceiveThemeGlobalStyleVariations(n.stylesheet,r)},tn=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.__experimentalGetCurrentGlobalStylesId(),r=n?await e.getEntityRecord("root","globalStyles",n):void 0,i=r?._links?.["version-history"]?.[0]?.href;if(i){const e=await T()({url:i}),r=e?.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[Nt(e),t])))));t.receiveThemeGlobalStyleRevisions(n,r)}};tn.shouldInvalidate=e=>"SAVE_ENTITY_RECORD_FINISH"===e.type&&"root"===e.kind&&!e.error&&"globalStyles"===e.name;const nn=()=>async({dispatch:e})=>{const t=await T()({path:"/wp/v2/block-patterns/patterns"}),n=t?.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[Nt(e),t])))));e({type:"RECEIVE_BLOCK_PATTERNS",patterns:n})},rn=()=>async({dispatch:e})=>{e({type:"RECEIVE_BLOCK_PATTERN_CATEGORIES",categories:await T()({path:"/wp/v2/block-patterns/categories"})})},sn=()=>async({dispatch:e,select:t})=>{const n=await T()({path:(0,j.addQueryArgs)("/wp-block-editor/v1/navigation-fallback",{_embed:!0})}),r=n?._embedded?.self;if(e.receiveNavigationFallbackId(n?.id),r){const i=!t.getEntityRecord("postType","wp_navigation",n?.id);e.receiveEntityRecords("postType","wp_navigation",r,void 0,i),e.finishResolution("getEntityRecord",["postType","wp_navigation",n?.id])}};function on(e,t){const n={...e};let r=n;for(const e of t)r.children={...r.children,[e]:{locks:[],children:{},...r.children[e]}},r=r.children[e];return n}function an(e,t){let n=e;for(const e of t){const t=n.children[e];if(!t)return null;n=t}return n}function cn({exclusive:e},t){return!(!e||!t.length)||!(e||!t.filter((e=>e.exclusive)).length)}const un={requests:[],tree:{locks:[],children:{}}};function ln(e=un,t){switch(t.type){case"ENQUEUE_LOCK_REQUEST":{const{request:n}=t;return{...e,requests:[n,...e.requests]}}case"GRANT_LOCK_REQUEST":{const{lock:n,request:r}=t,{store:i,path:s}=r,o=[i,...s],a=on(e.tree,o),c=an(a,o);return c.locks=[...c.locks,n],{...e,requests:e.requests.filter((e=>e!==r)),tree:a}}case"RELEASE_LOCK":{const{lock:n}=t,r=[n.store,...n.path],i=on(e.tree,r),s=an(i,r);return s.locks=s.locks.filter((e=>e!==n)),{...e,tree:i}}}return e}function dn(e,t,n,{exclusive:r}){const i=[t,...n],s=e.tree;for(const e of function*(e,t){let n=e;yield n;for(const e of t){const t=n.children[e];if(!t)break;yield t,n=t}}(s,i))if(cn({exclusive:r},e.locks))return!1;const o=an(s,i);if(!o)return!0;for(const e of function*(e){const t=Object.values(e.children);for(;t.length;){const e=t.pop();yield e,t.push(...Object.values(e.children))}}(o))if(cn({exclusive:r},e.locks))return!1;return!0}function fn(){let e=ln(void 0,{type:"@@INIT"});function t(){for(const t of function(e){return e.requests}(e)){const{store:n,path:r,exclusive:i,notifyAcquired:s}=t;if(dn(e,n,r,{exclusive:i})){const o={store:n,path:r,exclusive:i};e=ln(e,{type:"GRANT_LOCK_REQUEST",lock:o,request:t}),s(o)}}}return{acquire:function(n,r,i){return new Promise((s=>{e=ln(e,{type:"ENQUEUE_LOCK_REQUEST",request:{store:n,path:r,exclusive:i,notifyAcquired:s}}),t()}))},release:function(n){e=ln(e,{type:"RELEASE_LOCK",lock:n}),t()}}}function pn(){const e=fn();return{__unstableAcquireStoreLock:function(t,n,{exclusive:r}){return()=>e.acquire(t,n,r)},__unstableReleaseStoreLock:function(t){return()=>e.release(t)}}}var yn=window.wp.privateApis;const{lock:En,unlock:vn}=(0,yn.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/core-data");var hn=window.wp.element,mn=window.wp.blocks,_n=window.wp.blockEditor;const gn=[];let bn={};const Rn={...me.reduce(((e,t)=>(e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:(0,hn.createContext)(void 0)},e)),{}),..._e.reduce(((e,t)=>(e[t.kind]={},e)),{})},wn=(e,t)=>{if(!Rn[e])throw new Error(`Missing entity config for kind: ${e}.`);return Rn[e][t]||(Rn[e][t]={context:(0,hn.createContext)(void 0)}),Rn[e][t].context};function kn({kind:e,type:t,id:n,children:r}){const i=wn(e,t).Provider;return(0,hn.createElement)(i,{value:n},r)}function Tn(e,t){return(0,hn.useContext)(wn(e,t))}function Sn(e,t,n,r){const i=Tn(e,t),o=null!=r?r:i,{value:a,fullValue:c}=(0,s.useSelect)((r=>{const{getEntityRecord:i,getEditedEntityRecord:s}=r(F),a=i(e,t,o),c=s(e,t,o);return a&&c?{value:c[n],fullValue:a[n]}:{}}),[e,t,o,n]),{editEntityRecord:u}=(0,s.useDispatch)(F);return[a,(0,hn.useCallback)((r=>{u(e,t,o,{[n]:r})}),[e,t,o,n]),c]}function In(e,t,{id:n}={}){const r=Tn(e,t),i=null!=n?n:r,{content:o,blocks:a,meta:c}=(0,s.useSelect)((n=>{const{getEditedEntityRecord:r}=n(F),s=r(e,t,i);return{blocks:s.blocks,content:s.content,meta:s.meta}}),[e,t,i]),{__unstableCreateUndoLevel:u,editEntityRecord:l}=(0,s.useDispatch)(F);(0,hn.useEffect)((()=>{if(o&&"function"!=typeof o&&!a){const n=(0,mn.parse)(o);l(e,t,i,{blocks:n},{undoIgnore:!0})}}),[o]);const d=(0,hn.useCallback)((e=>{const t={blocks:e};if(!c)return t;if(void 0===c.footnotes)return t;const{getRichTextValues:n}=vn(_n.privateApis),r=n(e).join("")||"",i=[];if(-1!==r.indexOf("data-fn")){const e=/data-fn="([^"]+)"/g;let t;for(;null!==(t=e.exec(r));)i.push(t[1])}const s=c.footnotes?JSON.parse(c.footnotes):[];if(s.map((e=>e.id)).join("")===i.join(""))return t;const o=i.map((e=>s.find((t=>t.id===e))||bn[e]||{id:e,content:""}));function a(e){if(!e||Array.isArray(e)||"object"!=typeof e)return e;e={...e};for(const t in e){const n=e[t];if(Array.isArray(n)){e[t]=n.map(a);continue}if("string"!=typeof n)continue;if(-1===n.indexOf("data-fn"))continue;const r=/(<sup[^>]+data-fn="([^"]+)"[^>]*><a[^>]*>)[\d*]*<\/a><\/sup>/g;e[t]=n.replace(r,((e,t,n)=>`${t}${i.indexOf(n)+1}</a></sup>`));const s=/<a[^>]+data-fn="([^"]+)"[^>]*>\*<\/a>/g;e[t]=e[t].replace(s,((e,t)=>`<sup data-fn="${t}" class="fn"><a href="#${t}" id="${t}-link">${i.indexOf(t)+1}</a></sup>`))}return e}const u=function e(t){return t.map((t=>({...t,attributes:a(t.attributes),innerBlocks:e(t.innerBlocks)})))}(e);return bn={...bn,...s.reduce(((e,t)=>(i.includes(t.id)||(e[t.id]=t),e)),{})},{meta:{...c,footnotes:JSON.stringify(o)},blocks:u}}),[c]),f=(0,hn.useCallback)(((n,r)=>{if(a===n)return u(e,t,i);const{selection:s}=r,o={selection:s,content:({blocks:e=[]})=>(0,mn.__unstableSerializeAndClean)(e),...d(n)};l(e,t,i,o,{isCached:!1})}),[e,t,i,a,d,u,l]),p=(0,hn.useCallback)(((n,r)=>{const{selection:s}=r,o={selection:s,...d(n)};l(e,t,i,o,{isCached:!0})}),[e,t,i,d,l]);return[null!=a?a:gn,p,f]}var On=window.wp.htmlEntities;var An=async(e,t={},n={})=>{const{isInitialSuggestions:r=!1,type:i,subtype:s,page:o,perPage:a=(r?3:20)}=t,{disablePostFormats:c=!1}=n,u=[];return i&&"post"!==i||u.push(T()({path:(0,j.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"post",subtype:s})}).then((e=>e.map((e=>({...e,meta:{kind:"post-type",subtype:s}}))))).catch((()=>[]))),i&&"term"!==i||u.push(T()({path:(0,j.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"term",subtype:s})}).then((e=>e.map((e=>({...e,meta:{kind:"taxonomy",subtype:s}}))))).catch((()=>[]))),c||i&&"post-format"!==i||u.push(T()({path:(0,j.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"post-format",subtype:s})}).then((e=>e.map((e=>({...e,meta:{kind:"taxonomy",subtype:s}}))))).catch((()=>[]))),i&&"attachment"!==i||u.push(T()({path:(0,j.addQueryArgs)("/wp/v2/media",{search:e,page:o,per_page:a})}).then((e=>e.map((e=>({...e,meta:{kind:"media"}}))))).catch((()=>[]))),Promise.all(u).then((e=>e.reduce(((e,t)=>e.concat(t)),[]).filter((e=>!!e.id)).slice(0,a).map((e=>{const t="attachment"===e.type;return{id:e.id,url:t?e.source_url:e.url,title:(0,On.decodeEntities)(t?e.title.rendered:e.title||"")||(0,S.__)("(no title)"),type:e.subtype||e.type,kind:e?.meta?.kind}}))))};const Cn=new Map;var xn=async(e,t={})=>{const n={url:(0,j.prependHTTP)(e)};if(!(0,j.isURL)(e))return Promise.reject(`${e} is not a valid URL.`);const r=(0,j.getProtocol)(e);return r&&(0,j.isValidProtocol)(r)&&r.startsWith("http")&&/^https?:\/\/[^\/\s]/i.test(e)?Cn.has(e)?Cn.get(e):T()({path:(0,j.addQueryArgs)("/wp-block-editor/v1/url-details",n),...t}).then((t=>(Cn.set(e,t),t))):Promise.reject(`${e} does not have a valid protocol. URLs must be "http" based`)};var Un=function(e,t){var n,r,i=0;function s(){var s,o,a=n,c=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(o=0;o<c;o++)if(a.args[o]!==arguments[o]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(s=new Array(c),o=0;o<c;o++)s[o]=arguments[o];return a={args:s,val:e.apply(null,s)},n?(n.prev=a,a.next=n):r=a,i===t.maxSize?(r=r.prev).next=null:i++,n=a,a.val}return t=t||{},s.clear=function(){n=null,r=null,i=0},s};let Ln;!function(e){e.Idle="IDLE",e.Resolving="RESOLVING",e.Error="ERROR",e.Success="SUCCESS"}(Ln||(Ln={}));const Pn=["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"];function jn(e,t){return(0,s.useSelect)(((t,n)=>e((e=>Nn(t(e))),n)),t)}const Nn=Un((e=>{const t={};for(const n in e)Pn.includes(n)||Object.defineProperty(t,n,{get:()=>(...t)=>{const{getIsResolving:r,hasFinishedResolution:i}=e,s=!!r(n,t),o=!s&&i(n,t),a=e[n](...t);let c;return c=s?Ln.Resolving:o?a?Ln.Success:Ln.Error:Ln.Idle,{data:a,status:c,isResolving:s,hasResolved:o}}});return t}));function Vn(e,t,n,r={enabled:!0}){const{editEntityRecord:i,saveEditedEntityRecord:o}=(0,s.useDispatch)(Kn),a=(0,hn.useMemo)((()=>({edit:r=>i(e,t,n,r),save:(r={})=>o(e,t,n,{throwOnError:!0,...r})})),[i,e,t,n,o]),{editedRecord:c,hasEdits:u}=(0,s.useSelect)((r=>({editedRecord:r(Kn).getEditedEntityRecord(e,t,n),hasEdits:r(Kn).hasEditsForEntityRecord(e,t,n)})),[e,t,n]),{data:l,...d}=jn((i=>r.enabled?i(Kn).getEntityRecord(e,t,n):{data:null}),[e,t,n,r.enabled]);return{record:l,editedRecord:c,hasEdits:u,...d,...a}}function Dn(e,t,n,r){return V()("wp.data.__experimentalUseEntityRecord",{alternative:"wp.data.useEntityRecord",since:"6.1"}),Vn(e,t,n,r)}const Mn=[];function Gn(e,t,n={},r={enabled:!0}){const i=(0,j.addQueryArgs)("",n),{data:s,...o}=jn((i=>r.enabled?i(Kn).getEntityRecords(e,t,n):{data:Mn}),[e,t,i,r.enabled]);return{records:s,...o}}function qn(e,t,n,r){return V()("wp.data.__experimentalUseEntityRecords",{alternative:"wp.data.useEntityRecords",since:"6.1"}),Gn(e,t,n,r)}function Bn(e,t){return jn((n=>{const{canUser:r}=n(Kn),i=r("create",e);if(!t){const t=r("read",e),n=i.isResolving||t.isResolving,s=i.hasResolved&&t.hasResolved;let o=Ln.Idle;return n?o=Ln.Resolving:s&&(o=Ln.Success),{status:o,isResolving:n,hasResolved:s,canCreate:i.hasResolved&&i.data,canRead:t.hasResolved&&t.data}}const s=r("read",e,t),o=r("update",e,t),a=r("delete",e,t),c=s.isResolving||i.isResolving||o.isResolving||a.isResolving,u=s.hasResolved&&i.hasResolved&&o.hasResolved&&a.hasResolved;let l=Ln.Idle;return c?l=Ln.Resolving:u&&(l=Ln.Success),{status:l,isResolving:c,hasResolved:u,canRead:u&&s.data,canCreate:u&&i.data,canUpdate:u&&o.data,canDelete:u&&a.data}}),[e,t])}function Fn(e,t){return V()("wp.data.__experimentalUseResourcePermissions",{alternative:"wp.data.useResourcePermissions",since:"6.1"}),Bn(e,t)}const $n=me.reduce(((e,t)=>{const{kind:n,name:r}=t;return e[be(n,r)]=(e,t,i)=>Ze(e,n,r,t,i),e[be(n,r,"get",!0)]=(e,t)=>tt(e,n,r,t),e}),{}),Qn=me.reduce(((e,t)=>{const{kind:n,name:r}=t;e[be(n,r)]=(e,t)=>Gt(n,r,e,t);const i=be(n,r,"get",!0);return e[i]=(...e)=>Ft(n,r,...e),e[i].shouldInvalidate=e=>Ft.shouldInvalidate(e,n,r),e}),{}),Yn=me.reduce(((e,t)=>{const{kind:n,name:r}=t;return e[be(n,r,"save")]=e=>ce(n,r,e),e[be(n,r,"delete")]=(e,t)=>re(n,r,e,t),e}),{}),Kn=(0,s.createReduxStore)(F,{reducer:Ue,actions:{...e,...Yn,...pn()},selectors:{...t,...$n},resolvers:{...i,...Qn}});vn(Kn).registerPrivateSelectors({getNavigationFallbackId:function(e){return e.navigationFallbackId}}),(0,s.register)(Kn)}(),(window.wp=window.wp||{}).coreData=r}();
\ No newline at end of file
+!function(){"use strict";var e={2167:function(e){function t(e){return t="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},t(e)}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)}}function r(e,t){var n=e._map,r=e._arrayTreeMap,i=e._objectTreeMap;if(n.has(t))return n.get(t);for(var s=Object.keys(t).sort(),o=Array.isArray(t)?r:i,a=0;a<s.length;a++){var c=s[a];if(void 0===(o=o.get(c)))return;var u=t[c];if(void 0===(o=o.get(u)))return}var l=o.get("_ekm_value");return l?(n.delete(l[0]),l[0]=t,o.set("_ekm_value",l),n.set(t,l),l):void 0}var i=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var n=[];t.forEach((function(e,t){n.push([t,e])})),t=n}if(null!=t)for(var r=0;r<t.length;r++)this.set(t[r][0],t[r][1])}var i,s,o;return i=e,s=[{key:"set",value:function(n,r){if(null===n||"object"!==t(n))return this._map.set(n,r),this;for(var i=Object.keys(n).sort(),s=[n,r],o=Array.isArray(n)?this._arrayTreeMap:this._objectTreeMap,a=0;a<i.length;a++){var c=i[a];o.has(c)||o.set(c,new e),o=o.get(c);var u=n[c];o.has(u)||o.set(u,new e),o=o.get(u)}var l=o.get("_ekm_value");return l&&this._map.delete(l[0]),o.set("_ekm_value",s),this._map.set(n,s),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var n=r(this,e);return n?n[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==r(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(i,s){null!==s&&"object"===t(s)&&(i=i[1]),e.call(r,i,s,n)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],s&&n(i.prototype,s),o&&n(i,o),e}();e.exports=i},5619:function(e){e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,s;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(s=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,s[i]))return!1;for(i=r;0!=i--;){var o=s[i];if(!e(t[o],n[o]))return!1}return!0}return t!=t&&n!=n}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){n.r(r),n.d(r,{EntityProvider:function(){return kn},__experimentalFetchLinkSuggestions:function(){return An},__experimentalFetchUrlData:function(){return xn},__experimentalUseEntityRecord:function(){return Dn},__experimentalUseEntityRecords:function(){return qn},__experimentalUseResourcePermissions:function(){return Fn},store:function(){return Kn},useEntityBlockEditor:function(){return In},useEntityId:function(){return Tn},useEntityProp:function(){return Sn},useEntityRecord:function(){return Vn},useEntityRecords:function(){return Gn},useResourcePermissions:function(){return Bn}});var e={};n.r(e),n.d(e,{__experimentalBatch:function(){return ue},__experimentalReceiveCurrentGlobalStylesId:function(){return Z},__experimentalReceiveThemeBaseGlobalStyles:function(){return J},__experimentalReceiveThemeGlobalStyleVariations:function(){return X},__experimentalSaveSpecifiedEntityEdits:function(){return de},__unstableCreateUndoLevel:function(){return ae},addEntities:function(){return z},deleteEntityRecord:function(){return re},editEntityRecord:function(){return ie},receiveAutosaves:function(){return ye},receiveCurrentTheme:function(){return W},receiveCurrentUser:function(){return K},receiveEmbedPreview:function(){return ne},receiveEntityRecords:function(){return H},receiveNavigationFallbackId:function(){return Ee},receiveThemeGlobalStyleRevisions:function(){return te},receiveThemeSupports:function(){return ee},receiveUploadPermissions:function(){return fe},receiveUserPermission:function(){return pe},receiveUserQuery:function(){return Y},redo:function(){return oe},saveEditedEntityRecord:function(){return le},saveEntityRecord:function(){return ce},undo:function(){return se}});var t={};n.r(t),n.d(t,{__experimentalGetCurrentGlobalStylesId:function(){return _t},__experimentalGetCurrentThemeBaseGlobalStyles:function(){return Ct},__experimentalGetCurrentThemeGlobalStylesVariations:function(){return xt},__experimentalGetDirtyEntityRecords:function(){return nt},__experimentalGetEntitiesBeingSaved:function(){return rt},__experimentalGetEntityRecordNoResolver:function(){return Je},__experimentalGetTemplateForLink:function(){return At},canUser:function(){return wt},canUserEditEntityRecord:function(){return kt},getAuthors:function(){return $e},getAutosave:function(){return St},getAutosaves:function(){return Tt},getBlockPatternCategories:function(){return Lt},getBlockPatterns:function(){return Ut},getCurrentTheme:function(){return mt},getCurrentThemeGlobalStylesRevisions:function(){return Pt},getCurrentUser:function(){return Qe},getEditedEntityRecord:function(){return at},getEmbedPreview:function(){return bt},getEntitiesByKind:function(){return Ke},getEntitiesConfig:function(){return ze},getEntity:function(){return He},getEntityConfig:function(){return We},getEntityRecord:function(){return Ze},getEntityRecordEdits:function(){return it},getEntityRecordNonTransientEdits:function(){return st},getEntityRecords:function(){return tt},getLastEntityDeleteError:function(){return ft},getLastEntitySaveError:function(){return dt},getRawEntityRecord:function(){return Xe},getRedoEdit:function(){return Et},getReferenceByDistinctEdits:function(){return Ot},getThemeSupports:function(){return gt},getUndoEdit:function(){return yt},getUserQueryResults:function(){return Ye},hasEditsForEntityRecord:function(){return ot},hasEntityRecords:function(){return et},hasFetchedAutosaves:function(){return It},hasRedo:function(){return ht},hasUndo:function(){return vt},isAutosavingEntityRecord:function(){return ct},isDeletingEntityRecord:function(){return lt},isPreviewEmbedFallback:function(){return Rt},isRequestingEmbedPreview:function(){return Fe},isSavingEntityRecord:function(){return ut}});var i={};n.r(i),n.d(i,{__experimentalGetCurrentGlobalStylesId:function(){return Jt},__experimentalGetCurrentThemeBaseGlobalStyles:function(){return Xt},__experimentalGetCurrentThemeGlobalStylesVariations:function(){return en},__experimentalGetTemplateForLink:function(){return Zt},canUser:function(){return Kt},canUserEditEntityRecord:function(){return zt},getAuthors:function(){return Dt},getAutosave:function(){return Wt},getAutosaves:function(){return Ht},getBlockPatternCategories:function(){return rn},getBlockPatterns:function(){return nn},getCurrentTheme:function(){return $t},getCurrentThemeGlobalStylesRevisions:function(){return tn},getCurrentUser:function(){return Mt},getEditedEntityRecord:function(){return Bt},getEmbedPreview:function(){return Yt},getEntityRecord:function(){return Gt},getEntityRecords:function(){return Ft},getNavigationFallbackId:function(){return sn},getRawEntityRecord:function(){return qt},getThemeSupports:function(){return Qt}});var s=window.wp.data,o=n(5619),a=n.n(o),c=window.wp.compose,u=window.wp.isShallowEqual,l=n.n(u);var d=e=>t=>(n,r)=>void 0===n||e(r)?t(n,r):n;var f=e=>t=>(n,r)=>t(n,e(r));var p=e=>t=>(n={},r)=>{const i=r[e];if(void 0===i)return n;const s=t(n[i],r);return s===n[i]?n:{...n,[i]:s}};var y=function(){return y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},y.apply(this,arguments)};Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;function E(e){return e.toLowerCase()}var v=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],h=/[^A-Z0-9]+/gi;function m(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?v:n,i=t.stripRegexp,s=void 0===i?h:i,o=t.transform,a=void 0===o?E:o,c=t.delimiter,u=void 0===c?" ":c,l=_(_(e,r,"$1\0$2"),s,"\0"),d=0,f=l.length;"\0"===l.charAt(d);)d++;for(;"\0"===l.charAt(f-1);)f--;return l.slice(d,f).split("\0").map(a).join(u)}function _(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function g(e){return function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e.toLowerCase())}function b(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function R(e,t){return void 0===t&&(t={}),m(e,y({delimiter:"",transform:b},t))}var w,k=window.wp.apiFetch,T=n.n(k),S=window.wp.i18n,I=new Uint8Array(16);function O(){if(!w&&!(w="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return w(I)}var A=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var C=function(e){return"string"==typeof e&&A.test(e)},x=[],U=0;U<256;++U)x.push((U+256).toString(16).substr(1));var L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(x[e[t+0]]+x[e[t+1]]+x[e[t+2]]+x[e[t+3]]+"-"+x[e[t+4]]+x[e[t+5]]+"-"+x[e[t+6]]+x[e[t+7]]+"-"+x[e[t+8]]+x[e[t+9]]+"-"+x[e[t+10]]+x[e[t+11]]+x[e[t+12]]+x[e[t+13]]+x[e[t+14]]+x[e[t+15]]).toLowerCase();if(!C(n))throw TypeError("Stringified UUID is invalid");return n};var P=function(e,t,n){var r=(e=e||{}).random||(e.rng||O)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return L(r)},j=window.wp.url,N=window.wp.deprecated,V=n.n(N);function D(e,t){return{type:"RECEIVE_ITEMS",items:Array.isArray(e)?e:[e],persistedEdits:t}}let M=null;async function G(e){if(null===M){const e=await T()({path:"/batch/v1",method:"OPTIONS"});M=e.endpoints[0].args.requests.maxItems}const t=[];for(const n of function(e,t){const n=[...e],r=[];for(;n.length;)r.push(n.splice(0,t));return r}(e,M)){const e=await T()({path:"/batch/v1",method:"POST",data:{validation:"require-all-validate",requests:n.map((e=>({path:e.path,body:e.data,method:e.method,headers:e.headers})))}});let r;r=e.failed?e.responses.map((e=>({error:e?.body}))):e.responses.map((e=>{const t={};return e.status>=200&&e.status<300?t.output=e.body:t.error=e.body,t})),t.push(...r)}return t}function q(e=G){let t=0,n=[];const r=new B;return{add(e){const i=++t;r.add(i);const s=e=>new Promise(((t,s)=>{n.push({input:e,resolve:t,reject:s}),r.delete(i)}));return"function"==typeof e?Promise.resolve(e(s)).finally((()=>{r.delete(i)})):s(e)},async run(){let t;r.size&&await new Promise((e=>{const t=r.subscribe((()=>{r.size||(t(),e(void 0))}))}));try{if(t=await e(n.map((({input:e})=>e))),t.length!==n.length)throw new Error("run: Array returned by processor must be same size as input array.")}catch(e){for(const{reject:t}of n)t(e);throw e}let i=!0;return t.forEach(((e,t)=>{const r=n[t];var s;e?.error?(r?.reject(e.error),i=!1):r?.resolve(null!==(s=e?.output)&&void 0!==s?s:e)})),n=[],i}}}class B{constructor(...e){this.set=new Set(...e),this.subscribers=new Set}get size(){return this.set.size}add(e){return this.set.add(e),this.subscribers.forEach((e=>e())),this}delete(e){const t=this.set.delete(e);return this.subscribers.forEach((e=>e())),t}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}}const F="core";function $(e){return e.undo.list[e.undo.list.length-1+e.undo.offset]}function Q(e){return e.undo.list[e.undo.list.length+e.undo.offset]}function Y(e,t){return{type:"RECEIVE_USER_QUERY",users:Array.isArray(t)?t:[t],queryID:e}}function K(e){return{type:"RECEIVE_CURRENT_USER",currentUser:e}}function z(e){return{type:"ADD_ENTITIES",entities:e}}function H(e,t,n,r,i=!1,s){let o;return"postType"===e&&(n=(Array.isArray(n)?n:[n]).map((e=>"auto-draft"===e.status?{...e,title:""}:e))),o=r?function(e,t={},n){return{...D(e,n),query:t}}(n,r,s):D(n,s),{...o,kind:e,name:t,invalidateCache:i}}function W(e){return{type:"RECEIVE_CURRENT_THEME",currentTheme:e}}function Z(e){return{type:"RECEIVE_CURRENT_GLOBAL_STYLES_ID",id:e}}function J(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLES",stylesheet:e,globalStyles:t}}function X(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS",stylesheet:e,variations:t}}function ee(){return V()("wp.data.dispatch( 'core' ).receiveThemeSupports",{since:"5.9"}),{type:"DO_NOTHING"}}function te(e,t){return{type:"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS",currentId:e,revisions:t}}function ne(e,t){return{type:"RECEIVE_EMBED_PREVIEW",url:e,preview:t}}const re=(e,t,n,r,{__unstableFetch:i=T(),throwOnError:s=!1}={})=>async({dispatch:o})=>{const a=(await o(Re(e))).find((n=>n.kind===e&&n.name===t));let c,u=!1;if(!a||a?.__experimentalNoFetch)return;const l=await o.__unstableAcquireStoreLock(F,["entities","records",e,t,n],{exclusive:!0});try{o({type:"DELETE_ENTITY_RECORD_START",kind:e,name:t,recordId:n});let l=!1;try{let s=`${a.baseURL}/${n}`;r&&(s=(0,j.addQueryArgs)(s,r)),u=await i({path:s,method:"DELETE"}),await o(function(e,t,n,r=!1){return{type:"REMOVE_ITEMS",itemIds:Array.isArray(n)?n:[n],kind:e,name:t,invalidateCache:r}}(e,t,n,!0))}catch(e){l=!0,c=e}if(o({type:"DELETE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:n,error:c}),l&&s)throw c;return u}finally{o.__unstableReleaseStoreLock(l)}},ie=(e,t,n,r,i={})=>({select:s,dispatch:o})=>{const c=s.getEntityConfig(e,t);if(!c)throw new Error(`The entity being edited (${e}, ${t}) does not have a loaded config.`);const{mergedEdits:u={}}=c,l=s.getRawEntityRecord(e,t,n),d=s.getEditedEntityRecord(e,t,n),f={kind:e,name:t,recordId:n,edits:Object.keys(r).reduce(((e,t)=>{const n=l[t],i=d[t],s=u[t]?{...i,...r[t]}:r[t];return e[t]=a()(n,s)?void 0:s,e}),{})};o({type:"EDIT_ENTITY_RECORD",...f,meta:{undo:!i.undoIgnore&&{...f,edits:Object.keys(r).reduce(((e,t)=>(e[t]=d[t],e)),{}),isCached:i.isCached}}})},se=()=>({select:e,dispatch:t})=>{const n=e((e=>$(e.root)));n&&t({type:"UNDO",stackedEdits:n})},oe=()=>({select:e,dispatch:t})=>{const n=e((e=>Q(e.root)));n&&t({type:"REDO",stackedEdits:n})};function ae(){return{type:"CREATE_UNDO_LEVEL"}}const ce=(e,t,n,{isAutosave:r=!1,__unstableFetch:i=T(),throwOnError:s=!1}={})=>async({select:o,resolveSelect:a,dispatch:c})=>{const u=(await c(Re(e))).find((n=>n.kind===e&&n.name===t));if(!u||u?.__experimentalNoFetch)return;const l=u.key||ve,d=n[l],f=await c.__unstableAcquireStoreLock(F,["entities","records",e,t,d||P()],{exclusive:!0});try{for(const[r,i]of Object.entries(n))if("function"==typeof i){const s=i(o.getEditedEntityRecord(e,t,d));c.editEntityRecord(e,t,d,{[r]:s},{undoIgnore:!0}),n[r]=s}let l,f;c({type:"SAVE_ENTITY_RECORD_START",kind:e,name:t,recordId:d,isAutosave:r});let p=!1;try{const s=`${u.baseURL}${d?"/"+d:""}`,f=o.getRawEntityRecord(e,t,d);if(r){const r=o.getCurrentUser(),u=r?r.id:void 0,d=await a.getAutosave(f.type,f.id,u);let p={...f,...d,...n};if(p=Object.keys(p).reduce(((e,t)=>(["title","excerpt","content","meta"].includes(t)&&(e[t]=p[t]),e)),{status:"auto-draft"===p.status?"draft":p.status}),l=await i({path:`${s}/autosaves`,method:"POST",data:p}),f.id===l.id){let n={...f,...p,...l};n=Object.keys(n).reduce(((e,t)=>(["title","excerpt","content"].includes(t)?e[t]=n[t]:e[t]="status"===t?"auto-draft"===f.status&&"draft"===n.status?n.status:f.status:f[t],e)),{}),c.receiveEntityRecords(e,t,n,void 0,!0)}else c.receiveAutosaves(f.id,l)}else{let r=n;u.__unstablePrePersist&&(r={...r,...u.__unstablePrePersist(f,r)}),l=await i({path:s,method:d?"PUT":"POST",data:r}),c.receiveEntityRecords(e,t,l,void 0,!0,r)}}catch(e){p=!0,f=e}if(c({type:"SAVE_ENTITY_RECORD_FINISH",kind:e,name:t,recordId:d,error:f,isAutosave:r}),p&&s)throw f;return l}finally{c.__unstableReleaseStoreLock(f)}},ue=e=>async({dispatch:t})=>{const n=q(),r={saveEntityRecord(e,r,i,s){return n.add((n=>t.saveEntityRecord(e,r,i,{...s,__unstableFetch:n})))},saveEditedEntityRecord(e,r,i,s){return n.add((n=>t.saveEditedEntityRecord(e,r,i,{...s,__unstableFetch:n})))},deleteEntityRecord(e,r,i,s,o){return n.add((n=>t.deleteEntityRecord(e,r,i,s,{...o,__unstableFetch:n})))}},i=e.map((e=>e(r))),[,...s]=await Promise.all([n.run(),...i]);return s},le=(e,t,n,r)=>async({select:i,dispatch:s})=>{if(!i.hasEditsForEntityRecord(e,t,n))return;const o=(await s(Re(e))).find((n=>n.kind===e&&n.name===t));if(!o)return;const a=o.key||ve,c=i.getEntityRecordNonTransientEdits(e,t,n),u={[a]:n,...c};return await s.saveEntityRecord(e,t,u,r)},de=(e,t,n,r,i)=>async({select:s,dispatch:o})=>{if(!s.hasEditsForEntityRecord(e,t,n))return;const a=s.getEntityRecordNonTransientEdits(e,t,n),c={};for(const e in a)r.some((t=>t===e))&&(c[e]=a[e]);return await o.saveEntityRecord(e,t,c,i)};function fe(e){return V()("wp.data.dispatch( 'core' ).receiveUploadPermissions",{since:"5.9",alternative:"receiveUserPermission"}),pe("create/media",e)}function pe(e,t){return{type:"RECEIVE_USER_PERMISSION",key:e,isAllowed:t}}function ye(e,t){return{type:"RECEIVE_AUTOSAVES",postId:e,autosaves:Array.isArray(t)?t:[t]}}function Ee(e){return{type:"RECEIVE_NAVIGATION_FALLBACK_ID",fallbackId:e}}const ve="id",he=["title","excerpt","content"],me=[{label:(0,S.__)("Base"),kind:"root",name:"__unstableBase",baseURL:"/",baseURLParams:{_fields:["description","gmt_offset","home","name","site_icon","site_icon_url","site_logo","timezone_string","url"].join(",")}},{label:(0,S.__)("Site"),name:"site",kind:"root",baseURL:"/wp/v2/settings",getTitle:e=>{var t;return null!==(t=e?.title)&&void 0!==t?t:(0,S.__)("Site Title")}},{label:(0,S.__)("Post Type"),name:"postType",kind:"root",key:"slug",baseURL:"/wp/v2/types",baseURLParams:{context:"edit"}},{name:"media",kind:"root",baseURL:"/wp/v2/media",baseURLParams:{context:"edit"},plural:"mediaItems",label:(0,S.__)("Media"),rawAttributes:["caption","title","description"]},{name:"taxonomy",kind:"root",key:"slug",baseURL:"/wp/v2/taxonomies",baseURLParams:{context:"edit"},plural:"taxonomies",label:(0,S.__)("Taxonomy")},{name:"sidebar",kind:"root",baseURL:"/wp/v2/sidebars",baseURLParams:{context:"edit"},plural:"sidebars",transientEdits:{blocks:!0},label:(0,S.__)("Widget areas")},{name:"widget",kind:"root",baseURL:"/wp/v2/widgets",baseURLParams:{context:"edit"},plural:"widgets",transientEdits:{blocks:!0},label:(0,S.__)("Widgets")},{name:"widgetType",kind:"root",baseURL:"/wp/v2/widget-types",baseURLParams:{context:"edit"},plural:"widgetTypes",label:(0,S.__)("Widget types")},{label:(0,S.__)("User"),name:"user",kind:"root",baseURL:"/wp/v2/users",baseURLParams:{context:"edit"},plural:"users"},{name:"comment",kind:"root",baseURL:"/wp/v2/comments",baseURLParams:{context:"edit"},plural:"comments",label:(0,S.__)("Comment")},{name:"menu",kind:"root",baseURL:"/wp/v2/menus",baseURLParams:{context:"edit"},plural:"menus",label:(0,S.__)("Menu")},{name:"menuItem",kind:"root",baseURL:"/wp/v2/menu-items",baseURLParams:{context:"edit"},plural:"menuItems",label:(0,S.__)("Menu Item"),rawAttributes:["title"]},{name:"menuLocation",kind:"root",baseURL:"/wp/v2/menu-locations",baseURLParams:{context:"edit"},plural:"menuLocations",label:(0,S.__)("Menu Location"),key:"name"},{label:(0,S.__)("Global Styles"),name:"globalStyles",kind:"root",baseURL:"/wp/v2/global-styles",baseURLParams:{context:"edit"},plural:"globalStylesVariations",getTitle:e=>e?.title?.rendered||e?.title},{label:(0,S.__)("Themes"),name:"theme",kind:"root",baseURL:"/wp/v2/themes",baseURLParams:{context:"edit"},key:"stylesheet"},{label:(0,S.__)("Plugins"),name:"plugin",kind:"root",baseURL:"/wp/v2/plugins",baseURLParams:{context:"edit"},key:"plugin"}],_e=[{kind:"postType",loadEntities:async function(){const e=await T()({path:"/wp/v2/types?context=view"});return Object.entries(null!=e?e:{}).map((([e,t])=>{var n;const r=["wp_template","wp_template_part"].includes(e);return{kind:"postType",baseURL:`/${null!==(n=t?.rest_namespace)&&void 0!==n?n:"wp/v2"}/${t.rest_base}`,baseURLParams:{context:"edit"},name:e,label:t.name,transientEdits:{blocks:!0,selection:!0},mergedEdits:{meta:!0},rawAttributes:he,getTitle:e=>{var t,n,i;return e?.title?.rendered||e?.title||(r?(n=null!==(t=e.slug)&&void 0!==t?t:"",void 0===i&&(i={}),m(n,y({delimiter:" ",transform:g},i))):String(e.id))},__unstablePrePersist:r?void 0:ge,__unstable_rest_base:t.rest_base}}))}},{kind:"taxonomy",loadEntities:async function(){const e=await T()({path:"/wp/v2/taxonomies?context=view"});return Object.entries(null!=e?e:{}).map((([e,t])=>{var n;return{kind:"taxonomy",baseURL:`/${null!==(n=t?.rest_namespace)&&void 0!==n?n:"wp/v2"}/${t.rest_base}`,baseURLParams:{context:"edit"},name:e,label:t.name}}))}}],ge=(e,t)=>{const n={};return"auto-draft"===e?.status&&(t.status||n.status||(n.status="draft"),t.title&&"Auto Draft"!==t.title||n.title||e?.title&&"Auto Draft"!==e?.title||(n.title="")),n};const be=(e,t,n="get",r=!1)=>{const i=me.find((n=>n.kind===e&&n.name===t)),s="root"===e?"":R(e),o=R(t)+(r?"s":"");return`${n}${s}${r&&"plural"in i&&i?.plural?R(i.plural):o}`},Re=e=>async({select:t,dispatch:n})=>{let r=t.getEntitiesConfig(e);if(r&&0!==r.length)return r;const i=_e.find((t=>t.kind===e));return i?(r=await i.loadEntities(),n(z(r)),r):[]};var we=function(e){return"string"==typeof e?e.split(","):Array.isArray(e)?e:null};var ke=function(e){const t=new WeakMap;return n=>{let r;return t.has(n)?r=t.get(n):(r=e(n),null!==n&&"object"==typeof n&&t.set(n,r)),r}}((function(e){const t={stableKey:"",page:1,perPage:10,fields:null,include:null,context:"default"},n=Object.keys(e).sort();for(let s=0;s<n.length;s++){const o=n[s];let a=e[o];switch(o){case"page":t[o]=Number(a);break;case"per_page":t.perPage=Number(a);break;case"context":t.context=a;break;default:var r,i;if("_fields"===o)t.fields=null!==(r=we(a))&&void 0!==r?r:[],a=t.fields.join();if("include"===o)"number"==typeof a&&(a=a.toString()),t.include=(null!==(i=we(a))&&void 0!==i?i:[]).map(Number),a=t.include.join();t.stableKey+=(t.stableKey?"&":"")+(0,j.addQueryArgs)("",{[o]:a}).slice(1)}}return t}));function Te(e){const{query:t}=e;if(!t)return"default";return ke(t).context}function Se(e,t){return Object.fromEntries(Object.entries(e).filter((([e])=>!t.some((t=>Number.isInteger(t)?t===+e:t===e)))))}const Ie=(0,c.compose)([d((e=>"query"in e)),f((e=>e.query?{...e,...ke(e.query)}:e)),p("context"),p("stableKey")])(((e=null,t)=>{const{type:n,page:r,perPage:i,key:s=ve}=t;return"RECEIVE_ITEMS"!==n?e:function(e,t,n,r){var i;if(1===n&&-1===r)return t;const s=(n-1)*r,o=Math.max(null!==(i=e?.length)&&void 0!==i?i:0,s+t.length),a=new Array(o);for(let n=0;n<o;n++){const r=n>=s&&n<s+t.length;a[n]=r?t[n-s]:e?.[n]}return a}(e||[],t.items.map((e=>e[s])),r,i)}));var Oe=(0,s.combineReducers)({items:function(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=Te(t),r=t.key||ve;return{...e,[n]:{...e[n],...t.items.reduce(((t,i)=>{const s=i[r];return t[s]=function(e,t){if(!e)return t;let n=!1;const r={};for(const i in t)a()(e[i],t[i])?r[i]=e[i]:(n=!0,r[i]=t[i]);if(!n)return e;for(const t in e)r.hasOwnProperty(t)||(r[t]=e[t]);return r}(e?.[n]?.[s],i),t}),{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map((([e,n])=>[e,Se(n,t.itemIds)])))}return e},itemIsComplete:function(e={},t){switch(t.type){case"RECEIVE_ITEMS":{const n=Te(t),{query:r,key:i=ve}=t,s=r?ke(r):{},o=!r||!Array.isArray(s.fields);return{...e,[n]:{...e[n],...t.items.reduce(((t,r)=>{const s=r[i];return t[s]=e?.[n]?.[s]||o,t}),{})}}}case"REMOVE_ITEMS":return Object.fromEntries(Object.entries(e).map((([e,n])=>[e,Se(n,t.itemIds)])))}return e},queries:(e={},t)=>{switch(t.type){case"RECEIVE_ITEMS":return Ie(e,t);case"REMOVE_ITEMS":const n=t.itemIds.reduce(((e,t)=>(e[t]=!0,e)),{});return Object.fromEntries(Object.entries(e).map((([e,t])=>[e,Object.fromEntries(Object.entries(t).map((([e,t])=>[e,t.filter((e=>!n[e]))])))])));default:return e}}});const Ae=e=>(t,n)=>{if("UNDO"===n.type||"REDO"===n.type){const{stackedEdits:r}=n;let i=t;return r.forEach((({kind:t,name:r,recordId:s,property:o,from:a,to:c})=>{i=e(i,{type:"EDIT_ENTITY_RECORD",kind:t,name:r,recordId:s,edits:{[o]:"UNDO"===n.type?a:c}})})),i}return e(t,n)};function Ce(e){return(0,c.compose)([Ae,d((t=>t.name&&t.kind&&t.name===e.name&&t.kind===e.kind)),f((t=>({...t,key:e.key||ve})))])((0,s.combineReducers)({queriedData:Oe,edits:(e={},t)=>{var n;switch(t.type){case"RECEIVE_ITEMS":if("default"!==(null!==(n=t?.query?.context)&&void 0!==n?n:"default"))return e;const r={...e};for(const e of t.items){const n=e[t.key],i=r[n];if(!i)continue;const s=Object.keys(i).reduce(((n,r)=>{var s;return a()(i[r],null!==(s=e[r]?.raw)&&void 0!==s?s:e[r])||t.persistedEdits&&a()(i[r],t.persistedEdits[r])||(n[r]=i[r]),n}),{});Object.keys(s).length?r[n]=s:delete r[n]}return r;case"EDIT_ENTITY_RECORD":const i={...e[t.recordId],...t.edits};return Object.keys(i).forEach((e=>{void 0===i[e]&&delete i[e]})),{...e,[t.recordId]:i}}return e},saving:(e={},t)=>{switch(t.type){case"SAVE_ENTITY_RECORD_START":case"SAVE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"SAVE_ENTITY_RECORD_START"===t.type,error:t.error,isAutosave:t.isAutosave}}}return e},deleting:(e={},t)=>{switch(t.type){case"DELETE_ENTITY_RECORD_START":case"DELETE_ENTITY_RECORD_FINISH":return{...e,[t.recordId]:{pending:"DELETE_ENTITY_RECORD_START"===t.type,error:t.error}}}return e}}))}const xe={list:[],offset:0};var Ue=(0,s.combineReducers)({terms:function(e={},t){return"RECEIVE_TERMS"===t.type?{...e,[t.taxonomy]:t.terms}:e},users:function(e={byId:{},queries:{}},t){return"RECEIVE_USER_QUERY"===t.type?{byId:{...e.byId,...t.users.reduce(((e,t)=>({...e,[t.id]:t})),{})},queries:{...e.queries,[t.queryID]:t.users.map((e=>e.id))}}:e},currentTheme:function(e=void 0,t){return"RECEIVE_CURRENT_THEME"===t.type?t.currentTheme.stylesheet:e},currentGlobalStylesId:function(e=void 0,t){return"RECEIVE_CURRENT_GLOBAL_STYLES_ID"===t.type?t.id:e},currentUser:function(e={},t){return"RECEIVE_CURRENT_USER"===t.type?t.currentUser:e},themeGlobalStyleVariations:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLE_VARIATIONS"===t.type?{...e,[t.stylesheet]:t.variations}:e},themeBaseGlobalStyles:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLES"===t.type?{...e,[t.stylesheet]:t.globalStyles}:e},themeGlobalStyleRevisions:function(e={},t){return"RECEIVE_THEME_GLOBAL_STYLE_REVISIONS"===t.type?{...e,[t.currentId]:t.revisions}:e},taxonomies:function(e=[],t){return"RECEIVE_TAXONOMIES"===t.type?t.taxonomies:e},entities:(e={},t)=>{const n=function(e=me,t){return"ADD_ENTITIES"===t.type?[...e,...t.entities]:e}(e.config,t);let r=e.reducer;if(!r||n!==e.config){const e=n.reduce(((e,t)=>{const{kind:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e}),{});r=(0,s.combineReducers)(Object.entries(e).reduce(((e,[t,n])=>{const r=(0,s.combineReducers)(n.reduce(((e,t)=>({...e,[t.name]:Ce(t)})),{}));return e[t]=r,e}),{}))}const i=r(e.records,t);return i===e.records&&n===e.config&&r===e.reducer?e:{reducer:r,records:i,config:n}},undo:function(e=xe,t){const n=e=>({...e,list:e.list.slice(0,e.offset||void 0),offset:0}),r=e=>{if(!e.cache)return e;let t={...e,list:[...e.list]};t=n(t);const r=t.list.pop(),s=e.cache.reduce(i,r);return t.list.push(s),{...t,cache:void 0}},i=(e=[],{kind:t,name:n,recordId:r,property:i,from:s,to:o})=>{const a=e?.findIndex((({kind:e,name:s,recordId:o,property:a})=>e===t&&s===n&&o===r&&a===i)),c=[...e];return-1!==a?c[a]={...c[a],to:o}:c.push({kind:t,name:n,recordId:r,property:i,from:s,to:o}),c};switch(t.type){case"CREATE_UNDO_LEVEL":return r(e);case"UNDO":case"REDO":return{...r(e),offset:e.offset+("UNDO"===t.type?-1:1)};case"EDIT_ENTITY_RECORD":{if(!t.meta.undo)return e;const s=Object.keys(t.edits).map((e=>({kind:t.kind,name:t.name,recordId:t.recordId,property:e,from:t.meta.undo.edits[e],to:t.edits[e]})));if(t.meta.undo.isCached)return{...e,cache:s.reduce(i,e.cache)};let o=n(e);o=r(o),o={...o,list:[...o.list]};const a=Object.values(t.meta.undo.edits).filter((e=>"function"!=typeof e)),c=Object.values(t.edits).filter((e=>"function"!=typeof e));return l()(a,c)||o.list.push(s),o}}return e},embedPreviews:function(e={},t){if("RECEIVE_EMBED_PREVIEW"===t.type){const{url:n,preview:r}=t;return{...e,[n]:r}}return e},userPermissions:function(e={},t){return"RECEIVE_USER_PERMISSION"===t.type?{...e,[t.key]:t.isAllowed}:e},autosaves:function(e={},t){if("RECEIVE_AUTOSAVES"===t.type){const{postId:n,autosaves:r}=t;return{...e,[n]:r}}return e},blockPatterns:function(e=[],t){return"RECEIVE_BLOCK_PATTERNS"===t.type?t.patterns:e},blockPatternCategories:function(e=[],t){return"RECEIVE_BLOCK_PATTERN_CATEGORIES"===t.type?t.categories:e},navigationFallbackId:function(e=null,t){return"RECEIVE_NAVIGATION_FALLBACK_ID"===t.type?t.fallbackId:e}}),Le={};function Pe(e){return[e]}function je(e,t,n){var r;if(e.length!==t.length)return!1;for(r=n;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function Ne(e,t){var n,r=t||Pe;function i(){n=new WeakMap}function s(){var t,i,s,o,a,c=arguments.length;for(o=new Array(c),s=0;s<c;s++)o[s]=arguments[s];for(t=function(e){var t,r,i,s,o,a=n,c=!0;for(t=0;t<e.length;t++){if(!(o=r=e[t])||"object"!=typeof o){c=!1;break}a.has(r)?a=a.get(r):(i=new WeakMap,a.set(r,i),a=i)}return a.has(Le)||((s=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=c,a.set(Le,s)),a.get(Le)}(a=r.apply(null,o)),t.isUniqueByDependants||(t.lastDependants&&!je(a,t.lastDependants,0)&&t.clear(),t.lastDependants=a),i=t.head;i;){if(je(i.args,o,1))return i!==t.head&&(i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=t.head,i.prev=null,t.head.prev=i,t.head=i),i.val;i=i.next}return i={val:e.apply(null,o)},o[0]=null,i.args=o,t.head&&(t.head.prev=i,i.next=t.head),t.head=i,i.val}return s.getDependants=r,s.clear=i,i(),s}var Ve=n(2167),De=n.n(Ve);function Me(e,t,n){return e&&"object"==typeof e?(t.reduce(((e,r,i)=>(void 0===e[r]&&(Number.isInteger(t[i+1])?e[r]=[]:e[r]={}),i===t.length-1&&(e[r]=n),e[r])),e),e):e}const Ge=new WeakMap;const qe=Ne(((e,t={})=>{let n=Ge.get(e);if(n){const e=n.get(t);if(void 0!==e)return e}else n=new(De()),Ge.set(e,n);const r=function(e,t){const{stableKey:n,page:r,perPage:i,include:s,fields:o,context:a}=ke(t);let c;if(e.queries?.[a]?.[n]&&(c=e.queries[a][n]),!c)return null;const u=-1===i?0:(r-1)*i,l=-1===i?c.length:Math.min(u+i,c.length),d=[];for(let t=u;t<l;t++){const n=c[t];if(Array.isArray(s)&&!s.includes(n))continue;if(!e.items[a]?.hasOwnProperty(n))return null;const r=e.items[a][n];let i;if(Array.isArray(o)){i={};for(let e=0;e<o.length;e++){const t=o[e].split(".");let n=r;t.forEach((e=>{n=n[e]})),Me(i,t,n)}}else{if(!e.itemIsComplete[a]?.[n])return null;i=r}d.push(i)}return d}(e,t);return n.set(t,r),r}));const Be={},Fe=(0,s.createRegistrySelector)((e=>(t,n)=>e(F).isResolving("getEmbedPreview",[n])));function $e(e,t){V()("select( 'core' ).getAuthors()",{since:"5.9",alternative:"select( 'core' ).getUsers({ who: 'authors' })"});const n=(0,j.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",t);return Ye(e,n)}function Qe(e){return e.currentUser}const Ye=Ne(((e,t)=>{var n;return(null!==(n=e.users.queries[t])&&void 0!==n?n:[]).map((t=>e.users.byId[t]))}),((e,t)=>[e.users.queries[t],e.users.byId]));function Ke(e,t){return V()("wp.data.select( 'core' ).getEntitiesByKind()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntitiesConfig()"}),ze(e,t)}function ze(e,t){return e.entities.config.filter((e=>e.kind===t))}function He(e,t,n){return V()("wp.data.select( 'core' ).getEntity()",{since:"6.0",alternative:"wp.data.select( 'core' ).getEntityConfig()"}),We(e,t,n)}function We(e,t,n){return e.entities.config?.find((e=>e.kind===t&&e.name===n))}const Ze=Ne(((e,t,n,r,i)=>{var s;const o=e.entities.records?.[t]?.[n]?.queriedData;if(!o)return;const a=null!==(s=i?.context)&&void 0!==s?s:"default";if(void 0===i){if(!o.itemIsComplete[a]?.[r])return;return o.items[a][r]}const c=o.items[a]?.[r];if(c&&i._fields){var u;const e={},t=null!==(u=we(i._fields))&&void 0!==u?u:[];for(let n=0;n<t.length;n++){const r=t[n].split(".");let i=c;r.forEach((e=>{i=i[e]})),Me(e,r,i)}return e}return c}),((e,t,n,r,i)=>{var s;const o=null!==(s=i?.context)&&void 0!==s?s:"default";return[e.entities.records?.[t]?.[n]?.queriedData?.items[o]?.[r],e.entities.records?.[t]?.[n]?.queriedData?.itemIsComplete[o]?.[r]]}));function Je(e,t,n,r){return Ze(e,t,n,r)}const Xe=Ne(((e,t,n,r)=>{const i=Ze(e,t,n,r);return i&&Object.keys(i).reduce(((r,s)=>{var o;(function(e,t){return(e.rawAttributes||[]).includes(t)})(We(e,t,n),s)?r[s]=null!==(o=i[s]?.raw)&&void 0!==o?o:i[s]:r[s]=i[s];return r}),{})}),((e,t,n,r,i)=>{var s;const o=null!==(s=i?.context)&&void 0!==s?s:"default";return[e.entities.config,e.entities.records?.[t]?.[n]?.queriedData?.items[o]?.[r],e.entities.records?.[t]?.[n]?.queriedData?.itemIsComplete[o]?.[r]]}));function et(e,t,n,r){return Array.isArray(tt(e,t,n,r))}const tt=(e,t,n,r)=>{const i=e.entities.records?.[t]?.[n]?.queriedData;return i?qe(i,r):null},nt=Ne((e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach((r=>{Object.keys(t[r]).forEach((i=>{const s=Object.keys(t[r][i].edits).filter((t=>Ze(e,r,i,t)&&ot(e,r,i,t)));if(s.length){const t=We(e,r,i);s.forEach((s=>{const o=at(e,r,i,s);n.push({key:o?o[t.key||ve]:void 0,title:t?.getTitle?.(o)||"",name:i,kind:r})}))}}))})),n}),(e=>[e.entities.records])),rt=Ne((e=>{const{entities:{records:t}}=e,n=[];return Object.keys(t).forEach((r=>{Object.keys(t[r]).forEach((i=>{const s=Object.keys(t[r][i].saving).filter((t=>ut(e,r,i,t)));if(s.length){const t=We(e,r,i);s.forEach((s=>{const o=at(e,r,i,s);n.push({key:o?o[t.key||ve]:void 0,title:t?.getTitle?.(o)||"",name:i,kind:r})}))}}))})),n}),(e=>[e.entities.records]));function it(e,t,n,r){return e.entities.records?.[t]?.[n]?.edits?.[r]}const st=Ne(((e,t,n,r)=>{const{transientEdits:i}=We(e,t,n)||{},s=it(e,t,n,r)||{};return i?Object.keys(s).reduce(((e,t)=>(i[t]||(e[t]=s[t]),e)),{}):s}),((e,t,n,r)=>[e.entities.config,e.entities.records?.[t]?.[n]?.edits?.[r]]));function ot(e,t,n,r){return ut(e,t,n,r)||Object.keys(st(e,t,n,r)).length>0}const at=Ne(((e,t,n,r)=>({...Xe(e,t,n,r),...it(e,t,n,r)})),((e,t,n,r,i)=>{var s;const o=null!==(s=i?.context)&&void 0!==s?s:"default";return[e.entities.config,e.entities.records?.[t]?.[n]?.queriedData.items[o]?.[r],e.entities.records?.[t]?.[n]?.queriedData.itemIsComplete[o]?.[r],e.entities.records?.[t]?.[n]?.edits?.[r]]}));function ct(e,t,n,r){var i;const{pending:s,isAutosave:o}=null!==(i=e.entities.records?.[t]?.[n]?.saving?.[r])&&void 0!==i?i:{};return Boolean(s&&o)}function ut(e,t,n,r){var i;return null!==(i=e.entities.records?.[t]?.[n]?.saving?.[r]?.pending)&&void 0!==i&&i}function lt(e,t,n,r){var i;return null!==(i=e.entities.records?.[t]?.[n]?.deleting?.[r]?.pending)&&void 0!==i&&i}function dt(e,t,n,r){return e.entities.records?.[t]?.[n]?.saving?.[r]?.error}function ft(e,t,n,r){return e.entities.records?.[t]?.[n]?.deleting?.[r]?.error}function pt(e){return e.undo.offset}function yt(e){return V()("select( 'core' ).getUndoEdit()",{since:"6.3"}),e.undo.list[e.undo.list.length-2+pt(e)]?.[0]}function Et(e){return V()("select( 'core' ).getRedoEdit()",{since:"6.3"}),e.undo.list[e.undo.list.length+pt(e)]?.[0]}function vt(e){return Boolean($(e))}function ht(e){return Boolean(Q(e))}function mt(e){return Ze(e,"root","theme",e.currentTheme)}function _t(e){return e.currentGlobalStylesId}function gt(e){var t;return null!==(t=mt(e)?.theme_supports)&&void 0!==t?t:Be}function bt(e,t){return e.embedPreviews[t]}function Rt(e,t){const n=e.embedPreviews[t],r='<a href="'+t+'">'+t+"</a>";return!!n&&n.html===r}function wt(e,t,n,r){const i=[t,n,r].filter(Boolean).join("/");return e.userPermissions[i]}function kt(e,t,n,r){const i=We(e,t,n);if(!i)return!1;return wt(e,"update",i.__unstable_rest_base,r)}function Tt(e,t,n){return e.autosaves[n]}function St(e,t,n,r){if(void 0===r)return;const i=e.autosaves[n];return i?.find((e=>e.author===r))}const It=(0,s.createRegistrySelector)((e=>(t,n,r)=>e(F).hasFinishedResolution("getAutosaves",[n,r]))),Ot=Ne((e=>[]),(e=>[e.undo.list.length,e.undo.offset]));function At(e,t){const n=tt(e,"postType","wp_template",{"find-template":t});return n?.length?at(e,"postType","wp_template",n[0].id):null}function Ct(e){const t=mt(e);return t?e.themeBaseGlobalStyles[t.stylesheet]:null}function xt(e){const t=mt(e);return t?e.themeGlobalStyleVariations[t.stylesheet]:null}function Ut(e){return e.blockPatterns}function Lt(e){return e.blockPatternCategories}function Pt(e){const t=_t(e);return t?e.themeGlobalStyleRevisions[t]:null}function jt(e,t){return 0===t?e.toLowerCase():b(e,t)}function Nt(e,t){return void 0===t&&(t={}),R(e,y({transform:jt},t))}var Vt=e=>(...t)=>async({resolveSelect:n})=>{await n[e](...t)};const Dt=e=>async({dispatch:t})=>{const n=(0,j.addQueryArgs)("/wp/v2/users/?who=authors&per_page=100",e),r=await T()({path:n});t.receiveUserQuery(n,r)},Mt=()=>async({dispatch:e})=>{const t=await T()({path:"/wp/v2/users/me"});e.receiveCurrentUser(t)},Gt=(e,t,n="",r)=>async({select:i,dispatch:s})=>{const o=(await s(Re(e))).find((n=>n.name===t&&n.kind===e));if(!o||o?.__experimentalNoFetch)return;const a=await s.__unstableAcquireStoreLock(F,["entities","records",e,t,n],{exclusive:!1});try{void 0!==r&&r._fields&&(r={...r,_fields:[...new Set([...we(r._fields)||[],o.key||ve])].join()});const a=(0,j.addQueryArgs)(o.baseURL+(n?"/"+n:""),{...o.baseURLParams,...r});if(void 0!==r){r={...r,include:[n]};if(i.hasEntityRecords(e,t,r))return}const c=await T()({path:a});s.receiveEntityRecords(e,t,c,r)}finally{s.__unstableReleaseStoreLock(a)}},qt=Vt("getEntityRecord"),Bt=Vt("getEntityRecord"),Ft=(e,t,n={})=>async({dispatch:r})=>{const i=(await r(Re(e))).find((n=>n.name===t&&n.kind===e));if(!i||i?.__experimentalNoFetch)return;const s=await r.__unstableAcquireStoreLock(F,["entities","records",e,t],{exclusive:!1});try{n._fields&&(n={...n,_fields:[...new Set([...we(n._fields)||[],i.key||ve])].join()});const s=(0,j.addQueryArgs)(i.baseURL,{...i.baseURLParams,...n});let o=Object.values(await T()({path:s}));if(n._fields&&(o=o.map((e=>(n._fields.split(",").forEach((t=>{e.hasOwnProperty(t)||(e[t]=void 0)})),e)))),r.receiveEntityRecords(e,t,o,n),!n?._fields&&!n.context){const n=i.key||ve,s=o.filter((e=>e[n])).map((r=>[e,t,r[n]]));r({type:"START_RESOLUTIONS",selectorName:"getEntityRecord",args:s}),r({type:"FINISH_RESOLUTIONS",selectorName:"getEntityRecord",args:s})}}finally{r.__unstableReleaseStoreLock(s)}};Ft.shouldInvalidate=(e,t,n)=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&t===e.kind&&n===e.name;const $t=()=>async({dispatch:e,resolveSelect:t})=>{const n=await t.getEntityRecords("root","theme",{status:"active"});e.receiveCurrentTheme(n[0])},Qt=Vt("getCurrentTheme"),Yt=e=>async({dispatch:t})=>{try{const n=await T()({path:(0,j.addQueryArgs)("/oembed/1.0/proxy",{url:e})});t.receiveEmbedPreview(e,n)}catch(n){t.receiveEmbedPreview(e,!1)}},Kt=(e,t,n)=>async({dispatch:r,registry:i})=>{const{hasStartedResolution:s}=i.select(F),o=n?`${t}/${n}`:t,a=["create","read","update","delete"];if(!a.includes(e))throw new Error(`'${e}' is not a valid action.`);for(const r of a){if(r===e)continue;if(s("canUser",[r,t,n]))return}let c;try{c=await T()({path:`/wp/v2/${o}`,method:"OPTIONS",parse:!1})}catch(e){return}const u=c.headers?.get("allow"),l=u?.allow||u||"",d={},f={create:"POST",read:"GET",update:"PUT",delete:"DELETE"};for(const[e,t]of Object.entries(f))d[e]=l.includes(t);for(const e of a)r.receiveUserPermission(`${e}/${o}`,d[e])},zt=(e,t,n)=>async({dispatch:r})=>{const i=(await r(Re(e))).find((n=>n.name===t&&n.kind===e));if(!i)return;const s=i.__unstable_rest_base;await r(Kt("update",s,n))},Ht=(e,t)=>async({dispatch:n,resolveSelect:r})=>{const{rest_base:i,rest_namespace:s="wp/v2"}=await r.getPostType(e),o=await T()({path:`/${s}/${i}/${t}/autosaves?context=edit`});o&&o.length&&n.receiveAutosaves(t,o)},Wt=(e,t)=>async({resolveSelect:n})=>{await n.getAutosaves(e,t)},Zt=e=>async({dispatch:t,resolveSelect:n})=>{let r;try{r=await T()({url:(0,j.addQueryArgs)(e,{"_wp-find-template":!0})}).then((({data:e})=>e))}catch(e){}if(!r)return;const i=await n.getEntityRecord("postType","wp_template",r.id);i&&t.receiveEntityRecords("postType","wp_template",[i],{"find-template":e})};Zt.shouldInvalidate=e=>("RECEIVE_ITEMS"===e.type||"REMOVE_ITEMS"===e.type)&&e.invalidateCache&&"postType"===e.kind&&"wp_template"===e.name;const Jt=()=>async({dispatch:e,resolveSelect:t})=>{const n=await t.getEntityRecords("root","theme",{status:"active"}),r=n?.[0]?._links?.["wp:user-global-styles"]?.[0]?.href;if(r){const t=await T()({url:r});e.__experimentalReceiveCurrentGlobalStylesId(t.id)}},Xt=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.getCurrentTheme(),r=await T()({path:`/wp/v2/global-styles/themes/${n.stylesheet}`});t.__experimentalReceiveThemeBaseGlobalStyles(n.stylesheet,r)},en=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.getCurrentTheme(),r=await T()({path:`/wp/v2/global-styles/themes/${n.stylesheet}/variations`});t.__experimentalReceiveThemeGlobalStyleVariations(n.stylesheet,r)},tn=()=>async({resolveSelect:e,dispatch:t})=>{const n=await e.__experimentalGetCurrentGlobalStylesId(),r=n?await e.getEntityRecord("root","globalStyles",n):void 0,i=r?._links?.["version-history"]?.[0]?.href;if(i){const e=await T()({url:i}),r=e?.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[Nt(e),t])))));t.receiveThemeGlobalStyleRevisions(n,r)}};tn.shouldInvalidate=e=>"SAVE_ENTITY_RECORD_FINISH"===e.type&&"root"===e.kind&&!e.error&&"globalStyles"===e.name;const nn=()=>async({dispatch:e})=>{const t=await T()({path:"/wp/v2/block-patterns/patterns"}),n=t?.map((e=>Object.fromEntries(Object.entries(e).map((([e,t])=>[Nt(e),t])))));e({type:"RECEIVE_BLOCK_PATTERNS",patterns:n})},rn=()=>async({dispatch:e})=>{e({type:"RECEIVE_BLOCK_PATTERN_CATEGORIES",categories:await T()({path:"/wp/v2/block-patterns/categories"})})},sn=()=>async({dispatch:e,select:t})=>{const n=await T()({path:(0,j.addQueryArgs)("/wp-block-editor/v1/navigation-fallback",{_embed:!0})}),r=n?._embedded?.self;if(e.receiveNavigationFallbackId(n?.id),r){const i=!t.getEntityRecord("postType","wp_navigation",n?.id);e.receiveEntityRecords("postType","wp_navigation",r,void 0,i),e.finishResolution("getEntityRecord",["postType","wp_navigation",n?.id])}};function on(e,t){const n={...e};let r=n;for(const e of t)r.children={...r.children,[e]:{locks:[],children:{},...r.children[e]}},r=r.children[e];return n}function an(e,t){let n=e;for(const e of t){const t=n.children[e];if(!t)return null;n=t}return n}function cn({exclusive:e},t){return!(!e||!t.length)||!(e||!t.filter((e=>e.exclusive)).length)}const un={requests:[],tree:{locks:[],children:{}}};function ln(e=un,t){switch(t.type){case"ENQUEUE_LOCK_REQUEST":{const{request:n}=t;return{...e,requests:[n,...e.requests]}}case"GRANT_LOCK_REQUEST":{const{lock:n,request:r}=t,{store:i,path:s}=r,o=[i,...s],a=on(e.tree,o),c=an(a,o);return c.locks=[...c.locks,n],{...e,requests:e.requests.filter((e=>e!==r)),tree:a}}case"RELEASE_LOCK":{const{lock:n}=t,r=[n.store,...n.path],i=on(e.tree,r),s=an(i,r);return s.locks=s.locks.filter((e=>e!==n)),{...e,tree:i}}}return e}function dn(e,t,n,{exclusive:r}){const i=[t,...n],s=e.tree;for(const e of function*(e,t){let n=e;yield n;for(const e of t){const t=n.children[e];if(!t)break;yield t,n=t}}(s,i))if(cn({exclusive:r},e.locks))return!1;const o=an(s,i);if(!o)return!0;for(const e of function*(e){const t=Object.values(e.children);for(;t.length;){const e=t.pop();yield e,t.push(...Object.values(e.children))}}(o))if(cn({exclusive:r},e.locks))return!1;return!0}function fn(){let e=ln(void 0,{type:"@@INIT"});function t(){for(const t of function(e){return e.requests}(e)){const{store:n,path:r,exclusive:i,notifyAcquired:s}=t;if(dn(e,n,r,{exclusive:i})){const o={store:n,path:r,exclusive:i};e=ln(e,{type:"GRANT_LOCK_REQUEST",lock:o,request:t}),s(o)}}}return{acquire:function(n,r,i){return new Promise((s=>{e=ln(e,{type:"ENQUEUE_LOCK_REQUEST",request:{store:n,path:r,exclusive:i,notifyAcquired:s}}),t()}))},release:function(n){e=ln(e,{type:"RELEASE_LOCK",lock:n}),t()}}}function pn(){const e=fn();return{__unstableAcquireStoreLock:function(t,n,{exclusive:r}){return()=>e.acquire(t,n,r)},__unstableReleaseStoreLock:function(t){return()=>e.release(t)}}}var yn=window.wp.privateApis;const{lock:En,unlock:vn}=(0,yn.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/core-data");var hn=window.wp.element,mn=window.wp.blocks,_n=window.wp.blockEditor;const gn=[];let bn={};const Rn={...me.reduce(((e,t)=>(e[t.kind]||(e[t.kind]={}),e[t.kind][t.name]={context:(0,hn.createContext)(void 0)},e)),{}),..._e.reduce(((e,t)=>(e[t.kind]={},e)),{})},wn=(e,t)=>{if(!Rn[e])throw new Error(`Missing entity config for kind: ${e}.`);return Rn[e][t]||(Rn[e][t]={context:(0,hn.createContext)(void 0)}),Rn[e][t].context};function kn({kind:e,type:t,id:n,children:r}){const i=wn(e,t).Provider;return(0,hn.createElement)(i,{value:n},r)}function Tn(e,t){return(0,hn.useContext)(wn(e,t))}function Sn(e,t,n,r){const i=Tn(e,t),o=null!=r?r:i,{value:a,fullValue:c}=(0,s.useSelect)((r=>{const{getEntityRecord:i,getEditedEntityRecord:s}=r(F),a=i(e,t,o),c=s(e,t,o);return a&&c?{value:c[n],fullValue:a[n]}:{}}),[e,t,o,n]),{editEntityRecord:u}=(0,s.useDispatch)(F);return[a,(0,hn.useCallback)((r=>{u(e,t,o,{[n]:r})}),[e,t,o,n]),c]}function In(e,t,{id:n}={}){const r=Tn(e,t),i=null!=n?n:r,{content:o,blocks:a,meta:c}=(0,s.useSelect)((n=>{const{getEditedEntityRecord:r}=n(F),s=r(e,t,i);return{blocks:s.blocks,content:s.content,meta:s.meta}}),[e,t,i]),{__unstableCreateUndoLevel:u,editEntityRecord:l}=(0,s.useDispatch)(F);(0,hn.useEffect)((()=>{if(o&&"function"!=typeof o&&!a){const n=(0,mn.parse)(o);l(e,t,i,{blocks:n},{undoIgnore:!0})}}),[o]);const d=(0,hn.useCallback)((e=>{const t={blocks:e};if(!c)return t;if(void 0===c.footnotes)return t;const{getRichTextValues:n}=vn(_n.privateApis),r=n(e).join("")||"",i=[];if(-1!==r.indexOf("data-fn")){const e=/data-fn="([^"]+)"/g;let t;for(;null!==(t=e.exec(r));)i.push(t[1])}const s=c.footnotes?JSON.parse(c.footnotes):[];if(s.map((e=>e.id)).join("")===i.join(""))return t;const o=i.map((e=>s.find((t=>t.id===e))||bn[e]||{id:e,content:""}));function a(e){e={...e};for(const t in e){const n=e[t];if(Array.isArray(n)){e[t]=n.map(a);continue}if("string"!=typeof n)continue;if(-1===n.indexOf("data-fn"))continue;const r=/(<sup[^>]+data-fn="([^"]+)"[^>]*><a[^>]*>)[\d*]*<\/a><\/sup>/g;e[t]=n.replace(r,((e,t,n)=>`${t}${i.indexOf(n)+1}</a></sup>`));const s=/<a[^>]+data-fn="([^"]+)"[^>]*>\*<\/a>/g;e[t]=e[t].replace(s,((e,t)=>`<sup data-fn="${t}" class="fn"><a href="#${t}" id="${t}-link">${i.indexOf(t)+1}</a></sup>`))}return e}const u=function e(t){return t.map((t=>({...t,attributes:a(t.attributes),innerBlocks:e(t.innerBlocks)})))}(e);return bn={...bn,...s.reduce(((e,t)=>(i.includes(t.id)||(e[t.id]=t),e)),{})},{meta:{...c,footnotes:JSON.stringify(o)},blocks:u}}),[c]),f=(0,hn.useCallback)(((n,r)=>{if(a===n)return u(e,t,i);const{selection:s}=r,o={selection:s,content:({blocks:e=[]})=>(0,mn.__unstableSerializeAndClean)(e),...d(n)};l(e,t,i,o,{isCached:!1})}),[e,t,i,a,d,u,l]),p=(0,hn.useCallback)(((n,r)=>{const{selection:s}=r,o={selection:s,...d(n)};l(e,t,i,o,{isCached:!0})}),[e,t,i,d,l]);return[null!=a?a:gn,p,f]}var On=window.wp.htmlEntities;var An=async(e,t={},n={})=>{const{isInitialSuggestions:r=!1,type:i,subtype:s,page:o,perPage:a=(r?3:20)}=t,{disablePostFormats:c=!1}=n,u=[];return i&&"post"!==i||u.push(T()({path:(0,j.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"post",subtype:s})}).then((e=>e.map((e=>({...e,meta:{kind:"post-type",subtype:s}}))))).catch((()=>[]))),i&&"term"!==i||u.push(T()({path:(0,j.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"term",subtype:s})}).then((e=>e.map((e=>({...e,meta:{kind:"taxonomy",subtype:s}}))))).catch((()=>[]))),c||i&&"post-format"!==i||u.push(T()({path:(0,j.addQueryArgs)("/wp/v2/search",{search:e,page:o,per_page:a,type:"post-format",subtype:s})}).then((e=>e.map((e=>({...e,meta:{kind:"taxonomy",subtype:s}}))))).catch((()=>[]))),i&&"attachment"!==i||u.push(T()({path:(0,j.addQueryArgs)("/wp/v2/media",{search:e,page:o,per_page:a})}).then((e=>e.map((e=>({...e,meta:{kind:"media"}}))))).catch((()=>[]))),Promise.all(u).then((e=>e.reduce(((e,t)=>e.concat(t)),[]).filter((e=>!!e.id)).slice(0,a).map((e=>{const t="attachment"===e.type;return{id:e.id,url:t?e.source_url:e.url,title:(0,On.decodeEntities)(t?e.title.rendered:e.title||"")||(0,S.__)("(no title)"),type:e.subtype||e.type,kind:e?.meta?.kind}}))))};const Cn=new Map;var xn=async(e,t={})=>{const n={url:(0,j.prependHTTP)(e)};if(!(0,j.isURL)(e))return Promise.reject(`${e} is not a valid URL.`);const r=(0,j.getProtocol)(e);return r&&(0,j.isValidProtocol)(r)&&r.startsWith("http")&&/^https?:\/\/[^\/\s]/i.test(e)?Cn.has(e)?Cn.get(e):T()({path:(0,j.addQueryArgs)("/wp-block-editor/v1/url-details",n),...t}).then((t=>(Cn.set(e,t),t))):Promise.reject(`${e} does not have a valid protocol. URLs must be "http" based`)};var Un=function(e,t){var n,r,i=0;function s(){var s,o,a=n,c=arguments.length;e:for(;a;){if(a.args.length===arguments.length){for(o=0;o<c;o++)if(a.args[o]!==arguments[o]){a=a.next;continue e}return a!==n&&(a===r&&(r=a.prev),a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=n,a.prev=null,n.prev=a,n=a),a.val}a=a.next}for(s=new Array(c),o=0;o<c;o++)s[o]=arguments[o];return a={args:s,val:e.apply(null,s)},n?(n.prev=a,a.next=n):r=a,i===t.maxSize?(r=r.prev).next=null:i++,n=a,a.val}return t=t||{},s.clear=function(){n=null,r=null,i=0},s};let Ln;!function(e){e.Idle="IDLE",e.Resolving="RESOLVING",e.Error="ERROR",e.Success="SUCCESS"}(Ln||(Ln={}));const Pn=["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"];function jn(e,t){return(0,s.useSelect)(((t,n)=>e((e=>Nn(t(e))),n)),t)}const Nn=Un((e=>{const t={};for(const n in e)Pn.includes(n)||Object.defineProperty(t,n,{get:()=>(...t)=>{const{getIsResolving:r,hasFinishedResolution:i}=e,s=!!r(n,t),o=!s&&i(n,t),a=e[n](...t);let c;return c=s?Ln.Resolving:o?a?Ln.Success:Ln.Error:Ln.Idle,{data:a,status:c,isResolving:s,hasResolved:o}}});return t}));function Vn(e,t,n,r={enabled:!0}){const{editEntityRecord:i,saveEditedEntityRecord:o}=(0,s.useDispatch)(Kn),a=(0,hn.useMemo)((()=>({edit:r=>i(e,t,n,r),save:(r={})=>o(e,t,n,{throwOnError:!0,...r})})),[i,e,t,n,o]),{editedRecord:c,hasEdits:u}=(0,s.useSelect)((r=>({editedRecord:r(Kn).getEditedEntityRecord(e,t,n),hasEdits:r(Kn).hasEditsForEntityRecord(e,t,n)})),[e,t,n]),{data:l,...d}=jn((i=>r.enabled?i(Kn).getEntityRecord(e,t,n):{data:null}),[e,t,n,r.enabled]);return{record:l,editedRecord:c,hasEdits:u,...d,...a}}function Dn(e,t,n,r){return V()("wp.data.__experimentalUseEntityRecord",{alternative:"wp.data.useEntityRecord",since:"6.1"}),Vn(e,t,n,r)}const Mn=[];function Gn(e,t,n={},r={enabled:!0}){const i=(0,j.addQueryArgs)("",n),{data:s,...o}=jn((i=>r.enabled?i(Kn).getEntityRecords(e,t,n):{data:Mn}),[e,t,i,r.enabled]);return{records:s,...o}}function qn(e,t,n,r){return V()("wp.data.__experimentalUseEntityRecords",{alternative:"wp.data.useEntityRecords",since:"6.1"}),Gn(e,t,n,r)}function Bn(e,t){return jn((n=>{const{canUser:r}=n(Kn),i=r("create",e);if(!t){const t=r("read",e),n=i.isResolving||t.isResolving,s=i.hasResolved&&t.hasResolved;let o=Ln.Idle;return n?o=Ln.Resolving:s&&(o=Ln.Success),{status:o,isResolving:n,hasResolved:s,canCreate:i.hasResolved&&i.data,canRead:t.hasResolved&&t.data}}const s=r("read",e,t),o=r("update",e,t),a=r("delete",e,t),c=s.isResolving||i.isResolving||o.isResolving||a.isResolving,u=s.hasResolved&&i.hasResolved&&o.hasResolved&&a.hasResolved;let l=Ln.Idle;return c?l=Ln.Resolving:u&&(l=Ln.Success),{status:l,isResolving:c,hasResolved:u,canRead:u&&s.data,canCreate:u&&i.data,canUpdate:u&&o.data,canDelete:u&&a.data}}),[e,t])}function Fn(e,t){return V()("wp.data.__experimentalUseResourcePermissions",{alternative:"wp.data.useResourcePermissions",since:"6.1"}),Bn(e,t)}const $n=me.reduce(((e,t)=>{const{kind:n,name:r}=t;return e[be(n,r)]=(e,t,i)=>Ze(e,n,r,t,i),e[be(n,r,"get",!0)]=(e,t)=>tt(e,n,r,t),e}),{}),Qn=me.reduce(((e,t)=>{const{kind:n,name:r}=t;e[be(n,r)]=(e,t)=>Gt(n,r,e,t);const i=be(n,r,"get",!0);return e[i]=(...e)=>Ft(n,r,...e),e[i].shouldInvalidate=e=>Ft.shouldInvalidate(e,n,r),e}),{}),Yn=me.reduce(((e,t)=>{const{kind:n,name:r}=t;return e[be(n,r,"save")]=e=>ce(n,r,e),e[be(n,r,"delete")]=(e,t)=>re(n,r,e,t),e}),{}),Kn=(0,s.createReduxStore)(F,{reducer:Ue,actions:{...e,...Yn,...pn()},selectors:{...t,...$n},resolvers:{...i,...Qn}});vn(Kn).registerPrivateSelectors({getNavigationFallbackId:function(e){return e.navigationFallbackId}}),(0,s.register)(Kn)}(),(window.wp=window.wp||{}).coreData=r}();
\ No newline at end of file
var external_wp_deprecated_namespaceObject = window["wp"]["deprecated"];
var external_wp_deprecated_default = /*#__PURE__*/__webpack_require__.n(external_wp_deprecated_namespaceObject);
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
-function _typeof(obj) {
+function _typeof(o) {
"@babel/helpers - typeof";
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
- return typeof obj;
- } : function (obj) {
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
- }, _typeof(obj);
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
+ return typeof o;
+ } : function (o) {
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
+ }, _typeof(o);
}
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
}
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
-function ownKeys(object, enumerableOnly) {
- var keys = Object.keys(object);
+function ownKeys(e, r) {
+ var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
- var symbols = Object.getOwnPropertySymbols(object);
- enumerableOnly && (symbols = symbols.filter(function (sym) {
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
- })), keys.push.apply(keys, symbols);
+ var o = Object.getOwnPropertySymbols(e);
+ r && (o = o.filter(function (r) {
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
+ })), t.push.apply(t, o);
}
- return keys;
+ return t;
}
-function _objectSpread2(target) {
- for (var i = 1; i < arguments.length; i++) {
- var source = null != arguments[i] ? arguments[i] : {};
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
- _defineProperty(target, key, source[key]);
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
+function _objectSpread2(e) {
+ for (var r = 1; r < arguments.length; r++) {
+ var t = null != arguments[r] ? arguments[r] : {};
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
+ _defineProperty(e, r, t[r]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
- return target;
+ return e;
}
;// CONCATENATED MODULE: ./node_modules/redux/es/redux.js
/*! This file is auto-generated */
-!function(){var e={1919:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function u(e,t,r){var o={};return r.isMergeableObject(e)&&s(e).forEach((function(t){o[t]=n(e[t],r)})),s(t).forEach((function(s){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(i(e,s)&&r.isMergeableObject(t[s])?o[s]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(s,r)(e[s],t[s],r):o[s]=n(t[s],r))})),o}function c(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var i=Array.isArray(r);return i===Array.isArray(e)?i?s.arrayMerge(e,r,s):u(e,r,s):n(r,s)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var a=c;e.exports=a},2167:function(e){"use strict";function t(e){return t="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},t(e)}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t){var r=e._map,n=e._arrayTreeMap,o=e._objectTreeMap;if(r.has(t))return r.get(t);for(var s=Object.keys(t).sort(),i=Array.isArray(t)?n:o,u=0;u<s.length;u++){var c=s[u];if(void 0===(i=i.get(c)))return;var a=t[c];if(void 0===(i=i.get(a)))return}var l=i.get("_ekm_value");return l?(r.delete(l[0]),l[0]=t,i.set("_ekm_value",l),r.set(t,l),l):void 0}var o=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var r=[];t.forEach((function(e,t){r.push([t,e])})),t=r}if(null!=t)for(var n=0;n<t.length;n++)this.set(t[n][0],t[n][1])}var o,s,i;return o=e,s=[{key:"set",value:function(r,n){if(null===r||"object"!==t(r))return this._map.set(r,n),this;for(var o=Object.keys(r).sort(),s=[r,n],i=Array.isArray(r)?this._arrayTreeMap:this._objectTreeMap,u=0;u<o.length;u++){var c=o[u];i.has(c)||i.set(c,new e),i=i.get(c);var a=r[c];i.has(a)||i.set(a,new e),i=i.get(a)}var l=i.get("_ekm_value");return l&&this._map.delete(l[0]),i.set("_ekm_value",s),this._map.set(r,s),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var r=n(this,e);return r?r[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==n(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,s){null!==s&&"object"===t(s)&&(o=o[1]),e.call(n,o,s,r)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],s&&r(o.prototype,s),i&&r(o,i),e}();e.exports=o},9125:function(e){e.exports=function(e){var t,r=Object.keys(e);return t=function(){var e,t,n;for(e="return {",t=0;t<r.length;t++)e+=(n=JSON.stringify(r[t]))+":r["+n+"](s["+n+"],a),";return e+="}",new Function("r,s,a",e)}(),function(n,o){var s,i,u;if(void 0===n)return t(e,{},o);for(s=t(e,n,o),i=r.length;i--;)if(n[u=r[i]]!==s[u])return s;return n}}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};!function(){"use strict";r.r(n),r.d(n,{AsyncModeProvider:function(){return We},RegistryConsumer:function(){return ke},RegistryProvider:function(){return De},combineReducers:function(){return nt},controls:function(){return M},createReduxStore:function(){return ye},createRegistry:function(){return ve},createRegistryControl:function(){return j},createRegistrySelector:function(){return T},dispatch:function(){return tt},plugins:function(){return o},register:function(){return lt},registerGenericStore:function(){return ut},registerStore:function(){return ct},resolveSelect:function(){return ot},select:function(){return rt},subscribe:function(){return it},suspendSelect:function(){return st},use:function(){return at},useDispatch:function(){return et},useRegistry:function(){return Ve},useSelect:function(){return Je},useSuspenseSelect:function(){return Be},withDispatch:function(){return Ye},withRegistry:function(){return Ze},withSelect:function(){return Qe}});var e={};r.r(e),r.d(e,{getCachedResolvers:function(){return Z},getIsResolving:function(){return z},getResolutionError:function(){return q},getResolutionState:function(){return X},hasFinishedResolution:function(){return B},hasResolutionFailed:function(){return Q},hasResolvingSelectors:function(){return ee},hasStartedResolution:function(){return J},isResolving:function(){return Y}});var t={};r.r(t),r.d(t,{failResolution:function(){return ne},failResolutions:function(){return ie},finishResolution:function(){return re},finishResolutions:function(){return se},invalidateResolution:function(){return ue},invalidateResolutionForStore:function(){return ce},invalidateResolutionForStoreSelector:function(){return ae},startResolution:function(){return te},startResolutions:function(){return oe}});var o={};r.r(o),r.d(o,{persistence:function(){return Ae}});var s=r(9125),i=r.n(s),u=window.wp.deprecated,c=r.n(u);function a(e){return a="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},a(e)}function l(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}function f(e,t,r){return(t=l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var d="function"==typeof Symbol&&Symbol.observable||"@@observable",b=function(){return Math.random().toString(36).substring(7).split("").join(".")},v={INIT:"@@redux/INIT"+b(),REPLACE:"@@redux/REPLACE"+b(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+b()}};function S(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function h(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(y(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(y(1));return r(h)(e,t)}if("function"!=typeof e)throw new Error(y(2));var o=e,s=t,i=[],u=i,c=!1;function a(){u===i&&(u=i.slice())}function l(){if(c)throw new Error(y(3));return s}function f(e){if("function"!=typeof e)throw new Error(y(4));if(c)throw new Error(y(5));var t=!0;return a(),u.push(e),function(){if(t){if(c)throw new Error(y(6));t=!1,a();var r=u.indexOf(e);u.splice(r,1),i=null}}}function p(e){if(!S(e))throw new Error(y(7));if(void 0===e.type)throw new Error(y(8));if(c)throw new Error(y(9));try{c=!0,s=o(s,e)}finally{c=!1}for(var t=i=u,r=0;r<t.length;r++){(0,t[r])()}return e}return p({type:v.INIT}),(n={dispatch:p,subscribe:f,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(y(10));o=e,p({type:v.REPLACE})}})[d]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(y(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[d]=function(){return this},e},n}function O(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function m(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(y(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},s=t.map((function(e){return e(o)}));return n=O.apply(void 0,s)(r.dispatch),g(g({},r),{},{dispatch:n})}}}var w=r(2167),R=r.n(w),E=window.wp.reduxRoutine,_=r.n(E),I=window.wp.compose;function T(e){const t=(...r)=>e(t.registry.select)(...r);return t.isRegistrySelector=!0,t}function j(e){return e.isRegistryControl=!0,e}const N="@@data/SELECT",A="@@data/RESOLVE_SELECT",P="@@data/DISPATCH";function L(e){return null!==e&&"object"==typeof e}const M={select:function(e,t,...r){return{type:N,storeKey:L(e)?e.name:e,selectorName:t,args:r}},resolveSelect:function(e,t,...r){return{type:A,storeKey:L(e)?e.name:e,selectorName:t,args:r}},dispatch:function(e,t,...r){return{type:P,storeKey:L(e)?e.name:e,actionName:t,args:r}}},F={[N]:j((e=>({storeKey:t,selectorName:r,args:n})=>e.select(t)[r](...n))),[A]:j((e=>({storeKey:t,selectorName:r,args:n})=>{const o=e.select(t)[r].hasResolver?"resolveSelect":"select";return e[o](t)[r](...n)})),[P]:j((e=>({storeKey:t,actionName:r,args:n})=>e.dispatch(t)[r](...n)))};var x=window.wp.privateApis;const{lock:C,unlock:U}=(0,x.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/data");var k=()=>e=>t=>{return!(r=t)||"object"!=typeof r&&"function"!=typeof r||"function"!=typeof r.then?e(t):t.then((t=>{if(t)return e(t)}));var r};var D={name:"core/data",instantiate(e){const t=t=>(r,...n)=>e.select(r)[t](...n),r=t=>(r,...n)=>e.dispatch(r)[t](...n);return{getSelectors(){return Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map((e=>[e,t(e)])))},getActions(){return Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map((e=>[e,r(e)])))},subscribe(){return()=>()=>{}}}}};var V=(e,t)=>()=>r=>n=>{const o=e.select(D).getCachedResolvers(t);return Object.entries(o).forEach((([r,o])=>{const s=e.stores?.[t]?.resolvers?.[r];s&&s.shouldInvalidate&&o.forEach(((o,i)=>{"finished"!==o?.status&&"error"!==o?.status||!s.shouldInvalidate(n,...i)||e.dispatch(D).invalidateResolution(t,r,i)}))})),r(n)};function G(e){return()=>t=>r=>"function"==typeof r?r(e):t(r)}function H(e){if(null==e)return[];const t=e.length;let r=t;for(;r>0&&void 0===e[r-1];)r--;return r===t?e:e.slice(0,r)}const K=(W="selectorName",e=>(t={},r)=>{const n=r[W];if(void 0===n)return t;const o=e(t[n],r);return o===t[n]?t:{...t,[n]:o}})(((e=new(R()),t)=>{switch(t.type){case"START_RESOLUTION":{const r=new(R())(e);return r.set(H(t.args),{status:"resolving"}),r}case"FINISH_RESOLUTION":{const r=new(R())(e);return r.set(H(t.args),{status:"finished"}),r}case"FAIL_RESOLUTION":{const r=new(R())(e);return r.set(H(t.args),{status:"error",error:t.error}),r}case"START_RESOLUTIONS":{const r=new(R())(e);for(const e of t.args)r.set(H(e),{status:"resolving"});return r}case"FINISH_RESOLUTIONS":{const r=new(R())(e);for(const e of t.args)r.set(H(e),{status:"finished"});return r}case"FAIL_RESOLUTIONS":{const r=new(R())(e);return t.args.forEach(((e,n)=>{const o={status:"error",error:void 0},s=t.errors[n];s&&(o.error=s),r.set(H(e),o)})),r}case"INVALIDATE_RESOLUTION":{const r=new(R())(e);return r.delete(H(t.args)),r}}return e}));var W;var $=(e={},t)=>{switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":if(t.selectorName in e){const{[t.selectorName]:r,...n}=e;return n}return e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return K(e,t)}return e};function X(e,t,r){const n=e[t];if(n)return n.get(H(r))}function z(e,t,r){const n=X(e,t,r);return n&&"resolving"===n.status}function J(e,t,r){return void 0!==X(e,t,r)}function B(e,t,r){const n=X(e,t,r)?.status;return"finished"===n||"error"===n}function Q(e,t,r){return"error"===X(e,t,r)?.status}function q(e,t,r){const n=X(e,t,r);return"error"===n?.status?n.error:null}function Y(e,t,r){return"resolving"===X(e,t,r)?.status}function Z(e){return e}function ee(e){return Object.values(e).some((e=>Array.from(e._map.values()).some((e=>"resolving"===e[1]?.status))))}function te(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function re(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function ne(e,t,r){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:r}}function oe(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function se(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function ie(e,t,r){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:r}}function ue(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function ce(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function ae(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const le=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t},fe=(e,t)=>Object.fromEntries(Object.entries(null!=e?e:{}).map((([e,r])=>[e,t(r,e)]))),pe=(e,t)=>t instanceof Map?Object.fromEntries(t):t;function ge(e){const t=new WeakMap;return{get(r,n){let o=t.get(r);return o||(o=e(r,n),t.set(r,o)),o}}}function ye(r,n){const o={},s={},u={privateActions:o,registerPrivateActions:e=>{Object.assign(o,e)},privateSelectors:s,registerPrivateSelectors:e=>{Object.assign(s,e)}},c={name:r,instantiate:c=>{const a=n.reducer,l=function(e,t,r,n){const o={...t.controls,...F},s=fe(o,(e=>e.isRegistryControl?e(r):e)),u=[V(r,e),k,_()(s),G(n)],c=[m(...u)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&c.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:pe}}));const{reducer:a,initialState:l}=t,f=i()({metadata:$,root:a});return h(f,{root:l},(0,I.compose)(c))}(r,n,c,{registry:c,get dispatch(){return b},get select(){return T},get resolveSelect(){return A()}});C(l,u);const f=function(){const e={};return{isRunning(t,r){return e[t]&&e[t].get(le(r))},clear(t,r){e[t]&&e[t].delete(le(r))},markAsRunning(t,r){e[t]||(e[t]=new(R())),e[t].set(le(r),!0)}}}();function p(e){return(...t)=>Promise.resolve(l.dispatch(e(...t)))}const g={...fe(t,p),...fe(n.actions,p)},y=ge(p),d=new Proxy((()=>{}),{get:(e,t)=>{const r=o[t];return r?y.get(r,t):g[t]}}),b=new Proxy(d,{apply:(e,t,[r])=>l.dispatch(r)});C(g,d);const v=n.resolvers?function(e){return fe(e,(e=>e.fulfill?e:{...e,fulfill:e}))}(n.resolvers):{};function S(e,t){e.isRegistrySelector&&(e.registry=c);const r=(...t)=>{const r=l.__unstableOriginalGetState();return e(r.root,...t)},n=v[t];return n?function(e,t,r,n,o){function s(e){const s=n.getState();if(o.isRunning(t,e)||"function"==typeof r.isFulfilled&&r.isFulfilled(s,...e))return;const{metadata:i}=n.__unstableOriginalGetState();J(i,t,e)||(o.markAsRunning(t,e),setTimeout((async()=>{o.clear(t,e),n.dispatch(te(t,e));try{const o=r.fulfill(...e);o&&await n.dispatch(o),n.dispatch(re(t,e))}catch(r){n.dispatch(ne(t,e,r))}}),0))}const i=(...t)=>(s(t),e(...t));return i.hasResolver=!0,i}(r,t,n,l,f):(r.hasResolver=!1,r)}const O={...fe(e,(function(e){const t=(...t)=>{const r=l.__unstableOriginalGetState();return e(r.metadata,...t)};return t.hasResolver=!1,t})),...fe(n.selectors,S)},w=ge(S);for(const[e,t]of Object.entries(s))w.get(t,e);const E=new Proxy((()=>{}),{get:(e,t)=>{const r=s[t];return r?w.get(r,t):O[t]}}),T=new Proxy(E,{apply:(e,t,[r])=>r(l.__unstableOriginalGetState())});C(O,E);const j=function(e,t){const{getIsResolving:r,hasStartedResolution:n,hasFinishedResolution:o,hasResolutionFailed:s,isResolving:i,getCachedResolvers:u,getResolutionState:c,getResolutionError:a,...l}=e;return fe(l,((r,n)=>r.hasResolver?(...o)=>new Promise(((s,i)=>{const u=()=>e.hasFinishedResolution(n,o),c=t=>{if(e.hasResolutionFailed(n,o)){const t=e.getResolutionError(n,o);i(t)}else s(t)},a=()=>r.apply(null,o),l=a();if(u())return c(l);const f=t.subscribe((()=>{u()&&(f(),c(a()))}))})):async(...e)=>r.apply(null,e)))}(O,l),N=function(e,t){return fe(e,((r,n)=>r.hasResolver?(...o)=>{const s=r.apply(null,o);if(e.hasFinishedResolution(n,o)){if(e.hasResolutionFailed(n,o))throw e.getResolutionError(n,o);return s}throw new Promise((r=>{const s=t.subscribe((()=>{e.hasFinishedResolution(n,o)&&(r(),s())}))}))}:r))}(O,l),A=()=>j;l.__unstableOriginalGetState=l.getState,l.getState=()=>l.__unstableOriginalGetState().root;const P=l&&(e=>{let t=l.__unstableOriginalGetState();return l.subscribe((()=>{const r=l.__unstableOriginalGetState(),n=r!==t;t=r,n&&e()}))});return{reducer:a,store:l,actions:g,selectors:O,resolvers:v,getSelectors:()=>O,getResolveSelectors:A,getSuspendSelectors:()=>N,getActions:()=>g,subscribe:P}}};return C(c,u),c}function de(){let e=!1,t=!1;const r=new Set,n=()=>Array.from(r).forEach((e=>e()));return{get isPaused(){return e},subscribe(e){return r.add(e),()=>r.delete(e)},pause(){e=!0},resume(){e=!1,t&&(t=!1,n())},emit(){e?t=!0:n()}}}function be(e){return"string"==typeof e?e:e.name}function ve(e={},t=null){const r={},n=de();let o=null;function s(){n.emit()}function i(e,n){if(r[e])return console.error('Store "'+e+'" is already registered.'),r[e];const o=n();if("function"!=typeof o.getSelectors)throw new TypeError("store.getSelectors must be a function");if("function"!=typeof o.getActions)throw new TypeError("store.getActions must be a function");if("function"!=typeof o.subscribe)throw new TypeError("store.subscribe must be a function");o.emitter=de();const i=o.subscribe;if(o.subscribe=e=>{const t=o.emitter.subscribe(e),r=i((()=>{o.emitter.isPaused?o.emitter.emit():e()}));return()=>{r?.(),t?.()}},r[e]=o,o.subscribe(s),t)try{U(o.store).registerPrivateActions(U(t).privateActionsOf(e)),U(o.store).registerPrivateSelectors(U(t).privateSelectorsOf(e))}catch(e){}return o}let u={batch:function(e){n.isPaused?e():(n.pause(),Object.values(r).forEach((e=>e.emitter.pause())),e(),n.resume(),Object.values(r).forEach((e=>e.emitter.resume())))},stores:r,namespaces:r,subscribe:(e,o)=>{if(!o)return n.subscribe(e);const s=be(o),i=r[s];return i?i.subscribe(e):t?t.subscribe(e,o):n.subscribe(e)},select:function(e){const n=be(e);o?.add(n);const s=r[n];return s?s.getSelectors():t?.select(n)},resolveSelect:function(e){const n=be(e);o?.add(n);const s=r[n];return s?s.getResolveSelectors():t&&t.resolveSelect(n)},suspendSelect:function(e){const n=be(e);o?.add(n);const s=r[n];return s?s.getSuspendSelectors():t&&t.suspendSelect(n)},dispatch:function(e){const n=be(e),o=r[n];return o?o.getActions():t&&t.dispatch(n)},use:function(e,t){if(!e)return;return u={...u,...e(u,t)},u},register:function(e){i(e.name,(()=>e.instantiate(u)))},registerGenericStore:function(e,t){c()("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),i(e,(()=>t))},registerStore:function(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");return i(e,(()=>ye(e,t).instantiate(u))).store},__unstableMarkListeningStores:function(e,t){o=new Set;try{return e.call(this)}finally{t.current=Array.from(o),o=null}}};u.register(D);for(const[t,r]of Object.entries(e))u.register(ye(t,r));t&&t.subscribe(s);const a=(l=u,Object.fromEntries(Object.entries(l).map((([e,t])=>"function"!=typeof t?[e,t]:[e,function(){return u[e].apply(null,arguments)}]))));var l;return C(a,{privateActionsOf:e=>{try{return U(r[e].store).privateActions}catch(e){return{}}},privateSelectorsOf:e=>{try{return U(r[e].store).privateSelectors}catch(e){return{}}}}),a}var Se=ve();
+!function(){var e={1919:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function o(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function u(e,t,r){var o={};return r.isMergeableObject(e)&&s(e).forEach((function(t){o[t]=n(e[t],r)})),s(t).forEach((function(s){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(i(e,s)&&r.isMergeableObject(t[s])?o[s]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(s,r)(e[s],t[s],r):o[s]=n(t[s],r))})),o}function c(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||o,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var i=Array.isArray(r);return i===Array.isArray(e)?i?s.arrayMerge(e,r,s):u(e,r,s):n(r,s)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var a=c;e.exports=a},2167:function(e){"use strict";function t(e){return t="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},t(e)}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t){var r=e._map,n=e._arrayTreeMap,o=e._objectTreeMap;if(r.has(t))return r.get(t);for(var s=Object.keys(t).sort(),i=Array.isArray(t)?n:o,u=0;u<s.length;u++){var c=s[u];if(void 0===(i=i.get(c)))return;var a=t[c];if(void 0===(i=i.get(a)))return}var l=i.get("_ekm_value");return l?(r.delete(l[0]),l[0]=t,i.set("_ekm_value",l),r.set(t,l),l):void 0}var o=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clear(),t instanceof e){var r=[];t.forEach((function(e,t){r.push([t,e])})),t=r}if(null!=t)for(var n=0;n<t.length;n++)this.set(t[n][0],t[n][1])}var o,s,i;return o=e,s=[{key:"set",value:function(r,n){if(null===r||"object"!==t(r))return this._map.set(r,n),this;for(var o=Object.keys(r).sort(),s=[r,n],i=Array.isArray(r)?this._arrayTreeMap:this._objectTreeMap,u=0;u<o.length;u++){var c=o[u];i.has(c)||i.set(c,new e),i=i.get(c);var a=r[c];i.has(a)||i.set(a,new e),i=i.get(a)}var l=i.get("_ekm_value");return l&&this._map.delete(l[0]),i.set("_ekm_value",s),this._map.set(r,s),this}},{key:"get",value:function(e){if(null===e||"object"!==t(e))return this._map.get(e);var r=n(this,e);return r?r[1]:void 0}},{key:"has",value:function(e){return null===e||"object"!==t(e)?this._map.has(e):void 0!==n(this,e)}},{key:"delete",value:function(e){return!!this.has(e)&&(this.set(e,void 0),!0)}},{key:"forEach",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;this._map.forEach((function(o,s){null!==s&&"object"===t(s)&&(o=o[1]),e.call(n,o,s,r)}))}},{key:"clear",value:function(){this._map=new Map,this._arrayTreeMap=new Map,this._objectTreeMap=new Map}},{key:"size",get:function(){return this._map.size}}],s&&r(o.prototype,s),i&&r(o,i),e}();e.exports=o},9125:function(e){e.exports=function(e){var t,r=Object.keys(e);return t=function(){var e,t,n;for(e="return {",t=0;t<r.length;t++)e+=(n=JSON.stringify(r[t]))+":r["+n+"](s["+n+"],a),";return e+="}",new Function("r,s,a",e)}(),function(n,o){var s,i,u;if(void 0===n)return t(e,{},o);for(s=t(e,n,o),i=r.length;i--;)if(n[u=r[i]]!==s[u])return s;return n}}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};!function(){"use strict";r.r(n),r.d(n,{AsyncModeProvider:function(){return Ke},RegistryConsumer:function(){return Ue},RegistryProvider:function(){return ke},combineReducers:function(){return rt},controls:function(){return L},createReduxStore:function(){return ge},createRegistry:function(){return be},createRegistryControl:function(){return T},createRegistrySelector:function(){return I},dispatch:function(){return et},plugins:function(){return o},register:function(){return at},registerGenericStore:function(){return it},registerStore:function(){return ut},resolveSelect:function(){return nt},select:function(){return tt},subscribe:function(){return st},suspendSelect:function(){return ot},use:function(){return ct},useDispatch:function(){return Ze},useRegistry:function(){return De},useSelect:function(){return ze},useSuspenseSelect:function(){return Je},withDispatch:function(){return qe},withRegistry:function(){return Ye},withSelect:function(){return Be}});var e={};r.r(e),r.d(e,{getCachedResolvers:function(){return Y},getIsResolving:function(){return X},getResolutionError:function(){return Q},getResolutionState:function(){return $},hasFinishedResolution:function(){return J},hasResolutionFailed:function(){return B},hasResolvingSelectors:function(){return Z},hasStartedResolution:function(){return z},isResolving:function(){return q}});var t={};r.r(t),r.d(t,{failResolution:function(){return re},failResolutions:function(){return se},finishResolution:function(){return te},finishResolutions:function(){return oe},invalidateResolution:function(){return ie},invalidateResolutionForStore:function(){return ue},invalidateResolutionForStoreSelector:function(){return ce},startResolution:function(){return ee},startResolutions:function(){return ne}});var o={};r.r(o),r.d(o,{persistence:function(){return Ne}});var s=r(9125),i=r.n(s),u=window.wp.deprecated,c=r.n(u);function a(e){return a="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},a(e)}function l(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){var n,o,s;n=e,o=t,s=r[t],(o=l(o))in n?Object.defineProperty(n,o,{value:s,enumerable:!0,configurable:!0,writable:!0}):n[o]=s})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var y="function"==typeof Symbol&&Symbol.observable||"@@observable",d=function(){return Math.random().toString(36).substring(7).split("").join(".")},b={INIT:"@@redux/INIT"+d(),REPLACE:"@@redux/REPLACE"+d(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+d()}};function v(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function S(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(g(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(g(1));return r(S)(e,t)}if("function"!=typeof e)throw new Error(g(2));var o=e,s=t,i=[],u=i,c=!1;function a(){u===i&&(u=i.slice())}function l(){if(c)throw new Error(g(3));return s}function f(e){if("function"!=typeof e)throw new Error(g(4));if(c)throw new Error(g(5));var t=!0;return a(),u.push(e),function(){if(t){if(c)throw new Error(g(6));t=!1,a();var r=u.indexOf(e);u.splice(r,1),i=null}}}function p(e){if(!v(e))throw new Error(g(7));if(void 0===e.type)throw new Error(g(8));if(c)throw new Error(g(9));try{c=!0,s=o(s,e)}finally{c=!1}for(var t=i=u,r=0;r<t.length;r++){(0,t[r])()}return e}return p({type:b.INIT}),(n={dispatch:p,subscribe:f,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(g(10));o=e,p({type:b.REPLACE})}})[y]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(g(11));function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[y]=function(){return this},e},n}function h(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function O(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error(g(15))},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},s=t.map((function(e){return e(o)}));return n=h.apply(void 0,s)(r.dispatch),p(p({},r),{},{dispatch:n})}}}var m=r(2167),w=r.n(m),R=window.wp.reduxRoutine,E=r.n(R),_=window.wp.compose;function I(e){const t=(...r)=>e(t.registry.select)(...r);return t.isRegistrySelector=!0,t}function T(e){return e.isRegistryControl=!0,e}const j="@@data/SELECT",N="@@data/RESOLVE_SELECT",A="@@data/DISPATCH";function P(e){return null!==e&&"object"==typeof e}const L={select:function(e,t,...r){return{type:j,storeKey:P(e)?e.name:e,selectorName:t,args:r}},resolveSelect:function(e,t,...r){return{type:N,storeKey:P(e)?e.name:e,selectorName:t,args:r}},dispatch:function(e,t,...r){return{type:A,storeKey:P(e)?e.name:e,actionName:t,args:r}}},M={[j]:T((e=>({storeKey:t,selectorName:r,args:n})=>e.select(t)[r](...n))),[N]:T((e=>({storeKey:t,selectorName:r,args:n})=>{const o=e.select(t)[r].hasResolver?"resolveSelect":"select";return e[o](t)[r](...n)})),[A]:T((e=>({storeKey:t,actionName:r,args:n})=>e.dispatch(t)[r](...n)))};var F=window.wp.privateApis;const{lock:x,unlock:C}=(0,F.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/data");var U=()=>e=>t=>{return!(r=t)||"object"!=typeof r&&"function"!=typeof r||"function"!=typeof r.then?e(t):t.then((t=>{if(t)return e(t)}));var r};var k={name:"core/data",instantiate(e){const t=t=>(r,...n)=>e.select(r)[t](...n),r=t=>(r,...n)=>e.dispatch(r)[t](...n);return{getSelectors(){return Object.fromEntries(["getIsResolving","hasStartedResolution","hasFinishedResolution","isResolving","getCachedResolvers"].map((e=>[e,t(e)])))},getActions(){return Object.fromEntries(["startResolution","finishResolution","invalidateResolution","invalidateResolutionForStore","invalidateResolutionForStoreSelector"].map((e=>[e,r(e)])))},subscribe(){return()=>()=>{}}}}};var D=(e,t)=>()=>r=>n=>{const o=e.select(k).getCachedResolvers(t);return Object.entries(o).forEach((([r,o])=>{const s=e.stores?.[t]?.resolvers?.[r];s&&s.shouldInvalidate&&o.forEach(((o,i)=>{"finished"!==o?.status&&"error"!==o?.status||!s.shouldInvalidate(n,...i)||e.dispatch(k).invalidateResolution(t,r,i)}))})),r(n)};function V(e){return()=>t=>r=>"function"==typeof r?r(e):t(r)}function G(e){if(null==e)return[];const t=e.length;let r=t;for(;r>0&&void 0===e[r-1];)r--;return r===t?e:e.slice(0,r)}const H=(K="selectorName",e=>(t={},r)=>{const n=r[K];if(void 0===n)return t;const o=e(t[n],r);return o===t[n]?t:{...t,[n]:o}})(((e=new(w()),t)=>{switch(t.type){case"START_RESOLUTION":{const r=new(w())(e);return r.set(G(t.args),{status:"resolving"}),r}case"FINISH_RESOLUTION":{const r=new(w())(e);return r.set(G(t.args),{status:"finished"}),r}case"FAIL_RESOLUTION":{const r=new(w())(e);return r.set(G(t.args),{status:"error",error:t.error}),r}case"START_RESOLUTIONS":{const r=new(w())(e);for(const e of t.args)r.set(G(e),{status:"resolving"});return r}case"FINISH_RESOLUTIONS":{const r=new(w())(e);for(const e of t.args)r.set(G(e),{status:"finished"});return r}case"FAIL_RESOLUTIONS":{const r=new(w())(e);return t.args.forEach(((e,n)=>{const o={status:"error",error:void 0},s=t.errors[n];s&&(o.error=s),r.set(G(e),o)})),r}case"INVALIDATE_RESOLUTION":{const r=new(w())(e);return r.delete(G(t.args)),r}}return e}));var K;var W=(e={},t)=>{switch(t.type){case"INVALIDATE_RESOLUTION_FOR_STORE":return{};case"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR":if(t.selectorName in e){const{[t.selectorName]:r,...n}=e;return n}return e;case"START_RESOLUTION":case"FINISH_RESOLUTION":case"FAIL_RESOLUTION":case"START_RESOLUTIONS":case"FINISH_RESOLUTIONS":case"FAIL_RESOLUTIONS":case"INVALIDATE_RESOLUTION":return H(e,t)}return e};function $(e,t,r){const n=e[t];if(n)return n.get(G(r))}function X(e,t,r){const n=$(e,t,r);return n&&"resolving"===n.status}function z(e,t,r){return void 0!==$(e,t,r)}function J(e,t,r){const n=$(e,t,r)?.status;return"finished"===n||"error"===n}function B(e,t,r){return"error"===$(e,t,r)?.status}function Q(e,t,r){const n=$(e,t,r);return"error"===n?.status?n.error:null}function q(e,t,r){return"resolving"===$(e,t,r)?.status}function Y(e){return e}function Z(e){return Object.values(e).some((e=>Array.from(e._map.values()).some((e=>"resolving"===e[1]?.status))))}function ee(e,t){return{type:"START_RESOLUTION",selectorName:e,args:t}}function te(e,t){return{type:"FINISH_RESOLUTION",selectorName:e,args:t}}function re(e,t,r){return{type:"FAIL_RESOLUTION",selectorName:e,args:t,error:r}}function ne(e,t){return{type:"START_RESOLUTIONS",selectorName:e,args:t}}function oe(e,t){return{type:"FINISH_RESOLUTIONS",selectorName:e,args:t}}function se(e,t,r){return{type:"FAIL_RESOLUTIONS",selectorName:e,args:t,errors:r}}function ie(e,t){return{type:"INVALIDATE_RESOLUTION",selectorName:e,args:t}}function ue(){return{type:"INVALIDATE_RESOLUTION_FOR_STORE"}}function ce(e){return{type:"INVALIDATE_RESOLUTION_FOR_STORE_SELECTOR",selectorName:e}}const ae=e=>{const t=[...e];for(let e=t.length-1;e>=0;e--)void 0===t[e]&&t.splice(e,1);return t},le=(e,t)=>Object.fromEntries(Object.entries(null!=e?e:{}).map((([e,r])=>[e,t(r,e)]))),fe=(e,t)=>t instanceof Map?Object.fromEntries(t):t;function pe(e){const t=new WeakMap;return{get(r,n){let o=t.get(r);return o||(o=e(r,n),t.set(r,o)),o}}}function ge(r,n){const o={},s={},u={privateActions:o,registerPrivateActions:e=>{Object.assign(o,e)},privateSelectors:s,registerPrivateSelectors:e=>{Object.assign(s,e)}},c={name:r,instantiate:c=>{const a=n.reducer,l=function(e,t,r,n){const o={...t.controls,...M},s=le(o,(e=>e.isRegistryControl?e(r):e)),u=[D(r,e),U,E()(s),V(n)],c=[O(...u)];"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&c.push(window.__REDUX_DEVTOOLS_EXTENSION__({name:e,instanceId:e,serialize:{replacer:fe}}));const{reducer:a,initialState:l}=t,f=i()({metadata:W,root:a});return S(f,{root:l},(0,_.compose)(c))}(r,n,c,{registry:c,get dispatch(){return b},get select(){return T},get resolveSelect(){return A()}});x(l,u);const f=function(){const e={};return{isRunning(t,r){return e[t]&&e[t].get(ae(r))},clear(t,r){e[t]&&e[t].delete(ae(r))},markAsRunning(t,r){e[t]||(e[t]=new(w())),e[t].set(ae(r),!0)}}}();function p(e){return(...t)=>Promise.resolve(l.dispatch(e(...t)))}const g={...le(t,p),...le(n.actions,p)},y=pe(p),d=new Proxy((()=>{}),{get:(e,t)=>{const r=o[t];return r?y.get(r,t):g[t]}}),b=new Proxy(d,{apply:(e,t,[r])=>l.dispatch(r)});x(g,d);const v=n.resolvers?function(e){return le(e,(e=>e.fulfill?e:{...e,fulfill:e}))}(n.resolvers):{};function h(e,t){e.isRegistrySelector&&(e.registry=c);const r=(...t)=>{const r=l.__unstableOriginalGetState();return e(r.root,...t)},n=v[t];return n?function(e,t,r,n,o){function s(e){const s=n.getState();if(o.isRunning(t,e)||"function"==typeof r.isFulfilled&&r.isFulfilled(s,...e))return;const{metadata:i}=n.__unstableOriginalGetState();z(i,t,e)||(o.markAsRunning(t,e),setTimeout((async()=>{o.clear(t,e),n.dispatch(ee(t,e));try{const o=r.fulfill(...e);o&&await n.dispatch(o),n.dispatch(te(t,e))}catch(r){n.dispatch(re(t,e,r))}}),0))}const i=(...t)=>(s(t),e(...t));return i.hasResolver=!0,i}(r,t,n,l,f):(r.hasResolver=!1,r)}const m={...le(e,(function(e){const t=(...t)=>{const r=l.__unstableOriginalGetState();return e(r.metadata,...t)};return t.hasResolver=!1,t})),...le(n.selectors,h)},R=pe(h);for(const[e,t]of Object.entries(s))R.get(t,e);const I=new Proxy((()=>{}),{get:(e,t)=>{const r=s[t];return r?R.get(r,t):m[t]}}),T=new Proxy(I,{apply:(e,t,[r])=>r(l.__unstableOriginalGetState())});x(m,I);const j=function(e,t){const{getIsResolving:r,hasStartedResolution:n,hasFinishedResolution:o,hasResolutionFailed:s,isResolving:i,getCachedResolvers:u,getResolutionState:c,getResolutionError:a,...l}=e;return le(l,((r,n)=>r.hasResolver?(...o)=>new Promise(((s,i)=>{const u=()=>e.hasFinishedResolution(n,o),c=t=>{if(e.hasResolutionFailed(n,o)){const t=e.getResolutionError(n,o);i(t)}else s(t)},a=()=>r.apply(null,o),l=a();if(u())return c(l);const f=t.subscribe((()=>{u()&&(f(),c(a()))}))})):async(...e)=>r.apply(null,e)))}(m,l),N=function(e,t){return le(e,((r,n)=>r.hasResolver?(...o)=>{const s=r.apply(null,o);if(e.hasFinishedResolution(n,o)){if(e.hasResolutionFailed(n,o))throw e.getResolutionError(n,o);return s}throw new Promise((r=>{const s=t.subscribe((()=>{e.hasFinishedResolution(n,o)&&(r(),s())}))}))}:r))}(m,l),A=()=>j;l.__unstableOriginalGetState=l.getState,l.getState=()=>l.__unstableOriginalGetState().root;const P=l&&(e=>{let t=l.__unstableOriginalGetState();return l.subscribe((()=>{const r=l.__unstableOriginalGetState(),n=r!==t;t=r,n&&e()}))});return{reducer:a,store:l,actions:g,selectors:m,resolvers:v,getSelectors:()=>m,getResolveSelectors:A,getSuspendSelectors:()=>N,getActions:()=>g,subscribe:P}}};return x(c,u),c}function ye(){let e=!1,t=!1;const r=new Set,n=()=>Array.from(r).forEach((e=>e()));return{get isPaused(){return e},subscribe(e){return r.add(e),()=>r.delete(e)},pause(){e=!0},resume(){e=!1,t&&(t=!1,n())},emit(){e?t=!0:n()}}}function de(e){return"string"==typeof e?e:e.name}function be(e={},t=null){const r={},n=ye();let o=null;function s(){n.emit()}function i(e,n){if(r[e])return console.error('Store "'+e+'" is already registered.'),r[e];const o=n();if("function"!=typeof o.getSelectors)throw new TypeError("store.getSelectors must be a function");if("function"!=typeof o.getActions)throw new TypeError("store.getActions must be a function");if("function"!=typeof o.subscribe)throw new TypeError("store.subscribe must be a function");o.emitter=ye();const i=o.subscribe;if(o.subscribe=e=>{const t=o.emitter.subscribe(e),r=i((()=>{o.emitter.isPaused?o.emitter.emit():e()}));return()=>{r?.(),t?.()}},r[e]=o,o.subscribe(s),t)try{C(o.store).registerPrivateActions(C(t).privateActionsOf(e)),C(o.store).registerPrivateSelectors(C(t).privateSelectorsOf(e))}catch(e){}return o}let u={batch:function(e){n.isPaused?e():(n.pause(),Object.values(r).forEach((e=>e.emitter.pause())),e(),n.resume(),Object.values(r).forEach((e=>e.emitter.resume())))},stores:r,namespaces:r,subscribe:(e,o)=>{if(!o)return n.subscribe(e);const s=de(o),i=r[s];return i?i.subscribe(e):t?t.subscribe(e,o):n.subscribe(e)},select:function(e){const n=de(e);o?.add(n);const s=r[n];return s?s.getSelectors():t?.select(n)},resolveSelect:function(e){const n=de(e);o?.add(n);const s=r[n];return s?s.getResolveSelectors():t&&t.resolveSelect(n)},suspendSelect:function(e){const n=de(e);o?.add(n);const s=r[n];return s?s.getSuspendSelectors():t&&t.suspendSelect(n)},dispatch:function(e){const n=de(e),o=r[n];return o?o.getActions():t&&t.dispatch(n)},use:function(e,t){if(!e)return;return u={...u,...e(u,t)},u},register:function(e){i(e.name,(()=>e.instantiate(u)))},registerGenericStore:function(e,t){c()("wp.data.registerGenericStore",{since:"5.9",alternative:"wp.data.register( storeDescriptor )"}),i(e,(()=>t))},registerStore:function(e,t){if(!t.reducer)throw new TypeError("Must specify store reducer");return i(e,(()=>ge(e,t).instantiate(u))).store},__unstableMarkListeningStores:function(e,t){o=new Set;try{return e.call(this)}finally{t.current=Array.from(o),o=null}}};u.register(k);for(const[t,r]of Object.entries(e))u.register(ge(t,r));t&&t.subscribe(s);const a=(l=u,Object.fromEntries(Object.entries(l).map((([e,t])=>"function"!=typeof t?[e,t]:[e,function(){return u[e].apply(null,arguments)}]))));var l;return x(a,{privateActionsOf:e=>{try{return C(r[e].store).privateActions}catch(e){return{}}},privateSelectorsOf:e=>{try{return C(r[e].store).privateSelectors}catch(e){return{}}}}),a}var ve=be();
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
-function he(e){return"[object Object]"===Object.prototype.toString.call(e)}function Oe(e){var t,r;return!1!==he(e)&&(void 0===(t=e.constructor)||!1!==he(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}var me=r(1919),we=r.n(me);let Re;const Ee={getItem(e){return Re&&Re[e]?Re[e]:null},setItem(e,t){Re||Ee.clear(),Re[e]=String(t)},clear(){Re=Object.create(null)}};var _e=Ee;let Ie;try{Ie=window.localStorage,Ie.setItem("__wpDataTestLocalStorage",""),Ie.removeItem("__wpDataTestLocalStorage")}catch(e){Ie=_e}const Te=Ie,je="WP_DATA";function Ne(e,t){const r=function(e){const{storage:t=Te,storageKey:r=je}=e;let n;return{get:function(){if(void 0===n){const e=t.getItem(r);if(null===e)n={};else try{n=JSON.parse(e)}catch(e){n={}}}return n},set:function(e,o){n={...n,[e]:o},t.setItem(r,JSON.stringify(n))}}}(t);return{registerStore(t,n){if(!n.persist)return e.registerStore(t,n);const o=r.get()[t];if(void 0!==o){let e=n.reducer(n.initialState,{type:"@@WP/PERSISTENCE_RESTORE"});e=Oe(e)&&Oe(o)?we()(e,o,{isMergeableObject:Oe}):o,n={...n,initialState:e}}const s=e.registerStore(t,n);return s.subscribe(function(e,t,n){let o;if(Array.isArray(n)){const e=n.reduce(((e,t)=>Object.assign(e,{[t]:(e,r)=>r.nextState[t]})),{});s=nt(e),o=(e,t)=>t.nextState===e?e:s(e,t)}else o=(e,t)=>t.nextState;var s;let i=o(void 0,{nextState:e()});return()=>{const n=o(i,{nextState:e()});n!==i&&(r.set(t,n),i=n)}}(s.getState,t,n.persist)),s}}}Ne.__unstableMigrate=()=>{};var Ae=Ne,Pe=window.wp.element,Le=window.wp.priorityQueue,Me=window.wp.isShallowEqual,Fe=r.n(Me);const xe=(0,Pe.createContext)(Se),{Consumer:Ce,Provider:Ue}=xe,ke=Ce;var De=Ue;function Ve(){return(0,Pe.useContext)(xe)}const Ge=(0,Pe.createContext)(!1),{Consumer:He,Provider:Ke}=Ge;var We=Ke;const $e=(0,Le.createQueue)();function Xe(e,t){const r=t?e.suspendSelect:e.select,n={};let o,s,i,u,c=!1;return(t,a)=>{function l(){if(c&&t===o)return s;const a={current:null},l=e.__unstableMarkListeningStores((()=>t(r,e)),a);u?u.updateStores(a.current):u=(t=>{const r=[...t],o=new Set;return{subscribe:function(t){c=!1;const s=()=>{c=!1,t()},u=()=>{i?$e.add(n,s):s()},a=[];function l(t){a.push(e.subscribe(u,t))}for(const e of r)l(e);return o.add(l),()=>{o.delete(l);for(const e of a.values())e?.();$e.cancel(n)}},updateStores:function(e){for(const t of e)if(!r.includes(t)){r.push(t);for(const e of o)e(t)}}}})(a.current),Fe()(s,l)||(s=l),o=t,c=!0}return i&&!a&&(c=!1,$e.cancel(n)),l(),i=a,{subscribe:u.subscribe,getValue:function(){return l(),s}}}}function ze(e,t,r){const n=Ve(),o=(0,Pe.useContext)(Ge),s=(0,Pe.useMemo)((()=>Xe(n,e)),[n]),i=(0,Pe.useCallback)(t,r),{subscribe:u,getValue:c}=s(i,o),a=(0,Pe.useSyncExternalStore)(u,c,c);return(0,Pe.useDebugValue)(a),a}function Je(e,t){const r="function"!=typeof e,n=(0,Pe.useRef)(r);if(r!==n.current){const e=n.current?"static":"mapping";throw new Error(`Switching useSelect from ${e} to ${r?"static":"mapping"} is not allowed`)}return r?(o=e,Ve().select(o)):ze(!1,e,t);var o}function Be(e,t){return ze(!0,e,t)}var Qe=e=>(0,I.createHigherOrderComponent)((t=>(0,I.pure)((r=>{const n=Je(((t,n)=>e(t,r,n)));return(0,Pe.createElement)(t,{...r,...n})}))),"withSelect");var qe=(e,t)=>{const r=Ve(),n=(0,Pe.useRef)(e);return(0,I.useIsomorphicLayoutEffect)((()=>{n.current=e})),(0,Pe.useMemo)((()=>{const e=n.current(r.dispatch,r);return Object.fromEntries(Object.entries(e).map((([e,t])=>("function"!=typeof t&&console.warn(`Property ${e} returned from dispatchMap in useDispatchWithMap must be a function.`),[e,(...t)=>n.current(r.dispatch,r)[e](...t)]))))}),[r,...t])};var Ye=e=>(0,I.createHigherOrderComponent)((t=>r=>{const n=qe(((t,n)=>e(t,r,n)),[]);return(0,Pe.createElement)(t,{...r,...n})}),"withDispatch");var Ze=(0,I.createHigherOrderComponent)((e=>t=>(0,Pe.createElement)(ke,null,(r=>(0,Pe.createElement)(e,{...t,registry:r})))),"withRegistry");var et=e=>{const{dispatch:t}=Ve();return void 0===e?t:t(e)};function tt(e){return Se.dispatch(e)}function rt(e){return Se.select(e)}const nt=i(),ot=Se.resolveSelect,st=Se.suspendSelect,it=Se.subscribe,ut=Se.registerGenericStore,ct=Se.registerStore,at=Se.use,lt=Se.register}(),(window.wp=window.wp||{}).data=n}();
\ No newline at end of file
+function Se(e){return"[object Object]"===Object.prototype.toString.call(e)}function he(e){var t,r;return!1!==Se(e)&&(void 0===(t=e.constructor)||!1!==Se(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}var Oe=r(1919),me=r.n(Oe);let we;const Re={getItem(e){return we&&we[e]?we[e]:null},setItem(e,t){we||Re.clear(),we[e]=String(t)},clear(){we=Object.create(null)}};var Ee=Re;let _e;try{_e=window.localStorage,_e.setItem("__wpDataTestLocalStorage",""),_e.removeItem("__wpDataTestLocalStorage")}catch(e){_e=Ee}const Ie=_e,Te="WP_DATA";function je(e,t){const r=function(e){const{storage:t=Ie,storageKey:r=Te}=e;let n;return{get:function(){if(void 0===n){const e=t.getItem(r);if(null===e)n={};else try{n=JSON.parse(e)}catch(e){n={}}}return n},set:function(e,o){n={...n,[e]:o},t.setItem(r,JSON.stringify(n))}}}(t);return{registerStore(t,n){if(!n.persist)return e.registerStore(t,n);const o=r.get()[t];if(void 0!==o){let e=n.reducer(n.initialState,{type:"@@WP/PERSISTENCE_RESTORE"});e=he(e)&&he(o)?me()(e,o,{isMergeableObject:he}):o,n={...n,initialState:e}}const s=e.registerStore(t,n);return s.subscribe(function(e,t,n){let o;if(Array.isArray(n)){const e=n.reduce(((e,t)=>Object.assign(e,{[t]:(e,r)=>r.nextState[t]})),{});s=rt(e),o=(e,t)=>t.nextState===e?e:s(e,t)}else o=(e,t)=>t.nextState;var s;let i=o(void 0,{nextState:e()});return()=>{const n=o(i,{nextState:e()});n!==i&&(r.set(t,n),i=n)}}(s.getState,t,n.persist)),s}}}je.__unstableMigrate=()=>{};var Ne=je,Ae=window.wp.element,Pe=window.wp.priorityQueue,Le=window.wp.isShallowEqual,Me=r.n(Le);const Fe=(0,Ae.createContext)(ve),{Consumer:xe,Provider:Ce}=Fe,Ue=xe;var ke=Ce;function De(){return(0,Ae.useContext)(Fe)}const Ve=(0,Ae.createContext)(!1),{Consumer:Ge,Provider:He}=Ve;var Ke=He;const We=(0,Pe.createQueue)();function $e(e,t){const r=t?e.suspendSelect:e.select,n={};let o,s,i,u,c=!1;return(t,a)=>{function l(){if(c&&t===o)return s;const a={current:null},l=e.__unstableMarkListeningStores((()=>t(r,e)),a);u?u.updateStores(a.current):u=(t=>{const r=[...t],o=new Set;return{subscribe:function(t){c=!1;const s=()=>{c=!1,t()},u=()=>{i?We.add(n,s):s()},a=[];function l(t){a.push(e.subscribe(u,t))}for(const e of r)l(e);return o.add(l),()=>{o.delete(l);for(const e of a.values())e?.();We.cancel(n)}},updateStores:function(e){for(const t of e)if(!r.includes(t)){r.push(t);for(const e of o)e(t)}}}})(a.current),Me()(s,l)||(s=l),o=t,c=!0}return i&&!a&&(c=!1,We.cancel(n)),l(),i=a,{subscribe:u.subscribe,getValue:function(){return l(),s}}}}function Xe(e,t,r){const n=De(),o=(0,Ae.useContext)(Ve),s=(0,Ae.useMemo)((()=>$e(n,e)),[n]),i=(0,Ae.useCallback)(t,r),{subscribe:u,getValue:c}=s(i,o),a=(0,Ae.useSyncExternalStore)(u,c,c);return(0,Ae.useDebugValue)(a),a}function ze(e,t){const r="function"!=typeof e,n=(0,Ae.useRef)(r);if(r!==n.current){const e=n.current?"static":"mapping";throw new Error(`Switching useSelect from ${e} to ${r?"static":"mapping"} is not allowed`)}return r?(o=e,De().select(o)):Xe(!1,e,t);var o}function Je(e,t){return Xe(!0,e,t)}var Be=e=>(0,_.createHigherOrderComponent)((t=>(0,_.pure)((r=>{const n=ze(((t,n)=>e(t,r,n)));return(0,Ae.createElement)(t,{...r,...n})}))),"withSelect");var Qe=(e,t)=>{const r=De(),n=(0,Ae.useRef)(e);return(0,_.useIsomorphicLayoutEffect)((()=>{n.current=e})),(0,Ae.useMemo)((()=>{const e=n.current(r.dispatch,r);return Object.fromEntries(Object.entries(e).map((([e,t])=>("function"!=typeof t&&console.warn(`Property ${e} returned from dispatchMap in useDispatchWithMap must be a function.`),[e,(...t)=>n.current(r.dispatch,r)[e](...t)]))))}),[r,...t])};var qe=e=>(0,_.createHigherOrderComponent)((t=>r=>{const n=Qe(((t,n)=>e(t,r,n)),[]);return(0,Ae.createElement)(t,{...r,...n})}),"withDispatch");var Ye=(0,_.createHigherOrderComponent)((e=>t=>(0,Ae.createElement)(Ue,null,(r=>(0,Ae.createElement)(e,{...t,registry:r})))),"withRegistry");var Ze=e=>{const{dispatch:t}=De();return void 0===e?t:t(e)};function et(e){return ve.dispatch(e)}function tt(e){return ve.select(e)}const rt=i(),nt=ve.resolveSelect,ot=ve.suspendSelect,st=ve.subscribe,it=ve.registerGenericStore,ut=ve.registerStore,ct=ve.use,at=ve.register}(),(window.wp=window.wp||{}).data=n}();
\ No newline at end of file
.is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}
.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}
.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}`;
+ const isToBeIframed = (hasV3BlocksOnly || isGutenbergPlugin && isBlockBasedTheme) && !hasMetaBoxes || isTemplateMode || deviceType === 'Tablet' || deviceType === 'Mobile';
return (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockTools, {
__unstableContentRef: ref,
className: classnames_default()('edit-post-visual-editor', {
- 'is-template-mode': isTemplateMode
+ 'is-template-mode': isTemplateMode,
+ 'has-inline-canvas': !isToBeIframed
})
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_editor_namespaceObject.VisualEditorGlobalKeyboardShortcuts, null), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__unstableMotion.div, {
className: "edit-post-visual-editor__content-area",
initial: desktopCanvasStyles,
className: previewMode
}, (0,external_wp_element_namespaceObject.createElement)(MaybeIframe, {
- shouldIframe: (hasV3BlocksOnly || isGutenbergPlugin && isBlockBasedTheme) && !hasMetaBoxes || isTemplateMode || deviceType === 'Tablet' || deviceType === 'Mobile',
+ shouldIframe: isToBeIframed,
contentRef: contentRef,
styles: styles
}, themeSupportsLayout && !themeHasDisabledLayoutStyles && !isTemplateMode && (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(LayoutStyle, {
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
-*/!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var l=a.apply(null,n);l&&e.push(l)}}else if("object"===r){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)o.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){"use strict";n.r(o),n.d(o,{PluginBlockSettingsMenuItem:function(){return Ka},PluginDocumentSettingPanel:function(){return ua},PluginMoreMenuItem:function(){return Ya},PluginPostPublishPanel:function(){return Sa},PluginPostStatusInfo:function(){return Ao},PluginPrePublishPanel:function(){return Ta},PluginSidebar:function(){return ma},PluginSidebarMoreMenuItem:function(){return Qa},__experimentalFullscreenModeClose:function(){return Fn},__experimentalMainDashboardButton:function(){return oo},initializeEditor:function(){return Xa},reinitializeEditor:function(){return Ja},store:function(){return on}});var e={};n.r(e),n.d(e,{closeModal:function(){return q},disableComplementaryArea:function(){return H},enableComplementaryArea:function(){return F},openModal:function(){return W},pinItem:function(){return G},setDefaultComplementaryArea:function(){return R},setFeatureDefaults:function(){return $},setFeatureValue:function(){return Z},toggleFeature:function(){return z},unpinItem:function(){return U}});var t={};n.r(t),n.d(t,{getActiveComplementaryArea:function(){return j},isComplementaryAreaLoading:function(){return K},isFeatureActive:function(){return Q},isItemPinned:function(){return Y},isModalActive:function(){return X}});var a={};n.r(a),n.d(a,{__experimentalSetPreviewDeviceType:function(){return gt},__unstableCreateTemplate:function(){return ft},__unstableSwitchToTemplateMode:function(){return bt},closeGeneralSidebar:function(){return Ke},closeModal:function(){return Qe},closePublishSidebar:function(){return Je},hideBlockTypes:function(){return ct},initializeMetaBoxes:function(){return yt},metaBoxUpdatesFailure:function(){return pt},metaBoxUpdatesSuccess:function(){return mt},openGeneralSidebar:function(){return je},openModal:function(){return Ye},openPublishSidebar:function(){return Xe},removeEditorPanel:function(){return ot},requestMetaBoxUpdates:function(){return ut},setAvailableMetaBoxesPerLocation:function(){return dt},setIsEditingTemplate:function(){return Et},setIsInserterOpened:function(){return ht},setIsListViewOpened:function(){return _t},showBlockTypes:function(){return it},switchEditorMode:function(){return rt},toggleEditorPanelEnabled:function(){return tt},toggleEditorPanelOpened:function(){return nt},toggleFeature:function(){return at},togglePinnedPluginItem:function(){return lt},togglePublishSidebar:function(){return et},updatePreferredStyleVariations:function(){return st}});var r={};n.r(r),n.d(r,{__experimentalGetInsertionPoint:function(){return Qt},__experimentalGetPreviewDeviceType:function(){return Kt},areMetaBoxesInitialized:function(){return en},getActiveGeneralSidebarName:function(){return It},getActiveMetaBoxLocations:function(){return Ut},getAllMetaBoxes:function(){return Wt},getEditedPostTemplate:function(){return tn},getEditorMode:function(){return xt},getHiddenBlockTypes:function(){return At},getMetaBoxesPerLocation:function(){return $t},getPreference:function(){return Nt},getPreferences:function(){return Lt},hasMetaBoxes:function(){return qt},isEditingTemplate:function(){return Jt},isEditorPanelEnabled:function(){return Ot},isEditorPanelOpened:function(){return Rt},isEditorPanelRemoved:function(){return Vt},isEditorSidebarOpened:function(){return Mt},isFeatureActive:function(){return Ht},isInserterOpened:function(){return Yt},isListViewOpened:function(){return Xt},isMetaBoxLocationActive:function(){return Zt},isMetaBoxLocationVisible:function(){return zt},isModalActive:function(){return Ft},isPluginItemPinned:function(){return Gt},isPluginSidebarOpened:function(){return Bt},isPublishSidebarOpened:function(){return Dt},isSavingMetaBoxes:function(){return jt}});var l=window.wp.element,s=window.wp.blocks,i=window.wp.blockLibrary,c=window.wp.deprecated,d=n.n(c),u=window.wp.data,m=window.wp.hooks,p=window.wp.preferences,g=window.wp.widgets,h=window.wp.mediaUtils;(0,m.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(()=>h.MediaUpload));var _=window.wp.components,E=window.wp.blockEditor,b=window.wp.i18n,f=window.wp.compose;const v=(0,f.compose)((0,u.withSelect)(((e,t)=>{if((0,s.hasBlockSupport)(t.name,"multiple",!0))return{};const n=e(E.store).getBlocks().find((({name:e})=>t.name===e));return{originalBlockClientId:n&&n.clientId!==t.clientId&&n.clientId}})),(0,u.withDispatch)(((e,{originalBlockClientId:t})=>({selectFirst:()=>e(E.store).selectBlock(t)})))),y=(0,f.createHigherOrderComponent)((e=>v((({originalBlockClientId:t,selectFirst:n,...o})=>{if(!t)return(0,l.createElement)(e,{...o});const a=(0,s.getBlockType)(o.name),r=function(e){const t=(0,s.findTransform)((0,s.getBlockTransforms)("to",e),(({type:e,blocks:t})=>"block"===e&&1===t.length));if(!t)return null;return(0,s.getBlockType)(t.blocks[0])}(o.name);return[(0,l.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},(0,l.createElement)(e,{key:"block-edit",...o})),(0,l.createElement)(E.Warning,{key:"multiple-use-warning",actions:[(0,l.createElement)(_.Button,{key:"find-original",variant:"secondary",onClick:n},(0,b.__)("Find original")),(0,l.createElement)(_.Button,{key:"remove",variant:"secondary",onClick:()=>o.onReplace([])},(0,b.__)("Remove")),r&&(0,l.createElement)(_.Button,{key:"transform",variant:"secondary",onClick:()=>o.onReplace((0,s.createBlock)(r.name,o.attributes))},(0,b.__)("Transform into:")," ",r.title)]},(0,l.createElement)("strong",null,a?.title,": "),(0,b.__)("This block can only be used once."))]}))),"withMultipleValidation");(0,m.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",y);var w=window.wp.coreData,S=window.wp.editor,k=window.wp.primitives;var P=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),C=window.wp.plugins,T=window.wp.url,x=window.wp.notices;function M(){const{createNotice:e}=(0,u.useDispatch)(x.store),t=(0,u.useSelect)((e=>()=>e(S.store).getEditedPostAttribute("content")),[]);const n=(0,f.useCopyToClipboard)(t,(function(){e("info",(0,b.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,l.createElement)(_.MenuItem,{ref:n},(0,b.__)("Copy all blocks"))}var B=window.wp.keycodes,I=n(4403),L=n.n(I);var N=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));var A=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));var D=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})),V=window.wp.viewport;var O=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));const R=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),F=(e,t)=>({registry:n,dispatch:o})=>{if(!t)return;n.select(p.store).get(e,"isComplementaryAreaVisible")||n.dispatch(p.store).set(e,"isComplementaryAreaVisible",!0),o({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},H=e=>({registry:t})=>{t.select(p.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(p.store).set(e,"isComplementaryAreaVisible",!1)},G=(e,t)=>({registry:n})=>{if(!t)return;const o=n.select(p.store).get(e,"pinnedItems");!0!==o?.[t]&&n.dispatch(p.store).set(e,"pinnedItems",{...o,[t]:!0})},U=(e,t)=>({registry:n})=>{if(!t)return;const o=n.select(p.store).get(e,"pinnedItems");n.dispatch(p.store).set(e,"pinnedItems",{...o,[t]:!1})};function z(e,t){return function({registry:n}){d()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(p.store).toggle(e,t)}}function Z(e,t,n){return function({registry:o}){d()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),o.dispatch(p.store).set(e,t,!!n)}}function $(e,t){return function({registry:n}){d()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(p.store).setDefaults(e,t)}}function W(e){return{type:"OPEN_MODAL",name:e}}function q(){return{type:"CLOSE_MODAL"}}const j=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get(n,"isComplementaryAreaVisible");if(void 0!==o)return!1===o?null:t?.complementaryAreas?.[n]})),K=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get(n,"isComplementaryAreaVisible"),a=t?.complementaryAreas?.[n];return o&&void 0===a})),Y=(0,u.createRegistrySelector)((e=>(t,n,o)=>{var a;const r=e(p.store).get(n,"pinnedItems");return null===(a=r?.[o])||void 0===a||a})),Q=(0,u.createRegistrySelector)((e=>(t,n,o)=>(d()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(p.store).get(n,o))));function X(e,t){return e.activeModal===t}var J=(0,u.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:o}=t;return e[n]?e:{...e,[n]:o}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:o}=t;return{...e,[n]:o}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}});const ee=(0,u.createReduxStore)("core/interface",{reducer:J,actions:e,selectors:t});(0,u.register)(ee);var te=(0,C.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));var ne=te((function({as:e=_.Button,scope:t,identifier:n,icon:o,selectedIcon:a,name:r,...s}){const i=e,c=(0,u.useSelect)((e=>e(ee).getActiveComplementaryArea(t)===n),[n]),{enableComplementaryArea:d,disableComplementaryArea:m}=(0,u.useDispatch)(ee);return(0,l.createElement)(i,{icon:a&&c?a:o,onClick:()=>{c?m(t):d(t,n)},...s})}));var oe=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:o})=>{const a=(0,l.createElement)(ne,{icon:O,...o});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,l.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),a),(0,l.createElement)("div",{className:L()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},t,a))};const ae=()=>{};function re({name:e,as:t=_.Button,onClick:n,...o}){return(0,l.createElement)(_.Fill,{name:e},(({onClick:e})=>(0,l.createElement)(t,{onClick:n||e?(...t)=>{(n||ae)(...t),(e||ae)(...t)}:void 0,...o})))}re.Slot=function({name:e,as:t=_.ButtonGroup,fillProps:n={},bubblesVirtually:o,...a}){return(0,l.createElement)(_.Slot,{name:e,bubblesVirtually:o,fillProps:n},(e=>{if(!l.Children.toArray(e).length)return null;const n=[];l.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&n.push(t)}));const o=l.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&n.includes(e.props.__unstableTarget)?null:e));return(0,l.createElement)(t,{...a},o)}))};var le=re;const se=({__unstableExplicitMenuItem:e,__unstableTarget:t,...n})=>(0,l.createElement)(_.MenuItem,{...n});function ie({scope:e,target:t,__unstableExplicitMenuItem:n,...o}){return(0,l.createElement)(ne,{as:o=>(0,l.createElement)(le,{__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:se,name:`${e}/plugin-more-menu`,...o}),role:"menuitemcheckbox",selectedIcon:N,name:t,scope:e,...o})}function ce({scope:e,...t}){return(0,l.createElement)(_.Fill,{name:`PinnedItems/${e}`,...t})}ce.Slot=function({scope:e,className:t,...n}){return(0,l.createElement)(_.Slot,{name:`PinnedItems/${e}`,...n},(e=>e?.length>0&&(0,l.createElement)("div",{className:L()(t,"interface-pinned-items")},e)))};var de=ce;function ue({scope:e,children:t,className:n}){return(0,l.createElement)(_.Fill,{name:`ComplementaryArea/${e}`},(0,l.createElement)("div",{className:n},t))}const me=te((function({children:e,className:t,closeLabel:n=(0,b.__)("Close plugin"),identifier:o,header:a,headerClassName:r,icon:s,isPinnable:i=!0,panelClassName:c,scope:d,name:m,smallScreenTitle:p,title:g,toggleShortcut:h,isActiveByDefault:E,showIconLabels:f=!1}){const{isLoading:v,isActive:y,isPinned:w,activeArea:S,isSmall:k,isLarge:P}=(0,u.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:n,isItemPinned:a}=e(ee),r=t(d);return{isLoading:n(d),isActive:r===o,isPinned:a(d,o),activeArea:r,isSmall:e(V.store).isViewportMatch("< medium"),isLarge:e(V.store).isViewportMatch("large")}}),[o,d]);!function(e,t,n,o,a){const r=(0,l.useRef)(!1),s=(0,l.useRef)(!1),{enableComplementaryArea:i,disableComplementaryArea:c}=(0,u.useDispatch)(ee);(0,l.useEffect)((()=>{o&&a&&!r.current?(c(e),s.current=!0):s.current&&!a&&r.current?(s.current=!1,i(e,t)):s.current&&n&&n!==t&&(s.current=!1),a!==r.current&&(r.current=a)}),[o,a,e,t,n])}(d,o,S,y,k);const{enableComplementaryArea:C,disableComplementaryArea:T,pinItem:x,unpinItem:M}=(0,u.useDispatch)(ee);return(0,l.useEffect)((()=>{E&&void 0===S&&!k?C(d,o):void 0===S&&k&&T(d,o)}),[S,E,d,o,k]),(0,l.createElement)(l.Fragment,null,i&&(0,l.createElement)(de,{scope:d},w&&(0,l.createElement)(ne,{scope:d,identifier:o,isPressed:y&&(!f||P),"aria-expanded":y,"aria-disabled":v,label:g,icon:f?N:s,showTooltip:!f,variant:f?"tertiary":void 0})),m&&i&&(0,l.createElement)(ie,{target:m,scope:d,icon:s},g),y&&(0,l.createElement)(ue,{className:L()("interface-complementary-area",t),scope:d},(0,l.createElement)(oe,{className:r,closeLabel:n,onClose:()=>T(d),smallScreenTitle:p,toggleButtonProps:{label:n,shortcut:h,scope:d,identifier:o}},a||(0,l.createElement)(l.Fragment,null,(0,l.createElement)("strong",null,g),i&&(0,l.createElement)(_.Button,{className:"interface-complementary-area__pin-unpin-item",icon:w?A:D,label:w?(0,b.__)("Unpin from toolbar"):(0,b.__)("Pin to toolbar"),onClick:()=>(w?M:x)(d,o),isPressed:w,"aria-expanded":w}))),(0,l.createElement)(_.Panel,{className:c},e)))}));me.Slot=function({scope:e,...t}){return(0,l.createElement)(_.Slot,{name:`ComplementaryArea/${e}`,...t})};var pe=me;var ge=({isActive:e})=>((0,l.useEffect)((()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}}),[]),(0,l.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);function he({children:e,className:t,ariaLabel:n,as:o="div",...a}){return(0,l.createElement)(o,{className:L()("interface-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...a},e)}const _e={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};var Ee=(0,l.forwardRef)((function({isDistractionFree:e,footer:t,header:n,editorNotices:o,sidebar:a,secondarySidebar:r,notices:s,content:i,actions:c,labels:d,className:u,enableRegionNavigation:m=!0,shortcuts:p},g){const h=(0,_.__unstableUseNavigateRegions)(p);!function(e){(0,l.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const E={...{header:(0,b.__)("Header"),body:(0,b.__)("Content"),secondarySidebar:(0,b.__)("Block Library"),sidebar:(0,b.__)("Settings"),actions:(0,b.__)("Publish"),footer:(0,b.__)("Footer")},...d};return(0,l.createElement)("div",{...m?h:{},ref:(0,f.useMergeRefs)([g,m?h.ref:void 0]),className:L()(u,"interface-interface-skeleton",h.className,!!t&&"has-footer")},(0,l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!n&&(0,l.createElement)(he,{as:_.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":E.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:_e,transition:e?{type:"tween",delay:.8}:void 0},n),e&&(0,l.createElement)("div",{className:"interface-interface-skeleton__header"},o),(0,l.createElement)("div",{className:"interface-interface-skeleton__body"},!!r&&(0,l.createElement)(he,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:E.secondarySidebar},r),!!s&&(0,l.createElement)("div",{className:"interface-interface-skeleton__notices"},s),(0,l.createElement)(he,{className:"interface-interface-skeleton__content",ariaLabel:E.body},i),!!a&&(0,l.createElement)(he,{className:"interface-interface-skeleton__sidebar",ariaLabel:E.sidebar},a),!!c&&(0,l.createElement)(he,{className:"interface-interface-skeleton__actions",ariaLabel:E.actions},c))),!!t&&(0,l.createElement)(he,{className:"interface-interface-skeleton__footer",ariaLabel:E.footer},t))}));var be=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function fe({as:e=_.DropdownMenu,className:t,label:n=(0,b.__)("Options"),popoverProps:o,toggleProps:a,children:r}){return(0,l.createElement)(e,{className:L()("interface-more-menu-dropdown",t),icon:be,label:n,popoverProps:{placement:"bottom-end",...o,className:L()("interface-more-menu-dropdown__content",o?.className)},toggleProps:{tooltipPosition:"bottom",...a}},(e=>r(e)))}function ve({closeModal:e,children:t}){return(0,l.createElement)(_.Modal,{className:"interface-preferences-modal",title:(0,b.__)("Preferences"),onRequestClose:e},t)}var ye=function({icon:e,size:t=24,...n}){return(0,l.cloneElement)(e,{width:t,height:t,...n})};var we=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var Se=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));const ke="preferences-menu";function Pe({sections:e}){const t=(0,f.useViewportMatch)("medium"),[n,o]=(0,l.useState)(ke),{tabs:a,sectionsContentMap:r}=(0,l.useMemo)((()=>{let t={tabs:[],sectionsContentMap:{}};return e.length&&(t=e.reduce(((e,{name:t,tabLabel:n,content:o})=>(e.tabs.push({name:t,title:n}),e.sectionsContentMap[t]=o,e)),{tabs:[],sectionsContentMap:{}})),t}),[e]),s=(0,l.useCallback)((e=>r[e.name]||null),[r]);let i;return i=t?(0,l.createElement)(_.TabPanel,{className:"interface-preferences__tabs",tabs:a,initialTabName:n!==ke?n:void 0,onSelect:o,orientation:"vertical"},s):(0,l.createElement)(_.__experimentalNavigatorProvider,{initialPath:"/",className:"interface-preferences__provider"},(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(_.Card,{isBorderless:!0,size:"small"},(0,l.createElement)(_.CardBody,null,(0,l.createElement)(_.__experimentalItemGroup,null,a.map((e=>(0,l.createElement)(_.__experimentalNavigatorButton,{key:e.name,path:e.name,as:_.__experimentalItem,isAction:!0},(0,l.createElement)(_.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(_.__experimentalTruncate,null,e.title)),(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(ye,{icon:(0,b.isRTL)()?we:Se})))))))))),e.length&&e.map((e=>(0,l.createElement)(_.__experimentalNavigatorScreen,{key:`${e.name}-menu`,path:e.name},(0,l.createElement)(_.Card,{isBorderless:!0,size:"large"},(0,l.createElement)(_.CardHeader,{isBorderless:!1,justify:"left",size:"small",gap:"6"},(0,l.createElement)(_.__experimentalNavigatorBackButton,{icon:(0,b.isRTL)()?Se:we,"aria-label":(0,b.__)("Navigate to the previous view")}),(0,l.createElement)(_.__experimentalText,{size:"16"},e.tabLabel)),(0,l.createElement)(_.CardBody,null,e.content)))))),i}var Ce=({description:e,title:t,children:n})=>(0,l.createElement)("fieldset",{className:"interface-preferences-modal__section"},(0,l.createElement)("legend",{className:"interface-preferences-modal__section-legend"},(0,l.createElement)("h2",{className:"interface-preferences-modal__section-title"},t),e&&(0,l.createElement)("p",{className:"interface-preferences-modal__section-description"},e)),n);var Te=function({help:e,label:t,isChecked:n,onChange:o,children:a}){return(0,l.createElement)("div",{className:"interface-preferences-modal__option"},(0,l.createElement)(_.ToggleControl,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:o}),a)},xe=window.wp.keyboardShortcuts;const Me=[{keyCombination:{modifier:"primary",character:"b"},description:(0,b.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,b.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,b.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,b.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,b.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,b.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,b.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,b.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,b.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,b.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function Be({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?B.displayShortcutList[e.modifier](e.character):e.character,o=e.modifier?B.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,l.createElement)("kbd",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||o},(Array.isArray(n)?n:[n]).map(((e,t)=>"+"===e?(0,l.createElement)(l.Fragment,{key:t},e):(0,l.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help-modal__shortcut-key"},e))))}var Ie=function({description:e,keyCombination:t,aliases:n=[],ariaLabel:o}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-description"},e),(0,l.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-term"},(0,l.createElement)(Be,{keyCombination:t,forceAriaLabel:o}),n.map(((e,t)=>(0,l.createElement)(Be,{keyCombination:e,forceAriaLabel:o,key:t})))))};var Le=function({name:e}){const{keyCombination:t,description:n,aliases:o}=(0,u.useSelect)((t=>{const{getShortcutKeyCombination:n,getShortcutDescription:o,getShortcutAliases:a}=t(xe.store);return{keyCombination:n(e),aliases:a(e),description:o(e)}}),[e]);return t?(0,l.createElement)(Ie,{keyCombination:t,description:n,aliases:o}):null};const Ne="edit-post/keyboard-shortcut-help",Ae=({shortcuts:e})=>(0,l.createElement)("ul",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,l.createElement)("li",{className:"edit-post-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,l.createElement)(Le,{name:e}):(0,l.createElement)(Ie,{...e}))))),De=({title:e,shortcuts:t,className:n})=>(0,l.createElement)("section",{className:L()("edit-post-keyboard-shortcut-help-modal__section",n)},!!e&&(0,l.createElement)("h2",{className:"edit-post-keyboard-shortcut-help-modal__section-title"},e),(0,l.createElement)(Ae,{shortcuts:t})),Ve=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const o=(0,u.useSelect)((e=>e(xe.store).getCategoryShortcuts(t)),[t]);return(0,l.createElement)(De,{title:e,shortcuts:o.concat(n)})};var Oe=(0,f.compose)([(0,u.withSelect)((e=>({isModalActive:e(ee).isModalActive(Ne)}))),(0,u.withDispatch)(((e,{isModalActive:t})=>{const{openModal:n,closeModal:o}=e(ee);return{toggleModal:()=>t?o():n(Ne)}}))])((function({isModalActive:e,toggleModal:t}){return(0,xe.useShortcut)("core/edit-post/keyboard-shortcuts",t),e?(0,l.createElement)(_.Modal,{className:"edit-post-keyboard-shortcut-help-modal",title:(0,b.__)("Keyboard shortcuts"),closeButtonLabel:(0,b.__)("Close"),onRequestClose:t},(0,l.createElement)(De,{className:"edit-post-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-post/keyboard-shortcuts"]}),(0,l.createElement)(Ve,{title:(0,b.__)("Global shortcuts"),categoryName:"global"}),(0,l.createElement)(Ve,{title:(0,b.__)("Selection shortcuts"),categoryName:"selection"}),(0,l.createElement)(Ve,{title:(0,b.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,b.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,b.__)("Forward-slash")}]}),(0,l.createElement)(De,{title:(0,b.__)("Text formatting"),shortcuts:Me})):null}));var Re=(0,u.withDispatch)((e=>{const{openModal:t}=e(ee);return{openModal:t}}))((function({openModal:e}){return(0,l.createElement)(_.MenuItem,{onClick:()=>{e(Ne)},shortcut:B.displayShortcut.access("h")},(0,b.__)("Keyboard shortcuts"))}));const{Fill:Fe,Slot:He}=(0,_.createSlotFill)("ToolsMoreMenuGroup");Fe.Slot=({fillProps:e})=>(0,l.createElement)(He,{fillProps:e},(e=>e.length>0&&(0,l.createElement)(_.MenuGroup,{label:(0,b.__)("Tools")},e)));var Ge=Fe;function Ue(e=[],t){const n=[...e];for(const e of t){const t=n.findIndex((t=>t.id===e.id));-1!==t?n[t]=e:n.push(e)}return n}const ze=(0,u.combineReducers)({isSaving:function(e=!1,t){switch(t.type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":case"META_BOX_UPDATES_FAILURE":return!1;default:return e}},locations:function(e={},t){if("SET_META_BOXES_PER_LOCATIONS"===t.type){const n={...e};for(const[e,o]of Object.entries(t.metaBoxesPerLocation))n[e]=Ue(n[e],o);return n}return e},initialized:function(e=!1,t){return"META_BOXES_INITIALIZED"===t.type||e}});var Ze=(0,u.combineReducers)({metaBoxes:ze,publishSidebarActive:function(e=!1,t){switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(e=[],t){if("REMOVE_PANEL"===t.type)if(!e.includes(t.panelName))return[...e,t.panelName];return e},deviceType:function(e="Desktop",t){return"SET_PREVIEW_DEVICE_TYPE"===t.type?t.deviceType:e},blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value}return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e},isEditingTemplate:function(e=!1,t){return"SET_IS_EDITING_TEMPLATE"===t.type?t.value:e}}),$e=window.wp.apiFetch,We=n.n($e),qe=window.wp.a11y;const je=e=>({registry:t})=>t.dispatch(ee).enableComplementaryArea(on.name,e),Ke=()=>({registry:e})=>e.dispatch(ee).disableComplementaryArea(on.name),Ye=e=>({registry:t})=>(d()("select( 'core/edit-post' ).openModal( name )",{since:"6.3",alternative:"select( 'core/interface').openModal( name )"}),t.dispatch(ee).openModal(e)),Qe=()=>({registry:e})=>(d()("select( 'core/edit-post' ).closeModal()",{since:"6.3",alternative:"select( 'core/interface').closeModal()"}),e.dispatch(ee).closeModal());function Xe(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function Je(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function et(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}const tt=e=>({registry:t})=>{var n;const o=null!==(n=t.select(p.store).get("core/edit-post","inactivePanels"))&&void 0!==n?n:[];let a;a=!!o?.includes(e)?o.filter((t=>t!==e)):[...o,e],t.dispatch(p.store).set("core/edit-post","inactivePanels",a)},nt=e=>({registry:t})=>{var n;const o=null!==(n=t.select(p.store).get("core/edit-post","openPanels"))&&void 0!==n?n:[];let a;a=!!o?.includes(e)?o.filter((t=>t!==e)):[...o,e],t.dispatch(p.store).set("core/edit-post","openPanels",a)};function ot(e){return{type:"REMOVE_PANEL",panelName:e}}const at=e=>({registry:t})=>t.dispatch(p.store).toggle("core/edit-post",e),rt=e=>({registry:t})=>{t.dispatch(p.store).set("core/edit-post","editorMode",e),"visual"!==e&&t.dispatch(E.store).clearSelectedBlock();const n="visual"===e?(0,b.__)("Visual editor selected"):(0,b.__)("Code editor selected");(0,qe.speak)(n,"assertive")},lt=e=>({registry:t})=>{const n=t.select(ee).isItemPinned("core/edit-post",e);t.dispatch(ee)[n?"unpinItem":"pinItem"]("core/edit-post",e)},st=(e,t)=>({registry:n})=>{var o;if(!e)return;const a=null!==(o=n.select(p.store).get("core/edit-post","preferredStyleVariations"))&&void 0!==o?o:{};if(t)n.dispatch(p.store).set("core/edit-post","preferredStyleVariations",{...a,[e]:t});else{const t={...a};delete t[e],n.dispatch(p.store).set("core/edit-post","preferredStyleVariations",t)}},it=e=>({registry:t})=>{var n;const o=(null!==(n=t.select(p.store).get("core/edit-post","hiddenBlockTypes"))&&void 0!==n?n:[]).filter((t=>!(Array.isArray(e)?e:[e]).includes(t)));t.dispatch(p.store).set("core/edit-post","hiddenBlockTypes",o)},ct=e=>({registry:t})=>{var n;const o=null!==(n=t.select(p.store).get("core/edit-post","hiddenBlockTypes"))&&void 0!==n?n:[],a=new Set([...o,...Array.isArray(e)?e:[e]]);t.dispatch(p.store).set("core/edit-post","hiddenBlockTypes",[...a])};function dt(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}const ut=()=>async({registry:e,select:t,dispatch:n})=>{n({type:"REQUEST_META_BOX_UPDATES"}),window.tinyMCE&&window.tinyMCE.triggerSave();const o=e.select(S.store).getCurrentPost(),a=[!!o.comment_status&&["comment_status",o.comment_status],!!o.ping_status&&["ping_status",o.ping_status],!!o.sticky&&["sticky",o.sticky],!!o.author&&["post_author",o.author]].filter(Boolean),r=[new window.FormData(document.querySelector(".metabox-base-form")),...t.getActiveMetaBoxLocations().map((e=>new window.FormData((e=>{const t=document.querySelector(`.edit-post-meta-boxes-area.is-${e} .metabox-location-${e}`);return t||document.querySelector("#metaboxes .metabox-location-"+e)})(e))))].reduce(((e,t)=>{for(const[n,o]of t)e.append(n,o);return e}),new window.FormData);a.forEach((([e,t])=>r.append(e,t)));try{await We()({url:window._wpMetaBoxUrl,method:"POST",body:r,parse:!1}),n.metaBoxUpdatesSuccess()}catch{n.metaBoxUpdatesFailure()}};function mt(){return{type:"META_BOX_UPDATES_SUCCESS"}}function pt(){return{type:"META_BOX_UPDATES_FAILURE"}}function gt(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function ht(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function _t(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}function Et(e){return{type:"SET_IS_EDITING_TEMPLATE",value:e}}const bt=(e=!1)=>({registry:t,select:n,dispatch:o})=>{o(Et(!0));if(!n.isFeatureActive("welcomeGuideTemplate")){const n=e?(0,b.__)("Custom template created. You're in template mode now."):(0,b.__)("Editing template. Changes made here affect all posts and pages that use the template.");t.dispatch(x.store).createSuccessNotice(n,{type:"snackbar"})}},ft=e=>async({registry:t})=>{const n=await t.dispatch(w.store).saveEntityRecord("postType","wp_template",e),o=t.select(S.store).getCurrentPost();t.dispatch(w.store).editEntityRecord("postType",o.type,o.id,{template:n.slug})};let vt=!1;const yt=()=>({registry:e,select:t,dispatch:n})=>{if(!e.select(S.store).__unstableIsEditorReady())return;if(vt)return;const o=e.select(S.store).getCurrentPostType();window.postboxes.page!==o&&window.postboxes.add_postbox_toggles(o),vt=!0;let a=e.select(S.store).isSavingPost(),r=e.select(S.store).isAutosavingPost();e.subscribe((async()=>{const o=e.select(S.store).isSavingPost(),l=e.select(S.store).isAutosavingPost(),s=a&&!r&&!o&&t.hasMetaBoxes();a=o,r=l,s&&await n.requestMetaBoxUpdates()})),n({type:"META_BOXES_INITIALIZED"})};var wt={};function St(e){return[e]}function kt(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function Pt(e,t){var n,o=t||St;function a(){n=new WeakMap}function r(){var t,a,r,l,s,i=arguments.length;for(l=new Array(i),r=0;r<i;r++)l[r]=arguments[r];for(t=function(e){var t,o,a,r,l,s=n,i=!0;for(t=0;t<e.length;t++){if(!(l=o=e[t])||"object"!=typeof l){i=!1;break}s.has(o)?s=s.get(o):(a=new WeakMap,s.set(o,a),s=a)}return s.has(wt)||((r=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=i,s.set(wt,r)),s.get(wt)}(s=o.apply(null,l)),t.isUniqueByDependants||(t.lastDependants&&!kt(s,t.lastDependants,0)&&t.clear(),t.lastDependants=s),a=t.head;a;){if(kt(a.args,l,1))return a!==t.head&&(a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=t.head,a.prev=null,t.head.prev=a,t.head=a),a.val;a=a.next}return a={val:e.apply(null,l)},l[0]=null,a.args=l,t.head&&(t.head.prev=a,a.next=t.head),t.head=a,a.val}return r.getDependants=o,r.clear=a,a(),r}const Ct=[],Tt={},xt=(0,u.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(p.store).get("core/edit-post","editorMode"))&&void 0!==t?t:"visual"})),Mt=(0,u.createRegistrySelector)((e=>()=>{const t=e(ee).getActiveComplementaryArea("core/edit-post");return["edit-post/document","edit-post/block"].includes(t)})),Bt=(0,u.createRegistrySelector)((e=>()=>{const t=e(ee).getActiveComplementaryArea("core/edit-post");return!!t&&!["edit-post/document","edit-post/block"].includes(t)})),It=(0,u.createRegistrySelector)((e=>()=>e(ee).getActiveComplementaryArea("core/edit-post")));const Lt=(0,u.createRegistrySelector)((e=>()=>{d()("select( 'core/edit-post' ).getPreferences",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const t=["hiddenBlockTypes","editorMode","preferredStyleVariations"].reduce(((t,n)=>({...t,[n]:e(p.store).get("core/edit-post",n)})),{}),n=function(e,t){var n;const o=e?.reduce(((e,t)=>({...e,[t]:{enabled:!1}})),{}),a=t?.reduce(((e,t)=>{const n=e?.[t];return{...e,[t]:{...n,opened:!0}}}),null!=o?o:{});return null!==(n=null!=a?a:o)&&void 0!==n?n:Tt}(e(p.store).get("core/edit-post","inactivePanels"),e(p.store).get("core/edit-post","openPanels"));return{...t,panels:n}}));function Nt(e,t,n){d()("select( 'core/edit-post' ).getPreference",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const o=Lt(e)[t];return void 0===o?n:o}const At=(0,u.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(p.store).get("core/edit-post","hiddenBlockTypes"))&&void 0!==t?t:Ct}));function Dt(e){return e.publishSidebarActive}function Vt(e,t){return e.removedPanels.includes(t)}const Ot=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get("core/edit-post","inactivePanels");return!Vt(t,n)&&!o?.includes(n)})),Rt=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get("core/edit-post","openPanels");return!!o?.includes(n)})),Ft=(0,u.createRegistrySelector)((e=>(t,n)=>(d()("select( 'core/edit-post' ).isModalActive",{since:"6.3",alternative:"select( 'core/interface' ).isModalActive"}),!!e(ee).isModalActive(n)))),Ht=(0,u.createRegistrySelector)((e=>(t,n)=>!!e(p.store).get("core/edit-post",n))),Gt=(0,u.createRegistrySelector)((e=>(t,n)=>e(ee).isItemPinned("core/edit-post",n))),Ut=Pt((e=>Object.keys(e.metaBoxes.locations).filter((t=>Zt(e,t)))),(e=>[e.metaBoxes.locations]));function zt(e,t){return Zt(e,t)&&$t(e,t)?.some((({id:t})=>Ot(e,`meta-box-${t}`)))}function Zt(e,t){const n=$t(e,t);return!!n&&0!==n.length}function $t(e,t){return e.metaBoxes.locations[t]}const Wt=Pt((e=>Object.values(e.metaBoxes.locations).flat()),(e=>[e.metaBoxes.locations]));function qt(e){return Ut(e).length>0}function jt(e){return e.metaBoxes.isSaving}function Kt(e){return e.deviceType}function Yt(e){return!!e.blockInserterPanel}function Qt(e){const{rootClientId:t,insertionIndex:n,filterValue:o}=e.blockInserterPanel;return{rootClientId:t,insertionIndex:n,filterValue:o}}function Xt(e){return e.listViewPanel}function Jt(e){return e.isEditingTemplate}function en(e){return e.metaBoxes.initialized}const tn=(0,u.createRegistrySelector)((e=>()=>{const t=e(S.store).getEditedPostAttribute("template");if(t){const n=e(w.store).getEntityRecords("postType","wp_template",{per_page:-1})?.find((e=>e.slug===t));return n?e(w.store).getEditedEntityRecord("postType","wp_template",n.id):n}const n=e(S.store).getCurrentPost();return n.link?e(w.store).__experimentalGetTemplateForLink(n.link):null})),nn="core/edit-post",on=(0,u.createReduxStore)(nn,{reducer:Ze,actions:a,selectors:r});function an(){const e=(0,u.useSelect)((e=>e(on).isEditingTemplate()),[]);return(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:e?"welcomeGuideTemplate":"welcomeGuide",label:(0,b.__)("Welcome Guide")})}function rn(){const e=(0,u.useSelect)((e=>{const{canUser:t}=e(w.store),{getEditorSettings:n}=e(S.store),o=n().__unstableIsBlockBasedTheme,a=(0,T.addQueryArgs)("edit.php",{post_type:"wp_block"}),r=(0,T.addQueryArgs)("site-editor.php",{path:"/patterns"});return t("read","templates")&&o?r:a}),[]);return(0,l.createElement)(_.MenuItem,{role:"menuitem",href:e},(0,b.__)("Manage patterns"))}(0,u.register)(on),(0,C.registerPlugin)("edit-post",{render(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ge,null,(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(rn,null),(0,l.createElement)(Re,{onSelect:e}),(0,l.createElement)(an,null),(0,l.createElement)(M,null),(0,l.createElement)(_.MenuItem,{role:"menuitem",icon:P,href:(0,b.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,b.__)("Help"),(0,l.createElement)(_.VisuallyHidden,{as:"span"},(0,b.__)("(opens in a new tab)")))))))}});var ln=window.wp.commands,sn=window.wp.coreCommands;function cn(){const e=(0,u.useSelect)((e=>e(S.store).getEditorSettings().richEditingEnabled),[]),{switchEditorMode:t}=(0,u.useDispatch)(on);return(0,l.createElement)("div",{className:"edit-post-text-editor"},(0,l.createElement)(S.TextEditorGlobalKeyboardShortcuts,null),e&&(0,l.createElement)("div",{className:"edit-post-text-editor__toolbar"},(0,l.createElement)("h2",null,(0,b.__)("Editing code")),(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>t("visual"),shortcut:B.displayShortcut.secondary("m")},(0,b.__)("Exit code editor"))),(0,l.createElement)("div",{className:"edit-post-text-editor__body"},(0,l.createElement)(S.PostTitle,null),(0,l.createElement)(S.PostTextEditor,null)))}var dn=window.wp.privateApis;const{lock:un,unlock:mn}=(0,dn.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/edit-post"),{LayoutStyle:pn,useLayoutClasses:gn,useLayoutStyles:hn}=mn(E.privateApis),_n=!1;function En({children:e,contentRef:t,shouldIframe:n,styles:o,style:a}){const r=(0,E.__unstableUseMouseMoveTypingReset)();return n?(0,l.createElement)(E.__unstableIframe,{ref:r,contentRef:t,style:{width:"100%",height:"100%",display:"block"},name:"editor-canvas"},(0,l.createElement)(E.__unstableEditorStyles,{styles:o}),e):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(E.__unstableEditorStyles,{styles:o}),(0,l.createElement)(E.WritingFlow,{ref:t,className:"editor-styles-wrapper",style:{flex:"1",...a},tabIndex:-1},e))}function bn(e){for(let t=0;t<e.length;t++){if("core/post-content"===e[t].name)return e[t].attributes;if(e[t].innerBlocks.length){const n=bn(e[t].innerBlocks);if(n)return n}}}function fn({styles:e}){const{deviceType:t,isWelcomeGuideVisible:n,isTemplateMode:o,postContentAttributes:a,editedPostTemplate:r={},wrapperBlockName:i,wrapperUniqueId:c,isBlockBasedTheme:d,hasV3BlocksOnly:m}=(0,u.useSelect)((e=>{const{isFeatureActive:t,isEditingTemplate:n,getEditedPostTemplate:o,__experimentalGetPreviewDeviceType:a}=e(on),{getCurrentPostId:r,getCurrentPostType:l,getEditorSettings:i}=e(S.store),{getBlockTypes:c}=e(s.store),d=n();let u;"wp_block"===l()?u="core/block":d||(u="core/post-content");const m=i(),p=m.supportsTemplateMode,g=e(w.store).canUser("create","templates");return{deviceType:a(),isWelcomeGuideVisible:t("welcomeGuide"),isTemplateMode:d,postContentAttributes:i().postContentAttributes,editedPostTemplate:p&&g?o():void 0,wrapperBlockName:u,wrapperUniqueId:r(),isBlockBasedTheme:m.__unstableIsBlockBasedTheme,hasV3BlocksOnly:c().every((e=>e.apiVersion>=3))}}),[]),{isCleanNewPost:p}=(0,u.useSelect)(S.store),g=(0,u.useSelect)((e=>e(on).hasMetaBoxes()),[]),{hasRootPaddingAwareAlignments:h,isFocusMode:b,themeHasDisabledLayoutStyles:v,themeSupportsLayout:y}=(0,u.useSelect)((e=>{const t=e(E.store).getSettings();return{themeHasDisabledLayoutStyles:t.disableLayoutStyles,themeSupportsLayout:t.supportsLayout,isFocusMode:t.focusMode,hasRootPaddingAwareAlignments:t.__experimentalFeatures?.useRootPaddingAwareAlignments}}),[]),k={height:"100%",width:"100%",margin:0,display:"flex",flexFlow:"column",background:"white"},P={...k,borderRadius:"2px 2px 0 0",border:"1px solid #ddd",borderBottom:0},C=(0,E.__experimentalUseResizeCanvas)(t,o),T=(0,E.useSetting)("layout"),x="is-"+t.toLowerCase()+"-preview";let M,B=o?P:k;C&&(B=C),g||C||o||(M="40vh");const I=(0,l.useRef)(),N=(0,f.useMergeRefs)([I,(0,E.__unstableUseClipboardHandler)(),(0,E.__unstableUseTypewriter)(),(0,E.__unstableUseTypingObserver)(),(0,E.__unstableUseBlockSelectionClearer)()]),A=(0,E.__unstableUseBlockSelectionClearer)(),D=(0,l.useMemo)((()=>o?{type:"default"}:y?{...T,type:"constrained"}:{type:"default"}),[o,y,T]),V=(0,l.useMemo)((()=>{if(!r?.content&&!r?.blocks)return a;if(r?.blocks)return bn(r?.blocks);const e="string"==typeof r?.content?r?.content:"";return bn((0,s.parse)(e))||{}}),[r?.content,r?.blocks,a]),{layout:O={},align:R=""}=V||{},F=gn(V,"core/post-content"),H=L()({"is-layout-flow":!y},y&&F,R&&`align${R}`),G=hn(V,"core/post-content",".block-editor-block-list__layout.is-root-container"),U=(0,l.useMemo)((()=>O&&("constrained"===O?.type||O?.inherit||O?.contentSize||O?.wideSize)?{...T,...O,type:"constrained"}:{...T,...O,type:"default"}),[O?.type,O?.inherit,O?.contentSize,O?.wideSize,T]),z=a?U:D,Z=(0,l.useRef)();(0,l.useEffect)((()=>{!n&&p()&&Z?.current?.focus()}),[n,p]),e=(0,l.useMemo)((()=>[...e,{css:".edit-post-visual-editor__post-title-wrapper{margin-top:4rem}"+(M?`body{padding-bottom:${M}}`:"")}]),[e]);return(0,l.createElement)(E.BlockTools,{__unstableContentRef:I,className:L()("edit-post-visual-editor",{"is-template-mode":o})},(0,l.createElement)(S.VisualEditorGlobalKeyboardShortcuts,null),(0,l.createElement)(_.__unstableMotion.div,{className:"edit-post-visual-editor__content-area",animate:{padding:o?"48px 48px 0":0},ref:A},(0,l.createElement)(_.__unstableMotion.div,{animate:B,initial:k,className:x},(0,l.createElement)(En,{shouldIframe:(m||_n&&d)&&!g||o||"Tablet"===t||"Mobile"===t,contentRef:N,styles:e},y&&!v&&!o&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(pn,{selector:".edit-post-visual-editor__post-title-wrapper",layout:D}),(0,l.createElement)(pn,{selector:".block-editor-block-list__layout.is-root-container",layout:z}),R&&(0,l.createElement)(pn,{css:".is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}\n\t\t.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}"}),G&&(0,l.createElement)(pn,{layout:U,css:G})),!o&&(0,l.createElement)("div",{className:L()("edit-post-visual-editor__post-title-wrapper",{"is-focus-mode":b,"has-global-padding":h}),contentEditable:!1},(0,l.createElement)(S.PostTitle,{ref:Z})),(0,l.createElement)(E.__experimentalRecursionProvider,{blockName:i,uniqueId:c},(0,l.createElement)(E.BlockList,{className:o?"wp-site-blocks":`${H} wp-block-post-content`,layout:z}))))))}var vn=function(){const{getBlockSelectionStart:e}=(0,u.useSelect)(E.store),{getEditorMode:t,isEditorSidebarOpened:n,isListViewOpened:o,isFeatureActive:a}=(0,u.useSelect)(on),r=(0,u.useSelect)((e=>{const{richEditingEnabled:t,codeEditingEnabled:n}=e(S.store).getEditorSettings();return!t||!n}),[]),{createInfoNotice:i}=(0,u.useDispatch)(x.store),{switchEditorMode:c,openGeneralSidebar:d,closeGeneralSidebar:m,toggleFeature:g,setIsListViewOpened:h,setIsInserterOpened:_}=(0,u.useDispatch)(on),{registerShortcut:f}=(0,u.useDispatch)(xe.store),{set:v}=(0,u.useDispatch)(p.store),{replaceBlocks:y}=(0,u.useDispatch)(E.store),{getBlockName:w,getSelectedBlockClientId:k,getBlockAttributes:P}=(0,u.useSelect)(E.store),C=(e,t)=>{e.preventDefault();const n=0===t?"core/paragraph":"core/heading",o=k();if(null===o)return;const a=w(o);if("core/paragraph"!==a&&"core/heading"!==a)return;const r=P(o),l="core/paragraph"===a?"align":"textAlign",i="core/paragraph"===n?"align":"textAlign";y(o,(0,s.createBlock)(n,{level:t,content:r.content,[i]:r[l]}))};return(0,l.useEffect)((()=>{f({name:"core/edit-post/toggle-mode",category:"global",description:(0,b.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),f({name:"core/edit-post/toggle-distraction-free",category:"global",description:(0,b.__)("Toggle distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}}),f({name:"core/edit-post/toggle-fullscreen",category:"global",description:(0,b.__)("Toggle fullscreen mode."),keyCombination:{modifier:"secondary",character:"f"}}),f({name:"core/edit-post/toggle-list-view",category:"global",description:(0,b.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),f({name:"core/edit-post/toggle-sidebar",category:"global",description:(0,b.__)("Show or hide the Settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),f({name:"core/edit-post/next-region",category:"global",description:(0,b.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),f({name:"core/edit-post/previous-region",category:"global",description:(0,b.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),f({name:"core/edit-post/keyboard-shortcuts",category:"main",description:(0,b.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),f({name:"core/edit-post/transform-heading-to-paragraph",category:"block-library",description:(0,b.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((e=>{f({name:`core/edit-post/transform-paragraph-to-heading-${e}`,category:"block-library",description:(0,b.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${e}`}})}))}),[]),(0,xe.useShortcut)("core/edit-post/toggle-mode",(()=>{c("visual"===t()?"text":"visual")}),{isDisabled:r}),(0,xe.useShortcut)("core/edit-post/toggle-fullscreen",(()=>{g("fullscreenMode")})),(0,xe.useShortcut)("core/edit-post/toggle-distraction-free",(()=>{v("core/edit-post","fixedToolbar",!1),_(!1),h(!1),m(),g("distractionFree"),i(a("distractionFree")?(0,b.__)("Distraction free mode turned on."):(0,b.__)("Distraction free mode turned off."),{id:"core/edit-post/distraction-free-mode/notice",type:"snackbar"})})),(0,xe.useShortcut)("core/edit-post/toggle-sidebar",(t=>{if(t.preventDefault(),n())m();else{const t=e()?"edit-post/block":"edit-post/document";d(t)}})),(0,xe.useShortcut)("core/edit-post/toggle-list-view",(()=>{o()||h(!0)})),(0,xe.useShortcut)("core/edit-post/transform-heading-to-paragraph",(e=>C(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,xe.useShortcut)(`core/edit-post/transform-paragraph-to-heading-${e}`,(t=>C(t,e)))})),null};function yn({willEnable:e}){const[t,n]=(0,l.useState)(!1);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("p",{className:"edit-post-preferences-modal__custom-fields-confirmation-message"},(0,b.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),(0,l.createElement)(_.Button,{className:"edit-post-preferences-modal__custom-fields-confirmation-button",variant:"secondary",isBusy:t,disabled:t,onClick:()=>{n(!0),document.getElementById("toggle-custom-fields-form").submit()}},e?(0,b.__)("Show & Reload Page"):(0,b.__)("Hide & Reload Page")))}var wn=(0,u.withSelect)((e=>({areCustomFieldsEnabled:!!e(S.store).getEditorSettings().enableCustomFields})))((function({label:e,areCustomFieldsEnabled:t}){const[n,o]=(0,l.useState)(t);return(0,l.createElement)(Te,{label:e,isChecked:n,onChange:o},n!==t&&(0,l.createElement)(yn,{willEnable:n}))})),Sn=(0,f.compose)((0,u.withSelect)(((e,{panelName:t})=>{const{isEditorPanelEnabled:n,isEditorPanelRemoved:o}=e(on);return{isRemoved:o(t),isChecked:n(t)}})),(0,f.ifCondition)((({isRemoved:e})=>!e)),(0,u.withDispatch)(((e,{panelName:t})=>({onChange:()=>e(on).toggleEditorPanelEnabled(t)}))))(Te);const{Fill:kn,Slot:Pn}=(0,_.createSlotFill)("EnablePluginDocumentSettingPanelOption"),Cn=({label:e,panelName:t})=>(0,l.createElement)(kn,null,(0,l.createElement)(Sn,{label:e,panelName:t}));Cn.Slot=Pn;var Tn=Cn,xn=(0,f.compose)((0,u.withSelect)((e=>({isChecked:e(S.store).isPublishSidebarEnabled()}))),(0,u.withDispatch)((e=>{const{enablePublishSidebar:t,disablePublishSidebar:n}=e(S.store);return{onChange:e=>e?t():n()}})),(0,V.ifViewportMatches)("medium"))(Te),Mn=(0,f.compose)((0,u.withSelect)(((e,{featureName:t})=>{const{isFeatureActive:n}=e(on);return{isChecked:n(t)}})),(0,u.withDispatch)(((e,{featureName:t,onToggle:n=(()=>{})})=>({onChange:()=>{n(),e(on).toggleFeature(t)}}))))(Te);var Bn=(0,u.withSelect)((e=>{const{getEditorSettings:t}=e(S.store),{getAllMetaBoxes:n}=e(on);return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:n()}}))((function({areCustomFieldsRegistered:e,metaBoxes:t,...n}){const o=t.filter((({id:e})=>"postcustom"!==e));return e||0!==o.length?(0,l.createElement)(Ce,{...n},e&&(0,l.createElement)(wn,{label:(0,b.__)("Custom fields")}),o.map((({id:e,title:t})=>(0,l.createElement)(Sn,{key:e,label:t,panelName:`meta-box-${e}`})))):null}));var In=function({blockTypes:e,value:t,onItemChange:n}){return(0,l.createElement)("ul",{className:"edit-post-block-manager__checklist"},e.map((e=>(0,l.createElement)("li",{key:e.name,className:"edit-post-block-manager__checklist-item"},(0,l.createElement)(_.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.title,checked:t.includes(e.name),onChange:(...t)=>n(e.name,...t)}),(0,l.createElement)(E.BlockIcon,{icon:e.icon})))))};var Ln=function e({title:t,blockTypes:n}){const o=(0,f.useInstanceId)(e),{defaultAllowedBlockTypes:a,hiddenBlockTypes:r}=(0,u.useSelect)((e=>{const{getEditorSettings:t}=e(S.store),{getHiddenBlockTypes:n}=e(on);return{defaultAllowedBlockTypes:t().defaultAllowedBlockTypes,hiddenBlockTypes:n()}}),[]),s=(0,l.useMemo)((()=>!0===a?n:n.filter((({name:e})=>a?.includes(e)))),[a,n]),{showBlockTypes:i,hideBlockTypes:c}=(0,u.useDispatch)(on),d=(0,l.useCallback)(((e,t)=>{t?i(e):c(e)}),[]),m=(0,l.useCallback)((e=>{const t=n.map((({name:e})=>e));e?i(t):c(t)}),[n]);if(!s.length)return null;const p=s.map((({name:e})=>e)).filter((e=>!r.includes(e))),g="edit-post-block-manager__category-title-"+o,h=p.length===s.length,E=!h&&p.length>0;return(0,l.createElement)("div",{role:"group","aria-labelledby":g,className:"edit-post-block-manager__category"},(0,l.createElement)(_.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:h,onChange:m,className:"edit-post-block-manager__category-title",indeterminate:E,label:(0,l.createElement)("span",{id:g},t)}),(0,l.createElement)(In,{blockTypes:s,value:p,onItemChange:d}))};var Nn=(0,f.compose)([(0,u.withSelect)((e=>{const{getBlockTypes:t,getCategories:n,hasBlockSupport:o,isMatchingSearchTerm:a}=e(s.store),{getHiddenBlockTypes:r}=e(on),l=t(),i=r().filter((e=>l.some((t=>t.name===e)))),c=Array.isArray(i)&&i.length;return{blockTypes:l,categories:n(),hasBlockSupport:o,isMatchingSearchTerm:a,numberOfHiddenBlocks:c}})),(0,u.withDispatch)((e=>{const{showBlockTypes:t}=e(on);return{enableAllBlockTypes:e=>{const n=e.map((({name:e})=>e));t(n)}}}))])((function({blockTypes:e,categories:t,hasBlockSupport:n,isMatchingSearchTerm:o,numberOfHiddenBlocks:a,enableAllBlockTypes:r}){const s=(0,f.useDebounce)(qe.speak,500),[i,c]=(0,l.useState)("");return e=e.filter((e=>n(e,"inserter",!0)&&(!i||o(e,i))&&(!e.parent||e.parent.includes("core/post-content")))),(0,l.useEffect)((()=>{if(!i)return;const t=e.length,n=(0,b.sprintf)((0,b._n)("%d result found.","%d results found.",t),t);s(n)}),[e.length,i,s]),(0,l.createElement)("div",{className:"edit-post-block-manager__content"},!!a&&(0,l.createElement)("div",{className:"edit-post-block-manager__disabled-blocks-count"},(0,b.sprintf)((0,b._n)("%d block is hidden.","%d blocks are hidden.",a),a),(0,l.createElement)(_.Button,{variant:"link",onClick:()=>r(e)},(0,b.__)("Reset"))),(0,l.createElement)(_.SearchControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Search for a block"),placeholder:(0,b.__)("Search for a block"),value:i,onChange:e=>c(e),className:"edit-post-block-manager__search"}),(0,l.createElement)("div",{tabIndex:"0",role:"region","aria-label":(0,b.__)("Available block types"),className:"edit-post-block-manager__results"},0===e.length&&(0,l.createElement)("p",{className:"edit-post-block-manager__no-results"},(0,b.__)("No blocks found.")),t.map((t=>(0,l.createElement)(Ln,{key:t.slug,title:t.title,blockTypes:e.filter((e=>e.category===t.slug))}))),(0,l.createElement)(Ln,{title:(0,b.__)("Uncategorized"),blockTypes:e.filter((({category:e})=>!e))})))}));const An="edit-post/preferences";function Dn(){const e=(0,f.useViewportMatch)("medium"),{closeModal:t}=(0,u.useDispatch)(ee),[n,o]=(0,u.useSelect)((t=>{const{getEditorSettings:n}=t(S.store),{getEditorMode:o,isFeatureActive:a}=t(on),r=t(ee).isModalActive(An),l=o(),s=n().richEditingEnabled,i=a("distractionFree");return[r,!i&&e&&s&&"visual"===l,i]}),[e]),{closeGeneralSidebar:a,setIsListViewOpened:r,setIsInserterOpened:s}=(0,u.useDispatch)(on),{set:i}=(0,u.useDispatch)(p.store),c=()=>{i("core/edit-post","fixedToolbar",!1),s(!1),r(!1),a()},d=(0,l.useMemo)((()=>[{name:"general",tabLabel:(0,b.__)("General"),content:(0,l.createElement)(l.Fragment,null,e&&(0,l.createElement)(Ce,{title:(0,b.__)("Publishing"),description:(0,b.__)("Change options related to publishing.")},(0,l.createElement)(xn,{help:(0,b.__)("Review settings, such as visibility and tags."),label:(0,b.__)("Include pre-publish checklist")})),(0,l.createElement)(Ce,{title:(0,b.__)("Appearance"),description:(0,b.__)("Customize options related to the block editor interface and editing flow.")},(0,l.createElement)(Mn,{featureName:"distractionFree",onToggle:c,help:(0,b.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,b.__)("Distraction free")}),(0,l.createElement)(Mn,{featureName:"focusMode",help:(0,b.__)("Highlights the current block and fades other content."),label:(0,b.__)("Spotlight mode")}),(0,l.createElement)(Mn,{featureName:"showIconLabels",label:(0,b.__)("Show button text labels"),help:(0,b.__)("Show text instead of icons on buttons.")}),(0,l.createElement)(Mn,{featureName:"showListViewByDefault",help:(0,b.__)("Opens the block list view sidebar by default."),label:(0,b.__)("Always open list view")}),(0,l.createElement)(Mn,{featureName:"themeStyles",help:(0,b.__)("Make the editor look like your theme."),label:(0,b.__)("Use theme styles")}),o&&(0,l.createElement)(Mn,{featureName:"showBlockBreadcrumbs",help:(0,b.__)("Shows block breadcrumbs at the bottom of the editor."),label:(0,b.__)("Display block breadcrumbs")})))},{name:"blocks",tabLabel:(0,b.__)("Blocks"),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ce,{title:(0,b.__)("Block interactions"),description:(0,b.__)("Customize how you interact with blocks in the block library and editing canvas.")},(0,l.createElement)(Mn,{featureName:"mostUsedBlocks",help:(0,b.__)("Places the most frequent blocks in the block library."),label:(0,b.__)("Show most used blocks")}),(0,l.createElement)(Mn,{featureName:"keepCaretInsideBlock",help:(0,b.__)("Aids screen readers by stopping text caret from leaving blocks."),label:(0,b.__)("Contain text cursor inside block")})),(0,l.createElement)(Ce,{title:(0,b.__)("Visible blocks"),description:(0,b.__)("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later.")},(0,l.createElement)(Nn,null)))},{name:"panels",tabLabel:(0,b.__)("Panels"),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ce,{title:(0,b.__)("Document settings"),description:(0,b.__)("Choose what displays in the panel.")},(0,l.createElement)(Tn.Slot,null),(0,l.createElement)(S.PostTaxonomies,{taxonomyWrapper:(e,t)=>(0,l.createElement)(Sn,{label:t.labels.menu_name,panelName:`taxonomy-panel-${t.slug}`})}),(0,l.createElement)(S.PostFeaturedImageCheck,null,(0,l.createElement)(Sn,{label:(0,b.__)("Featured image"),panelName:"featured-image"})),(0,l.createElement)(S.PostExcerptCheck,null,(0,l.createElement)(Sn,{label:(0,b.__)("Excerpt"),panelName:"post-excerpt"})),(0,l.createElement)(S.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},(0,l.createElement)(Sn,{label:(0,b.__)("Discussion"),panelName:"discussion-panel"})),(0,l.createElement)(S.PageAttributesCheck,null,(0,l.createElement)(Sn,{label:(0,b.__)("Page attributes"),panelName:"page-attributes"}))),(0,l.createElement)(Bn,{title:(0,b.__)("Additional"),description:(0,b.__)("Add extra areas to the editor.")}))}]),[e,o]);return n?(0,l.createElement)(ve,{closeModal:t},(0,l.createElement)(Pe,{sections:d})):null}class Vn extends l.Component{constructor(){super(...arguments),this.state={historyId:null}}componentDidUpdate(e){const{postId:t,postStatus:n,postType:o,isSavingPost:a}=this.props,{historyId:r}=this.state;"trash"!==n||a?t===e.postId&&t===r||"auto-draft"===n||!t||this.setBrowserURL(t):this.setTrashURL(t,o)}setTrashURL(e,t){window.location.href=function(e,t){return(0,T.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}setBrowserURL(e){window.history.replaceState({id:e},"Post "+e,function(e){return(0,T.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((()=>({historyId:e})))}render(){return null}}var On=(0,u.withSelect)((e=>{const{getCurrentPost:t,isSavingPost:n}=e(S.store),o=t();let{id:a,status:r,type:l}=o;return["wp_template","wp_template_part"].includes(l)&&(a=o.wp_id),{postId:a,postStatus:r,postType:l,isSavingPost:n()}}))(Vn);var Rn=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(k.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var Fn=function({showTooltip:e,icon:t,href:n}){var o;const{isActive:a,isRequestingSiteIcon:r,postType:s,siteIconUrl:i}=(0,u.useSelect)((e=>{const{getCurrentPostType:t}=e(S.store),{isFeatureActive:n}=e(on),{getEntityRecord:o,getPostType:a,isResolving:r}=e(w.store),l=o("root","__unstableBase",void 0)||{};return{isActive:n("fullscreenMode"),isRequestingSiteIcon:r("getEntityRecord",["root","__unstableBase",void 0]),postType:a(t()),siteIconUrl:l.site_icon_url}}),[]),c=(0,f.useReducedMotion)();if(!a||!s)return null;let d=(0,l.createElement)(_.Icon,{size:"36px",icon:Rn});const m={expand:{scale:1.25,transition:{type:"tween",duration:"0.3"}}};i&&(d=(0,l.createElement)(_.__unstableMotion.img,{variants:!c&&m,alt:(0,b.__)("Site Icon"),className:"edit-post-fullscreen-mode-close_site-icon",src:i})),r&&(d=null),t&&(d=(0,l.createElement)(_.Icon,{size:"36px",icon:t}));const p=L()({"edit-post-fullscreen-mode-close":!0,"has-icon":i});return(0,l.createElement)(_.__unstableMotion.div,{whileHover:"expand"},(0,l.createElement)(_.Button,{className:p,href:null!=n?n:(0,T.addQueryArgs)("edit.php",{post_type:s.slug}),label:null!==(o=s?.labels?.view_items)&&void 0!==o?o:(0,b.__)("Back"),showTooltip:e},d))};var Hn=(0,l.createElement)(k.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(k.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));var Gn=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const{useShouldContextualToolbarShow:Un}=mn(E.privateApis),zn=e=>{e.preventDefault()};var Zn=function(){const e=(0,l.useRef)(),{setIsInserterOpened:t,setIsListViewOpened:n}=(0,u.useDispatch)(on),{get:o}=(0,u.useSelect)(p.store),a=o("core/edit-post","fixedToolbar"),{isInserterEnabled:r,isInserterOpened:s,isTextModeEnabled:i,showIconLabels:c,isListViewOpen:d,listViewShortcut:m}=(0,u.useSelect)((e=>{const{hasInserterItems:t,getBlockRootClientId:n,getBlockSelectionEnd:o}=e(E.store),{getEditorSettings:a}=e(S.store),{getEditorMode:r,isFeatureActive:l,isListViewOpened:s}=e(on),{getShortcutRepresentation:i}=e(xe.store);return{isInserterEnabled:"visual"===r()&&a().richEditingEnabled&&t(n(o())),isInserterOpened:e(on).isInserterOpened(),isTextModeEnabled:"text"===r(),showIconLabels:l("showIconLabels"),isListViewOpen:s(),listViewShortcut:i("core/edit-post/toggle-list-view")}}),[]),g=(0,f.useViewportMatch)("medium"),h=(0,f.useViewportMatch)("wide"),{shouldShowContextualToolbar:v,canFocusHiddenToolbar:y,fixedToolbarCanBeFocused:w}=Un(),k=v||y||w,P=(0,b.__)("Document tools"),C=(0,l.useCallback)((()=>n(!d)),[n,d]),T=(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.ToolbarItem,{as:_.Button,className:"edit-post-header-toolbar__document-overview-toggle",icon:Hn,disabled:i,isPressed:d,label:(0,b.__)("Document Overview"),onClick:C,shortcut:m,showTooltip:!c,variant:c?"tertiary":void 0})),x=(0,l.useCallback)((()=>{s?(e.current.focus(),t(!1)):t(!0)}),[s,t]),M=(0,b._x)("Toggle block inserter","Generic label for block inserter button"),B=s?(0,b.__)("Close"):(0,b.__)("Add");return(0,l.createElement)(E.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":P,shouldUseKeyboardFocusShortcut:!k},(0,l.createElement)("div",{className:"edit-post-header-toolbar__left"},(0,l.createElement)(_.ToolbarItem,{ref:e,as:_.Button,className:"edit-post-header-toolbar__inserter-toggle",variant:"primary",isPressed:s,onMouseDown:zn,onClick:x,disabled:!r,icon:Gn,label:c?B:M,showTooltip:!c}),(h||!c)&&(0,l.createElement)(l.Fragment,null,g&&!a&&(0,l.createElement)(_.ToolbarItem,{as:E.ToolSelector,showTooltip:!c,variant:c?"tertiary":void 0,disabled:i}),(0,l.createElement)(_.ToolbarItem,{as:S.EditorHistoryUndo,showTooltip:!c,variant:c?"tertiary":void 0}),(0,l.createElement)(_.ToolbarItem,{as:S.EditorHistoryRedo,showTooltip:!c,variant:c?"tertiary":void 0}),T)))};const $n=[{value:"visual",label:(0,b.__)("Visual editor")},{value:"text",label:(0,b.__)("Code editor")}];var Wn=function(){const{shortcut:e,isRichEditingEnabled:t,isCodeEditingEnabled:n,isEditingTemplate:o,mode:a}=(0,u.useSelect)((e=>({shortcut:e(xe.store).getShortcutRepresentation("core/edit-post/toggle-mode"),isRichEditingEnabled:e(S.store).getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e(S.store).getEditorSettings().codeEditingEnabled,isEditingTemplate:e(on).isEditingTemplate(),mode:e(on).getEditorMode()})),[]),{switchEditorMode:r}=(0,u.useDispatch)(on);if(o)return null;if(!t||!n)return null;const s=$n.map((t=>t.value!==a?{...t,shortcut:e}:t));return(0,l.createElement)(_.MenuGroup,{label:(0,b.__)("Editor")},(0,l.createElement)(_.MenuItemsChoice,{choices:s,value:a,onSelect:r}))};function qn(){const{openModal:e}=(0,u.useDispatch)(ee);return(0,l.createElement)(_.MenuItem,{onClick:()=>{e(An)}},(0,b.__)("Preferences"))}var jn=function(){const e=(0,u.useRegistry)(),t=(0,u.useSelect)((e=>e(E.store).getSettings().isDistractionFree),[]),{setIsInserterOpened:n,setIsListViewOpened:o,closeGeneralSidebar:a}=(0,u.useDispatch)(on),{set:r}=(0,u.useDispatch)(p.store);return(0,f.useViewportMatch)("medium")?(0,l.createElement)(_.MenuGroup,{label:(0,b._x)("View","noun")},(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",disabled:t,name:"fixedToolbar",label:(0,b.__)("Top toolbar"),info:(0,b.__)("Access all block and document tools in a single place"),messageActivated:(0,b.__)("Top toolbar activated"),messageDeactivated:(0,b.__)("Top toolbar deactivated")}),(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"focusMode",label:(0,b.__)("Spotlight mode"),info:(0,b.__)("Focus on one block at a time"),messageActivated:(0,b.__)("Spotlight mode activated"),messageDeactivated:(0,b.__)("Spotlight mode deactivated")}),(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"fullscreenMode",label:(0,b.__)("Fullscreen mode"),info:(0,b.__)("Show and hide admin UI"),messageActivated:(0,b.__)("Fullscreen mode activated"),messageDeactivated:(0,b.__)("Fullscreen mode deactivated"),shortcut:B.displayShortcut.secondary("f")}),(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"distractionFree",onToggle:()=>{e.batch((()=>{r("core/edit-post","fixedToolbar",!1),n(!1),o(!1),a()}))},label:(0,b.__)("Distraction free"),info:(0,b.__)("Write with calmness"),messageActivated:(0,b.__)("Distraction free mode activated"),messageDeactivated:(0,b.__)("Distraction free mode deactivated"),shortcut:B.displayShortcut.primaryShift("\\")})):null};var Kn=({showIconLabels:e})=>{const t=(0,f.useViewportMatch)("large");return(0,l.createElement)(fe,{toggleProps:{showTooltip:!e,...e&&{variant:"tertiary"}}},(({onClose:n})=>(0,l.createElement)(l.Fragment,null,e&&!t&&(0,l.createElement)(de.Slot,{className:e&&"show-icon-labels",scope:"core/edit-post"}),(0,l.createElement)(jn,null),(0,l.createElement)(Wn,null),(0,l.createElement)(le.Slot,{name:"core/edit-post/plugin-more-menu",label:(0,b.__)("Plugins"),as:_.MenuGroup,fillProps:{onClick:n}}),(0,l.createElement)(Ge.Slot,{fillProps:{onClose:n}}),(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)(qn,null)))))};var Yn=(0,f.compose)((0,u.withSelect)((e=>{var t;return{hasPublishAction:null!==(t=e(S.store).getCurrentPost()?._links?.["wp:action-publish"])&&void 0!==t&&t,isBeingScheduled:e(S.store).isEditedPostBeingScheduled(),isPending:e(S.store).isCurrentPostPending(),isPublished:e(S.store).isCurrentPostPublished(),isPublishSidebarEnabled:e(S.store).isPublishSidebarEnabled(),isPublishSidebarOpened:e(on).isPublishSidebarOpened(),isScheduled:e(S.store).isCurrentPostScheduled()}})),(0,u.withDispatch)((e=>{const{togglePublishSidebar:t}=e(on);return{togglePublishSidebar:t}})))((function({forceIsDirty:e,forceIsSaving:t,hasPublishAction:n,isBeingScheduled:o,isPending:a,isPublished:r,isPublishSidebarEnabled:s,isPublishSidebarOpened:i,isScheduled:c,togglePublishSidebar:d,setEntitiesSavedStatesCallback:u}){const m="toggle",p="button",g=(0,f.useViewportMatch)("medium","<");let h;return h=r||c&&o||a&&!n&&!g?p:g||s?m:p,(0,l.createElement)(S.PostPublishButton,{forceIsDirty:e,forceIsSaving:t,isOpen:i,isToggle:h===m,onToggle:d,setEntitiesSavedStatesCallback:u})}));function Qn(){const{hasActiveMetaboxes:e,isPostSaveable:t,isSaving:n,isViewable:o,deviceType:a}=(0,u.useSelect)((e=>{var t;const{getEditedPostAttribute:n}=e(S.store),{getPostType:o}=e(w.store),a=o(n("type"));return{hasActiveMetaboxes:e(on).hasMetaBoxes(),isSaving:e(on).isSavingMetaBoxes(),isPostSaveable:e(S.store).isEditedPostSaveable(),isViewable:null!==(t=a?.viewable)&&void 0!==t&&t,deviceType:e(on).__experimentalGetPreviewDeviceType()}}),[]),{__experimentalSetPreviewDeviceType:r}=(0,u.useDispatch)(on);return(0,l.createElement)(E.__experimentalPreviewOptions,{isEnabled:t,className:"edit-post-post-preview-dropdown",deviceType:a,setDeviceType:r,label:(0,b.__)("Preview")},o&&(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)("div",{className:"edit-post-header-preview__grouping-external"},(0,l.createElement)(S.PostPreviewButton,{className:"edit-post-header-preview__button-external",role:"menuitem",forceIsAutosaveable:e,forcePreviewLink:n?null:void 0,textContent:(0,l.createElement)(l.Fragment,null,(0,b.__)("Preview in new tab"),(0,l.createElement)(_.Icon,{icon:P}))}))))}function Xn(){const{permalink:e,isPublished:t,label:n}=(0,u.useSelect)((e=>{const t=e(S.store).getCurrentPostType(),n=e(w.store).getPostType(t);return{permalink:e(S.store).getPermalink(),isPublished:e(S.store).isCurrentPostPublished(),label:n?.labels.view_item}}),[]);return t&&e?(0,l.createElement)(_.Button,{icon:P,label:n||(0,b.__)("View post"),href:e,target:"_blank"}):null}const Jn="__experimentalMainDashboardButton",{Fill:eo,Slot:to}=(0,_.createSlotFill)(Jn),no=eo;no.Slot=({children:e})=>{const t=(0,_.__experimentalUseSlotFills)(Jn);return Boolean(t&&t.length)?(0,l.createElement)(to,{bubblesVirtually:!0}):e};var oo=no;var ao=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));var ro=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));var lo=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var so=function(){const{template:e,isEditing:t}=(0,u.useSelect)((e=>{const{isEditingTemplate:t,getEditedPostTemplate:n}=e(on),o=t();return{template:o?n():null,isEditing:o}}),[]),{clearSelectedBlock:n}=(0,u.useDispatch)(E.store),{setIsEditingTemplate:o}=(0,u.useDispatch)(on),{open:a}=(0,u.useDispatch)(ln.store);if(!t||!e)return null;let r=(0,b.__)("Default");return e?.title?r=e.title:e&&(r=e.slug),(0,l.createElement)("div",{className:"edit-post-document-actions"},(0,l.createElement)(_.Button,{className:"edit-post-document-actions__back",onClick:()=>{n(),o(!1)},icon:(0,b.isRTL)()?ao:ro},(0,b.__)("Back")),(0,l.createElement)(_.Button,{className:"edit-post-document-actions__command",onClick:()=>a()},(0,l.createElement)(_.__experimentalHStack,{className:"edit-post-document-actions__title",spacing:1,justify:"center"},(0,l.createElement)(E.BlockIcon,{icon:lo}),(0,l.createElement)(_.__experimentalText,{size:"body",as:"h1"},(0,l.createElement)(_.VisuallyHidden,{as:"span"},(0,b.__)("Editing template: ")),r)),(0,l.createElement)("span",{className:"edit-post-document-actions__shortcut"},B.displayShortcut.primary("k"))))};const io={hidden:{y:"-50px"},hover:{y:0,transition:{type:"tween",delay:.2}}},co={hidden:{x:"-100%"},hover:{x:0,transition:{type:"tween",delay:.2}}};var uo=function({setEntitiesSavedStatesCallback:e}){const t=(0,f.useViewportMatch)("large"),{hasActiveMetaboxes:n,isPublishSidebarOpened:o,isSaving:a,showIconLabels:r}=(0,u.useSelect)((e=>({hasActiveMetaboxes:e(on).hasMetaBoxes(),isPublishSidebarOpened:e(on).isPublishSidebarOpened(),isSaving:e(on).isSavingMetaBoxes(),showIconLabels:e(on).isFeatureActive("showIconLabels")})),[]);return(0,l.createElement)("div",{className:"edit-post-header"},(0,l.createElement)(oo.Slot,null,(0,l.createElement)(_.__unstableMotion.div,{variants:co,transition:{type:"tween",delay:.8}},(0,l.createElement)(Fn,{showTooltip:!0}))),(0,l.createElement)(_.__unstableMotion.div,{variants:io,transition:{type:"tween",delay:.8},className:"edit-post-header__toolbar"},(0,l.createElement)(Zn,null),(0,l.createElement)("div",{className:"edit-post-header__center"},(0,l.createElement)(so,null))),(0,l.createElement)(_.__unstableMotion.div,{variants:io,transition:{type:"tween",delay:.8},className:"edit-post-header__settings"},!o&&(0,l.createElement)(S.PostSavedState,{forceIsDirty:n,forceIsSaving:a,showIconLabels:r}),(0,l.createElement)(Qn,null),(0,l.createElement)(S.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:a?null:void 0}),(0,l.createElement)(Xn,null),(0,l.createElement)(Yn,{forceIsDirty:n,forceIsSaving:a,setEntitiesSavedStatesCallback:e}),(t||!r)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(de.Slot,{scope:"core/edit-post"}),(0,l.createElement)(Kn,{showIconLabels:r})),r&&!t&&(0,l.createElement)(Kn,{showIconLabels:r})))};var mo=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function po(){const{insertionPoint:e,showMostUsedBlocks:t}=(0,u.useSelect)((e=>{const{isFeatureActive:t,__experimentalGetInsertionPoint:n}=e(on);return{insertionPoint:n(),showMostUsedBlocks:t("mostUsedBlocks")}}),[]),{setIsInserterOpened:n}=(0,u.useDispatch)(on),o=(0,f.useViewportMatch)("medium","<"),a=o?"div":_.VisuallyHidden,[r,s]=(0,f.__experimentalUseDialog)({onClose:()=>n(!1),focusOnMount:null}),i=(0,l.useRef)();return(0,l.useEffect)((()=>{i.current.focusSearch()}),[]),(0,l.createElement)("div",{ref:r,...s,className:"edit-post-editor__inserter-panel"},(0,l.createElement)(a,{className:"edit-post-editor__inserter-panel-header"},(0,l.createElement)(_.Button,{icon:mo,label:(0,b.__)("Close block inserter"),onClick:()=>n(!1)})),(0,l.createElement)("div",{className:"edit-post-editor__inserter-panel-content"},(0,l.createElement)(E.__experimentalLibrary,{showMostUsedBlocks:t,showInserterHelpPanel:!0,shouldFocusBlock:o,rootClientId:e.rootClientId,__experimentalInsertionIndex:e.insertionIndex,__experimentalFilterValue:e.filterValue,ref:i})))}var go=window.wp.dom;function ho(){return(0,l.createElement)(_.SVG,{width:"138",height:"148",viewBox:"0 0 138 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(_.Rect,{width:"138",height:"148",rx:"4",fill:"#F0F6FC"}),(0,l.createElement)(_.Line,{x1:"44",y1:"28",x2:"24",y2:"28",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"48",y:"16",width:"27",height:"23",rx:"4",fill:"#DDDDDD"}),(0,l.createElement)(_.Path,{d:"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",fill:"black"}),(0,l.createElement)(_.Line,{x1:"55",y1:"59",x2:"24",y2:"59",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"59",y:"47",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,l.createElement)(_.Path,{d:"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",fill:"black"}),(0,l.createElement)(_.Line,{x1:"80",y1:"90",x2:"24",y2:"90",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"84",y:"78",width:"30",height:"23",rx:"4",fill:"#F0B849"}),(0,l.createElement)(_.Path,{d:"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",fill:"black"}),(0,l.createElement)(_.Line,{x1:"66",y1:"121",x2:"24",y2:"121",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"70",y:"109",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,l.createElement)(_.Path,{d:"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",fill:"black"}))}function _o(){const{headingCount:e}=(0,u.useSelect)((e=>{const{getGlobalBlockCount:t}=e(E.store);return{headingCount:t("core/heading")}}),[]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-post-editor__list-view-overview"},(0,l.createElement)("div",null,(0,l.createElement)(_.__experimentalText,null,(0,b.__)("Characters:")),(0,l.createElement)(_.__experimentalText,null,(0,l.createElement)(S.CharacterCount,null))),(0,l.createElement)("div",null,(0,l.createElement)(_.__experimentalText,null,(0,b.__)("Words:")),(0,l.createElement)(S.WordCount,null)),(0,l.createElement)("div",null,(0,l.createElement)(_.__experimentalText,null,(0,b.__)("Time to read:")),(0,l.createElement)(S.TimeToRead,null))),e>0?(0,l.createElement)(S.DocumentOutline,null):(0,l.createElement)("div",{className:"edit-post-editor__list-view-empty-headings"},(0,l.createElement)(ho,null),(0,l.createElement)("p",null,(0,b.__)("Navigate the structure of your document and address issues like empty or incorrect heading levels."))))}function Eo(){const{setIsListViewOpened:e}=(0,u.useDispatch)(on),t=(0,f.useFocusOnMount)("firstElement"),n=(0,f.useFocusReturn)(),o=(0,f.useFocusReturn)();const[a,r]=(0,l.useState)(null),[s,i]=(0,l.useState)("list-view"),c=(0,l.useRef)(),d=(0,l.useRef)(),m=(0,l.useRef)(),p=(0,f.useMergeRefs)([o,t,m,r]);return(0,xe.useShortcut)("core/edit-post/toggle-list-view",(()=>{c.current.contains(c.current.ownerDocument.activeElement)?e(!1):function(e){const t=go.focus.tabbable.find(d.current)[0];if("list-view"===e){const e=go.focus.tabbable.find(m.current)[0];(c.current.contains(e)?e:t).focus()}else t.focus()}(s)})),(0,l.createElement)("div",{className:"edit-post-editor__document-overview-panel",onKeyDown:function(t){t.keyCode!==B.ESCAPE||t.defaultPrevented||(t.preventDefault(),e(!1))},ref:c},(0,l.createElement)(_.Button,{className:"edit-post-editor__document-overview-panel__close-button",ref:n,icon:O,label:(0,b.__)("Close"),onClick:()=>e(!1)}),(0,l.createElement)(_.TabPanel,{className:"edit-post-editor__document-overview-panel__tab-panel",ref:d,onSelect:e=>i(e),selectOnMove:!1,tabs:[{name:"list-view",title:(0,b._x)("List View","Post overview"),className:"edit-post-sidebar__panel-tab"},{name:"outline",title:(0,b._x)("Outline","Post overview"),className:"edit-post-sidebar__panel-tab"}]},(e=>(0,l.createElement)("div",{className:"edit-post-editor__list-view-container",ref:p},"list-view"===e.name?(0,l.createElement)("div",{className:"edit-post-editor__list-view-panel-content"},(0,l.createElement)(E.__experimentalListView,{dropZoneElement:a})):(0,l.createElement)(_o,null)))))}var bo=(0,l.createElement)(k.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"}));var fo=(0,l.createElement)(k.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"}));var vo=({sidebarName:e})=>{const{openGeneralSidebar:t}=(0,u.useDispatch)(on),n=()=>t("edit-post/document"),{documentLabel:o,isTemplateMode:a}=(0,u.useSelect)((e=>({documentLabel:e(S.store).getPostTypeLabel()||(0,b._x)("Document","noun"),isTemplateMode:e(on).isEditingTemplate()})),[]),[r,s]="edit-post/document"===e?[(0,b.sprintf)((0,b.__)("%s (selected)"),o),"is-active"]:[o,""],[i,c]="edit-post/block"===e?[(0,b.__)("Block (selected)"),"is-active"]:[(0,b.__)("Block"),""],[d,m]="edit-post/document"===e?[(0,b.__)("Template (selected)"),"is-active"]:[(0,b.__)("Template"),""];return(0,l.createElement)("ul",null,!a&&(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:n,className:`edit-post-sidebar__panel-tab ${s}`,"aria-label":r,"data-label":o},o)),a&&(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:n,className:`edit-post-sidebar__panel-tab ${m}`,"aria-label":d,"data-label":(0,b.__)("Template")},(0,b.__)("Template"))),(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:()=>t("edit-post/block"),className:`edit-post-sidebar__panel-tab ${c}`,"aria-label":i,"data-label":(0,b.__)("Block")},(0,b.__)("Block"))))};function yo({isOpen:e,onClick:t}){const n=(0,S.usePostVisibilityLabel)();return(0,l.createElement)(_.Button,{className:"edit-post-post-visibility__toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,b.sprintf)((0,b.__)("Select visibility: %s"),n),onClick:t},n)}var wo=function(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,l.createElement)(S.PostVisibilityCheck,{render:({canEdit:e})=>(0,l.createElement)(_.PanelRow,{ref:t,className:"edit-post-post-visibility"},(0,l.createElement)("span",null,(0,b.__)("Visibility")),!e&&(0,l.createElement)("span",null,(0,l.createElement)(S.PostVisibilityLabel,null)),e&&(0,l.createElement)(_.Dropdown,{contentClassName:"edit-post-post-visibility__dialog",popoverProps:n,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(yo,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(S.PostVisibility,{onClose:e})}))})};function So(){return(0,l.createElement)(S.PostTrashCheck,null,(0,l.createElement)(S.PostTrash,null))}function ko(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,l.createElement)(S.PostScheduleCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-schedule",ref:t},(0,l.createElement)("span",null,(0,b.__)("Publish")),(0,l.createElement)(_.Dropdown,{popoverProps:n,contentClassName:"edit-post-post-schedule__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(Po,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(S.PostSchedule,{onClose:e})})))}function Po({isOpen:e,onClick:t}){const n=(0,S.usePostScheduleLabel)(),o=(0,S.usePostScheduleLabel)({full:!0});return(0,l.createElement)(_.Button,{className:"edit-post-post-schedule__toggle",variant:"tertiary",label:o,showTooltip:!0,"aria-expanded":e,"aria-label":(0,b.sprintf)((0,b.__)("Change date: %s"),n),onClick:t},n)}var Co=function(){return(0,l.createElement)(S.PostStickyCheck,null,(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(S.PostSticky,null)))};var To=function(){return(0,l.createElement)(S.PostAuthorCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-author"},(0,l.createElement)(S.PostAuthor,null)))};var xo=function(){return(0,l.createElement)(S.PostSlugCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-slug"},(0,l.createElement)(S.PostSlug,null)))};var Mo=function(){return(0,l.createElement)(S.PostFormatCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-format"},(0,l.createElement)(S.PostFormat,null)))};var Bo=function(){return(0,l.createElement)(S.PostPendingStatusCheck,null,(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(S.PostPendingStatus,null)))};const{Fill:Io,Slot:Lo}=(0,_.createSlotFill)("PluginPostStatusInfo"),No=({children:e,className:t})=>(0,l.createElement)(Io,null,(0,l.createElement)(_.PanelRow,{className:t},e));No.Slot=Lo;var Ao=No;var Do=(0,l.createElement)(k.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(k.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"}));const Vo=(0,b.__)("Custom Template");function Oo({onClose:e}){const t=(0,u.useSelect)((e=>e(S.store).getEditorSettings().defaultBlockTemplate),[]),{__unstableCreateTemplate:n,__unstableSwitchToTemplateMode:o}=(0,u.useDispatch)(on),[a,r]=(0,l.useState)(""),[i,c]=(0,l.useState)(!1),d=()=>{r(""),e()};return(0,l.createElement)(_.Modal,{title:(0,b.__)("Create custom template"),onRequestClose:d,className:"edit-post-post-template__create-modal"},(0,l.createElement)("form",{className:"edit-post-post-template__create-form",onSubmit:async e=>{if(e.preventDefault(),i)return;c(!0);const r=null!=t?t:(0,s.serialize)([(0,s.createBlock)("core/group",{tagName:"header",layout:{inherit:!0}},[(0,s.createBlock)("core/site-title"),(0,s.createBlock)("core/site-tagline")]),(0,s.createBlock)("core/separator"),(0,s.createBlock)("core/group",{tagName:"main"},[(0,s.createBlock)("core/group",{layout:{inherit:!0}},[(0,s.createBlock)("core/post-title")]),(0,s.createBlock)("core/post-content",{layout:{inherit:!0}})])]);await n({slug:(0,T.cleanForSlug)(a||Vo),content:r,title:a||Vo}),c(!1),d(),o(!0)}},(0,l.createElement)(_.__experimentalVStack,{spacing:"3"},(0,l.createElement)(_.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Name"),value:a,onChange:r,placeholder:Vo,disabled:i,help:(0,b.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,l.createElement)(_.__experimentalHStack,{justify:"right"},(0,l.createElement)(_.Button,{variant:"tertiary",onClick:d},(0,b.__)("Cancel")),(0,l.createElement)(_.Button,{variant:"primary",type:"submit",isBusy:i,"aria-disabled":i},(0,b.__)("Create"))))))}function Ro({onClose:e}){var t,n;const{isPostsPage:o,availableTemplates:a,fetchedTemplates:r,selectedTemplateSlug:s,canCreate:i,canEdit:c}=(0,u.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEntityRecords:o}=e(w.store),a=e(S.store).getEditorSettings(),r=t("read","settings")?n("root","site"):void 0,l=e(S.store).getCurrentPostId()===r?.page_for_posts,s=t("create","templates");return{isPostsPage:l,availableTemplates:a.availableTemplates,fetchedTemplates:s?o("postType","wp_template",{post_type:e(S.store).getCurrentPostType(),per_page:-1}):void 0,selectedTemplateSlug:e(S.store).getEditedPostAttribute("template"),canCreate:s&&!l&&a.supportsTemplateMode,canEdit:s&&a.supportsTemplateMode&&!!e(on).getEditedPostTemplate()}}),[]),d=(0,l.useMemo)((()=>Object.entries({...a,...Object.fromEntries((null!=r?r:[]).map((({slug:e,title:t})=>[e,t.rendered])))}).map((([e,t])=>({value:e,label:t})))),[a,r]),m=null!==(t=d.find((e=>e.value===s)))&&void 0!==t?t:d.find((e=>!e.value)),{editPost:p}=(0,u.useDispatch)(S.store),{__unstableSwitchToTemplateMode:g}=(0,u.useDispatch)(on),[h,f]=(0,l.useState)(!1);return(0,l.createElement)("div",{className:"edit-post-post-template__form"},(0,l.createElement)(E.__experimentalInspectorPopoverHeader,{title:(0,b.__)("Template"),help:(0,b.__)("Templates define the way content is displayed when viewing your site."),actions:i?[{icon:Do,label:(0,b.__)("Add template"),onClick:()=>f(!0)}]:[],onClose:e}),o?(0,l.createElement)(_.Notice,{className:"edit-post-post-template__notice",status:"warning",isDismissible:!1},(0,b.__)("The posts page template cannot be changed.")):(0,l.createElement)(_.SelectControl,{__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,label:(0,b.__)("Template"),value:null!==(n=m?.value)&&void 0!==n?n:"",options:d,onChange:e=>p({template:e||""})}),c&&(0,l.createElement)("p",null,(0,l.createElement)(_.Button,{variant:"link",onClick:()=>g()},(0,b.__)("Edit template"))),h&&(0,l.createElement)(Oo,{onClose:()=>f(!1)}))}function Fo(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,u.useSelect)((e=>{var t;const n=e(S.store).getCurrentPostType(),o=e(w.store).getPostType(n);if(!o?.viewable)return!1;const a=e(S.store).getEditorSettings();if(!!a.availableTemplates&&Object.keys(a.availableTemplates).length>0)return!0;if(!a.supportsTemplateMode)return!1;return null!==(t=e(w.store).canUser("create","templates"))&&void 0!==t&&t}),[])?(0,l.createElement)(_.PanelRow,{className:"edit-post-post-template",ref:t},(0,l.createElement)("span",null,(0,b.__)("Template")),(0,l.createElement)(_.Dropdown,{popoverProps:n,className:"edit-post-post-template__dropdown",contentClassName:"edit-post-post-template__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(Ho,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(Ro,{onClose:e})})):null}function Ho({isOpen:e,onClick:t}){const n=(0,u.useSelect)((e=>{const t=e(S.store).getEditedPostAttribute("template"),{supportsTemplateMode:n,availableTemplates:o}=e(S.store).getEditorSettings();if(!n&&o[t])return o[t];const a=e(w.store).canUser("create","templates")&&e(on).getEditedPostTemplate();return a?.title||a?.slug||o?.[t]}),[]);return(0,l.createElement)(_.Button,{className:"edit-post-post-template__toggle",variant:"tertiary","aria-expanded":e,"aria-label":n?(0,b.sprintf)((0,b.__)("Select template: %s"),n):(0,b.__)("Select template"),onClick:t},null!=n?n:(0,b.__)("Default template"))}function Go(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,l.createElement)(S.PostURLCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-url",ref:t},(0,l.createElement)("span",null,(0,b.__)("URL")),(0,l.createElement)(_.Dropdown,{popoverProps:n,className:"edit-post-post-url__dropdown",contentClassName:"edit-post-post-url__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(Uo,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(S.PostURL,{onClose:e})})))}function Uo({isOpen:e,onClick:t}){const n=(0,S.usePostURLLabel)();return(0,l.createElement)(_.Button,{className:"edit-post-post-url__toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,b.sprintf)((0,b.__)("Change URL: %s"),n),onClick:t},n)}const zo="post-status";var Zo=(0,f.compose)([(0,u.withSelect)((e=>{const{isEditorPanelRemoved:t,isEditorPanelOpened:n}=e(on);return{isRemoved:t(zo),isOpened:n(zo)}})),(0,f.ifCondition)((({isRemoved:e})=>!e)),(0,u.withDispatch)((e=>({onTogglePanel(){return e(on).toggleEditorPanelOpened(zo)}})))])((function({isOpened:e,onTogglePanel:t}){return(0,l.createElement)(_.PanelBody,{className:"edit-post-post-status",title:(0,b.__)("Summary"),opened:e,onToggle:t},(0,l.createElement)(Ao.Slot,null,(e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wo,null),(0,l.createElement)(ko,null),(0,l.createElement)(Fo,null),(0,l.createElement)(Go,null),(0,l.createElement)(Co,null),(0,l.createElement)(Bo,null),(0,l.createElement)(Mo,null),(0,l.createElement)(xo,null),(0,l.createElement)(To,null),(0,l.createElement)(S.PostSyncStatus,null),e,(0,l.createElement)(_.__experimentalHStack,{style:{marginTop:"16px"},spacing:4,wrap:!0},(0,l.createElement)(S.PostSwitchToDraftButton,null),(0,l.createElement)(So,null))))))}));var $o=function(){return(0,l.createElement)(S.PostLastRevisionCheck,null,(0,l.createElement)(_.PanelBody,{className:"edit-post-last-revision__panel"},(0,l.createElement)(S.PostLastRevision,null)))};var Wo=(0,f.compose)((0,u.withSelect)(((e,t)=>{const n=t.taxonomy?.slug,o=n?`taxonomy-panel-${n}`:"";return{panelName:o,isEnabled:!!n&&e(on).isEditorPanelEnabled(o),isOpened:!!n&&e(on).isEditorPanelOpened(o)}})),(0,u.withDispatch)(((e,t)=>({onTogglePanel:()=>{e(on).toggleEditorPanelOpened(t.panelName)}}))))((function({isEnabled:e,taxonomy:t,isOpened:n,onTogglePanel:o,children:a}){if(!e)return null;const r=t?.labels?.menu_name;return r?(0,l.createElement)(_.PanelBody,{title:r,opened:n,onToggle:o},a):null}));var qo=function(){return(0,l.createElement)(S.PostTaxonomiesCheck,null,(0,l.createElement)(S.PostTaxonomies,{taxonomyWrapper:(e,t)=>(0,l.createElement)(Wo,{taxonomy:t},e)}))};const jo="featured-image";const Ko=(0,u.withSelect)((e=>{const{getEditedPostAttribute:t}=e(S.store),{getPostType:n}=e(w.store),{isEditorPanelEnabled:o,isEditorPanelOpened:a}=e(on);return{postType:n(t("type")),isEnabled:o(jo),isOpened:a(jo)}})),Yo=(0,u.withDispatch)((e=>{const{toggleEditorPanelOpened:t}=e(on);return{onTogglePanel:(...e)=>t(jo,...e)}}));var Qo=(0,f.compose)(Ko,Yo)((function({isEnabled:e,isOpened:t,postType:n,onTogglePanel:o}){var a;return e?(0,l.createElement)(S.PostFeaturedImageCheck,null,(0,l.createElement)(_.PanelBody,{title:null!==(a=n?.labels?.featured_image)&&void 0!==a?a:(0,b.__)("Featured image"),opened:t,onToggle:o},(0,l.createElement)(S.PostFeaturedImage,null))):null}));const Xo="post-excerpt";var Jo=(0,f.compose)([(0,u.withSelect)((e=>({isEnabled:e(on).isEditorPanelEnabled(Xo),isOpened:e(on).isEditorPanelOpened(Xo)}))),(0,u.withDispatch)((e=>({onTogglePanel(){return e(on).toggleEditorPanelOpened(Xo)}})))])((function({isEnabled:e,isOpened:t,onTogglePanel:n}){return e?(0,l.createElement)(S.PostExcerptCheck,null,(0,l.createElement)(_.PanelBody,{title:(0,b.__)("Excerpt"),opened:t,onToggle:n},(0,l.createElement)(S.PostExcerpt,null))):null}));const ea="discussion-panel";var ta=(0,f.compose)([(0,u.withSelect)((e=>({isEnabled:e(on).isEditorPanelEnabled(ea),isOpened:e(on).isEditorPanelOpened(ea)}))),(0,u.withDispatch)((e=>({onTogglePanel(){return e(on).toggleEditorPanelOpened(ea)}})))])((function({isEnabled:e,isOpened:t,onTogglePanel:n}){return e?(0,l.createElement)(S.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},(0,l.createElement)(_.PanelBody,{title:(0,b.__)("Discussion"),opened:t,onToggle:n},(0,l.createElement)(S.PostTypeSupportCheck,{supportKeys:"comments"},(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(S.PostComments,null))),(0,l.createElement)(S.PostTypeSupportCheck,{supportKeys:"trackbacks"},(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(S.PostPingbacks,null))))):null}));const na="page-attributes";var oa=function(){var e;const{isEnabled:t,isOpened:n,postType:o}=(0,u.useSelect)((e=>{const{getEditedPostAttribute:t}=e(S.store),{isEditorPanelEnabled:n,isEditorPanelOpened:o}=e(on),{getPostType:a}=e(w.store);return{isEnabled:n(na),isOpened:o(na),postType:a(t("type"))}}),[]),{toggleEditorPanelOpened:a}=(0,u.useDispatch)(on);return t&&o?(0,l.createElement)(S.PageAttributesCheck,null,(0,l.createElement)(_.PanelBody,{title:null!==(e=o?.labels?.attributes)&&void 0!==e?e:(0,b.__)("Page attributes"),opened:n,onToggle:(...e)=>a(na,...e)},(0,l.createElement)(S.PageAttributesParent,null),(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(S.PageAttributesOrder,null)))):null};var aa=function({location:e}){const t=(0,l.useRef)(null),n=(0,l.useRef)(null);(0,l.useEffect)((()=>(n.current=document.querySelector(".metabox-location-"+e),n.current&&t.current.appendChild(n.current),()=>{n.current&&document.querySelector("#metaboxes").appendChild(n.current)})),[e]);const o=(0,u.useSelect)((e=>e(on).isSavingMetaBoxes()),[]),a=L()("edit-post-meta-boxes-area",`is-${e}`,{"is-loading":o});return(0,l.createElement)("div",{className:a},o&&(0,l.createElement)(_.Spinner,null),(0,l.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:t}),(0,l.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))};class ra extends l.Component{componentDidMount(){this.updateDOM()}componentDidUpdate(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}updateDOM(){const{id:e,isVisible:t}=this.props,n=document.getElementById(e);n&&(t?n.classList.remove("is-hidden"):n.classList.add("is-hidden"))}render(){return null}}var la=(0,u.withSelect)(((e,{id:t})=>({isVisible:e(on).isEditorPanelEnabled(`meta-box-${t}`)})))(ra);function sa({location:e}){const t=(0,u.useRegistry)(),{metaBoxes:n,areMetaBoxesInitialized:o,isEditorReady:a}=(0,u.useSelect)((t=>{const{__unstableIsEditorReady:n}=t(S.store),{getMetaBoxesPerLocation:o,areMetaBoxesInitialized:a}=t(on);return{metaBoxes:o(e),areMetaBoxesInitialized:a(),isEditorReady:n()}}),[e]);return(0,l.useEffect)((()=>{a&&!o&&t.dispatch(on).initializeMetaBoxes()}),[a,o]),o?(0,l.createElement)(l.Fragment,null,(null!=n?n:[]).map((({id:e})=>(0,l.createElement)(la,{key:e,id:e}))),(0,l.createElement)(aa,{location:e})):null}window.wp.warning;const{Fill:ia,Slot:ca}=(0,_.createSlotFill)("PluginDocumentSettingPanel"),da=(0,f.compose)((0,C.withPluginContext)(((e,t)=>(void 0===t.name&&"undefined"!=typeof process&&process.env,{panelName:`${e.name}/${t.name}`}))),(0,u.withSelect)(((e,{panelName:t})=>({opened:e(on).isEditorPanelOpened(t),isEnabled:e(on).isEditorPanelEnabled(t)}))),(0,u.withDispatch)(((e,{panelName:t})=>({onToggle(){return e(on).toggleEditorPanelOpened(t)}}))))((({isEnabled:e,panelName:t,opened:n,onToggle:o,className:a,title:r,icon:s,children:i})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Tn,{label:r,panelName:t}),(0,l.createElement)(ia,null,e&&(0,l.createElement)(_.PanelBody,{className:a,title:r,icon:s,opened:n,onToggle:o},i)))));da.Slot=ca;var ua=da;function ma({className:e,...t}){const{postTitle:n,shortcut:o,showIconLabels:a}=(0,u.useSelect)((e=>({postTitle:e(S.store).getEditedPostAttribute("title"),shortcut:e(xe.store).getShortcutRepresentation("core/edit-post/toggle-sidebar"),showIconLabels:e(on).isFeatureActive("showIconLabels")})),[]);return(0,l.createElement)(pe,{panelClassName:e,className:"edit-post-sidebar",smallScreenTitle:n||(0,b.__)("(no title)"),scope:"core/edit-post",toggleShortcut:o,showIconLabels:a,...t})}var pa=function(){const e=(0,u.useSelect)((e=>{const{getEditedPostTemplate:t}=e(on);return t()}),[]);return e?(0,l.createElement)(_.PanelBody,null,(0,l.createElement)(_.Flex,{align:"flex-start",gap:"3"},(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(ye,{icon:lo})),(0,l.createElement)(_.FlexBlock,null,(0,l.createElement)("h2",{className:"edit-post-template-summary__title"},e?.title||e?.slug),(0,l.createElement)("p",null,e?.description)))):null};const ga=l.Platform.select({web:!0,native:!1});var ha=()=>{const{sidebarName:e,keyboardShortcut:t,isTemplateMode:n}=(0,u.useSelect)((e=>{let t=e(ee).getActiveComplementaryArea(on.name);["edit-post/document","edit-post/block"].includes(t)||(e(E.store).getBlockSelectionStart()&&(t="edit-post/block"),t="edit-post/document");return{sidebarName:t,keyboardShortcut:e(xe.store).getShortcutRepresentation("core/edit-post/toggle-sidebar"),isTemplateMode:e(on).isEditingTemplate()}}),[]);return(0,l.createElement)(ma,{identifier:e,header:(0,l.createElement)(vo,{sidebarName:e}),closeLabel:(0,b.__)("Close Settings"),headerClassName:"edit-post-sidebar__panel-tabs",title:(0,b.__)("Settings"),toggleShortcut:t,icon:(0,b.isRTL)()?bo:fo,isActiveByDefault:ga},!n&&"edit-post/document"===e&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Zo,null),(0,l.createElement)(ua.Slot,null),(0,l.createElement)($o,null),(0,l.createElement)(qo,null),(0,l.createElement)(Qo,null),(0,l.createElement)(Jo,null),(0,l.createElement)(ta,null),(0,l.createElement)(oa,null),(0,l.createElement)(sa,{location:"side"})),n&&"edit-post/document"===e&&(0,l.createElement)(pa,null),"edit-post/block"===e&&(0,l.createElement)(E.BlockInspector,null))};function _a({nonAnimatedSrc:e,animatedSrc:t}){return(0,l.createElement)("picture",{className:"edit-post-welcome-guide__image"},(0,l.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,l.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function Ea(){const{toggleFeature:e}=(0,u.useDispatch)(on);return(0,l.createElement)(_.Guide,{className:"edit-post-welcome-guide",contentLabel:(0,b.__)("Welcome to the block editor"),finishButtonText:(0,b.__)("Get started"),onFinish:()=>e("welcomeGuide"),pages:[{image:(0,l.createElement)(_a,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Welcome to the block editor")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.")))},{image:(0,l.createElement)(_a,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Make each block your own")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.")))},{image:(0,l.createElement)(_a,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Get to know the block library")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,l.createInterpolateElement)((0,b.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon."),{InserterIconImage:(0,l.createElement)("img",{alt:(0,b.__)("inserter"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})))},{image:(0,l.createElement)(_a,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Learn how to use the block editor")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("New to the block editor? Want to learn more about using it? "),(0,l.createElement)(_.ExternalLink,{href:(0,b.__)("https://wordpress.org/documentation/article/wordpress-block-editor/")},(0,b.__)("Here's a detailed guide."))))}]})}function ba(){const{toggleFeature:e}=(0,u.useDispatch)(on);return(0,l.createElement)(_.Guide,{className:"edit-template-welcome-guide",contentLabel:(0,b.__)("Welcome to the template editor"),finishButtonText:(0,b.__)("Get started"),onFinish:()=>e("welcomeGuideTemplate"),pages:[{image:(0,l.createElement)(_a,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Welcome to the template editor")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("Templates help define the layout of the site. You can customize all aspects of your posts and pages using blocks and patterns in this editor.")))}]})}function fa(){const{isActive:e,isTemplateMode:t}=(0,u.useSelect)((e=>{const{isFeatureActive:t,isEditingTemplate:n}=e(on),o=n();return{isActive:t(o?"welcomeGuideTemplate":"welcomeGuide"),isTemplateMode:o}}),[]);return e?t?(0,l.createElement)(ba,null):(0,l.createElement)(Ea,null):null}const{Fill:va,Slot:ya}=(0,_.createSlotFill)("PluginPostPublishPanel"),wa=(0,f.compose)((0,C.withPluginContext)(((e,t)=>({icon:t.icon||e.icon}))))((({children:e,className:t,title:n,initialOpen:o=!1,icon:a})=>(0,l.createElement)(va,null,(0,l.createElement)(_.PanelBody,{className:t,initialOpen:o||!n,title:n,icon:a},e))));wa.Slot=ya;var Sa=wa;const{Fill:ka,Slot:Pa}=(0,_.createSlotFill)("PluginPrePublishPanel"),Ca=(0,f.compose)((0,C.withPluginContext)(((e,t)=>({icon:t.icon||e.icon}))))((({children:e,className:t,title:n,initialOpen:o=!1,icon:a})=>(0,l.createElement)(ka,null,(0,l.createElement)(_.PanelBody,{className:t,initialOpen:o||!n,title:n,icon:a},e))));Ca.Slot=Pa;var Ta=Ca;const{Fill:xa,Slot:Ma}=(0,_.createSlotFill)("ActionsPanel");function Ba({setEntitiesSavedStatesCallback:e,closeEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}){const{closePublishSidebar:o,togglePublishSidebar:a}=(0,u.useDispatch)(on),{publishSidebarOpened:r,hasActiveMetaboxes:s,isSavingMetaBoxes:i,hasNonPostEntityChanges:c}=(0,u.useSelect)((e=>({publishSidebarOpened:e(on).isPublishSidebarOpened(),hasActiveMetaboxes:e(on).hasMetaBoxes(),isSavingMetaBoxes:e(on).isSavingMetaBoxes(),hasNonPostEntityChanges:e(S.store).hasNonPostEntityChanges()})),[]),d=(0,l.useCallback)((()=>e(!0)),[]);let m;return m=r?(0,l.createElement)(S.PostPublishPanel,{onClose:o,forceIsDirty:s,forceIsSaving:i,PrePublishExtension:Ta.Slot,PostPublishExtension:Sa.Slot}):c?(0,l.createElement)("div",{className:"edit-post-layout__toggle-entities-saved-states-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-entities-saved-states-panel-button",onClick:d,"aria-expanded":!1},(0,b.__)("Open save panel"))):(0,l.createElement)("div",{className:"edit-post-layout__toggle-publish-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-publish-panel-button",onClick:a,"aria-expanded":!1},(0,b.__)("Open publish panel"))),(0,l.createElement)(l.Fragment,null,n&&(0,l.createElement)(S.EntitiesSavedStates,{close:t}),(0,l.createElement)(Ma,{bubblesVirtually:!0}),!n&&m)}function Ia(){const{blockPatternsWithPostContentBlockType:e,postType:t}=(0,u.useSelect)((e=>{const{getPatternsByBlockTypes:t}=e(E.store),{getCurrentPostType:n}=e(S.store);return{blockPatternsWithPostContentBlockType:t("core/post-content"),postType:n()}}),[]);return(0,l.useMemo)((()=>e.filter((e=>"page"===t&&!e.postTypes||Array.isArray(e.postTypes)&&e.postTypes.includes(t)))),[t,e])}function La({onChoosePattern:e}){const t=Ia(),n=(0,f.useAsyncList)(t),{resetEditorBlocks:o}=(0,u.useDispatch)(S.store);return(0,l.createElement)(E.__experimentalBlockPatternsList,{blockPatterns:t,shownPatterns:n,onClickPattern:(t,n)=>{o(n),e()}})}const Na={INITIAL:"INITIAL",PATTERN:"PATTERN",CLOSED:"CLOSED"};function Aa(){const[e,t]=(0,l.useState)(Na.INITIAL),n=Ia().length>0,o=(0,u.useSelect)((t=>{if(!n||e!==Na.INITIAL)return!1;const{getEditedPostContent:o,isEditedPostSaveable:a}=t(S.store),{isEditingTemplate:r,isFeatureActive:l}=t(on);return!a()&&""===o()&&!r()&&!l("welcomeGuide")}),[e,n]);return(0,l.useEffect)((()=>{o&&t(Na.PATTERN)}),[o]),e===Na.INITIAL||e===Na.CLOSED?null:(0,l.createElement)(_.Modal,{className:"edit-post-start-page-options__modal",title:(0,b.__)("Choose a pattern"),isFullScreen:!0,onRequestClose:()=>{t(Na.CLOSED)}},(0,l.createElement)("div",{className:"edit-post-start-page-options__modal-content"},e===Na.PATTERN&&(0,l.createElement)(La,{onChoosePattern:()=>{t(Na.CLOSED)}})))}const{getLayoutStyles:Da}=mn(E.privateApis),Va={header:(0,b.__)("Editor top bar"),body:(0,b.__)("Editor content"),sidebar:(0,b.__)("Editor settings"),actions:(0,b.__)("Editor publish"),footer:(0,b.__)("Editor footer")};var Oa=function(){const e=(0,f.useViewportMatch)("medium","<"),t=(0,f.useViewportMatch)("huge",">="),n=(0,f.useViewportMatch)("large"),{openGeneralSidebar:o,closeGeneralSidebar:a,setIsInserterOpened:r}=(0,u.useDispatch)(on),{createErrorNotice:s}=(0,u.useDispatch)(x.store),{mode:i,isFullscreenActive:c,isRichEditingEnabled:d,sidebarIsOpened:m,hasActiveMetaboxes:p,hasFixedToolbar:g,previousShortcut:h,nextShortcut:v,hasBlockSelected:y,isInserterOpened:w,isListViewOpened:k,showIconLabels:P,isDistractionFree:T,showBlockBreadcrumbs:M,isTemplateMode:B,documentLabel:I}=(0,u.useSelect)((e=>{const{getEditorSettings:t,getPostTypeLabel:n}=e(S.store),o=t(),a=n();return{isTemplateMode:e(on).isEditingTemplate(),hasFixedToolbar:e(on).isFeatureActive("fixedToolbar"),sidebarIsOpened:!(!e(ee).getActiveComplementaryArea(on.name)&&!e(on).isPublishSidebarOpened()),isFullscreenActive:e(on).isFeatureActive("fullscreenMode"),isInserterOpened:e(on).isInserterOpened(),isListViewOpened:e(on).isListViewOpened(),mode:e(on).getEditorMode(),isRichEditingEnabled:o.richEditingEnabled,hasActiveMetaboxes:e(on).hasMetaBoxes(),previousShortcut:e(xe.store).getAllShortcutKeyCombinations("core/edit-post/previous-region"),nextShortcut:e(xe.store).getAllShortcutKeyCombinations("core/edit-post/next-region"),showIconLabels:e(on).isFeatureActive("showIconLabels"),isDistractionFree:e(on).isFeatureActive("distractionFree"),showBlockBreadcrumbs:e(on).isFeatureActive("showBlockBreadcrumbs"),documentLabel:a||(0,b._x)("Document","noun")}}),[]),N=function(){const{hasThemeStyleSupport:e,editorSettings:t}=(0,u.useSelect)((e=>({hasThemeStyleSupport:e(on).isFeatureActive("themeStyles"),editorSettings:e(S.store).getEditorSettings()})),[]);return(0,l.useMemo)((()=>{var n,o;const a=null!==(n=t.styles?.filter((e=>e.__unstableType&&"theme"!==e.__unstableType)))&&void 0!==n?n:[],r=[...t.defaultEditorStyles,...a],l=e&&a.length!==(null!==(o=t.styles?.length)&&void 0!==o?o:0);return t.disableLayoutStyles||l||r.push({css:Da({style:{},selector:"body",hasBlockGapSupport:!1,hasFallbackGapSupport:!0,fallbackGapValue:"0.5em"})}),l?t.styles:r}),[t.defaultEditorStyles,t.disableLayoutStyles,t.styles,e])}();(0,l.useEffect)((()=>{m&&!t&&r(!1)}),[m,t]),(0,l.useEffect)((()=>{w&&!t&&a()}),[w,t]);const[A,D]=(0,l.useState)(!1),V=(0,l.useCallback)((e=>{"function"==typeof A&&A(e),D(!1)}),[A]),O=L()("edit-post-layout","is-mode-"+i,{"is-sidebar-opened":m,"has-fixed-toolbar":g,"has-metaboxes":p,"show-icon-labels":P,"is-distraction-free":T&&n,"is-entity-save-view-open":!!A}),R=k?(0,b.__)("Document Overview"):(0,b.__)("Block Library");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ge,{isActive:c}),(0,l.createElement)(On,null),(0,l.createElement)(S.UnsavedChangesWarning,null),(0,l.createElement)(S.AutosaveMonitor,null),(0,l.createElement)(S.LocalAutosaveMonitor,null),(0,l.createElement)(vn,null),(0,l.createElement)(S.EditorKeyboardShortcutsRegister,null),(0,l.createElement)(ha,null),(0,l.createElement)(Ee,{isDistractionFree:T&&n,className:O,labels:{...Va,secondarySidebar:R},header:(0,l.createElement)(uo,{setEntitiesSavedStatesCallback:D}),editorNotices:(0,l.createElement)(S.EditorNotices,null),secondarySidebar:"visual"===i&&w?(0,l.createElement)(po,null):"visual"===i&&k?(0,l.createElement)(Eo,null):null,sidebar:(!e||m)&&(0,l.createElement)(l.Fragment,null,!e&&!m&&(0,l.createElement)("div",{className:"edit-post-layout__toggle-sidebar-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-sidebar-panel-button",onClick:()=>o(y?"edit-post/block":"edit-post/document"),"aria-expanded":!1},y?(0,b.__)("Open block settings"):(0,b.__)("Open document settings"))),(0,l.createElement)(pe.Slot,{scope:"core/edit-post"})),notices:(0,l.createElement)(S.EditorSnackbars,null),content:(0,l.createElement)(l.Fragment,null,!T&&(0,l.createElement)(S.EditorNotices,null),("text"===i||!d)&&(0,l.createElement)(cn,null),d&&"visual"===i&&(0,l.createElement)(fn,{styles:N}),!T&&!B&&(0,l.createElement)("div",{className:"edit-post-layout__metaboxes"},(0,l.createElement)(sa,{location:"normal"}),(0,l.createElement)(sa,{location:"advanced"})),e&&m&&(0,l.createElement)(_.ScrollLock,null)),footer:!T&&!e&&M&&d&&"visual"===i&&(0,l.createElement)("div",{className:"edit-post-layout__footer"},(0,l.createElement)(E.BlockBreadcrumb,{rootLabelText:I})),actions:(0,l.createElement)(Ba,{closeEntitiesSavedStates:V,isEntitiesSavedStatesOpen:A,setEntitiesSavedStatesCallback:D}),shortcuts:{previous:h,next:v}}),(0,l.createElement)(Dn,null),(0,l.createElement)(Oe,null),(0,l.createElement)(fa,null),(0,l.createElement)(S.PostSyncStatusModal,null),(0,l.createElement)(Aa,null),(0,l.createElement)(_.Popover.Slot,null),(0,l.createElement)(C.PluginArea,{onError:function(e){s((0,b.sprintf)((0,b.__)('The "%s" plugin has encountered an error and cannot be rendered.'),e))}}))};const Ra=e=>{const{hasBlockSelection:t,isEditorSidebarOpened:n}=(0,u.useSelect)((e=>({hasBlockSelection:!!e(E.store).getBlockSelectionStart(),isEditorSidebarOpened:e(nn).isEditorSidebarOpened()})),[e]),{openGeneralSidebar:o}=(0,u.useDispatch)(nn);(0,l.useEffect)((()=>{n&&o(t?"edit-post/block":"edit-post/document")}),[t,n])},Fa=e=>{const{newPermalink:t}=(0,u.useSelect)((e=>({newPermalink:e(S.store).getCurrentPost().link})),[e]),n=(0,l.useRef)();(0,l.useEffect)((()=>{n.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),(0,l.useEffect)((()=>{t&&n.current&&n.current.setAttribute("href",t)}),[t])};function Ha({postId:e}){return Ra(e),Fa(e),null}var Ga=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));var Ua=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));var za=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}));var Za=(0,l.createElement)(k.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(k.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));var $a=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(k.Path,{d:"M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z"}));const{ExperimentalEditorProvider:Wa}=mn(S.privateApis),{useCommands:qa}=mn(sn.privateApis);var ja=function({postId:e,postType:t,settings:n,initialEdits:o,...a}){qa(),function(){const{openGeneralSidebar:e,closeGeneralSidebar:t,switchEditorMode:n,setIsListViewOpened:o}=(0,u.useDispatch)(on),{openModal:a}=(0,u.useDispatch)(ee),{editorMode:r,activeSidebar:l,isListViewOpen:s}=(0,u.useSelect)((e=>{const{getEditorMode:t,isListViewOpened:n}=e(on);return{activeSidebar:e(ee).getActiveComplementaryArea(on.name),editorMode:t(),isListViewOpen:n()}}),[]),{toggle:i}=(0,u.useDispatch)(p.store);(0,ln.useCommand)({name:"core/open-settings-sidebar",label:(0,b.__)("Toggle settings sidebar"),icon:(0,b.isRTL)()?bo:fo,callback:({close:n})=>{n(),"edit-post/document"===l?t():e("edit-post/document")}}),(0,ln.useCommand)({name:"core/open-block-inspector",label:(0,b.__)("Toggle block inspector"),icon:Ga,callback:({close:n})=>{n(),"edit-post/block"===l?t():e("edit-post/block")}}),(0,ln.useCommand)({name:"core/toggle-distraction-free",label:(0,b.__)("Toggle distraction free"),icon:Ua,callback:({close:e})=>{i("core/edit-post","distractionFree"),e()}}),(0,ln.useCommand)({name:"core/toggle-spotlight-mode",label:(0,b.__)("Toggle spotlight mode"),icon:Ua,callback:({close:e})=>{i("core/edit-post","focusMode"),e()}}),(0,ln.useCommand)({name:"core/toggle-fullscreen-mode",label:(0,b.__)("Toggle fullscreen mode"),icon:za,callback:({close:e})=>{i("core/edit-post","fullscreenMode"),e()}}),(0,ln.useCommand)({name:"core/toggle-list-view",label:(0,b.__)("Toggle list view"),icon:Hn,callback:({close:e})=>{o(!s),e()}}),(0,ln.useCommand)({name:"core/toggle-top-toolbar",label:(0,b.__)("Toggle top toolbar"),icon:Ua,callback:({close:e})=>{i("core/edit-post","fixedToolbar"),e()}}),(0,ln.useCommand)({name:"core/toggle-code-editor",label:(0,b.__)("Toggle code editor"),icon:Za,callback:({close:e})=>{n("visual"===r?"text":"visual"),e()}}),(0,ln.useCommand)({name:"core/open-preferences",label:(0,b.__)("Open editor preferences"),icon:Ua,callback:()=>{a(An)}}),(0,ln.useCommand)({name:"core/open-shortcut-help",label:(0,b.__)("Open keyboard shortcuts"),icon:$a,callback:()=>{a(Ne)}})}();const{hasFixedToolbar:r,focusMode:i,isDistractionFree:c,hasInlineToolbar:d,post:m,preferredStyleVariations:g,hiddenBlockTypes:h,blockTypes:E,keepCaretInsideBlock:f,isTemplateMode:v,template:y}=(0,u.useSelect)((n=>{var o;const{isFeatureActive:a,isEditingTemplate:r,getEditedPostTemplate:l,getHiddenBlockTypes:i}=n(on),{getEntityRecord:c,getPostType:d,getEntityRecords:u,canUser:m}=n(w.store),{getEditorSettings:g}=n(S.store),{getBlockTypes:h}=n(s.store);let _;if(["wp_template","wp_template_part"].includes(t)){const n=u("postType",t,{wp_id:e});_=n?.[0]}else _=c("postType",t,e);const E=g().supportsTemplateMode,b=null!==(o=d(t)?.viewable)&&void 0!==o&&o,f=m("create","templates");return{hasFixedToolbar:a("fixedToolbar"),focusMode:a("focusMode"),isDistractionFree:a("distractionFree"),hasInlineToolbar:a("inlineToolbar"),preferredStyleVariations:n(p.store).get("core/edit-post","preferredStyleVariations"),hiddenBlockTypes:i(),blockTypes:h(),keepCaretInsideBlock:a("keepCaretInsideBlock"),isTemplateMode:r(),template:E&&b&&f?l():null,post:_}}),[t,e]),{updatePreferredStyleVariations:k,setIsInserterOpened:P}=(0,u.useDispatch)(on),C=(0,l.useMemo)((()=>{const e={...n,__experimentalPreferredStyleVariations:{value:g,onChange:k},hasFixedToolbar:r,focusMode:i,isDistractionFree:c,hasInlineToolbar:d,__experimentalSetIsInserterOpened:P,keepCaretInsideBlock:f,defaultAllowedBlockTypes:n.allowedBlockTypes};if(h.length>0){const t=!0===n.allowedBlockTypes?E.map((({name:e})=>e)):n.allowedBlockTypes||[];e.allowedBlockTypes=t.filter((e=>!h.includes(e)))}return e}),[n,r,d,i,c,h,E,g,P,k,f]);return m?(0,l.createElement)(xe.ShortcutProvider,null,(0,l.createElement)(_.SlotFillProvider,null,(0,l.createElement)(Wa,{settings:C,post:m,initialEdits:o,useSubRegistry:!1,__unstableTemplate:v?y:void 0,...a},(0,l.createElement)(S.ErrorBoundary,null,(0,l.createElement)(ln.CommandMenu,null),(0,l.createElement)(Ha,{postId:e}),(0,l.createElement)(Oa,null)),(0,l.createElement)(S.PostLockedModal,null)))):null};var Ka=({allowedBlocks:e,icon:t,label:n,onClick:o,small:a,role:r})=>(0,l.createElement)(E.BlockSettingsMenuControls,null,(({selectedBlocks:s,onClose:i})=>((e,t)=>{return!Array.isArray(t)||(n=t,0===e.filter((e=>!n.includes(e))).length);var n})(s,e)?(0,l.createElement)(_.MenuItem,{onClick:(0,f.compose)(o,i),icon:t,label:a?n:void 0,role:r},!a&&n):null)),Ya=(0,f.compose)((0,C.withPluginContext)(((e,t)=>{var n;return{as:null!==(n=t.as)&&void 0!==n?n:_.MenuItem,icon:t.icon||e.icon,name:"core/edit-post/plugin-more-menu"}})))(le);function Qa(e){return(0,l.createElement)(ie,{__unstableExplicitMenuItem:!0,scope:"core/edit-post",...e})}function Xa(e,t,n,o,a){const r=document.getElementById(e),c=(0,l.createRoot)(r);(0,u.dispatch)(p.store).setDefaults("core/edit-post",{editorMode:"visual",fixedToolbar:!1,fullscreenMode:!0,hiddenBlockTypes:[],inactivePanels:[],isPublishSidebarEnabled:!0,openPanels:["post-status"],preferredStyleVariations:{},showBlockBreadcrumbs:!0,showIconLabels:!1,showListViewByDefault:!1,themeStyles:!0,welcomeGuide:!0,welcomeGuideTemplate:!0}),(0,u.dispatch)(s.store).__experimentalReapplyBlockTypeFilters(),(0,u.select)(on).isFeatureActive("showListViewByDefault")&&!(0,u.select)(on).isFeatureActive("distractionFree")&&(0,u.dispatch)(on).setIsListViewOpened(!0),(0,i.registerCoreBlocks)(),(0,g.registerLegacyWidgetBlock)({inserter:!1}),(0,g.registerWidgetGroupBlock)({inserter:!1}),(0,m.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter",((e,t)=>!(!(0,u.select)(on).isEditingTemplate()&&"core/template-part"===t.name)&&e)),(0,m.addFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter",((e,t,n,{getBlockParentsByBlockName:o})=>(0,u.select)(on).isEditingTemplate()||"core/post-content"!==t.name?e:o(n,"core/query").length>0));"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins.");return-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(e=>{const t=document.getElementsByClassName("interface-interface-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),document.getElementsByClassName("is-mode-visual")[0]&&window.scrollTo(0,0))})),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),c.render((0,l.createElement)(ja,{settings:o,postId:n,postType:t,initialEdits:a})),c}function Ja(){d()("wp.editPost.reinitializeEditor",{since:"6.2",version:"6.3"})}}(),(window.wp=window.wp||{}).editPost=o}();
\ No newline at end of file
+*/!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var l=a.apply(null,n);l&&e.push(l)}}else if("object"===r){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)o.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()}},t={};function n(o){var a=t[o];if(void 0!==a)return a.exports;var r=t[o]={exports:{}};return e[o](r,r.exports,n),r.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};!function(){"use strict";n.r(o),n.d(o,{PluginBlockSettingsMenuItem:function(){return Ka},PluginDocumentSettingPanel:function(){return ua},PluginMoreMenuItem:function(){return Ya},PluginPostPublishPanel:function(){return Sa},PluginPostStatusInfo:function(){return Ao},PluginPrePublishPanel:function(){return Ta},PluginSidebar:function(){return ma},PluginSidebarMoreMenuItem:function(){return Qa},__experimentalFullscreenModeClose:function(){return Fn},__experimentalMainDashboardButton:function(){return oo},initializeEditor:function(){return Xa},reinitializeEditor:function(){return Ja},store:function(){return on}});var e={};n.r(e),n.d(e,{closeModal:function(){return q},disableComplementaryArea:function(){return H},enableComplementaryArea:function(){return F},openModal:function(){return W},pinItem:function(){return G},setDefaultComplementaryArea:function(){return R},setFeatureDefaults:function(){return $},setFeatureValue:function(){return Z},toggleFeature:function(){return z},unpinItem:function(){return U}});var t={};n.r(t),n.d(t,{getActiveComplementaryArea:function(){return j},isComplementaryAreaLoading:function(){return K},isFeatureActive:function(){return Q},isItemPinned:function(){return Y},isModalActive:function(){return X}});var a={};n.r(a),n.d(a,{__experimentalSetPreviewDeviceType:function(){return gt},__unstableCreateTemplate:function(){return ft},__unstableSwitchToTemplateMode:function(){return bt},closeGeneralSidebar:function(){return Ke},closeModal:function(){return Qe},closePublishSidebar:function(){return Je},hideBlockTypes:function(){return ct},initializeMetaBoxes:function(){return yt},metaBoxUpdatesFailure:function(){return pt},metaBoxUpdatesSuccess:function(){return mt},openGeneralSidebar:function(){return je},openModal:function(){return Ye},openPublishSidebar:function(){return Xe},removeEditorPanel:function(){return ot},requestMetaBoxUpdates:function(){return ut},setAvailableMetaBoxesPerLocation:function(){return dt},setIsEditingTemplate:function(){return Et},setIsInserterOpened:function(){return ht},setIsListViewOpened:function(){return _t},showBlockTypes:function(){return it},switchEditorMode:function(){return rt},toggleEditorPanelEnabled:function(){return tt},toggleEditorPanelOpened:function(){return nt},toggleFeature:function(){return at},togglePinnedPluginItem:function(){return lt},togglePublishSidebar:function(){return et},updatePreferredStyleVariations:function(){return st}});var r={};n.r(r),n.d(r,{__experimentalGetInsertionPoint:function(){return Qt},__experimentalGetPreviewDeviceType:function(){return Kt},areMetaBoxesInitialized:function(){return en},getActiveGeneralSidebarName:function(){return It},getActiveMetaBoxLocations:function(){return Ut},getAllMetaBoxes:function(){return Wt},getEditedPostTemplate:function(){return tn},getEditorMode:function(){return xt},getHiddenBlockTypes:function(){return At},getMetaBoxesPerLocation:function(){return $t},getPreference:function(){return Nt},getPreferences:function(){return Lt},hasMetaBoxes:function(){return qt},isEditingTemplate:function(){return Jt},isEditorPanelEnabled:function(){return Ot},isEditorPanelOpened:function(){return Rt},isEditorPanelRemoved:function(){return Vt},isEditorSidebarOpened:function(){return Mt},isFeatureActive:function(){return Ht},isInserterOpened:function(){return Yt},isListViewOpened:function(){return Xt},isMetaBoxLocationActive:function(){return Zt},isMetaBoxLocationVisible:function(){return zt},isModalActive:function(){return Ft},isPluginItemPinned:function(){return Gt},isPluginSidebarOpened:function(){return Bt},isPublishSidebarOpened:function(){return Dt},isSavingMetaBoxes:function(){return jt}});var l=window.wp.element,s=window.wp.blocks,i=window.wp.blockLibrary,c=window.wp.deprecated,d=n.n(c),u=window.wp.data,m=window.wp.hooks,p=window.wp.preferences,g=window.wp.widgets,h=window.wp.mediaUtils;(0,m.addFilter)("editor.MediaUpload","core/edit-post/replace-media-upload",(()=>h.MediaUpload));var _=window.wp.components,E=window.wp.blockEditor,b=window.wp.i18n,f=window.wp.compose;const v=(0,f.compose)((0,u.withSelect)(((e,t)=>{if((0,s.hasBlockSupport)(t.name,"multiple",!0))return{};const n=e(E.store).getBlocks().find((({name:e})=>t.name===e));return{originalBlockClientId:n&&n.clientId!==t.clientId&&n.clientId}})),(0,u.withDispatch)(((e,{originalBlockClientId:t})=>({selectFirst:()=>e(E.store).selectBlock(t)})))),y=(0,f.createHigherOrderComponent)((e=>v((({originalBlockClientId:t,selectFirst:n,...o})=>{if(!t)return(0,l.createElement)(e,{...o});const a=(0,s.getBlockType)(o.name),r=function(e){const t=(0,s.findTransform)((0,s.getBlockTransforms)("to",e),(({type:e,blocks:t})=>"block"===e&&1===t.length));if(!t)return null;return(0,s.getBlockType)(t.blocks[0])}(o.name);return[(0,l.createElement)("div",{key:"invalid-preview",style:{minHeight:"60px"}},(0,l.createElement)(e,{key:"block-edit",...o})),(0,l.createElement)(E.Warning,{key:"multiple-use-warning",actions:[(0,l.createElement)(_.Button,{key:"find-original",variant:"secondary",onClick:n},(0,b.__)("Find original")),(0,l.createElement)(_.Button,{key:"remove",variant:"secondary",onClick:()=>o.onReplace([])},(0,b.__)("Remove")),r&&(0,l.createElement)(_.Button,{key:"transform",variant:"secondary",onClick:()=>o.onReplace((0,s.createBlock)(r.name,o.attributes))},(0,b.__)("Transform into:")," ",r.title)]},(0,l.createElement)("strong",null,a?.title,": "),(0,b.__)("This block can only be used once."))]}))),"withMultipleValidation");(0,m.addFilter)("editor.BlockEdit","core/edit-post/validate-multiple-use/with-multiple-validation",y);var w=window.wp.coreData,S=window.wp.editor,k=window.wp.primitives;var P=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})),C=window.wp.plugins,T=window.wp.url,x=window.wp.notices;function M(){const{createNotice:e}=(0,u.useDispatch)(x.store),t=(0,u.useSelect)((e=>()=>e(S.store).getEditedPostAttribute("content")),[]);const n=(0,f.useCopyToClipboard)(t,(function(){e("info",(0,b.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,l.createElement)(_.MenuItem,{ref:n},(0,b.__)("Copy all blocks"))}var B=window.wp.keycodes,I=n(4403),L=n.n(I);var N=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));var A=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));var D=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})),V=window.wp.viewport;var O=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));const R=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),F=(e,t)=>({registry:n,dispatch:o})=>{if(!t)return;n.select(p.store).get(e,"isComplementaryAreaVisible")||n.dispatch(p.store).set(e,"isComplementaryAreaVisible",!0),o({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},H=e=>({registry:t})=>{t.select(p.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(p.store).set(e,"isComplementaryAreaVisible",!1)},G=(e,t)=>({registry:n})=>{if(!t)return;const o=n.select(p.store).get(e,"pinnedItems");!0!==o?.[t]&&n.dispatch(p.store).set(e,"pinnedItems",{...o,[t]:!0})},U=(e,t)=>({registry:n})=>{if(!t)return;const o=n.select(p.store).get(e,"pinnedItems");n.dispatch(p.store).set(e,"pinnedItems",{...o,[t]:!1})};function z(e,t){return function({registry:n}){d()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(p.store).toggle(e,t)}}function Z(e,t,n){return function({registry:o}){d()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),o.dispatch(p.store).set(e,t,!!n)}}function $(e,t){return function({registry:n}){d()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(p.store).setDefaults(e,t)}}function W(e){return{type:"OPEN_MODAL",name:e}}function q(){return{type:"CLOSE_MODAL"}}const j=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get(n,"isComplementaryAreaVisible");if(void 0!==o)return!1===o?null:t?.complementaryAreas?.[n]})),K=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get(n,"isComplementaryAreaVisible"),a=t?.complementaryAreas?.[n];return o&&void 0===a})),Y=(0,u.createRegistrySelector)((e=>(t,n,o)=>{var a;const r=e(p.store).get(n,"pinnedItems");return null===(a=r?.[o])||void 0===a||a})),Q=(0,u.createRegistrySelector)((e=>(t,n,o)=>(d()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(p.store).get(n,o))));function X(e,t){return e.activeModal===t}var J=(0,u.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:o}=t;return e[n]?e:{...e,[n]:o}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:o}=t;return{...e,[n]:o}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}});const ee=(0,u.createReduxStore)("core/interface",{reducer:J,actions:e,selectors:t});(0,u.register)(ee);var te=(0,C.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));var ne=te((function({as:e=_.Button,scope:t,identifier:n,icon:o,selectedIcon:a,name:r,...s}){const i=e,c=(0,u.useSelect)((e=>e(ee).getActiveComplementaryArea(t)===n),[n]),{enableComplementaryArea:d,disableComplementaryArea:m}=(0,u.useDispatch)(ee);return(0,l.createElement)(i,{icon:a&&c?a:o,onClick:()=>{c?m(t):d(t,n)},...s})}));var oe=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:o})=>{const a=(0,l.createElement)(ne,{icon:O,...o});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,l.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),a),(0,l.createElement)("div",{className:L()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},t,a))};const ae=()=>{};function re({name:e,as:t=_.Button,onClick:n,...o}){return(0,l.createElement)(_.Fill,{name:e},(({onClick:e})=>(0,l.createElement)(t,{onClick:n||e?(...t)=>{(n||ae)(...t),(e||ae)(...t)}:void 0,...o})))}re.Slot=function({name:e,as:t=_.ButtonGroup,fillProps:n={},bubblesVirtually:o,...a}){return(0,l.createElement)(_.Slot,{name:e,bubblesVirtually:o,fillProps:n},(e=>{if(!l.Children.toArray(e).length)return null;const n=[];l.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&n.push(t)}));const o=l.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&n.includes(e.props.__unstableTarget)?null:e));return(0,l.createElement)(t,{...a},o)}))};var le=re;const se=({__unstableExplicitMenuItem:e,__unstableTarget:t,...n})=>(0,l.createElement)(_.MenuItem,{...n});function ie({scope:e,target:t,__unstableExplicitMenuItem:n,...o}){return(0,l.createElement)(ne,{as:o=>(0,l.createElement)(le,{__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:se,name:`${e}/plugin-more-menu`,...o}),role:"menuitemcheckbox",selectedIcon:N,name:t,scope:e,...o})}function ce({scope:e,...t}){return(0,l.createElement)(_.Fill,{name:`PinnedItems/${e}`,...t})}ce.Slot=function({scope:e,className:t,...n}){return(0,l.createElement)(_.Slot,{name:`PinnedItems/${e}`,...n},(e=>e?.length>0&&(0,l.createElement)("div",{className:L()(t,"interface-pinned-items")},e)))};var de=ce;function ue({scope:e,children:t,className:n}){return(0,l.createElement)(_.Fill,{name:`ComplementaryArea/${e}`},(0,l.createElement)("div",{className:n},t))}const me=te((function({children:e,className:t,closeLabel:n=(0,b.__)("Close plugin"),identifier:o,header:a,headerClassName:r,icon:s,isPinnable:i=!0,panelClassName:c,scope:d,name:m,smallScreenTitle:p,title:g,toggleShortcut:h,isActiveByDefault:E,showIconLabels:f=!1}){const{isLoading:v,isActive:y,isPinned:w,activeArea:S,isSmall:k,isLarge:P}=(0,u.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:n,isItemPinned:a}=e(ee),r=t(d);return{isLoading:n(d),isActive:r===o,isPinned:a(d,o),activeArea:r,isSmall:e(V.store).isViewportMatch("< medium"),isLarge:e(V.store).isViewportMatch("large")}}),[o,d]);!function(e,t,n,o,a){const r=(0,l.useRef)(!1),s=(0,l.useRef)(!1),{enableComplementaryArea:i,disableComplementaryArea:c}=(0,u.useDispatch)(ee);(0,l.useEffect)((()=>{o&&a&&!r.current?(c(e),s.current=!0):s.current&&!a&&r.current?(s.current=!1,i(e,t)):s.current&&n&&n!==t&&(s.current=!1),a!==r.current&&(r.current=a)}),[o,a,e,t,n])}(d,o,S,y,k);const{enableComplementaryArea:C,disableComplementaryArea:T,pinItem:x,unpinItem:M}=(0,u.useDispatch)(ee);return(0,l.useEffect)((()=>{E&&void 0===S&&!k?C(d,o):void 0===S&&k&&T(d,o)}),[S,E,d,o,k]),(0,l.createElement)(l.Fragment,null,i&&(0,l.createElement)(de,{scope:d},w&&(0,l.createElement)(ne,{scope:d,identifier:o,isPressed:y&&(!f||P),"aria-expanded":y,"aria-disabled":v,label:g,icon:f?N:s,showTooltip:!f,variant:f?"tertiary":void 0})),m&&i&&(0,l.createElement)(ie,{target:m,scope:d,icon:s},g),y&&(0,l.createElement)(ue,{className:L()("interface-complementary-area",t),scope:d},(0,l.createElement)(oe,{className:r,closeLabel:n,onClose:()=>T(d),smallScreenTitle:p,toggleButtonProps:{label:n,shortcut:h,scope:d,identifier:o}},a||(0,l.createElement)(l.Fragment,null,(0,l.createElement)("strong",null,g),i&&(0,l.createElement)(_.Button,{className:"interface-complementary-area__pin-unpin-item",icon:w?A:D,label:w?(0,b.__)("Unpin from toolbar"):(0,b.__)("Pin to toolbar"),onClick:()=>(w?M:x)(d,o),isPressed:w,"aria-expanded":w}))),(0,l.createElement)(_.Panel,{className:c},e)))}));me.Slot=function({scope:e,...t}){return(0,l.createElement)(_.Slot,{name:`ComplementaryArea/${e}`,...t})};var pe=me;var ge=({isActive:e})=>((0,l.useEffect)((()=>{let e=!1;return document.body.classList.contains("sticky-menu")&&(e=!0,document.body.classList.remove("sticky-menu")),()=>{e&&document.body.classList.add("sticky-menu")}}),[]),(0,l.useEffect)((()=>(e?document.body.classList.add("is-fullscreen-mode"):document.body.classList.remove("is-fullscreen-mode"),()=>{e&&document.body.classList.remove("is-fullscreen-mode")})),[e]),null);function he({children:e,className:t,ariaLabel:n,as:o="div",...a}){return(0,l.createElement)(o,{className:L()("interface-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...a},e)}const _e={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};var Ee=(0,l.forwardRef)((function({isDistractionFree:e,footer:t,header:n,editorNotices:o,sidebar:a,secondarySidebar:r,notices:s,content:i,actions:c,labels:d,className:u,enableRegionNavigation:m=!0,shortcuts:p},g){const h=(0,_.__unstableUseNavigateRegions)(p);!function(e){(0,l.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const E={...{header:(0,b.__)("Header"),body:(0,b.__)("Content"),secondarySidebar:(0,b.__)("Block Library"),sidebar:(0,b.__)("Settings"),actions:(0,b.__)("Publish"),footer:(0,b.__)("Footer")},...d};return(0,l.createElement)("div",{...m?h:{},ref:(0,f.useMergeRefs)([g,m?h.ref:void 0]),className:L()(u,"interface-interface-skeleton",h.className,!!t&&"has-footer")},(0,l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!n&&(0,l.createElement)(he,{as:_.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":E.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:_e,transition:e?{type:"tween",delay:.8}:void 0},n),e&&(0,l.createElement)("div",{className:"interface-interface-skeleton__header"},o),(0,l.createElement)("div",{className:"interface-interface-skeleton__body"},!!r&&(0,l.createElement)(he,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:E.secondarySidebar},r),!!s&&(0,l.createElement)("div",{className:"interface-interface-skeleton__notices"},s),(0,l.createElement)(he,{className:"interface-interface-skeleton__content",ariaLabel:E.body},i),!!a&&(0,l.createElement)(he,{className:"interface-interface-skeleton__sidebar",ariaLabel:E.sidebar},a),!!c&&(0,l.createElement)(he,{className:"interface-interface-skeleton__actions",ariaLabel:E.actions},c))),!!t&&(0,l.createElement)(he,{className:"interface-interface-skeleton__footer",ariaLabel:E.footer},t))}));var be=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function fe({as:e=_.DropdownMenu,className:t,label:n=(0,b.__)("Options"),popoverProps:o,toggleProps:a,children:r}){return(0,l.createElement)(e,{className:L()("interface-more-menu-dropdown",t),icon:be,label:n,popoverProps:{placement:"bottom-end",...o,className:L()("interface-more-menu-dropdown__content",o?.className)},toggleProps:{tooltipPosition:"bottom",...a}},(e=>r(e)))}function ve({closeModal:e,children:t}){return(0,l.createElement)(_.Modal,{className:"interface-preferences-modal",title:(0,b.__)("Preferences"),onRequestClose:e},t)}var ye=function({icon:e,size:t=24,...n}){return(0,l.cloneElement)(e,{width:t,height:t,...n})};var we=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var Se=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));const ke="preferences-menu";function Pe({sections:e}){const t=(0,f.useViewportMatch)("medium"),[n,o]=(0,l.useState)(ke),{tabs:a,sectionsContentMap:r}=(0,l.useMemo)((()=>{let t={tabs:[],sectionsContentMap:{}};return e.length&&(t=e.reduce(((e,{name:t,tabLabel:n,content:o})=>(e.tabs.push({name:t,title:n}),e.sectionsContentMap[t]=o,e)),{tabs:[],sectionsContentMap:{}})),t}),[e]),s=(0,l.useCallback)((e=>r[e.name]||null),[r]);let i;return i=t?(0,l.createElement)(_.TabPanel,{className:"interface-preferences__tabs",tabs:a,initialTabName:n!==ke?n:void 0,onSelect:o,orientation:"vertical"},s):(0,l.createElement)(_.__experimentalNavigatorProvider,{initialPath:"/",className:"interface-preferences__provider"},(0,l.createElement)(_.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(_.Card,{isBorderless:!0,size:"small"},(0,l.createElement)(_.CardBody,null,(0,l.createElement)(_.__experimentalItemGroup,null,a.map((e=>(0,l.createElement)(_.__experimentalNavigatorButton,{key:e.name,path:e.name,as:_.__experimentalItem,isAction:!0},(0,l.createElement)(_.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(_.__experimentalTruncate,null,e.title)),(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(ye,{icon:(0,b.isRTL)()?we:Se})))))))))),e.length&&e.map((e=>(0,l.createElement)(_.__experimentalNavigatorScreen,{key:`${e.name}-menu`,path:e.name},(0,l.createElement)(_.Card,{isBorderless:!0,size:"large"},(0,l.createElement)(_.CardHeader,{isBorderless:!1,justify:"left",size:"small",gap:"6"},(0,l.createElement)(_.__experimentalNavigatorBackButton,{icon:(0,b.isRTL)()?Se:we,"aria-label":(0,b.__)("Navigate to the previous view")}),(0,l.createElement)(_.__experimentalText,{size:"16"},e.tabLabel)),(0,l.createElement)(_.CardBody,null,e.content)))))),i}var Ce=({description:e,title:t,children:n})=>(0,l.createElement)("fieldset",{className:"interface-preferences-modal__section"},(0,l.createElement)("legend",{className:"interface-preferences-modal__section-legend"},(0,l.createElement)("h2",{className:"interface-preferences-modal__section-title"},t),e&&(0,l.createElement)("p",{className:"interface-preferences-modal__section-description"},e)),n);var Te=function({help:e,label:t,isChecked:n,onChange:o,children:a}){return(0,l.createElement)("div",{className:"interface-preferences-modal__option"},(0,l.createElement)(_.ToggleControl,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:o}),a)},xe=window.wp.keyboardShortcuts;const Me=[{keyCombination:{modifier:"primary",character:"b"},description:(0,b.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,b.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,b.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,b.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,b.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,b.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,b.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,b.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,b.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,b.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function Be({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?B.displayShortcutList[e.modifier](e.character):e.character,o=e.modifier?B.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,l.createElement)("kbd",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||o},(Array.isArray(n)?n:[n]).map(((e,t)=>"+"===e?(0,l.createElement)(l.Fragment,{key:t},e):(0,l.createElement)("kbd",{key:t,className:"edit-post-keyboard-shortcut-help-modal__shortcut-key"},e))))}var Ie=function({description:e,keyCombination:t,aliases:n=[],ariaLabel:o}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-description"},e),(0,l.createElement)("div",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-term"},(0,l.createElement)(Be,{keyCombination:t,forceAriaLabel:o}),n.map(((e,t)=>(0,l.createElement)(Be,{keyCombination:e,forceAriaLabel:o,key:t})))))};var Le=function({name:e}){const{keyCombination:t,description:n,aliases:o}=(0,u.useSelect)((t=>{const{getShortcutKeyCombination:n,getShortcutDescription:o,getShortcutAliases:a}=t(xe.store);return{keyCombination:n(e),aliases:a(e),description:o(e)}}),[e]);return t?(0,l.createElement)(Ie,{keyCombination:t,description:n,aliases:o}):null};const Ne="edit-post/keyboard-shortcut-help",Ae=({shortcuts:e})=>(0,l.createElement)("ul",{className:"edit-post-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,l.createElement)("li",{className:"edit-post-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,l.createElement)(Le,{name:e}):(0,l.createElement)(Ie,{...e}))))),De=({title:e,shortcuts:t,className:n})=>(0,l.createElement)("section",{className:L()("edit-post-keyboard-shortcut-help-modal__section",n)},!!e&&(0,l.createElement)("h2",{className:"edit-post-keyboard-shortcut-help-modal__section-title"},e),(0,l.createElement)(Ae,{shortcuts:t})),Ve=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const o=(0,u.useSelect)((e=>e(xe.store).getCategoryShortcuts(t)),[t]);return(0,l.createElement)(De,{title:e,shortcuts:o.concat(n)})};var Oe=(0,f.compose)([(0,u.withSelect)((e=>({isModalActive:e(ee).isModalActive(Ne)}))),(0,u.withDispatch)(((e,{isModalActive:t})=>{const{openModal:n,closeModal:o}=e(ee);return{toggleModal:()=>t?o():n(Ne)}}))])((function({isModalActive:e,toggleModal:t}){return(0,xe.useShortcut)("core/edit-post/keyboard-shortcuts",t),e?(0,l.createElement)(_.Modal,{className:"edit-post-keyboard-shortcut-help-modal",title:(0,b.__)("Keyboard shortcuts"),closeButtonLabel:(0,b.__)("Close"),onRequestClose:t},(0,l.createElement)(De,{className:"edit-post-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-post/keyboard-shortcuts"]}),(0,l.createElement)(Ve,{title:(0,b.__)("Global shortcuts"),categoryName:"global"}),(0,l.createElement)(Ve,{title:(0,b.__)("Selection shortcuts"),categoryName:"selection"}),(0,l.createElement)(Ve,{title:(0,b.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,b.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,b.__)("Forward-slash")}]}),(0,l.createElement)(De,{title:(0,b.__)("Text formatting"),shortcuts:Me})):null}));var Re=(0,u.withDispatch)((e=>{const{openModal:t}=e(ee);return{openModal:t}}))((function({openModal:e}){return(0,l.createElement)(_.MenuItem,{onClick:()=>{e(Ne)},shortcut:B.displayShortcut.access("h")},(0,b.__)("Keyboard shortcuts"))}));const{Fill:Fe,Slot:He}=(0,_.createSlotFill)("ToolsMoreMenuGroup");Fe.Slot=({fillProps:e})=>(0,l.createElement)(He,{fillProps:e},(e=>e.length>0&&(0,l.createElement)(_.MenuGroup,{label:(0,b.__)("Tools")},e)));var Ge=Fe;function Ue(e=[],t){const n=[...e];for(const e of t){const t=n.findIndex((t=>t.id===e.id));-1!==t?n[t]=e:n.push(e)}return n}const ze=(0,u.combineReducers)({isSaving:function(e=!1,t){switch(t.type){case"REQUEST_META_BOX_UPDATES":return!0;case"META_BOX_UPDATES_SUCCESS":case"META_BOX_UPDATES_FAILURE":return!1;default:return e}},locations:function(e={},t){if("SET_META_BOXES_PER_LOCATIONS"===t.type){const n={...e};for(const[e,o]of Object.entries(t.metaBoxesPerLocation))n[e]=Ue(n[e],o);return n}return e},initialized:function(e=!1,t){return"META_BOXES_INITIALIZED"===t.type||e}});var Ze=(0,u.combineReducers)({metaBoxes:ze,publishSidebarActive:function(e=!1,t){switch(t.type){case"OPEN_PUBLISH_SIDEBAR":return!0;case"CLOSE_PUBLISH_SIDEBAR":return!1;case"TOGGLE_PUBLISH_SIDEBAR":return!e}return e},removedPanels:function(e=[],t){if("REMOVE_PANEL"===t.type)if(!e.includes(t.panelName))return[...e,t.panelName];return e},deviceType:function(e="Desktop",t){return"SET_PREVIEW_DEVICE_TYPE"===t.type?t.deviceType:e},blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value}return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen}return e},isEditingTemplate:function(e=!1,t){return"SET_IS_EDITING_TEMPLATE"===t.type?t.value:e}}),$e=window.wp.apiFetch,We=n.n($e),qe=window.wp.a11y;const je=e=>({registry:t})=>t.dispatch(ee).enableComplementaryArea(on.name,e),Ke=()=>({registry:e})=>e.dispatch(ee).disableComplementaryArea(on.name),Ye=e=>({registry:t})=>(d()("select( 'core/edit-post' ).openModal( name )",{since:"6.3",alternative:"select( 'core/interface').openModal( name )"}),t.dispatch(ee).openModal(e)),Qe=()=>({registry:e})=>(d()("select( 'core/edit-post' ).closeModal()",{since:"6.3",alternative:"select( 'core/interface').closeModal()"}),e.dispatch(ee).closeModal());function Xe(){return{type:"OPEN_PUBLISH_SIDEBAR"}}function Je(){return{type:"CLOSE_PUBLISH_SIDEBAR"}}function et(){return{type:"TOGGLE_PUBLISH_SIDEBAR"}}const tt=e=>({registry:t})=>{var n;const o=null!==(n=t.select(p.store).get("core/edit-post","inactivePanels"))&&void 0!==n?n:[];let a;a=!!o?.includes(e)?o.filter((t=>t!==e)):[...o,e],t.dispatch(p.store).set("core/edit-post","inactivePanels",a)},nt=e=>({registry:t})=>{var n;const o=null!==(n=t.select(p.store).get("core/edit-post","openPanels"))&&void 0!==n?n:[];let a;a=!!o?.includes(e)?o.filter((t=>t!==e)):[...o,e],t.dispatch(p.store).set("core/edit-post","openPanels",a)};function ot(e){return{type:"REMOVE_PANEL",panelName:e}}const at=e=>({registry:t})=>t.dispatch(p.store).toggle("core/edit-post",e),rt=e=>({registry:t})=>{t.dispatch(p.store).set("core/edit-post","editorMode",e),"visual"!==e&&t.dispatch(E.store).clearSelectedBlock();const n="visual"===e?(0,b.__)("Visual editor selected"):(0,b.__)("Code editor selected");(0,qe.speak)(n,"assertive")},lt=e=>({registry:t})=>{const n=t.select(ee).isItemPinned("core/edit-post",e);t.dispatch(ee)[n?"unpinItem":"pinItem"]("core/edit-post",e)},st=(e,t)=>({registry:n})=>{var o;if(!e)return;const a=null!==(o=n.select(p.store).get("core/edit-post","preferredStyleVariations"))&&void 0!==o?o:{};if(t)n.dispatch(p.store).set("core/edit-post","preferredStyleVariations",{...a,[e]:t});else{const t={...a};delete t[e],n.dispatch(p.store).set("core/edit-post","preferredStyleVariations",t)}},it=e=>({registry:t})=>{var n;const o=(null!==(n=t.select(p.store).get("core/edit-post","hiddenBlockTypes"))&&void 0!==n?n:[]).filter((t=>!(Array.isArray(e)?e:[e]).includes(t)));t.dispatch(p.store).set("core/edit-post","hiddenBlockTypes",o)},ct=e=>({registry:t})=>{var n;const o=null!==(n=t.select(p.store).get("core/edit-post","hiddenBlockTypes"))&&void 0!==n?n:[],a=new Set([...o,...Array.isArray(e)?e:[e]]);t.dispatch(p.store).set("core/edit-post","hiddenBlockTypes",[...a])};function dt(e){return{type:"SET_META_BOXES_PER_LOCATIONS",metaBoxesPerLocation:e}}const ut=()=>async({registry:e,select:t,dispatch:n})=>{n({type:"REQUEST_META_BOX_UPDATES"}),window.tinyMCE&&window.tinyMCE.triggerSave();const o=e.select(S.store).getCurrentPost(),a=[!!o.comment_status&&["comment_status",o.comment_status],!!o.ping_status&&["ping_status",o.ping_status],!!o.sticky&&["sticky",o.sticky],!!o.author&&["post_author",o.author]].filter(Boolean),r=[new window.FormData(document.querySelector(".metabox-base-form")),...t.getActiveMetaBoxLocations().map((e=>new window.FormData((e=>{const t=document.querySelector(`.edit-post-meta-boxes-area.is-${e} .metabox-location-${e}`);return t||document.querySelector("#metaboxes .metabox-location-"+e)})(e))))].reduce(((e,t)=>{for(const[n,o]of t)e.append(n,o);return e}),new window.FormData);a.forEach((([e,t])=>r.append(e,t)));try{await We()({url:window._wpMetaBoxUrl,method:"POST",body:r,parse:!1}),n.metaBoxUpdatesSuccess()}catch{n.metaBoxUpdatesFailure()}};function mt(){return{type:"META_BOX_UPDATES_SUCCESS"}}function pt(){return{type:"META_BOX_UPDATES_FAILURE"}}function gt(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}function ht(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function _t(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}function Et(e){return{type:"SET_IS_EDITING_TEMPLATE",value:e}}const bt=(e=!1)=>({registry:t,select:n,dispatch:o})=>{o(Et(!0));if(!n.isFeatureActive("welcomeGuideTemplate")){const n=e?(0,b.__)("Custom template created. You're in template mode now."):(0,b.__)("Editing template. Changes made here affect all posts and pages that use the template.");t.dispatch(x.store).createSuccessNotice(n,{type:"snackbar"})}},ft=e=>async({registry:t})=>{const n=await t.dispatch(w.store).saveEntityRecord("postType","wp_template",e),o=t.select(S.store).getCurrentPost();t.dispatch(w.store).editEntityRecord("postType",o.type,o.id,{template:n.slug})};let vt=!1;const yt=()=>({registry:e,select:t,dispatch:n})=>{if(!e.select(S.store).__unstableIsEditorReady())return;if(vt)return;const o=e.select(S.store).getCurrentPostType();window.postboxes.page!==o&&window.postboxes.add_postbox_toggles(o),vt=!0;let a=e.select(S.store).isSavingPost(),r=e.select(S.store).isAutosavingPost();e.subscribe((async()=>{const o=e.select(S.store).isSavingPost(),l=e.select(S.store).isAutosavingPost(),s=a&&!r&&!o&&t.hasMetaBoxes();a=o,r=l,s&&await n.requestMetaBoxUpdates()})),n({type:"META_BOXES_INITIALIZED"})};var wt={};function St(e){return[e]}function kt(e,t,n){var o;if(e.length!==t.length)return!1;for(o=n;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}function Pt(e,t){var n,o=t||St;function a(){n=new WeakMap}function r(){var t,a,r,l,s,i=arguments.length;for(l=new Array(i),r=0;r<i;r++)l[r]=arguments[r];for(t=function(e){var t,o,a,r,l,s=n,i=!0;for(t=0;t<e.length;t++){if(!(l=o=e[t])||"object"!=typeof l){i=!1;break}s.has(o)?s=s.get(o):(a=new WeakMap,s.set(o,a),s=a)}return s.has(wt)||((r=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=i,s.set(wt,r)),s.get(wt)}(s=o.apply(null,l)),t.isUniqueByDependants||(t.lastDependants&&!kt(s,t.lastDependants,0)&&t.clear(),t.lastDependants=s),a=t.head;a;){if(kt(a.args,l,1))return a!==t.head&&(a.prev.next=a.next,a.next&&(a.next.prev=a.prev),a.next=t.head,a.prev=null,t.head.prev=a,t.head=a),a.val;a=a.next}return a={val:e.apply(null,l)},l[0]=null,a.args=l,t.head&&(t.head.prev=a,a.next=t.head),t.head=a,a.val}return r.getDependants=o,r.clear=a,a(),r}const Ct=[],Tt={},xt=(0,u.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(p.store).get("core/edit-post","editorMode"))&&void 0!==t?t:"visual"})),Mt=(0,u.createRegistrySelector)((e=>()=>{const t=e(ee).getActiveComplementaryArea("core/edit-post");return["edit-post/document","edit-post/block"].includes(t)})),Bt=(0,u.createRegistrySelector)((e=>()=>{const t=e(ee).getActiveComplementaryArea("core/edit-post");return!!t&&!["edit-post/document","edit-post/block"].includes(t)})),It=(0,u.createRegistrySelector)((e=>()=>e(ee).getActiveComplementaryArea("core/edit-post")));const Lt=(0,u.createRegistrySelector)((e=>()=>{d()("select( 'core/edit-post' ).getPreferences",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const t=["hiddenBlockTypes","editorMode","preferredStyleVariations"].reduce(((t,n)=>({...t,[n]:e(p.store).get("core/edit-post",n)})),{}),n=function(e,t){var n;const o=e?.reduce(((e,t)=>({...e,[t]:{enabled:!1}})),{}),a=t?.reduce(((e,t)=>{const n=e?.[t];return{...e,[t]:{...n,opened:!0}}}),null!=o?o:{});return null!==(n=null!=a?a:o)&&void 0!==n?n:Tt}(e(p.store).get("core/edit-post","inactivePanels"),e(p.store).get("core/edit-post","openPanels"));return{...t,panels:n}}));function Nt(e,t,n){d()("select( 'core/edit-post' ).getPreference",{since:"6.0",alternative:"select( 'core/preferences' ).get"});const o=Lt(e)[t];return void 0===o?n:o}const At=(0,u.createRegistrySelector)((e=>()=>{var t;return null!==(t=e(p.store).get("core/edit-post","hiddenBlockTypes"))&&void 0!==t?t:Ct}));function Dt(e){return e.publishSidebarActive}function Vt(e,t){return e.removedPanels.includes(t)}const Ot=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get("core/edit-post","inactivePanels");return!Vt(t,n)&&!o?.includes(n)})),Rt=(0,u.createRegistrySelector)((e=>(t,n)=>{const o=e(p.store).get("core/edit-post","openPanels");return!!o?.includes(n)})),Ft=(0,u.createRegistrySelector)((e=>(t,n)=>(d()("select( 'core/edit-post' ).isModalActive",{since:"6.3",alternative:"select( 'core/interface' ).isModalActive"}),!!e(ee).isModalActive(n)))),Ht=(0,u.createRegistrySelector)((e=>(t,n)=>!!e(p.store).get("core/edit-post",n))),Gt=(0,u.createRegistrySelector)((e=>(t,n)=>e(ee).isItemPinned("core/edit-post",n))),Ut=Pt((e=>Object.keys(e.metaBoxes.locations).filter((t=>Zt(e,t)))),(e=>[e.metaBoxes.locations]));function zt(e,t){return Zt(e,t)&&$t(e,t)?.some((({id:t})=>Ot(e,`meta-box-${t}`)))}function Zt(e,t){const n=$t(e,t);return!!n&&0!==n.length}function $t(e,t){return e.metaBoxes.locations[t]}const Wt=Pt((e=>Object.values(e.metaBoxes.locations).flat()),(e=>[e.metaBoxes.locations]));function qt(e){return Ut(e).length>0}function jt(e){return e.metaBoxes.isSaving}function Kt(e){return e.deviceType}function Yt(e){return!!e.blockInserterPanel}function Qt(e){const{rootClientId:t,insertionIndex:n,filterValue:o}=e.blockInserterPanel;return{rootClientId:t,insertionIndex:n,filterValue:o}}function Xt(e){return e.listViewPanel}function Jt(e){return e.isEditingTemplate}function en(e){return e.metaBoxes.initialized}const tn=(0,u.createRegistrySelector)((e=>()=>{const t=e(S.store).getEditedPostAttribute("template");if(t){const n=e(w.store).getEntityRecords("postType","wp_template",{per_page:-1})?.find((e=>e.slug===t));return n?e(w.store).getEditedEntityRecord("postType","wp_template",n.id):n}const n=e(S.store).getCurrentPost();return n.link?e(w.store).__experimentalGetTemplateForLink(n.link):null})),nn="core/edit-post",on=(0,u.createReduxStore)(nn,{reducer:Ze,actions:a,selectors:r});function an(){const e=(0,u.useSelect)((e=>e(on).isEditingTemplate()),[]);return(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:e?"welcomeGuideTemplate":"welcomeGuide",label:(0,b.__)("Welcome Guide")})}function rn(){const e=(0,u.useSelect)((e=>{const{canUser:t}=e(w.store),{getEditorSettings:n}=e(S.store),o=n().__unstableIsBlockBasedTheme,a=(0,T.addQueryArgs)("edit.php",{post_type:"wp_block"}),r=(0,T.addQueryArgs)("site-editor.php",{path:"/patterns"});return t("read","templates")&&o?r:a}),[]);return(0,l.createElement)(_.MenuItem,{role:"menuitem",href:e},(0,b.__)("Manage patterns"))}(0,u.register)(on),(0,C.registerPlugin)("edit-post",{render(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ge,null,(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(rn,null),(0,l.createElement)(Re,{onSelect:e}),(0,l.createElement)(an,null),(0,l.createElement)(M,null),(0,l.createElement)(_.MenuItem,{role:"menuitem",icon:P,href:(0,b.__)("https://wordpress.org/documentation/article/wordpress-block-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,b.__)("Help"),(0,l.createElement)(_.VisuallyHidden,{as:"span"},(0,b.__)("(opens in a new tab)")))))))}});var ln=window.wp.commands,sn=window.wp.coreCommands;function cn(){const e=(0,u.useSelect)((e=>e(S.store).getEditorSettings().richEditingEnabled),[]),{switchEditorMode:t}=(0,u.useDispatch)(on);return(0,l.createElement)("div",{className:"edit-post-text-editor"},(0,l.createElement)(S.TextEditorGlobalKeyboardShortcuts,null),e&&(0,l.createElement)("div",{className:"edit-post-text-editor__toolbar"},(0,l.createElement)("h2",null,(0,b.__)("Editing code")),(0,l.createElement)(_.Button,{variant:"tertiary",onClick:()=>t("visual"),shortcut:B.displayShortcut.secondary("m")},(0,b.__)("Exit code editor"))),(0,l.createElement)("div",{className:"edit-post-text-editor__body"},(0,l.createElement)(S.PostTitle,null),(0,l.createElement)(S.PostTextEditor,null)))}var dn=window.wp.privateApis;const{lock:un,unlock:mn}=(0,dn.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/edit-post"),{LayoutStyle:pn,useLayoutClasses:gn,useLayoutStyles:hn}=mn(E.privateApis),_n=!1;function En({children:e,contentRef:t,shouldIframe:n,styles:o,style:a}){const r=(0,E.__unstableUseMouseMoveTypingReset)();return n?(0,l.createElement)(E.__unstableIframe,{ref:r,contentRef:t,style:{width:"100%",height:"100%",display:"block"},name:"editor-canvas"},(0,l.createElement)(E.__unstableEditorStyles,{styles:o}),e):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(E.__unstableEditorStyles,{styles:o}),(0,l.createElement)(E.WritingFlow,{ref:t,className:"editor-styles-wrapper",style:{flex:"1",...a},tabIndex:-1},e))}function bn(e){for(let t=0;t<e.length;t++){if("core/post-content"===e[t].name)return e[t].attributes;if(e[t].innerBlocks.length){const n=bn(e[t].innerBlocks);if(n)return n}}}function fn({styles:e}){const{deviceType:t,isWelcomeGuideVisible:n,isTemplateMode:o,postContentAttributes:a,editedPostTemplate:r={},wrapperBlockName:i,wrapperUniqueId:c,isBlockBasedTheme:d,hasV3BlocksOnly:m}=(0,u.useSelect)((e=>{const{isFeatureActive:t,isEditingTemplate:n,getEditedPostTemplate:o,__experimentalGetPreviewDeviceType:a}=e(on),{getCurrentPostId:r,getCurrentPostType:l,getEditorSettings:i}=e(S.store),{getBlockTypes:c}=e(s.store),d=n();let u;"wp_block"===l()?u="core/block":d||(u="core/post-content");const m=i(),p=m.supportsTemplateMode,g=e(w.store).canUser("create","templates");return{deviceType:a(),isWelcomeGuideVisible:t("welcomeGuide"),isTemplateMode:d,postContentAttributes:i().postContentAttributes,editedPostTemplate:p&&g?o():void 0,wrapperBlockName:u,wrapperUniqueId:r(),isBlockBasedTheme:m.__unstableIsBlockBasedTheme,hasV3BlocksOnly:c().every((e=>e.apiVersion>=3))}}),[]),{isCleanNewPost:p}=(0,u.useSelect)(S.store),g=(0,u.useSelect)((e=>e(on).hasMetaBoxes()),[]),{hasRootPaddingAwareAlignments:h,isFocusMode:b,themeHasDisabledLayoutStyles:v,themeSupportsLayout:y}=(0,u.useSelect)((e=>{const t=e(E.store).getSettings();return{themeHasDisabledLayoutStyles:t.disableLayoutStyles,themeSupportsLayout:t.supportsLayout,isFocusMode:t.focusMode,hasRootPaddingAwareAlignments:t.__experimentalFeatures?.useRootPaddingAwareAlignments}}),[]),k={height:"100%",width:"100%",margin:0,display:"flex",flexFlow:"column",background:"white"},P={...k,borderRadius:"2px 2px 0 0",border:"1px solid #ddd",borderBottom:0},C=(0,E.__experimentalUseResizeCanvas)(t,o),T=(0,E.useSetting)("layout"),x="is-"+t.toLowerCase()+"-preview";let M,B=o?P:k;C&&(B=C),g||C||o||(M="40vh");const I=(0,l.useRef)(),N=(0,f.useMergeRefs)([I,(0,E.__unstableUseClipboardHandler)(),(0,E.__unstableUseTypewriter)(),(0,E.__unstableUseTypingObserver)(),(0,E.__unstableUseBlockSelectionClearer)()]),A=(0,E.__unstableUseBlockSelectionClearer)(),D=(0,l.useMemo)((()=>o?{type:"default"}:y?{...T,type:"constrained"}:{type:"default"}),[o,y,T]),V=(0,l.useMemo)((()=>{if(!r?.content&&!r?.blocks)return a;if(r?.blocks)return bn(r?.blocks);const e="string"==typeof r?.content?r?.content:"";return bn((0,s.parse)(e))||{}}),[r?.content,r?.blocks,a]),{layout:O={},align:R=""}=V||{},F=gn(V,"core/post-content"),H=L()({"is-layout-flow":!y},y&&F,R&&`align${R}`),G=hn(V,"core/post-content",".block-editor-block-list__layout.is-root-container"),U=(0,l.useMemo)((()=>O&&("constrained"===O?.type||O?.inherit||O?.contentSize||O?.wideSize)?{...T,...O,type:"constrained"}:{...T,...O,type:"default"}),[O?.type,O?.inherit,O?.contentSize,O?.wideSize,T]),z=a?U:D,Z=(0,l.useRef)();(0,l.useEffect)((()=>{!n&&p()&&Z?.current?.focus()}),[n,p]),e=(0,l.useMemo)((()=>[...e,{css:".edit-post-visual-editor__post-title-wrapper{margin-top:4rem}"+(M?`body{padding-bottom:${M}}`:"")}]),[e]);const $=(m||_n&&d)&&!g||o||"Tablet"===t||"Mobile"===t;return(0,l.createElement)(E.BlockTools,{__unstableContentRef:I,className:L()("edit-post-visual-editor",{"is-template-mode":o,"has-inline-canvas":!$})},(0,l.createElement)(S.VisualEditorGlobalKeyboardShortcuts,null),(0,l.createElement)(_.__unstableMotion.div,{className:"edit-post-visual-editor__content-area",animate:{padding:o?"48px 48px 0":0},ref:A},(0,l.createElement)(_.__unstableMotion.div,{animate:B,initial:k,className:x},(0,l.createElement)(En,{shouldIframe:$,contentRef:N,styles:e},y&&!v&&!o&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(pn,{selector:".edit-post-visual-editor__post-title-wrapper",layout:D}),(0,l.createElement)(pn,{selector:".block-editor-block-list__layout.is-root-container",layout:z}),R&&(0,l.createElement)(pn,{css:".is-root-container.alignwide { max-width: var(--wp--style--global--wide-size); margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignwide:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: var(--wp--style--global--wide-size);}\n\t\t.is-root-container.alignfull { max-width: none; margin-left: auto; margin-right: auto;}\n\t\t.is-root-container.alignfull:where(.is-layout-flow) > :not(.alignleft):not(.alignright) { max-width: none;}"}),G&&(0,l.createElement)(pn,{layout:U,css:G})),!o&&(0,l.createElement)("div",{className:L()("edit-post-visual-editor__post-title-wrapper",{"is-focus-mode":b,"has-global-padding":h}),contentEditable:!1},(0,l.createElement)(S.PostTitle,{ref:Z})),(0,l.createElement)(E.__experimentalRecursionProvider,{blockName:i,uniqueId:c},(0,l.createElement)(E.BlockList,{className:o?"wp-site-blocks":`${H} wp-block-post-content`,layout:z}))))))}var vn=function(){const{getBlockSelectionStart:e}=(0,u.useSelect)(E.store),{getEditorMode:t,isEditorSidebarOpened:n,isListViewOpened:o,isFeatureActive:a}=(0,u.useSelect)(on),r=(0,u.useSelect)((e=>{const{richEditingEnabled:t,codeEditingEnabled:n}=e(S.store).getEditorSettings();return!t||!n}),[]),{createInfoNotice:i}=(0,u.useDispatch)(x.store),{switchEditorMode:c,openGeneralSidebar:d,closeGeneralSidebar:m,toggleFeature:g,setIsListViewOpened:h,setIsInserterOpened:_}=(0,u.useDispatch)(on),{registerShortcut:f}=(0,u.useDispatch)(xe.store),{set:v}=(0,u.useDispatch)(p.store),{replaceBlocks:y}=(0,u.useDispatch)(E.store),{getBlockName:w,getSelectedBlockClientId:k,getBlockAttributes:P}=(0,u.useSelect)(E.store),C=(e,t)=>{e.preventDefault();const n=0===t?"core/paragraph":"core/heading",o=k();if(null===o)return;const a=w(o);if("core/paragraph"!==a&&"core/heading"!==a)return;const r=P(o),l="core/paragraph"===a?"align":"textAlign",i="core/paragraph"===n?"align":"textAlign";y(o,(0,s.createBlock)(n,{level:t,content:r.content,[i]:r[l]}))};return(0,l.useEffect)((()=>{f({name:"core/edit-post/toggle-mode",category:"global",description:(0,b.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),f({name:"core/edit-post/toggle-distraction-free",category:"global",description:(0,b.__)("Toggle distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}}),f({name:"core/edit-post/toggle-fullscreen",category:"global",description:(0,b.__)("Toggle fullscreen mode."),keyCombination:{modifier:"secondary",character:"f"}}),f({name:"core/edit-post/toggle-list-view",category:"global",description:(0,b.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),f({name:"core/edit-post/toggle-sidebar",category:"global",description:(0,b.__)("Show or hide the Settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),f({name:"core/edit-post/next-region",category:"global",description:(0,b.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),f({name:"core/edit-post/previous-region",category:"global",description:(0,b.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),f({name:"core/edit-post/keyboard-shortcuts",category:"main",description:(0,b.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),f({name:"core/edit-post/transform-heading-to-paragraph",category:"block-library",description:(0,b.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((e=>{f({name:`core/edit-post/transform-paragraph-to-heading-${e}`,category:"block-library",description:(0,b.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${e}`}})}))}),[]),(0,xe.useShortcut)("core/edit-post/toggle-mode",(()=>{c("visual"===t()?"text":"visual")}),{isDisabled:r}),(0,xe.useShortcut)("core/edit-post/toggle-fullscreen",(()=>{g("fullscreenMode")})),(0,xe.useShortcut)("core/edit-post/toggle-distraction-free",(()=>{v("core/edit-post","fixedToolbar",!1),_(!1),h(!1),m(),g("distractionFree"),i(a("distractionFree")?(0,b.__)("Distraction free mode turned on."):(0,b.__)("Distraction free mode turned off."),{id:"core/edit-post/distraction-free-mode/notice",type:"snackbar"})})),(0,xe.useShortcut)("core/edit-post/toggle-sidebar",(t=>{if(t.preventDefault(),n())m();else{const t=e()?"edit-post/block":"edit-post/document";d(t)}})),(0,xe.useShortcut)("core/edit-post/toggle-list-view",(()=>{o()||h(!0)})),(0,xe.useShortcut)("core/edit-post/transform-heading-to-paragraph",(e=>C(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,xe.useShortcut)(`core/edit-post/transform-paragraph-to-heading-${e}`,(t=>C(t,e)))})),null};function yn({willEnable:e}){const[t,n]=(0,l.useState)(!1);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("p",{className:"edit-post-preferences-modal__custom-fields-confirmation-message"},(0,b.__)("A page reload is required for this change. Make sure your content is saved before reloading.")),(0,l.createElement)(_.Button,{className:"edit-post-preferences-modal__custom-fields-confirmation-button",variant:"secondary",isBusy:t,disabled:t,onClick:()=>{n(!0),document.getElementById("toggle-custom-fields-form").submit()}},e?(0,b.__)("Show & Reload Page"):(0,b.__)("Hide & Reload Page")))}var wn=(0,u.withSelect)((e=>({areCustomFieldsEnabled:!!e(S.store).getEditorSettings().enableCustomFields})))((function({label:e,areCustomFieldsEnabled:t}){const[n,o]=(0,l.useState)(t);return(0,l.createElement)(Te,{label:e,isChecked:n,onChange:o},n!==t&&(0,l.createElement)(yn,{willEnable:n}))})),Sn=(0,f.compose)((0,u.withSelect)(((e,{panelName:t})=>{const{isEditorPanelEnabled:n,isEditorPanelRemoved:o}=e(on);return{isRemoved:o(t),isChecked:n(t)}})),(0,f.ifCondition)((({isRemoved:e})=>!e)),(0,u.withDispatch)(((e,{panelName:t})=>({onChange:()=>e(on).toggleEditorPanelEnabled(t)}))))(Te);const{Fill:kn,Slot:Pn}=(0,_.createSlotFill)("EnablePluginDocumentSettingPanelOption"),Cn=({label:e,panelName:t})=>(0,l.createElement)(kn,null,(0,l.createElement)(Sn,{label:e,panelName:t}));Cn.Slot=Pn;var Tn=Cn,xn=(0,f.compose)((0,u.withSelect)((e=>({isChecked:e(S.store).isPublishSidebarEnabled()}))),(0,u.withDispatch)((e=>{const{enablePublishSidebar:t,disablePublishSidebar:n}=e(S.store);return{onChange:e=>e?t():n()}})),(0,V.ifViewportMatches)("medium"))(Te),Mn=(0,f.compose)((0,u.withSelect)(((e,{featureName:t})=>{const{isFeatureActive:n}=e(on);return{isChecked:n(t)}})),(0,u.withDispatch)(((e,{featureName:t,onToggle:n=(()=>{})})=>({onChange:()=>{n(),e(on).toggleFeature(t)}}))))(Te);var Bn=(0,u.withSelect)((e=>{const{getEditorSettings:t}=e(S.store),{getAllMetaBoxes:n}=e(on);return{areCustomFieldsRegistered:void 0!==t().enableCustomFields,metaBoxes:n()}}))((function({areCustomFieldsRegistered:e,metaBoxes:t,...n}){const o=t.filter((({id:e})=>"postcustom"!==e));return e||0!==o.length?(0,l.createElement)(Ce,{...n},e&&(0,l.createElement)(wn,{label:(0,b.__)("Custom fields")}),o.map((({id:e,title:t})=>(0,l.createElement)(Sn,{key:e,label:t,panelName:`meta-box-${e}`})))):null}));var In=function({blockTypes:e,value:t,onItemChange:n}){return(0,l.createElement)("ul",{className:"edit-post-block-manager__checklist"},e.map((e=>(0,l.createElement)("li",{key:e.name,className:"edit-post-block-manager__checklist-item"},(0,l.createElement)(_.CheckboxControl,{__nextHasNoMarginBottom:!0,label:e.title,checked:t.includes(e.name),onChange:(...t)=>n(e.name,...t)}),(0,l.createElement)(E.BlockIcon,{icon:e.icon})))))};var Ln=function e({title:t,blockTypes:n}){const o=(0,f.useInstanceId)(e),{defaultAllowedBlockTypes:a,hiddenBlockTypes:r}=(0,u.useSelect)((e=>{const{getEditorSettings:t}=e(S.store),{getHiddenBlockTypes:n}=e(on);return{defaultAllowedBlockTypes:t().defaultAllowedBlockTypes,hiddenBlockTypes:n()}}),[]),s=(0,l.useMemo)((()=>!0===a?n:n.filter((({name:e})=>a?.includes(e)))),[a,n]),{showBlockTypes:i,hideBlockTypes:c}=(0,u.useDispatch)(on),d=(0,l.useCallback)(((e,t)=>{t?i(e):c(e)}),[]),m=(0,l.useCallback)((e=>{const t=n.map((({name:e})=>e));e?i(t):c(t)}),[n]);if(!s.length)return null;const p=s.map((({name:e})=>e)).filter((e=>!r.includes(e))),g="edit-post-block-manager__category-title-"+o,h=p.length===s.length,E=!h&&p.length>0;return(0,l.createElement)("div",{role:"group","aria-labelledby":g,className:"edit-post-block-manager__category"},(0,l.createElement)(_.CheckboxControl,{__nextHasNoMarginBottom:!0,checked:h,onChange:m,className:"edit-post-block-manager__category-title",indeterminate:E,label:(0,l.createElement)("span",{id:g},t)}),(0,l.createElement)(In,{blockTypes:s,value:p,onItemChange:d}))};var Nn=(0,f.compose)([(0,u.withSelect)((e=>{const{getBlockTypes:t,getCategories:n,hasBlockSupport:o,isMatchingSearchTerm:a}=e(s.store),{getHiddenBlockTypes:r}=e(on),l=t(),i=r().filter((e=>l.some((t=>t.name===e)))),c=Array.isArray(i)&&i.length;return{blockTypes:l,categories:n(),hasBlockSupport:o,isMatchingSearchTerm:a,numberOfHiddenBlocks:c}})),(0,u.withDispatch)((e=>{const{showBlockTypes:t}=e(on);return{enableAllBlockTypes:e=>{const n=e.map((({name:e})=>e));t(n)}}}))])((function({blockTypes:e,categories:t,hasBlockSupport:n,isMatchingSearchTerm:o,numberOfHiddenBlocks:a,enableAllBlockTypes:r}){const s=(0,f.useDebounce)(qe.speak,500),[i,c]=(0,l.useState)("");return e=e.filter((e=>n(e,"inserter",!0)&&(!i||o(e,i))&&(!e.parent||e.parent.includes("core/post-content")))),(0,l.useEffect)((()=>{if(!i)return;const t=e.length,n=(0,b.sprintf)((0,b._n)("%d result found.","%d results found.",t),t);s(n)}),[e.length,i,s]),(0,l.createElement)("div",{className:"edit-post-block-manager__content"},!!a&&(0,l.createElement)("div",{className:"edit-post-block-manager__disabled-blocks-count"},(0,b.sprintf)((0,b._n)("%d block is hidden.","%d blocks are hidden.",a),a),(0,l.createElement)(_.Button,{variant:"link",onClick:()=>r(e)},(0,b.__)("Reset"))),(0,l.createElement)(_.SearchControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Search for a block"),placeholder:(0,b.__)("Search for a block"),value:i,onChange:e=>c(e),className:"edit-post-block-manager__search"}),(0,l.createElement)("div",{tabIndex:"0",role:"region","aria-label":(0,b.__)("Available block types"),className:"edit-post-block-manager__results"},0===e.length&&(0,l.createElement)("p",{className:"edit-post-block-manager__no-results"},(0,b.__)("No blocks found.")),t.map((t=>(0,l.createElement)(Ln,{key:t.slug,title:t.title,blockTypes:e.filter((e=>e.category===t.slug))}))),(0,l.createElement)(Ln,{title:(0,b.__)("Uncategorized"),blockTypes:e.filter((({category:e})=>!e))})))}));const An="edit-post/preferences";function Dn(){const e=(0,f.useViewportMatch)("medium"),{closeModal:t}=(0,u.useDispatch)(ee),[n,o]=(0,u.useSelect)((t=>{const{getEditorSettings:n}=t(S.store),{getEditorMode:o,isFeatureActive:a}=t(on),r=t(ee).isModalActive(An),l=o(),s=n().richEditingEnabled,i=a("distractionFree");return[r,!i&&e&&s&&"visual"===l,i]}),[e]),{closeGeneralSidebar:a,setIsListViewOpened:r,setIsInserterOpened:s}=(0,u.useDispatch)(on),{set:i}=(0,u.useDispatch)(p.store),c=()=>{i("core/edit-post","fixedToolbar",!1),s(!1),r(!1),a()},d=(0,l.useMemo)((()=>[{name:"general",tabLabel:(0,b.__)("General"),content:(0,l.createElement)(l.Fragment,null,e&&(0,l.createElement)(Ce,{title:(0,b.__)("Publishing"),description:(0,b.__)("Change options related to publishing.")},(0,l.createElement)(xn,{help:(0,b.__)("Review settings, such as visibility and tags."),label:(0,b.__)("Include pre-publish checklist")})),(0,l.createElement)(Ce,{title:(0,b.__)("Appearance"),description:(0,b.__)("Customize options related to the block editor interface and editing flow.")},(0,l.createElement)(Mn,{featureName:"distractionFree",onToggle:c,help:(0,b.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,b.__)("Distraction free")}),(0,l.createElement)(Mn,{featureName:"focusMode",help:(0,b.__)("Highlights the current block and fades other content."),label:(0,b.__)("Spotlight mode")}),(0,l.createElement)(Mn,{featureName:"showIconLabels",label:(0,b.__)("Show button text labels"),help:(0,b.__)("Show text instead of icons on buttons.")}),(0,l.createElement)(Mn,{featureName:"showListViewByDefault",help:(0,b.__)("Opens the block list view sidebar by default."),label:(0,b.__)("Always open list view")}),(0,l.createElement)(Mn,{featureName:"themeStyles",help:(0,b.__)("Make the editor look like your theme."),label:(0,b.__)("Use theme styles")}),o&&(0,l.createElement)(Mn,{featureName:"showBlockBreadcrumbs",help:(0,b.__)("Shows block breadcrumbs at the bottom of the editor."),label:(0,b.__)("Display block breadcrumbs")})))},{name:"blocks",tabLabel:(0,b.__)("Blocks"),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ce,{title:(0,b.__)("Block interactions"),description:(0,b.__)("Customize how you interact with blocks in the block library and editing canvas.")},(0,l.createElement)(Mn,{featureName:"mostUsedBlocks",help:(0,b.__)("Places the most frequent blocks in the block library."),label:(0,b.__)("Show most used blocks")}),(0,l.createElement)(Mn,{featureName:"keepCaretInsideBlock",help:(0,b.__)("Aids screen readers by stopping text caret from leaving blocks."),label:(0,b.__)("Contain text cursor inside block")})),(0,l.createElement)(Ce,{title:(0,b.__)("Visible blocks"),description:(0,b.__)("Disable blocks that you don't want to appear in the inserter. They can always be toggled back on later.")},(0,l.createElement)(Nn,null)))},{name:"panels",tabLabel:(0,b.__)("Panels"),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ce,{title:(0,b.__)("Document settings"),description:(0,b.__)("Choose what displays in the panel.")},(0,l.createElement)(Tn.Slot,null),(0,l.createElement)(S.PostTaxonomies,{taxonomyWrapper:(e,t)=>(0,l.createElement)(Sn,{label:t.labels.menu_name,panelName:`taxonomy-panel-${t.slug}`})}),(0,l.createElement)(S.PostFeaturedImageCheck,null,(0,l.createElement)(Sn,{label:(0,b.__)("Featured image"),panelName:"featured-image"})),(0,l.createElement)(S.PostExcerptCheck,null,(0,l.createElement)(Sn,{label:(0,b.__)("Excerpt"),panelName:"post-excerpt"})),(0,l.createElement)(S.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},(0,l.createElement)(Sn,{label:(0,b.__)("Discussion"),panelName:"discussion-panel"})),(0,l.createElement)(S.PageAttributesCheck,null,(0,l.createElement)(Sn,{label:(0,b.__)("Page attributes"),panelName:"page-attributes"}))),(0,l.createElement)(Bn,{title:(0,b.__)("Additional"),description:(0,b.__)("Add extra areas to the editor.")}))}]),[e,o]);return n?(0,l.createElement)(ve,{closeModal:t},(0,l.createElement)(Pe,{sections:d})):null}class Vn extends l.Component{constructor(){super(...arguments),this.state={historyId:null}}componentDidUpdate(e){const{postId:t,postStatus:n,postType:o,isSavingPost:a}=this.props,{historyId:r}=this.state;"trash"!==n||a?t===e.postId&&t===r||"auto-draft"===n||!t||this.setBrowserURL(t):this.setTrashURL(t,o)}setTrashURL(e,t){window.location.href=function(e,t){return(0,T.addQueryArgs)("edit.php",{trashed:1,post_type:t,ids:e})}(e,t)}setBrowserURL(e){window.history.replaceState({id:e},"Post "+e,function(e){return(0,T.addQueryArgs)("post.php",{post:e,action:"edit"})}(e)),this.setState((()=>({historyId:e})))}render(){return null}}var On=(0,u.withSelect)((e=>{const{getCurrentPost:t,isSavingPost:n}=e(S.store),o=t();let{id:a,status:r,type:l}=o;return["wp_template","wp_template_part"].includes(l)&&(a=o.wp_id),{postId:a,postStatus:r,postType:l,isSavingPost:n()}}))(Vn);var Rn=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(k.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var Fn=function({showTooltip:e,icon:t,href:n}){var o;const{isActive:a,isRequestingSiteIcon:r,postType:s,siteIconUrl:i}=(0,u.useSelect)((e=>{const{getCurrentPostType:t}=e(S.store),{isFeatureActive:n}=e(on),{getEntityRecord:o,getPostType:a,isResolving:r}=e(w.store),l=o("root","__unstableBase",void 0)||{};return{isActive:n("fullscreenMode"),isRequestingSiteIcon:r("getEntityRecord",["root","__unstableBase",void 0]),postType:a(t()),siteIconUrl:l.site_icon_url}}),[]),c=(0,f.useReducedMotion)();if(!a||!s)return null;let d=(0,l.createElement)(_.Icon,{size:"36px",icon:Rn});const m={expand:{scale:1.25,transition:{type:"tween",duration:"0.3"}}};i&&(d=(0,l.createElement)(_.__unstableMotion.img,{variants:!c&&m,alt:(0,b.__)("Site Icon"),className:"edit-post-fullscreen-mode-close_site-icon",src:i})),r&&(d=null),t&&(d=(0,l.createElement)(_.Icon,{size:"36px",icon:t}));const p=L()({"edit-post-fullscreen-mode-close":!0,"has-icon":i});return(0,l.createElement)(_.__unstableMotion.div,{whileHover:"expand"},(0,l.createElement)(_.Button,{className:p,href:null!=n?n:(0,T.addQueryArgs)("edit.php",{post_type:s.slug}),label:null!==(o=s?.labels?.view_items)&&void 0!==o?o:(0,b.__)("Back"),showTooltip:e},d))};var Hn=(0,l.createElement)(k.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(k.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));var Gn=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));const{useShouldContextualToolbarShow:Un}=mn(E.privateApis),zn=e=>{e.preventDefault()};var Zn=function(){const e=(0,l.useRef)(),{setIsInserterOpened:t,setIsListViewOpened:n}=(0,u.useDispatch)(on),{get:o}=(0,u.useSelect)(p.store),a=o("core/edit-post","fixedToolbar"),{isInserterEnabled:r,isInserterOpened:s,isTextModeEnabled:i,showIconLabels:c,isListViewOpen:d,listViewShortcut:m}=(0,u.useSelect)((e=>{const{hasInserterItems:t,getBlockRootClientId:n,getBlockSelectionEnd:o}=e(E.store),{getEditorSettings:a}=e(S.store),{getEditorMode:r,isFeatureActive:l,isListViewOpened:s}=e(on),{getShortcutRepresentation:i}=e(xe.store);return{isInserterEnabled:"visual"===r()&&a().richEditingEnabled&&t(n(o())),isInserterOpened:e(on).isInserterOpened(),isTextModeEnabled:"text"===r(),showIconLabels:l("showIconLabels"),isListViewOpen:s(),listViewShortcut:i("core/edit-post/toggle-list-view")}}),[]),g=(0,f.useViewportMatch)("medium"),h=(0,f.useViewportMatch)("wide"),{shouldShowContextualToolbar:v,canFocusHiddenToolbar:y,fixedToolbarCanBeFocused:w}=Un(),k=v||y||w,P=(0,b.__)("Document tools"),C=(0,l.useCallback)((()=>n(!d)),[n,d]),T=(0,l.createElement)(l.Fragment,null,(0,l.createElement)(_.ToolbarItem,{as:_.Button,className:"edit-post-header-toolbar__document-overview-toggle",icon:Hn,disabled:i,isPressed:d,label:(0,b.__)("Document Overview"),onClick:C,shortcut:m,showTooltip:!c,variant:c?"tertiary":void 0})),x=(0,l.useCallback)((()=>{s?(e.current.focus(),t(!1)):t(!0)}),[s,t]),M=(0,b._x)("Toggle block inserter","Generic label for block inserter button"),B=s?(0,b.__)("Close"):(0,b.__)("Add");return(0,l.createElement)(E.NavigableToolbar,{className:"edit-post-header-toolbar","aria-label":P,shouldUseKeyboardFocusShortcut:!k},(0,l.createElement)("div",{className:"edit-post-header-toolbar__left"},(0,l.createElement)(_.ToolbarItem,{ref:e,as:_.Button,className:"edit-post-header-toolbar__inserter-toggle",variant:"primary",isPressed:s,onMouseDown:zn,onClick:x,disabled:!r,icon:Gn,label:c?B:M,showTooltip:!c}),(h||!c)&&(0,l.createElement)(l.Fragment,null,g&&!a&&(0,l.createElement)(_.ToolbarItem,{as:E.ToolSelector,showTooltip:!c,variant:c?"tertiary":void 0,disabled:i}),(0,l.createElement)(_.ToolbarItem,{as:S.EditorHistoryUndo,showTooltip:!c,variant:c?"tertiary":void 0}),(0,l.createElement)(_.ToolbarItem,{as:S.EditorHistoryRedo,showTooltip:!c,variant:c?"tertiary":void 0}),T)))};const $n=[{value:"visual",label:(0,b.__)("Visual editor")},{value:"text",label:(0,b.__)("Code editor")}];var Wn=function(){const{shortcut:e,isRichEditingEnabled:t,isCodeEditingEnabled:n,isEditingTemplate:o,mode:a}=(0,u.useSelect)((e=>({shortcut:e(xe.store).getShortcutRepresentation("core/edit-post/toggle-mode"),isRichEditingEnabled:e(S.store).getEditorSettings().richEditingEnabled,isCodeEditingEnabled:e(S.store).getEditorSettings().codeEditingEnabled,isEditingTemplate:e(on).isEditingTemplate(),mode:e(on).getEditorMode()})),[]),{switchEditorMode:r}=(0,u.useDispatch)(on);if(o)return null;if(!t||!n)return null;const s=$n.map((t=>t.value!==a?{...t,shortcut:e}:t));return(0,l.createElement)(_.MenuGroup,{label:(0,b.__)("Editor")},(0,l.createElement)(_.MenuItemsChoice,{choices:s,value:a,onSelect:r}))};function qn(){const{openModal:e}=(0,u.useDispatch)(ee);return(0,l.createElement)(_.MenuItem,{onClick:()=>{e(An)}},(0,b.__)("Preferences"))}var jn=function(){const e=(0,u.useRegistry)(),t=(0,u.useSelect)((e=>e(E.store).getSettings().isDistractionFree),[]),{setIsInserterOpened:n,setIsListViewOpened:o,closeGeneralSidebar:a}=(0,u.useDispatch)(on),{set:r}=(0,u.useDispatch)(p.store);return(0,f.useViewportMatch)("medium")?(0,l.createElement)(_.MenuGroup,{label:(0,b._x)("View","noun")},(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",disabled:t,name:"fixedToolbar",label:(0,b.__)("Top toolbar"),info:(0,b.__)("Access all block and document tools in a single place"),messageActivated:(0,b.__)("Top toolbar activated"),messageDeactivated:(0,b.__)("Top toolbar deactivated")}),(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"focusMode",label:(0,b.__)("Spotlight mode"),info:(0,b.__)("Focus on one block at a time"),messageActivated:(0,b.__)("Spotlight mode activated"),messageDeactivated:(0,b.__)("Spotlight mode deactivated")}),(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"fullscreenMode",label:(0,b.__)("Fullscreen mode"),info:(0,b.__)("Show and hide admin UI"),messageActivated:(0,b.__)("Fullscreen mode activated"),messageDeactivated:(0,b.__)("Fullscreen mode deactivated"),shortcut:B.displayShortcut.secondary("f")}),(0,l.createElement)(p.PreferenceToggleMenuItem,{scope:"core/edit-post",name:"distractionFree",onToggle:()=>{e.batch((()=>{r("core/edit-post","fixedToolbar",!1),n(!1),o(!1),a()}))},label:(0,b.__)("Distraction free"),info:(0,b.__)("Write with calmness"),messageActivated:(0,b.__)("Distraction free mode activated"),messageDeactivated:(0,b.__)("Distraction free mode deactivated"),shortcut:B.displayShortcut.primaryShift("\\")})):null};var Kn=({showIconLabels:e})=>{const t=(0,f.useViewportMatch)("large");return(0,l.createElement)(fe,{toggleProps:{showTooltip:!e,...e&&{variant:"tertiary"}}},(({onClose:n})=>(0,l.createElement)(l.Fragment,null,e&&!t&&(0,l.createElement)(de.Slot,{className:e&&"show-icon-labels",scope:"core/edit-post"}),(0,l.createElement)(jn,null),(0,l.createElement)(Wn,null),(0,l.createElement)(le.Slot,{name:"core/edit-post/plugin-more-menu",label:(0,b.__)("Plugins"),as:_.MenuGroup,fillProps:{onClick:n}}),(0,l.createElement)(Ge.Slot,{fillProps:{onClose:n}}),(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)(qn,null)))))};var Yn=(0,f.compose)((0,u.withSelect)((e=>{var t;return{hasPublishAction:null!==(t=e(S.store).getCurrentPost()?._links?.["wp:action-publish"])&&void 0!==t&&t,isBeingScheduled:e(S.store).isEditedPostBeingScheduled(),isPending:e(S.store).isCurrentPostPending(),isPublished:e(S.store).isCurrentPostPublished(),isPublishSidebarEnabled:e(S.store).isPublishSidebarEnabled(),isPublishSidebarOpened:e(on).isPublishSidebarOpened(),isScheduled:e(S.store).isCurrentPostScheduled()}})),(0,u.withDispatch)((e=>{const{togglePublishSidebar:t}=e(on);return{togglePublishSidebar:t}})))((function({forceIsDirty:e,forceIsSaving:t,hasPublishAction:n,isBeingScheduled:o,isPending:a,isPublished:r,isPublishSidebarEnabled:s,isPublishSidebarOpened:i,isScheduled:c,togglePublishSidebar:d,setEntitiesSavedStatesCallback:u}){const m="toggle",p="button",g=(0,f.useViewportMatch)("medium","<");let h;return h=r||c&&o||a&&!n&&!g?p:g||s?m:p,(0,l.createElement)(S.PostPublishButton,{forceIsDirty:e,forceIsSaving:t,isOpen:i,isToggle:h===m,onToggle:d,setEntitiesSavedStatesCallback:u})}));function Qn(){const{hasActiveMetaboxes:e,isPostSaveable:t,isSaving:n,isViewable:o,deviceType:a}=(0,u.useSelect)((e=>{var t;const{getEditedPostAttribute:n}=e(S.store),{getPostType:o}=e(w.store),a=o(n("type"));return{hasActiveMetaboxes:e(on).hasMetaBoxes(),isSaving:e(on).isSavingMetaBoxes(),isPostSaveable:e(S.store).isEditedPostSaveable(),isViewable:null!==(t=a?.viewable)&&void 0!==t&&t,deviceType:e(on).__experimentalGetPreviewDeviceType()}}),[]),{__experimentalSetPreviewDeviceType:r}=(0,u.useDispatch)(on);return(0,l.createElement)(E.__experimentalPreviewOptions,{isEnabled:t,className:"edit-post-post-preview-dropdown",deviceType:a,setDeviceType:r,label:(0,b.__)("Preview")},o&&(0,l.createElement)(_.MenuGroup,null,(0,l.createElement)("div",{className:"edit-post-header-preview__grouping-external"},(0,l.createElement)(S.PostPreviewButton,{className:"edit-post-header-preview__button-external",role:"menuitem",forceIsAutosaveable:e,forcePreviewLink:n?null:void 0,textContent:(0,l.createElement)(l.Fragment,null,(0,b.__)("Preview in new tab"),(0,l.createElement)(_.Icon,{icon:P}))}))))}function Xn(){const{permalink:e,isPublished:t,label:n}=(0,u.useSelect)((e=>{const t=e(S.store).getCurrentPostType(),n=e(w.store).getPostType(t);return{permalink:e(S.store).getPermalink(),isPublished:e(S.store).isCurrentPostPublished(),label:n?.labels.view_item}}),[]);return t&&e?(0,l.createElement)(_.Button,{icon:P,label:n||(0,b.__)("View post"),href:e,target:"_blank"}):null}const Jn="__experimentalMainDashboardButton",{Fill:eo,Slot:to}=(0,_.createSlotFill)(Jn),no=eo;no.Slot=({children:e})=>{const t=(0,_.__experimentalUseSlotFills)(Jn);return Boolean(t&&t.length)?(0,l.createElement)(to,{bubblesVirtually:!0}):e};var oo=no;var ao=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));var ro=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));var lo=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var so=function(){const{template:e,isEditing:t}=(0,u.useSelect)((e=>{const{isEditingTemplate:t,getEditedPostTemplate:n}=e(on),o=t();return{template:o?n():null,isEditing:o}}),[]),{clearSelectedBlock:n}=(0,u.useDispatch)(E.store),{setIsEditingTemplate:o}=(0,u.useDispatch)(on),{open:a}=(0,u.useDispatch)(ln.store);if(!t||!e)return null;let r=(0,b.__)("Default");return e?.title?r=e.title:e&&(r=e.slug),(0,l.createElement)("div",{className:"edit-post-document-actions"},(0,l.createElement)(_.Button,{className:"edit-post-document-actions__back",onClick:()=>{n(),o(!1)},icon:(0,b.isRTL)()?ao:ro},(0,b.__)("Back")),(0,l.createElement)(_.Button,{className:"edit-post-document-actions__command",onClick:()=>a()},(0,l.createElement)(_.__experimentalHStack,{className:"edit-post-document-actions__title",spacing:1,justify:"center"},(0,l.createElement)(E.BlockIcon,{icon:lo}),(0,l.createElement)(_.__experimentalText,{size:"body",as:"h1"},(0,l.createElement)(_.VisuallyHidden,{as:"span"},(0,b.__)("Editing template: ")),r)),(0,l.createElement)("span",{className:"edit-post-document-actions__shortcut"},B.displayShortcut.primary("k"))))};const io={hidden:{y:"-50px"},hover:{y:0,transition:{type:"tween",delay:.2}}},co={hidden:{x:"-100%"},hover:{x:0,transition:{type:"tween",delay:.2}}};var uo=function({setEntitiesSavedStatesCallback:e}){const t=(0,f.useViewportMatch)("large"),{hasActiveMetaboxes:n,isPublishSidebarOpened:o,isSaving:a,showIconLabels:r}=(0,u.useSelect)((e=>({hasActiveMetaboxes:e(on).hasMetaBoxes(),isPublishSidebarOpened:e(on).isPublishSidebarOpened(),isSaving:e(on).isSavingMetaBoxes(),showIconLabels:e(on).isFeatureActive("showIconLabels")})),[]);return(0,l.createElement)("div",{className:"edit-post-header"},(0,l.createElement)(oo.Slot,null,(0,l.createElement)(_.__unstableMotion.div,{variants:co,transition:{type:"tween",delay:.8}},(0,l.createElement)(Fn,{showTooltip:!0}))),(0,l.createElement)(_.__unstableMotion.div,{variants:io,transition:{type:"tween",delay:.8},className:"edit-post-header__toolbar"},(0,l.createElement)(Zn,null),(0,l.createElement)("div",{className:"edit-post-header__center"},(0,l.createElement)(so,null))),(0,l.createElement)(_.__unstableMotion.div,{variants:io,transition:{type:"tween",delay:.8},className:"edit-post-header__settings"},!o&&(0,l.createElement)(S.PostSavedState,{forceIsDirty:n,forceIsSaving:a,showIconLabels:r}),(0,l.createElement)(Qn,null),(0,l.createElement)(S.PostPreviewButton,{forceIsAutosaveable:n,forcePreviewLink:a?null:void 0}),(0,l.createElement)(Xn,null),(0,l.createElement)(Yn,{forceIsDirty:n,forceIsSaving:a,setEntitiesSavedStatesCallback:e}),(t||!r)&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(de.Slot,{scope:"core/edit-post"}),(0,l.createElement)(Kn,{showIconLabels:r})),r&&!t&&(0,l.createElement)(Kn,{showIconLabels:r})))};var mo=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function po(){const{insertionPoint:e,showMostUsedBlocks:t}=(0,u.useSelect)((e=>{const{isFeatureActive:t,__experimentalGetInsertionPoint:n}=e(on);return{insertionPoint:n(),showMostUsedBlocks:t("mostUsedBlocks")}}),[]),{setIsInserterOpened:n}=(0,u.useDispatch)(on),o=(0,f.useViewportMatch)("medium","<"),a=o?"div":_.VisuallyHidden,[r,s]=(0,f.__experimentalUseDialog)({onClose:()=>n(!1),focusOnMount:null}),i=(0,l.useRef)();return(0,l.useEffect)((()=>{i.current.focusSearch()}),[]),(0,l.createElement)("div",{ref:r,...s,className:"edit-post-editor__inserter-panel"},(0,l.createElement)(a,{className:"edit-post-editor__inserter-panel-header"},(0,l.createElement)(_.Button,{icon:mo,label:(0,b.__)("Close block inserter"),onClick:()=>n(!1)})),(0,l.createElement)("div",{className:"edit-post-editor__inserter-panel-content"},(0,l.createElement)(E.__experimentalLibrary,{showMostUsedBlocks:t,showInserterHelpPanel:!0,shouldFocusBlock:o,rootClientId:e.rootClientId,__experimentalInsertionIndex:e.insertionIndex,__experimentalFilterValue:e.filterValue,ref:i})))}var go=window.wp.dom;function ho(){return(0,l.createElement)(_.SVG,{width:"138",height:"148",viewBox:"0 0 138 148",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(_.Rect,{width:"138",height:"148",rx:"4",fill:"#F0F6FC"}),(0,l.createElement)(_.Line,{x1:"44",y1:"28",x2:"24",y2:"28",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"48",y:"16",width:"27",height:"23",rx:"4",fill:"#DDDDDD"}),(0,l.createElement)(_.Path,{d:"M54.7585 32V23.2727H56.6037V26.8736H60.3494V23.2727H62.1903V32H60.3494V28.3949H56.6037V32H54.7585ZM67.4574 23.2727V32H65.6122V25.0241H65.5611L63.5625 26.277V24.6406L65.723 23.2727H67.4574Z",fill:"black"}),(0,l.createElement)(_.Line,{x1:"55",y1:"59",x2:"24",y2:"59",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"59",y:"47",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,l.createElement)(_.Path,{d:"M65.7585 63V54.2727H67.6037V57.8736H71.3494V54.2727H73.1903V63H71.3494V59.3949H67.6037V63H65.7585ZM74.6605 63V61.6705L77.767 58.794C78.0313 58.5384 78.2528 58.3082 78.4318 58.1037C78.6136 57.8991 78.7514 57.6989 78.8452 57.5028C78.9389 57.304 78.9858 57.0895 78.9858 56.8594C78.9858 56.6037 78.9276 56.3835 78.8111 56.1989C78.6946 56.0114 78.5355 55.8679 78.3338 55.7685C78.1321 55.6662 77.9034 55.6151 77.6477 55.6151C77.3807 55.6151 77.1477 55.669 76.9489 55.777C76.75 55.8849 76.5966 56.0398 76.4886 56.2415C76.3807 56.4432 76.3267 56.6832 76.3267 56.9616H74.5753C74.5753 56.3906 74.7045 55.8949 74.9631 55.4744C75.2216 55.054 75.5838 54.7287 76.0497 54.4986C76.5156 54.2685 77.0526 54.1534 77.6605 54.1534C78.2855 54.1534 78.8295 54.2642 79.2926 54.4858C79.7585 54.7045 80.1207 55.0085 80.3793 55.3977C80.6378 55.7869 80.767 56.233 80.767 56.7358C80.767 57.0653 80.7017 57.3906 80.571 57.7116C80.4432 58.0327 80.2145 58.3892 79.8849 58.7812C79.5554 59.1705 79.0909 59.6378 78.4915 60.1832L77.2173 61.4318V61.4915H80.8821V63H74.6605Z",fill:"black"}),(0,l.createElement)(_.Line,{x1:"80",y1:"90",x2:"24",y2:"90",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"84",y:"78",width:"30",height:"23",rx:"4",fill:"#F0B849"}),(0,l.createElement)(_.Path,{d:"M90.7585 94V85.2727H92.6037V88.8736H96.3494V85.2727H98.1903V94H96.3494V90.3949H92.6037V94H90.7585ZM99.5284 92.4659V91.0128L103.172 85.2727H104.425V87.2841H103.683L101.386 90.919V90.9872H106.564V92.4659H99.5284ZM103.717 94V92.0227L103.751 91.3793V85.2727H105.482V94H103.717Z",fill:"black"}),(0,l.createElement)(_.Line,{x1:"66",y1:"121",x2:"24",y2:"121",stroke:"#DDDDDD"}),(0,l.createElement)(_.Rect,{x:"70",y:"109",width:"29",height:"23",rx:"4",fill:"#DDDDDD"}),(0,l.createElement)(_.Path,{d:"M76.7585 125V116.273H78.6037V119.874H82.3494V116.273H84.1903V125H82.3494V121.395H78.6037V125H76.7585ZM88.8864 125.119C88.25 125.119 87.6832 125.01 87.1861 124.791C86.6918 124.57 86.3011 124.266 86.0142 123.879C85.7301 123.49 85.5838 123.041 85.5753 122.533H87.4332C87.4446 122.746 87.5142 122.933 87.642 123.095C87.7727 123.254 87.946 123.378 88.1619 123.466C88.3778 123.554 88.6207 123.598 88.8906 123.598C89.1719 123.598 89.4205 123.548 89.6364 123.449C89.8523 123.349 90.0213 123.212 90.1435 123.036C90.2656 122.859 90.3267 122.656 90.3267 122.426C90.3267 122.193 90.2614 121.987 90.1307 121.808C90.0028 121.626 89.8182 121.484 89.5767 121.382C89.3381 121.28 89.054 121.229 88.7244 121.229H87.9105V119.874H88.7244C89.0028 119.874 89.2486 119.825 89.4616 119.729C89.6776 119.632 89.8452 119.499 89.9645 119.328C90.0838 119.155 90.1435 118.953 90.1435 118.723C90.1435 118.504 90.0909 118.312 89.9858 118.148C89.8835 117.98 89.7386 117.849 89.5511 117.756C89.3665 117.662 89.1506 117.615 88.9034 117.615C88.6534 117.615 88.4247 117.661 88.2173 117.751C88.0099 117.839 87.8438 117.966 87.7188 118.131C87.5938 118.295 87.527 118.489 87.5185 118.71H85.75C85.7585 118.207 85.902 117.764 86.1804 117.381C86.4588 116.997 86.8338 116.697 87.3054 116.482C87.7798 116.263 88.3153 116.153 88.9119 116.153C89.5142 116.153 90.0412 116.263 90.4929 116.482C90.9446 116.7 91.2955 116.996 91.5455 117.368C91.7983 117.737 91.9233 118.152 91.9205 118.612C91.9233 119.101 91.7713 119.509 91.4645 119.835C91.1605 120.162 90.7642 120.369 90.2756 120.457V120.526C90.9176 120.608 91.4063 120.831 91.7415 121.195C92.0795 121.555 92.2472 122.007 92.2443 122.55C92.2472 123.047 92.1037 123.489 91.8139 123.875C91.527 124.261 91.1307 124.565 90.625 124.787C90.1193 125.009 89.5398 125.119 88.8864 125.119Z",fill:"black"}))}function _o(){const{headingCount:e}=(0,u.useSelect)((e=>{const{getGlobalBlockCount:t}=e(E.store);return{headingCount:t("core/heading")}}),[]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-post-editor__list-view-overview"},(0,l.createElement)("div",null,(0,l.createElement)(_.__experimentalText,null,(0,b.__)("Characters:")),(0,l.createElement)(_.__experimentalText,null,(0,l.createElement)(S.CharacterCount,null))),(0,l.createElement)("div",null,(0,l.createElement)(_.__experimentalText,null,(0,b.__)("Words:")),(0,l.createElement)(S.WordCount,null)),(0,l.createElement)("div",null,(0,l.createElement)(_.__experimentalText,null,(0,b.__)("Time to read:")),(0,l.createElement)(S.TimeToRead,null))),e>0?(0,l.createElement)(S.DocumentOutline,null):(0,l.createElement)("div",{className:"edit-post-editor__list-view-empty-headings"},(0,l.createElement)(ho,null),(0,l.createElement)("p",null,(0,b.__)("Navigate the structure of your document and address issues like empty or incorrect heading levels."))))}function Eo(){const{setIsListViewOpened:e}=(0,u.useDispatch)(on),t=(0,f.useFocusOnMount)("firstElement"),n=(0,f.useFocusReturn)(),o=(0,f.useFocusReturn)();const[a,r]=(0,l.useState)(null),[s,i]=(0,l.useState)("list-view"),c=(0,l.useRef)(),d=(0,l.useRef)(),m=(0,l.useRef)(),p=(0,f.useMergeRefs)([o,t,m,r]);return(0,xe.useShortcut)("core/edit-post/toggle-list-view",(()=>{c.current.contains(c.current.ownerDocument.activeElement)?e(!1):function(e){const t=go.focus.tabbable.find(d.current)[0];if("list-view"===e){const e=go.focus.tabbable.find(m.current)[0];(c.current.contains(e)?e:t).focus()}else t.focus()}(s)})),(0,l.createElement)("div",{className:"edit-post-editor__document-overview-panel",onKeyDown:function(t){t.keyCode!==B.ESCAPE||t.defaultPrevented||(t.preventDefault(),e(!1))},ref:c},(0,l.createElement)(_.Button,{className:"edit-post-editor__document-overview-panel__close-button",ref:n,icon:O,label:(0,b.__)("Close"),onClick:()=>e(!1)}),(0,l.createElement)(_.TabPanel,{className:"edit-post-editor__document-overview-panel__tab-panel",ref:d,onSelect:e=>i(e),selectOnMove:!1,tabs:[{name:"list-view",title:(0,b._x)("List View","Post overview"),className:"edit-post-sidebar__panel-tab"},{name:"outline",title:(0,b._x)("Outline","Post overview"),className:"edit-post-sidebar__panel-tab"}]},(e=>(0,l.createElement)("div",{className:"edit-post-editor__list-view-container",ref:p},"list-view"===e.name?(0,l.createElement)("div",{className:"edit-post-editor__list-view-panel-content"},(0,l.createElement)(E.__experimentalListView,{dropZoneElement:a})):(0,l.createElement)(_o,null)))))}var bo=(0,l.createElement)(k.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"}));var fo=(0,l.createElement)(k.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"}));var vo=({sidebarName:e})=>{const{openGeneralSidebar:t}=(0,u.useDispatch)(on),n=()=>t("edit-post/document"),{documentLabel:o,isTemplateMode:a}=(0,u.useSelect)((e=>({documentLabel:e(S.store).getPostTypeLabel()||(0,b._x)("Document","noun"),isTemplateMode:e(on).isEditingTemplate()})),[]),[r,s]="edit-post/document"===e?[(0,b.sprintf)((0,b.__)("%s (selected)"),o),"is-active"]:[o,""],[i,c]="edit-post/block"===e?[(0,b.__)("Block (selected)"),"is-active"]:[(0,b.__)("Block"),""],[d,m]="edit-post/document"===e?[(0,b.__)("Template (selected)"),"is-active"]:[(0,b.__)("Template"),""];return(0,l.createElement)("ul",null,!a&&(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:n,className:`edit-post-sidebar__panel-tab ${s}`,"aria-label":r,"data-label":o},o)),a&&(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:n,className:`edit-post-sidebar__panel-tab ${m}`,"aria-label":d,"data-label":(0,b.__)("Template")},(0,b.__)("Template"))),(0,l.createElement)("li",null,(0,l.createElement)(_.Button,{onClick:()=>t("edit-post/block"),className:`edit-post-sidebar__panel-tab ${c}`,"aria-label":i,"data-label":(0,b.__)("Block")},(0,b.__)("Block"))))};function yo({isOpen:e,onClick:t}){const n=(0,S.usePostVisibilityLabel)();return(0,l.createElement)(_.Button,{className:"edit-post-post-visibility__toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,b.sprintf)((0,b.__)("Select visibility: %s"),n),onClick:t},n)}var wo=function(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,l.createElement)(S.PostVisibilityCheck,{render:({canEdit:e})=>(0,l.createElement)(_.PanelRow,{ref:t,className:"edit-post-post-visibility"},(0,l.createElement)("span",null,(0,b.__)("Visibility")),!e&&(0,l.createElement)("span",null,(0,l.createElement)(S.PostVisibilityLabel,null)),e&&(0,l.createElement)(_.Dropdown,{contentClassName:"edit-post-post-visibility__dialog",popoverProps:n,focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(yo,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(S.PostVisibility,{onClose:e})}))})};function So(){return(0,l.createElement)(S.PostTrashCheck,null,(0,l.createElement)(S.PostTrash,null))}function ko(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,l.createElement)(S.PostScheduleCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-schedule",ref:t},(0,l.createElement)("span",null,(0,b.__)("Publish")),(0,l.createElement)(_.Dropdown,{popoverProps:n,contentClassName:"edit-post-post-schedule__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(Po,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(S.PostSchedule,{onClose:e})})))}function Po({isOpen:e,onClick:t}){const n=(0,S.usePostScheduleLabel)(),o=(0,S.usePostScheduleLabel)({full:!0});return(0,l.createElement)(_.Button,{className:"edit-post-post-schedule__toggle",variant:"tertiary",label:o,showTooltip:!0,"aria-expanded":e,"aria-label":(0,b.sprintf)((0,b.__)("Change date: %s"),n),onClick:t},n)}var Co=function(){return(0,l.createElement)(S.PostStickyCheck,null,(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(S.PostSticky,null)))};var To=function(){return(0,l.createElement)(S.PostAuthorCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-author"},(0,l.createElement)(S.PostAuthor,null)))};var xo=function(){return(0,l.createElement)(S.PostSlugCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-slug"},(0,l.createElement)(S.PostSlug,null)))};var Mo=function(){return(0,l.createElement)(S.PostFormatCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-format"},(0,l.createElement)(S.PostFormat,null)))};var Bo=function(){return(0,l.createElement)(S.PostPendingStatusCheck,null,(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(S.PostPendingStatus,null)))};const{Fill:Io,Slot:Lo}=(0,_.createSlotFill)("PluginPostStatusInfo"),No=({children:e,className:t})=>(0,l.createElement)(Io,null,(0,l.createElement)(_.PanelRow,{className:t},e));No.Slot=Lo;var Ao=No;var Do=(0,l.createElement)(k.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(k.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 5.5V8H20V5.5H22.5V4H20V1.5H18.5V4H16V5.5H18.5ZM13.9624 4H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V10.0391H18.5V18C18.5 18.2761 18.2761 18.5 18 18.5H10L10 10.4917L16.4589 10.5139L16.4641 9.01389L5.5 8.97618V6C5.5 5.72386 5.72386 5.5 6 5.5H13.9624V4ZM5.5 10.4762V18C5.5 18.2761 5.72386 18.5 6 18.5H8.5L8.5 10.4865L5.5 10.4762Z"}));const Vo=(0,b.__)("Custom Template");function Oo({onClose:e}){const t=(0,u.useSelect)((e=>e(S.store).getEditorSettings().defaultBlockTemplate),[]),{__unstableCreateTemplate:n,__unstableSwitchToTemplateMode:o}=(0,u.useDispatch)(on),[a,r]=(0,l.useState)(""),[i,c]=(0,l.useState)(!1),d=()=>{r(""),e()};return(0,l.createElement)(_.Modal,{title:(0,b.__)("Create custom template"),onRequestClose:d,className:"edit-post-post-template__create-modal"},(0,l.createElement)("form",{className:"edit-post-post-template__create-form",onSubmit:async e=>{if(e.preventDefault(),i)return;c(!0);const r=null!=t?t:(0,s.serialize)([(0,s.createBlock)("core/group",{tagName:"header",layout:{inherit:!0}},[(0,s.createBlock)("core/site-title"),(0,s.createBlock)("core/site-tagline")]),(0,s.createBlock)("core/separator"),(0,s.createBlock)("core/group",{tagName:"main"},[(0,s.createBlock)("core/group",{layout:{inherit:!0}},[(0,s.createBlock)("core/post-title")]),(0,s.createBlock)("core/post-content",{layout:{inherit:!0}})])]);await n({slug:(0,T.cleanForSlug)(a||Vo),content:r,title:a||Vo}),c(!1),d(),o(!0)}},(0,l.createElement)(_.__experimentalVStack,{spacing:"3"},(0,l.createElement)(_.TextControl,{__nextHasNoMarginBottom:!0,label:(0,b.__)("Name"),value:a,onChange:r,placeholder:Vo,disabled:i,help:(0,b.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,l.createElement)(_.__experimentalHStack,{justify:"right"},(0,l.createElement)(_.Button,{variant:"tertiary",onClick:d},(0,b.__)("Cancel")),(0,l.createElement)(_.Button,{variant:"primary",type:"submit",isBusy:i,"aria-disabled":i},(0,b.__)("Create"))))))}function Ro({onClose:e}){var t,n;const{isPostsPage:o,availableTemplates:a,fetchedTemplates:r,selectedTemplateSlug:s,canCreate:i,canEdit:c}=(0,u.useSelect)((e=>{const{canUser:t,getEntityRecord:n,getEntityRecords:o}=e(w.store),a=e(S.store).getEditorSettings(),r=t("read","settings")?n("root","site"):void 0,l=e(S.store).getCurrentPostId()===r?.page_for_posts,s=t("create","templates");return{isPostsPage:l,availableTemplates:a.availableTemplates,fetchedTemplates:s?o("postType","wp_template",{post_type:e(S.store).getCurrentPostType(),per_page:-1}):void 0,selectedTemplateSlug:e(S.store).getEditedPostAttribute("template"),canCreate:s&&!l&&a.supportsTemplateMode,canEdit:s&&a.supportsTemplateMode&&!!e(on).getEditedPostTemplate()}}),[]),d=(0,l.useMemo)((()=>Object.entries({...a,...Object.fromEntries((null!=r?r:[]).map((({slug:e,title:t})=>[e,t.rendered])))}).map((([e,t])=>({value:e,label:t})))),[a,r]),m=null!==(t=d.find((e=>e.value===s)))&&void 0!==t?t:d.find((e=>!e.value)),{editPost:p}=(0,u.useDispatch)(S.store),{__unstableSwitchToTemplateMode:g}=(0,u.useDispatch)(on),[h,f]=(0,l.useState)(!1);return(0,l.createElement)("div",{className:"edit-post-post-template__form"},(0,l.createElement)(E.__experimentalInspectorPopoverHeader,{title:(0,b.__)("Template"),help:(0,b.__)("Templates define the way content is displayed when viewing your site."),actions:i?[{icon:Do,label:(0,b.__)("Add template"),onClick:()=>f(!0)}]:[],onClose:e}),o?(0,l.createElement)(_.Notice,{className:"edit-post-post-template__notice",status:"warning",isDismissible:!1},(0,b.__)("The posts page template cannot be changed.")):(0,l.createElement)(_.SelectControl,{__nextHasNoMarginBottom:!0,hideLabelFromVision:!0,label:(0,b.__)("Template"),value:null!==(n=m?.value)&&void 0!==n?n:"",options:d,onChange:e=>p({template:e||""})}),c&&(0,l.createElement)("p",null,(0,l.createElement)(_.Button,{variant:"link",onClick:()=>g()},(0,b.__)("Edit template"))),h&&(0,l.createElement)(Oo,{onClose:()=>f(!1)}))}function Fo(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,u.useSelect)((e=>{var t;const n=e(S.store).getCurrentPostType(),o=e(w.store).getPostType(n);if(!o?.viewable)return!1;const a=e(S.store).getEditorSettings();if(!!a.availableTemplates&&Object.keys(a.availableTemplates).length>0)return!0;if(!a.supportsTemplateMode)return!1;return null!==(t=e(w.store).canUser("create","templates"))&&void 0!==t&&t}),[])?(0,l.createElement)(_.PanelRow,{className:"edit-post-post-template",ref:t},(0,l.createElement)("span",null,(0,b.__)("Template")),(0,l.createElement)(_.Dropdown,{popoverProps:n,className:"edit-post-post-template__dropdown",contentClassName:"edit-post-post-template__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(Ho,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(Ro,{onClose:e})})):null}function Ho({isOpen:e,onClick:t}){const n=(0,u.useSelect)((e=>{const t=e(S.store).getEditedPostAttribute("template"),{supportsTemplateMode:n,availableTemplates:o}=e(S.store).getEditorSettings();if(!n&&o[t])return o[t];const a=e(w.store).canUser("create","templates")&&e(on).getEditedPostTemplate();return a?.title||a?.slug||o?.[t]}),[]);return(0,l.createElement)(_.Button,{className:"edit-post-post-template__toggle",variant:"tertiary","aria-expanded":e,"aria-label":n?(0,b.sprintf)((0,b.__)("Select template: %s"),n):(0,b.__)("Select template"),onClick:t},null!=n?n:(0,b.__)("Default template"))}function Go(){const[e,t]=(0,l.useState)(null),n=(0,l.useMemo)((()=>({anchor:e,placement:"bottom-end"})),[e]);return(0,l.createElement)(S.PostURLCheck,null,(0,l.createElement)(_.PanelRow,{className:"edit-post-post-url",ref:t},(0,l.createElement)("span",null,(0,b.__)("URL")),(0,l.createElement)(_.Dropdown,{popoverProps:n,className:"edit-post-post-url__dropdown",contentClassName:"edit-post-post-url__dialog",focusOnMount:!0,renderToggle:({isOpen:e,onToggle:t})=>(0,l.createElement)(Uo,{isOpen:e,onClick:t}),renderContent:({onClose:e})=>(0,l.createElement)(S.PostURL,{onClose:e})})))}function Uo({isOpen:e,onClick:t}){const n=(0,S.usePostURLLabel)();return(0,l.createElement)(_.Button,{className:"edit-post-post-url__toggle",variant:"tertiary","aria-expanded":e,"aria-label":(0,b.sprintf)((0,b.__)("Change URL: %s"),n),onClick:t},n)}const zo="post-status";var Zo=(0,f.compose)([(0,u.withSelect)((e=>{const{isEditorPanelRemoved:t,isEditorPanelOpened:n}=e(on);return{isRemoved:t(zo),isOpened:n(zo)}})),(0,f.ifCondition)((({isRemoved:e})=>!e)),(0,u.withDispatch)((e=>({onTogglePanel(){return e(on).toggleEditorPanelOpened(zo)}})))])((function({isOpened:e,onTogglePanel:t}){return(0,l.createElement)(_.PanelBody,{className:"edit-post-post-status",title:(0,b.__)("Summary"),opened:e,onToggle:t},(0,l.createElement)(Ao.Slot,null,(e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wo,null),(0,l.createElement)(ko,null),(0,l.createElement)(Fo,null),(0,l.createElement)(Go,null),(0,l.createElement)(Co,null),(0,l.createElement)(Bo,null),(0,l.createElement)(Mo,null),(0,l.createElement)(xo,null),(0,l.createElement)(To,null),(0,l.createElement)(S.PostSyncStatus,null),e,(0,l.createElement)(_.__experimentalHStack,{style:{marginTop:"16px"},spacing:4,wrap:!0},(0,l.createElement)(S.PostSwitchToDraftButton,null),(0,l.createElement)(So,null))))))}));var $o=function(){return(0,l.createElement)(S.PostLastRevisionCheck,null,(0,l.createElement)(_.PanelBody,{className:"edit-post-last-revision__panel"},(0,l.createElement)(S.PostLastRevision,null)))};var Wo=(0,f.compose)((0,u.withSelect)(((e,t)=>{const n=t.taxonomy?.slug,o=n?`taxonomy-panel-${n}`:"";return{panelName:o,isEnabled:!!n&&e(on).isEditorPanelEnabled(o),isOpened:!!n&&e(on).isEditorPanelOpened(o)}})),(0,u.withDispatch)(((e,t)=>({onTogglePanel:()=>{e(on).toggleEditorPanelOpened(t.panelName)}}))))((function({isEnabled:e,taxonomy:t,isOpened:n,onTogglePanel:o,children:a}){if(!e)return null;const r=t?.labels?.menu_name;return r?(0,l.createElement)(_.PanelBody,{title:r,opened:n,onToggle:o},a):null}));var qo=function(){return(0,l.createElement)(S.PostTaxonomiesCheck,null,(0,l.createElement)(S.PostTaxonomies,{taxonomyWrapper:(e,t)=>(0,l.createElement)(Wo,{taxonomy:t},e)}))};const jo="featured-image";const Ko=(0,u.withSelect)((e=>{const{getEditedPostAttribute:t}=e(S.store),{getPostType:n}=e(w.store),{isEditorPanelEnabled:o,isEditorPanelOpened:a}=e(on);return{postType:n(t("type")),isEnabled:o(jo),isOpened:a(jo)}})),Yo=(0,u.withDispatch)((e=>{const{toggleEditorPanelOpened:t}=e(on);return{onTogglePanel:(...e)=>t(jo,...e)}}));var Qo=(0,f.compose)(Ko,Yo)((function({isEnabled:e,isOpened:t,postType:n,onTogglePanel:o}){var a;return e?(0,l.createElement)(S.PostFeaturedImageCheck,null,(0,l.createElement)(_.PanelBody,{title:null!==(a=n?.labels?.featured_image)&&void 0!==a?a:(0,b.__)("Featured image"),opened:t,onToggle:o},(0,l.createElement)(S.PostFeaturedImage,null))):null}));const Xo="post-excerpt";var Jo=(0,f.compose)([(0,u.withSelect)((e=>({isEnabled:e(on).isEditorPanelEnabled(Xo),isOpened:e(on).isEditorPanelOpened(Xo)}))),(0,u.withDispatch)((e=>({onTogglePanel(){return e(on).toggleEditorPanelOpened(Xo)}})))])((function({isEnabled:e,isOpened:t,onTogglePanel:n}){return e?(0,l.createElement)(S.PostExcerptCheck,null,(0,l.createElement)(_.PanelBody,{title:(0,b.__)("Excerpt"),opened:t,onToggle:n},(0,l.createElement)(S.PostExcerpt,null))):null}));const ea="discussion-panel";var ta=(0,f.compose)([(0,u.withSelect)((e=>({isEnabled:e(on).isEditorPanelEnabled(ea),isOpened:e(on).isEditorPanelOpened(ea)}))),(0,u.withDispatch)((e=>({onTogglePanel(){return e(on).toggleEditorPanelOpened(ea)}})))])((function({isEnabled:e,isOpened:t,onTogglePanel:n}){return e?(0,l.createElement)(S.PostTypeSupportCheck,{supportKeys:["comments","trackbacks"]},(0,l.createElement)(_.PanelBody,{title:(0,b.__)("Discussion"),opened:t,onToggle:n},(0,l.createElement)(S.PostTypeSupportCheck,{supportKeys:"comments"},(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(S.PostComments,null))),(0,l.createElement)(S.PostTypeSupportCheck,{supportKeys:"trackbacks"},(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(S.PostPingbacks,null))))):null}));const na="page-attributes";var oa=function(){var e;const{isEnabled:t,isOpened:n,postType:o}=(0,u.useSelect)((e=>{const{getEditedPostAttribute:t}=e(S.store),{isEditorPanelEnabled:n,isEditorPanelOpened:o}=e(on),{getPostType:a}=e(w.store);return{isEnabled:n(na),isOpened:o(na),postType:a(t("type"))}}),[]),{toggleEditorPanelOpened:a}=(0,u.useDispatch)(on);return t&&o?(0,l.createElement)(S.PageAttributesCheck,null,(0,l.createElement)(_.PanelBody,{title:null!==(e=o?.labels?.attributes)&&void 0!==e?e:(0,b.__)("Page attributes"),opened:n,onToggle:(...e)=>a(na,...e)},(0,l.createElement)(S.PageAttributesParent,null),(0,l.createElement)(_.PanelRow,null,(0,l.createElement)(S.PageAttributesOrder,null)))):null};var aa=function({location:e}){const t=(0,l.useRef)(null),n=(0,l.useRef)(null);(0,l.useEffect)((()=>(n.current=document.querySelector(".metabox-location-"+e),n.current&&t.current.appendChild(n.current),()=>{n.current&&document.querySelector("#metaboxes").appendChild(n.current)})),[e]);const o=(0,u.useSelect)((e=>e(on).isSavingMetaBoxes()),[]),a=L()("edit-post-meta-boxes-area",`is-${e}`,{"is-loading":o});return(0,l.createElement)("div",{className:a},o&&(0,l.createElement)(_.Spinner,null),(0,l.createElement)("div",{className:"edit-post-meta-boxes-area__container",ref:t}),(0,l.createElement)("div",{className:"edit-post-meta-boxes-area__clear"}))};class ra extends l.Component{componentDidMount(){this.updateDOM()}componentDidUpdate(e){this.props.isVisible!==e.isVisible&&this.updateDOM()}updateDOM(){const{id:e,isVisible:t}=this.props,n=document.getElementById(e);n&&(t?n.classList.remove("is-hidden"):n.classList.add("is-hidden"))}render(){return null}}var la=(0,u.withSelect)(((e,{id:t})=>({isVisible:e(on).isEditorPanelEnabled(`meta-box-${t}`)})))(ra);function sa({location:e}){const t=(0,u.useRegistry)(),{metaBoxes:n,areMetaBoxesInitialized:o,isEditorReady:a}=(0,u.useSelect)((t=>{const{__unstableIsEditorReady:n}=t(S.store),{getMetaBoxesPerLocation:o,areMetaBoxesInitialized:a}=t(on);return{metaBoxes:o(e),areMetaBoxesInitialized:a(),isEditorReady:n()}}),[e]);return(0,l.useEffect)((()=>{a&&!o&&t.dispatch(on).initializeMetaBoxes()}),[a,o]),o?(0,l.createElement)(l.Fragment,null,(null!=n?n:[]).map((({id:e})=>(0,l.createElement)(la,{key:e,id:e}))),(0,l.createElement)(aa,{location:e})):null}window.wp.warning;const{Fill:ia,Slot:ca}=(0,_.createSlotFill)("PluginDocumentSettingPanel"),da=(0,f.compose)((0,C.withPluginContext)(((e,t)=>(void 0===t.name&&"undefined"!=typeof process&&process.env,{panelName:`${e.name}/${t.name}`}))),(0,u.withSelect)(((e,{panelName:t})=>({opened:e(on).isEditorPanelOpened(t),isEnabled:e(on).isEditorPanelEnabled(t)}))),(0,u.withDispatch)(((e,{panelName:t})=>({onToggle(){return e(on).toggleEditorPanelOpened(t)}}))))((({isEnabled:e,panelName:t,opened:n,onToggle:o,className:a,title:r,icon:s,children:i})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Tn,{label:r,panelName:t}),(0,l.createElement)(ia,null,e&&(0,l.createElement)(_.PanelBody,{className:a,title:r,icon:s,opened:n,onToggle:o},i)))));da.Slot=ca;var ua=da;function ma({className:e,...t}){const{postTitle:n,shortcut:o,showIconLabels:a}=(0,u.useSelect)((e=>({postTitle:e(S.store).getEditedPostAttribute("title"),shortcut:e(xe.store).getShortcutRepresentation("core/edit-post/toggle-sidebar"),showIconLabels:e(on).isFeatureActive("showIconLabels")})),[]);return(0,l.createElement)(pe,{panelClassName:e,className:"edit-post-sidebar",smallScreenTitle:n||(0,b.__)("(no title)"),scope:"core/edit-post",toggleShortcut:o,showIconLabels:a,...t})}var pa=function(){const e=(0,u.useSelect)((e=>{const{getEditedPostTemplate:t}=e(on);return t()}),[]);return e?(0,l.createElement)(_.PanelBody,null,(0,l.createElement)(_.Flex,{align:"flex-start",gap:"3"},(0,l.createElement)(_.FlexItem,null,(0,l.createElement)(ye,{icon:lo})),(0,l.createElement)(_.FlexBlock,null,(0,l.createElement)("h2",{className:"edit-post-template-summary__title"},e?.title||e?.slug),(0,l.createElement)("p",null,e?.description)))):null};const ga=l.Platform.select({web:!0,native:!1});var ha=()=>{const{sidebarName:e,keyboardShortcut:t,isTemplateMode:n}=(0,u.useSelect)((e=>{let t=e(ee).getActiveComplementaryArea(on.name);["edit-post/document","edit-post/block"].includes(t)||(e(E.store).getBlockSelectionStart()&&(t="edit-post/block"),t="edit-post/document");return{sidebarName:t,keyboardShortcut:e(xe.store).getShortcutRepresentation("core/edit-post/toggle-sidebar"),isTemplateMode:e(on).isEditingTemplate()}}),[]);return(0,l.createElement)(ma,{identifier:e,header:(0,l.createElement)(vo,{sidebarName:e}),closeLabel:(0,b.__)("Close Settings"),headerClassName:"edit-post-sidebar__panel-tabs",title:(0,b.__)("Settings"),toggleShortcut:t,icon:(0,b.isRTL)()?bo:fo,isActiveByDefault:ga},!n&&"edit-post/document"===e&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Zo,null),(0,l.createElement)(ua.Slot,null),(0,l.createElement)($o,null),(0,l.createElement)(qo,null),(0,l.createElement)(Qo,null),(0,l.createElement)(Jo,null),(0,l.createElement)(ta,null),(0,l.createElement)(oa,null),(0,l.createElement)(sa,{location:"side"})),n&&"edit-post/document"===e&&(0,l.createElement)(pa,null),"edit-post/block"===e&&(0,l.createElement)(E.BlockInspector,null))};function _a({nonAnimatedSrc:e,animatedSrc:t}){return(0,l.createElement)("picture",{className:"edit-post-welcome-guide__image"},(0,l.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,l.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function Ea(){const{toggleFeature:e}=(0,u.useDispatch)(on);return(0,l.createElement)(_.Guide,{className:"edit-post-welcome-guide",contentLabel:(0,b.__)("Welcome to the block editor"),finishButtonText:(0,b.__)("Get started"),onFinish:()=>e("welcomeGuide"),pages:[{image:(0,l.createElement)(_a,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-canvas.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Welcome to the block editor")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("In the WordPress editor, each paragraph, image, or video is presented as a distinct “block” of content.")))},{image:(0,l.createElement)(_a,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-editor.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Make each block your own")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("Each block comes with its own set of controls for changing things like color, width, and alignment. These will show and hide automatically when you have a block selected.")))},{image:(0,l.createElement)(_a,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-library.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-library.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Get to know the block library")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,l.createInterpolateElement)((0,b.__)("All of the blocks available to you live in the block library. You’ll find it wherever you see the <InserterIconImage /> icon."),{InserterIconImage:(0,l.createElement)("img",{alt:(0,b.__)("inserter"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='18' height='18' rx='2' fill='%231E1E1E'/%3E%3Cpath d='M9.22727 4V14M4 8.77273H14' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E%0A"})})))},{image:(0,l.createElement)(_a,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Learn how to use the block editor")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("New to the block editor? Want to learn more about using it? "),(0,l.createElement)(_.ExternalLink,{href:(0,b.__)("https://wordpress.org/documentation/article/wordpress-block-editor/")},(0,b.__)("Here's a detailed guide."))))}]})}function ba(){const{toggleFeature:e}=(0,u.useDispatch)(on);return(0,l.createElement)(_.Guide,{className:"edit-template-welcome-guide",contentLabel:(0,b.__)("Welcome to the template editor"),finishButtonText:(0,b.__)("Get started"),onFinish:()=>e("welcomeGuideTemplate"),pages:[{image:(0,l.createElement)(_a,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-template-editor.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-post-welcome-guide__heading"},(0,b.__)("Welcome to the template editor")),(0,l.createElement)("p",{className:"edit-post-welcome-guide__text"},(0,b.__)("Templates help define the layout of the site. You can customize all aspects of your posts and pages using blocks and patterns in this editor.")))}]})}function fa(){const{isActive:e,isTemplateMode:t}=(0,u.useSelect)((e=>{const{isFeatureActive:t,isEditingTemplate:n}=e(on),o=n();return{isActive:t(o?"welcomeGuideTemplate":"welcomeGuide"),isTemplateMode:o}}),[]);return e?t?(0,l.createElement)(ba,null):(0,l.createElement)(Ea,null):null}const{Fill:va,Slot:ya}=(0,_.createSlotFill)("PluginPostPublishPanel"),wa=(0,f.compose)((0,C.withPluginContext)(((e,t)=>({icon:t.icon||e.icon}))))((({children:e,className:t,title:n,initialOpen:o=!1,icon:a})=>(0,l.createElement)(va,null,(0,l.createElement)(_.PanelBody,{className:t,initialOpen:o||!n,title:n,icon:a},e))));wa.Slot=ya;var Sa=wa;const{Fill:ka,Slot:Pa}=(0,_.createSlotFill)("PluginPrePublishPanel"),Ca=(0,f.compose)((0,C.withPluginContext)(((e,t)=>({icon:t.icon||e.icon}))))((({children:e,className:t,title:n,initialOpen:o=!1,icon:a})=>(0,l.createElement)(ka,null,(0,l.createElement)(_.PanelBody,{className:t,initialOpen:o||!n,title:n,icon:a},e))));Ca.Slot=Pa;var Ta=Ca;const{Fill:xa,Slot:Ma}=(0,_.createSlotFill)("ActionsPanel");function Ba({setEntitiesSavedStatesCallback:e,closeEntitiesSavedStates:t,isEntitiesSavedStatesOpen:n}){const{closePublishSidebar:o,togglePublishSidebar:a}=(0,u.useDispatch)(on),{publishSidebarOpened:r,hasActiveMetaboxes:s,isSavingMetaBoxes:i,hasNonPostEntityChanges:c}=(0,u.useSelect)((e=>({publishSidebarOpened:e(on).isPublishSidebarOpened(),hasActiveMetaboxes:e(on).hasMetaBoxes(),isSavingMetaBoxes:e(on).isSavingMetaBoxes(),hasNonPostEntityChanges:e(S.store).hasNonPostEntityChanges()})),[]),d=(0,l.useCallback)((()=>e(!0)),[]);let m;return m=r?(0,l.createElement)(S.PostPublishPanel,{onClose:o,forceIsDirty:s,forceIsSaving:i,PrePublishExtension:Ta.Slot,PostPublishExtension:Sa.Slot}):c?(0,l.createElement)("div",{className:"edit-post-layout__toggle-entities-saved-states-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-entities-saved-states-panel-button",onClick:d,"aria-expanded":!1},(0,b.__)("Open save panel"))):(0,l.createElement)("div",{className:"edit-post-layout__toggle-publish-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-publish-panel-button",onClick:a,"aria-expanded":!1},(0,b.__)("Open publish panel"))),(0,l.createElement)(l.Fragment,null,n&&(0,l.createElement)(S.EntitiesSavedStates,{close:t}),(0,l.createElement)(Ma,{bubblesVirtually:!0}),!n&&m)}function Ia(){const{blockPatternsWithPostContentBlockType:e,postType:t}=(0,u.useSelect)((e=>{const{getPatternsByBlockTypes:t}=e(E.store),{getCurrentPostType:n}=e(S.store);return{blockPatternsWithPostContentBlockType:t("core/post-content"),postType:n()}}),[]);return(0,l.useMemo)((()=>e.filter((e=>"page"===t&&!e.postTypes||Array.isArray(e.postTypes)&&e.postTypes.includes(t)))),[t,e])}function La({onChoosePattern:e}){const t=Ia(),n=(0,f.useAsyncList)(t),{resetEditorBlocks:o}=(0,u.useDispatch)(S.store);return(0,l.createElement)(E.__experimentalBlockPatternsList,{blockPatterns:t,shownPatterns:n,onClickPattern:(t,n)=>{o(n),e()}})}const Na={INITIAL:"INITIAL",PATTERN:"PATTERN",CLOSED:"CLOSED"};function Aa(){const[e,t]=(0,l.useState)(Na.INITIAL),n=Ia().length>0,o=(0,u.useSelect)((t=>{if(!n||e!==Na.INITIAL)return!1;const{getEditedPostContent:o,isEditedPostSaveable:a}=t(S.store),{isEditingTemplate:r,isFeatureActive:l}=t(on);return!a()&&""===o()&&!r()&&!l("welcomeGuide")}),[e,n]);return(0,l.useEffect)((()=>{o&&t(Na.PATTERN)}),[o]),e===Na.INITIAL||e===Na.CLOSED?null:(0,l.createElement)(_.Modal,{className:"edit-post-start-page-options__modal",title:(0,b.__)("Choose a pattern"),isFullScreen:!0,onRequestClose:()=>{t(Na.CLOSED)}},(0,l.createElement)("div",{className:"edit-post-start-page-options__modal-content"},e===Na.PATTERN&&(0,l.createElement)(La,{onChoosePattern:()=>{t(Na.CLOSED)}})))}const{getLayoutStyles:Da}=mn(E.privateApis),Va={header:(0,b.__)("Editor top bar"),body:(0,b.__)("Editor content"),sidebar:(0,b.__)("Editor settings"),actions:(0,b.__)("Editor publish"),footer:(0,b.__)("Editor footer")};var Oa=function(){const e=(0,f.useViewportMatch)("medium","<"),t=(0,f.useViewportMatch)("huge",">="),n=(0,f.useViewportMatch)("large"),{openGeneralSidebar:o,closeGeneralSidebar:a,setIsInserterOpened:r}=(0,u.useDispatch)(on),{createErrorNotice:s}=(0,u.useDispatch)(x.store),{mode:i,isFullscreenActive:c,isRichEditingEnabled:d,sidebarIsOpened:m,hasActiveMetaboxes:p,hasFixedToolbar:g,previousShortcut:h,nextShortcut:v,hasBlockSelected:y,isInserterOpened:w,isListViewOpened:k,showIconLabels:P,isDistractionFree:T,showBlockBreadcrumbs:M,isTemplateMode:B,documentLabel:I}=(0,u.useSelect)((e=>{const{getEditorSettings:t,getPostTypeLabel:n}=e(S.store),o=t(),a=n();return{isTemplateMode:e(on).isEditingTemplate(),hasFixedToolbar:e(on).isFeatureActive("fixedToolbar"),sidebarIsOpened:!(!e(ee).getActiveComplementaryArea(on.name)&&!e(on).isPublishSidebarOpened()),isFullscreenActive:e(on).isFeatureActive("fullscreenMode"),isInserterOpened:e(on).isInserterOpened(),isListViewOpened:e(on).isListViewOpened(),mode:e(on).getEditorMode(),isRichEditingEnabled:o.richEditingEnabled,hasActiveMetaboxes:e(on).hasMetaBoxes(),previousShortcut:e(xe.store).getAllShortcutKeyCombinations("core/edit-post/previous-region"),nextShortcut:e(xe.store).getAllShortcutKeyCombinations("core/edit-post/next-region"),showIconLabels:e(on).isFeatureActive("showIconLabels"),isDistractionFree:e(on).isFeatureActive("distractionFree"),showBlockBreadcrumbs:e(on).isFeatureActive("showBlockBreadcrumbs"),documentLabel:a||(0,b._x)("Document","noun")}}),[]),N=function(){const{hasThemeStyleSupport:e,editorSettings:t}=(0,u.useSelect)((e=>({hasThemeStyleSupport:e(on).isFeatureActive("themeStyles"),editorSettings:e(S.store).getEditorSettings()})),[]);return(0,l.useMemo)((()=>{var n,o;const a=null!==(n=t.styles?.filter((e=>e.__unstableType&&"theme"!==e.__unstableType)))&&void 0!==n?n:[],r=[...t.defaultEditorStyles,...a],l=e&&a.length!==(null!==(o=t.styles?.length)&&void 0!==o?o:0);return t.disableLayoutStyles||l||r.push({css:Da({style:{},selector:"body",hasBlockGapSupport:!1,hasFallbackGapSupport:!0,fallbackGapValue:"0.5em"})}),l?t.styles:r}),[t.defaultEditorStyles,t.disableLayoutStyles,t.styles,e])}();(0,l.useEffect)((()=>{m&&!t&&r(!1)}),[m,t]),(0,l.useEffect)((()=>{w&&!t&&a()}),[w,t]);const[A,D]=(0,l.useState)(!1),V=(0,l.useCallback)((e=>{"function"==typeof A&&A(e),D(!1)}),[A]),O=L()("edit-post-layout","is-mode-"+i,{"is-sidebar-opened":m,"has-fixed-toolbar":g,"has-metaboxes":p,"show-icon-labels":P,"is-distraction-free":T&&n,"is-entity-save-view-open":!!A}),R=k?(0,b.__)("Document Overview"):(0,b.__)("Block Library");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ge,{isActive:c}),(0,l.createElement)(On,null),(0,l.createElement)(S.UnsavedChangesWarning,null),(0,l.createElement)(S.AutosaveMonitor,null),(0,l.createElement)(S.LocalAutosaveMonitor,null),(0,l.createElement)(vn,null),(0,l.createElement)(S.EditorKeyboardShortcutsRegister,null),(0,l.createElement)(ha,null),(0,l.createElement)(Ee,{isDistractionFree:T&&n,className:O,labels:{...Va,secondarySidebar:R},header:(0,l.createElement)(uo,{setEntitiesSavedStatesCallback:D}),editorNotices:(0,l.createElement)(S.EditorNotices,null),secondarySidebar:"visual"===i&&w?(0,l.createElement)(po,null):"visual"===i&&k?(0,l.createElement)(Eo,null):null,sidebar:(!e||m)&&(0,l.createElement)(l.Fragment,null,!e&&!m&&(0,l.createElement)("div",{className:"edit-post-layout__toggle-sidebar-panel"},(0,l.createElement)(_.Button,{variant:"secondary",className:"edit-post-layout__toggle-sidebar-panel-button",onClick:()=>o(y?"edit-post/block":"edit-post/document"),"aria-expanded":!1},y?(0,b.__)("Open block settings"):(0,b.__)("Open document settings"))),(0,l.createElement)(pe.Slot,{scope:"core/edit-post"})),notices:(0,l.createElement)(S.EditorSnackbars,null),content:(0,l.createElement)(l.Fragment,null,!T&&(0,l.createElement)(S.EditorNotices,null),("text"===i||!d)&&(0,l.createElement)(cn,null),d&&"visual"===i&&(0,l.createElement)(fn,{styles:N}),!T&&!B&&(0,l.createElement)("div",{className:"edit-post-layout__metaboxes"},(0,l.createElement)(sa,{location:"normal"}),(0,l.createElement)(sa,{location:"advanced"})),e&&m&&(0,l.createElement)(_.ScrollLock,null)),footer:!T&&!e&&M&&d&&"visual"===i&&(0,l.createElement)("div",{className:"edit-post-layout__footer"},(0,l.createElement)(E.BlockBreadcrumb,{rootLabelText:I})),actions:(0,l.createElement)(Ba,{closeEntitiesSavedStates:V,isEntitiesSavedStatesOpen:A,setEntitiesSavedStatesCallback:D}),shortcuts:{previous:h,next:v}}),(0,l.createElement)(Dn,null),(0,l.createElement)(Oe,null),(0,l.createElement)(fa,null),(0,l.createElement)(S.PostSyncStatusModal,null),(0,l.createElement)(Aa,null),(0,l.createElement)(_.Popover.Slot,null),(0,l.createElement)(C.PluginArea,{onError:function(e){s((0,b.sprintf)((0,b.__)('The "%s" plugin has encountered an error and cannot be rendered.'),e))}}))};const Ra=e=>{const{hasBlockSelection:t,isEditorSidebarOpened:n}=(0,u.useSelect)((e=>({hasBlockSelection:!!e(E.store).getBlockSelectionStart(),isEditorSidebarOpened:e(nn).isEditorSidebarOpened()})),[e]),{openGeneralSidebar:o}=(0,u.useDispatch)(nn);(0,l.useEffect)((()=>{n&&o(t?"edit-post/block":"edit-post/document")}),[t,n])},Fa=e=>{const{newPermalink:t}=(0,u.useSelect)((e=>({newPermalink:e(S.store).getCurrentPost().link})),[e]),n=(0,l.useRef)();(0,l.useEffect)((()=>{n.current=document.querySelector("#wp-admin-bar-preview a")||document.querySelector("#wp-admin-bar-view a")}),[e]),(0,l.useEffect)((()=>{t&&n.current&&n.current.setAttribute("href",t)}),[t])};function Ha({postId:e}){return Ra(e),Fa(e),null}var Ga=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));var Ua=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));var za=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(k.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"}));var Za=(0,l.createElement)(k.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(k.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));var $a=(0,l.createElement)(k.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(k.Path,{d:"M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z"}));const{ExperimentalEditorProvider:Wa}=mn(S.privateApis),{useCommands:qa}=mn(sn.privateApis);var ja=function({postId:e,postType:t,settings:n,initialEdits:o,...a}){qa(),function(){const{openGeneralSidebar:e,closeGeneralSidebar:t,switchEditorMode:n,setIsListViewOpened:o}=(0,u.useDispatch)(on),{openModal:a}=(0,u.useDispatch)(ee),{editorMode:r,activeSidebar:l,isListViewOpen:s}=(0,u.useSelect)((e=>{const{getEditorMode:t,isListViewOpened:n}=e(on);return{activeSidebar:e(ee).getActiveComplementaryArea(on.name),editorMode:t(),isListViewOpen:n()}}),[]),{toggle:i}=(0,u.useDispatch)(p.store);(0,ln.useCommand)({name:"core/open-settings-sidebar",label:(0,b.__)("Toggle settings sidebar"),icon:(0,b.isRTL)()?bo:fo,callback:({close:n})=>{n(),"edit-post/document"===l?t():e("edit-post/document")}}),(0,ln.useCommand)({name:"core/open-block-inspector",label:(0,b.__)("Toggle block inspector"),icon:Ga,callback:({close:n})=>{n(),"edit-post/block"===l?t():e("edit-post/block")}}),(0,ln.useCommand)({name:"core/toggle-distraction-free",label:(0,b.__)("Toggle distraction free"),icon:Ua,callback:({close:e})=>{i("core/edit-post","distractionFree"),e()}}),(0,ln.useCommand)({name:"core/toggle-spotlight-mode",label:(0,b.__)("Toggle spotlight mode"),icon:Ua,callback:({close:e})=>{i("core/edit-post","focusMode"),e()}}),(0,ln.useCommand)({name:"core/toggle-fullscreen-mode",label:(0,b.__)("Toggle fullscreen mode"),icon:za,callback:({close:e})=>{i("core/edit-post","fullscreenMode"),e()}}),(0,ln.useCommand)({name:"core/toggle-list-view",label:(0,b.__)("Toggle list view"),icon:Hn,callback:({close:e})=>{o(!s),e()}}),(0,ln.useCommand)({name:"core/toggle-top-toolbar",label:(0,b.__)("Toggle top toolbar"),icon:Ua,callback:({close:e})=>{i("core/edit-post","fixedToolbar"),e()}}),(0,ln.useCommand)({name:"core/toggle-code-editor",label:(0,b.__)("Toggle code editor"),icon:Za,callback:({close:e})=>{n("visual"===r?"text":"visual"),e()}}),(0,ln.useCommand)({name:"core/open-preferences",label:(0,b.__)("Open editor preferences"),icon:Ua,callback:()=>{a(An)}}),(0,ln.useCommand)({name:"core/open-shortcut-help",label:(0,b.__)("Open keyboard shortcuts"),icon:$a,callback:()=>{a(Ne)}})}();const{hasFixedToolbar:r,focusMode:i,isDistractionFree:c,hasInlineToolbar:d,post:m,preferredStyleVariations:g,hiddenBlockTypes:h,blockTypes:E,keepCaretInsideBlock:f,isTemplateMode:v,template:y}=(0,u.useSelect)((n=>{var o;const{isFeatureActive:a,isEditingTemplate:r,getEditedPostTemplate:l,getHiddenBlockTypes:i}=n(on),{getEntityRecord:c,getPostType:d,getEntityRecords:u,canUser:m}=n(w.store),{getEditorSettings:g}=n(S.store),{getBlockTypes:h}=n(s.store);let _;if(["wp_template","wp_template_part"].includes(t)){const n=u("postType",t,{wp_id:e});_=n?.[0]}else _=c("postType",t,e);const E=g().supportsTemplateMode,b=null!==(o=d(t)?.viewable)&&void 0!==o&&o,f=m("create","templates");return{hasFixedToolbar:a("fixedToolbar"),focusMode:a("focusMode"),isDistractionFree:a("distractionFree"),hasInlineToolbar:a("inlineToolbar"),preferredStyleVariations:n(p.store).get("core/edit-post","preferredStyleVariations"),hiddenBlockTypes:i(),blockTypes:h(),keepCaretInsideBlock:a("keepCaretInsideBlock"),isTemplateMode:r(),template:E&&b&&f?l():null,post:_}}),[t,e]),{updatePreferredStyleVariations:k,setIsInserterOpened:P}=(0,u.useDispatch)(on),C=(0,l.useMemo)((()=>{const e={...n,__experimentalPreferredStyleVariations:{value:g,onChange:k},hasFixedToolbar:r,focusMode:i,isDistractionFree:c,hasInlineToolbar:d,__experimentalSetIsInserterOpened:P,keepCaretInsideBlock:f,defaultAllowedBlockTypes:n.allowedBlockTypes};if(h.length>0){const t=!0===n.allowedBlockTypes?E.map((({name:e})=>e)):n.allowedBlockTypes||[];e.allowedBlockTypes=t.filter((e=>!h.includes(e)))}return e}),[n,r,d,i,c,h,E,g,P,k,f]);return m?(0,l.createElement)(xe.ShortcutProvider,null,(0,l.createElement)(_.SlotFillProvider,null,(0,l.createElement)(Wa,{settings:C,post:m,initialEdits:o,useSubRegistry:!1,__unstableTemplate:v?y:void 0,...a},(0,l.createElement)(S.ErrorBoundary,null,(0,l.createElement)(ln.CommandMenu,null),(0,l.createElement)(Ha,{postId:e}),(0,l.createElement)(Oa,null)),(0,l.createElement)(S.PostLockedModal,null)))):null};var Ka=({allowedBlocks:e,icon:t,label:n,onClick:o,small:a,role:r})=>(0,l.createElement)(E.BlockSettingsMenuControls,null,(({selectedBlocks:s,onClose:i})=>((e,t)=>{return!Array.isArray(t)||(n=t,0===e.filter((e=>!n.includes(e))).length);var n})(s,e)?(0,l.createElement)(_.MenuItem,{onClick:(0,f.compose)(o,i),icon:t,label:a?n:void 0,role:r},!a&&n):null)),Ya=(0,f.compose)((0,C.withPluginContext)(((e,t)=>{var n;return{as:null!==(n=t.as)&&void 0!==n?n:_.MenuItem,icon:t.icon||e.icon,name:"core/edit-post/plugin-more-menu"}})))(le);function Qa(e){return(0,l.createElement)(ie,{__unstableExplicitMenuItem:!0,scope:"core/edit-post",...e})}function Xa(e,t,n,o,a){const r=document.getElementById(e),c=(0,l.createRoot)(r);(0,u.dispatch)(p.store).setDefaults("core/edit-post",{editorMode:"visual",fixedToolbar:!1,fullscreenMode:!0,hiddenBlockTypes:[],inactivePanels:[],isPublishSidebarEnabled:!0,openPanels:["post-status"],preferredStyleVariations:{},showBlockBreadcrumbs:!0,showIconLabels:!1,showListViewByDefault:!1,themeStyles:!0,welcomeGuide:!0,welcomeGuideTemplate:!0}),(0,u.dispatch)(s.store).__experimentalReapplyBlockTypeFilters(),(0,u.select)(on).isFeatureActive("showListViewByDefault")&&!(0,u.select)(on).isFeatureActive("distractionFree")&&(0,u.dispatch)(on).setIsListViewOpened(!0),(0,i.registerCoreBlocks)(),(0,g.registerLegacyWidgetBlock)({inserter:!1}),(0,g.registerWidgetGroupBlock)({inserter:!1}),(0,m.addFilter)("blockEditor.__unstableCanInsertBlockType","removeTemplatePartsFromInserter",((e,t)=>!(!(0,u.select)(on).isEditingTemplate()&&"core/template-part"===t.name)&&e)),(0,m.addFilter)("blockEditor.__unstableCanInsertBlockType","removePostContentFromInserter",((e,t,n,{getBlockParentsByBlockName:o})=>(0,u.select)(on).isEditingTemplate()||"core/post-content"!==t.name?e:o(n,"core/query").length>0));"Standards"!==("CSS1Compat"===document.compatMode?"Standards":"Quirks")&&console.warn("Your browser is using Quirks Mode. \nThis can cause rendering issues such as blocks overlaying meta boxes in the editor. Quirks Mode can be triggered by PHP errors or HTML code appearing before the opening <!DOCTYPE html>. Try checking the raw page source or your site's PHP error log and resolving errors there, removing any HTML before the doctype, or disabling plugins.");return-1!==window.navigator.userAgent.indexOf("iPhone")&&window.addEventListener("scroll",(e=>{const t=document.getElementsByClassName("interface-interface-skeleton__body")[0];e.target===document&&(window.scrollY>100&&(t.scrollTop=t.scrollTop+window.scrollY),document.getElementsByClassName("is-mode-visual")[0]&&window.scrollTo(0,0))})),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),c.render((0,l.createElement)(ja,{settings:o,postId:n,postType:t,initialEdits:a})),c}function Ja(){d()("wp.editPost.reinitializeEditor",{since:"6.2",version:"6.3"})}}(),(window.wp=window.wp||{}).editPost=o}();
\ No newline at end of file
const {
+ cleanEmptyObject,
GlobalStylesContext,
useBlockEditingMode
-} = unlock(external_wp_blockEditor_namespaceObject.privateApis); // TODO: Temporary duplication of constant in @wordpress/block-editor. Can be
+} = unlock(external_wp_blockEditor_namespaceObject.privateApis); // Block Gap is a special case and isn't defined within the blocks
+// style properties config. We'll add it here to allow it to be pushed
+// to global styles as well.
+
+const STYLE_PROPERTY = { ...external_wp_blocks_namespaceObject.__EXPERIMENTAL_STYLE_PROPERTY,
+ blockGap: {
+ value: ['spacing', 'blockGap']
+ }
+}; // TODO: Temporary duplication of constant in @wordpress/block-editor. Can be
// removed by moving PushChangesToGlobalStylesControl to
// @wordpress/block-editor.
const STYLE_PATH_TO_CSS_VAR_INFIX = {
+ 'border.color': 'color',
'color.background': 'color',
'color.text': 'color',
'elements.link.color.text': 'color',
'elements.h6.typography.fontFamily': 'font-family',
'elements.h6.color.gradient': 'gradient',
'color.gradient': 'gradient',
+ blockGap: 'spacing',
'typography.fontSize': 'font-size',
'typography.fontFamily': 'font-family'
}; // TODO: Temporary duplication of constant in @wordpress/block-editor. Can be
// @wordpress/block-editor.
const STYLE_PATH_TO_PRESET_BLOCK_ATTRIBUTE = {
+ 'border.color': 'borderColor',
'color.background': 'backgroundColor',
'color.text': 'textColor',
'color.gradient': 'gradient',
'typography.fontFamily': 'fontFamily'
};
const SUPPORTED_STYLES = ['border', 'color', 'spacing', 'typography'];
+const flatBorderProperties = ['borderColor', 'borderWidth', 'borderStyle'];
+const sides = ['top', 'right', 'bottom', 'left'];
+
+function getBorderStyleChanges(border, presetColor, userStyle) {
+ if (!border && !presetColor) {
+ return [];
+ }
+
+ const changes = [...getFallbackBorderStyleChange('top', border, userStyle), ...getFallbackBorderStyleChange('right', border, userStyle), ...getFallbackBorderStyleChange('bottom', border, userStyle), ...getFallbackBorderStyleChange('left', border, userStyle)]; // Handle a flat border i.e. all sides the same, CSS shorthand.
+
+ const {
+ color: customColor,
+ style,
+ width
+ } = border || {};
+ const hasColorOrWidth = presetColor || customColor || width;
+
+ if (hasColorOrWidth && !style) {
+ // Global Styles need individual side configurations to overcome
+ // theme.json configurations which are per side as well.
+ sides.forEach(side => {
+ // Only add fallback border-style if global styles don't already
+ // have something set.
+ if (!userStyle?.[side]?.style) {
+ changes.push({
+ path: ['border', side, 'style'],
+ value: 'solid'
+ });
+ }
+ });
+ }
-function useChangesToPush(name, attributes) {
+ return changes;
+}
+
+function getFallbackBorderStyleChange(side, border, globalBorderStyle) {
+ if (!border?.[side] || globalBorderStyle?.[side]?.style) {
+ return [];
+ }
+
+ const {
+ color,
+ style,
+ width
+ } = border[side];
+ const hasColorOrWidth = color || width;
+
+ if (!hasColorOrWidth || style) {
+ return [];
+ }
+
+ return [{
+ path: ['border', side, 'style'],
+ value: 'solid'
+ }];
+}
+
+function useChangesToPush(name, attributes, userConfig) {
const supports = useSupportedStyles(name);
- return (0,external_wp_element_namespaceObject.useMemo)(() => supports.flatMap(key => {
- if (!external_wp_blocks_namespaceObject.__EXPERIMENTAL_STYLE_PROPERTY[key]) {
- return [];
- }
+ const blockUserConfig = userConfig?.styles?.blocks?.[name];
+ return (0,external_wp_element_namespaceObject.useMemo)(() => {
+ const changes = supports.flatMap(key => {
+ if (!STYLE_PROPERTY[key]) {
+ return [];
+ }
- const {
- value: path
- } = external_wp_blocks_namespaceObject.__EXPERIMENTAL_STYLE_PROPERTY[key];
- const presetAttributeKey = path.join('.');
- const presetAttributeValue = attributes[STYLE_PATH_TO_PRESET_BLOCK_ATTRIBUTE[presetAttributeKey]];
- const value = presetAttributeValue ? `var:preset|${STYLE_PATH_TO_CSS_VAR_INFIX[presetAttributeKey]}|${presetAttributeValue}` : (0,external_lodash_namespaceObject.get)(attributes.style, path);
- return value ? [{
- path,
- value
- }] : [];
- }), [supports, name, attributes]);
+ const {
+ value: path
+ } = STYLE_PROPERTY[key];
+ const presetAttributeKey = path.join('.');
+ const presetAttributeValue = attributes[STYLE_PATH_TO_PRESET_BLOCK_ATTRIBUTE[presetAttributeKey]];
+ const value = presetAttributeValue ? `var:preset|${STYLE_PATH_TO_CSS_VAR_INFIX[presetAttributeKey]}|${presetAttributeValue}` : (0,external_lodash_namespaceObject.get)(attributes.style, path); // Links only have a single support entry but have two element
+ // style properties, color and hover color. The following check
+ // will add the hover color to the changes if required.
+
+ if (key === 'linkColor') {
+ const linkChanges = value ? [{
+ path,
+ value
+ }] : [];
+ const hoverPath = ['elements', 'link', ':hover', 'color', 'text'];
+ const hoverValue = (0,external_lodash_namespaceObject.get)(attributes.style, hoverPath);
+
+ if (hoverValue) {
+ linkChanges.push({
+ path: hoverPath,
+ value: hoverValue
+ });
+ }
+
+ return linkChanges;
+ } // The shorthand border styles can't be mapped directly as global
+ // styles requires longhand config.
+
+
+ if (flatBorderProperties.includes(key) && value) {
+ // The shorthand config path is included to clear the block attribute.
+ const borderChanges = [{
+ path,
+ value
+ }];
+ sides.forEach(side => {
+ const currentPath = [...path];
+ currentPath.splice(-1, 0, side);
+ borderChanges.push({
+ path: currentPath,
+ value
+ });
+ });
+ return borderChanges;
+ }
+
+ return value ? [{
+ path,
+ value
+ }] : [];
+ }); // To ensure display of a visible border, global styles require a
+ // default border style if a border color or width is present.
+
+ getBorderStyleChanges(attributes.style?.border, attributes.borderColor, blockUserConfig?.border).forEach(change => changes.push(change));
+ return changes;
+ }, [supports, attributes, blockUserConfig]);
}
function cloneDeep(object) {
attributes,
setAttributes
}) {
- const changes = useChangesToPush(name, attributes);
const {
user: userConfig,
setUserConfig
} = (0,external_wp_element_namespaceObject.useContext)(GlobalStylesContext);
+ const changes = useChangesToPush(name, attributes, userConfig);
const {
__unstableMarkNextChangeAsNotPersistent
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store);
} of changes) {
(0,external_lodash_namespaceObject.set)(newBlockStyles, path, undefined);
(0,external_lodash_namespaceObject.set)(newUserConfig, ['styles', 'blocks', name, ...path], value);
- } // @wordpress/core-data doesn't support editing multiple entity types in
+ }
+
+ const newBlockAttributes = {
+ borderColor: undefined,
+ backgroundColor: undefined,
+ textColor: undefined,
+ gradient: undefined,
+ fontSize: undefined,
+ fontFamily: undefined,
+ style: cleanEmptyObject(newBlockStyles)
+ }; // @wordpress/core-data doesn't support editing multiple entity types in
// a single undo level. So for now, we disable @wordpress/core-data undo
// tracking and implement our own Undo button in the snackbar
// notification.
-
__unstableMarkNextChangeAsNotPersistent();
- setAttributes({
- style: newBlockStyles
- });
+ setAttributes(newBlockAttributes);
setUserConfig(() => newUserConfig, {
undoIgnore: true
});
onClick() {
__unstableMarkNextChangeAsNotPersistent();
- setAttributes({
- style: blockStyles
- });
+ setAttributes(attributes);
setUserConfig(() => userConfig, {
undoIgnore: true
});
}]
});
- }, [changes, attributes, userConfig, name]);
+ }, [__unstableMarkNextChangeAsNotPersistent, attributes, changes, createSuccessNotice, name, setAttributes, setUserConfig, userConfig]);
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.BaseControl, {
className: "edit-site-push-changes-to-global-styles-control",
help: (0,external_wp_i18n_namespaceObject.sprintf)( // translators: %s: Title of the block e.g. 'Heading'.
const {
GlobalStylesContext: global_styles_provider_GlobalStylesContext,
- cleanEmptyObject
+ cleanEmptyObject: global_styles_provider_cleanEmptyObject
} = unlock(external_wp_blockEditor_namespaceObject.privateApis);
function mergeBaseAndUserConfigs(base, user) {
return cjs_default()(base, user, {
};
const updatedConfig = callback(currentConfig);
editEntityRecord('root', 'globalStyles', globalStylesId, {
- styles: cleanEmptyObject(updatedConfig.styles) || {},
- settings: cleanEmptyObject(updatedConfig.settings) || {}
+ styles: global_styles_provider_cleanEmptyObject(updatedConfig.styles) || {},
+ settings: global_styles_provider_cleanEmptyObject(updatedConfig.settings) || {}
}, options);
}, [globalStylesId]);
return [isReady, config, setConfig];
spacing: 3
}, (0,external_wp_element_namespaceObject.createElement)(SidebarNavigationScreenDetailsPanelRow, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.CheckboxControl, {
className: "edit-site-sidebar-navigation-screen__input-control",
- label: "Allow comments on new posts",
- help: "Changes will apply to new posts only. Individual posts may override these settings.",
+ label: (0,external_wp_i18n_namespaceObject.__)('Allow comments on new posts'),
+ help: (0,external_wp_i18n_namespaceObject.__)('Changes will apply to new posts only. Individual posts may override these settings.'),
checked: commentsOnNewPostsValue,
onChange: setAllowCommentsOnNewPosts
}))), (0,external_wp_element_namespaceObject.createElement)(SidebarNavigationScreenDetailsPanel, {
moveBlocksDown([clientId], rootClientId);
onClose();
}
- }, (0,external_wp_i18n_namespaceObject.__)('Move down')), block.attributes?.id && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
+ }, (0,external_wp_i18n_namespaceObject.__)('Move down')), block.attributes?.type === 'page' && block.attributes?.id && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.MenuItem, {
onClick: () => {
onGoToPage(block);
onClose();
+const document_actions_typeLabels = {
+ wp_block: (0,external_wp_i18n_namespaceObject.__)('Editing pattern:'),
+ wp_navigation: (0,external_wp_i18n_namespaceObject.__)('Editing navigation menu:'),
+ wp_template: (0,external_wp_i18n_namespaceObject.__)('Editing template:'),
+ wp_template_part: (0,external_wp_i18n_namespaceObject.__)('Editing template part:')
+};
function DocumentActions() {
- const isPage = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).isPage());
+ const isPage = (0,external_wp_data_namespaceObject.useSelect)(select => select(store_store).isPage(), []);
return isPage ? (0,external_wp_element_namespaceObject.createElement)(PageDocumentActions, null) : (0,external_wp_element_namespaceObject.createElement)(TemplateDocumentActions, null);
}
className,
onBack
}) {
+ var _typeLabels$record$ty;
+
const {
isLoaded,
record,
}, (0,external_wp_i18n_namespaceObject.__)('Document not found'));
}
- const entityLabel = getEntityLabel(record.type);
let typeIcon = icon;
if (record.type === 'wp_navigation') {
onBack: onBack
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, {
as: "span"
- }, (0,external_wp_i18n_namespaceObject.sprintf)(
- /* translators: %s: the entity being edited, like "template"*/
- (0,external_wp_i18n_namespaceObject.__)('Editing %s: '), entityLabel)), getTitle());
+ }, (_typeLabels$record$ty = document_actions_typeLabels[record.type]) !== null && _typeLabels$record$ty !== void 0 ? _typeLabels$record$ty : document_actions_typeLabels.wp_template), getTitle());
}
function BaseDocumentActions({
}, external_wp_keycodes_namespaceObject.displayShortcut.primary('k'))));
}
-function getEntityLabel(entityType) {
- let label = '';
-
- switch (entityType) {
- case 'wp_navigation':
- label = 'navigation menu';
- break;
-
- case 'wp_template_part':
- label = 'template part';
- break;
-
- default:
- label = 'template';
- break;
- }
-
- return label;
-}
-
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/header-edit-mode/index.js
return (0,external_wp_element_namespaceObject.createElement)(NavigableRegion, {
className: classes,
ariaLabel: title
+ }, (0,external_wp_element_namespaceObject.createElement)("div", {
+ className: "edit-site-page-content"
}, !hideTitleFromUI && title && (0,external_wp_element_namespaceObject.createElement)(Header, {
title: title,
subTitle: subTitle,
actions: actions
- }), (0,external_wp_element_namespaceObject.createElement)("div", {
- className: "edit-site-page-content"
- }, children, (0,external_wp_element_namespaceObject.createElement)(external_wp_editor_namespaceObject.EditorSnackbars, null)));
+ }), children), (0,external_wp_element_namespaceObject.createElement)(external_wp_editor_namespaceObject.EditorSnackbars, null));
}
;// CONCATENATED MODULE: ./node_modules/@wordpress/edit-site/build-module/components/page-patterns/header.js
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
-*/!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var i=r.apply(null,n);i&&e.push(i)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)a.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},4827:function(e){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},1919:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var r={};return n.isMergeableObject(e)&&o(e).forEach((function(t){r[t]=a(e[t],n)})),o(t).forEach((function(o){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(i(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,n)(e[o],t[o],n):r[o]=a(t[o],n))})),r}function l(e,n,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=a;var i=Array.isArray(n);return i===Array.isArray(e)?i?o.arrayMerge(e,n,o):s(e,n,o):a(n,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},8981:function(e,t){var n,a,r;a=[],void 0===(r="function"==typeof(n=function(){return function e(t,n,a){var r,o,i=window,s="application/octet-stream",l=a||s,c=t,u=!n&&!a&&c,d=document.createElement("a"),m=function(e){return String(e)},p=i.Blob||i.MozBlob||i.WebKitBlob||m,_=n||"download";if(p=p.call?p.bind(i):Blob,"true"===String(this)&&(l=(c=[c,l])[0],c=c[1]),u&&u.length<2048&&(_=u.split("/").pop().split("?")[0],d.href=u,-1!==d.href.indexOf(u))){var g=new XMLHttpRequest;return g.open("GET",u,!0),g.responseType="blob",g.onload=function(t){e(t.target.response,_,s)},setTimeout((function(){g.send()}),0),g}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(c)){if(!(c.length>2096103.424&&p!==m))return navigator.msSaveBlob?navigator.msSaveBlob(E(c),_):f(c);l=(c=E(c)).type||s}else if(/([\x80-\xff])/.test(c)){for(var h=0,y=new Uint8Array(c.length),v=y.length;h<v;++h)y[h]=c.charCodeAt(h);c=new p([y],{type:l})}function E(e){for(var t=e.split(/[:;,]/),n=t[1],a=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),r=a.length,o=0,i=new Uint8Array(r);o<r;++o)i[o]=a.charCodeAt(o);return new p([i],{type:n})}function f(e,t){if("download"in d)return d.href=e,d.setAttribute("download",_),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout((function(){d.click(),document.body.removeChild(d),!0===t&&setTimeout((function(){i.URL.revokeObjectURL(d.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}if(r=c instanceof p?c:new p([c],{type:l}),navigator.msSaveBlob)return navigator.msSaveBlob(r,_);if(i.URL)f(i.URL.createObjectURL(r),!0);else{if("string"==typeof r||r.constructor===m)try{return f("data:"+l+";base64,"+i.btoa(r))}catch(e){return f("data:"+l+","+encodeURIComponent(r))}(o=new FileReader).onload=function(e){f(this.result)},o.readAsDataURL(r)}return!0}})?n.apply(t,a):n)||(e.exports=r)},9894:function(e,t,n){var a=n(4827);e.exports=function(e){var t=a(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=a(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var o=e.nodeName,i=document.createElement(o);i.innerHTML=" ","TEXTAREA"===o.toUpperCase()&&i.setAttribute("rows","1");var s=a(e,"font-size");i.style.fontSize=s,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},5372:function(e,t,n){"use strict";var a=n(9567);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){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,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},2652:function(e,t,n){e.exports=n(5372)()},9567:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5438:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&(n[a[r]]=e[a[r]])}return n};t.__esModule=!0;var s=n(9196),l=n(2652),c=n(6411),u=n(9894),d="autosize:resized",m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,a=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||a?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),a=(t.onChange,t.style),r=(t.innerRef,t.children),l=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return s.createElement("textarea",o({},l,{onChange:this.onChange,style:u?o({},a,{maxHeight:u}):a,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.any,async:l.bool},t}(s.Component);t.TextareaAutosize=s.forwardRef((function(e,t){return s.createElement(m,o({},e,{innerRef:t}))}))},773:function(e,t,n){"use strict";var a=n(5438);t.Z=a.TextareaAutosize},4793:function(e){var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","ß":"ss","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},n=Object.keys(t).join("|"),a=new RegExp(n,"g"),r=new RegExp(n,"");function o(e){return t[e]}var i=function(e){return e.replace(a,o)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i},9196:function(e){"use strict";e.exports=window.React}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};!function(){"use strict";n.r(a),n.d(a,{PluginMoreMenuItem:function(){return mp},PluginSidebar:function(){return up},PluginSidebarMoreMenuItem:function(){return dp},PluginTemplateSettingPanel:function(){return kc},initializeEditor:function(){return pp},reinitializeEditor:function(){return _p}});var e={};n.r(e),n.d(e,{closeModal:function(){return A},disableComplementaryArea:function(){return M},enableComplementaryArea:function(){return N},openModal:function(){return L},pinItem:function(){return P},setDefaultComplementaryArea:function(){return T},setFeatureDefaults:function(){return R},setFeatureValue:function(){return D},toggleFeature:function(){return B},unpinItem:function(){return I}});var t={};n.r(t),n.d(t,{getActiveComplementaryArea:function(){return F},isComplementaryAreaLoading:function(){return V},isFeatureActive:function(){return O},isItemPinned:function(){return z},isModalActive:function(){return H}});var r={};n.r(r),n.d(r,{__experimentalSetPreviewDeviceType:function(){return At},addTemplate:function(){return Vt},closeGeneralSidebar:function(){return tn},openGeneralSidebar:function(){return en},openNavigationPanelToMenu:function(){return Zt},removeTemplate:function(){return zt},revertTemplate:function(){return Jt},setEditedEntity:function(){return Gt},setEditedPostContext:function(){return $t},setHasPageContentFocus:function(){return an},setHomeTemplateId:function(){return Ut},setIsInserterOpened:function(){return Yt},setIsListViewOpened:function(){return Xt},setIsNavigationPanelOpened:function(){return qt},setIsSaveViewOpened:function(){return Qt},setNavigationMenu:function(){return Ht},setNavigationPanelActiveMenu:function(){return Wt},setPage:function(){return jt},setTemplate:function(){return Ft},setTemplatePart:function(){return Ot},switchEditorMode:function(){return nn},toggleFeature:function(){return Lt},updateSettings:function(){return Kt}});var o={};n.r(o),n.d(o,{setCanvasMode:function(){return rn},setEditorCanvasContainerView:function(){return on}});var i={};n.r(i),n.d(i,{__experimentalGetInsertionPoint:function(){return kn},__experimentalGetPreviewDeviceType:function(){return _n},__unstableGetPreference:function(){return mn},getCanUserCreateMedia:function(){return gn},getCurrentTemplateNavigationPanelSubMenu:function(){return Mn},getCurrentTemplateTemplateParts:function(){return Tn},getEditedPostContext:function(){return bn},getEditedPostId:function(){return fn},getEditedPostType:function(){return En},getEditorMode:function(){return Nn},getHomeTemplateId:function(){return vn},getNavigationPanelActiveMenu:function(){return Pn},getPage:function(){return wn},getReusableBlocks:function(){return hn},getSettings:function(){return yn},hasPageContentFocus:function(){return Dn},isFeatureActive:function(){return pn},isInserterOpened:function(){return Sn},isListViewOpened:function(){return Cn},isNavigationOpened:function(){return In},isPage:function(){return Bn},isSaveViewOpened:function(){return xn}});var s={};n.r(s),n.d(s,{getCanvasMode:function(){return Rn},getEditorCanvasContainerView:function(){return Ln}});var l=window.wp.element,c=window.wp.blocks,u=window.wp.blockLibrary,d=window.wp.data,m=window.wp.deprecated,p=n.n(m),_=window.wp.coreData,g=window.wp.editor,h=n(4403),y=n.n(h),v=window.wp.components,E=window.wp.i18n,f=window.wp.primitives;var b=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));var w=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));var S=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})),k=window.wp.viewport;var C=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),x=window.wp.preferences;const T=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),N=(e,t)=>({registry:n,dispatch:a})=>{if(!t)return;n.select(x.store).get(e,"isComplementaryAreaVisible")||n.dispatch(x.store).set(e,"isComplementaryAreaVisible",!0),a({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},M=e=>({registry:t})=>{t.select(x.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(x.store).set(e,"isComplementaryAreaVisible",!1)},P=(e,t)=>({registry:n})=>{if(!t)return;const a=n.select(x.store).get(e,"pinnedItems");!0!==a?.[t]&&n.dispatch(x.store).set(e,"pinnedItems",{...a,[t]:!0})},I=(e,t)=>({registry:n})=>{if(!t)return;const a=n.select(x.store).get(e,"pinnedItems");n.dispatch(x.store).set(e,"pinnedItems",{...a,[t]:!1})};function B(e,t){return function({registry:n}){p()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(x.store).toggle(e,t)}}function D(e,t,n){return function({registry:a}){p()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),a.dispatch(x.store).set(e,t,!!n)}}function R(e,t){return function({registry:n}){p()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(x.store).setDefaults(e,t)}}function L(e){return{type:"OPEN_MODAL",name:e}}function A(){return{type:"CLOSE_MODAL"}}const F=(0,d.createRegistrySelector)((e=>(t,n)=>{const a=e(x.store).get(n,"isComplementaryAreaVisible");if(void 0!==a)return!1===a?null:t?.complementaryAreas?.[n]})),V=(0,d.createRegistrySelector)((e=>(t,n)=>{const a=e(x.store).get(n,"isComplementaryAreaVisible"),r=t?.complementaryAreas?.[n];return a&&void 0===r})),z=(0,d.createRegistrySelector)((e=>(t,n,a)=>{var r;const o=e(x.store).get(n,"pinnedItems");return null===(r=o?.[a])||void 0===r||r})),O=(0,d.createRegistrySelector)((e=>(t,n,a)=>(p()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(x.store).get(n,a))));function H(e,t){return e.activeModal===t}var G=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:a}=t;return e[n]?e:{...e,[n]:a}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:a}=t;return{...e,[n]:a}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}});const U=(0,d.createReduxStore)("core/interface",{reducer:G,actions:e,selectors:t});(0,d.register)(U);var $=window.wp.plugins,j=(0,$.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));var W=j((function({as:e=v.Button,scope:t,identifier:n,icon:a,selectedIcon:r,name:o,...i}){const s=e,c=(0,d.useSelect)((e=>e(U).getActiveComplementaryArea(t)===n),[n]),{enableComplementaryArea:u,disableComplementaryArea:m}=(0,d.useDispatch)(U);return(0,l.createElement)(s,{icon:r&&c?r:a,onClick:()=>{c?m(t):u(t,n)},...i})}));var Z=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:a})=>{const r=(0,l.createElement)(W,{icon:C,...a});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,l.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),r),(0,l.createElement)("div",{className:y()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},t,r))};const q=()=>{};function Y({name:e,as:t=v.Button,onClick:n,...a}){return(0,l.createElement)(v.Fill,{name:e},(({onClick:e})=>(0,l.createElement)(t,{onClick:n||e?(...t)=>{(n||q)(...t),(e||q)(...t)}:void 0,...a})))}Y.Slot=function({name:e,as:t=v.ButtonGroup,fillProps:n={},bubblesVirtually:a,...r}){return(0,l.createElement)(v.Slot,{name:e,bubblesVirtually:a,fillProps:n},(e=>{if(!l.Children.toArray(e).length)return null;const n=[];l.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&n.push(t)}));const a=l.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&n.includes(e.props.__unstableTarget)?null:e));return(0,l.createElement)(t,{...r},a)}))};var K=Y;const X=({__unstableExplicitMenuItem:e,__unstableTarget:t,...n})=>(0,l.createElement)(v.MenuItem,{...n});function Q({scope:e,target:t,__unstableExplicitMenuItem:n,...a}){return(0,l.createElement)(W,{as:a=>(0,l.createElement)(K,{__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:X,name:`${e}/plugin-more-menu`,...a}),role:"menuitemcheckbox",selectedIcon:b,name:t,scope:e,...a})}function J({scope:e,...t}){return(0,l.createElement)(v.Fill,{name:`PinnedItems/${e}`,...t})}J.Slot=function({scope:e,className:t,...n}){return(0,l.createElement)(v.Slot,{name:`PinnedItems/${e}`,...n},(e=>e?.length>0&&(0,l.createElement)("div",{className:y()(t,"interface-pinned-items")},e)))};var ee=J;function te({scope:e,children:t,className:n}){return(0,l.createElement)(v.Fill,{name:`ComplementaryArea/${e}`},(0,l.createElement)("div",{className:n},t))}const ne=j((function({children:e,className:t,closeLabel:n=(0,E.__)("Close plugin"),identifier:a,header:r,headerClassName:o,icon:i,isPinnable:s=!0,panelClassName:c,scope:u,name:m,smallScreenTitle:p,title:_,toggleShortcut:g,isActiveByDefault:h,showIconLabels:f=!1}){const{isLoading:C,isActive:x,isPinned:T,activeArea:N,isSmall:M,isLarge:P}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:n,isItemPinned:r}=e(U),o=t(u);return{isLoading:n(u),isActive:o===a,isPinned:r(u,a),activeArea:o,isSmall:e(k.store).isViewportMatch("< medium"),isLarge:e(k.store).isViewportMatch("large")}}),[a,u]);!function(e,t,n,a,r){const o=(0,l.useRef)(!1),i=(0,l.useRef)(!1),{enableComplementaryArea:s,disableComplementaryArea:c}=(0,d.useDispatch)(U);(0,l.useEffect)((()=>{a&&r&&!o.current?(c(e),i.current=!0):i.current&&!r&&o.current?(i.current=!1,s(e,t)):i.current&&n&&n!==t&&(i.current=!1),r!==o.current&&(o.current=r)}),[a,r,e,t,n])}(u,a,N,x,M);const{enableComplementaryArea:I,disableComplementaryArea:B,pinItem:D,unpinItem:R}=(0,d.useDispatch)(U);return(0,l.useEffect)((()=>{h&&void 0===N&&!M?I(u,a):void 0===N&&M&&B(u,a)}),[N,h,u,a,M]),(0,l.createElement)(l.Fragment,null,s&&(0,l.createElement)(ee,{scope:u},T&&(0,l.createElement)(W,{scope:u,identifier:a,isPressed:x&&(!f||P),"aria-expanded":x,"aria-disabled":C,label:_,icon:f?b:i,showTooltip:!f,variant:f?"tertiary":void 0})),m&&s&&(0,l.createElement)(Q,{target:m,scope:u,icon:i},_),x&&(0,l.createElement)(te,{className:y()("interface-complementary-area",t),scope:u},(0,l.createElement)(Z,{className:o,closeLabel:n,onClose:()=>B(u),smallScreenTitle:p,toggleButtonProps:{label:n,shortcut:g,scope:u,identifier:a}},r||(0,l.createElement)(l.Fragment,null,(0,l.createElement)("strong",null,_),s&&(0,l.createElement)(v.Button,{className:"interface-complementary-area__pin-unpin-item",icon:T?w:S,label:T?(0,E.__)("Unpin from toolbar"):(0,E.__)("Pin to toolbar"),onClick:()=>(T?R:D)(u,a),isPressed:T,"aria-expanded":T}))),(0,l.createElement)(v.Panel,{className:c},e)))}));ne.Slot=function({scope:e,...t}){return(0,l.createElement)(v.Slot,{name:`ComplementaryArea/${e}`,...t})};var ae=ne,re=window.wp.compose;function oe({children:e,className:t,ariaLabel:n,as:a="div",...r}){return(0,l.createElement)(a,{className:y()("interface-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...r},e)}const ie={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};var se=(0,l.forwardRef)((function({isDistractionFree:e,footer:t,header:n,editorNotices:a,sidebar:r,secondarySidebar:o,notices:i,content:s,actions:c,labels:u,className:d,enableRegionNavigation:m=!0,shortcuts:p},_){const g=(0,v.__unstableUseNavigateRegions)(p);!function(e){(0,l.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const h={...{header:(0,E.__)("Header"),body:(0,E.__)("Content"),secondarySidebar:(0,E.__)("Block Library"),sidebar:(0,E.__)("Settings"),actions:(0,E.__)("Publish"),footer:(0,E.__)("Footer")},...u};return(0,l.createElement)("div",{...m?g:{},ref:(0,re.useMergeRefs)([_,m?g.ref:void 0]),className:y()(d,"interface-interface-skeleton",g.className,!!t&&"has-footer")},(0,l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!n&&(0,l.createElement)(oe,{as:v.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":h.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:ie,transition:e?{type:"tween",delay:.8}:void 0},n),e&&(0,l.createElement)("div",{className:"interface-interface-skeleton__header"},a),(0,l.createElement)("div",{className:"interface-interface-skeleton__body"},!!o&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:h.secondarySidebar},o),!!i&&(0,l.createElement)("div",{className:"interface-interface-skeleton__notices"},i),(0,l.createElement)(oe,{className:"interface-interface-skeleton__content",ariaLabel:h.body},s),!!r&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__sidebar",ariaLabel:h.sidebar},r),!!c&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__actions",ariaLabel:h.actions},c))),!!t&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__footer",ariaLabel:h.footer},t))}));var le=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function ce({as:e=v.DropdownMenu,className:t,label:n=(0,E.__)("Options"),popoverProps:a,toggleProps:r,children:o}){return(0,l.createElement)(e,{className:y()("interface-more-menu-dropdown",t),icon:le,label:n,popoverProps:{placement:"bottom-end",...a,className:y()("interface-more-menu-dropdown__content",a?.className)},toggleProps:{tooltipPosition:"bottom",...r}},(e=>o(e)))}function ue({closeModal:e,children:t}){return(0,l.createElement)(v.Modal,{className:"interface-preferences-modal",title:(0,E.__)("Preferences"),onRequestClose:e},t)}var de=function({icon:e,size:t=24,...n}){return(0,l.cloneElement)(e,{width:t,height:t,...n})};var me=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var pe=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));const _e="preferences-menu";function ge({sections:e}){const t=(0,re.useViewportMatch)("medium"),[n,a]=(0,l.useState)(_e),{tabs:r,sectionsContentMap:o}=(0,l.useMemo)((()=>{let t={tabs:[],sectionsContentMap:{}};return e.length&&(t=e.reduce(((e,{name:t,tabLabel:n,content:a})=>(e.tabs.push({name:t,title:n}),e.sectionsContentMap[t]=a,e)),{tabs:[],sectionsContentMap:{}})),t}),[e]),i=(0,l.useCallback)((e=>o[e.name]||null),[o]);let s;return s=t?(0,l.createElement)(v.TabPanel,{className:"interface-preferences__tabs",tabs:r,initialTabName:n!==_e?n:void 0,onSelect:a,orientation:"vertical"},i):(0,l.createElement)(v.__experimentalNavigatorProvider,{initialPath:"/",className:"interface-preferences__provider"},(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(v.Card,{isBorderless:!0,size:"small"},(0,l.createElement)(v.CardBody,null,(0,l.createElement)(v.__experimentalItemGroup,null,r.map((e=>(0,l.createElement)(v.__experimentalNavigatorButton,{key:e.name,path:e.name,as:v.__experimentalItem,isAction:!0},(0,l.createElement)(v.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(v.FlexItem,null,(0,l.createElement)(v.__experimentalTruncate,null,e.title)),(0,l.createElement)(v.FlexItem,null,(0,l.createElement)(de,{icon:(0,E.isRTL)()?me:pe})))))))))),e.length&&e.map((e=>(0,l.createElement)(v.__experimentalNavigatorScreen,{key:`${e.name}-menu`,path:e.name},(0,l.createElement)(v.Card,{isBorderless:!0,size:"large"},(0,l.createElement)(v.CardHeader,{isBorderless:!1,justify:"left",size:"small",gap:"6"},(0,l.createElement)(v.__experimentalNavigatorBackButton,{icon:(0,E.isRTL)()?pe:me,"aria-label":(0,E.__)("Navigate to the previous view")}),(0,l.createElement)(v.__experimentalText,{size:"16"},e.tabLabel)),(0,l.createElement)(v.CardBody,null,e.content)))))),s}var he=({description:e,title:t,children:n})=>(0,l.createElement)("fieldset",{className:"interface-preferences-modal__section"},(0,l.createElement)("legend",{className:"interface-preferences-modal__section-legend"},(0,l.createElement)("h2",{className:"interface-preferences-modal__section-title"},t),e&&(0,l.createElement)("p",{className:"interface-preferences-modal__section-description"},e)),n);var ye=function({help:e,label:t,isChecked:n,onChange:a,children:r}){return(0,l.createElement)("div",{className:"interface-preferences-modal__option"},(0,l.createElement)(v.ToggleControl,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:a}),r)},ve=window.wp.widgets,Ee=window.wp.hooks,fe=window.wp.mediaUtils;(0,Ee.addFilter)("editor.MediaUpload","core/edit-site/components/media-upload",(()=>fe.MediaUpload));var be=window.lodash,we=window.wp.blockEditor,Se=window.wp.notices,ke={grad:.9,turn:360,rad:360/(2*Math.PI)},Ce=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},xe=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Te=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Ne=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Me=function(e){return{r:Te(e.r,0,255),g:Te(e.g,0,255),b:Te(e.b,0,255),a:Te(e.a)}},Pe=function(e){return{r:xe(e.r),g:xe(e.g),b:xe(e.b),a:xe(e.a,3)}},Ie=/^#([0-9a-f]{3,8})$/i,Be=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},De=function(e){var t=e.r,n=e.g,a=e.b,r=e.a,o=Math.max(t,n,a),i=o-Math.min(t,n,a),s=i?o===t?(n-a)/i:o===n?2+(a-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:o?i/o*100:0,v:o/255*100,a:r}},Re=function(e){var t=e.h,n=e.s,a=e.v,r=e.a;t=t/360*6,n/=100,a/=100;var o=Math.floor(t),i=a*(1-n),s=a*(1-(t-o)*n),l=a*(1-(1-t+o)*n),c=o%6;return{r:255*[a,s,i,i,l,a][c],g:255*[l,a,a,s,i,i][c],b:255*[i,i,l,a,a,s][c],a:r}},Le=function(e){return{h:Ne(e.h),s:Te(e.s,0,100),l:Te(e.l,0,100),a:Te(e.a)}},Ae=function(e){return{h:xe(e.h),s:xe(e.s),l:xe(e.l),a:xe(e.a,3)}},Fe=function(e){return Re((n=(t=e).s,{h:t.h,s:(n*=((a=t.l)<50?a:100-a)/100)>0?2*n/(a+n)*100:0,v:a+n,a:t.a}));var t,n,a},Ve=function(e){return{h:(t=De(e)).h,s:(r=(200-(n=t.s))*(a=t.v)/100)>0&&r<200?n*a/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,a,r},ze=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Oe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,He=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ge=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ue={string:[[function(e){var t=Ie.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?xe(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?xe(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=He.exec(e)||Ge.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Me({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=ze.exec(e)||Oe.exec(e);if(!t)return null;var n,a,r=Le({h:(n=t[1],a=t[2],void 0===a&&(a="deg"),Number(n)*(ke[a]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Fe(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,a=e.b,r=e.a,o=void 0===r?1:r;return Ce(t)&&Ce(n)&&Ce(a)?Me({r:Number(t),g:Number(n),b:Number(a),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,a=e.l,r=e.a,o=void 0===r?1:r;if(!Ce(t)||!Ce(n)||!Ce(a))return null;var i=Le({h:Number(t),s:Number(n),l:Number(a),a:Number(o)});return Fe(i)},"hsl"],[function(e){var t=e.h,n=e.s,a=e.v,r=e.a,o=void 0===r?1:r;if(!Ce(t)||!Ce(n)||!Ce(a))return null;var i=function(e){return{h:Ne(e.h),s:Te(e.s,0,100),v:Te(e.v,0,100),a:Te(e.a)}}({h:Number(t),s:Number(n),v:Number(a),a:Number(o)});return Re(i)},"hsv"]]},$e=function(e,t){for(var n=0;n<t.length;n++){var a=t[n][0](e);if(a)return[a,t[n][1]]}return[null,void 0]},je=function(e){return"string"==typeof e?$e(e.trim(),Ue.string):"object"==typeof e&&null!==e?$e(e,Ue.object):[null,void 0]},We=function(e,t){var n=Ve(e);return{h:n.h,s:Te(n.s+100*t,0,100),l:n.l,a:n.a}},Ze=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},qe=function(e,t){var n=Ve(e);return{h:n.h,s:n.s,l:Te(n.l+100*t,0,100),a:n.a}},Ye=function(){function e(e){this.parsed=je(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return xe(Ze(this.rgba),2)},e.prototype.isDark=function(){return Ze(this.rgba)<.5},e.prototype.isLight=function(){return Ze(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Pe(this.rgba)).r,n=e.g,a=e.b,o=(r=e.a)<1?Be(xe(255*r)):"","#"+Be(t)+Be(n)+Be(a)+o;var e,t,n,a,r,o},e.prototype.toRgb=function(){return Pe(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Pe(this.rgba)).r,n=e.g,a=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+a+", "+r+")":"rgb("+t+", "+n+", "+a+")";var e,t,n,a,r},e.prototype.toHsl=function(){return Ae(Ve(this.rgba))},e.prototype.toHslString=function(){return t=(e=Ae(Ve(this.rgba))).h,n=e.s,a=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+a+"%, "+r+")":"hsl("+t+", "+n+"%, "+a+"%)";var e,t,n,a,r},e.prototype.toHsv=function(){return e=De(this.rgba),{h:xe(e.h),s:xe(e.s),v:xe(e.v),a:xe(e.a,3)};var e},e.prototype.invert=function(){return Ke({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Ke(We(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Ke(We(this.rgba,-e))},e.prototype.grayscale=function(){return Ke(We(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Ke(qe(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Ke(qe(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Ke({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):xe(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Ve(this.rgba);return"number"==typeof e?Ke({h:e,s:t.s,l:t.l,a:t.a}):xe(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Ke(e).toHex()},e}(),Ke=function(e){return e instanceof Ye?e:new Ye(e)},Xe=[],Qe=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Je=function(e){return.2126*Qe(e.r)+.7152*Qe(e.g)+.0722*Qe(e.b)};var et=window.wp.privateApis;const{lock:tt,unlock:nt}=(0,et.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/edit-site"),{useGlobalSetting:at}=nt(we.privateApis);!function(e){e.forEach((function(e){Xe.indexOf(e)<0&&(e(Ye,Ue),Xe.push(e))}))}([function(e){e.prototype.luminance=function(){return e=Je(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,a,r,o,i,s,l,c=t instanceof e?t:new e(t);return o=this.rgba,i=c.toRgb(),n=(s=Je(o))>(l=Je(i))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(a=2)&&(a=0),void 0===r&&(r=Math.pow(10,a)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(o=(n=t).size)?"normal":o,"AAA"===(r=void 0===(a=n.level)?"AA":a)&&"normal"===i?7:"AA"===r&&"large"===i?3:4.5);var n,a,r,o,i}}]);const{GlobalStylesContext:rt,useBlockEditingMode:ot}=nt(we.privateApis),it={"color.background":"color","color.text":"color","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.caption.color.text":"color","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient","typography.fontSize":"font-size","typography.fontFamily":"font-family"},st={"color.background":"backgroundColor","color.text":"textColor","color.gradient":"gradient","typography.fontSize":"fontSize","typography.fontFamily":"fontFamily"},lt=["border","color","spacing","typography"];function ct(e,t){const n=function(e,t){const{supportedPanels:n}=(0,d.useSelect)((n=>({supportedPanels:nt(n(c.store)).getSupportedStyles(e,t)})),[e,t]);return n}(e);return(0,l.useMemo)((()=>n.flatMap((e=>{if(!c.__EXPERIMENTAL_STYLE_PROPERTY[e])return[];const{value:n}=c.__EXPERIMENTAL_STYLE_PROPERTY[e],a=n.join("."),r=t[st[a]],o=r?`var:preset|${it[a]}|${r}`:(0,be.get)(t.style,n);return o?[{path:n,value:o}]:[]}))),[n,e,t])}function ut(e){return e?JSON.parse(JSON.stringify(e)):{}}function dt({name:e,attributes:t,setAttributes:n}){const a=ct(e,t),{user:r,setUserConfig:o}=(0,l.useContext)(rt),{__unstableMarkNextChangeAsNotPersistent:i}=(0,d.useDispatch)(we.store),{createSuccessNotice:s}=(0,d.useDispatch)(Se.store),u=(0,l.useCallback)((()=>{if(0===a.length)return;const{style:l}=t,u=ut(l),d=ut(r);for(const{path:t,value:n}of a)(0,be.set)(u,t,void 0),(0,be.set)(d,["styles","blocks",e,...t],n);i(),n({style:u}),o((()=>d),{undoIgnore:!0}),s((0,E.sprintf)((0,E.__)("%s styles applied."),(0,c.getBlockType)(e).title),{type:"snackbar",actions:[{label:(0,E.__)("Undo"),onClick(){i(),n({style:l}),o((()=>r),{undoIgnore:!0})}}]})}),[a,t,r,e]);return(0,l.createElement)(v.BaseControl,{className:"edit-site-push-changes-to-global-styles-control",help:(0,E.sprintf)((0,E.__)("Apply this block’s typography, spacing, dimensions, and color styles to all %s blocks."),(0,c.getBlockType)(e).title)},(0,l.createElement)(v.BaseControl.VisualLabel,null,(0,E.__)("Styles")),(0,l.createElement)(v.Button,{variant:"primary",disabled:0===a.length,onClick:u},(0,E.__)("Apply globally")))}const mt=(0,re.createHigherOrderComponent)((e=>t=>{const n=ot(),a=lt.some((e=>(0,c.hasBlockSupport)(t.name,e)));return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),"default"===n&&a&&(0,l.createElement)(we.InspectorAdvancedControls,null,(0,l.createElement)(dt,{...t})))}));(0,Ee.addFilter)("editor.BlockEdit","core/edit-site/push-changes-to-global-styles",mt);var pt=window.wp.router,_t=window.wp.url;function gt(){return void 0!==(0,_t.getQueryArg)(window.location.href,"wp_theme_preview")}function ht(){return gt()?(0,_t.getQueryArg)(window.location.href,"wp_theme_preview"):null}const{useHistory:yt}=nt(pt.privateApis);function vt(e={},t,n=!1){const a=yt();const r=(0,_t.getQueryArgs)(window.location.href),o=(0,_t.removeQueryArgs)(window.location.href,...Object.keys(r));gt()&&(e={...e,wp_theme_preview:ht()});return{href:(0,_t.addQueryArgs)(o,e),onClick:function(r){r.preventDefault(),n?a.replace(e,t):a.push(e,t)}}}function Et({params:e={},state:t,replace:n=!1,children:a,...r}){const{href:o,onClick:i}=vt(e,t,n);return(0,l.createElement)("a",{href:o,onClick:i,...r},a)}const{useLocation:ft}=nt(pt.privateApis);function bt({attributes:e}){const{theme:t,slug:n}=e,{params:a}=ft(),r=(0,d.useSelect)((e=>e(_.store).getEntityRecord("postType","wp_template_part",`${t}//${n}`)),[t,n]),o=vt({postId:r?.id,postType:r?.type,canvas:"edit"},{fromTemplateId:a.postId});return r?(0,l.createElement)(we.BlockControls,{group:"other"},(0,l.createElement)(v.ToolbarButton,{...o,onClick:e=>{o.onClick(e)}},(0,E.__)("Edit"))):null}const wt=(0,re.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:a}=t,r="core/template-part"===a&&n.slug;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),r&&(0,l.createElement)(bt,{attributes:n}))}),"withEditBlockControls");(0,Ee.addFilter)("editor.BlockEdit","core/edit-site/template-part-edit-button",wt);const{useLocation:St}=nt(pt.privateApis),{useBlockEditingMode:kt}=nt(we.privateApis);function Ct({attributes:e}){const{ref:t}=e,{params:n}=St(),a=kt(),r=(0,d.useSelect)((e=>e(_.store).getEntityRecord("postType","wp_navigation",t)),[t]),o=vt({postId:r?.id,postType:r?.type,canvas:"edit"},{fromTemplateId:n.postId});return r&&"default"===a?(0,l.createElement)(we.BlockControls,{group:"other"},(0,l.createElement)(v.ToolbarButton,{...o,onClick:e=>{o.onClick(e)}},(0,E.__)("Edit"))):null}const xt=(0,re.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:a}=t,r="core/navigation"===a&&n.ref;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),r&&(0,l.createElement)(Ct,{attributes:n}))}),"withEditBlockControls");(0,Ee.addFilter)("editor.BlockEdit","core/edit-site/navigation-edit-button",xt);var Tt=(0,d.combineReducers)({deviceType:function(e="Desktop",t){return"SET_PREVIEW_DEVICE_TYPE"===t.type?t.deviceType:e},settings:function(e={},t){return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},editedPost:function(e={},t){switch(t.type){case"SET_EDITED_POST":return{postType:t.postType,id:t.id,context:t.context};case"SET_EDITED_POST_CONTEXT":return{...e,context:t.context}}return e},blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value;case"SET_CANVAS_MODE":return!1}return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen;case"SET_CANVAS_MODE":return!1}return e},saveViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_SAVE_VIEW_OPENED":return t.isOpen;case"SET_CANVAS_MODE":return!1}return e},canvasMode:function(e="init",t){return"SET_CANVAS_MODE"===t.type?t.mode:e},editorCanvasContainerView:function(e=void 0,t){return"SET_EDITOR_CANVAS_CONTAINER_VIEW"===t.type?t.view:e},hasPageContentFocus:function(e=!1,t){switch(t.type){case"SET_EDITED_POST":return!!t.context?.postId;case"SET_HAS_PAGE_CONTENT_FOCUS":return t.hasPageContentFocus}return e}}),Nt=window.wp.apiFetch,Mt=n.n(Nt),Pt=window.wp.a11y,It=window.wp.htmlEntities;const Bt="core/edit-site",Dt="uncategorized";function Rt(e){return!!e&&("custom"===e?.source&&e?.has_theme_file)}function Lt(e){return function({registry:t}){p()("select( 'core/edit-site' ).toggleFeature( featureName )",{since:"6.0",alternative:"select( 'core/preferences').toggle( 'core/edit-site', featureName )"}),t.dispatch(x.store).toggle("core/edit-site",e)}}function At(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}const Ft=(e,t)=>async({dispatch:n,registry:a})=>{if(!t)try{const n=await a.resolveSelect(_.store).getEntityRecord("postType","wp_template",e);t=n?.slug}catch(e){}n({type:"SET_EDITED_POST",postType:"wp_template",id:e,context:{templateSlug:t}})},Vt=e=>async({dispatch:t,registry:n})=>{const a=await n.dispatch(_.store).saveEntityRecord("postType","wp_template",e);e.content&&n.dispatch(_.store).editEntityRecord("postType","wp_template",a.id,{blocks:(0,c.parse)(e.content)},{undoIgnore:!0}),t({type:"SET_EDITED_POST",postType:"wp_template",id:a.id,context:{templateSlug:a.slug}})},zt=e=>async({registry:t})=>{try{await t.dispatch(_.store).deleteEntityRecord("postType",e.type,e.id,{force:!0});const n=t.select(_.store).getLastEntityDeleteError("postType",e.type,e.id);if(n)throw n;const a="string"==typeof e.title?e.title:e.title?.rendered;t.dispatch(Se.store).createSuccessNotice((0,E.sprintf)((0,E.__)('"%s" deleted.'),(0,It.decodeEntities)(a)),{type:"snackbar",id:"site-editor-template-deleted-success"})}catch(e){const n=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while deleting the template.");t.dispatch(Se.store).createErrorNotice(n,{type:"snackbar"})}};function Ot(e){return{type:"SET_EDITED_POST",postType:"wp_template_part",id:e}}function Ht(e){return{type:"SET_EDITED_POST",postType:"wp_navigation",id:e}}function Gt(e,t){return{type:"SET_EDITED_POST",postType:e,id:t}}function Ut(){return p()("dispatch( 'core/edit-site' ).setHomeTemplateId",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function $t(e){return{type:"SET_EDITED_POST_CONTEXT",context:e}}const jt=e=>async({dispatch:t,registry:n})=>{if(!e.path&&e.context?.postId){const t=await n.resolveSelect(_.store).getEntityRecord("postType",e.context.postType||"post",e.context.postId);e.path=(0,_t.getPathAndQueryString)(t?.link)}const a=await n.resolveSelect(_.store).__experimentalGetTemplateForLink(e.path);if(a)return t({type:"SET_EDITED_POST",postType:"wp_template",id:a.id,context:{...e.context,templateSlug:a.slug}}),a.id};function Wt(){return p()("dispatch( 'core/edit-site' ).setNavigationPanelActiveMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function Zt(){return p()("dispatch( 'core/edit-site' ).openNavigationPanelToMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function qt(){return p()("dispatch( 'core/edit-site' ).setIsNavigationPanelOpened",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function Yt(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function Kt(e){return{type:"UPDATE_SETTINGS",settings:e}}function Xt(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}function Qt(e){return{type:"SET_IS_SAVE_VIEW_OPENED",isOpen:e}}const Jt=(e,{allowUndo:t=!0}={})=>async({registry:n})=>{const a="edit-site-template-reverted";if(n.dispatch(Se.store).removeNotice(a),Rt(e))try{const r=n.select(_.store).getEntityConfig("postType",e.type);if(!r)return void n.dispatch(Se.store).createErrorNotice((0,E.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const o=(0,_t.addQueryArgs)(`${r.baseURL}/${e.id}`,{context:"edit",source:"theme"}),i=await Mt()({path:o});if(!i)return void n.dispatch(Se.store).createErrorNotice((0,E.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const s=({blocks:e=[]})=>(0,c.__unstableSerializeAndClean)(e),l=n.select(_.store).getEditedEntityRecord("postType",e.type,e.id);n.dispatch(_.store).editEntityRecord("postType",e.type,e.id,{content:s,blocks:l.blocks,source:"custom"},{undoIgnore:!0});const u=(0,c.parse)(i?.content?.raw);if(n.dispatch(_.store).editEntityRecord("postType",e.type,i.id,{content:s,blocks:u,source:"theme"}),t){const t=()=>{n.dispatch(_.store).editEntityRecord("postType",e.type,l.id,{content:s,blocks:l.blocks,source:"custom"})};n.dispatch(Se.store).createSuccessNotice((0,E.__)("Template reverted."),{type:"snackbar",id:a,actions:[{label:(0,E.__)("Undo"),onClick:t}]})}}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("Template revert failed. Please reload.");n.dispatch(Se.store).createErrorNotice(t,{type:"snackbar"})}else n.dispatch(Se.store).createErrorNotice((0,E.__)("This template is not revertable."),{type:"snackbar"})},en=e=>({registry:t})=>{t.dispatch(U).enableComplementaryArea(Bt,e)},tn=()=>({registry:e})=>{e.dispatch(U).disableComplementaryArea(Bt)},nn=e=>({registry:t})=>{t.dispatch("core/preferences").set("core/edit-site","editorMode",e),"visual"!==e&&t.dispatch(we.store).clearSelectedBlock(),"visual"===e?(0,Pt.speak)((0,E.__)("Visual editor selected"),"assertive"):"text"===e&&(0,Pt.speak)((0,E.__)("Code editor selected"),"assertive")},an=e=>({dispatch:t,registry:n})=>{e&&n.dispatch(we.store).clearSelectedBlock(),t({type:"SET_HAS_PAGE_CONTENT_FOCUS",hasPageContentFocus:e})},rn=e=>({registry:t,dispatch:n,select:a})=>{t.dispatch(we.store).__unstableSetEditorMode("edit"),n({type:"SET_CANVAS_MODE",mode:e}),"edit"===e&&t.select(x.store).get("core/edit-site","showListViewByDefault")&&!t.select(x.store).get("core/edit-site","distractionFree")&&n.setIsListViewOpened(!0),"view"===e&&a.isPage()&&n.setHasPageContentFocus(!0)},on=e=>({dispatch:t})=>{t({type:"SET_EDITOR_CANVAS_CONTAINER_VIEW",view:e})};var sn={};function ln(e){return[e]}function cn(e,t,n){var a;if(e.length!==t.length)return!1;for(a=n;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}const un=[];const dn=function(e,t){var n,a,r=0;function o(){var o,i,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<l;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==n&&(s===a&&(a=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(o=new Array(l),i=0;i<l;i++)o[i]=arguments[i];return s={args:o,val:e.apply(null,o)},n?(n.prev=s,s.next=n):a=s,r===t.maxSize?(a=a.prev).next=null:r++,n=s,s.val}return t=t||{},o.clear=function(){n=null,a=null,r=0},o}((function(e=un,t){const n=t?t.reduce(((e,t)=>({...e,[t.id]:t})),{}):{},a=[],r=[...e];for(;r.length;){const{innerBlocks:e,...t}=r.shift();if(r.unshift(...e),(0,c.isTemplatePart)(t)){const{attributes:{theme:e,slug:r}}=t,o=n[`${e}//${r}`];o&&a.push({templatePart:o,block:t})}}return a})),mn=(0,d.createRegistrySelector)((e=>(t,n)=>e(x.store).get("core/edit-site",n)));function pn(e,t){return p()("select( 'core/edit-site' ).isFeatureActive",{since:"6.0",alternative:"select( 'core/preferences' ).get"}),!!mn(e,t)}function _n(e){return e.deviceType}const gn=(0,d.createRegistrySelector)((e=>()=>e(_.store).canUser("create","media"))),hn=(0,d.createRegistrySelector)((e=>()=>"web"===l.Platform.OS?e(_.store).getEntityRecords("postType","wp_block",{per_page:-1}):[])),yn=function(e,t){var n,a=t||ln;function r(){n=new WeakMap}function o(){var t,r,o,i,s,l=arguments.length;for(i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];for(t=function(e){var t,a,r,o,i,s=n,l=!0;for(t=0;t<e.length;t++){if(!(i=a=e[t])||"object"!=typeof i){l=!1;break}s.has(a)?s=s.get(a):(r=new WeakMap,s.set(a,r),s=r)}return s.has(sn)||((o=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=l,s.set(sn,o)),s.get(sn)}(s=a.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!cn(s,t.lastDependants,0)&&t.clear(),t.lastDependants=s),r=t.head;r;){if(cn(r.args,i,1))return r!==t.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=t.head,r.prev=null,t.head.prev=r,t.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,t.head&&(t.head.prev=r,r.next=t.head),t.head=r,r.val}return o.getDependants=a,o.clear=r,r(),o}(((e,t)=>{const n={...e.settings,outlineMode:!0,focusMode:!!mn(e,"focusMode"),isDistractionFree:!!mn(e,"distractionFree"),hasFixedToolbar:!!mn(e,"fixedToolbar"),keepCaretInsideBlock:!!mn(e,"keepCaretInsideBlock"),showIconLabels:!!mn(e,"showIconLabels"),__experimentalSetIsInserterOpened:t,__experimentalReusableBlocks:hn(e),__experimentalPreferPatternsOnRoot:"wp_template"===En(e)};return gn(e)?(n.mediaUpload=({onError:t,...n})=>{(0,fe.uploadMedia)({wpAllowedMimeTypes:e.settings.allowedMimeTypes,onError:({message:e})=>t(e),...n})},n):n}),(e=>[gn(e),e.settings,mn(e,"focusMode"),mn(e,"distractionFree"),mn(e,"fixedToolbar"),mn(e,"keepCaretInsideBlock"),mn(e,"showIconLabels"),hn(e),En(e)]));function vn(){p()("select( 'core/edit-site' ).getHomeTemplateId",{since:"6.2",version:"6.4"})}function En(e){return e.editedPost.postType}function fn(e){return e.editedPost.id}function bn(e){return e.editedPost.context}function wn(e){return{context:e.editedPost.context}}function Sn(e){return!!e.blockInserterPanel}const kn=(0,d.createRegistrySelector)((e=>t=>{if("object"==typeof t.blockInserterPanel){const{rootClientId:e,insertionIndex:n,filterValue:a}=t.blockInserterPanel;return{rootClientId:e,insertionIndex:n,filterValue:a}}if(Dn(t)){const[t]=e(we.store).__experimentalGetGlobalBlocksByName("core/post-content");if(t)return{rootClientId:t,insertionIndex:void 0,filterValue:void 0}}return{rootClientId:void 0,insertionIndex:void 0,filterValue:void 0}}));function Cn(e){return e.listViewPanel}function xn(e){return e.saveViewPanel}const Tn=(0,d.createRegistrySelector)((e=>t=>{const n=En(t),a=fn(t),r=e(_.store).getEditedEntityRecord("postType",n,a),o=e(_.store).getEntityRecords("postType","wp_template_part",{per_page:-1});return dn(r.blocks,o)}));function Nn(e){return mn(e,"editorMode")}function Mn(){p()("dispatch( 'core/edit-site' ).getCurrentTemplateNavigationPanelSubMenu",{since:"6.2",version:"6.4"})}function Pn(){p()("dispatch( 'core/edit-site' ).getNavigationPanelActiveMenu",{since:"6.2",version:"6.4"})}function In(){p()("dispatch( 'core/edit-site' ).isNavigationOpened",{since:"6.2",version:"6.4"})}function Bn(e){return!!e.editedPost.context?.postId}function Dn(e){return!!Bn(e)&&e.hasPageContentFocus}function Rn(e){return e.canvasMode}function Ln(e){return e.editorCanvasContainerView}const An={reducer:Tt,actions:r,selectors:i},Fn=(0,d.createReduxStore)(Bt,An);(0,d.register)(Fn),nt(Fn).registerPrivateSelectors(s),nt(Fn).registerPrivateActions(o);var Vn=window.wp.keyboardShortcuts,zn=window.wp.commands,On=window.wp.coreCommands;var Hn=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"}));var Gn=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));var Un=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var $n=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var jn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function Wn(e){return(0,l.createElement)(v.Button,{...e,className:y()("edit-site-sidebar-button",e.className)})}const{useLocation:Zn}=nt(pt.privateApis);function qn({isRoot:e,title:t,actions:n,meta:a,content:r,footer:o,description:i,backPath:s}){const{dashboardLink:c}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Fn));return{dashboardLink:t().__experimentalDashboardLink}}),[]),{getTheme:u}=(0,d.useSelect)(_.store),m=Zn(),p=(0,v.__experimentalUseNavigator)(),g=u(ht()),h=(0,E.isRTL)()?pe:me;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalVStack,{className:y()("edit-site-sidebar-navigation-screen__main",{"has-footer":!!o}),spacing:0,justify:"flex-start"},(0,l.createElement)(v.__experimentalHStack,{spacing:4,alignment:"flex-start",className:"edit-site-sidebar-navigation-screen__title-icon"},!e&&(0,l.createElement)(Wn,{onClick:()=>{const e=null!=s?s:m.state?.backPath;e?p.goTo(e,{isBack:!0}):p.goToParent()},icon:h,label:(0,E.__)("Back"),showTooltip:!1}),e&&(0,l.createElement)(Wn,{icon:h,label:gt()?(0,E.__)("Go back to the theme showcase"):(0,E.__)("Go to the Dashboard"),href:gt()?"themes.php":c||"index.php"}),(0,l.createElement)(v.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen__title",color:"#e0e0e0",level:1,size:20},gt()?(0,E.sprintf)("Previewing %1$s: %2$s",g?.name?.rendered,t):t),n&&(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__actions"},n)),a&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__meta"},a)),(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__content"},i&&(0,l.createElement)("p",{className:"edit-site-sidebar-navigation-screen__description"},i),r)),o&&(0,l.createElement)("footer",{className:"edit-site-sidebar-navigation-screen__footer"},o))}var Yn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));var Kn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));function Xn({className:e,icon:t,withChevron:n=!1,suffix:a,children:r,...o}){return(0,l.createElement)(v.__experimentalItem,{className:y()("edit-site-sidebar-navigation-item",{"with-suffix":!n&&a},e),...o},(0,l.createElement)(v.__experimentalHStack,{justify:"flex-start"},t&&(0,l.createElement)(de,{style:{fill:"currentcolor"},icon:t,size:24}),(0,l.createElement)(v.FlexBlock,null,r),n&&(0,l.createElement)(de,{icon:(0,E.isRTL)()?Yn:Kn,className:"edit-site-sidebar-navigation-item__drilldown-indicator",size:24}),!n&&a))}var Qn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"}));var Jn=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"}));var ea=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),ta=ea,na=window.wp.date,aa=window.wp.keycodes,ra=n(1919),oa=n.n(ra);
+*/!function(){"use strict";var a={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var i=r.apply(null,n);i&&e.push(i)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)a.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},4827:function(e){e.exports=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}},1919:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function i(e,t){try{return t in e}catch(e){return!1}}function s(e,t,n){var r={};return n.isMergeableObject(e)&&o(e).forEach((function(t){r[t]=a(e[t],n)})),o(t).forEach((function(o){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(i(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}(o,n)(e[o],t[o],n):r[o]=a(t[o],n))})),r}function l(e,n,o){(o=o||{}).arrayMerge=o.arrayMerge||r,o.isMergeableObject=o.isMergeableObject||t,o.cloneUnlessOtherwiseSpecified=a;var i=Array.isArray(n);return i===Array.isArray(e)?i?o.arrayMerge(e,n,o):s(e,n,o):a(n,o)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var c=l;e.exports=c},8981:function(e,t){var n,a,r;a=[],void 0===(r="function"==typeof(n=function(){return function e(t,n,a){var r,o,i=window,s="application/octet-stream",l=a||s,c=t,u=!n&&!a&&c,d=document.createElement("a"),m=function(e){return String(e)},p=i.Blob||i.MozBlob||i.WebKitBlob||m,_=n||"download";if(p=p.call?p.bind(i):Blob,"true"===String(this)&&(l=(c=[c,l])[0],c=c[1]),u&&u.length<2048&&(_=u.split("/").pop().split("?")[0],d.href=u,-1!==d.href.indexOf(u))){var g=new XMLHttpRequest;return g.open("GET",u,!0),g.responseType="blob",g.onload=function(t){e(t.target.response,_,s)},setTimeout((function(){g.send()}),0),g}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(c)){if(!(c.length>2096103.424&&p!==m))return navigator.msSaveBlob?navigator.msSaveBlob(E(c),_):f(c);l=(c=E(c)).type||s}else if(/([\x80-\xff])/.test(c)){for(var h=0,y=new Uint8Array(c.length),v=y.length;h<v;++h)y[h]=c.charCodeAt(h);c=new p([y],{type:l})}function E(e){for(var t=e.split(/[:;,]/),n=t[1],a=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),r=a.length,o=0,i=new Uint8Array(r);o<r;++o)i[o]=a.charCodeAt(o);return new p([i],{type:n})}function f(e,t){if("download"in d)return d.href=e,d.setAttribute("download",_),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout((function(){d.click(),document.body.removeChild(d),!0===t&&setTimeout((function(){i.URL.revokeObjectURL(d.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}if(r=c instanceof p?c:new p([c],{type:l}),navigator.msSaveBlob)return navigator.msSaveBlob(r,_);if(i.URL)f(i.URL.createObjectURL(r),!0);else{if("string"==typeof r||r.constructor===m)try{return f("data:"+l+";base64,"+i.btoa(r))}catch(e){return f("data:"+l+","+encodeURIComponent(r))}(o=new FileReader).onload=function(e){f(this.result)},o.readAsDataURL(r)}return!0}})?n.apply(t,a):n)||(e.exports=r)},9894:function(e,t,n){var a=n(4827);e.exports=function(e){var t=a(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",t=a(e,"line-height"),n=parseFloat(t,10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var o=e.nodeName,i=document.createElement(o);i.innerHTML=" ","TEXTAREA"===o.toUpperCase()&&i.setAttribute("rows","1");var s=a(e,"font-size");i.style.fontSize=s,i.style.padding="0px",i.style.border="0px";var l=document.body;l.appendChild(i),n=i.offsetHeight,l.removeChild(i)}return n}},5372:function(e,t,n){"use strict";var a=n(9567);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){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,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},2652:function(e,t,n){e.exports=n(5372)()},9567:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5438:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&(n[a[r]]=e[a[r]])}return n};t.__esModule=!0;var s=n(9196),l=n(2652),c=n(6411),u=n(9894),d="autosize:resized",m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:u(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,a=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||a?setTimeout((function(){return e.textarea&&c(e.textarea)})):this.textarea&&c(this.textarea),this.textarea&&this.textarea.addEventListener(d,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(d,this.onResize),c.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props,n=(t.onResize,t.maxRows),a=(t.onChange,t.style),r=(t.innerRef,t.children),l=i(t,["onResize","maxRows","onChange","style","innerRef","children"]),c=this.state.lineHeight,u=n&&c?c*n:null;return s.createElement("textarea",o({},l,{onChange:this.onChange,style:u?o({},a,{maxHeight:u}):a,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),r)},t.prototype.componentDidUpdate=function(){this.textarea&&c.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:l.number,maxRows:l.number,onResize:l.func,innerRef:l.any,async:l.bool},t}(s.Component);t.TextareaAutosize=s.forwardRef((function(e,t){return s.createElement(m,o({},e,{innerRef:t}))}))},773:function(e,t,n){"use strict";var a=n(5438);t.Z=a.TextareaAutosize},4793:function(e){var t={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ấ":"A","Ắ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Æ":"AE","Ầ":"A","Ằ":"A","Ȃ":"A","Ç":"C","Ḉ":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ế":"E","Ḗ":"E","Ề":"E","Ḕ":"E","Ḝ":"E","Ȇ":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ḯ":"I","Ȋ":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ố":"O","Ṍ":"O","Ṓ":"O","Ȏ":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ấ":"a","ắ":"a","ẳ":"a","ẵ":"a","ặ":"a","æ":"ae","ầ":"a","ằ":"a","ȃ":"a","ç":"c","ḉ":"c","è":"e","é":"e","ê":"e","ë":"e","ế":"e","ḗ":"e","ề":"e","ḕ":"e","ḝ":"e","ȇ":"e","ì":"i","í":"i","î":"i","ï":"i","ḯ":"i","ȋ":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ố":"o","ṍ":"o","ṓ":"o","ȏ":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","C̆":"C","c̆":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","Ǵ":"G","ĝ":"g","ǵ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ḫ":"H","ḫ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","Ḱ":"K","ḱ":"k","K̆":"K","k̆":"k","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"l","ł":"l","Ḿ":"M","ḿ":"m","M̆":"M","m̆":"m","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","N̆":"N","n̆":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","P̆":"P","p̆":"p","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","R̆":"R","r̆":"r","Ȓ":"R","ȓ":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","Ș":"S","ș":"s","ş":"s","Š":"S","š":"s","ß":"ss","Ţ":"T","ţ":"t","ț":"t","Ț":"T","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","T̆":"T","t̆":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ȗ":"U","ȗ":"u","V̆":"V","v̆":"v","Ŵ":"W","ŵ":"w","Ẃ":"W","ẃ":"w","X̆":"X","x̆":"x","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Y̆":"Y","y̆":"y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","Ứ":"U","ứ":"u","Ṹ":"U","ṹ":"u","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Þ":"TH","þ":"th","Ṕ":"P","ṕ":"p","Ṥ":"S","ṥ":"s","X́":"X","x́":"x","Ѓ":"Г","ѓ":"г","Ќ":"К","ќ":"к","A̋":"A","a̋":"a","E̋":"E","e̋":"e","I̋":"I","i̋":"i","Ǹ":"N","ǹ":"n","Ồ":"O","ồ":"o","Ṑ":"O","ṑ":"o","Ừ":"U","ừ":"u","Ẁ":"W","ẁ":"w","Ỳ":"Y","ỳ":"y","Ȁ":"A","ȁ":"a","Ȅ":"E","ȅ":"e","Ȉ":"I","ȉ":"i","Ȍ":"O","ȍ":"o","Ȑ":"R","ȑ":"r","Ȕ":"U","ȕ":"u","B̌":"B","b̌":"b","Č̣":"C","č̣":"c","Ê̌":"E","ê̌":"e","F̌":"F","f̌":"f","Ǧ":"G","ǧ":"g","Ȟ":"H","ȟ":"h","J̌":"J","ǰ":"j","Ǩ":"K","ǩ":"k","M̌":"M","m̌":"m","P̌":"P","p̌":"p","Q̌":"Q","q̌":"q","Ř̩":"R","ř̩":"r","Ṧ":"S","ṧ":"s","V̌":"V","v̌":"v","W̌":"W","w̌":"w","X̌":"X","x̌":"x","Y̌":"Y","y̌":"y","A̧":"A","a̧":"a","B̧":"B","b̧":"b","Ḑ":"D","ḑ":"d","Ȩ":"E","ȩ":"e","Ɛ̧":"E","ɛ̧":"e","Ḩ":"H","ḩ":"h","I̧":"I","i̧":"i","Ɨ̧":"I","ɨ̧":"i","M̧":"M","m̧":"m","O̧":"O","o̧":"o","Q̧":"Q","q̧":"q","U̧":"U","u̧":"u","X̧":"X","x̧":"x","Z̧":"Z","z̧":"z","й":"и","Й":"И","ё":"е","Ё":"Е"},n=Object.keys(t).join("|"),a=new RegExp(n,"g"),r=new RegExp(n,"");function o(e){return t[e]}var i=function(e){return e.replace(a,o)};e.exports=i,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=i},9196:function(e){"use strict";e.exports=window.React}},t={};function n(a){var r=t[a];if(void 0!==r)return r.exports;var o=t[a]={exports:{}};return e[a].call(o.exports,o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};!function(){"use strict";n.r(a),n.d(a,{PluginMoreMenuItem:function(){return vp},PluginSidebar:function(){return hp},PluginSidebarMoreMenuItem:function(){return yp},PluginTemplateSettingPanel:function(){return Mc},initializeEditor:function(){return Ep},reinitializeEditor:function(){return fp}});var e={};n.r(e),n.d(e,{closeModal:function(){return A},disableComplementaryArea:function(){return M},enableComplementaryArea:function(){return N},openModal:function(){return L},pinItem:function(){return P},setDefaultComplementaryArea:function(){return T},setFeatureDefaults:function(){return R},setFeatureValue:function(){return D},toggleFeature:function(){return B},unpinItem:function(){return I}});var t={};n.r(t),n.d(t,{getActiveComplementaryArea:function(){return F},isComplementaryAreaLoading:function(){return V},isFeatureActive:function(){return O},isItemPinned:function(){return z},isModalActive:function(){return H}});var r={};n.r(r),n.d(r,{__experimentalSetPreviewDeviceType:function(){return Ht},addTemplate:function(){return Ut},closeGeneralSidebar:function(){return sn},openGeneralSidebar:function(){return on},openNavigationPanelToMenu:function(){return Qt},removeTemplate:function(){return $t},revertTemplate:function(){return rn},setEditedEntity:function(){return Zt},setEditedPostContext:function(){return Yt},setHasPageContentFocus:function(){return cn},setHomeTemplateId:function(){return qt},setIsInserterOpened:function(){return en},setIsListViewOpened:function(){return nn},setIsNavigationPanelOpened:function(){return Jt},setIsSaveViewOpened:function(){return an},setNavigationMenu:function(){return Wt},setNavigationPanelActiveMenu:function(){return Xt},setPage:function(){return Kt},setTemplate:function(){return Gt},setTemplatePart:function(){return jt},switchEditorMode:function(){return ln},toggleFeature:function(){return Ot},updateSettings:function(){return tn}});var o={};n.r(o),n.d(o,{setCanvasMode:function(){return un},setEditorCanvasContainerView:function(){return dn}});var i={};n.r(i),n.d(i,{__experimentalGetInsertionPoint:function(){return Mn},__experimentalGetPreviewDeviceType:function(){return En},__unstableGetPreference:function(){return yn},getCanUserCreateMedia:function(){return fn},getCurrentTemplateNavigationPanelSubMenu:function(){return Rn},getCurrentTemplateTemplateParts:function(){return Bn},getEditedPostContext:function(){return xn},getEditedPostId:function(){return Cn},getEditedPostType:function(){return kn},getEditorMode:function(){return Dn},getHomeTemplateId:function(){return Sn},getNavigationPanelActiveMenu:function(){return Ln},getPage:function(){return Tn},getReusableBlocks:function(){return bn},getSettings:function(){return wn},hasPageContentFocus:function(){return Vn},isFeatureActive:function(){return vn},isInserterOpened:function(){return Nn},isListViewOpened:function(){return Pn},isNavigationOpened:function(){return An},isPage:function(){return Fn},isSaveViewOpened:function(){return In}});var s={};n.r(s),n.d(s,{getCanvasMode:function(){return zn},getEditorCanvasContainerView:function(){return On}});var l=window.wp.element,c=window.wp.blocks,u=window.wp.blockLibrary,d=window.wp.data,m=window.wp.deprecated,p=n.n(m),_=window.wp.coreData,g=window.wp.editor,h=n(4403),y=n.n(h),v=window.wp.components,E=window.wp.i18n,f=window.wp.primitives;var b=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}));var w=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z"}));var S=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z",clipRule:"evenodd"})),k=window.wp.viewport;var C=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),x=window.wp.preferences;const T=(e,t)=>({type:"SET_DEFAULT_COMPLEMENTARY_AREA",scope:e,area:t}),N=(e,t)=>({registry:n,dispatch:a})=>{if(!t)return;n.select(x.store).get(e,"isComplementaryAreaVisible")||n.dispatch(x.store).set(e,"isComplementaryAreaVisible",!0),a({type:"ENABLE_COMPLEMENTARY_AREA",scope:e,area:t})},M=e=>({registry:t})=>{t.select(x.store).get(e,"isComplementaryAreaVisible")&&t.dispatch(x.store).set(e,"isComplementaryAreaVisible",!1)},P=(e,t)=>({registry:n})=>{if(!t)return;const a=n.select(x.store).get(e,"pinnedItems");!0!==a?.[t]&&n.dispatch(x.store).set(e,"pinnedItems",{...a,[t]:!0})},I=(e,t)=>({registry:n})=>{if(!t)return;const a=n.select(x.store).get(e,"pinnedItems");n.dispatch(x.store).set(e,"pinnedItems",{...a,[t]:!1})};function B(e,t){return function({registry:n}){p()("dispatch( 'core/interface' ).toggleFeature",{since:"6.0",alternative:"dispatch( 'core/preferences' ).toggle"}),n.dispatch(x.store).toggle(e,t)}}function D(e,t,n){return function({registry:a}){p()("dispatch( 'core/interface' ).setFeatureValue",{since:"6.0",alternative:"dispatch( 'core/preferences' ).set"}),a.dispatch(x.store).set(e,t,!!n)}}function R(e,t){return function({registry:n}){p()("dispatch( 'core/interface' ).setFeatureDefaults",{since:"6.0",alternative:"dispatch( 'core/preferences' ).setDefaults"}),n.dispatch(x.store).setDefaults(e,t)}}function L(e){return{type:"OPEN_MODAL",name:e}}function A(){return{type:"CLOSE_MODAL"}}const F=(0,d.createRegistrySelector)((e=>(t,n)=>{const a=e(x.store).get(n,"isComplementaryAreaVisible");if(void 0!==a)return!1===a?null:t?.complementaryAreas?.[n]})),V=(0,d.createRegistrySelector)((e=>(t,n)=>{const a=e(x.store).get(n,"isComplementaryAreaVisible"),r=t?.complementaryAreas?.[n];return a&&void 0===r})),z=(0,d.createRegistrySelector)((e=>(t,n,a)=>{var r;const o=e(x.store).get(n,"pinnedItems");return null===(r=o?.[a])||void 0===r||r})),O=(0,d.createRegistrySelector)((e=>(t,n,a)=>(p()("select( 'core/interface' ).isFeatureActive( scope, featureName )",{since:"6.0",alternative:"select( 'core/preferences' ).get( scope, featureName )"}),!!e(x.store).get(n,a))));function H(e,t){return e.activeModal===t}var G=(0,d.combineReducers)({complementaryAreas:function(e={},t){switch(t.type){case"SET_DEFAULT_COMPLEMENTARY_AREA":{const{scope:n,area:a}=t;return e[n]?e:{...e,[n]:a}}case"ENABLE_COMPLEMENTARY_AREA":{const{scope:n,area:a}=t;return{...e,[n]:a}}}return e},activeModal:function(e=null,t){switch(t.type){case"OPEN_MODAL":return t.name;case"CLOSE_MODAL":return null}return e}});const U=(0,d.createReduxStore)("core/interface",{reducer:G,actions:e,selectors:t});(0,d.register)(U);var $=window.wp.plugins,j=(0,$.withPluginContext)(((e,t)=>({icon:t.icon||e.icon,identifier:t.identifier||`${e.name}/${t.name}`})));var W=j((function({as:e=v.Button,scope:t,identifier:n,icon:a,selectedIcon:r,name:o,...i}){const s=e,c=(0,d.useSelect)((e=>e(U).getActiveComplementaryArea(t)===n),[n]),{enableComplementaryArea:u,disableComplementaryArea:m}=(0,d.useDispatch)(U);return(0,l.createElement)(s,{icon:r&&c?r:a,onClick:()=>{c?m(t):u(t,n)},...i})}));var Z=({smallScreenTitle:e,children:t,className:n,toggleButtonProps:a})=>{const r=(0,l.createElement)(W,{icon:C,...a});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"components-panel__header interface-complementary-area-header__small"},e&&(0,l.createElement)("span",{className:"interface-complementary-area-header__small-title"},e),r),(0,l.createElement)("div",{className:y()("components-panel__header","interface-complementary-area-header",n),tabIndex:-1},t,r))};const q=()=>{};function Y({name:e,as:t=v.Button,onClick:n,...a}){return(0,l.createElement)(v.Fill,{name:e},(({onClick:e})=>(0,l.createElement)(t,{onClick:n||e?(...t)=>{(n||q)(...t),(e||q)(...t)}:void 0,...a})))}Y.Slot=function({name:e,as:t=v.ButtonGroup,fillProps:n={},bubblesVirtually:a,...r}){return(0,l.createElement)(v.Slot,{name:e,bubblesVirtually:a,fillProps:n},(e=>{if(!l.Children.toArray(e).length)return null;const n=[];l.Children.forEach(e,(({props:{__unstableExplicitMenuItem:e,__unstableTarget:t}})=>{t&&e&&n.push(t)}));const a=l.Children.map(e,(e=>!e.props.__unstableExplicitMenuItem&&n.includes(e.props.__unstableTarget)?null:e));return(0,l.createElement)(t,{...r},a)}))};var K=Y;const X=({__unstableExplicitMenuItem:e,__unstableTarget:t,...n})=>(0,l.createElement)(v.MenuItem,{...n});function Q({scope:e,target:t,__unstableExplicitMenuItem:n,...a}){return(0,l.createElement)(W,{as:a=>(0,l.createElement)(K,{__unstableExplicitMenuItem:n,__unstableTarget:`${e}/${t}`,as:X,name:`${e}/plugin-more-menu`,...a}),role:"menuitemcheckbox",selectedIcon:b,name:t,scope:e,...a})}function J({scope:e,...t}){return(0,l.createElement)(v.Fill,{name:`PinnedItems/${e}`,...t})}J.Slot=function({scope:e,className:t,...n}){return(0,l.createElement)(v.Slot,{name:`PinnedItems/${e}`,...n},(e=>e?.length>0&&(0,l.createElement)("div",{className:y()(t,"interface-pinned-items")},e)))};var ee=J;function te({scope:e,children:t,className:n}){return(0,l.createElement)(v.Fill,{name:`ComplementaryArea/${e}`},(0,l.createElement)("div",{className:n},t))}const ne=j((function({children:e,className:t,closeLabel:n=(0,E.__)("Close plugin"),identifier:a,header:r,headerClassName:o,icon:i,isPinnable:s=!0,panelClassName:c,scope:u,name:m,smallScreenTitle:p,title:_,toggleShortcut:g,isActiveByDefault:h,showIconLabels:f=!1}){const{isLoading:C,isActive:x,isPinned:T,activeArea:N,isSmall:M,isLarge:P}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t,isComplementaryAreaLoading:n,isItemPinned:r}=e(U),o=t(u);return{isLoading:n(u),isActive:o===a,isPinned:r(u,a),activeArea:o,isSmall:e(k.store).isViewportMatch("< medium"),isLarge:e(k.store).isViewportMatch("large")}}),[a,u]);!function(e,t,n,a,r){const o=(0,l.useRef)(!1),i=(0,l.useRef)(!1),{enableComplementaryArea:s,disableComplementaryArea:c}=(0,d.useDispatch)(U);(0,l.useEffect)((()=>{a&&r&&!o.current?(c(e),i.current=!0):i.current&&!r&&o.current?(i.current=!1,s(e,t)):i.current&&n&&n!==t&&(i.current=!1),r!==o.current&&(o.current=r)}),[a,r,e,t,n])}(u,a,N,x,M);const{enableComplementaryArea:I,disableComplementaryArea:B,pinItem:D,unpinItem:R}=(0,d.useDispatch)(U);return(0,l.useEffect)((()=>{h&&void 0===N&&!M?I(u,a):void 0===N&&M&&B(u,a)}),[N,h,u,a,M]),(0,l.createElement)(l.Fragment,null,s&&(0,l.createElement)(ee,{scope:u},T&&(0,l.createElement)(W,{scope:u,identifier:a,isPressed:x&&(!f||P),"aria-expanded":x,"aria-disabled":C,label:_,icon:f?b:i,showTooltip:!f,variant:f?"tertiary":void 0})),m&&s&&(0,l.createElement)(Q,{target:m,scope:u,icon:i},_),x&&(0,l.createElement)(te,{className:y()("interface-complementary-area",t),scope:u},(0,l.createElement)(Z,{className:o,closeLabel:n,onClose:()=>B(u),smallScreenTitle:p,toggleButtonProps:{label:n,shortcut:g,scope:u,identifier:a}},r||(0,l.createElement)(l.Fragment,null,(0,l.createElement)("strong",null,_),s&&(0,l.createElement)(v.Button,{className:"interface-complementary-area__pin-unpin-item",icon:T?w:S,label:T?(0,E.__)("Unpin from toolbar"):(0,E.__)("Pin to toolbar"),onClick:()=>(T?R:D)(u,a),isPressed:T,"aria-expanded":T}))),(0,l.createElement)(v.Panel,{className:c},e)))}));ne.Slot=function({scope:e,...t}){return(0,l.createElement)(v.Slot,{name:`ComplementaryArea/${e}`,...t})};var ae=ne,re=window.wp.compose;function oe({children:e,className:t,ariaLabel:n,as:a="div",...r}){return(0,l.createElement)(a,{className:y()("interface-navigable-region",t),"aria-label":n,role:"region",tabIndex:"-1",...r},e)}const ie={hidden:{opacity:0},hover:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},distractionFreeInactive:{opacity:1,transition:{delay:0}}};var se=(0,l.forwardRef)((function({isDistractionFree:e,footer:t,header:n,editorNotices:a,sidebar:r,secondarySidebar:o,notices:i,content:s,actions:c,labels:u,className:d,enableRegionNavigation:m=!0,shortcuts:p},_){const g=(0,v.__unstableUseNavigateRegions)(p);!function(e){(0,l.useEffect)((()=>{const t=document&&document.querySelector(`html:not(.${e})`);if(t)return t.classList.toggle(e),()=>{t.classList.toggle(e)}}),[e])}("interface-interface-skeleton__html-container");const h={...{header:(0,E.__)("Header"),body:(0,E.__)("Content"),secondarySidebar:(0,E.__)("Block Library"),sidebar:(0,E.__)("Settings"),actions:(0,E.__)("Publish"),footer:(0,E.__)("Footer")},...u};return(0,l.createElement)("div",{...m?g:{},ref:(0,re.useMergeRefs)([_,m?g.ref:void 0]),className:y()(d,"interface-interface-skeleton",g.className,!!t&&"has-footer")},(0,l.createElement)("div",{className:"interface-interface-skeleton__editor"},!!n&&(0,l.createElement)(oe,{as:v.__unstableMotion.div,className:"interface-interface-skeleton__header","aria-label":h.header,initial:e?"hidden":"distractionFreeInactive",whileHover:e?"hover":"distractionFreeInactive",animate:e?"hidden":"distractionFreeInactive",variants:ie,transition:e?{type:"tween",delay:.8}:void 0},n),e&&(0,l.createElement)("div",{className:"interface-interface-skeleton__header"},a),(0,l.createElement)("div",{className:"interface-interface-skeleton__body"},!!o&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__secondary-sidebar",ariaLabel:h.secondarySidebar},o),!!i&&(0,l.createElement)("div",{className:"interface-interface-skeleton__notices"},i),(0,l.createElement)(oe,{className:"interface-interface-skeleton__content",ariaLabel:h.body},s),!!r&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__sidebar",ariaLabel:h.sidebar},r),!!c&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__actions",ariaLabel:h.actions},c))),!!t&&(0,l.createElement)(oe,{className:"interface-interface-skeleton__footer",ariaLabel:h.footer},t))}));var le=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));function ce({as:e=v.DropdownMenu,className:t,label:n=(0,E.__)("Options"),popoverProps:a,toggleProps:r,children:o}){return(0,l.createElement)(e,{className:y()("interface-more-menu-dropdown",t),icon:le,label:n,popoverProps:{placement:"bottom-end",...a,className:y()("interface-more-menu-dropdown__content",a?.className)},toggleProps:{tooltipPosition:"bottom",...r}},(e=>o(e)))}function ue({closeModal:e,children:t}){return(0,l.createElement)(v.Modal,{className:"interface-preferences-modal",title:(0,E.__)("Preferences"),onRequestClose:e},t)}var de=function({icon:e,size:t=24,...n}){return(0,l.cloneElement)(e,{width:t,height:t,...n})};var me=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"}));var pe=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M10.6 6L9.4 7l4.6 5-4.6 5 1.2 1 5.4-6z"}));const _e="preferences-menu";function ge({sections:e}){const t=(0,re.useViewportMatch)("medium"),[n,a]=(0,l.useState)(_e),{tabs:r,sectionsContentMap:o}=(0,l.useMemo)((()=>{let t={tabs:[],sectionsContentMap:{}};return e.length&&(t=e.reduce(((e,{name:t,tabLabel:n,content:a})=>(e.tabs.push({name:t,title:n}),e.sectionsContentMap[t]=a,e)),{tabs:[],sectionsContentMap:{}})),t}),[e]),i=(0,l.useCallback)((e=>o[e.name]||null),[o]);let s;return s=t?(0,l.createElement)(v.TabPanel,{className:"interface-preferences__tabs",tabs:r,initialTabName:n!==_e?n:void 0,onSelect:a,orientation:"vertical"},i):(0,l.createElement)(v.__experimentalNavigatorProvider,{initialPath:"/",className:"interface-preferences__provider"},(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(v.Card,{isBorderless:!0,size:"small"},(0,l.createElement)(v.CardBody,null,(0,l.createElement)(v.__experimentalItemGroup,null,r.map((e=>(0,l.createElement)(v.__experimentalNavigatorButton,{key:e.name,path:e.name,as:v.__experimentalItem,isAction:!0},(0,l.createElement)(v.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(v.FlexItem,null,(0,l.createElement)(v.__experimentalTruncate,null,e.title)),(0,l.createElement)(v.FlexItem,null,(0,l.createElement)(de,{icon:(0,E.isRTL)()?me:pe})))))))))),e.length&&e.map((e=>(0,l.createElement)(v.__experimentalNavigatorScreen,{key:`${e.name}-menu`,path:e.name},(0,l.createElement)(v.Card,{isBorderless:!0,size:"large"},(0,l.createElement)(v.CardHeader,{isBorderless:!1,justify:"left",size:"small",gap:"6"},(0,l.createElement)(v.__experimentalNavigatorBackButton,{icon:(0,E.isRTL)()?pe:me,"aria-label":(0,E.__)("Navigate to the previous view")}),(0,l.createElement)(v.__experimentalText,{size:"16"},e.tabLabel)),(0,l.createElement)(v.CardBody,null,e.content)))))),s}var he=({description:e,title:t,children:n})=>(0,l.createElement)("fieldset",{className:"interface-preferences-modal__section"},(0,l.createElement)("legend",{className:"interface-preferences-modal__section-legend"},(0,l.createElement)("h2",{className:"interface-preferences-modal__section-title"},t),e&&(0,l.createElement)("p",{className:"interface-preferences-modal__section-description"},e)),n);var ye=function({help:e,label:t,isChecked:n,onChange:a,children:r}){return(0,l.createElement)("div",{className:"interface-preferences-modal__option"},(0,l.createElement)(v.ToggleControl,{__nextHasNoMarginBottom:!0,help:e,label:t,checked:n,onChange:a}),r)},ve=window.wp.widgets,Ee=window.wp.hooks,fe=window.wp.mediaUtils;(0,Ee.addFilter)("editor.MediaUpload","core/edit-site/components/media-upload",(()=>fe.MediaUpload));var be=window.lodash,we=window.wp.blockEditor,Se=window.wp.notices,ke={grad:.9,turn:360,rad:360/(2*Math.PI)},Ce=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},xe=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},Te=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},Ne=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Me=function(e){return{r:Te(e.r,0,255),g:Te(e.g,0,255),b:Te(e.b,0,255),a:Te(e.a)}},Pe=function(e){return{r:xe(e.r),g:xe(e.g),b:xe(e.b),a:xe(e.a,3)}},Ie=/^#([0-9a-f]{3,8})$/i,Be=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},De=function(e){var t=e.r,n=e.g,a=e.b,r=e.a,o=Math.max(t,n,a),i=o-Math.min(t,n,a),s=i?o===t?(n-a)/i:o===n?2+(a-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:o?i/o*100:0,v:o/255*100,a:r}},Re=function(e){var t=e.h,n=e.s,a=e.v,r=e.a;t=t/360*6,n/=100,a/=100;var o=Math.floor(t),i=a*(1-n),s=a*(1-(t-o)*n),l=a*(1-(1-t+o)*n),c=o%6;return{r:255*[a,s,i,i,l,a][c],g:255*[l,a,a,s,i,i][c],b:255*[i,i,l,a,a,s][c],a:r}},Le=function(e){return{h:Ne(e.h),s:Te(e.s,0,100),l:Te(e.l,0,100),a:Te(e.a)}},Ae=function(e){return{h:xe(e.h),s:xe(e.s),l:xe(e.l),a:xe(e.a,3)}},Fe=function(e){return Re((n=(t=e).s,{h:t.h,s:(n*=((a=t.l)<50?a:100-a)/100)>0?2*n/(a+n)*100:0,v:a+n,a:t.a}));var t,n,a},Ve=function(e){return{h:(t=De(e)).h,s:(r=(200-(n=t.s))*(a=t.v)/100)>0&&r<200?n*a/100/(r<=100?r:200-r)*100:0,l:r/2,a:t.a};var t,n,a,r},ze=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Oe=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,He=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ge=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ue={string:[[function(e){var t=Ie.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?xe(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?xe(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=He.exec(e)||Ge.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Me({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=ze.exec(e)||Oe.exec(e);if(!t)return null;var n,a,r=Le({h:(n=t[1],a=t[2],void 0===a&&(a="deg"),Number(n)*(ke[a]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Fe(r)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,a=e.b,r=e.a,o=void 0===r?1:r;return Ce(t)&&Ce(n)&&Ce(a)?Me({r:Number(t),g:Number(n),b:Number(a),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,a=e.l,r=e.a,o=void 0===r?1:r;if(!Ce(t)||!Ce(n)||!Ce(a))return null;var i=Le({h:Number(t),s:Number(n),l:Number(a),a:Number(o)});return Fe(i)},"hsl"],[function(e){var t=e.h,n=e.s,a=e.v,r=e.a,o=void 0===r?1:r;if(!Ce(t)||!Ce(n)||!Ce(a))return null;var i=function(e){return{h:Ne(e.h),s:Te(e.s,0,100),v:Te(e.v,0,100),a:Te(e.a)}}({h:Number(t),s:Number(n),v:Number(a),a:Number(o)});return Re(i)},"hsv"]]},$e=function(e,t){for(var n=0;n<t.length;n++){var a=t[n][0](e);if(a)return[a,t[n][1]]}return[null,void 0]},je=function(e){return"string"==typeof e?$e(e.trim(),Ue.string):"object"==typeof e&&null!==e?$e(e,Ue.object):[null,void 0]},We=function(e,t){var n=Ve(e);return{h:n.h,s:Te(n.s+100*t,0,100),l:n.l,a:n.a}},Ze=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},qe=function(e,t){var n=Ve(e);return{h:n.h,s:n.s,l:Te(n.l+100*t,0,100),a:n.a}},Ye=function(){function e(e){this.parsed=je(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return xe(Ze(this.rgba),2)},e.prototype.isDark=function(){return Ze(this.rgba)<.5},e.prototype.isLight=function(){return Ze(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Pe(this.rgba)).r,n=e.g,a=e.b,o=(r=e.a)<1?Be(xe(255*r)):"","#"+Be(t)+Be(n)+Be(a)+o;var e,t,n,a,r,o},e.prototype.toRgb=function(){return Pe(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Pe(this.rgba)).r,n=e.g,a=e.b,(r=e.a)<1?"rgba("+t+", "+n+", "+a+", "+r+")":"rgb("+t+", "+n+", "+a+")";var e,t,n,a,r},e.prototype.toHsl=function(){return Ae(Ve(this.rgba))},e.prototype.toHslString=function(){return t=(e=Ae(Ve(this.rgba))).h,n=e.s,a=e.l,(r=e.a)<1?"hsla("+t+", "+n+"%, "+a+"%, "+r+")":"hsl("+t+", "+n+"%, "+a+"%)";var e,t,n,a,r},e.prototype.toHsv=function(){return e=De(this.rgba),{h:xe(e.h),s:xe(e.s),v:xe(e.v),a:xe(e.a,3)};var e},e.prototype.invert=function(){return Ke({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Ke(We(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Ke(We(this.rgba,-e))},e.prototype.grayscale=function(){return Ke(We(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Ke(qe(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Ke(qe(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Ke({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):xe(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=Ve(this.rgba);return"number"==typeof e?Ke({h:e,s:t.s,l:t.l,a:t.a}):xe(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Ke(e).toHex()},e}(),Ke=function(e){return e instanceof Ye?e:new Ye(e)},Xe=[],Qe=function(e){var t=e/255;return t<.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},Je=function(e){return.2126*Qe(e.r)+.7152*Qe(e.g)+.0722*Qe(e.b)};var et=window.wp.privateApis;const{lock:tt,unlock:nt}=(0,et.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I know using unstable features means my plugin or theme will inevitably break on the next WordPress release.","@wordpress/edit-site"),{useGlobalSetting:at}=nt(we.privateApis);!function(e){e.forEach((function(e){Xe.indexOf(e)<0&&(e(Ye,Ue),Xe.push(e))}))}([function(e){e.prototype.luminance=function(){return e=Je(this.rgba),void 0===(t=2)&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0;var e,t,n},e.prototype.contrast=function(t){void 0===t&&(t="#FFF");var n,a,r,o,i,s,l,c=t instanceof e?t:new e(t);return o=this.rgba,i=c.toRgb(),n=(s=Je(o))>(l=Je(i))?(s+.05)/(l+.05):(l+.05)/(s+.05),void 0===(a=2)&&(a=0),void 0===r&&(r=Math.pow(10,a)),Math.floor(r*n)/r+0},e.prototype.isReadable=function(e,t){return void 0===e&&(e="#FFF"),void 0===t&&(t={}),this.contrast(e)>=(i=void 0===(o=(n=t).size)?"normal":o,"AAA"===(r=void 0===(a=n.level)?"AA":a)&&"normal"===i?7:"AA"===r&&"large"===i?3:4.5);var n,a,r,o,i}}]);const{cleanEmptyObject:rt,GlobalStylesContext:ot,useBlockEditingMode:it}=nt(we.privateApis),st={...c.__EXPERIMENTAL_STYLE_PROPERTY,blockGap:{value:["spacing","blockGap"]}},lt={"border.color":"color","color.background":"color","color.text":"color","elements.link.color.text":"color","elements.link.:hover.color.text":"color","elements.link.typography.fontFamily":"font-family","elements.link.typography.fontSize":"font-size","elements.button.color.text":"color","elements.button.color.background":"color","elements.button.typography.fontFamily":"font-family","elements.button.typography.fontSize":"font-size","elements.caption.color.text":"color","elements.heading.color":"color","elements.heading.color.background":"color","elements.heading.typography.fontFamily":"font-family","elements.heading.gradient":"gradient","elements.heading.color.gradient":"gradient","elements.h1.color":"color","elements.h1.color.background":"color","elements.h1.typography.fontFamily":"font-family","elements.h1.color.gradient":"gradient","elements.h2.color":"color","elements.h2.color.background":"color","elements.h2.typography.fontFamily":"font-family","elements.h2.color.gradient":"gradient","elements.h3.color":"color","elements.h3.color.background":"color","elements.h3.typography.fontFamily":"font-family","elements.h3.color.gradient":"gradient","elements.h4.color":"color","elements.h4.color.background":"color","elements.h4.typography.fontFamily":"font-family","elements.h4.color.gradient":"gradient","elements.h5.color":"color","elements.h5.color.background":"color","elements.h5.typography.fontFamily":"font-family","elements.h5.color.gradient":"gradient","elements.h6.color":"color","elements.h6.color.background":"color","elements.h6.typography.fontFamily":"font-family","elements.h6.color.gradient":"gradient","color.gradient":"gradient",blockGap:"spacing","typography.fontSize":"font-size","typography.fontFamily":"font-family"},ct={"border.color":"borderColor","color.background":"backgroundColor","color.text":"textColor","color.gradient":"gradient","typography.fontSize":"fontSize","typography.fontFamily":"fontFamily"},ut=["border","color","spacing","typography"],dt=["borderColor","borderWidth","borderStyle"],mt=["top","right","bottom","left"];function pt(e,t,n){if(!t?.[e]||n?.[e]?.style)return[];const{color:a,style:r,width:o}=t[e];return!(a||o)||r?[]:[{path:["border",e,"style"],value:"solid"}]}function _t(e,t,n){const a=function(e,t){const{supportedPanels:n}=(0,d.useSelect)((n=>({supportedPanels:nt(n(c.store)).getSupportedStyles(e,t)})),[e,t]);return n}(e),r=n?.styles?.blocks?.[e];return(0,l.useMemo)((()=>{const e=a.flatMap((e=>{if(!st[e])return[];const{value:n}=st[e],a=n.join("."),r=t[ct[a]],o=r?`var:preset|${lt[a]}|${r}`:(0,be.get)(t.style,n);if("linkColor"===e){const e=o?[{path:n,value:o}]:[],a=["elements","link",":hover","color","text"],r=(0,be.get)(t.style,a);return r&&e.push({path:a,value:r}),e}if(dt.includes(e)&&o){const e=[{path:n,value:o}];return mt.forEach((t=>{const a=[...n];a.splice(-1,0,t),e.push({path:a,value:o})})),e}return o?[{path:n,value:o}]:[]}));return function(e,t,n){if(!e&&!t)return[];const a=[...pt("top",e,n),...pt("right",e,n),...pt("bottom",e,n),...pt("left",e,n)],{color:r,style:o,width:i}=e||{};return(t||r||i)&&!o&&mt.forEach((e=>{n?.[e]?.style||a.push({path:["border",e,"style"],value:"solid"})})),a}(t.style?.border,t.borderColor,r?.border).forEach((t=>e.push(t))),e}),[a,t,r])}function gt(e){return e?JSON.parse(JSON.stringify(e)):{}}function ht({name:e,attributes:t,setAttributes:n}){const{user:a,setUserConfig:r}=(0,l.useContext)(ot),o=_t(e,t,a),{__unstableMarkNextChangeAsNotPersistent:i}=(0,d.useDispatch)(we.store),{createSuccessNotice:s}=(0,d.useDispatch)(Se.store),u=(0,l.useCallback)((()=>{if(0===o.length)return;const{style:l}=t,u=gt(l),d=gt(a);for(const{path:t,value:n}of o)(0,be.set)(u,t,void 0),(0,be.set)(d,["styles","blocks",e,...t],n);const m={borderColor:void 0,backgroundColor:void 0,textColor:void 0,gradient:void 0,fontSize:void 0,fontFamily:void 0,style:rt(u)};i(),n(m),r((()=>d),{undoIgnore:!0}),s((0,E.sprintf)((0,E.__)("%s styles applied."),(0,c.getBlockType)(e).title),{type:"snackbar",actions:[{label:(0,E.__)("Undo"),onClick(){i(),n(t),r((()=>a),{undoIgnore:!0})}}]})}),[i,t,o,s,e,n,r,a]);return(0,l.createElement)(v.BaseControl,{className:"edit-site-push-changes-to-global-styles-control",help:(0,E.sprintf)((0,E.__)("Apply this block’s typography, spacing, dimensions, and color styles to all %s blocks."),(0,c.getBlockType)(e).title)},(0,l.createElement)(v.BaseControl.VisualLabel,null,(0,E.__)("Styles")),(0,l.createElement)(v.Button,{variant:"primary",disabled:0===o.length,onClick:u},(0,E.__)("Apply globally")))}const yt=(0,re.createHigherOrderComponent)((e=>t=>{const n=it(),a=ut.some((e=>(0,c.hasBlockSupport)(t.name,e)));return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),"default"===n&&a&&(0,l.createElement)(we.InspectorAdvancedControls,null,(0,l.createElement)(ht,{...t})))}));(0,Ee.addFilter)("editor.BlockEdit","core/edit-site/push-changes-to-global-styles",yt);var vt=window.wp.router,Et=window.wp.url;function ft(){return void 0!==(0,Et.getQueryArg)(window.location.href,"wp_theme_preview")}function bt(){return ft()?(0,Et.getQueryArg)(window.location.href,"wp_theme_preview"):null}const{useHistory:wt}=nt(vt.privateApis);function St(e={},t,n=!1){const a=wt();const r=(0,Et.getQueryArgs)(window.location.href),o=(0,Et.removeQueryArgs)(window.location.href,...Object.keys(r));ft()&&(e={...e,wp_theme_preview:bt()});return{href:(0,Et.addQueryArgs)(o,e),onClick:function(r){r.preventDefault(),n?a.replace(e,t):a.push(e,t)}}}function kt({params:e={},state:t,replace:n=!1,children:a,...r}){const{href:o,onClick:i}=St(e,t,n);return(0,l.createElement)("a",{href:o,onClick:i,...r},a)}const{useLocation:Ct}=nt(vt.privateApis);function xt({attributes:e}){const{theme:t,slug:n}=e,{params:a}=Ct(),r=(0,d.useSelect)((e=>e(_.store).getEntityRecord("postType","wp_template_part",`${t}//${n}`)),[t,n]),o=St({postId:r?.id,postType:r?.type,canvas:"edit"},{fromTemplateId:a.postId});return r?(0,l.createElement)(we.BlockControls,{group:"other"},(0,l.createElement)(v.ToolbarButton,{...o,onClick:e=>{o.onClick(e)}},(0,E.__)("Edit"))):null}const Tt=(0,re.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:a}=t,r="core/template-part"===a&&n.slug;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),r&&(0,l.createElement)(xt,{attributes:n}))}),"withEditBlockControls");(0,Ee.addFilter)("editor.BlockEdit","core/edit-site/template-part-edit-button",Tt);const{useLocation:Nt}=nt(vt.privateApis),{useBlockEditingMode:Mt}=nt(we.privateApis);function Pt({attributes:e}){const{ref:t}=e,{params:n}=Nt(),a=Mt(),r=(0,d.useSelect)((e=>e(_.store).getEntityRecord("postType","wp_navigation",t)),[t]),o=St({postId:r?.id,postType:r?.type,canvas:"edit"},{fromTemplateId:n.postId});return r&&"default"===a?(0,l.createElement)(we.BlockControls,{group:"other"},(0,l.createElement)(v.ToolbarButton,{...o,onClick:e=>{o.onClick(e)}},(0,E.__)("Edit"))):null}const It=(0,re.createHigherOrderComponent)((e=>t=>{const{attributes:n,name:a}=t,r="core/navigation"===a&&n.ref;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(e,{...t}),r&&(0,l.createElement)(Pt,{attributes:n}))}),"withEditBlockControls");(0,Ee.addFilter)("editor.BlockEdit","core/edit-site/navigation-edit-button",It);var Bt=(0,d.combineReducers)({deviceType:function(e="Desktop",t){return"SET_PREVIEW_DEVICE_TYPE"===t.type?t.deviceType:e},settings:function(e={},t){return"UPDATE_SETTINGS"===t.type?{...e,...t.settings}:e},editedPost:function(e={},t){switch(t.type){case"SET_EDITED_POST":return{postType:t.postType,id:t.id,context:t.context};case"SET_EDITED_POST_CONTEXT":return{...e,context:t.context}}return e},blockInserterPanel:function(e=!1,t){switch(t.type){case"SET_IS_LIST_VIEW_OPENED":return!t.isOpen&&e;case"SET_IS_INSERTER_OPENED":return t.value;case"SET_CANVAS_MODE":return!1}return e},listViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_INSERTER_OPENED":return!t.value&&e;case"SET_IS_LIST_VIEW_OPENED":return t.isOpen;case"SET_CANVAS_MODE":return!1}return e},saveViewPanel:function(e=!1,t){switch(t.type){case"SET_IS_SAVE_VIEW_OPENED":return t.isOpen;case"SET_CANVAS_MODE":return!1}return e},canvasMode:function(e="init",t){return"SET_CANVAS_MODE"===t.type?t.mode:e},editorCanvasContainerView:function(e=void 0,t){return"SET_EDITOR_CANVAS_CONTAINER_VIEW"===t.type?t.view:e},hasPageContentFocus:function(e=!1,t){switch(t.type){case"SET_EDITED_POST":return!!t.context?.postId;case"SET_HAS_PAGE_CONTENT_FOCUS":return t.hasPageContentFocus}return e}}),Dt=window.wp.apiFetch,Rt=n.n(Dt),Lt=window.wp.a11y,At=window.wp.htmlEntities;const Ft="core/edit-site",Vt="uncategorized";function zt(e){return!!e&&("custom"===e?.source&&e?.has_theme_file)}function Ot(e){return function({registry:t}){p()("select( 'core/edit-site' ).toggleFeature( featureName )",{since:"6.0",alternative:"select( 'core/preferences').toggle( 'core/edit-site', featureName )"}),t.dispatch(x.store).toggle("core/edit-site",e)}}function Ht(e){return{type:"SET_PREVIEW_DEVICE_TYPE",deviceType:e}}const Gt=(e,t)=>async({dispatch:n,registry:a})=>{if(!t)try{const n=await a.resolveSelect(_.store).getEntityRecord("postType","wp_template",e);t=n?.slug}catch(e){}n({type:"SET_EDITED_POST",postType:"wp_template",id:e,context:{templateSlug:t}})},Ut=e=>async({dispatch:t,registry:n})=>{const a=await n.dispatch(_.store).saveEntityRecord("postType","wp_template",e);e.content&&n.dispatch(_.store).editEntityRecord("postType","wp_template",a.id,{blocks:(0,c.parse)(e.content)},{undoIgnore:!0}),t({type:"SET_EDITED_POST",postType:"wp_template",id:a.id,context:{templateSlug:a.slug}})},$t=e=>async({registry:t})=>{try{await t.dispatch(_.store).deleteEntityRecord("postType",e.type,e.id,{force:!0});const n=t.select(_.store).getLastEntityDeleteError("postType",e.type,e.id);if(n)throw n;const a="string"==typeof e.title?e.title:e.title?.rendered;t.dispatch(Se.store).createSuccessNotice((0,E.sprintf)((0,E.__)('"%s" deleted.'),(0,At.decodeEntities)(a)),{type:"snackbar",id:"site-editor-template-deleted-success"})}catch(e){const n=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while deleting the template.");t.dispatch(Se.store).createErrorNotice(n,{type:"snackbar"})}};function jt(e){return{type:"SET_EDITED_POST",postType:"wp_template_part",id:e}}function Wt(e){return{type:"SET_EDITED_POST",postType:"wp_navigation",id:e}}function Zt(e,t){return{type:"SET_EDITED_POST",postType:e,id:t}}function qt(){return p()("dispatch( 'core/edit-site' ).setHomeTemplateId",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function Yt(e){return{type:"SET_EDITED_POST_CONTEXT",context:e}}const Kt=e=>async({dispatch:t,registry:n})=>{if(!e.path&&e.context?.postId){const t=await n.resolveSelect(_.store).getEntityRecord("postType",e.context.postType||"post",e.context.postId);e.path=(0,Et.getPathAndQueryString)(t?.link)}const a=await n.resolveSelect(_.store).__experimentalGetTemplateForLink(e.path);if(a)return t({type:"SET_EDITED_POST",postType:"wp_template",id:a.id,context:{...e.context,templateSlug:a.slug}}),a.id};function Xt(){return p()("dispatch( 'core/edit-site' ).setNavigationPanelActiveMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function Qt(){return p()("dispatch( 'core/edit-site' ).openNavigationPanelToMenu",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function Jt(){return p()("dispatch( 'core/edit-site' ).setIsNavigationPanelOpened",{since:"6.2",version:"6.4"}),{type:"NOTHING"}}function en(e){return{type:"SET_IS_INSERTER_OPENED",value:e}}function tn(e){return{type:"UPDATE_SETTINGS",settings:e}}function nn(e){return{type:"SET_IS_LIST_VIEW_OPENED",isOpen:e}}function an(e){return{type:"SET_IS_SAVE_VIEW_OPENED",isOpen:e}}const rn=(e,{allowUndo:t=!0}={})=>async({registry:n})=>{const a="edit-site-template-reverted";if(n.dispatch(Se.store).removeNotice(a),zt(e))try{const r=n.select(_.store).getEntityConfig("postType",e.type);if(!r)return void n.dispatch(Se.store).createErrorNotice((0,E.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const o=(0,Et.addQueryArgs)(`${r.baseURL}/${e.id}`,{context:"edit",source:"theme"}),i=await Rt()({path:o});if(!i)return void n.dispatch(Se.store).createErrorNotice((0,E.__)("The editor has encountered an unexpected error. Please reload."),{type:"snackbar"});const s=({blocks:e=[]})=>(0,c.__unstableSerializeAndClean)(e),l=n.select(_.store).getEditedEntityRecord("postType",e.type,e.id);n.dispatch(_.store).editEntityRecord("postType",e.type,e.id,{content:s,blocks:l.blocks,source:"custom"},{undoIgnore:!0});const u=(0,c.parse)(i?.content?.raw);if(n.dispatch(_.store).editEntityRecord("postType",e.type,i.id,{content:s,blocks:u,source:"theme"}),t){const t=()=>{n.dispatch(_.store).editEntityRecord("postType",e.type,l.id,{content:s,blocks:l.blocks,source:"custom"})};n.dispatch(Se.store).createSuccessNotice((0,E.__)("Template reverted."),{type:"snackbar",id:a,actions:[{label:(0,E.__)("Undo"),onClick:t}]})}}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("Template revert failed. Please reload.");n.dispatch(Se.store).createErrorNotice(t,{type:"snackbar"})}else n.dispatch(Se.store).createErrorNotice((0,E.__)("This template is not revertable."),{type:"snackbar"})},on=e=>({registry:t})=>{t.dispatch(U).enableComplementaryArea(Ft,e)},sn=()=>({registry:e})=>{e.dispatch(U).disableComplementaryArea(Ft)},ln=e=>({registry:t})=>{t.dispatch("core/preferences").set("core/edit-site","editorMode",e),"visual"!==e&&t.dispatch(we.store).clearSelectedBlock(),"visual"===e?(0,Lt.speak)((0,E.__)("Visual editor selected"),"assertive"):"text"===e&&(0,Lt.speak)((0,E.__)("Code editor selected"),"assertive")},cn=e=>({dispatch:t,registry:n})=>{e&&n.dispatch(we.store).clearSelectedBlock(),t({type:"SET_HAS_PAGE_CONTENT_FOCUS",hasPageContentFocus:e})},un=e=>({registry:t,dispatch:n,select:a})=>{t.dispatch(we.store).__unstableSetEditorMode("edit"),n({type:"SET_CANVAS_MODE",mode:e}),"edit"===e&&t.select(x.store).get("core/edit-site","showListViewByDefault")&&!t.select(x.store).get("core/edit-site","distractionFree")&&n.setIsListViewOpened(!0),"view"===e&&a.isPage()&&n.setHasPageContentFocus(!0)},dn=e=>({dispatch:t})=>{t({type:"SET_EDITOR_CANVAS_CONTAINER_VIEW",view:e})};var mn={};function pn(e){return[e]}function _n(e,t,n){var a;if(e.length!==t.length)return!1;for(a=n;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}const gn=[];const hn=function(e,t){var n,a,r=0;function o(){var o,i,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<l;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==n&&(s===a&&(a=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(o=new Array(l),i=0;i<l;i++)o[i]=arguments[i];return s={args:o,val:e.apply(null,o)},n?(n.prev=s,s.next=n):a=s,r===t.maxSize?(a=a.prev).next=null:r++,n=s,s.val}return t=t||{},o.clear=function(){n=null,a=null,r=0},o}((function(e=gn,t){const n=t?t.reduce(((e,t)=>({...e,[t.id]:t})),{}):{},a=[],r=[...e];for(;r.length;){const{innerBlocks:e,...t}=r.shift();if(r.unshift(...e),(0,c.isTemplatePart)(t)){const{attributes:{theme:e,slug:r}}=t,o=n[`${e}//${r}`];o&&a.push({templatePart:o,block:t})}}return a})),yn=(0,d.createRegistrySelector)((e=>(t,n)=>e(x.store).get("core/edit-site",n)));function vn(e,t){return p()("select( 'core/edit-site' ).isFeatureActive",{since:"6.0",alternative:"select( 'core/preferences' ).get"}),!!yn(e,t)}function En(e){return e.deviceType}const fn=(0,d.createRegistrySelector)((e=>()=>e(_.store).canUser("create","media"))),bn=(0,d.createRegistrySelector)((e=>()=>"web"===l.Platform.OS?e(_.store).getEntityRecords("postType","wp_block",{per_page:-1}):[])),wn=function(e,t){var n,a=t||pn;function r(){n=new WeakMap}function o(){var t,r,o,i,s,l=arguments.length;for(i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];for(t=function(e){var t,a,r,o,i,s=n,l=!0;for(t=0;t<e.length;t++){if(!(i=a=e[t])||"object"!=typeof i){l=!1;break}s.has(a)?s=s.get(a):(r=new WeakMap,s.set(a,r),s=r)}return s.has(mn)||((o=function(){var e={clear:function(){e.head=null}};return e}()).isUniqueByDependants=l,s.set(mn,o)),s.get(mn)}(s=a.apply(null,i)),t.isUniqueByDependants||(t.lastDependants&&!_n(s,t.lastDependants,0)&&t.clear(),t.lastDependants=s),r=t.head;r;){if(_n(r.args,i,1))return r!==t.head&&(r.prev.next=r.next,r.next&&(r.next.prev=r.prev),r.next=t.head,r.prev=null,t.head.prev=r,t.head=r),r.val;r=r.next}return r={val:e.apply(null,i)},i[0]=null,r.args=i,t.head&&(t.head.prev=r,r.next=t.head),t.head=r,r.val}return o.getDependants=a,o.clear=r,r(),o}(((e,t)=>{const n={...e.settings,outlineMode:!0,focusMode:!!yn(e,"focusMode"),isDistractionFree:!!yn(e,"distractionFree"),hasFixedToolbar:!!yn(e,"fixedToolbar"),keepCaretInsideBlock:!!yn(e,"keepCaretInsideBlock"),showIconLabels:!!yn(e,"showIconLabels"),__experimentalSetIsInserterOpened:t,__experimentalReusableBlocks:bn(e),__experimentalPreferPatternsOnRoot:"wp_template"===kn(e)};return fn(e)?(n.mediaUpload=({onError:t,...n})=>{(0,fe.uploadMedia)({wpAllowedMimeTypes:e.settings.allowedMimeTypes,onError:({message:e})=>t(e),...n})},n):n}),(e=>[fn(e),e.settings,yn(e,"focusMode"),yn(e,"distractionFree"),yn(e,"fixedToolbar"),yn(e,"keepCaretInsideBlock"),yn(e,"showIconLabels"),bn(e),kn(e)]));function Sn(){p()("select( 'core/edit-site' ).getHomeTemplateId",{since:"6.2",version:"6.4"})}function kn(e){return e.editedPost.postType}function Cn(e){return e.editedPost.id}function xn(e){return e.editedPost.context}function Tn(e){return{context:e.editedPost.context}}function Nn(e){return!!e.blockInserterPanel}const Mn=(0,d.createRegistrySelector)((e=>t=>{if("object"==typeof t.blockInserterPanel){const{rootClientId:e,insertionIndex:n,filterValue:a}=t.blockInserterPanel;return{rootClientId:e,insertionIndex:n,filterValue:a}}if(Vn(t)){const[t]=e(we.store).__experimentalGetGlobalBlocksByName("core/post-content");if(t)return{rootClientId:t,insertionIndex:void 0,filterValue:void 0}}return{rootClientId:void 0,insertionIndex:void 0,filterValue:void 0}}));function Pn(e){return e.listViewPanel}function In(e){return e.saveViewPanel}const Bn=(0,d.createRegistrySelector)((e=>t=>{const n=kn(t),a=Cn(t),r=e(_.store).getEditedEntityRecord("postType",n,a),o=e(_.store).getEntityRecords("postType","wp_template_part",{per_page:-1});return hn(r.blocks,o)}));function Dn(e){return yn(e,"editorMode")}function Rn(){p()("dispatch( 'core/edit-site' ).getCurrentTemplateNavigationPanelSubMenu",{since:"6.2",version:"6.4"})}function Ln(){p()("dispatch( 'core/edit-site' ).getNavigationPanelActiveMenu",{since:"6.2",version:"6.4"})}function An(){p()("dispatch( 'core/edit-site' ).isNavigationOpened",{since:"6.2",version:"6.4"})}function Fn(e){return!!e.editedPost.context?.postId}function Vn(e){return!!Fn(e)&&e.hasPageContentFocus}function zn(e){return e.canvasMode}function On(e){return e.editorCanvasContainerView}const Hn={reducer:Bt,actions:r,selectors:i},Gn=(0,d.createReduxStore)(Ft,Hn);(0,d.register)(Gn),nt(Gn).registerPrivateSelectors(s),nt(Gn).registerPrivateActions(o);var Un=window.wp.keyboardShortcuts,$n=window.wp.commands,jn=window.wp.coreCommands;var Wn=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z"}));var Zn=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z"}));var qn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));var Yn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var Kn=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function Xn(e){return(0,l.createElement)(v.Button,{...e,className:y()("edit-site-sidebar-button",e.className)})}const{useLocation:Qn}=nt(vt.privateApis);function Jn({isRoot:e,title:t,actions:n,meta:a,content:r,footer:o,description:i,backPath:s}){const{dashboardLink:c}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Gn));return{dashboardLink:t().__experimentalDashboardLink}}),[]),{getTheme:u}=(0,d.useSelect)(_.store),m=Qn(),p=(0,v.__experimentalUseNavigator)(),g=u(bt()),h=(0,E.isRTL)()?pe:me;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalVStack,{className:y()("edit-site-sidebar-navigation-screen__main",{"has-footer":!!o}),spacing:0,justify:"flex-start"},(0,l.createElement)(v.__experimentalHStack,{spacing:4,alignment:"flex-start",className:"edit-site-sidebar-navigation-screen__title-icon"},!e&&(0,l.createElement)(Xn,{onClick:()=>{const e=null!=s?s:m.state?.backPath;e?p.goTo(e,{isBack:!0}):p.goToParent()},icon:h,label:(0,E.__)("Back"),showTooltip:!1}),e&&(0,l.createElement)(Xn,{icon:h,label:ft()?(0,E.__)("Go back to the theme showcase"):(0,E.__)("Go to the Dashboard"),href:ft()?"themes.php":c||"index.php"}),(0,l.createElement)(v.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen__title",color:"#e0e0e0",level:1,size:20},ft()?(0,E.sprintf)("Previewing %1$s: %2$s",g?.name?.rendered,t):t),n&&(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__actions"},n)),a&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__meta"},a)),(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen__content"},i&&(0,l.createElement)("p",{className:"edit-site-sidebar-navigation-screen__description"},i),r)),o&&(0,l.createElement)("footer",{className:"edit-site-sidebar-navigation-screen__footer"},o))}var ea=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m13.1 16-3.4-4 3.4-4 1.1 1-2.6 3 2.6 3-1.1 1z"}));var ta=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"}));function na({className:e,icon:t,withChevron:n=!1,suffix:a,children:r,...o}){return(0,l.createElement)(v.__experimentalItem,{className:y()("edit-site-sidebar-navigation-item",{"with-suffix":!n&&a},e),...o},(0,l.createElement)(v.__experimentalHStack,{justify:"flex-start"},t&&(0,l.createElement)(de,{style:{fill:"currentcolor"},icon:t,size:24}),(0,l.createElement)(v.FlexBlock,null,r),n&&(0,l.createElement)(de,{icon:(0,E.isRTL)()?ea:ta,className:"edit-site-sidebar-navigation-item__drilldown-indicator",size:24}),!n&&a))}var aa=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"}));var ra=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M3.99961 13C4.67043 13.3354 4.6703 13.3357 4.67017 13.3359L4.67298 13.3305C4.67621 13.3242 4.68184 13.3135 4.68988 13.2985C4.70595 13.2686 4.7316 13.2218 4.76695 13.1608C4.8377 13.0385 4.94692 12.8592 5.09541 12.6419C5.39312 12.2062 5.84436 11.624 6.45435 11.0431C7.67308 9.88241 9.49719 8.75 11.9996 8.75C14.502 8.75 16.3261 9.88241 17.5449 11.0431C18.1549 11.624 18.6061 12.2062 18.9038 12.6419C19.0523 12.8592 19.1615 13.0385 19.2323 13.1608C19.2676 13.2218 19.2933 13.2686 19.3093 13.2985C19.3174 13.3135 19.323 13.3242 19.3262 13.3305L19.3291 13.3359C19.3289 13.3357 19.3288 13.3354 19.9996 13C20.6704 12.6646 20.6703 12.6643 20.6701 12.664L20.6697 12.6632L20.6688 12.6614L20.6662 12.6563L20.6583 12.6408C20.6517 12.6282 20.6427 12.6108 20.631 12.5892C20.6078 12.5459 20.5744 12.4852 20.5306 12.4096C20.4432 12.2584 20.3141 12.0471 20.1423 11.7956C19.7994 11.2938 19.2819 10.626 18.5794 9.9569C17.1731 8.61759 14.9972 7.25 11.9996 7.25C9.00203 7.25 6.82614 8.61759 5.41987 9.9569C4.71736 10.626 4.19984 11.2938 3.85694 11.7956C3.68511 12.0471 3.55605 12.2584 3.4686 12.4096C3.42484 12.4852 3.39142 12.5459 3.36818 12.5892C3.35656 12.6108 3.34748 12.6282 3.34092 12.6408L3.33297 12.6563L3.33041 12.6614L3.32948 12.6632L3.32911 12.664C3.32894 12.6643 3.32879 12.6646 3.99961 13ZM11.9996 16C13.9326 16 15.4996 14.433 15.4996 12.5C15.4996 10.567 13.9326 9 11.9996 9C10.0666 9 8.49961 10.567 8.49961 12.5C8.49961 14.433 10.0666 16 11.9996 16Z"}));var oa=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),ia=oa,sa=window.wp.date,la=window.wp.keycodes,ca=n(1919),ua=n.n(ca);
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/
-function ia(e){return"[object Object]"===Object.prototype.toString.call(e)}function sa(e){var t,n;return!1!==ia(e)&&(void 0===(t=e.constructor)||!1!==ia(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const{GlobalStylesContext:la,cleanEmptyObject:ca}=nt(we.privateApis);function ua(e,t){return oa()(e,t,{isMergeableObject:sa})}function da(){const[e,t,n]=function(){const{globalStylesId:e,isReady:t,settings:n,styles:a}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t,hasFinishedResolution:n}=e(_.store),a=e(_.store).__experimentalGetCurrentGlobalStylesId(),r=a?t("root","globalStyles",a):void 0;let o=!1;return n("__experimentalGetCurrentGlobalStylesId")&&(o=!a||n("getEditedEntityRecord",["root","globalStyles",a])),{globalStylesId:a,isReady:o,settings:r?.settings,styles:r?.styles}}),[]),{getEditedEntityRecord:r}=(0,d.useSelect)(_.store),{editEntityRecord:o}=(0,d.useDispatch)(_.store);return[t,(0,l.useMemo)((()=>({settings:null!=n?n:{},styles:null!=a?a:{}})),[n,a]),(0,l.useCallback)(((t,n={})=>{var a,i;const s=r("root","globalStyles",e),l=t({styles:null!==(a=s?.styles)&&void 0!==a?a:{},settings:null!==(i=s?.settings)&&void 0!==i?i:{}});o("root","globalStyles",e,{styles:ca(l.styles)||{},settings:ca(l.settings)||{}},n)}),[e])]}(),[a,r]=function(){const e=(0,d.useSelect)((e=>e(_.store).__experimentalGetCurrentThemeBaseGlobalStyles()),[]);return[!!e,e]}(),o=(0,l.useMemo)((()=>r&&t?ua(r,t):{}),[t,r]);return(0,l.useMemo)((()=>({isReady:e&&a,user:t,base:r,merged:o,setUserConfig:n})),[o,t,r,n,e,a])}function ma({children:e}){const t=da();return t.isReady?(0,l.createElement)(la.Provider,{value:t},e):null}const{useGlobalSetting:pa,useGlobalStyle:_a,useGlobalStylesOutput:ga}=nt(we.privateApis),ha={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},ya={hover:{opacity:1},start:{opacity:.5}},va={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}};var Ea=({label:e,isFocused:t,withHoverView:n})=>{const[a]=_a("typography.fontWeight"),[r="serif"]=_a("typography.fontFamily"),[o=r]=_a("elements.h1.typography.fontFamily"),[i=a]=_a("elements.h1.typography.fontWeight"),[s="black"]=_a("color.text"),[c=s]=_a("elements.h1.color.text"),[u="white"]=_a("color.background"),[d]=_a("color.gradient"),[m]=ga(),p=(0,re.useReducedMotion)(),[_]=pa("color.palette.core"),[g]=pa("color.palette.theme"),[h]=pa("color.palette.custom"),[y,E]=(0,l.useState)(!1),[f,{width:b}]=(0,re.useResizeObserver)(),w=b?b/248:1,S=(null!=g?g:[]).concat(null!=h?h:[]).concat(null!=_?_:[]),k=S.filter((({color:e})=>e!==u&&e!==c)).slice(0,2),C=(0,l.useMemo)((()=>m?[...m,{css:"html{overflow:hidden}body{min-width: 0;padding: 0;border: none;}",isGlobalStyles:!0}]:m),[m]),x=!!b;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{style:{position:"relative"}},f),x&&(0,l.createElement)(we.__unstableIframe,{className:"edit-site-global-styles-preview__iframe",style:{height:152*w},onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),tabIndex:-1},(0,l.createElement)(we.__unstableEditorStyles,{styles:C}),(0,l.createElement)(v.__unstableMotion.div,{style:{height:152*w,width:"100%",background:null!=d?d:u,cursor:n?"pointer":void 0},initial:"start",animate:(y||t)&&!p&&e?"hover":"start"},(0,l.createElement)(v.__unstableMotion.div,{variants:ha,style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(v.__experimentalHStack,{spacing:10*w,justify:"center",style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(v.__unstableMotion.div,{style:{fontFamily:o,fontSize:65*w,color:c,fontWeight:i},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"}},"Aa"),(0,l.createElement)(v.__experimentalVStack,{spacing:4*w},k.map((({slug:e,color:t},n)=>(0,l.createElement)(v.__unstableMotion.div,{key:e,style:{height:32*w,width:32*w,background:t,borderRadius:32*w/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:1===n?.2:.1}})))))),(0,l.createElement)(v.__unstableMotion.div,{variants:n&&ya,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1}},(0,l.createElement)(v.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"}},S.slice(0,4).map((({color:e},t)=>(0,l.createElement)("div",{key:t,style:{height:"100%",background:e,flexGrow:1}}))))),(0,l.createElement)(v.__unstableMotion.div,{variants:va,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0}},(0,l.createElement)(v.__experimentalVStack,{spacing:3*w,justify:"center",style:{height:"100%",overflow:"hidden",padding:10*w,boxSizing:"border-box"}},e&&(0,l.createElement)("div",{style:{fontSize:40*w,fontFamily:o,color:c,fontWeight:i,lineHeight:"1em",textAlign:"center"}},e))))))};const{GlobalStylesContext:fa,areGlobalStyleConfigsEqual:ba}=nt(we.privateApis);function wa({variation:e}){const[t,n]=(0,l.useState)(!1),{base:a,user:r,setUserConfig:o}=(0,l.useContext)(fa),i=(0,l.useMemo)((()=>{var t,n;return{user:{settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(n=e.styles)&&void 0!==n?n:{}},base:a,merged:ua(a,e),setUserConfig:()=>{}}}),[e,a]),s=()=>{o((()=>({settings:e.settings,styles:e.styles})))},c=(0,l.useMemo)((()=>ba(r,e)),[r,e]);let u=e?.title;return e?.description&&(u=(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),e?.title,e?.description)),(0,l.createElement)(fa.Provider,{value:i},(0,l.createElement)("div",{className:y()("edit-site-global-styles-variations_item",{"is-active":c}),role:"button",onClick:s,onKeyDown:e=>{e.keyCode===aa.ENTER&&(e.preventDefault(),s())},tabIndex:"0","aria-label":u,"aria-current":c,onFocus:()=>n(!0),onBlur:()=>n(!1)},(0,l.createElement)("div",{className:"edit-site-global-styles-variations_item-preview"},(0,l.createElement)(Ea,{label:e?.title,isFocused:t,withHoverView:!0}))))}function Sa(){const e=(0,d.useSelect)((e=>e(_.store).__experimentalGetCurrentThemeGlobalStylesVariations()),[]),t=(0,l.useMemo)((()=>[{title:(0,E.__)("Default"),settings:{},styles:{}},...(null!=e?e:[]).map((e=>{var t,n;return{...e,settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(n=e.styles)&&void 0!==n?n:{}}}))]),[e]);return(0,l.createElement)(v.__experimentalGrid,{columns:2,className:"edit-site-global-styles-style-variations-container"},t.map(((e,t)=>(0,l.createElement)(wa,{key:t,variation:e}))))}const ka=20;function Ca({variation:e="default",direction:t,resizeWidthBy:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("button",{className:`resizable-editor__drag-handle is-${t} is-variation-${e}`,"aria-label":(0,E.__)("Drag to resize"),"aria-describedby":`resizable-editor__resize-help-${t}`,onKeyDown:function(e){const{keyCode:a}=e;"left"===t&&a===aa.LEFT||"right"===t&&a===aa.RIGHT?n(ka):("left"===t&&a===aa.RIGHT||"right"===t&&a===aa.LEFT)&&n(-ka)}}),(0,l.createElement)(v.VisuallyHidden,{id:`resizable-editor__resize-help-${t}`},(0,E.__)("Use left and right arrow keys to resize the canvas.")))}const xa={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};var Ta=function({enableResizing:e,height:t,children:n}){const[a,r]=(0,l.useState)("100%"),o=(0,l.useRef)(),i=(0,l.useCallback)((e=>{o.current&&r(o.current.offsetWidth+e)}),[]);return(0,l.createElement)(v.ResizableBox,{ref:e=>{o.current=e?.resizable},size:{width:e?a:"100%",height:e&&t?t:"100%"},onResizeStop:(e,t,n)=>{r(n.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{right:e,left:e},showHandle:e,resizeRatio:2,handleComponent:{left:(0,l.createElement)(Ca,{direction:"left",resizeWidthBy:i}),right:(0,l.createElement)(Ca,{direction:"right",resizeWidthBy:i})},handleClasses:void 0,handleStyles:{left:xa,right:xa}},n)};function Na(e){switch(e){case"style-book":return(0,E.__)("Style Book");case"global-styles-revisions":return(0,E.__)("Global styles revisions");default:return""}}const{createPrivateSlotFill:Ma}=nt(v.privateApis),{privateKey:Pa,Slot:Ia,Fill:Ba}=Ma("EditSiteEditorCanvasContainerSlot");function Da({children:e,closeButtonLabel:t,onClose:n,enableResizing:a=!1}){const{editorCanvasContainerView:r,showListViewByDefault:o}=(0,d.useSelect)((e=>({editorCanvasContainerView:nt(e(Fn)).getEditorCanvasContainerView(),showListViewByDefault:e(x.store).get("core/edit-site","showListViewByDefault")})),[]),[i,s]=(0,l.useState)(!1),{setEditorCanvasContainerView:c}=nt((0,d.useDispatch)(Fn)),u=(0,re.useFocusOnMount)("firstElement"),m=(0,re.useFocusReturn)(),p=(0,l.useMemo)((()=>Na(r)),[r]),{setIsListViewOpened:_}=(0,d.useDispatch)(Fn);function g(){"function"==typeof n&&n(),_(o),c(void 0),s(!0)}const h=Array.isArray(e)?l.Children.map(e,((e,t)=>0===t?(0,l.cloneElement)(e,{ref:m}):e)):(0,l.cloneElement)(e,{ref:m});if(i)return null;const y=n||t;return(0,l.createElement)(Ba,null,(0,l.createElement)(Ta,{enableResizing:a},(0,l.createElement)("section",{className:"edit-site-editor-canvas-container",ref:y?u:null,onKeyDown:function(e){e.keyCode!==aa.ESCAPE||e.defaultPrevented||(e.preventDefault(),g())},"aria-label":p},y&&(0,l.createElement)(v.Button,{className:"edit-site-editor-canvas-container__close-button",icon:C,label:t||(0,E.__)("Close"),onClick:g,showTooltip:!1}),h)))}Da.Slot=Ia;var Ra=Da;const{ExperimentalBlockEditorProvider:La,useGlobalStyle:Aa}=nt(we.privateApis);function Fa(){return[{name:"core/heading",title:(0,E.__)("Headings"),category:"text",blocks:[(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:1}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:2}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:3}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:4}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:5})]},...(0,c.getBlockTypes)().filter((e=>{const{name:t,example:n,supports:a}=e;return"core/heading"!==t&&!!n&&!1!==a.inserter})).map((e=>({name:e.name,title:e.title,category:e.category,blocks:(0,c.getBlockFromExample)(e.name,e.example)})))]}const Va=({category:e,examples:t,isSelected:n,onClick:a,onSelect:r,settings:o,sizes:i,title:s})=>{const[c,u]=(0,l.useState)(!1),d={role:"button",onFocus:()=>u(!0),onBlur:()=>u(!1),onKeyDown:e=>{if(e.defaultPrevented)return;const{keyCode:t}=e;!a||t!==aa.ENTER&&t!==aa.SPACE||(e.preventDefault(),a(e))},onClick:e=>{e.defaultPrevented||a&&(e.preventDefault(),a(e))},readonly:!0},m=a?"body { cursor: pointer; } body * { pointer-events: none; }":"";return(0,l.createElement)(we.__unstableIframe,{className:y()("edit-site-style-book__iframe",{"is-focused":c&&!!a,"is-button":!!a}),name:"style-book-canvas",tabIndex:0,...a?d:{}},(0,l.createElement)(we.__unstableEditorStyles,{styles:o.styles}),(0,l.createElement)("style",null,'.is-root-container { display: flow-root; }\n\t\t\t\t\t\tbody { position: relative; padding: 32px !important; }\n\t.edit-site-style-book__examples {\n\t\tmax-width: 900px;\n\t\tmargin: 0 auto;\n\t}\n\n\t.edit-site-style-book__example {\n\t\tborder-radius: 2px;\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 40px;\n\t\tmargin-bottom: 40px;\n\t\tpadding: 16px;\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t}\n\n\t.edit-site-style-book__example.is-selected {\n\t\tbox-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t}\n\n\t.edit-site-style-book__example:focus:not(:disabled) {\n\t\tbox-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t\toutline: 3px solid transparent;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example {\n\t\tflex-direction: row;\n\t}\n\n\t.edit-site-style-book__example-title {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\tfont-size: 11px;\n\t\tfont-weight: 500;\n\t\tline-height: normal;\n\t\tmargin: 0;\n\t\ttext-align: left;\n\t\ttext-transform: uppercase;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example-title {\n\t\ttext-align: right;\n\t\twidth: 120px;\n\t}\n\n\t.edit-site-style-book__example-preview {\n\t\twidth: 100%;\n\t}\n\n\t.edit-site-style-book__example-preview .block-editor-block-list__insertion-point,\n\t.edit-site-style-book__example-preview .block-list-appender {\n\t\tdisplay: none;\n\t}\n\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:first-child {\n\t\tmargin-top: 0;\n\t}\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:last-child {\n\t\tmargin-bottom: 0;\n\t}\n'+m),(0,l.createElement)(za,{className:y()("edit-site-style-book__examples",{"is-wide":i.width>600}),examples:t,category:e,label:s?(0,E.sprintf)((0,E.__)("Examples of blocks in the %s category"),s):(0,E.__)("Examples of blocks"),isSelected:n,onSelect:r}))},za=(0,l.memo)((({className:e,examples:t,category:n,label:a,isSelected:r,onSelect:o})=>{const i=(0,v.__unstableUseCompositeState)({orientation:"vertical"});return(0,l.createElement)(v.__unstableComposite,{...i,className:e,"aria-label":a},t.filter((e=>!n||e.category===n)).map((e=>(0,l.createElement)(Oa,{key:e.name,id:`example-${e.name}`,composite:i,title:e.title,blocks:e.blocks,isSelected:r(e.name),onClick:()=>{o?.(e.name)}}))))})),Oa=({composite:e,id:t,title:n,blocks:a,isSelected:r,onClick:o})=>{const i=(0,d.useSelect)((e=>e(we.store).getSettings()),[]),s=(0,l.useMemo)((()=>({...i,__unstableIsPreviewMode:!0})),[i]),c=(0,l.useMemo)((()=>Array.isArray(a)?a:[a]),[a]);return(0,l.createElement)(v.__unstableCompositeItem,{...e,className:y()("edit-site-style-book__example",{"is-selected":r}),id:t,"aria-label":(0,E.sprintf)((0,E.__)("Open %s styles in Styles panel"),n),onClick:o,role:"button",as:"div"},(0,l.createElement)("span",{className:"edit-site-style-book__example-title"},n),(0,l.createElement)("div",{className:"edit-site-style-book__example-preview","aria-hidden":!0},(0,l.createElement)(v.Disabled,{className:"edit-site-style-book__example-preview__content"},(0,l.createElement)(La,{value:c,settings:s},(0,l.createElement)(we.BlockList,{renderAppender:!1})))))};var Ha=function({enableResizing:e=!0,isSelected:t,onClick:n,onSelect:a,showCloseButton:r=!0,showTabs:o=!0}){const[i,s]=(0,re.useResizeObserver)(),[u]=Aa("color.text"),[m]=Aa("color.background"),p=(0,l.useMemo)(Fa,[]),_=(0,l.useMemo)((()=>(0,c.getCategories)().filter((e=>p.some((t=>t.category===e.slug)))).map((e=>({name:e.slug,title:e.title,icon:e.icon})))),[p]),g=(0,d.useSelect)((e=>e(we.store).getSettings()),[]),h=(0,l.useMemo)((()=>({...g,__unstableIsPreviewMode:!0})),[g]);return(0,l.createElement)(Ra,{enableResizing:e,closeButtonLabel:r?(0,E.__)("Close Style Book"):null},(0,l.createElement)("div",{className:y()("edit-site-style-book",{"is-wide":s.width>600,"is-button":!!n}),style:{color:u,background:m}},i,o?(0,l.createElement)(v.TabPanel,{className:"edit-site-style-book__tab-panel",tabs:_},(e=>(0,l.createElement)(Va,{category:e.name,examples:p,isSelected:t,onSelect:a,settings:h,sizes:s,title:e.title}))):(0,l.createElement)(Va,{examples:p,isSelected:t,onClick:n,onSelect:a,settings:h,sizes:s})))};const Ga={per_page:-1,_fields:"id,name,avatar_urls",context:"view",capabilities:["edit_theme_options"]},Ua=[],{GlobalStylesContext:$a}=nt(we.privateApis);function ja(){const{user:e}=(0,l.useContext)($a),{authors:t,currentUser:n,isDirty:a,revisions:r,isLoadingGlobalStylesRevisions:o}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,getCurrentUser:n,getUsers:a,getCurrentThemeGlobalStylesRevisions:r,isResolving:o}=e(_.store),i=t(),s=n(),l=i.length>0,c=r()||Ua;return{authors:a(Ga)||Ua,currentUser:s,isDirty:l,revisions:c,isLoadingGlobalStylesRevisions:o("getCurrentThemeGlobalStylesRevisions")}}),[]);return(0,l.useMemo)((()=>{let i=[];if(!t.length||o)return{revisions:i,hasUnsavedChanges:a,isLoading:!0};if(i=r.map((e=>({...e,author:t.find((t=>t.id===e.author))}))),i.length&&("unsaved"!==i[0].id&&(i[0].isLatest=!0),a&&e&&Object.keys(e).length>0&&n)){const t={id:"unsaved",styles:e?.styles,settings:e?.settings,author:{name:n?.name,avatar_urls:n?.avatar_urls},modified:new Date};i.unshift(t)}return{revisions:i,hasUnsavedChanges:a,isLoading:!1}}),[a,r,n,t,e,o])}const Wa=()=>{};function Za(e){const{openGeneralSidebar:t}=(0,d.useDispatch)(Fn),{setCanvasMode:n}=nt((0,d.useDispatch)(Fn)),{createNotice:a}=(0,d.useDispatch)(Se.store),{set:r}=(0,d.useDispatch)(x.store),{get:o}=(0,d.useSelect)(x.store),i=(0,l.useCallback)((()=>{o(Fn.name,"distractionFree")&&(r(Fn.name,"distractionFree",!1),a("info",(0,E.__)("Distraction free mode turned off"),{isDismissible:!0,type:"snackbar"}))}),[a,r,o]);return(0,d.useSelect)((e=>!!e(_.store).__experimentalGetCurrentThemeGlobalStylesVariations()?.length),[])?(0,l.createElement)(v.__experimentalNavigatorButton,{...e,as:Xn,path:"/wp_global_styles"}):(0,l.createElement)(Xn,{...e,onClick:()=>{i(),n("edit"),t("edit-site/global-styles")}})}function qa(){const{storedSettings:e}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Fn));return{storedSettings:t(!1)}}),[]);return(0,l.createElement)(we.BlockEditorProvider,{settings:e,onChange:Wa,onInput:Wa},(0,l.createElement)(Sa,null))}function Ya({modifiedDateTime:e,onClickRevisions:t}){return(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-sidebar-navigation-screen-global-styles__footer"},(0,l.createElement)(Xn,{className:"edit-site-sidebar-navigation-screen-global-styles__revisions",label:(0,E.__)("Revisions"),onClick:t},(0,l.createElement)(v.__experimentalVStack,{as:"span",alignment:"center",spacing:5,direction:"row",justify:"space-between"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-global-styles__revisions__label"},(0,E.__)("Last modified")),(0,l.createElement)("span",null,(0,l.createElement)("time",{dateTime:e},(0,na.humanTimeDiff)(e))),(0,l.createElement)(v.Icon,{icon:Qn,style:{fill:"currentcolor"}}))))}function Ka(){const{revisions:e,isLoading:t}=ja(),{openGeneralSidebar:n,setIsListViewOpened:a}=(0,d.useDispatch)(Fn),r=(0,re.useViewportMatch)("medium","<"),{setCanvasMode:o,setEditorCanvasContainerView:i}=nt((0,d.useDispatch)(Fn)),{createNotice:s}=(0,d.useDispatch)(Se.store),{set:c}=(0,d.useDispatch)(x.store),{get:u}=(0,d.useSelect)(x.store),{isViewMode:m,isStyleBookOpened:p,revisionsCount:g}=(0,d.useSelect)((e=>{var t;const{getCanvasMode:n,getEditorCanvasContainerView:a}=nt(e(Fn)),{getEntityRecord:r,__experimentalGetCurrentGlobalStylesId:o}=e(_.store),i=o(),s=i?r("root","globalStyles",i):void 0;return{isViewMode:"view"===n(),isStyleBookOpened:"style-book"===a(),revisionsCount:null!==(t=s?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}}),[]),h=(0,l.useCallback)((()=>{u(Fn.name,"distractionFree")&&(c(Fn.name,"distractionFree",!1),s("info",(0,E.__)("Distraction free mode turned off"),{isDismissible:!0,type:"snackbar"}))}),[s,c,u]),y=(0,l.useCallback)((async()=>(h(),Promise.all([o("edit"),n("edit-site/global-styles")]))),[o,n,h]),v=(0,l.useCallback)((async()=>{await y(),i("style-book"),a(!1)}),[y,i,a]),f=(0,l.useCallback)((async()=>{await y(),i("global-styles-revisions")}),[y,i]),b=g>=2,w=e?.[0]?.modified,S=b&&!t&&w;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(qn,{title:(0,E.__)("Styles"),description:(0,E.__)("Choose a different style combination for the theme styles."),content:(0,l.createElement)(qa,null),footer:S&&(0,l.createElement)(Ya,{modifiedDateTime:w,onClickRevisions:f}),actions:(0,l.createElement)(l.Fragment,null,!r&&(0,l.createElement)(Wn,{icon:Jn,label:(0,E.__)("Style Book"),onClick:()=>i(p?void 0:"style-book"),isPressed:p}),(0,l.createElement)(Wn,{icon:ta,label:(0,E.__)("Edit styles"),onClick:async()=>await y()}))}),p&&!r&&m&&(0,l.createElement)(Ha,{enableResizing:!1,isSelected:()=>!1,onClick:v,onSelect:v,showCloseButton:!1,showTabs:!1}))}const Xa="isTemplatePartMoveHintVisible";function Qa(){const e=(0,d.useSelect)((e=>{var t;return null===(t=e(x.store).get("core",Xa))||void 0===t||t}),[]),{set:t}=(0,d.useDispatch)(x.store);return e?(0,l.createElement)(v.Notice,{politeness:"polite",className:"edit-site-sidebar__notice",onRemove:()=>{t("core",Xa,!1)}},(0,E.__)('Looking for template parts? Find them in "Patterns".')):null}function Ja(){const{location:e}=(0,v.__experimentalUseNavigator)(),{setEditorCanvasContainerView:t}=nt((0,d.useDispatch)(Fn));return(0,l.useEffect)((()=>{"/"===e?.path&&t(void 0)}),[t,e?.path]),(0,l.createElement)(qn,{isRoot:!0,title:(0,E.__)("Design"),description:(0,E.__)("Customize the appearance of your website using the block editor."),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalItemGroup,null,(0,l.createElement)(v.__experimentalNavigatorButton,{as:Xn,path:"/navigation",withChevron:!0,icon:Hn},(0,E.__)("Navigation")),(0,l.createElement)(Za,{withChevron:!0,icon:Gn},(0,E.__)("Styles")),(0,l.createElement)(v.__experimentalNavigatorButton,{as:Xn,path:"/page",withChevron:!0,icon:Un},(0,E.__)("Pages")),(0,l.createElement)(v.__experimentalNavigatorButton,{as:Xn,path:"/wp_template",withChevron:!0,icon:$n},(0,E.__)("Templates")),(0,l.createElement)(v.__experimentalNavigatorButton,{as:Xn,path:"/patterns",withChevron:!0,icon:jn},(0,E.__)("Patterns"))),(0,l.createElement)(Qa,null))})}var er=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}));var tr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"}));var nr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"}));var ar=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"}));var rr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));var or=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v10zm-11-7.6h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-.9 3.5H6.3l1.2-1.7v1.7zm5.6-3.2c-.4-.2-.8-.4-1.2-.4-.5 0-.9.1-1.2.4-.4.2-.6.6-.8 1-.2.4-.3.9-.3 1.5s.1 1.1.3 1.6c.2.4.5.8.8 1 .4.2.8.4 1.2.4.5 0 .9-.1 1.2-.4.4-.2.6-.6.8-1 .2-.4.3-1 .3-1.6 0-.6-.1-1.1-.3-1.5-.1-.5-.4-.8-.8-1zm0 3.6c-.1.3-.3.5-.5.7-.2.1-.4.2-.7.2-.3 0-.5-.1-.7-.2-.2-.1-.4-.4-.5-.7-.1-.3-.2-.7-.2-1.2 0-.7.1-1.2.4-1.5.3-.3.6-.5 1-.5s.7.2 1 .5c.3.3.4.8.4 1.5-.1.5-.1.9-.2 1.2zm5-3.9h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-1 3.5H16l1.2-1.7v1.7z"}));var ir=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"}));var sr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"}));var lr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"}));var cr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M8.95 11.25H4v1.5h4.95v4.5H13V18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75h-2.55v-7.5H13V9c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75H8.95v4.5ZM14.5 15v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5Zm0-6V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5Z",clipRule:"evenodd"}));var ur=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));var dr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var mr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"}));var pr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));function _r(e=""){const[t,n]=(0,l.useState)(e),[a,r]=(0,l.useState)(e),o=(0,re.useDebounce)(r,250);return(0,l.useEffect)((()=>{a!==t&&o(t)}),[a,t]),[t,n,a]}var gr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));const hr=(e,t)=>(e||[]).map((e=>({...e,name:(0,It.decodeEntities)((0,be.get)(e,t))}))),yr=()=>(0,d.useSelect)((e=>e(_.store).getEntityRecords("postType","wp_template",{per_page:-1})),[]),vr=()=>(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplateTypes()),[]),Er=()=>{const e=(0,d.useSelect)((e=>e(_.store).getPostTypes({per_page:-1})),[]);return(0,l.useMemo)((()=>{const t=["attachment"];return e?.filter((({viewable:e,slug:n})=>e&&!t.includes(n)))}),[e])};function fr(e){const t=(0,l.useMemo)((()=>e?.reduce(((e,{labels:t})=>{const n=t.singular_name.toLowerCase();return e[n]=(e[n]||0)+1,e}),{})));return(0,l.useCallback)((({labels:e,slug:n})=>{const a=e.singular_name.toLowerCase();return t[a]>1&&a!==n}),[t])}function br(){const e=Er(),t=(0,l.useMemo)((()=>e?.filter((e=>e.has_archive))),[e]),n=yr(),a=fr(t);return(0,l.useMemo)((()=>t?.filter((e=>!(n||[]).some((t=>t.slug==="archive-"+e.slug)))).map((e=>{let t;return t=a(e)?(0,E.sprintf)((0,E.__)("Archive: %1$s (%2$s)"),e.labels.singular_name,e.slug):(0,E.sprintf)((0,E.__)("Archive: %s"),e.labels.singular_name),{slug:"archive-"+e.slug,description:(0,E.sprintf)((0,E.__)("Displays an archive with the latest posts of type: %s."),e.labels.singular_name),title:t,icon:e.icon?.startsWith("dashicons-")?e.icon.slice(10):ar,templatePrefix:"archive"}}))||[]),[t,n,a])}const wr=e=>{const t=Er(),n=yr(),a=vr(),r=fr(t),o=(0,l.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let n=t;return"page"!==t&&(n=`single-${n}`),e[t]=n,e}),{})),[t]),i=Tr("postType",o),s=(n||[]).map((({slug:e})=>e)),c=(t||[]).reduce(((t,n)=>{const{slug:l,labels:c,icon:u}=n,d=o[l],m=a?.find((({slug:e})=>e===d)),p=s?.includes(d),_=r(n);let g=(0,E.sprintf)((0,E.__)("Single item: %s"),c.singular_name);_&&(g=(0,E.sprintf)((0,E.__)("Single item: %1$s (%2$s)"),c.singular_name,l));const h=m?{...m,templatePrefix:o[l]}:{slug:d,title:g,description:(0,E.sprintf)((0,E.__)("Displays a single item: %s."),c.singular_name),icon:u?.startsWith("dashicons-")?u.slice(10):gr,templatePrefix:o[l]},y=i?.[l]?.hasEntities;return y&&(h.onClick=t=>{e({type:"postType",slug:l,config:{recordNamePath:"title.rendered",queryArgs:({search:e})=>({_fields:"id,title,slug,link",orderBy:e?"relevance":"modified",exclude:i[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${o[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:o[l]}}},labels:c,hasGeneralTemplate:p,template:t})}),p&&!y||t.push(h),t}),[]),u=(0,l.useMemo)((()=>c.reduce(((e,t)=>{const{slug:n}=t;let a="postTypesMenuItems";return"page"===n&&(a="defaultPostTypesMenuItems"),e[a].push(t),e}),{defaultPostTypesMenuItems:[],postTypesMenuItems:[]})),[c]);return u},Sr=e=>{const t=(()=>{const e=(0,d.useSelect)((e=>e(_.store).getTaxonomies({per_page:-1})),[]);return(0,l.useMemo)((()=>e?.filter((({visibility:e})=>e?.publicly_queryable))),[e])})(),n=yr(),a=vr(),r=(0,l.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let n=t;return["category","post_tag"].includes(t)||(n=`taxonomy-${n}`),"post_tag"===t&&(n="tag"),e[t]=n,e}),{})),[t]),o=t?.reduce(((e,{labels:t})=>{const n=t.singular_name.toLowerCase();return e[n]=(e[n]||0)+1,e}),{}),i=Tr("taxonomy",r),s=(n||[]).map((({slug:e})=>e)),c=(t||[]).reduce(((t,n)=>{const{slug:l,labels:c}=n,u=r[l],d=a?.find((({slug:e})=>e===u)),m=s?.includes(u),p=((e,t)=>{if(["category","post_tag"].includes(t))return!1;const n=e.singular_name.toLowerCase();return o[n]>1&&n!==t})(c,l);let _=c.singular_name;p&&(_=(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),c.singular_name,l));const g=d?{...d,templatePrefix:r[l]}:{slug:u,title:_,description:(0,E.sprintf)((0,E.__)("Displays taxonomy: %s."),c.singular_name),icon:cr,templatePrefix:r[l]},h=i?.[l]?.hasEntities;return h&&(g.onClick=t=>{e({type:"taxonomy",slug:l,config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"count",exclude:i[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${r[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:r[l]}}},labels:c,hasGeneralTemplate:m,template:t})}),m&&!h||t.push(g),t}),[]);return(0,l.useMemo)((()=>c.reduce(((e,t)=>{const{slug:n}=t;let a="taxonomiesMenuItems";return["category","tag"].includes(n)&&(a="defaultTaxonomiesMenuItems"),e[a].push(t),e}),{defaultTaxonomiesMenuItems:[],taxonomiesMenuItems:[]})),[c])},kr={user:"author"},Cr={user:{who:"authors"}};const xr=(e,t,n={})=>{const a=(e=>{const t=yr();return(0,l.useMemo)((()=>Object.entries(e||{}).reduce(((e,[n,a])=>{const r=(t||[]).reduce(((e,t)=>{const n=`${a}-`;return t.slug.startsWith(n)&&e.push(t.slug.substring(n.length)),e}),[]);return r.length&&(e[n]=r),e}),{})),[e,t])})(t);return(0,d.useSelect)((t=>Object.entries(a||{}).reduce(((a,[r,o])=>{const i=t(_.store).getEntityRecords(e,r,{_fields:"id",context:"view",slug:o,...n[r]});return i?.length&&(a[r]=i),a}),{})),[a])},Tr=(e,t,n={})=>{const a=xr(e,t,n);return(0,d.useSelect)((r=>Object.keys(t||{}).reduce(((t,o)=>{const i=a?.[o]?.map((({id:e})=>e))||[];return t[o]={hasEntities:!!r(_.store).getEntityRecords(e,o,{per_page:1,_fields:"id",context:"view",exclude:i,...n[o]})?.length,existingEntitiesIds:i},t}),{})),[t,a])},Nr=[];function Mr({suggestion:e,search:t,onSelect:n,entityForSuggestions:a,composite:r}){const o="edit-site-custom-template-modal__suggestions_list__list-item";return(0,l.createElement)(v.__unstableCompositeItem,{role:"option",as:v.Button,...r,className:o,onClick:()=>n(a.config.getSpecificTemplate(e))},(0,l.createElement)(v.__experimentalText,{size:"body",lineHeight:1.53846153846,weight:500,className:`${o}__title`},(0,l.createElement)(v.TextHighlight,{text:(0,It.decodeEntities)(e.name),highlight:t})),e.link&&(0,l.createElement)(v.__experimentalText,{size:"body",lineHeight:1.53846153846,className:`${o}__info`},e.link))}function Pr({entityForSuggestions:e,onSelect:t}){const n=(0,v.__unstableUseCompositeState)({orientation:"vertical"}),[a,r,o]=_r(),i=function(e,t){const{config:n}=e,a=(0,l.useMemo)((()=>({order:"asc",context:"view",search:t,per_page:t?20:10,...n.queryArgs(t)})),[t,n]),{records:r,hasResolved:o}=(0,_.useEntityRecords)(e.type,e.slug,a),[i,s]=(0,l.useState)(Nr);return(0,l.useEffect)((()=>{if(!o)return;let e=Nr;r?.length&&(e=r,n.recordNamePath&&(e=hr(e,n.recordNamePath))),s(e)}),[r,o]),i}(e,o),{labels:s}=e,[c,u]=(0,l.useState)(!1);return!c&&i?.length>9&&u(!0),(0,l.createElement)(l.Fragment,null,c&&(0,l.createElement)(v.SearchControl,{__nextHasNoMarginBottom:!0,onChange:r,value:a,label:s.search_items,placeholder:s.search_items}),!!i?.length&&(0,l.createElement)(v.__unstableComposite,{...n,role:"listbox",className:"edit-site-custom-template-modal__suggestions_list","aria-label":(0,E.__)("Suggestions list")},i.map((a=>(0,l.createElement)(Mr,{key:a.slug,suggestion:a,search:o,onSelect:t,entityForSuggestions:e,composite:n})))),o&&!i?.length&&(0,l.createElement)(v.__experimentalText,{as:"p",className:"edit-site-custom-template-modal__no-results"},s.not_found))}var Ir=function({onSelect:e,entityForSuggestions:t}){const[n,a]=(0,l.useState)(t.hasGeneralTemplate);return(0,l.createElement)(v.__experimentalVStack,{spacing:4,className:"edit-site-custom-template-modal__contents-wrapper",alignment:"left"},!n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalText,{as:"p"},(0,E.__)("Select whether to create a single template for all items or a specific one.")),(0,l.createElement)(v.Flex,{className:"edit-site-custom-template-modal__contents",gap:"4",align:"initial"},(0,l.createElement)(v.FlexItem,{isBlock:!0,as:v.Button,onClick:()=>{const{slug:n,title:a,description:r,templatePrefix:o}=t.template;e({slug:n,title:a,description:r,templatePrefix:o})}},(0,l.createElement)(v.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846},t.labels.all_items),(0,l.createElement)(v.__experimentalText,{as:"span",lineHeight:1.53846153846},(0,E.__)("For all items"))),(0,l.createElement)(v.FlexItem,{isBlock:!0,as:v.Button,onClick:()=>{a(!0)}},(0,l.createElement)(v.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846},t.labels.singular_name),(0,l.createElement)(v.__experimentalText,{as:"span",lineHeight:1.53846153846},(0,E.__)("For a specific item"))))),n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalText,{as:"p"},(0,E.__)("This template will be used only for the specific item chosen.")),(0,l.createElement)(Pr,{entityForSuggestions:t,onSelect:e})))};var Br=function({onClose:e,createTemplate:t}){const[n,a]=(0,l.useState)(""),r=(0,E.__)("Custom Template"),[o,i]=(0,l.useState)(!1);return(0,l.createElement)("form",{onSubmit:async function(e){if(e.preventDefault(),!o){i(!0);try{await t({slug:"wp-custom-template-"+(0,be.kebabCase)(n||r),title:n||r},!1)}finally{i(!1)}}}},(0,l.createElement)(v.__experimentalVStack,{spacing:6},(0,l.createElement)(v.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:n,onChange:a,placeholder:r,disabled:o,help:(0,E.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,l.createElement)(v.__experimentalHStack,{className:"edit-site-custom-generic-template__modal-actions",justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>{e()}},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit",isBusy:o,"aria-disabled":o},(0,E.__)("Create")))))};function Dr(){const e="edit-site-template-actions-loading-screen-modal";return(0,l.createElement)(v.Modal,{isFullScreen:!0,isDismissible:!1,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,onRequestClose:()=>{},__experimentalHideHeader:!0,className:e},(0,l.createElement)("div",{className:`${e}__content`},(0,l.createElement)(v.Spinner,null)))}const{useHistory:Rr}=nt(pt.privateApis),Lr=["front-page","home","single","page","index","archive","author","category","date","tag","search","404"],Ar={"front-page":er,home:tr,single:nr,page:Un,archive:ar,search:rr,404:or,index:ir,category:sr,author:lr,taxonomy:cr,date:ur,tag:dr,attachment:mr};function Fr({title:e,direction:t,className:n,description:a,icon:r,onClick:o,children:i}){return(0,l.createElement)(v.Button,{className:n,onClick:o,label:a,showTooltip:!!a},(0,l.createElement)(v.Flex,{as:"span",spacing:2,align:"center",justify:"center",style:{width:"100%"},direction:t},(0,l.createElement)("div",{className:"edit-site-add-new-template__template-icon"},(0,l.createElement)(v.Icon,{icon:r})),(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-add-new-template__template-name",alignment:"center",spacing:0},(0,l.createElement)(v.__experimentalText,{weight:500,lineHeight:1.53846153846},e),i)))}const Vr={templatesList:1,customTemplate:2,customGenericTemplate:3};function zr({postType:e,toggleProps:t,showIcon:n=!0}){const[a,r]=(0,l.useState)(!1),[o,i]=(0,l.useState)(Vr.templatesList),[s,c]=(0,l.useState)({}),[u,m]=(0,l.useState)(!1),p=Rr(),{saveEntityRecord:g}=(0,d.useDispatch)(_.store),{createErrorNotice:h,createSuccessNotice:f}=(0,d.useDispatch)(Se.store),{setTemplate:b}=nt((0,d.useDispatch)(Fn)),{homeUrl:w}=(0,d.useSelect)((e=>{const{getUnstableBase:t}=e(_.store);return{homeUrl:t()?.home}}),[]),S={"front-page":w,date:(0,E.sprintf)((0,E.__)("E.g. %s"),w+"/"+(new Date).getFullYear())};async function k(e,t=!0){if(!u){m(!0);try{const{title:n,description:a,slug:r}=e,o=await g("postType","wp_template",{description:a,slug:r.toString(),status:"publish",title:n,is_wp_suggestion:t},{throwOnError:!0});b(o.id,o.slug),p.push({postId:o.id,postType:o.type,canvas:"edit"}),f((0,E.sprintf)((0,E.__)('"%s" successfully created.'),(0,It.decodeEntities)(o.title?.rendered||n)),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the template.");h(t,{type:"snackbar"})}finally{m(!1)}}}const C=()=>{r(!1),i(Vr.templatesList)},x=function(e,t){const n=yr(),a=vr(),r=(n||[]).map((({slug:e})=>e)),o=(a||[]).filter((e=>Lr.includes(e.slug)&&!r.includes(e.slug))),i=n=>{t?.(),e(n)},s=[...o],{defaultTaxonomiesMenuItems:l,taxonomiesMenuItems:c}=Sr(i),{defaultPostTypesMenuItems:u,postTypesMenuItems:d}=wr(i),m=function(e){const t=yr(),n=vr(),a=Tr("root",kr,Cr);let r=n?.find((({slug:e})=>"author"===e));r||(r={description:(0,E.__)("Displays latest posts written by a single author."),slug:"author",title:"Author"});const o=!!t?.find((({slug:e})=>"author"===e));if(a.user?.hasEntities&&(r={...r,templatePrefix:"author"},r.onClick=t=>{e({type:"root",slug:"user",config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"registered_date",exclude:a.user.existingEntitiesIds,who:"authors"}),getSpecificTemplate:e=>{const t=`author-${e.slug}`;return{title:t,slug:t,templatePrefix:"author"}}},labels:{singular_name:(0,E.__)("Author"),search_items:(0,E.__)("Search Authors"),not_found:(0,E.__)("No authors found."),all_items:(0,E.__)("All Authors")},hasGeneralTemplate:o,template:t})}),!o||a.user?.hasEntities)return r}(i);[...l,...u,m].forEach((e=>{if(!e)return;const t=s.findIndex((t=>t.slug===e.slug));t>-1?s[t]=e:s.push(e)})),s?.sort(((e,t)=>Lr.indexOf(e.slug)-Lr.indexOf(t.slug)));const p=[...s,...br(),...d,...c];return p}(c,(()=>i(Vr.customTemplate)));if(!x.length)return null;const{as:T=v.Button,...N}=null!=t?t:{};let M=(0,E.__)("Add template");return o===Vr.customTemplate?M=(0,E.sprintf)((0,E.__)("Add template: %s"),s.labels.singular_name):o===Vr.customGenericTemplate&&(M=(0,E.__)("Create custom template")),(0,l.createElement)(l.Fragment,null,u&&(0,l.createElement)(Dr,null),(0,l.createElement)(T,{...N,onClick:()=>r(!0),icon:n?pr:null,label:e.labels.add_new_item},n?null:e.labels.add_new_item),a&&(0,l.createElement)(v.Modal,{title:M,className:y()("edit-site-add-new-template__modal",{"edit-site-add-new-template__modal_template_list":o===Vr.templatesList,"edit-site-custom-template-modal":o===Vr.customTemplate}),onRequestClose:C,overlayClassName:o===Vr.customGenericTemplate?"edit-site-custom-generic-template__modal":void 0},o===Vr.templatesList&&(0,l.createElement)(v.__experimentalGrid,{columns:3,gap:4,align:"flex-start",justify:"center",className:"edit-site-add-new-template__template-list__contents"},(0,l.createElement)(v.Flex,{className:"edit-site-add-new-template__template-list__prompt"},(0,E.__)("Select what the new template should apply to:")),x.map((e=>{const{title:t,slug:n,onClick:a}=e;return(0,l.createElement)(Fr,{key:n,title:t,direction:"column",className:"edit-site-add-new-template__template-button",description:S[n],icon:Ar[n]||$n,onClick:()=>a?a(e):k(e)})})),(0,l.createElement)(Fr,{title:(0,E.__)("Custom template"),direction:"row",className:"edit-site-add-new-template__custom-template-button",icon:ta,onClick:()=>i(Vr.customGenericTemplate)},(0,l.createElement)(v.__experimentalText,{lineHeight:1.53846153846},(0,E.__)("A custom template can be manually applied to any post or page.")))),o===Vr.customTemplate&&(0,l.createElement)(Ir,{onSelect:k,entityForSuggestions:s}),o===Vr.customGenericTemplate&&(0,l.createElement)(Br,{onClose:C,createTemplate:k})))}function Or({templateType:e="wp_template",...t}){const n=(0,d.useSelect)((t=>t(_.store).getPostType(e)),[e]);return n&&"wp_template"===e?(0,l.createElement)(zr,{...t,postType:n}):null}const Hr=({postType:e,postId:t,...n})=>{const a=vt({postType:e,postId:t});return(0,l.createElement)(Xn,{...a,...n})};function Gr(){const e=(0,re.useViewportMatch)("medium","<"),{records:t,isResolving:n}=(0,_.useEntityRecords)("postType","wp_template",{per_page:-1}),a=t?[...t]:[];a.sort(((e,t)=>e.title.rendered.localeCompare(t.title.rendered)));const r=vt({path:"/wp_template/all"}),o=!e;return(0,l.createElement)(qn,{title:(0,E.__)("Templates"),description:(0,E.__)("Express the layout of your site with templates"),actions:o&&(0,l.createElement)(Or,{templateType:"wp_template",toggleProps:{as:Wn}}),content:(0,l.createElement)(l.Fragment,null,n&&(0,E.__)("Loading templates"),!n&&(0,l.createElement)(v.__experimentalItemGroup,null,!t?.length&&(0,l.createElement)(v.__experimentalItem,null,(0,E.__)("No templates found")),a.map((e=>(0,l.createElement)(Hr,{postType:"wp_template",postId:e.id,key:e.id,withChevron:!0},(0,It.decodeEntities)(e.title?.rendered||e.slug)))))),footer:!e&&(0,l.createElement)(Xn,{withChevron:!0,...r},(0,E.__)("Manage all templates"))})}function Ur(e,t){const{record:n,title:a,description:r,isLoaded:o,icon:i}=(0,d.useSelect)((n=>{const{getEditedPostType:a,getEditedPostId:r}=n(Fn),{getEditedEntityRecord:o,hasFinishedResolution:i}=n(_.store),{__experimentalGetTemplateInfo:s}=n(g.store),l=null!=e?e:a(),c=null!=t?t:r(),u=o("postType",l,c),d=c&&i("getEditedEntityRecord",["postType",l,c]),m=s(u);return{record:u,title:m.title,description:m.description,isLoaded:d,icon:m.icon}}),[e,t]);return{isLoaded:o,icon:i,record:n,getTitle:()=>a?(0,It.decodeEntities)(a):null,getDescription:()=>r?(0,It.decodeEntities)(r):null}}var $r=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));var jr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));const Wr=["wp_template","wp_template_part"];function Zr(e,t){return(0,d.useSelect)((n=>{const{getTheme:a,getPlugin:r,getEntityRecord:o,getMedia:i,getUser:s,getEditedEntityRecord:l}=n(_.store),c=l("postType",e,t);if(Wr.includes(c.type)){if(c.has_theme_file&&("theme"===c.origin||!c.origin&&["theme","custom"].includes(c.source)))return{type:"theme",icon:$n,text:a(c.theme)?.name?.rendered||c.theme,isCustomized:"custom"===c.source};if(c.has_theme_file&&"plugin"===c.origin)return{type:"plugin",icon:$r,text:r(c.theme)?.name||c.theme,isCustomized:"custom"===c.source};if(!c.has_theme_file&&"custom"===c.source&&!c.author){const e=o("root","__unstableBase");return{type:"site",icon:jr,imageUrl:e?.site_logo?i(e.site_logo)?.source_url:void 0,text:e?.name,isCustomized:!1}}}const u=s(c.author);return{type:"user",icon:lr,imageUrl:u?.avatar_urls?.[48],text:u?.nickname,isCustomized:!1}}),[e,t])}function qr({imageUrl:e}){const[t,n]=(0,l.useState)(!1);return(0,l.createElement)("div",{className:y()("edit-site-list-added-by__avatar",{"is-loaded":t})},(0,l.createElement)("img",{onLoad:()=>n(!0),alt:"",src:e}))}function Yr({postType:e,postId:t}){const{text:n,icon:a,imageUrl:r,isCustomized:o}=Zr(e,t);return(0,l.createElement)(v.__experimentalHStack,{alignment:"left"},r?(0,l.createElement)(qr,{imageUrl:r}):(0,l.createElement)("div",{className:"edit-site-list-added-by__icon"},(0,l.createElement)(v.Icon,{icon:a})),(0,l.createElement)("span",null,n,o&&(0,l.createElement)("span",{className:"edit-site-list-added-by__customized-info"},"wp_template"===e?(0,E._x)("Customized","template"):(0,E._x)("Customized","template part"))))}function Kr(e){return!!e&&("custom"===e.source&&!e.has_theme_file)}function Xr({template:e,onClose:t}){const n=(0,It.decodeEntities)(e.title.rendered),[a,r]=(0,l.useState)(n),[o,i]=(0,l.useState)(!1),{editEntityRecord:s,saveEditedEntityRecord:c}=(0,d.useDispatch)(_.store),{createSuccessNotice:u,createErrorNotice:m}=(0,d.useDispatch)(Se.store);if("wp_template"===e.type&&!e.is_custom)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuItem,{onClick:()=>{i(!0),r(n)}},(0,E.__)("Rename")),o&&(0,l.createElement)(v.Modal,{title:(0,E.__)("Rename"),onRequestClose:()=>{i(!1)},overlayClassName:"edit-site-list__rename-modal"},(0,l.createElement)("form",{onSubmit:async function(n){n.preventDefault();try{await s("postType",e.type,e.id,{title:a}),r(""),i(!1),t(),await c("postType",e.type,e.id,{throwOnError:!0}),u((0,E.__)("Entity renamed."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while renaming the entity.");m(t,{type:"snackbar"})}}},(0,l.createElement)(v.__experimentalVStack,{spacing:"5"},(0,l.createElement)(v.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:a,onChange:r,required:!0}),(0,l.createElement)(v.__experimentalHStack,{justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>{i(!1)}},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit"},(0,E.__)("Save")))))))}function Qr({postType:e,postId:t,className:n,toggleProps:a,onRemove:r}){const o=(0,d.useSelect)((n=>n(_.store).getEntityRecord("postType",e,t)),[e,t]),{removeTemplate:i,revertTemplate:s}=(0,d.useDispatch)(Fn),{saveEditedEntityRecord:c}=(0,d.useDispatch)(_.store),{createSuccessNotice:u,createErrorNotice:m}=(0,d.useDispatch)(Se.store),p=Kr(o),g=Rt(o);if(!p&&!g)return null;return(0,l.createElement)(v.DropdownMenu,{icon:le,label:(0,E.__)("Actions"),className:n,toggleProps:a},(({onClose:e})=>(0,l.createElement)(v.MenuGroup,null,p&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Xr,{template:o,onClose:e}),(0,l.createElement)(Jr,{onRemove:()=>{i(o),r?.(),e()},isTemplate:"wp_template"===o.type})),g&&(0,l.createElement)(v.MenuItem,{info:(0,E.__)("Use the template as supplied by the theme."),onClick:()=>{!async function(){try{await s(o,{allowUndo:!1}),await c("postType",o.type,o.id),u((0,E.sprintf)((0,E.__)('"%s" reverted.'),(0,It.decodeEntities)(o.title.rendered)),{type:"snackbar",id:"edit-site-template-reverted"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while reverting the entity.");m(t,{type:"snackbar"})}}(),e()}},(0,E.__)("Clear customizations")))))}function Jr({onRemove:e,isTemplate:t}){const[n,a]=(0,l.useState)(!1);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuItem,{isDestructive:!0,isTertiary:!0,onClick:()=>a(!0)},(0,E.__)("Delete")),(0,l.createElement)(v.__experimentalConfirmDialog,{isOpen:n,onConfirm:e,onCancel:()=>a(!1),confirmButtonText:(0,E.__)("Delete")},t?(0,E.__)("Are you sure you want to delete this template?"):(0,E.__)("Are you sure you want to delete this template part?")))}var eo=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var to=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));function no({children:e}){return(0,l.createElement)(v.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__label"},e)}function ao({label:e,children:t,className:n}){return(0,l.createElement)(v.__experimentalHStack,{key:e,spacing:5,alignment:"left",className:y()("edit-site-sidebar-navigation-details-screen-panel__row",n)},t)}function ro({children:e}){return(0,l.createElement)(v.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__value"},e)}function oo({title:e,children:t,spacing:n}){return(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-sidebar-navigation-details-screen-panel",spacing:n},e&&(0,l.createElement)(v.__experimentalHeading,{className:"edit-site-sidebar-navigation-details-screen-panel__heading",level:2},e),t)}const io={};function so({postId:e,icon:t,title:n}){var a;const r={header:eo,footer:to},o=vt({postType:"wp_template_part",postId:e});return(0,l.createElement)(Xn,{className:"edit-site-sidebar-navigation-screen-template__template-area-button",...o,icon:null!==(a=r[t])&&void 0!==a?a:$n,withChevron:!0},(0,l.createElement)(v.__experimentalTruncate,{limit:20,ellipsizeMode:"tail",numberOfLines:1,className:"edit-site-sidebar-navigation-screen-template__template-area-label-text"},(0,It.decodeEntities)(n)))}function lo(){const e=(0,v.__experimentalUseNavigator)(),{params:{postType:t,postId:n}}=e,{editEntityRecord:a}=(0,d.useDispatch)(_.store),{allowCommentsOnNewPosts:r,templatePartAreas:o,postsPerPage:i,postsPageTitle:s,postsPageId:c,currentTemplateParts:u}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=t("root","site"),{getSettings:a}=nt(e(Fn)),r=e(Fn).getCurrentTemplateTemplateParts(),o=a(),i=n?.page_for_posts?e(_.store).getEntityRecord("postType","page",n?.page_for_posts):io;return{allowCommentsOnNewPosts:"open"===n?.default_comment_status,postsPageTitle:i?.title?.rendered,postsPageId:i?.id,postsPerPage:n?.posts_per_page,templatePartAreas:o?.defaultTemplatePartAreas,currentTemplateParts:r}}),[t,n]),[m,p]=(0,l.useState)(""),[g,h]=(0,l.useState)(1),[y,f]=(0,l.useState)("");(0,l.useEffect)((()=>{p(r),f(s),h(i)}),[s,r,i]);const b=(0,l.useMemo)((()=>u.length&&o?u.map((({templatePart:e})=>({...o?.find((({area:t})=>t===e?.area)),...e}))):[]),[u,o]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(oo,{spacing:6},c&&(0,l.createElement)(ao,null,(0,l.createElement)(v.__experimentalInputControl,{className:"edit-site-sidebar-navigation-screen__input-control",placeholder:(0,E.__)("No Title"),size:"__unstable-large",value:y,onChange:(0,re.debounce)((e=>{f(e),a("postType","page",c,{title:e})}),300),label:(0,E.__)("Blog title"),help:(0,E.__)("Set the Posts Page title. Appears in search results, and when the page is shared on social media.")})),(0,l.createElement)(ao,null,(0,l.createElement)(v.__experimentalNumberControl,{className:"edit-site-sidebar-navigation-screen__input-control",placeholder:0,value:g,size:"__unstable-large",spinControls:"custom",step:"1",min:"1",onChange:e=>{h(e),a("root","site",void 0,{posts_per_page:e})},label:(0,E.__)("Posts per page"),help:(0,E.__)("Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting.")}))),(0,l.createElement)(oo,{title:(0,E.__)("Discussion"),spacing:3},(0,l.createElement)(ao,null,(0,l.createElement)(v.CheckboxControl,{className:"edit-site-sidebar-navigation-screen__input-control",label:"Allow comments on new posts",help:"Changes will apply to new posts only. Individual posts may override these settings.",checked:m,onChange:e=>{p(e),a("root","site",void 0,{default_comment_status:e?"open":null})}}))),(0,l.createElement)(oo,{title:(0,E.__)("Areas"),spacing:3},(0,l.createElement)(v.__experimentalItemGroup,null,b.map((({label:e,icon:t,theme:n,slug:a,title:r})=>(0,l.createElement)(ao,{key:a},(0,l.createElement)(so,{postId:`${n}//${a}`,title:r?.rendered||e,icon:t})))))))}function co({lastModifiedDateTime:e}){return(0,l.createElement)(l.Fragment,null,e&&(0,l.createElement)(ao,{className:"edit-site-sidebar-navigation-screen-details-footer"},(0,l.createElement)(no,null,(0,E.__)("Last modified")),(0,l.createElement)(ro,null,(0,l.createInterpolateElement)((0,E.sprintf)((0,E.__)("<time>%s</time>"),(0,na.humanTimeDiff)(e)),{time:(0,l.createElement)("time",{dateTime:e})}))))}function uo(){const e=(0,v.__experimentalUseNavigator)(),{params:{postType:t,postId:n}}=e,{setCanvasMode:a}=nt((0,d.useDispatch)(Fn)),{title:r,content:o,description:i,footer:s}=function(e,t){const{getDescription:n,getTitle:a,record:r}=Ur(e,t),o=(0,d.useSelect)((e=>e(_.store).getCurrentTheme()),[]),i=Zr(e,t),s="theme"===i.type&&r.theme===o?.stylesheet,c=a();let u=n();!u&&i.text&&(u=(0,E.__)("This is a custom template that can be applied manually to any Post or Page."));const m="home"===r?.slug||"index"===r?.slug?(0,l.createElement)(lo,null):null,p=r?.modified?(0,l.createElement)(co,{lastModifiedDateTime:r.modified}):null;return{title:c,description:(0,l.createElement)(l.Fragment,null,u,i.text&&!s&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-author"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-author-icon"},i.imageUrl?(0,l.createElement)("img",{src:i.imageUrl,alt:"",width:"24",height:"24"}):(0,l.createElement)(v.Icon,{icon:i.icon})),i.text),i.isCustomized&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-customized"},(0,E._x)("(Customized)","template")))),content:m,footer:p}}(t,n);return(0,l.createElement)(qn,{title:r,actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Qr,{postType:t,postId:n,toggleProps:{as:Wn},onRemove:()=>{e.goTo(`/${t}/all`)}}),(0,l.createElement)(Wn,{onClick:()=>a("edit"),label:(0,E.__)("Edit"),icon:ea})),description:i,content:o,footer:s})}var mo=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"}));var po=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));const _o="my-patterns",go="wp_block",ho="pattern",yo="wp_template_part",vo="wp_block",Eo="my-patterns",fo=["core","pattern-directory/core","pattern-directory/featured","pattern-directory/theme"],bo={full:"fully",unsynced:"unsynced"},wo=(e,t,n)=>t===n.findIndex((t=>e.name===t.name));function So({blocks:e=[],closeModal:t,onCreate:n,onError:a,title:r}){const[o,i]=(0,l.useState)(""),[s,u]=(0,l.useState)(bo.unsynced),[m,p]=(0,l.useState)(!1),{createErrorNotice:g}=(0,d.useDispatch)(Se.store),{saveEntityRecord:h}=(0,d.useDispatch)(_.store);return(0,l.createElement)(v.Modal,{title:r||(0,E.__)("Create pattern"),onRequestClose:t,overlayClassName:"edit-site-create-pattern-modal"},(0,l.createElement)("form",{onSubmit:async t=>{t.preventDefault(),o&&(p(!0),await async function(){if(o)try{const t=await h("postType","wp_block",{title:o||(0,E.__)("Untitled Pattern"),content:e?.length?(0,c.serialize)(e):"",status:"publish",meta:s===bo.unsynced?{wp_pattern_sync_status:s}:void 0},{throwOnError:!0});n({pattern:t,categoryId:Eo})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the pattern.");g(t,{type:"snackbar"}),a()}else g((0,E.__)("Please enter a pattern name."),{type:"snackbar"})}())}},(0,l.createElement)(v.__experimentalVStack,{spacing:"4"},(0,l.createElement)(v.TextControl,{className:"edit-site-create-pattern-modal__input",label:(0,E.__)("Name"),onChange:i,placeholder:(0,E.__)("My pattern"),required:!0,value:o,__nextHasNoMarginBottom:!0}),(0,l.createElement)(v.ToggleControl,{label:(0,E.__)("Keep all pattern instances in sync"),onChange:()=>{u(s===bo.full?bo.unsynced:bo.full)},help:(0,E.__)("Editing the original pattern will also update anywhere the pattern is used."),checked:s===bo.full}),(0,l.createElement)(v.__experimentalHStack,{justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>{t()}},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit",disabled:!o,isBusy:m},(0,E.__)("Create"))))))}const ko=()=>(0,d.useSelect)((e=>e(_.store).getEntityRecords("postType","wp_template_part",{per_page:-1})),[]),Co=(e,t)=>{const n=e.toLowerCase(),a=t.map((e=>e.title.rendered.toLowerCase()));if(!a.includes(n))return e;let r=2;for(;a.includes(`${n} ${r}`);)r++;return`${e} ${r}`},xo=e=>(0,be.kebabCase)(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function To({closeModal:e,blocks:t=[],onCreate:n,onError:a}){const{createErrorNotice:r}=(0,d.useDispatch)(Se.store),{saveEntityRecord:o}=(0,d.useDispatch)(_.store),i=ko(),[s,u]=(0,l.useState)(""),[m,p]=(0,l.useState)(Dt),[h,y]=(0,l.useState)(!1),f=(0,re.useInstanceId)(To),w=(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplatePartAreas()),[]);return(0,l.createElement)(v.Modal,{title:(0,E.__)("Create template part"),onRequestClose:e,overlayClassName:"edit-site-create-template-part-modal"},(0,l.createElement)("form",{onSubmit:async e=>{e.preventDefault(),s&&(y(!0),await async function(){if(s)try{const e=Co(s,i),a=xo(e),r=await o("postType","wp_template_part",{slug:a,title:e,content:(0,c.serialize)(t),area:m},{throwOnError:!0});await n(r)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the template part.");r(t,{type:"snackbar"}),a?.()}else r((0,E.__)("Please enter a title."),{type:"snackbar"})}())}},(0,l.createElement)(v.__experimentalVStack,{spacing:"4"},(0,l.createElement)(v.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:s,onChange:u,required:!0}),(0,l.createElement)(v.BaseControl,{label:(0,E.__)("Area"),id:`edit-site-create-template-part-modal__area-selection-${f}`,className:"edit-site-create-template-part-modal__area-base-control"},(0,l.createElement)(v.__experimentalRadioGroup,{label:(0,E.__)("Area"),className:"edit-site-create-template-part-modal__area-radio-group",id:`edit-site-create-template-part-modal__area-selection-${f}`,onChange:p,checked:m},w.map((({icon:e,label:t,area:n,description:a})=>(0,l.createElement)(v.__experimentalRadio,{key:t,value:n,className:"edit-site-create-template-part-modal__area-radio"},(0,l.createElement)(v.Flex,{align:"start",justify:"start"},(0,l.createElement)(v.FlexItem,null,(0,l.createElement)(v.Icon,{icon:e})),(0,l.createElement)(v.FlexBlock,{className:"edit-site-create-template-part-modal__option-label"},t,(0,l.createElement)("div",null,a)),(0,l.createElement)(v.FlexItem,{className:"edit-site-create-template-part-modal__checkbox"},m===n&&(0,l.createElement)(v.Icon,{icon:b})))))))),(0,l.createElement)(v.__experimentalHStack,{justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>{e()}},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit",disabled:!s,isBusy:h},(0,E.__)("Create"))))))}const{useHistory:No}=nt(pt.privateApis);function Mo(){const e=No(),[t,n]=(0,l.useState)(!1),[a,r]=(0,l.useState)(!1),o=(0,d.useSelect)((e=>!!e(Fn).getSettings().supportsTemplatePartsMode),[]);function i(){n(!1),r(!1)}return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.DropdownMenu,{controls:[!o&&{icon:eo,onClick:()=>r(!0),title:(0,E.__)("Create template part")},{icon:po,onClick:()=>n(!0),title:(0,E.__)("Create pattern")}].filter(Boolean),toggleProps:{as:Wn},icon:pr,label:(0,E.__)("Create pattern")}),t&&(0,l.createElement)(So,{closeModal:()=>n(!1),onCreate:function({pattern:t,categoryId:a}){n(!1),e.push({postId:t.id,postType:"wp_block",categoryType:"wp_block",categoryId:a,canvas:"edit"})},onError:i}),a&&(0,l.createElement)(To,{closeModal:()=>r(!1),blocks:[],onCreate:function(t){r(!1),e.push({postId:t.id,postType:"wp_template_part",canvas:"edit"})},onError:i}))}function Po({count:e,icon:t,id:n,isActive:a,label:r,type:o}){const i=vt({path:"/patterns",categoryType:o,categoryId:n});if(e)return(0,l.createElement)(Xn,{...i,icon:t,suffix:(0,l.createElement)("span",null,e),"aria-current":a?"true":void 0},r)}function Io(){const e=function(){const e=(0,d.useSelect)((e=>{var t;const{getSettings:n}=nt(e(Fn)),a=n();return null!==(t=a.__experimentalAdditionalBlockPatternCategories)&&void 0!==t?t:a.__experimentalBlockPatternCategories}));return[...e||[],...(0,d.useSelect)((e=>e(_.store).getBlockPatternCategories()))||[]]}();e.push({name:"uncategorized",label:(0,E.__)("Uncategorized")});const t=function(){const e=(0,d.useSelect)((e=>{var t;const{getSettings:n}=nt(e(Fn));return null!==(t=n().__experimentalAdditionalBlockPatterns)&&void 0!==t?t:n().__experimentalBlockPatterns})),t=(0,d.useSelect)((e=>e(_.store).getBlockPatterns()));return(0,l.useMemo)((()=>[...e||[],...t||[]].filter((e=>!fo.includes(e.source))).filter(wo).filter((e=>!1!==e.inserter))),[e,t])}(),n=(0,l.useMemo)((()=>{const n={},a=[];return e.forEach((e=>{n[e.name]||(n[e.name]={...e,count:0})})),t.forEach((e=>{e.categories?.forEach((e=>{n[e]&&(n[e].count+=1)})),e.categories?.length||(n.uncategorized.count+=1)})),e.forEach((e=>{n[e.name].count&&a.push(n[e.name])})),a}),[e,t]);return{patternCategories:n,hasPatterns:!!n.length}}const Bo=e=>{const t=e||[],n=(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplatePartAreas()),[]),a={header:{},footer:{},sidebar:{},uncategorized:{}};n.forEach((e=>a[e.area]={...e,templateParts:[]}));return t.reduce(((e,t)=>(e[e[t.area]?t.area:"uncategorized"].templateParts.push(t),e)),a)};function Do({areas:e,currentArea:t,currentType:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-patterns__group-header"},(0,l.createElement)(v.__experimentalHeading,{level:2},(0,E.__)("Template parts"))),(0,l.createElement)(v.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},Object.entries(e).map((([e,{label:a,templateParts:r}])=>(0,l.createElement)(Po,{key:e,count:r?.length,icon:(0,g.getTemplatePartIcon)(e),label:a,id:e,type:"wp_template_part",isActive:t===e&&"wp_template_part"===n})))))}function Ro({categories:e,currentCategory:t,currentType:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},e.map((e=>(0,l.createElement)(Po,{key:e.name,count:e.count,label:(0,l.createElement)(v.Flex,{justify:"left",align:"center",gap:0},e.label,(0,l.createElement)(v.Tooltip,{position:"top center",text:(0,E.__)("Theme patterns cannot be edited.")},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__lock-icon"},(0,l.createElement)(v.Icon,{icon:mo,size:24})))),icon:po,id:e.name,type:"pattern",isActive:t===`${e.name}`&&"pattern"===n})))))}function Lo(){const e=(0,re.useViewportMatch)("medium","<"),{categoryType:t,categoryId:n}=(0,_t.getQueryArgs)(window.location.href),a=n||_o,r=t||go,{templatePartAreas:o,hasTemplateParts:i,isLoading:s}=function(){const{records:e,isResolving:t}=(0,_.useEntityRecords)("postType","wp_template_part",{per_page:-1});return{hasTemplateParts:!!e&&!!e.length,isLoading:t,templatePartAreas:Bo(e)}}(),{patternCategories:c,hasPatterns:u}=Io(),{myPatterns:m}=function(){const e=(0,d.useSelect)((e=>{var t;return null!==(t=e(_.store).getEntityRecords("postType","wp_block",{per_page:-1})?.length)&&void 0!==t?t:0}));return{myPatterns:{count:e,name:"my-patterns",label:(0,E.__)("My patterns")},hasPatterns:e>0}}(),p=vt({path:"/wp_template_part/all"}),g=e?void 0:(0,l.createElement)(v.__experimentalItemGroup,null,(0,l.createElement)(Xn,{as:"a",href:"edit.php?post_type=wp_block",withChevron:!0},(0,E.__)("Manage all of my patterns")),(0,l.createElement)(Xn,{withChevron:!0,...p},(0,E.__)("Manage all template parts")));return(0,l.createElement)(qn,{title:(0,E.__)("Patterns"),description:(0,E.__)("Manage what patterns are available when editing the site."),actions:(0,l.createElement)(Mo,null),footer:g,content:(0,l.createElement)(l.Fragment,null,s&&(0,E.__)("Loading patterns"),!s&&(0,l.createElement)(l.Fragment,null,!i&&!u&&(0,l.createElement)(v.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},(0,l.createElement)(v.__experimentalItem,null,(0,E.__)("No template parts or patterns found"))),(0,l.createElement)(v.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},(0,l.createElement)(Po,{key:m.name,count:m.count?m.count:"0",label:m.label,icon:w,id:m.name,type:"wp_block",isActive:a===`${m.name}`&&"wp_block"===r})),u&&(0,l.createElement)(Ro,{categories:c,currentCategory:a,currentType:r}),i&&(0,l.createElement)(Do,{areas:o,currentArea:a,currentType:r})))})}const{useLocation:Ao}=nt(pt.privateApis);function Fo(){const{params:{postId:e,postType:t}={}}=Ao(),{isRequestingSite:n,homepageId:a,url:r}=(0,d.useSelect)((e=>{const{getSite:t,getUnstableBase:n}=e(_.store),a=t(),r=n();return{isRequestingSite:!r,homepageId:"page"===a?.show_on_front?a.page_on_front:null,url:r?.home}}),[]),{setEditedEntity:o,setTemplate:i,setTemplatePart:s,setPage:c,setNavigationMenu:u}=(0,d.useDispatch)(Fn);(0,l.useEffect)((()=>{if(t&&e)switch(t){case"wp_template":i(e);break;case"wp_template_part":s(e);break;case"wp_navigation":u(e);break;case"wp_block":o(t,e);break;default:c({context:{postType:t,postId:e}})}else a?c({context:{postType:"page",postId:a}}):n||c({path:r})}),[r,e,t,a,n,o,c,i,s,u])}var Vo=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));var zo=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const{useLocation:Oo,useHistory:Ho}=nt(pt.privateApis);function Go(e){var t;let n=null!==(t=e?.path)&&void 0!==t?t:"/";if(e?.postType&&e?.postId)switch(e.postType){case"wp_block":case"wp_template":case"wp_template_part":case"page":n=`/${encodeURIComponent(e.postType)}/${encodeURIComponent(e.postId)}`;break;default:n=`/navigation/${encodeURIComponent(e.postType)}/${encodeURIComponent(e.postId)}`}return n}function Uo(){const e=Ho(),{params:t}=Oo(),{location:n,params:a,goTo:r}=(0,v.__experimentalUseNavigator)(),o=(0,l.useRef)(!0);(0,l.useEffect)((()=>{function r(n){if(a=n,r=t,Object.entries(a).every((([e,t])=>r[e]===t)))return;var a,r;const o={...t,...n};e.push(o)}o.current?o.current=!1:a?.postType&&a?.postId?r({postType:a?.postType,postId:a?.postId,path:void 0}):n.path.startsWith("/page/")&&a?.postId?r({postType:"page",postId:a?.postId,path:void 0}):"/patterns"===n.path?r({postType:void 0,postId:void 0,canvas:void 0,path:n.path}):r({postType:void 0,postId:void 0,categoryType:void 0,categoryId:void 0,path:"/"===n.path?void 0:n.path})}),[n?.path,a]),(0,l.useEffect)((()=>{const e=Go(t);n.path!==e&&r(e)}),[t])}const $o={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},{useLocation:jo,useHistory:Wo}=nt(pt.privateApis);function Zo(e){const t=jo(),n=Wo(),{block:a}=e,{clientId:r}=a,{moveBlocksDown:o,moveBlocksUp:i,removeBlocks:s}=(0,d.useDispatch)(we.store),c=(0,E.sprintf)((0,E.__)("Remove %s"),(0,we.BlockTitle)({clientId:r,maximumLength:25})),u=(0,E.sprintf)((0,E.__)("Go to %s"),(0,we.BlockTitle)({clientId:r,maximumLength:25})),m=(0,d.useSelect)((e=>{const{getBlockRootClientId:t}=e(we.store);return t(r)}),[r]),p=(0,l.useCallback)((e=>{const{attributes:a,name:r}=e;"post-type"===a.kind&&a.id&&a.type&&n&&n.push({postType:a.type,postId:a.id,...gt()&&{wp_theme_preview:ht()}},{backPath:Go(t.params)}),"core/page-list-item"===r&&a.id&&n&&n.push({postType:"page",postId:a.id,...gt()&&{wp_theme_preview:ht()}},{backPath:Go(t.params)})}),[n]);return(0,l.createElement)(v.DropdownMenu,{icon:le,label:(0,E.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:$o,noIcons:!0,...e},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{icon:Vo,onClick:()=>{i([r],m),e()}},(0,E.__)("Move up")),(0,l.createElement)(v.MenuItem,{icon:zo,onClick:()=>{o([r],m),e()}},(0,E.__)("Move down")),a.attributes?.id&&(0,l.createElement)(v.MenuItem,{onClick:()=>{p(a),e()}},u)),(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{onClick:()=>{s([r],!1),e()}},c)))))}const{PrivateListView:qo}=nt(we.privateApis),Yo=["postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}];function Ko({rootClientId:e}){const{listViewRootClientId:t,isLoading:n}=(0,d.useSelect)((t=>{const{areInnerBlocksControlled:n,getBlockName:a,getBlockCount:r,getBlockOrder:o}=t(we.store),{isResolving:i}=t(_.store),s=o(e),l=1===s.length&&"core/page-list"===a(s[0])&&r(s[0])>0,c=i("getEntityRecords",Yo);return{listViewRootClientId:l?s[0]:e,isLoading:!n(e)||c}}),[e]),{replaceBlock:a,__unstableMarkNextChangeAsNotPersistent:r}=(0,d.useDispatch)(we.store),o=(0,l.useCallback)((e=>{"core/navigation-link"!==e.name||e.attributes.url||(r(),a(e.clientId,(0,c.createBlock)("core/navigation-link",e.attributes)))}),[r,a]);return(0,l.createElement)(l.Fragment,null,!n&&(0,l.createElement)(qo,{rootClientId:t,onSelect:o,blockSettingsMenu:Zo,showAppender:!1}),(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor"},(0,l.createElement)(we.BlockList,null)))}const Xo=()=>{};function Qo({navigationMenuId:e}){const{storedSettings:t}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Fn));return{storedSettings:t(!1)}}),[]),n=(0,l.useMemo)((()=>e?[(0,c.createBlock)("core/navigation",{ref:e})]:[]),[e]);return e&&n?.length?(0,l.createElement)(we.BlockEditorProvider,{settings:t,value:n,onChange:Xo,onInput:Xo},(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__content"},(0,l.createElement)(Ko,{rootClientId:n[0].clientId}))):null}function Jo({id:e}){const[t]=(0,_.useEntityProp)("postType","wp_navigation","title",e);return e?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",size:"11",upperCase:!0,weight:500},t?.rendered||(0,E.__)("Navigation")),(0,l.createElement)(Qo,{navigationMenuId:e})):null}function ei({id:e}){const[t]=(0,_.useEntityProp)("postType","wp_navigation","title",e),n=vt({postId:e,postType:"wp_navigation"});return e?(0,l.createElement)(Xn,{withChevron:!0,...n},t||(0,E.__)("(no title)")):null}function ti({menus:e}){return(0,l.createElement)(v.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu-list"},e.map((e=>(0,l.createElement)(ei,{key:e,id:e}))))}function ni({menus:e}){return e.length?1===e.length?(0,l.createElement)(Jo,{id:e[0]}):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",size:"11",upperCase:!0,weight:500},(0,E.__)("Navigation")),(0,l.createElement)(ti,{menus:e})):null}function ai(e,t){const{getDescription:n,getTitle:a,record:r}=Ur(e,t),o=(0,d.useSelect)((e=>e(_.store).getCurrentTheme()),[]),i=Zr(e,t),s="theme"===i.type&&r.theme===o?.stylesheet,c=a();let u=n();!u&&i.text&&(u=(0,E.sprintf)((0,E.__)("This is the %s pattern."),a())),!u&&"wp_block"===e&&r?.title&&(u=(0,E.sprintf)((0,E.__)("This is the %s pattern."),r.title));const m=(0,l.createElement)(l.Fragment,null,u,i.text&&!s&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-author"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon"},i.imageUrl?(0,l.createElement)("img",{src:i.imageUrl,alt:"",width:"24",height:"24"}):(0,l.createElement)(v.Icon,{icon:i.icon})),i.text),i.isCustomized&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-customized"},(0,E._x)("(Customized)","pattern")))),p=r?.modified?(0,l.createElement)(co,{lastModifiedDateTime:r.modified}):null,g=[];"wp_block"===e&&g.push({label:(0,E.__)("Syncing"),value:"unsynced"===r.wp_pattern_sync_status?(0,E.__)("Not synced"):(0,E.__)("Fully synced")});const h=(0,l.createElement)(l.Fragment,null,!!g.length&&(0,l.createElement)(oo,{spacing:5,title:(0,E.__)("Details")},g.map((({label:e,value:t})=>(0,l.createElement)(ao,{key:e},(0,l.createElement)(no,null,e),(0,l.createElement)(ro,null,t))))),function(e,t){const{record:n}=Ur(e,t);if("wp_template_part"!==e)return;const a=function(e,t){if(!e||!t?.length)return[];const n=t=>{if(!t)return[];const a=[];for(const r of t)if(r.name===e&&a.push(r),r?.innerBlocks){const e=n(r.innerBlocks);e.length&&a.push(...e)}return a};return n(t)}("core/navigation",n?.blocks),r=a?.map((e=>e.attributes.ref));return r?.length?(0,l.createElement)(ni,{menus:r}):void 0}(e,t));return{title:c,description:m,content:h,footer:p}}function ri(){const{params:e}=(0,v.__experimentalUseNavigator)(),{categoryType:t}=(0,_t.getQueryArgs)(window.location.href),{postType:n,postId:a}=e,{setCanvasMode:r}=nt((0,d.useDispatch)(Fn));Fo();const o=ai(n,a),i=t||"wp_template_part"!==n?"/patterns":"/wp_template_part/all";return(0,l.createElement)(qn,{actions:(0,l.createElement)(Wn,{onClick:()=>r("edit"),label:(0,E.__)("Edit"),icon:ea}),backPath:i,...o})}const oi={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},ii=e=>e?.trim()?.length>0;function si({menuTitle:e,onClose:t,onSave:n}){const[a,r]=(0,l.useState)(e),o=a!==e&&ii(a);return(0,l.createElement)(v.Modal,{title:(0,E.__)("Rename"),onRequestClose:t},(0,l.createElement)("form",{className:"sidebar-navigation__rename-modal-form"},(0,l.createElement)(v.__experimentalVStack,{spacing:"3"},(0,l.createElement)(v.TextControl,{__nextHasNoMarginBottom:!0,value:a,placeholder:(0,E.__)("Navigation title"),onChange:r}),(0,l.createElement)(v.__experimentalHStack,{justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{disabled:!o,variant:"primary",type:"submit",onClick:e=>{e.preventDefault(),o&&(n({title:a}),t())}},(0,E.__)("Save"))))))}function li({onClose:e,onConfirm:t}){return(0,l.createElement)(v.Modal,{title:(0,E.__)("Delete"),onRequestClose:e},(0,l.createElement)("form",null,(0,l.createElement)(v.__experimentalVStack,{spacing:"3"},(0,l.createElement)("p",null,(0,E.__)("Are you sure you want to delete this Navigation menu?")),(0,l.createElement)(v.__experimentalHStack,{justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:e},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit",onClick:n=>{n.preventDefault(),t(),e()}},(0,E.__)("Delete"))))))}const ci={position:"bottom right"};function ui(e){const{onDelete:t,onSave:n,onDuplicate:a,menuTitle:r}=e,[o,i]=(0,l.useState)(!1),[s,c]=(0,l.useState)(!1),u=()=>{i(!1),c(!1)};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.DropdownMenu,{className:"sidebar-navigation__more-menu",label:(0,E.__)("Actions"),icon:le,popoverProps:ci},(({onClose:e})=>(0,l.createElement)("div",null,(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{onClick:()=>{i(!0),e()}},(0,E.__)("Rename")),(0,l.createElement)(v.MenuItem,{onClick:()=>{a(),e()}},(0,E.__)("Duplicate"))),(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{onClick:()=>{c(!0),e()}},(0,E.__)("Delete")))))),s&&(0,l.createElement)(li,{onClose:u,onConfirm:t}),o&&(0,l.createElement)(si,{onClose:u,menuTitle:r,onSave:n}))}function di({postId:e}){const t=vt({postId:e,postType:"wp_navigation",canvas:"edit"});return(0,l.createElement)(Wn,{...t,label:(0,E.__)("Edit"),icon:ea})}function mi({navigationMenu:e,handleDelete:t,handleDuplicate:n,handleSave:a}){const r=e?.title?.rendered;return(0,l.createElement)(bi,{actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ui,{menuTitle:(0,It.decodeEntities)(r),onDelete:t,onSave:a,onDuplicate:n}),(0,l.createElement)(di,{postId:e?.id})),title:(0,It.decodeEntities)(r),description:(0,E.__)("Navigation menus are a curated collection of blocks that allow visitors to get around your site.")},(0,l.createElement)(Qo,{navigationMenuId:e?.id}))}const pi="wp_navigation";function _i(){const{params:{postId:e}}=(0,v.__experimentalUseNavigator)(),{record:t,isResolving:n}=(0,_.useEntityRecord)("postType",pi,e),{isSaving:a,isDeleting:r}=(0,d.useSelect)((t=>{const{isSavingEntityRecord:n,isDeletingEntityRecord:a}=t(_.store);return{isSaving:n("postType",pi,e),isDeleting:a("postType",pi,e)}}),[e]),o=n||a||r,i=t?.title?.rendered||t?.slug,{handleSave:s,handleDelete:c,handleDuplicate:u}=vi(),m=()=>c(t),p=e=>s(t,e),g=()=>u(t);return o?(0,l.createElement)(bi,{description:(0,E.__)("Navigation menus are a curated collection of blocks that allow visitors to get around your site.")},(0,l.createElement)(v.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})):o||t?t?.content?.raw?(0,l.createElement)(mi,{navigationMenu:t,handleDelete:m,handleSave:p,handleDuplicate:g}):(0,l.createElement)(bi,{actions:(0,l.createElement)(ui,{menuTitle:(0,It.decodeEntities)(i),onDelete:m,onSave:p,onDuplicate:g}),title:(0,It.decodeEntities)(i),description:(0,E.__)("This Navigation Menu is empty.")}):(0,l.createElement)(bi,{description:(0,E.__)("Navigation Menu missing.")})}function gi(){const{goTo:e}=(0,v.__experimentalUseNavigator)(),{deleteEntityRecord:t}=(0,d.useDispatch)(_.store),{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(Se.store);return async r=>{const o=r?.id;try{await t("postType",pi,o,{force:!0},{throwOnError:!0}),n((0,E.__)("Deleted Navigation menu"),{type:"snackbar"}),e("/navigation")}catch(e){a((0,E.sprintf)((0,E.__)("Unable to delete Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function hi(){const{getEditedEntityRecord:e}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t}=e(_.store);return{getEditedEntityRecord:t}}),[]),{editEntityRecord:t,saveEditedEntityRecord:n}=(0,d.useDispatch)(_.store),{createSuccessNotice:a,createErrorNotice:r}=(0,d.useDispatch)(Se.store);return async(o,i)=>{if(!i)return;const s=o?.id,l=e("postType","wp_navigation",s);t("postType",pi,s,i);try{await n("postType",pi,s,{throwOnError:!0}),a((0,E.__)("Renamed Navigation menu"),{type:"snackbar"})}catch(e){t("postType",pi,s,l),r((0,E.sprintf)((0,E.__)("Unable to rename Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function yi(){const{goTo:e}=(0,v.__experimentalUseNavigator)(),{saveEntityRecord:t}=(0,d.useDispatch)(_.store),{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(Se.store);return async r=>{const o=r?.title?.rendered||r?.slug;try{const a=await t("postType",pi,{title:(0,E.sprintf)((0,E.__)("%s (Copy)"),o),content:r?.content?.raw,status:"publish"},{throwOnError:!0});a&&(n((0,E.__)("Duplicated Navigation menu"),{type:"snackbar"}),e(`/navigation/${pi}/${a.id}`))}catch(e){a((0,E.sprintf)((0,E.__)("Unable to duplicate Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function vi(){return{handleDelete:gi(),handleSave:hi(),handleDuplicate:yi()}}let Ei=!1;function fi(){const{records:e,isResolving:t,hasResolved:n}=(0,_.useEntityRecords)("postType","wp_navigation",oi),a=t&&!n,{getNavigationFallbackId:r}=nt((0,d.useSelect)(_.store)),o=e?.[0];o&&(Ei=!0),o||t||!n||Ei||r();const{handleSave:i,handleDelete:s,handleDuplicate:c}=vi(),u=!!e?.length;return a?(0,l.createElement)(bi,null,(0,l.createElement)(v.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})):a||u?1===e?.length?(0,l.createElement)(mi,{navigationMenu:o,handleDelete:()=>s(o),handleDuplicate:()=>c(o),handleSave:e=>i(o,e)}):(0,l.createElement)(bi,null,(0,l.createElement)(v.__experimentalItemGroup,null,e?.map((({id:e,title:t,status:n},a)=>(0,l.createElement)(wi,{postId:e,key:e,withChevron:!0,icon:Hn},function(e,t,n){return e?.rendered?"publish"===n?(0,It.decodeEntities)(e?.rendered):(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),(0,It.decodeEntities)(e?.rendered),n):(0,E.sprintf)((0,E.__)("(no title %s)"),t)}(t,a+1,n)))))):(0,l.createElement)(bi,{description:(0,E.__)("No Navigation Menus found.")})}function bi({children:e,actions:t,title:n,description:a}){return(0,l.createElement)(qn,{title:n||(0,E.__)("Navigation"),actions:t,description:a||(0,E.__)("Manage your Navigation menus."),content:e})}const wi=({postId:e,...t})=>{const n=vt({postId:e,postType:"wp_navigation"});return(0,l.createElement)(Xn,{...n,...t})},Si={wp_template:{title:(0,E.__)("All templates"),description:(0,E.__)("Create new templates, or reset any customizations made to the templates supplied by your theme.")},wp_template_part:{title:(0,E.__)("All template parts"),description:(0,E.__)("Create new template parts, or reset any customizations made to the template parts supplied by your theme."),backPath:"/patterns"}};function ki(){const{params:{postType:e}}=(0,v.__experimentalUseNavigator)(),t=(0,d.useSelect)((e=>!!e(Fn).getSettings().supportsTemplatePartsMode),[]);return(0,l.createElement)(qn,{isRoot:t,title:Si[e].title,description:Si[e].description,backPath:Si[e].backPath})}function Ci({className:e="edit-site-save-button__button",variant:t="primary",showTooltip:n=!0,defaultLabel:a,icon:r}){const{isDirty:o,isSaving:i,isSaveViewOpen:s}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:n}=e(_.store),a=t(),{isSaveViewOpened:r}=e(Fn);return{isDirty:a.length>0,isSaving:a.some((e=>n(e.kind,e.name,e.key))),isSaveViewOpen:r()}}),[]),{setIsSaveViewOpened:c}=(0,d.useDispatch)(Fn),u=gt()||o,m=i||!u,p=gt()?i?(0,E.__)("Activating"):m?(0,E.__)("Saved"):o?(0,E.__)("Activate & Save"):(0,E.__)("Activate"):i?(0,E.__)("Saving"):m?(0,E.__)("Saved"):a||(0,E.__)("Save");return(0,l.createElement)(v.Button,{variant:t,className:e,"aria-disabled":m,"aria-expanded":s,isBusy:i,onClick:m?void 0:()=>c(!0),label:p,shortcut:m?void 0:aa.displayShortcut.primary("s"),showTooltip:n,icon:r},p)}const{useLocation:xi}=nt(pt.privateApis),Ti=[{kind:"postType",name:"wp_navigation"}];function Ni(){const{params:e}=xi(),{__unstableMarkLastChangeAsPersistent:t}=(0,d.useDispatch)(we.store),{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(Se.store),{dirtyCurrentEntity:r,countUnsavedChanges:o,isDirty:i,isSaving:s}=(0,d.useSelect)((t=>{const{__experimentalGetDirtyEntityRecords:n,isSavingEntityRecord:a}=t(_.store),r=n();let o=null;return 1===r.length&&(e.path?.includes("wp_global_styles")?o=r.find((e=>"globalStyles"===e.name)):e.postId&&(o=r.find((t=>t.name===e.postType&&String(t.key)===e.postId)))),{dirtyCurrentEntity:o,isDirty:r.length>0,isSaving:r.some((e=>a(e.kind,e.name,e.key))),countUnsavedChanges:r.length}}),[e.path,e.postType,e.postId]),{editEntityRecord:c,saveEditedEntityRecord:u,__experimentalSaveSpecifiedEntityEdits:m}=(0,d.useDispatch)(_.store),p=s||!i&&!gt();let g=r?(0,E.__)("Save"):(0,E.sprintf)((0,E._n)("Review %d change…","Review %d changes…",o),o);s&&(g=(0,E.__)("Saving"));return(0,l.createElement)(v.__experimentalHStack,{className:"edit-site-save-hub",alignment:"right",spacing:4},r?(0,l.createElement)(v.Button,{variant:"primary",onClick:async()=>{if(!r)return;const{kind:e,name:o,key:i,property:s}=r;try{"root"===r.kind&&"site"===o?await m("root","site",void 0,[s]):(Ti.some((t=>t.kind===e&&t.name===o))&&c(e,o,i,{status:"publish"}),await u(e,o,i)),t(),n((0,E.__)("Site updated."),{type:"snackbar"})}catch(e){a(`${(0,E.__)("Saving failed.")} ${e}`)}},isBusy:s,disabled:s,"aria-disabled":s,className:"edit-site-save-hub__button"},g):(0,l.createElement)(Ci,{className:"edit-site-save-hub__button",variant:p?null:"primary",showTooltip:!1,icon:p&&!s?b:null,defaultLabel:g}))}function Mi({onSave:e,onClose:t}){const[n,a]=(0,l.useState)(!1),[r,o]=(0,l.useState)(""),{saveEntityRecord:i}=(0,d.useDispatch)(_.store),{createErrorNotice:s,createSuccessNotice:c}=(0,d.useDispatch)(Se.store);return(0,l.createElement)(v.Modal,{title:(0,E.__)("Draft a new page"),onRequestClose:t},(0,l.createElement)("form",{onSubmit:async function(t){if(t.preventDefault(),!n){a(!0);try{const t=await i("postType","page",{status:"draft",title:r,slug:(0,be.kebabCase)(r||(0,E.__)("No title"))},{throwOnError:!0});e(t),c((0,E.sprintf)((0,E.__)('"%s" successfully created.'),t.title?.rendered||r),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the page.");s(t,{type:"snackbar"})}finally{a(!1)}}}},(0,l.createElement)(v.__experimentalVStack,{spacing:3},(0,l.createElement)(v.TextControl,{label:(0,E.__)("Page title"),onChange:o,placeholder:(0,E.__)("No title"),value:r}),(0,l.createElement)(v.__experimentalHStack,{spacing:2,justify:"end"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit",isBusy:n,"aria-disabled":n},(0,E.__)("Create draft"))))))}const{useHistory:Pi}=nt(pt.privateApis),Ii=({postType:e="page",postId:t,...n})=>{const a=vt({postType:e,postId:t},{backPath:"/page"});return(0,l.createElement)(Xn,{...a,...n})};function Bi(){const{records:e,isResolving:t}=(0,_.useEntityRecords)("postType","page",{status:"any",per_page:-1}),{records:n,isResolving:a}=(0,_.useEntityRecords)("postType","wp_template",{per_page:-1}),r=n?.filter((({slug:e})=>["404","search"].includes(e))),o=n?.find((e=>"front-page"===e.slug))||n?.find((e=>"home"===e.slug))||n?.find((e=>"index"===e.slug)),i=e?.concat(r,[o]),{frontPage:s,postsPage:c}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=t("root","site");return{frontPage:n?.page_on_front,postsPage:n?.page_for_posts}}),[]),u=s===c,m=e&&[...e];if(!u&&m?.length){const e=m.findIndex((e=>e.id===s)),t=m.splice(e,1);m?.splice(0,0,...t);const n=m.findIndex((e=>e.id===c)),a=m.splice(n,1);m.splice(1,0,...a)}const[p,g]=(0,l.useState)(!1),h=Pi(),y=e=>{let t=Un;const a=c&&c===e?(n?.find((e=>"home"===e.slug))||n?.find((e=>"index"===e.slug)))?.id:null;switch(e){case s:t=er;break;case c:t=tr}return{icon:t,postType:a?"wp_template":"page",postId:a||e}};return(0,l.createElement)(l.Fragment,null,p&&(0,l.createElement)(Mi,{onSave:({type:e,id:t})=>{h.push({postId:t,postType:e,canvas:"edit"}),g(!1)},onClose:()=>g(!1)}),(0,l.createElement)(qn,{title:(0,E.__)("Pages"),description:(0,E.__)("Browse and edit pages on your site."),actions:(0,l.createElement)(Wn,{icon:pr,label:(0,E.__)("Draft a new page"),onClick:()=>g(!0)}),content:(0,l.createElement)(l.Fragment,null,(t||a)&&(0,l.createElement)(v.__experimentalItemGroup,null,(0,l.createElement)(v.__experimentalItem,null,(0,E.__)("Loading pages"))),!(t||a)&&(0,l.createElement)(v.__experimentalItemGroup,null,!i?.length&&(0,l.createElement)(v.__experimentalItem,null,(0,E.__)("No page found")),u&&o&&(0,l.createElement)(Ii,{postType:"wp_template",postId:o.id,key:o.id,icon:er,withChevron:!0},(0,l.createElement)(v.__experimentalTruncate,{numberOfLines:1},(0,It.decodeEntities)(o.title?.rendered||(0,E.__)("(no title)")))),m?.map((({id:e,title:t})=>(0,l.createElement)(Ii,{...y(e),key:e,withChevron:!0},(0,l.createElement)(v.__experimentalTruncate,{numberOfLines:1},(0,It.decodeEntities)(t?.rendered||(0,E.__)("(no title)")))))))),footer:(0,l.createElement)(v.__experimentalVStack,{spacing:0},r?.map((e=>(0,l.createElement)(Ii,{postType:"wp_template",postId:e.id,key:e.id,icon:$n,withChevron:!0},(0,l.createElement)(v.__experimentalTruncate,{numberOfLines:1},(0,It.decodeEntities)(e.title?.rendered||(0,E.__)("(no title)")))))),(0,l.createElement)(Xn,{className:"edit-site-sidebar-navigation-screen-pages__see-all",href:"edit.php?post_type=page",onClick:()=>{document.location="edit.php?post_type=page"}},(0,E.__)("Manage all pages")))}))}var Di=window.wp.dom,Ri=window.wp.escapeHtml,Li=window.wp.wordcount;function Ai({status:e,date:t,short:n}){const a=(0,na.humanTimeDiff)(t);let r=e;switch(e){case"publish":r=t?(0,l.createInterpolateElement)((0,E.sprintf)((0,E.__)("Published <time>%s</time>"),a),{time:(0,l.createElement)("time",{dateTime:t})}):(0,E.__)("Published");break;case"future":const e=(0,na.dateI18n)(n?"M j":"F j",(0,na.getDate)(t));r=t?(0,l.createInterpolateElement)((0,E.sprintf)((0,E.__)("Scheduled: <time>%s</time>"),e),{time:(0,l.createElement)("time",{dateTime:t})}):(0,E.__)("Scheduled");break;case"draft":r=(0,E.__)("Draft");break;case"pending":r=(0,E.__)("Pending");break;case"private":r=(0,E.__)("Private");break;case"protected":r=(0,E.__)("Password protected")}return(0,l.createElement)("div",{className:y()("edit-site-sidebar-navigation-screen-page__status",{[`has-status has-${e}-status`]:!!e})},r)}const Fi=189;function Vi({id:e}){const{record:t}=(0,_.useEntityRecord)("postType","page",e),{parentTitle:n,templateTitle:a}=(0,d.useSelect)((e=>{const{getEditedPostContext:n}=nt(e(Fn)),a=n(),r=e(_.store).getEntityRecords("postType","wp_template",{per_page:-1}),o="page"===a?.postType?a?.templateSlug:null,i=r&&o?r.find((e=>e.slug===o))?.title?.rendered:null;return{parentTitle:t?.parent?e(_.store).getEntityRecord("postType","page",t.parent,{_fields:["title"]})?.title?.rendered:null,templateTitle:i}}),[t?.parent]);return(0,l.createElement)(oo,{spacing:5,title:(0,E.__)("Details")},function(e){if(!e)return[];const t=[{label:(0,E.__)("Status"),value:(0,l.createElement)(Ai,{status:e?.password?"protected":e.status,date:e?.date,short:!0})},{label:(0,E.__)("Slug"),value:(0,l.createElement)(v.__experimentalTruncate,{numberOfLines:1},(0,_t.safeDecodeURIComponent)(e.slug))}];e?.templateTitle&&t.push({label:(0,E.__)("Template"),value:(0,It.decodeEntities)(e.templateTitle)}),e?.parentTitle&&t.push({label:(0,E.__)("Parent"),value:(0,It.decodeEntities)(e.parentTitle||(0,E.__)("(no title)"))});const n=(0,E._x)("words","Word count type. Do not translate!"),a=e?.content?.rendered?(0,Li.count)(e.content.rendered,n):0,r=Math.round(a/Fi);return a&&t.push({label:(0,E.__)("Words"),value:a.toLocaleString()||(0,E.__)("Unknown")},{label:(0,E.__)("Time to read"),value:r>1?(0,E.sprintf)((0,E.__)("%s mins"),r.toLocaleString()):(0,E.__)("< 1 min")}),t}({parentTitle:n,templateTitle:a,...t}).map((({label:e,value:t})=>(0,l.createElement)(ao,{key:e},(0,l.createElement)(no,null,e),(0,l.createElement)(ro,null,t)))))}function zi({postId:e,onRemove:t}){const{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(Se.store),{deleteEntityRecord:r}=(0,d.useDispatch)(_.store),o=(0,d.useSelect)((t=>t(_.store).getEntityRecord("postType","page",e)),[e]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuItem,{onClick:()=>async function(){try{await r("postType","page",e,{},{throwOnError:!0}),n((0,E.sprintf)((0,E.__)('"%s" moved to the Trash.'),(0,It.decodeEntities)(o.title.rendered)),{type:"snackbar",id:"edit-site-page-trashed"}),t?.()}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while moving the page to the trash.");a(t,{type:"snackbar"})}}(),isDestructive:!0},(0,E.__)("Move to Trash")))}function Oi({postId:e,className:t,toggleProps:n,onRemove:a}){return(0,l.createElement)(v.DropdownMenu,{icon:le,label:(0,E.__)("Actions"),className:t,toggleProps:n},(()=>(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(zi,{postId:e,onRemove:a}))))}function Hi(){const e=(0,v.__experimentalUseNavigator)(),{setCanvasMode:t}=nt((0,d.useDispatch)(Fn)),{params:{postId:n}}=(0,v.__experimentalUseNavigator)(),{record:a}=(0,_.useEntityRecord)("postType","page",n),{featuredMediaAltText:r,featuredMediaSourceUrl:o}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=a?.featured_media?t("postType","attachment",a?.featured_media):null;return{featuredMediaSourceUrl:n?.media_details.sizes?.medium?.source_url||n?.source_url,featuredMediaAltText:(0,Ri.escapeAttribute)(n?.alt_text||n?.description?.raw||"")}}),[a]),i=r?(0,It.decodeEntities)(r):(0,It.decodeEntities)(a?.title?.rendered||(0,E.__)("Featured image"));return a?(0,l.createElement)(qn,{title:(0,It.decodeEntities)(a?.title?.rendered||(0,E.__)("(no title)")),actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Oi,{postId:n,toggleProps:{as:Wn},onRemove:()=>{e.goTo("/page")}}),(0,l.createElement)(Wn,{onClick:()=>t("edit"),label:(0,E.__)("Edit"),icon:ea})),meta:(0,l.createElement)(v.ExternalLink,{className:"edit-site-sidebar-navigation-screen__page-link",href:a.link},(0,_t.filterURLForDisplay)((0,_t.safeDecodeURIComponent)(a.link))),content:(0,l.createElement)(l.Fragment,null,!!o&&(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-sidebar-navigation-screen-page__featured-image-wrapper",alignment:"left",spacing:2},(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-page__featured-image has-image"},(0,l.createElement)("img",{alt:i,src:o}))),!!a?.excerpt?.rendered&&(0,l.createElement)(v.__experimentalTruncate,{className:"edit-site-sidebar-navigation-screen-page__excerpt",numberOfLines:3},(0,Di.__unstableStripHTML)(a.excerpt.rendered)),(0,l.createElement)(Vi,{id:n})),footer:(0,l.createElement)(co,{lastModifiedDateTime:a?.modified})}):null}const{useLocation:Gi}=nt(pt.privateApis);function Ui(){return Uo(),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(Ja,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/navigation"},(0,l.createElement)(fi,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/navigation/:postType/:postId"},(0,l.createElement)(_i,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/wp_global_styles"},(0,l.createElement)(Ka,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/page"},(0,l.createElement)(Bi,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/page/:postId"},(0,l.createElement)(Hi,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/:postType(wp_template)"},(0,l.createElement)(Gr,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/patterns"},(0,l.createElement)(Lo,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/:postType(wp_template|wp_template_part)/all"},(0,l.createElement)(ki,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/:postType(wp_template_part|wp_block)/:postId"},(0,l.createElement)(ri,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/:postType(wp_template)/:postId"},(0,l.createElement)(uo,null)))}var $i=(0,l.memo)((function(){const{params:e}=Gi(),t=(0,l.useRef)(Go(e));return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalNavigatorProvider,{className:"edit-site-sidebar__content",initialPath:t.current},(0,l.createElement)(Ui,null)),(0,l.createElement)(Ni,null))}));var ji=(0,l.createElement)(f.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"}));var Wi=(0,l.createElement)(f.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"}));function Zi({className:e,identifier:t,title:n,icon:a,children:r,closeLabel:o,header:i,headerClassName:s,panelClassName:c}){const u=(0,d.useSelect)((e=>e(Fn).getSettings().showIconLabels),[]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ae,{className:e,scope:"core/edit-site",identifier:t,title:n,icon:a,closeLabel:o,header:i,headerClassName:s,panelClassName:c,showIconLabels:u},r),(0,l.createElement)(Q,{scope:"core/edit-site",identifier:t,icon:a},n))}function qi({className:e,...t}){return(0,l.createElement)(v.Icon,{className:y()(e,"edit-site-global-styles-icon-with-current-color"),...t})}function Yi({icon:e,children:t,...n}){return(0,l.createElement)(v.__experimentalItem,{...n},e&&(0,l.createElement)(v.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(qi,{icon:e,size:24}),(0,l.createElement)(v.FlexItem,null,t)),!e&&t)}function Ki(e){return(0,l.createElement)(v.__experimentalNavigatorButton,{as:Yi,...e})}var Xi=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"}));var Qi=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"}));const{useHasDimensionsPanel:Ji,useHasTypographyPanel:es,useHasColorPanel:ts,useGlobalSetting:ns,useSettingsForBlockElement:as}=nt(we.privateApis);var rs=function(){const[e]=ns(""),t=as(e),n=es(t),a=ts(t),r=Ji(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalItemGroup,null,n&&(0,l.createElement)(Ki,{icon:Xi,path:"/typography","aria-label":(0,E.__)("Typography styles")},(0,E.__)("Typography")),a&&(0,l.createElement)(Ki,{icon:Qi,path:"/colors","aria-label":(0,E.__)("Colors styles")},(0,E.__)("Colors")),r&&(0,l.createElement)(Ki,{icon:$n,path:"/layout","aria-label":(0,E.__)("Layout styles")},(0,E.__)("Layout"))))};var os=function(){const{useGlobalStyle:e}=nt(we.privateApis),[t]=e("css"),{hasVariations:n,canEditCSS:a}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a,__experimentalGetCurrentThemeGlobalStylesVariations:r}=e(_.store),o=a(),i=o?n("root","globalStyles",o):void 0;return{hasVariations:!!r()?.length,canEditCSS:null!==(t=!!i?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]);return(0,l.createElement)(v.Card,{size:"small",className:"edit-site-global-styles-screen-root"},(0,l.createElement)(v.CardBody,null,(0,l.createElement)(v.__experimentalVStack,{spacing:4},(0,l.createElement)(v.Card,null,(0,l.createElement)(v.CardMedia,null,(0,l.createElement)(Ea,null))),n&&(0,l.createElement)(v.__experimentalItemGroup,null,(0,l.createElement)(Ki,{path:"/variations","aria-label":(0,E.__)("Browse styles")},(0,l.createElement)(v.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(v.FlexItem,null,(0,E.__)("Browse styles")),(0,l.createElement)(qi,{icon:(0,E.isRTL)()?me:pe})))),(0,l.createElement)(rs,null))),(0,l.createElement)(v.CardDivider,null),(0,l.createElement)(v.CardBody,null,(0,l.createElement)(v.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4},(0,E.__)("Customize the appearance of specific blocks for the whole site.")),(0,l.createElement)(v.__experimentalItemGroup,null,(0,l.createElement)(Ki,{path:"/blocks","aria-label":(0,E.__)("Blocks styles")},(0,l.createElement)(v.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(v.FlexItem,null,(0,E.__)("Blocks")),(0,l.createElement)(qi,{icon:(0,E.isRTL)()?me:pe}))))),a&&!!t&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.CardDivider,null),(0,l.createElement)(v.CardBody,null,(0,l.createElement)(v.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4},(0,E.__)("Add your own CSS to customize the appearance and layout of your site.")),(0,l.createElement)(v.__experimentalItemGroup,null,(0,l.createElement)(Ki,{path:"/css","aria-label":(0,E.__)("Additional CSS")},(0,l.createElement)(v.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(v.FlexItem,null,(0,E.__)("Additional CSS")),(0,l.createElement)(qi,{icon:(0,E.isRTL)()?me:pe})))))))};function is(e){const t=function(e){return e?.filter((e=>"block"===e.source))}((0,d.useSelect)((t=>{const{getBlockStyles:n}=t(c.store);return n(e)}),[e]));return t}function ss({name:e}){const t=is(e);return(0,l.createElement)(v.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},t.map(((t,n)=>t?.isDefault?null:(0,l.createElement)(Ki,{key:n,path:"/blocks/"+encodeURIComponent(e)+"/variations/"+encodeURIComponent(t.name),"aria-label":t.label},t.label))))}var ls=function({title:e,description:t}){return(0,l.createElement)(v.__experimentalVStack,{spacing:0},(0,l.createElement)(v.__experimentalView,null,(0,l.createElement)(v.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3},(0,l.createElement)(v.__experimentalHStack,{spacing:2},(0,l.createElement)(v.__experimentalNavigatorToParentButton,{style:{minWidth:24,padding:0},icon:(0,E.isRTL)()?pe:me,isSmall:!0,"aria-label":(0,E.__)("Navigate to the previous view")}),(0,l.createElement)(v.__experimentalSpacer,null,(0,l.createElement)(v.__experimentalHeading,{className:"edit-site-global-styles-header",level:2,size:13},e))))),t&&(0,l.createElement)("p",{className:"edit-site-global-styles-header__description"},t))};const{useHasDimensionsPanel:cs,useHasTypographyPanel:us,useHasBorderPanel:ds,useGlobalSetting:ms,useSettingsForBlockElement:ps,useHasColorPanel:_s}=nt(we.privateApis);function gs(e){const[t]=ms("",e),n=ps(t,e),a=us(n),r=_s(n),o=ds(n),i=cs(n),s=o||i,l=!!is(e)?.length;return a||r||s||l}function hs({block:e}){if(!gs(e.name))return null;const t=(0,E.sprintf)((0,E.__)("%s block styles"),e.title);return(0,l.createElement)(Ki,{path:"/blocks/"+encodeURIComponent(e.name),"aria-label":t},(0,l.createElement)(v.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(we.BlockIcon,{icon:e.icon}),(0,l.createElement)(v.FlexItem,null,e.title)))}var ys=function(){const e=function(){const e=(0,d.useSelect)((e=>e(c.store).getBlockTypes()),[]),{core:t,noncore:n}=e.reduce(((e,t)=>{const{core:n,noncore:a}=e;return(t.name.startsWith("core/")?n:a).push(t),e}),{core:[],noncore:[]});return[...t,...n]}(),[t,n]=(0,l.useState)(""),a=(0,re.useDebounce)(Pt.speak,500),r=(0,d.useSelect)((e=>e(c.store).isMatchingSearchTerm),[]),o=(0,l.useMemo)((()=>t?e.filter((e=>r(e,t))):e),[t,e,r]),i=(0,l.useRef)();return(0,l.useEffect)((()=>{if(!t)return;const e=i.current.childElementCount,n=(0,E.sprintf)((0,E._n)("%d result found.","%d results found.",e),e);a(n,e)}),[t,a]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ls,{title:(0,E.__)("Blocks"),description:(0,E.__)("Customize the appearance of specific blocks and for the whole site.")}),(0,l.createElement)(v.SearchControl,{__nextHasNoMarginBottom:!0,className:"edit-site-block-types-search",onChange:n,value:t,label:(0,E.__)("Search for blocks"),placeholder:(0,E.__)("Search")}),(0,l.createElement)("div",{ref:i,className:"edit-site-block-types-item-list"},o.map((e=>(0,l.createElement)(hs,{block:e,key:"menu-itemblock-"+e.name})))))};var vs=({name:e,variation:t=""})=>{const n=(0,c.getBlockType)(e)?.example,a={...n,attributes:{...n?.attributes,className:"is-style-"+t}},r=n&&(0,c.getBlockFromExample)(e,t?a:n),o=n?.viewportWidth||null,i="150px";return n?(0,l.createElement)(v.__experimentalSpacer,{marginX:4,marginBottom:4},(0,l.createElement)("div",{className:"edit-site-global-styles__block-preview-panel",style:{maxHeight:i,boxSizing:"initial"}},(0,l.createElement)(we.BlockPreview,{blocks:r,viewportWidth:o,minHeight:i,additionalStyles:[{css:`\n\t\t\t\t\t\t\t\tbody{\n\t\t\t\t\t\t\t\t\tmin-height:${i};\n\t\t\t\t\t\t\t\t\tdisplay:flex;align-items:center;justify-content:center;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t`}]}))):null};var Es=function({children:e,level:t}){return(0,l.createElement)(v.__experimentalHeading,{className:"edit-site-global-styles-subtitle",level:null!=t?t:2},e)};function fs(e){if(!e)return e;const t=e.color||e.width;return!e.style&&t?{...e,style:"solid"}:!e.style||t?e:void 0}const{useHasDimensionsPanel:bs,useHasTypographyPanel:ws,useHasBorderPanel:Ss,useGlobalSetting:ks,useSettingsForBlockElement:Cs,useHasColorPanel:xs,useHasEffectsPanel:Ts,useHasFiltersPanel:Ns,useGlobalStyle:Ms,BorderPanel:Ps,ColorPanel:Is,TypographyPanel:Bs,DimensionsPanel:Ds,EffectsPanel:Rs,FiltersPanel:Ls,AdvancedPanel:As}=nt(we.privateApis);var Fs=function({name:e,variation:t}){let n=[];t&&(n=["variations",t].concat(n));const a=n.join("."),[r]=Ms(a,e,"user",{shouldDecodeEncode:!1}),[o,i]=Ms(a,e,"all",{shouldDecodeEncode:!1}),[s,u]=ks("",e),m=Cs(s,e),p=(0,c.getBlockType)(e),g=is(e),h=ws(m),y=xs(m),f=Ss(m),b=bs(m),w=Ts(m),S=Ns(m),k=!!g?.length&&!t,{canEditCSS:C}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a(),o=r?n("root","globalStyles",r):void 0;return{canEditCSS:null!==(t=!!o?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),x=t?g.find((e=>e.name===t)):null,T=(0,l.useMemo)((()=>({...o,layout:m.layout})),[o,m.layout]),N=(0,l.useMemo)((()=>({...r,layout:m.layout})),[r,m.layout]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ls,{title:t?x.label:p.title}),(0,l.createElement)(vs,{name:e,variation:t}),k&&(0,l.createElement)("div",{className:"edit-site-global-styles-screen-variations"},(0,l.createElement)(v.__experimentalVStack,{spacing:3},(0,l.createElement)(Es,null,(0,E.__)("Style Variations")),(0,l.createElement)(ss,{name:e}))),y&&(0,l.createElement)(Is,{inheritedValue:o,value:r,onChange:i,settings:m}),h&&(0,l.createElement)(Bs,{inheritedValue:o,value:r,onChange:i,settings:m}),b&&(0,l.createElement)(Ds,{inheritedValue:T,value:N,onChange:e=>{const t={...e};delete t.layout,i(t),e.layout!==m.layout&&u({...s,layout:e.layout})},settings:m,includeLayoutControls:!0}),f&&(0,l.createElement)(Ps,{inheritedValue:o,value:r,onChange:e=>{if(!e?.border)return void i(e);const{radius:t,...n}=e.border,a=function(e){return e?(0,v.__experimentalHasSplitBorders)(e)?{top:fs(e.top),right:fs(e.right),bottom:fs(e.bottom),left:fs(e.left)}:fs(e):e}(n),r=(0,v.__experimentalHasSplitBorders)(a)?{color:null,style:null,width:null,...a}:{top:a,right:a,bottom:a,left:a};i({...e,border:{...r,radius:t}})},settings:m}),w&&(0,l.createElement)(Rs,{inheritedValue:T,value:N,onChange:i,settings:m,includeLayoutControls:!0}),S&&(0,l.createElement)(Ls,{inheritedValue:T,value:N,onChange:i,settings:{...m,color:{...m.color,customDuotone:!1}},includeLayoutControls:!0}),C&&(0,l.createElement)(v.PanelBody,{title:(0,E.__)("Advanced"),initialOpen:!1},(0,l.createElement)("p",null,(0,E.sprintf)((0,E.__)("Add your own CSS to customize the appearance of the %s block."),p?.title)),(0,l.createElement)(As,{value:r,onChange:i,inheritedValue:o})))};const{useGlobalStyle:Vs}=nt(we.privateApis);function zs({parentMenu:e,element:t,label:n}){const a="text"!==t&&t?`elements.${t}.`:"",r="link"===t?{textDecoration:"underline"}:{},[o]=Vs(a+"typography.fontFamily"),[i]=Vs(a+"typography.fontStyle"),[s]=Vs(a+"typography.fontWeight"),[c]=Vs(a+"typography.letterSpacing"),[u]=Vs(a+"color.background"),[d]=Vs(a+"color.gradient"),[m]=Vs(a+"color.text"),p=(0,E.sprintf)((0,E.__)("Typography %s styles"),n);return(0,l.createElement)(Ki,{path:e+"/typography/"+t,"aria-label":p},(0,l.createElement)(v.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(v.FlexItem,{className:"edit-site-global-styles-screen-typography__indicator",style:{fontFamily:null!=o?o:"serif",background:null!=d?d:u,color:m,fontStyle:i,fontWeight:s,letterSpacing:c,...r}},(0,E.__)("Aa")),(0,l.createElement)(v.FlexItem,null,n)))}var Os=function(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ls,{title:(0,E.__)("Typography"),description:(0,E.__)("Manage the typography settings for different elements.")}),(0,l.createElement)(vs,null),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-typography"},(0,l.createElement)(v.__experimentalVStack,{spacing:3},(0,l.createElement)(Es,{level:3},(0,E.__)("Elements")),(0,l.createElement)(v.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,l.createElement)(zs,{parentMenu:"",element:"text",label:(0,E.__)("Text")}),(0,l.createElement)(zs,{parentMenu:"",element:"link",label:(0,E.__)("Links")}),(0,l.createElement)(zs,{parentMenu:"",element:"heading",label:(0,E.__)("Headings")}),(0,l.createElement)(zs,{parentMenu:"",element:"caption",label:(0,E.__)("Captions")}),(0,l.createElement)(zs,{parentMenu:"",element:"button",label:(0,E.__)("Buttons")})))))};const{useGlobalStyle:Hs,useGlobalSetting:Gs,useSettingsForBlockElement:Us,TypographyPanel:$s}=nt(we.privateApis);function js({element:e,headingLevel:t}){let n=[];"heading"===e?n=n.concat(["elements",t]):e&&"text"!==e&&(n=n.concat(["elements",e]));const a=n.join("."),[r]=Hs(a,void 0,"user",{shouldDecodeEncode:!1}),[o,i]=Hs(a,void 0,"all",{shouldDecodeEncode:!1}),[s]=Gs(""),c=Us(s,void 0,"heading"===e?t:e);return(0,l.createElement)($s,{inheritedValue:o,value:r,onChange:i,settings:c})}const{useGlobalStyle:Ws}=nt(we.privateApis);function Zs({name:e,element:t,headingLevel:n}){let a="";"heading"===t?a=`elements.${n}.`:t&&"text"!==t&&(a=`elements.${t}.`);const[r]=Ws(a+"typography.fontFamily",e),[o]=Ws(a+"color.gradient",e),[i]=Ws(a+"color.background",e),[s]=Ws(a+"color.text",e),[c]=Ws(a+"typography.fontSize",e),[u]=Ws(a+"typography.fontStyle",e),[d]=Ws(a+"typography.fontWeight",e),[m]=Ws(a+"typography.letterSpacing",e),p="link"===t?{textDecoration:"underline"}:{};return(0,l.createElement)("div",{className:"edit-site-typography-preview",style:{fontFamily:null!=r?r:"serif",background:null!=o?o:i,color:s,fontSize:c,fontStyle:u,fontWeight:d,letterSpacing:m,...p}},"Aa")}const qs={text:{description:(0,E.__)("Manage the fonts used on the site."),title:(0,E.__)("Text")},link:{description:(0,E.__)("Manage the fonts and typography used on the links."),title:(0,E.__)("Links")},heading:{description:(0,E.__)("Manage the fonts and typography used on headings."),title:(0,E.__)("Headings")},caption:{description:(0,E.__)("Manage the fonts and typography used on captions."),title:(0,E.__)("Captions")},button:{description:(0,E.__)("Manage the fonts and typography used on buttons."),title:(0,E.__)("Buttons")}};var Ys=function({element:e}){const[t,n]=(0,l.useState)("heading");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ls,{title:qs[e].title,description:qs[e].description}),(0,l.createElement)(v.__experimentalSpacer,{marginX:4},(0,l.createElement)(Zs,{element:e,headingLevel:t})),"heading"===e&&(0,l.createElement)(v.__experimentalSpacer,{marginX:4,marginBottom:"1em"},(0,l.createElement)(v.__experimentalToggleGroupControl,{label:(0,E.__)("Select heading level"),hideLabelFromVision:!0,value:t,onChange:n,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0},(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"heading",label:(0,E.__)("All")}),(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"h1",label:(0,E.__)("H1")}),(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"h2",label:(0,E.__)("H2")}),(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"h3",label:(0,E.__)("H3")}),(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"h4",label:(0,E.__)("H4")}),(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"h5",label:(0,E.__)("H5")}),(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"h6",label:(0,E.__)("H6")}))),(0,l.createElement)(js,{element:e,headingLevel:t}))};var Ks=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG"},(0,l.createElement)(f.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"}));var Xs=function({className:e,...t}){return(0,l.createElement)(v.Flex,{className:y()("edit-site-global-styles__color-indicator-wrapper",e),...t})};const{useGlobalSetting:Qs}=nt(we.privateApis),Js=[];var el=function({name:e}){const[t]=Qs("color.palette.custom"),[n]=Qs("color.palette.theme"),[a]=Qs("color.palette.default"),[r]=Qs("color.defaultPalette",e),[o]=function(e){const[t,n]=at("color.palette.theme",e);return window.__experimentalEnableColorRandomizer?[function(){const e=Math.floor(225*Math.random()),a=t.map((t=>{const{color:n}=t,a=Ke(n).rotate(e).toHex();return{...t,color:a}}));n(a)}]:[]}(),i=(0,l.useMemo)((()=>[...t||Js,...n||Js,...a&&r?a:Js]),[t,n,a,r]),s=e?"/blocks/"+encodeURIComponent(e)+"/colors/palette":"/colors/palette",c=i.length>0?(0,E.sprintf)((0,E._n)("%d color","%d colors",i.length),i.length):(0,E.__)("Add custom colors");return(0,l.createElement)(v.__experimentalVStack,{spacing:3},(0,l.createElement)(Es,{level:3},(0,E.__)("Palette")),(0,l.createElement)(v.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,l.createElement)(Ki,{path:s,"aria-label":(0,E.__)("Color palettes")},(0,l.createElement)(v.__experimentalHStack,{direction:0===i.length?"row-reverse":"row"},(0,l.createElement)(v.__experimentalZStack,{isLayered:!1,offset:-8},i.slice(0,5).map((({color:e},t)=>(0,l.createElement)(Xs,{key:`${e}-${t}`},(0,l.createElement)(v.ColorIndicator,{colorValue:e}))))),(0,l.createElement)(v.FlexItem,null,c)))),window.__experimentalEnableColorRandomizer&&n?.length>0&&(0,l.createElement)(v.Button,{variant:"secondary",icon:Ks,onClick:o},(0,E.__)("Randomize colors")))};const{useGlobalStyle:tl,useGlobalSetting:nl,useSettingsForBlockElement:al,ColorPanel:rl}=nt(we.privateApis);var ol=function(){const[e]=tl("",void 0,"user",{shouldDecodeEncode:!1}),[t,n]=tl("",void 0,"all",{shouldDecodeEncode:!1}),[a]=nl(""),r=al(a);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ls,{title:(0,E.__)("Colors"),description:(0,E.__)("Manage palettes and the default color of different global elements on the site.")}),(0,l.createElement)(vs,null),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-colors"},(0,l.createElement)(v.__experimentalVStack,{spacing:10},(0,l.createElement)(el,null),(0,l.createElement)(rl,{inheritedValue:t,value:e,onChange:n,settings:r}))))};const{useGlobalSetting:il}=nt(we.privateApis),sl={placement:"bottom-start",offset:8};function ll({name:e}){const[t,n]=il("color.palette.theme",e),[a]=il("color.palette.theme",e,"base"),[r,o]=il("color.palette.default",e),[i]=il("color.palette.default",e,"base"),[s,c]=il("color.palette.custom",e),[u]=il("color.defaultPalette",e),d=(0,re.useViewportMatch)("small","<")?sl:void 0;return(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-global-styles-color-palette-panel",spacing:10},!!t&&!!t.length&&(0,l.createElement)(v.__experimentalPaletteEdit,{canReset:t!==a,canOnlyChangeValues:!0,colors:t,onChange:n,paletteLabel:(0,E.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:d}),!!r&&!!r.length&&!!u&&(0,l.createElement)(v.__experimentalPaletteEdit,{canReset:r!==i,canOnlyChangeValues:!0,colors:r,onChange:o,paletteLabel:(0,E.__)("Default"),paletteLabelHeadingLevel:3,popoverProps:d}),(0,l.createElement)(v.__experimentalPaletteEdit,{colors:s,onChange:c,paletteLabel:(0,E.__)("Custom"),paletteLabelHeadingLevel:3,emptyMessage:(0,E.__)("Custom colors are empty! Add some colors to create your own color palette."),slugPrefix:"custom-",popoverProps:d}))}const{useGlobalSetting:cl}=nt(we.privateApis),ul={placement:"bottom-start",offset:8},dl=()=>{};function ml({name:e}){const[t,n]=cl("color.gradients.theme",e),[a]=cl("color.gradients.theme",e,"base"),[r,o]=cl("color.gradients.default",e),[i]=cl("color.gradients.default",e,"base"),[s,c]=cl("color.gradients.custom",e),[u]=cl("color.defaultGradients",e),[d]=cl("color.duotone.custom")||[],[m]=cl("color.duotone.default")||[],[p]=cl("color.duotone.theme")||[],[_]=cl("color.defaultDuotone"),g=[...d||[],...p||[],...m&&_?m:[]],h=(0,re.useViewportMatch)("small","<")?ul:void 0;return(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-global-styles-gradient-palette-panel",spacing:10},!!t&&!!t.length&&(0,l.createElement)(v.__experimentalPaletteEdit,{canReset:t!==a,canOnlyChangeValues:!0,gradients:t,onChange:n,paletteLabel:(0,E.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:h}),!!r&&!!r.length&&!!u&&(0,l.createElement)(v.__experimentalPaletteEdit,{canReset:r!==i,canOnlyChangeValues:!0,gradients:r,onChange:o,paletteLabel:(0,E.__)("Default"),paletteLabelLevel:3,popoverProps:h}),(0,l.createElement)(v.__experimentalPaletteEdit,{gradients:s,onChange:c,paletteLabel:(0,E.__)("Custom"),paletteLabelLevel:3,emptyMessage:(0,E.__)("Custom gradients are empty! Add some gradients to create your own palette."),slugPrefix:"custom-",popoverProps:h}),!!g&&!!g.length&&(0,l.createElement)("div",null,(0,l.createElement)(Es,{level:3},(0,E.__)("Duotone")),(0,l.createElement)(v.__experimentalSpacer,{margin:3}),(0,l.createElement)(v.DuotonePicker,{duotonePalette:g,disableCustomDuotone:!0,disableCustomColors:!0,clearable:!1,onChange:dl})))}var pl=function({name:e}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ls,{title:(0,E.__)("Palette"),description:(0,E.__)("Palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.")}),(0,l.createElement)(v.TabPanel,{tabs:[{name:"solid",title:"Solid",value:"solid"},{name:"gradient",title:"Gradient",value:"gradient"}]},(t=>(0,l.createElement)(l.Fragment,null,"solid"===t.value&&(0,l.createElement)(ll,{name:e}),"gradient"===t.value&&(0,l.createElement)(ml,{name:e})))))};const{useGlobalStyle:_l,useGlobalSetting:gl,useSettingsForBlockElement:hl,DimensionsPanel:yl}=nt(we.privateApis),vl={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,childLayout:!1};function El(){const[e]=_l("",void 0,"user",{shouldDecodeEncode:!1}),[t,n]=_l("",void 0,"all",{shouldDecodeEncode:!1}),[a,r]=gl(""),o=hl(a),i=(0,l.useMemo)((()=>({...t,layout:o.layout})),[t,o.layout]),s=(0,l.useMemo)((()=>({...e,layout:o.layout})),[e,o.layout]);return(0,l.createElement)(yl,{inheritedValue:i,value:s,onChange:e=>{const t={...e};if(delete t.layout,n(t),e.layout!==o.layout){const t={...a,layout:e.layout};t.layout?.definitions&&delete t.layout.definitions,r(t)}},settings:o,includeLayoutControls:!0,defaultControls:vl})}const{useHasDimensionsPanel:fl,useGlobalSetting:bl,useSettingsForBlockElement:wl}=nt(we.privateApis);var Sl=function(){const[e]=bl(""),t=wl(e),n=fl(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ls,{title:(0,E.__)("Layout")}),(0,l.createElement)(vs,null),n&&(0,l.createElement)(El,null))};var kl=function(){const{mode:e}=(0,d.useSelect)((e=>({mode:e(we.store).__unstableGetEditorMode()})),[]),t=(0,l.useRef)(null);(0,l.useEffect)((()=>{"zoom-out"!==e&&(t.current=!1)}),[e]),(0,l.useEffect)((()=>{if("zoom-out"!==e)return n("zoom-out"),t.current=!0,()=>{t.current&&n(e)}}),[]);const{__unstableSetEditorMode:n}=(0,d.useDispatch)(we.store);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ls,{back:"/",title:(0,E.__)("Browse styles"),description:(0,E.__)("Choose a variation to change the look of the site.")}),(0,l.createElement)(v.Card,{size:"small",isBorderless:!0,className:"edit-site-global-styles-screen-style-variations"},(0,l.createElement)(v.CardBody,null,(0,l.createElement)(Sa,null))))};const{useGlobalStyle:Cl,AdvancedPanel:xl}=nt(we.privateApis);var Tl=function(){const e=(0,E.__)("Add your own CSS to customize the appearance and layout of your site."),[t]=Cl("",void 0,"user",{shouldDecodeEncode:!1}),[n,a]=Cl("",void 0,"all",{shouldDecodeEncode:!1});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ls,{title:(0,E.__)("CSS"),description:(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(v.ExternalLink,{href:"https://wordpress.org/documentation/article/css/",className:"edit-site-global-styles-screen-css-help-link"},(0,E.__)("Learn more about CSS")))}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-css"},(0,l.createElement)(xl,{value:t,onChange:a,inheritedValue:n})))};const{ExperimentalBlockEditorProvider:Nl,useGlobalStylesOutputWithConfig:Ml}=nt(we.privateApis);function Pl(e){return!e||0===Object.keys(e).length}var Il=function({onClose:e,userConfig:t,blocks:n}){const{baseConfig:a}=(0,d.useSelect)((e=>({baseConfig:e(_.store).__experimentalGetCurrentThemeBaseGlobalStyles()})),[]),r=(0,l.useMemo)((()=>Pl(t)||Pl(a)?{}:ua(a,t)),[a,t]),o=(0,l.useMemo)((()=>Array.isArray(n)?n:[n]),[n]),i=(0,d.useSelect)((e=>e(we.store).getSettings()),[]),s=(0,l.useMemo)((()=>({...i,__unstableIsPreviewMode:!0})),[i]),[c]=Ml(r),u=Pl(c)||Pl(t)?s.styles:c;return(0,l.createElement)(Ra,{title:(0,E.__)("Revisions"),onClose:e,closeButtonLabel:(0,E.__)("Close revisions"),enableResizing:!0},(0,l.createElement)(we.__unstableIframe,{className:"edit-site-revisions__iframe",name:"revisions",tabIndex:0},(0,l.createElement)(we.__unstableEditorStyles,{styles:u}),(0,l.createElement)("style",null,".is-root-container { display: flow-root; } body { position: relative; padding: 32px; }"),(0,l.createElement)(v.Disabled,{className:"edit-site-revisions__example-preview__content"},(0,l.createElement)(Nl,{value:o,settings:s},(0,l.createElement)(we.BlockList,{renderAppender:!1})))))};const{createPrivateSlotFill:Bl}=nt(v.privateApis),{Slot:Dl,Fill:Rl}=Bl("SidebarFixedBottom");function Ll({children:e}){return(0,l.createElement)(Rl,null,(0,l.createElement)("div",{className:"edit-site-sidebar-fixed-bottom-slot"},e))}function Al(e){const t=e?.author?.name||(0,E.__)("User");if("unsaved"===e?.id)return(0,E.sprintf)((0,E.__)("Unsaved changes by %s"),t);const n=(0,na.dateI18n)((0,na.getSettings)().formats.datetimeAbbreviated,(0,na.getDate)(e?.modified));return e?.isLatest?(0,E.sprintf)((0,E.__)("Changes saved by %1$s on %2$s (current)"),t,n):(0,E.sprintf)((0,E.__)("Changes saved by %1$s on %2$s"),t,n)}var Fl=function({userRevisions:e,selectedRevisionId:t,onChange:n}){return(0,l.createElement)("ol",{className:"edit-site-global-styles-screen-revisions__revisions-list","aria-label":(0,E.__)("Global styles revisions"),role:"group"},e.map(((e,a)=>{const{id:r,author:o,modified:i}=e,s=o?.name||(0,E.__)("User"),c=o?.avatar_urls?.[48],u="unsaved"===e?.id,d=t?t===e?.id:0===a;return(0,l.createElement)("li",{className:y()("edit-site-global-styles-screen-revisions__revision-item",{"is-selected":d}),key:r},(0,l.createElement)(v.Button,{className:"edit-site-global-styles-screen-revisions__revision-button",disabled:d,onClick:()=>{n(e)},label:Al(e)},(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__description"},(0,l.createElement)("time",{dateTime:i},(0,na.humanTimeDiff)(i)),(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__meta"},u?(0,E.sprintf)((0,E.__)("Unsaved changes by %s"),s):(0,E.sprintf)((0,E.__)("Changes saved by %s"),s),(0,l.createElement)("img",{alt:o?.name,src:c})))))})))};const{GlobalStylesContext:Vl,areGlobalStyleConfigsEqual:zl}=nt(we.privateApis);var Ol=function(){const{goBack:e}=(0,v.__experimentalUseNavigator)(),{user:t,setUserConfig:n}=(0,l.useContext)(Vl),{blocks:a,editorCanvasContainerView:r}=(0,d.useSelect)((e=>({editorCanvasContainerView:nt(e(Fn)).getEditorCanvasContainerView(),blocks:e(we.store).getBlocks()})),[]),{revisions:o,isLoading:i,hasUnsavedChanges:s}=ja(),[c,u]=(0,l.useState)(),[m,p]=(0,l.useState)(t),[_,g]=(0,l.useState)(!1),{setEditorCanvasContainerView:h}=nt((0,d.useDispatch)(Fn));(0,l.useEffect)((()=>{"global-styles-revisions"!==r&&(e(),h(r))}),[r]);const y=()=>{e()},f=e=>{n((()=>({styles:e?.styles,settings:e?.settings}))),g(!1),y()},b=!!m?.id&&!zl(m,t),w=!i&&o.length;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ls,{title:(0,E.__)("Revisions"),description:(0,E.__)("Revisions are added to the timeline when style changes are saved.")}),i&&(0,l.createElement)(v.Spinner,{className:"edit-site-global-styles-screen-revisions__loading"}),w?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Il,{blocks:a,userConfig:m,onClose:y}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-revisions"},(0,l.createElement)(Fl,{onChange:e=>{p({styles:e?.styles,settings:e?.settings,id:e?.id}),u(e?.id)},selectedRevisionId:c,userRevisions:o}),b&&(0,l.createElement)(Ll,null,(0,l.createElement)(v.Button,{variant:"primary",className:"edit-site-global-styles-screen-revisions__button",disabled:!m?.id||"unsaved"===m?.id,onClick:()=>{s?g(!0):f(m)}},(0,E.__)("Apply")))),_&&(0,l.createElement)(v.__experimentalConfirmDialog,{title:(0,E.__)("Loading this revision will discard all unsaved changes."),isOpen:_,confirmButtonText:(0,E.__)(" Discard unsaved changes"),onConfirm:()=>f(m),onCancel:()=>g(!1)},(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h2",null,(0,E.__)("Loading this revision will discard all unsaved changes.")),(0,l.createElement)("p",null,(0,E.__)("Do you want to replace your unsaved changes in the editor?"))))):(0,l.createElement)(v.__experimentalSpacer,{marginX:4,"data-testid":"global-styles-no-revisions"},(0,E.__)("No results found.")))};const{Slot:Hl,Fill:Gl}=(0,v.createSlotFill)("GlobalStylesMenu");function Ul(){const{toggle:e}=(0,d.useDispatch)(x.store),{canEditCSS:t}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a(),o=r?n("root","globalStyles",r):void 0;return{canEditCSS:null!==(t=!!o?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),{goTo:n}=(0,v.__experimentalUseNavigator)(),a=()=>n("/css");return(0,l.createElement)(Gl,null,(0,l.createElement)(v.DropdownMenu,{icon:le,label:(0,E.__)("More")},(({onClose:n})=>(0,l.createElement)(v.MenuGroup,null,t&&(0,l.createElement)(v.MenuItem,{onClick:a},(0,E.__)("Additional CSS")),(0,l.createElement)(v.MenuItem,{onClick:()=>{e("core/edit-site","welcomeGuideStyles"),n()}},(0,E.__)("Welcome Guide"))))))}function $l({className:e,children:t}){return(0,l.createElement)("span",{className:y()(e,"edit-site-global-styles-sidebar__revisions-count-badge")},t)}function jl(){const{setIsListViewOpened:e}=(0,d.useDispatch)(Fn),{revisionsCount:t}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a(),o=r?n("root","globalStyles",r):void 0;return{revisionsCount:null!==(t=o?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}}),[]),{useGlobalStylesReset:n}=nt(we.privateApis),[a,r]=n(),{goTo:o}=(0,v.__experimentalUseNavigator)(),{setEditorCanvasContainerView:i}=nt((0,d.useDispatch)(Fn)),s=()=>{e(!1),o("/revisions"),i("global-styles-revisions")},c=t>=2;return(0,l.createElement)(Gl,null,a||c?(0,l.createElement)(v.DropdownMenu,{icon:Qn,label:(0,E.__)("Revisions")},(({onClose:e})=>(0,l.createElement)(v.MenuGroup,null,c&&(0,l.createElement)(v.MenuItem,{onClick:s,icon:(0,l.createElement)($l,null,t)},(0,E.__)("Revision history")),(0,l.createElement)(v.MenuItem,{onClick:()=>{r(),e()},disabled:!a},(0,E.__)("Reset to defaults"))))):(0,l.createElement)(v.Button,{label:(0,E.__)("Revisions"),icon:Qn,disabled:!0,__experimentalIsFocusable:!0}))}function Wl({className:e,...t}){return(0,l.createElement)(v.__experimentalNavigatorScreen,{className:["edit-site-global-styles-sidebar__navigator-screen",e].filter(Boolean).join(" "),...t})}function Zl({parentMenu:e,blockStyles:t,blockName:n}){return t.map(((t,a)=>(0,l.createElement)(Wl,{key:a,path:e+"/variations/"+t.name},(0,l.createElement)(Fs,{name:n,variation:t.name}))))}function ql({name:e,parentMenu:t=""}){const n=(0,d.useSelect)((t=>{const{getBlockStyles:n}=t(c.store);return n(e)}),[e]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Wl,{path:t+"/colors/palette"},(0,l.createElement)(pl,{name:e})),!!n?.length&&(0,l.createElement)(Zl,{parentMenu:t,blockStyles:n,blockName:e}))}function Yl(){const e=(0,v.__experimentalUseNavigator)(),{path:t}=e.location;return(0,l.createElement)(Ha,{isSelected:e=>t===`/blocks/${encodeURIComponent(e)}`||t.startsWith(`/blocks/${encodeURIComponent(e)}/`),onSelect:t=>{e.goTo("/blocks/"+encodeURIComponent(t))}})}function Kl(){const e=(0,v.__experimentalUseNavigator)(),{selectedBlockName:t,selectedBlockClientId:n}=(0,d.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n}=e(we.store),a=t();return{selectedBlockName:n(a),selectedBlockClientId:a}}),[]),a=gs(t);(0,l.useEffect)((()=>{if(!n||!a)return;const r=e.location.path;if("/blocks"!==r&&!r.startsWith("/blocks/"))return;const o="/blocks/"+encodeURIComponent(t);o!==r&&e.goTo(o,{skipFocus:!0})}),[n,t,a])}function Xl(){const{goTo:e,location:t}=(0,v.__experimentalUseNavigator)(),n=(0,d.useSelect)((e=>nt(e(Fn)).getEditorCanvasContainerView()),[]);(0,l.useEffect)((()=>{"global-styles-revisions"===n?e("/revisions"):n&&"/revisions"===t?.path?e("/"):"global-styles-css"===n&&e("/css")}),[n,e])}var Ql=function(){const e=(0,c.getBlockTypes)(),t=(0,d.useSelect)((e=>nt(e(Fn)).getEditorCanvasContainerView()),[]);return(0,l.createElement)(v.__experimentalNavigatorProvider,{className:"edit-site-global-styles-sidebar__navigator-provider",initialPath:"/"},(0,l.createElement)(Wl,{path:"/"},(0,l.createElement)(os,null)),(0,l.createElement)(Wl,{path:"/variations"},(0,l.createElement)(kl,null)),(0,l.createElement)(Wl,{path:"/blocks"},(0,l.createElement)(ys,null)),(0,l.createElement)(Wl,{path:"/typography"},(0,l.createElement)(Os,null)),(0,l.createElement)(Wl,{path:"/typography/text"},(0,l.createElement)(Ys,{element:"text"})),(0,l.createElement)(Wl,{path:"/typography/link"},(0,l.createElement)(Ys,{element:"link"})),(0,l.createElement)(Wl,{path:"/typography/heading"},(0,l.createElement)(Ys,{element:"heading"})),(0,l.createElement)(Wl,{path:"/typography/caption"},(0,l.createElement)(Ys,{element:"caption"})),(0,l.createElement)(Wl,{path:"/typography/button"},(0,l.createElement)(Ys,{element:"button"})),(0,l.createElement)(Wl,{path:"/colors"},(0,l.createElement)(ol,null)),(0,l.createElement)(Wl,{path:"/layout"},(0,l.createElement)(Sl,null)),(0,l.createElement)(Wl,{path:"/css"},(0,l.createElement)(Tl,null)),(0,l.createElement)(Wl,{path:"/revisions"},(0,l.createElement)(Ol,null)),e.map((e=>(0,l.createElement)(Wl,{key:"menu-block-"+e.name,path:"/blocks/"+encodeURIComponent(e.name)},(0,l.createElement)(Fs,{name:e.name})))),(0,l.createElement)(ql,null),e.map((e=>(0,l.createElement)(ql,{key:"screens-block-"+e.name,name:e.name,parentMenu:"/blocks/"+encodeURIComponent(e.name)}))),"style-book"===t&&(0,l.createElement)(Yl,null),(0,l.createElement)(jl,null),(0,l.createElement)(Ul,null),(0,l.createElement)(Kl,null),(0,l.createElement)(Xl,null))};function Jl(){const{shouldClearCanvasContainerView:e,isStyleBookOpened:t,showListViewByDefault:n}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t}=e(U),{getEditorCanvasContainerView:n,getCanvasMode:a}=nt(e(Fn)),r="visual"===e(Fn).getEditorMode(),o="edit"===a(),i=e(x.store).get("core/edit-site","showListViewByDefault");return{isStyleBookOpened:"style-book"===n(),shouldClearCanvasContainerView:"edit-site/global-styles"!==t("core/edit-site")||!r||!o,showListViewByDefault:i}}),[]),{setEditorCanvasContainerView:a}=nt((0,d.useDispatch)(Fn));(0,l.useEffect)((()=>{e&&a(void 0)}),[e]);const{setIsListViewOpened:r}=(0,d.useDispatch)(Fn);return(0,l.createElement)(Zi,{className:"edit-site-global-styles-sidebar",identifier:"edit-site/global-styles",title:(0,E.__)("Styles"),icon:Gn,closeLabel:(0,E.__)("Close Styles"),panelClassName:"edit-site-global-styles-sidebar__panel",header:(0,l.createElement)(v.Flex,{className:"edit-site-global-styles-sidebar__header",role:"menubar","aria-label":(0,E.__)("Styles actions")},(0,l.createElement)(v.FlexBlock,{style:{minWidth:"min-content"}},(0,l.createElement)("strong",null,(0,E.__)("Styles"))),(0,l.createElement)(v.FlexItem,null,(0,l.createElement)(v.Button,{icon:Jn,label:(0,E.__)("Style Book"),isPressed:t,disabled:e,onClick:()=>{r(t&&n),a(t?void 0:"style-book")}})),(0,l.createElement)(Hl,null))},(0,l.createElement)(Ql,null))}const ec="edit-site/template",tc="edit-site/block-inspector",nc={wp_navigation:(0,E.__)("Navigation"),wp_block:(0,E.__)("Pattern"),wp_template:(0,E.__)("Template")};var ac=({sidebarName:e})=>{const{hasPageContentFocus:t,entityType:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t,hasPageContentFocus:n}=e(Fn);return{hasPageContentFocus:n(),entityType:t()}})),a=nc[n]||nc.wp_template,{enableComplementaryArea:r}=(0,d.useDispatch)(U);let o;return o=t?e===ec?(0,E.__)("Page (selected)"):(0,E.__)("Page"):e===ec?(0,E.sprintf)((0,E.__)("%s (selected)"),a):a,(0,l.createElement)("ul",null,(0,l.createElement)("li",null,(0,l.createElement)(v.Button,{onClick:()=>r(Bt,ec),className:y()("edit-site-sidebar-edit-mode__panel-tab",{"is-active":e===ec}),"aria-label":o,"data-label":t?(0,E.__)("Page"):a},t?(0,E.__)("Page"):a)),(0,l.createElement)("li",null,(0,l.createElement)(v.Button,{onClick:()=>r(Bt,tc),className:y()("edit-site-sidebar-edit-mode__panel-tab",{"is-active":e===tc}),"aria-label":e===tc?(0,E.__)("Block (selected)"):(0,E.__)("Block"),"data-label":(0,E.__)("Block")},(0,E.__)("Block"))))};function rc({className:e,title:t,icon:n,description:a,actions:r,children:o}){return(0,l.createElement)("div",{className:y()("edit-site-sidebar-card",e)},(0,l.createElement)(v.Icon,{className:"edit-site-sidebar-card__icon",icon:n}),(0,l.createElement)("div",{className:"edit-site-sidebar-card__content"},(0,l.createElement)("div",{className:"edit-site-sidebar-card__header"},(0,l.createElement)("h2",{className:"edit-site-sidebar-card__title"},t),r),(0,l.createElement)("div",{className:"edit-site-sidebar-card__description"},a),o))}const{BlockQuickNavigation:oc}=nt(we.privateApis);function ic(){const e=(0,d.useSelect)((e=>nt(e(we.store)).getEnabledClientIdsTree()),[]),t=(0,l.useMemo)((()=>e.map((({clientId:e})=>e))),[e]);return(0,l.createElement)(oc,{clientIds:t})}const sc=[{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Draft"),(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.__)("Not ready to publish."))),value:"draft"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Pending"),(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.__)("Waiting for review before publishing."))),value:"pending"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Private"),(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.__)("Only visible to site admins and editors."))),value:"private"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Scheduled"),(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.__)("Publish automatically on a chosen date."))),value:"future"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Published"),(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.__)("Visible to everyone."))),value:"publish"}];function lc({postType:e,postId:t,status:n,password:a,date:r}){const[o,i]=(0,l.useState)(!!a),{editEntityRecord:s}=(0,d.useDispatch)(_.store),{createErrorNotice:c}=(0,d.useDispatch)(Se.store),[u,m]=(0,l.useState)(null),p=(0,l.useMemo)((()=>({anchor:u,"aria-label":(0,E.__)("Change status"),placement:"bottom-end"})),[u]),g=async({status:o=n,password:i=a,date:l=r})=>{try{await s("postType",e,t,{status:o,date:l,password:i})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while updating the status");c(t,{type:"snackbar"})}},h=e=>{i(e),e||g({password:""})},y=e=>{let t=r,n=a;"publish"===e?new Date(r)>new Date&&(t=null):"future"===e?(!r||new Date(r)<new Date)&&(t=new Date,t.setDate(t.getDate()+7)):"private"===e&&a&&(i(!1),n=""),g({status:e,date:t,password:n})};return(0,l.createElement)(v.__experimentalHStack,{className:"edit-site-summary-field"},(0,l.createElement)(v.__experimentalText,{className:"edit-site-summary-field__label"},(0,E.__)("Status")),(0,l.createElement)(v.Dropdown,{contentClassName:"edit-site-change-status__content",popoverProps:p,focusOnMount:!0,ref:m,renderToggle:({onToggle:e})=>(0,l.createElement)(v.Button,{className:"edit-site-summary-field__trigger",variant:"tertiary",onClick:e},(0,l.createElement)(Ai,{status:a?"protected":n})),renderContent:({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(we.__experimentalInspectorPopoverHeader,{title:(0,E.__)("Status"),onClose:e}),(0,l.createElement)("form",null,(0,l.createElement)(v.__experimentalVStack,{spacing:5},(0,l.createElement)(v.RadioControl,{className:"edit-site-change-status__options",hideLabelFromVision:!0,label:(0,E.__)("Status"),options:sc,onChange:y,selected:n}),"private"!==n&&(0,l.createElement)(v.BaseControl,{id:"edit-site-change-status__password",label:(0,E.__)("Password")},(0,l.createElement)(v.ToggleControl,{label:(0,E.__)("Hide this page behind a password"),checked:o,onChange:h}),o&&(0,l.createElement)(v.TextControl,{onChange:e=>g({password:e}),value:a,placeholder:(0,E.__)("Use a secure password"),type:"text"})))))}))}function cc({postType:e,postId:t,status:n,date:a}){const{editEntityRecord:r}=(0,d.useDispatch)(_.store),{createErrorNotice:o}=(0,d.useDispatch)(Se.store),[i,s]=(0,l.useState)(null),c=(0,l.useMemo)((()=>({anchor:i,"aria-label":(0,E.__)("Change publish date"),placement:"bottom-end"})),[i]),u=async a=>{try{let o=n;"future"===n&&new Date(a)<new Date?o="publish":"publish"===n&&new Date(a)>new Date&&(o="future"),await r("postType",e,t,{status:o,date:a})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while updating the status");o(t,{type:"snackbar"})}},m=a?(0,na.humanTimeDiff)(a):(0,E.__)("Immediately");return(0,l.createElement)(v.__experimentalHStack,{className:"edit-site-summary-field"},(0,l.createElement)(v.__experimentalText,{className:"edit-site-summary-field__label"},(0,E.__)("Publish")),(0,l.createElement)(v.Dropdown,{contentClassName:"edit-site-change-status__content",popoverProps:c,focusOnMount:!0,ref:s,renderToggle:({onToggle:e})=>(0,l.createElement)(v.Button,{className:"edit-site-summary-field__trigger",variant:"tertiary",onClick:e},m),renderContent:({onClose:e})=>(0,l.createElement)(we.__experimentalPublishDateTimePicker,{currentDate:a,is12Hour:!0,onClose:e,onChange:u})}))}function uc({status:e,date:t,password:n,postId:a,postType:r}){return(0,l.createElement)(v.__experimentalVStack,null,(0,l.createElement)(lc,{status:e,date:t,password:n,postId:a,postType:r}),(0,l.createElement)(cc,{status:e,date:t,postId:a,postType:r}))}function dc(){const{context:e,hasResolved:t,title:n,blocks:a}=(0,d.useSelect)((e=>{const{getEditedPostContext:t,getEditedPostType:n,getEditedPostId:a}=e(Fn),{getEditedEntityRecord:r,hasFinishedResolution:o}=e(_.store),i=t(),s=["postType",n(),a()],l=r(...s);return{context:i,hasResolved:o("getEditedEntityRecord",s),title:l?.title,blocks:l?.blocks}}),[]),{setHasPageContentFocus:r}=(0,d.useDispatch)(Fn),o=(0,l.useMemo)((()=>({...e,postType:null,postId:null})),[e]);return t?(0,l.createElement)(v.__experimentalVStack,null,(0,l.createElement)("div",null,(0,It.decodeEntities)(n)),(0,l.createElement)("div",{className:"edit-site-page-panels__edit-template-preview"},(0,l.createElement)(we.BlockContextProvider,{value:o},(0,l.createElement)(we.BlockPreview,{viewportWidth:1024,blocks:a}))),(0,l.createElement)(v.Button,{className:"edit-site-page-panels__edit-template-button",variant:"secondary",onClick:()=>r(!1)},(0,E.__)("Edit template"))):null}function mc(){const{id:e,type:t,hasResolved:n,status:a,date:r,password:o,title:i,modified:s}=(0,d.useSelect)((e=>{const{getEditedPostContext:t}=e(Fn),{getEditedEntityRecord:n,hasFinishedResolution:a}=e(_.store),r=t(),o=["postType",r.postType,r.postId],i=n(...o);return{hasResolved:a("getEditedEntityRecord",o),title:i?.title,id:i?.id,type:i?.type,status:i?.status,date:i?.date,password:i?.password,modified:i?.modified}}),[]);return n?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.PanelBody,null,(0,l.createElement)(rc,{title:(0,It.decodeEntities)(i),icon:Un,description:(0,l.createElement)(v.__experimentalVStack,null,(0,l.createElement)(v.__experimentalText,null,(0,E.sprintf)((0,E.__)("Last edited %s"),(0,na.humanTimeDiff)(s))))})),(0,l.createElement)(v.PanelBody,{title:(0,E.__)("Summary")},(0,l.createElement)(uc,{status:a,date:r,password:o,postId:e,postType:t})),(0,l.createElement)(v.PanelBody,{title:(0,E.__)("Content")},(0,l.createElement)(ic,null)),(0,l.createElement)(v.PanelBody,{title:(0,E.__)("Template")},(0,l.createElement)(dc,null))):null}function pc({template:e}){const{revertTemplate:t}=(0,d.useDispatch)(Fn);return Rt(e)?(0,l.createElement)(v.DropdownMenu,{icon:le,label:(0,E.__)("Actions"),className:"edit-site-template-card__actions",toggleProps:{isSmall:!0}},(({onClose:n})=>(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{info:(0,E.__)("Use the template as supplied by the theme."),onClick:()=>{t(e),n()}},(0,E.__)("Clear customizations"))))):null}function _c({area:e,clientId:t}){const{selectBlock:n,toggleBlockHighlight:a}=(0,d.useDispatch)(we.store),r=(0,d.useSelect)((t=>t(g.store).__experimentalGetDefaultTemplatePartAreas().find((t=>t.area===e))),[e]),o=()=>a(t,!0),i=()=>a(t,!1);return(0,l.createElement)(v.Button,{className:"edit-site-template-card__template-areas-item",icon:r?.icon,onMouseOver:o,onMouseLeave:i,onFocus:o,onBlur:i,onClick:()=>{n(t)}},r?.label)}function gc(){const e=(0,d.useSelect)((e=>e(Fn).getCurrentTemplateTemplateParts()),[]);return e.length?(0,l.createElement)("section",{className:"edit-site-template-card__template-areas"},(0,l.createElement)(v.__experimentalHeading,{level:3,className:"edit-site-template-card__template-areas-title"},(0,E.__)("Areas")),(0,l.createElement)("ul",{className:"edit-site-template-card__template-areas-list"},e.map((({templatePart:e,block:t})=>(0,l.createElement)("li",{key:e.slug},(0,l.createElement)(_c,{area:e.area,clientId:t.clientId})))))):null}const hc=()=>{var e,t;const{record:n}=Ur();return{currentTemplate:n,lastRevisionId:null!==(e=n?._links?.["predecessor-version"]?.[0]?.id)&&void 0!==e?e:null,revisionsCount:null!==(t=n?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}};function yc({children:e}){const{lastRevisionId:t,revisionsCount:n}=hc();return!t||n<2?null:(0,l.createElement)(g.PostTypeSupportCheck,{supportKeys:"revisions"},e)}const vc=()=>{const{lastRevisionId:e,revisionsCount:t}=hc();return(0,l.createElement)(yc,null,(0,l.createElement)(v.Button,{href:(0,_t.addQueryArgs)("revision.php",{revision:e,gutenberg:!0}),className:"edit-site-template-last-revision__title",icon:Qn},(0,E.sprintf)((0,E._n)("%d Revision","%d Revisions",t),t)))};function Ec(){return(0,l.createElement)(yc,null,(0,l.createElement)(vc,null))}function fc(){const{info:{title:e,description:t,icon:n},record:a}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Fn),{getEditedEntityRecord:a}=e(_.store),{__experimentalGetTemplateInfo:r}=e(g.store),o=a("postType",t(),n());return{info:o?r(o):{},record:o}}),[]);return e||t?(0,l.createElement)(v.PanelBody,{className:"edit-site-template-panel"},(0,l.createElement)(rc,{className:"edit-site-template-card",title:(0,It.decodeEntities)(e),icon:"wp_navigation"===a?.type?Hn:n,description:(0,It.decodeEntities)(t),actions:(0,l.createElement)(pc,{template:a})},(0,l.createElement)(gc,null)),(0,l.createElement)(v.PanelRow,{header:(0,E.__)("Editing history"),className:"edit-site-template-revisions"},(0,l.createElement)(Ec,null))):null}const{Fill:bc,Slot:wc}=(0,v.createSlotFill)("PluginTemplateSettingPanel"),Sc=bc;Sc.Slot=wc;var kc=Sc;const{Slot:Cc,Fill:xc}=(0,v.createSlotFill)("EditSiteSidebarInspector"),Tc=xc;function Nc(){const{sidebar:e,isEditorSidebarOpened:t,hasBlockSelection:n,supportsGlobalStyles:a,hasPageContentFocus:r}=(0,d.useSelect)((e=>{const t=e(U).getActiveComplementaryArea(Bt),n=[tc,ec].includes(t),a=e(Fn).getSettings();return{sidebar:t,isEditorSidebarOpened:n,hasBlockSelection:!!e(we.store).getBlockSelectionStart(),supportsGlobalStyles:!a?.supportsTemplatePartsMode,hasPageContentFocus:e(Fn).hasPageContentFocus()}}),[]),{enableComplementaryArea:o}=(0,d.useDispatch)(U);(0,l.useEffect)((()=>{t&&(n?r||o(Bt,tc):o(Bt,ec))}),[n,t,r]);let i=e;return t||(i=n?tc:ec),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Zi,{identifier:i,title:(0,E.__)("Settings"),icon:(0,E.isRTL)()?ji:Wi,closeLabel:(0,E.__)("Close Settings"),header:(0,l.createElement)(ac,{sidebarName:i}),headerClassName:"edit-site-sidebar-edit-mode__panel-tabs"},i===ec&&(0,l.createElement)(l.Fragment,null,r?(0,l.createElement)(mc,null):(0,l.createElement)(fc,null),(0,l.createElement)(kc.Slot,null)),i===tc&&(0,l.createElement)(Cc,{bubblesVirtually:!0})),a&&(0,l.createElement)(Jl,null))}var Mc=window.wp.reusableBlocks;function Pc({clientId:e,onClose:t}){const{getBlocks:n}=(0,d.useSelect)(we.store),{replaceBlocks:a}=(0,d.useDispatch)(we.store);return(0,d.useSelect)((t=>t(we.store).canRemoveBlock(e)),[e])?(0,l.createElement)(v.MenuItem,{onClick:()=>{a(e,n(e)),t()}},(0,E.__)("Detach blocks from template part")):null}var Ic=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function Bc({clientIds:e,blocks:t}){const[n,a]=(0,l.useState)(!1),{replaceBlocks:r}=(0,d.useDispatch)(we.store),{createSuccessNotice:o}=(0,d.useDispatch)(Se.store),{canCreate:i}=(0,d.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(Fn).getSettings();return{canCreate:!t}}),[]);if(!i)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuItem,{icon:Ic,onClick:()=>{a(!0)}},(0,E.__)("Create template part")),n&&(0,l.createElement)(To,{closeModal:()=>{a(!1)},blocks:t,onCreate:async t=>{r(e,(0,c.createBlock)("core/template-part",{slug:t.slug,theme:t.theme})),o((0,E.__)("Template part created."),{type:"snackbar"})}}))}function Dc(){return(0,l.createElement)(we.BlockSettingsMenuControls,null,(({selectedClientIds:e,onClose:t})=>(0,l.createElement)(Rc,{clientIds:e,onClose:t})))}function Rc({clientIds:e,onClose:t}){const n=(0,d.useSelect)((t=>t(we.store).getBlocksByClientId(e)),[e]);return 1===n.length&&"core/template-part"===n[0]?.name?(0,l.createElement)(Pc,{clientId:e[0],onClose:t}):(0,l.createElement)(Bc,{clientIds:e,blocks:n})}var Lc=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));const{useLocation:Ac,useHistory:Fc}=nt(pt.privateApis);var Vc=function(){const e=Ac(),t=Fc(),n="wp_template_part"===e.params.postType,a="wp_navigation"===e.params.postType,r=e.state?.fromTemplateId;return(n||a)&&r?(0,l.createElement)(v.Button,{className:"edit-site-visual-editor__back-button",icon:Lc,onClick:()=>{t.back()}},(0,E.__)("Back")):null};var zc=function({enableResizing:e,settings:t,children:n,...a}){const{canvasMode:r,deviceType:o,isZoomOutMode:i}=(0,d.useSelect)((e=>({deviceType:e(Fn).__experimentalGetPreviewDeviceType(),isZoomOutMode:"zoom-out"===e(we.store).__unstableGetEditorMode(),canvasMode:nt(e(Fn)).getCanvasMode()})),[]),{setCanvasMode:s}=nt((0,d.useDispatch)(Fn)),c=(0,we.__experimentalUseResizeCanvas)(o),u=(0,we.__unstableUseMouseMoveTypingReset)(),[m,p]=(0,l.useState)(!1);(0,l.useEffect)((()=>{"edit"===r&&p(!1)}),[r]);const _={"aria-label":(0,E.__)("Editor Canvas"),role:"button",tabIndex:0,onFocus:()=>p(!0),onBlur:()=>p(!1),onKeyDown:e=>{const{keyCode:t}=e;t!==aa.ENTER&&t!==aa.SPACE||(e.preventDefault(),s("edit"))},onClick:()=>s("edit"),readonly:!0};return(0,l.createElement)(we.__unstableIframe,{expand:i,scale:i?.45:void 0,frameSize:i?100:void 0,style:e?{}:c,ref:u,name:"editor-canvas",className:y()("edit-site-visual-editor__editor-canvas",{"is-focused":m&&"view"===r}),...a,..."view"===r?_:{}},(0,l.createElement)(we.__unstableEditorStyles,{styles:t.styles}),(0,l.createElement)("style",null,`.is-root-container{display:flow-root;${e?"min-height:0!important;":""}}body{position:relative; ${"view"===r?"cursor: pointer; min-height: 100vh;":""}}}`),n)};const Oc=(e,t)=>`<a ${Hc(e)}>${t}</a>`,Hc=e=>`href="${e}" target="_blank" rel="noreferrer noopener"`,Gc=e=>{const{title:t,foreign_landing_url:n,creator:a,creator_url:r,license:o,license_version:i,license_url:s}=e,l=((e,t)=>{let n=e.trim();return"pdm"!==e&&(n=e.toUpperCase().replace("SAMPLING","Sampling")),t&&(n+=` ${t}`),["pdm","cc0"].includes(e)||(n=`CC ${n}`),n})(o,i),c=(0,It.decodeEntities)(a);let u;return u=c?t?(0,E.sprintf)((0,E._x)('"%1$s" by %2$s/ %3$s',"caption"),Oc(n,(0,It.decodeEntities)(t)),r?Oc(r,c):c,s?Oc(`${s}?ref=openverse`,l):l):(0,E.sprintf)((0,E._x)("<a %1$s>Work</a> by %2$s/ %3$s","caption"),Hc(n),r?Oc(r,c):c,s?Oc(`${s}?ref=openverse`,l):l):t?(0,E.sprintf)((0,E._x)('"%1$s"/ %2$s',"caption"),Oc(n,(0,It.decodeEntities)(t)),s?Oc(`${s}?ref=openverse`,l):l):(0,E.sprintf)((0,E._x)("<a %1$s>Work</a>/ %3$s","caption"),Hc(n),s?Oc(`${s}?ref=openverse`,l):l),u.replace(/\s{2}/g," ")},Uc=async(e={})=>(await(0,d.resolveSelect)(_.store).getMediaItems({...e,orderBy:e?.search?"relevance":"date"})).map((e=>({...e,alt:e.alt_text,url:e.source_url,previewUrl:e.media_details?.sizes?.medium?.source_url,caption:e.caption?.raw})));var $c=[{name:"images",labels:{name:(0,E.__)("Images"),search_items:(0,E.__)("Search images")},mediaType:"image",async fetch(e={}){return Uc({...e,media_type:"image"})}},{name:"videos",labels:{name:(0,E.__)("Videos"),search_items:(0,E.__)("Search videos")},mediaType:"video",async fetch(e={}){return Uc({...e,media_type:"video"})}},{name:"audio",labels:{name:(0,E.__)("Audio"),search_items:(0,E.__)("Search audio")},mediaType:"audio",async fetch(e={}){return Uc({...e,media_type:"audio"})}},{name:"openverse",labels:{name:(0,E.__)("Openverse"),search_items:(0,E.__)("Search Openverse")},mediaType:"image",async fetch(e={}){const t={...e,mature:!1,excluded_source:"flickr,inaturalist,wikimedia",license:"pdm,cc0"},n={per_page:"page_size",search:"q"},a=new URL("https://api.openverse.engineering/v1/images/");Object.entries(t).forEach((([e,t])=>{const r=n[e]||e;a.searchParams.set(r,t)}));const r=await window.fetch(a,{headers:{"User-Agent":"WordPress/inserter-media-fetch"}});return(await r.json()).results.map((e=>({...e,title:e.title?.toLowerCase().startsWith("file:")?e.title.slice(5):e.title,sourceId:e.id,id:void 0,caption:Gc(e),previewUrl:e.thumbnail})))},getReportUrl:({sourceId:e})=>`https://wordpress.org/openverse/image/${e}/report/`,isExternalResource:!0}];function jc(){var e,t;const{setIsInserterOpened:n}=(0,d.useDispatch)(Fn),{storedSettings:a,canvasMode:r,templateType:o}=(0,d.useSelect)((e=>{const{getSettings:t,getCanvasMode:a,getEditedPostType:r}=nt(e(Fn));return{storedSettings:t(n),canvasMode:a(),templateType:r()}}),[n]),i=null!==(e=a.__experimentalAdditionalBlockPatterns)&&void 0!==e?e:a.__experimentalBlockPatterns,s=null!==(t=a.__experimentalAdditionalBlockPatternCategories)&&void 0!==t?t:a.__experimentalBlockPatternCategories,{restBlockPatterns:c,restBlockPatternCategories:u}=(0,d.useSelect)((e=>({restBlockPatterns:e(_.store).getBlockPatterns(),restBlockPatternCategories:e(_.store).getBlockPatternCategories()})),[]),m=(0,l.useMemo)((()=>[...i||[],...c||[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name)))).filter((({postTypes:e})=>!e||Array.isArray(e)&&e.includes(o)))),[i,c,o]),p=(0,l.useMemo)((()=>[...s||[],...u||[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name))))),[s,u]);return(0,l.useMemo)((()=>{const{__experimentalAdditionalBlockPatterns:e,__experimentalAdditionalBlockPatternCategories:t,focusMode:n,...o}=a;return{...o,inserterMediaCategories:$c,__experimentalBlockPatterns:m,__experimentalBlockPatternCategories:p,templateLock:!1,template:!1,focusMode:("view"!==r||!n)&&n}}),[a,m,p,r])}const Wc=["wp_template_part","wp_navigation","wp_block"],{useBlockEditingMode:Zc}=nt(we.privateApis),qc=["core/post-title","core/post-featured-image","core/post-content"];function Yc(){return Zc("disabled"),(0,l.useEffect)((()=>((0,Ee.addFilter)("editor.BlockEdit","core/edit-site/disable-non-content-blocks",Kc),()=>(0,Ee.removeFilter)("editor.BlockEdit","core/edit-site/disable-non-content-blocks"))),[]),null}const Kc=(0,re.createHigherOrderComponent)((e=>t=>{const n=void 0!==t.context.queryId,a=qc.includes(t.name)&&!n;return Zc(a?"contentOnly":void 0),(0,l.createElement)(e,{...t})}),"withDisableNonPageContentBlocks");function Xc({contentRef:e}){const t=(0,d.useSelect)((e=>e(Fn).hasPageContentFocus()),[]),{getNotices:n}=(0,d.useSelect)(Se.store),{createInfoNotice:a,removeNotice:r}=(0,d.useDispatch)(Se.store),{setHasPageContentFocus:o}=(0,d.useDispatch)(Fn),[i,s]=(0,l.useState)(!1),c=(0,l.useRef)(0);return(0,l.useEffect)((()=>{const i=async e=>{if(!t)return;if(!e.target.classList.contains("is-root-container"))return;const r=n().some((e=>e.id===c.current));if(r)return;const{notice:i}=await a((0,E.__)("Edit your template to edit this block."),{isDismissible:!0,type:"snackbar",actions:[{label:(0,E.__)("Edit template"),onClick:()=>o(!1)}]});c.current=i.id},l=e=>{t&&e.target.classList.contains("is-root-container")&&(c.current&&r(c.current),s(!0))},u=e.current;return u?.addEventListener("click",i),u?.addEventListener("dblclick",l),()=>{u?.removeEventListener("click",i),u?.removeEventListener("dblclick",l)}}),[c,t,e.current]),(0,l.createElement)(v.__experimentalConfirmDialog,{isOpen:i,confirmButtonText:(0,E.__)("Edit template"),onConfirm:()=>{s(!1),o(!1)},onCancel:()=>s(!1)},(0,E.__)("Edit your template to edit this block."))}function Qc(){return function(){const{isPage:e,hasPageContentFocus:t}=(0,d.useSelect)((e=>({isPage:e(Fn).isPage(),hasPageContentFocus:e(Fn).hasPageContentFocus()})),[]),n=(0,l.useRef)(!1),a=(0,l.useRef)(!1),{createInfoNotice:r}=(0,d.useDispatch)(Se.store),{setHasPageContentFocus:o}=(0,d.useDispatch)(Fn);(0,l.useEffect)((()=>{!n.current&&e&&a.current&&!t&&(r((0,E.__)("You are editing a template."),{isDismissible:!0,type:"snackbar",actions:[{label:(0,E.__)("Back to page"),onClick:()=>o(!0)}]}),n.current=!0),a.current=t}),[n,e,a,t,r,o])}(),null}function Jc({contentRef:e}){const t=(0,d.useSelect)((e=>e(Fn).hasPageContentFocus()),[]);return(0,l.createElement)(l.Fragment,null,t&&(0,l.createElement)(Yc,null),(0,l.createElement)(Xc,{contentRef:e}),(0,l.createElement)(Qc,null))}const eu={type:"default",alignments:[]};function tu(){const{clearSelectedBlock:e}=(0,d.useDispatch)(we.store),{templateType:t,isFocusMode:n,isViewMode:a}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getCanvasMode:n}=nt(e(Fn)),a=t();return{templateType:a,isFocusMode:Wc.includes(a),isViewMode:"view"===n()}}),[]),[r,o]=(0,re.useResizeObserver)(),i=jc(),{hasBlocks:s}=(0,d.useSelect)((e=>{const{getBlockCount:t}=e(we.store);return{hasBlocks:!!t()}}),[]),c=(0,re.useViewportMatch)("small","<"),u=n&&!a&&!c,m=(0,l.useRef)(),p=(0,re.useMergeRefs)([m,(0,we.__unstableUseClipboardHandler)(),(0,we.__unstableUseTypingObserver)()]),_="wp_navigation"===t,g=!(_&&n&&s||a)&&void 0;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ra.Slot,null,(([t])=>{var s;return t?(0,l.createElement)("div",{className:"edit-site-visual-editor is-focus-mode"},t):(0,l.createElement)(we.BlockTools,{className:y()("edit-site-visual-editor",{"is-focus-mode":n||!!t,"is-view-mode":a}),__unstableContentRef:m,onClick:t=>{t.target===t.currentTarget&&e()}},(0,l.createElement)(we.BlockEditorKeyboardShortcuts.Register,null),(0,l.createElement)(Vc,null),(0,l.createElement)(Ta,{enableResizing:u,height:null!==(s=o.height)&&void 0!==s?s:"100%"},(0,l.createElement)(zc,{enableResizing:u,settings:i,contentRef:p,readonly:a},r,(0,l.createElement)(we.BlockList,{className:y()("edit-site-block-editor__block-list wp-site-blocks",{"is-navigation-block":_}),layout:eu,renderAppender:g}))))})),(0,l.createElement)(Jc,{contentRef:m}))}const{ExperimentalBlockEditorProvider:nu}=nt(we.privateApis);function au({children:e}){const t=jc(),{templateType:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t}=nt(e(Fn));return{templateType:t()}}),[]),[a,r,o]=(0,_.useEntityBlockEditor)("postType",n);return(0,l.createElement)(nu,{settings:t,value:a,onInput:r,onChange:o,useSubRegistry:!1},e)}const{ExperimentalBlockEditorProvider:ru}=nt(we.privateApis),ou=()=>{};function iu({children:e}){const t=jc(),n=(0,_.useEntityId)("postType","wp_navigation"),a=(0,l.useMemo)((()=>[(0,c.createBlock)("core/navigation",{ref:n,templateLock:!1})]),[n]),{isEditMode:r}=(0,d.useSelect)((e=>{const{getCanvasMode:t}=nt(e(Fn));return{isEditMode:"edit"===t()}}),[]),{selectBlock:o,setBlockEditingMode:i,unsetBlockEditingMode:s}=nt((0,d.useDispatch)(we.store)),u=a&&a[0]?.clientId,m=(0,l.useMemo)((()=>({...t,templateLock:"insert",template:[["core/navigation",{},[]]]})),[t]);return(0,l.useEffect)((()=>{u&&r&&o(u)}),[u,r,o]),(0,l.useEffect)((()=>{if(u)return i(u,"contentOnly"),()=>{s(u)}}),[u,s,i]),(0,l.createElement)(ru,{settings:m,value:a,onInput:ou,onChange:ou,useSubRegistry:!1},e)}function su(){const e=function(e){let t=null;t="wp_navigation"===e?iu:au;return t}((0,d.useSelect)((e=>e(Fn).getEditedPostType()),[]));return(0,l.createElement)(e,null,(0,l.createElement)(Dc,null),(0,l.createElement)(Tc,null,(0,l.createElement)(we.BlockInspector,null)),(0,l.createElement)(tu,null),(0,l.createElement)(Mc.ReusableBlocksMenuItems,null))}var lu=n(773);function cu({value:e,onChange:t,onInput:n}){const[a,r]=(0,l.useState)(e),[o,i]=(0,l.useState)(!1),s=(0,re.useInstanceId)(cu),c=(0,l.useRef)();o||a===e||r(e);return(0,l.useEffect)((()=>()=>{c.current&&t(c.current)}),[]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.VisuallyHidden,{as:"label",htmlFor:`code-editor-text-area-${s}`},(0,E.__)("Type text or HTML")),(0,l.createElement)(lu.Z,{autoComplete:"off",dir:"auto",value:a,onChange:e=>{const t=e.target.value;n(t),r(t),i(!0),c.current=t},onBlur:()=>{o&&(t(a),i(!1))},className:"edit-site-code-editor-text-area",id:`code-editor-text-area-${s}`,placeholder:(0,E.__)("Start writing with text or HTML")}))}function uu(){const{templateType:e,shortcut:t}=(0,d.useSelect)((e=>{const{getEditedPostType:t}=e(Fn),{getShortcutRepresentation:n}=e(Vn.store);return{templateType:t(),shortcut:n("core/edit-site/toggle-mode")}}),[]),[n,a]=(0,_.useEntityProp)("postType",e,"content"),[r,,o]=(0,_.useEntityBlockEditor)("postType",e);let i;i=n instanceof Function?n({blocks:r}):r?(0,c.__unstableSerializeAndClean)(r):n;const{switchEditorMode:s}=(0,d.useDispatch)(Fn);return(0,l.createElement)("div",{className:"edit-site-code-editor"},(0,l.createElement)("div",{className:"edit-site-code-editor__toolbar"},(0,l.createElement)("h2",null,(0,E.__)("Editing code")),(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>s("visual"),shortcut:t},(0,E.__)("Exit code editor"))),(0,l.createElement)("div",{className:"edit-site-code-editor__body"},(0,l.createElement)(cu,{value:i,onChange:e=>{o((0,c.parse)(e),{selection:void 0})},onInput:a})))}var du=function(){const{getEditorMode:e}=(0,d.useSelect)(Fn),t=(0,d.useSelect)((e=>e(Fn).isListViewOpened()),[]),n=(0,d.useSelect)((e=>e(U).getActiveComplementaryArea(Fn.name)===tc),[]),{redo:a,undo:r}=(0,d.useDispatch)(_.store),{setIsListViewOpened:o,switchEditorMode:i,setIsInserterOpened:s,closeGeneralSidebar:l}=(0,d.useDispatch)(Fn),{enableComplementaryArea:u,disableComplementaryArea:m}=(0,d.useDispatch)(U),{replaceBlocks:p}=(0,d.useDispatch)(we.store),{getBlockName:g,getSelectedBlockClientId:h,getBlockAttributes:y}=(0,d.useSelect)(we.store),{get:v}=(0,d.useSelect)(x.store),{set:f,toggle:b}=(0,d.useDispatch)(x.store),{createInfoNotice:w}=(0,d.useDispatch)(Se.store),S=(e,t)=>{e.preventDefault();const n=0===t?"core/paragraph":"core/heading",a=h();if(null===a)return;const r=g(a);if("core/paragraph"!==r&&"core/heading"!==r)return;const o=y(a),i="core/paragraph"===r?"align":"textAlign",s="core/paragraph"===n?"align":"textAlign";p(a,(0,c.createBlock)(n,{level:t,content:o.content,[s]:o[i]}))};return(0,Vn.useShortcut)("core/edit-site/undo",(e=>{r(),e.preventDefault()})),(0,Vn.useShortcut)("core/edit-site/redo",(e=>{a(),e.preventDefault()})),(0,Vn.useShortcut)("core/edit-site/toggle-list-view",(()=>{t||o(!0)})),(0,Vn.useShortcut)("core/edit-site/toggle-block-settings-sidebar",(e=>{e.preventDefault(),n?m(Bt):u(Bt,tc)})),(0,Vn.useShortcut)("core/edit-site/toggle-mode",(()=>{i("visual"===e()?"text":"visual")})),(0,Vn.useShortcut)("core/edit-site/transform-heading-to-paragraph",(e=>S(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,Vn.useShortcut)(`core/edit-site/transform-paragraph-to-heading-${e}`,(t=>S(t,e)))})),(0,Vn.useShortcut)("core/edit-site/toggle-distraction-free",(()=>{f("core/edit-site","fixedToolbar",!1),s(!1),o(!1),l(),b("core/edit-site","distractionFree"),w(v("core/edit-site","distractionFree")?(0,E.__)("Distraction free mode turned on."):(0,E.__)("Distraction free mode turned off."),{id:"core/edit-site/distraction-free-mode/notice",type:"snackbar"})})),null};var mu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function pu(){const{setIsInserterOpened:e}=(0,d.useDispatch)(Fn),t=(0,d.useSelect)((e=>e(Fn).__experimentalGetInsertionPoint()),[]),n=(0,re.useViewportMatch)("medium","<"),a=n?"div":v.VisuallyHidden,[r,o]=(0,re.__experimentalUseDialog)({onClose:()=>e(!1),focusOnMount:null}),i=(0,l.useRef)();return(0,l.useEffect)((()=>{i.current.focusSearch()}),[]),(0,l.createElement)("div",{ref:r,...o,className:"edit-site-editor__inserter-panel"},(0,l.createElement)(a,{className:"edit-site-editor__inserter-panel-header"},(0,l.createElement)(v.Button,{icon:mu,label:(0,E.__)("Close block inserter"),onClick:()=>e(!1)})),(0,l.createElement)("div",{className:"edit-site-editor__inserter-panel-content"},(0,l.createElement)(we.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:n,rootClientId:t.rootClientId,__experimentalInsertionIndex:t.insertionIndex,__experimentalFilterValue:t.filterValue,ref:i})))}const{PrivateListView:_u}=nt(we.privateApis);function gu(){const{setIsListViewOpened:e}=(0,d.useDispatch)(Fn),t=(0,re.useFocusOnMount)("firstElement"),n=(0,re.useFocusReturn)(),a=(0,re.useFocusReturn)();const[r,o]=(0,l.useState)(null),i=(0,l.useRef)(),s=(0,l.useRef)(),c=(0,l.useRef)();return(0,Vn.useShortcut)("core/edit-site/toggle-list-view",(()=>{i.current.contains(i.current.ownerDocument.activeElement)?e(!1):function(){const e=Di.focus.tabbable.find(c.current)[0];(i.current.contains(e)?e:s.current).focus()}()})),(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel",onKeyDown:function(t){t.keyCode!==aa.ESCAPE||t.defaultPrevented||e(!1)},ref:i},(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel-header",ref:n},(0,l.createElement)("strong",null,(0,E.__)("List View")),(0,l.createElement)(v.Button,{icon:C,label:(0,E.__)("Close"),onClick:()=>e(!1),ref:s})),(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel-content",ref:(0,re.useMergeRefs)([a,t,o,c])},(0,l.createElement)(_u,{dropZoneElement:r})))}function hu({nonAnimatedSrc:e,animatedSrc:t}){return(0,l.createElement)("picture",{className:"edit-site-welcome-guide__image"},(0,l.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,l.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function yu(){const{toggle:e}=(0,d.useDispatch)(x.store);return(0,d.useSelect)((e=>!!e(x.store).get("core/edit-site","welcomeGuide")),[])?(0,l.createElement)(v.Guide,{className:"edit-site-welcome-guide guide-editor",contentLabel:(0,E.__)("Welcome to the site editor"),finishButtonText:(0,E.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuide"),pages:[{image:(0,l.createElement)(hu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/edit-your-site.svg?1",animatedSrc:"https://s.w.org/images/block-editor/edit-your-site.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Edit your site")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Design everything on your site — from the header right down to the footer — using blocks.")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,l.createInterpolateElement)((0,E.__)("Click <StylesIconImage /> to start designing your blocks, and choose your typography, layout, and colors."),{StylesIconImage:(0,l.createElement)("img",{alt:(0,E.__)("styles"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A"})})))}]}):null}function vu(){const{toggle:e}=(0,d.useDispatch)(x.store),{isActive:t,isStylesOpen:n}=(0,d.useSelect)((e=>{const t=e(U).getActiveComplementaryArea(Fn.name);return{isActive:!!e(x.store).get("core/edit-site","welcomeGuideStyles"),isStylesOpen:"edit-site/global-styles"===t}}),[]);if(!t||!n)return null;const a=(0,E.__)("Welcome to Styles");return(0,l.createElement)(v.Guide,{className:"edit-site-welcome-guide guide-styles",contentLabel:a,finishButtonText:(0,E.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuideStyles"),pages:[{image:(0,l.createElement)(hu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.svg?1",animatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},a),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.")))},{image:(0,l.createElement)(hu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/set-the-design.svg?1",animatedSrc:"https://s.w.org/images/block-editor/set-the-design.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Set the design")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle! ")))},{image:(0,l.createElement)(hu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.svg?1",animatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Personalize blocks")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.")))},{image:(0,l.createElement)(hu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Learn more")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("New to block themes and styling your site? "),(0,l.createElement)(v.ExternalLink,{href:(0,E.__)("https://wordpress.org/documentation/article/styles-overview/")},(0,E.__)("Here’s a detailed guide to learn how to make the most of it."))))}]})}function Eu(){const{toggle:e}=(0,d.useDispatch)(x.store),t=(0,d.useSelect)((e=>{const t=!!e(x.store).get("core/edit-site","welcomeGuidePage"),n=!!e(x.store).get("core/edit-site","welcomeGuide"),{hasPageContentFocus:a}=e(Fn);return t&&!n&&a()}),[]);if(!t)return null;const n=(0,E.__)("Editing a page");return(0,l.createElement)(v.Guide,{className:"edit-site-welcome-guide guide-page",contentLabel:n,finishButtonText:(0,E.__)("Continue"),onFinish:()=>e("core/edit-site","welcomeGuidePage"),pages:[{image:(0,l.createElement)("video",{className:"edit-site-welcome-guide__video",autoPlay:!0,loop:!0,muted:!0,width:"312",height:"240"},(0,l.createElement)("source",{src:"https://s.w.org/images/block-editor/editing-your-page.mp4",type:"video/mp4"})),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},n),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("It’s now possible to edit page content in the site editor. To customise other parts of the page like the header and footer switch to editing the template using the settings sidebar.")))}]})}function fu(){const{toggle:e}=(0,d.useDispatch)(x.store),t=(0,d.useSelect)((e=>{const t=!!e(x.store).get("core/edit-site","welcomeGuideTemplate"),n=!!e(x.store).get("core/edit-site","welcomeGuide"),{isPage:a,hasPageContentFocus:r}=e(Fn);return t&&!n&&a()&&!r()}),[]);if(!t)return null;const n=(0,E.__)("Editing a template");return(0,l.createElement)(v.Guide,{className:"edit-site-welcome-guide guide-template",contentLabel:n,finishButtonText:(0,E.__)("Continue"),onFinish:()=>e("core/edit-site","welcomeGuideTemplate"),pages:[{image:(0,l.createElement)("video",{className:"edit-site-welcome-guide__video",autoPlay:!0,loop:!0,muted:!0,width:"312",height:"240"},(0,l.createElement)("source",{src:"https://s.w.org/images/block-editor/editing-your-template.mp4",type:"video/mp4"})),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},n),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Note that the same template can be used by multiple pages, so any changes made here may affect other pages on the site. To switch back to editing the page content click the ‘Back’ button in the toolbar.")))}]})}function bu(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(yu,null),(0,l.createElement)(vu,null),(0,l.createElement)(Eu,null),(0,l.createElement)(fu,null))}function wu({fallbackContent:e,onChoosePattern:t,postType:n}){const[,,a]=(0,_.useEntityBlockEditor)("postType",n),r=function(e){const{slug:t,patterns:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Fn),{getEntityRecord:a}=e(_.store),r=n(),o=a("postType",t(),r),{getSettings:i}=e(we.store);return{slug:o.slug,patterns:i().__experimentalBlockPatterns}}),[]);return(0,l.useMemo)((()=>[{name:"fallback",blocks:(0,c.parse)(e),title:(0,E.__)("Fallback content")},...n.filter((e=>Array.isArray(e.templateTypes)&&e.templateTypes.some((e=>t.startsWith(e))))).map((e=>({...e,blocks:(0,c.parse)(e.content)})))]),[e,t,n])}(e),o=(0,re.useAsyncList)(r);return(0,l.createElement)(we.__experimentalBlockPatternsList,{blockPatterns:r,shownPatterns:o,onClickPattern:(e,n)=>{a(n,{selection:void 0}),t()}})}function Su({slug:e,isCustom:t,onClose:n,postType:a}){const r=function(e,t=!1){const[n,a]=(0,l.useState)("");return(0,l.useEffect)((()=>{Mt()({path:(0,_t.addQueryArgs)("/wp/v2/templates/lookup",{slug:e,is_custom:t,ignore_empty:!0})}).then((({content:e})=>a(e.raw)))}),[t,e]),n}(e,t);return r?(0,l.createElement)(v.Modal,{className:"edit-site-start-template-options__modal",title:(0,E.__)("Choose a pattern"),closeLabel:(0,E.__)("Cancel"),focusOnMount:"firstElement",onRequestClose:n,isFullScreen:!0},(0,l.createElement)("div",{className:"edit-site-start-template-options__modal-content"},(0,l.createElement)(wu,{fallbackContent:r,slug:e,isCustom:t,postType:a,onChoosePattern:()=>{n()}})),(0,l.createElement)(v.Flex,{className:"edit-site-start-template-options__modal__actions",justify:"flex-end",expanded:!1},(0,l.createElement)(v.FlexItem,null,(0,l.createElement)(v.Button,{variant:"tertiary",onClick:n},(0,E.__)("Skip"))))):null}const ku={INITIAL:"INITIAL",CLOSED:"CLOSED"};function Cu(){const[e,t]=(0,l.useState)(ku.INITIAL),{shouldOpenModal:n,slug:a,isCustom:r,postType:o}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Fn),a=t(),r=n(),{getEditedEntityRecord:o,hasEditsForEntityRecord:i}=e(_.store),s=o("postType",a,r);return{shouldOpenModal:!i("postType",a,r)&&""===s.content&&"wp_template"===a&&!e(x.store).get("core/edit-site","welcomeGuide"),slug:s.slug,isCustom:s.is_custom,postType:a}}),[]);return e===ku.INITIAL&&!n||e===ku.CLOSED?null:(0,l.createElement)(Su,{slug:a,isCustom:r,postType:o,onClose:()=>t(ku.CLOSED)})}const{useGlobalStylesOutput:xu}=nt(we.privateApis);function Tu(){return function(){const[e,t]=xu(),{getSettings:n}=(0,d.useSelect)(Fn),{updateSettings:a}=(0,d.useDispatch)(Fn);(0,l.useEffect)((()=>{var r;if(!e||!t)return;const o=n(),i=Object.values(null!==(r=o.styles)&&void 0!==r?r:[]).filter((e=>!e.isGlobalStyles));a({...o,styles:[...i,...e],__experimentalFeatures:t})}),[e,t])}(),null}const{useLocation:Nu}=nt(pt.privateApis);const{useGlobalStyle:Mu}=nt(we.privateApis);function Pu(){const[e]=Mu("color.text");return(0,l.createElement)("div",{className:"edit-site-canvas-spinner"},(0,l.createElement)(v.Spinner,{style:{color:e}}))}const{BlockRemovalWarningModal:Iu}=nt(we.privateApis),Bu={body:(0,E.__)("Editor content"),sidebar:(0,E.__)("Editor settings"),actions:(0,E.__)("Editor publish"),footer:(0,E.__)("Editor footer")},Du={wp_template:(0,E.__)("Template"),wp_template_part:(0,E.__)("Template Part"),wp_block:(0,E.__)("Pattern")},Ru={"core/query":(0,E.__)("Query Loop displays a list of posts or pages."),"core/post-content":(0,E.__)("Post Content displays the content of a post or page."),"core/post-template":(0,E.__)("Post Template displays each post or page in a Query Loop.")};function Lu({isLoading:e}){const{record:t,getTitle:n,isLoaded:a}=Ur(),{id:r,type:o}=t,{context:i,editorMode:s,canvasMode:c,blockEditorMode:u,isRightSidebarOpen:m,isInserterOpen:p,isListViewOpen:h,showIconLabels:f,showBlockBreadcrumbs:b,hasPageContentFocus:w}=(0,d.useSelect)((e=>{const{getEditedPostContext:t,getEditorMode:n,getCanvasMode:a,isInserterOpened:r,isListViewOpened:o,hasPageContentFocus:i}=nt(e(Fn)),{__unstableGetEditorMode:s}=e(we.store),{getActiveComplementaryArea:l}=e(U);return{context:t(),editorMode:n(),canvasMode:a(),blockEditorMode:s(),isInserterOpen:r(),isListViewOpen:o(),isRightSidebarOpen:l(Fn.name),showIconLabels:e(x.store).get("core/edit-site","showIconLabels"),showBlockBreadcrumbs:e(x.store).get("core/edit-site","showBlockBreadcrumbs"),hasPageContentFocus:i()}}),[]),{setEditedPostContext:S}=(0,d.useDispatch)(Fn),k="edit"===c,C="view"===c||"visual"===s,T=b&&k&&C&&"zoom-out"!==u,N=k&&C&&p,M=k&&C&&h,P=h?(0,E.__)("List View"):(0,E.__)("Block Library"),I=(0,l.useMemo)((()=>{const{postType:e,postId:t,...n}=null!=i?i:{};return{...w?i:n,queryContext:[i?.queryContext||{page:1},e=>S({...i,queryContext:{...i?.queryContext,...e}})]}}),[w,i,S]);let B;var D;a&&(B=(0,E.sprintf)((0,E.__)("%1$s ‹ %2$s ‹ Editor"),n(),null!==(D=Du[o])&&void 0!==D?D:Du.wp_template));return function(e){const t=Nu(),n=(0,d.useSelect)((e=>e(_.store).getEntityRecord("root","site")?.title),[]),a=(0,l.useRef)(!0);(0,l.useEffect)((()=>{a.current=!1}),[t]),(0,l.useEffect)((()=>{if(!a.current&&e&&n){const t=(0,E.sprintf)((0,E.__)("%1$s ‹ %2$s — WordPress"),(0,It.decodeEntities)(e),(0,It.decodeEntities)(n));document.title=t,(0,Pt.speak)((0,E.sprintf)((0,E.__)("Now displaying: %s"),document.title),"assertive")}}),[e,n,t])}(a&&B),(0,l.createElement)(l.Fragment,null,e?(0,l.createElement)(Pu,null):null,k&&(0,l.createElement)(bu,null),(0,l.createElement)(_.EntityProvider,{kind:"root",type:"site"},(0,l.createElement)(_.EntityProvider,{kind:"postType",type:o,id:r},(0,l.createElement)(we.BlockContextProvider,{value:I},(0,l.createElement)(Nc,null),k&&(0,l.createElement)(Cu,null),(0,l.createElement)(se,{isDistractionFree:!0,enableRegionNavigation:!1,className:y()("edit-site-editor__interface-skeleton",{"show-icon-labels":f,"is-loading":e}),notices:(0,l.createElement)(g.EditorSnackbars,null),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Tu,null),k&&(0,l.createElement)(g.EditorNotices,null),C&&t&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(su,null),(0,l.createElement)(Iu,{rules:Ru})),"text"===s&&t&&k&&(0,l.createElement)(uu,null),a&&!t&&(0,l.createElement)(v.Notice,{status:"warning",isDismissible:!1},(0,E.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")),k&&(0,l.createElement)(du,null)),secondarySidebar:k&&(N&&(0,l.createElement)(pu,null)||M&&(0,l.createElement)(gu,null)),sidebar:k&&m&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ae.Slot,{scope:"core/edit-site"}),(0,l.createElement)(Dl,null)),footer:T&&(0,l.createElement)(we.BlockBreadcrumb,{rootLabelText:w?(0,E.__)("Page"):(0,E.__)("Template")}),labels:{...Bu,secondarySidebar:P}})))))}function Au({text:e,children:t}){const n=(0,re.useCopyToClipboard)(e);return(0,l.createElement)(v.Button,{variant:"secondary",ref:n},t)}function Fu({message:e,error:t}){const n=[(0,l.createElement)(Au,{key:"copy-error",text:t.stack},(0,E.__)("Copy Error"))];return(0,l.createElement)(we.Warning,{className:"editor-error-boundary",actions:n},e)}class Vu extends l.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,Ee.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,l.createElement)(Fu,{message:(0,E.__)("The editor has encountered an unexpected error."),error:this.state.error}):this.props.children}}function zu({path:e,categoryType:t,categoryId:n},a){return"/wp_template/all"===e||"/wp_template_part/all"===e||"/patterns"===e&&(!a||!!t&&!!n)}var Ou=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));var Hu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m12 20-4.5-3.6-.9 1.2L12 22l5.5-4.4-.9-1.2L12 20zm0-16 4.5 3.6.9-1.2L12 2 6.5 6.4l.9 1.2L12 4z"}));var Gu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const Uu=[{keyCombination:{modifier:"primary",character:"b"},description:(0,E.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,E.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,E.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,E.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,E.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,E.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,E.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,E.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,E.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,E.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function $u({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?aa.displayShortcutList[e.modifier](e.character):e.character,a=e.modifier?aa.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,l.createElement)("kbd",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||a},(Array.isArray(n)?n:[n]).map(((e,t)=>"+"===e?(0,l.createElement)(l.Fragment,{key:t},e):(0,l.createElement)("kbd",{key:t,className:"edit-site-keyboard-shortcut-help-modal__shortcut-key"},e))))}function ju({description:e,keyCombination:t,aliases:n=[],ariaLabel:a}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-description"},e),(0,l.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-term"},(0,l.createElement)($u,{keyCombination:t,forceAriaLabel:a}),n.map(((e,t)=>(0,l.createElement)($u,{keyCombination:e,forceAriaLabel:a,key:t})))))}function Wu({name:e}){const{keyCombination:t,description:n,aliases:a}=(0,d.useSelect)((t=>{const{getShortcutKeyCombination:n,getShortcutDescription:a,getShortcutAliases:r}=t(Vn.store);return{keyCombination:n(e),aliases:r(e),description:a(e)}}),[e]);return t?(0,l.createElement)(ju,{keyCombination:t,description:n,aliases:a}):null}const Zu="edit-site/keyboard-shortcut-help",qu=({shortcuts:e})=>(0,l.createElement)("ul",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,l.createElement)("li",{className:"edit-site-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,l.createElement)(Wu,{name:e}):(0,l.createElement)(ju,{...e}))))),Yu=({title:e,shortcuts:t,className:n})=>(0,l.createElement)("section",{className:y()("edit-site-keyboard-shortcut-help-modal__section",n)},!!e&&(0,l.createElement)("h2",{className:"edit-site-keyboard-shortcut-help-modal__section-title"},e),(0,l.createElement)(qu,{shortcuts:t})),Ku=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const a=(0,d.useSelect)((e=>e(Vn.store).getCategoryShortcuts(t)),[t]);return(0,l.createElement)(Yu,{title:e,shortcuts:a.concat(n)})};function Xu(){const e=(0,d.useSelect)((e=>e(U).isModalActive(Zu))),{closeModal:t,openModal:n}=(0,d.useDispatch)(U),a=()=>e?t():n(Zu);return(0,Vn.useShortcut)("core/edit-site/keyboard-shortcuts",a),e?(0,l.createElement)(v.Modal,{className:"edit-site-keyboard-shortcut-help-modal",title:(0,E.__)("Keyboard shortcuts"),onRequestClose:a},(0,l.createElement)(Yu,{className:"edit-site-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-site/keyboard-shortcuts"]}),(0,l.createElement)(Ku,{title:(0,E.__)("Global shortcuts"),categoryName:"global"}),(0,l.createElement)(Ku,{title:(0,E.__)("Selection shortcuts"),categoryName:"selection"}),(0,l.createElement)(Ku,{title:(0,E.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,E.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,E.__)("Forward-slash")}]}),(0,l.createElement)(Yu,{title:(0,E.__)("Text formatting"),shortcuts:Uu})):null}function Qu(e){const{featureName:t,onToggle:n=(()=>{}),...a}=e,r=(0,d.useSelect)((e=>!!e(x.store).get("core/edit-site",t)),[t]),{toggle:o}=(0,d.useDispatch)(x.store);return(0,l.createElement)(ye,{onChange:()=>{n(),o("core/edit-site",t)},isChecked:r,...a})}const Ju="edit-site/preferences";function ed(){const e=(0,d.useSelect)((e=>e(U).isModalActive(Ju))),{closeModal:t,openModal:n}=(0,d.useDispatch)(U),a=(0,d.useRegistry)(),{closeGeneralSidebar:r,setIsListViewOpened:o,setIsInserterOpened:i}=(0,d.useDispatch)(Fn),{set:s}=(0,d.useDispatch)(x.store),c=()=>{a.batch((()=>{s("core/edit-site","fixedToolbar",!1),i(!1),o(!1),r()}))},u=(0,l.useMemo)((()=>[{name:"general",tabLabel:(0,E.__)("General"),content:(0,l.createElement)(he,{title:(0,E.__)("Appearance"),description:(0,E.__)("Customize options related to the block editor interface and editing flow.")},(0,l.createElement)(Qu,{featureName:"distractionFree",onToggle:c,help:(0,E.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,E.__)("Distraction free")}),(0,l.createElement)(Qu,{featureName:"focusMode",help:(0,E.__)("Highlights the current block and fades other content."),label:(0,E.__)("Spotlight mode")}),(0,l.createElement)(Qu,{featureName:"showIconLabels",label:(0,E.__)("Show button text labels"),help:(0,E.__)("Show text instead of icons on buttons.")}),(0,l.createElement)(Qu,{featureName:"showListViewByDefault",help:(0,E.__)("Opens the block list view sidebar by default."),label:(0,E.__)("Always open list view")}),(0,l.createElement)(Qu,{featureName:"showBlockBreadcrumbs",help:(0,E.__)("Shows block breadcrumbs at the bottom of the editor."),label:(0,E.__)("Display block breadcrumbs")}))},{name:"blocks",tabLabel:(0,E.__)("Blocks"),content:(0,l.createElement)(he,{title:(0,E.__)("Block interactions"),description:(0,E.__)("Customize how you interact with blocks in the block library and editing canvas.")},(0,l.createElement)(Qu,{featureName:"keepCaretInsideBlock",help:(0,E.__)("Aids screen readers by stopping text caret from leaving blocks."),label:(0,E.__)("Contain text cursor inside block")}))}]));return e?(0,l.createElement)(ue,{closeModal:()=>e?t():n(Ju)},(0,l.createElement)(ge,{sections:u})):null}const{Fill:td,Slot:nd}=(0,v.createSlotFill)("EditSiteToolsMoreMenuGroup");td.Slot=({fillProps:e})=>(0,l.createElement)(nd,{fillProps:e},(e=>e&&e.length>0));var ad=td,rd=n(8981),od=n.n(rd);var id=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"}));function sd(){const{createErrorNotice:e}=(0,d.useDispatch)(Se.store);return(0,l.createElement)(v.MenuItem,{role:"menuitem",icon:id,onClick:async function(){try{const e=await Mt()({path:"/wp-block-editor/v1/export",parse:!1,headers:{Accept:"application/zip"}}),t=await e.blob(),n=e.headers.get("content-disposition").match(/=(.+)\.zip/),a=n[1]?n[1]:"edit-site-export";od()(t,a+".zip","application/zip")}catch(t){let n={};try{n=await t.json()}catch(e){}const a=n.message&&"unknown_error"!==n.code?n.message:(0,E.__)("An error occurred while creating the site export.");e(a,{type:"snackbar"})}},info:(0,E.__)("Download your theme with updated templates and styles.")},(0,E._x)("Export","site exporter menu item"))}function ld(){const{toggle:e}=(0,d.useDispatch)(x.store);return(0,l.createElement)(v.MenuItem,{onClick:()=>e("core/edit-site","welcomeGuide")},(0,E.__)("Welcome Guide"))}function cd(){const{createNotice:e}=(0,d.useDispatch)(Se.store),t=(0,d.useSelect)((e=>()=>{const{getEditedPostId:t,getEditedPostType:n}=e(Fn),{getEditedEntityRecord:a}=e(_.store),r=a("postType",n(),t());if(r){if("function"==typeof r.content)return r.content(r);if(r.blocks)return(0,c.__unstableSerializeAndClean)(r.blocks);if(r.content)return r.content}return""}),[]);const n=(0,re.useCopyToClipboard)(t,(function(){e("info",(0,E.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,l.createElement)(v.MenuItem,{ref:n},(0,E.__)("Copy all blocks"))}const ud=[{value:"visual",label:(0,E.__)("Visual editor")},{value:"text",label:(0,E.__)("Code editor")}];var dd=function(){const{shortcut:e,mode:t}=(0,d.useSelect)((e=>({shortcut:e(Vn.store).getShortcutRepresentation("core/edit-site/toggle-mode"),isRichEditingEnabled:e(Fn).getSettings().richEditingEnabled,isCodeEditingEnabled:e(Fn).getSettings().codeEditingEnabled,mode:e(Fn).getEditorMode()})),[]),{switchEditorMode:n}=(0,d.useDispatch)(Fn),a=ud.map((n=>n.value!==t?{...n,shortcut:e}:n));return(0,l.createElement)(v.MenuGroup,{label:(0,E.__)("Editor")},(0,l.createElement)(v.MenuItemsChoice,{choices:a,value:t,onSelect:n}))};function md({showIconLabels:e}){const t=(0,d.useRegistry)(),n=(0,d.useSelect)((e=>e(x.store).get("core/edit-site","distractionFree")),[]),{setIsInserterOpened:a,setIsListViewOpened:r,closeGeneralSidebar:o}=(0,d.useDispatch)(Fn),{openModal:i}=(0,d.useDispatch)(U),{set:s}=(0,d.useDispatch)(x.store),c=()=>{t.batch((()=>{s("core/edit-site","fixedToolbar",!1),a(!1),r(!1),o()}))};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ce,{toggleProps:{showTooltip:!e,...e&&{variant:"tertiary"}}},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuGroup,{label:(0,E._x)("View","noun")},(0,l.createElement)(x.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"fixedToolbar",disabled:n,label:(0,E.__)("Top toolbar"),info:(0,E.__)("Access all block and document tools in a single place"),messageActivated:(0,E.__)("Top toolbar activated"),messageDeactivated:(0,E.__)("Top toolbar deactivated")}),(0,l.createElement)(x.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"focusMode",label:(0,E.__)("Spotlight mode"),info:(0,E.__)("Focus on one block at a time"),messageActivated:(0,E.__)("Spotlight mode activated"),messageDeactivated:(0,E.__)("Spotlight mode deactivated")}),(0,l.createElement)(x.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"distractionFree",onToggle:c,label:(0,E.__)("Distraction free"),info:(0,E.__)("Write with calmness"),messageActivated:(0,E.__)("Distraction free mode activated"),messageDeactivated:(0,E.__)("Distraction free mode deactivated"),shortcut:aa.displayShortcut.primaryShift("\\")})),(0,l.createElement)(dd,null),(0,l.createElement)(K.Slot,{name:"core/edit-site/plugin-more-menu",label:(0,E.__)("Plugins"),as:v.MenuGroup,fillProps:{onClick:e}}),(0,l.createElement)(v.MenuGroup,{label:(0,E.__)("Tools")},(0,l.createElement)(sd,null),(0,l.createElement)(v.MenuItem,{onClick:()=>i(Zu),shortcut:aa.displayShortcut.access("h")},(0,E.__)("Keyboard shortcuts")),(0,l.createElement)(ld,null),(0,l.createElement)(cd,null),(0,l.createElement)(v.MenuItem,{icon:Gu,role:"menuitem",href:(0,E.__)("https://wordpress.org/documentation/article/site-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,E.__)("Help"),(0,l.createElement)(v.VisuallyHidden,{as:"span"},(0,E.__)("(opens in a new tab)"))),(0,l.createElement)(ad.Slot,{fillProps:{onClose:e}})),(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{onClick:()=>i(Ju)},(0,E.__)("Preferences")))))),(0,l.createElement)(Xu,null),(0,l.createElement)(ed,null))}var pd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var _d=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var gd=(0,l.forwardRef)((function(e,t){const n=(0,d.useSelect)((e=>e(_.store).hasUndo()),[]),{undo:a}=(0,d.useDispatch)(_.store);return(0,l.createElement)(v.Button,{...e,ref:t,icon:(0,E.isRTL)()?_d:pd,label:(0,E.__)("Undo"),shortcut:aa.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?a:void 0})}));var hd=(0,l.forwardRef)((function(e,t){const n=(0,aa.isAppleOS)()?aa.displayShortcut.primaryShift("z"):aa.displayShortcut.primary("y"),a=(0,d.useSelect)((e=>e(_.store).hasRedo()),[]),{redo:r}=(0,d.useDispatch)(_.store);return(0,l.createElement)(v.Button,{...e,ref:t,icon:(0,E.isRTL)()?pd:_d,label:(0,E.__)("Redo"),shortcut:n,"aria-disabled":!a,onClick:a?r:void 0})}));function yd(){return(0,d.useSelect)((e=>e(Fn).isPage()))?(0,l.createElement)(vd,null):(0,l.createElement)(Ed,null)}function vd(){const{hasPageContentFocus:e,hasResolved:t,isFound:n,title:a}=(0,d.useSelect)((e=>{const{hasPageContentFocus:t,getEditedPostContext:n}=e(Fn),{getEditedEntityRecord:a,hasFinishedResolution:r}=e(_.store),o=n(),i=["postType",o.postType,o.postId],s=a(...i);return{hasPageContentFocus:t(),hasResolved:r("getEditedEntityRecord",i),isFound:!!s,title:s?.title}}),[]),{setHasPageContentFocus:r}=(0,d.useDispatch)(Fn),[o,i]=(0,l.useState)(!1),s=(0,l.useRef)(!1);return(0,l.useEffect)((()=>{s.current&&!e&&i(!0),s.current=e}),[e]),t?n?e?(0,l.createElement)(fd,{className:y()("is-page",{"is-animated":o}),icon:Un},a):(0,l.createElement)(Ed,{className:"is-animated",onBack:()=>r(!0)}):(0,l.createElement)("div",{className:"edit-site-document-actions"},(0,E.__)("Document not found")):null}function Ed({className:e,onBack:t}){const{isLoaded:n,record:a,getTitle:r,icon:o}=Ur();if(!n)return null;if(!a)return(0,l.createElement)("div",{className:"edit-site-document-actions"},(0,E.__)("Document not found"));const i=function(e){let t="";switch(e){case"wp_navigation":t="navigation menu";break;case"wp_template_part":t="template part";break;default:t="template"}return t}(a.type);let s=o;return"wp_navigation"===a.type?s=Hn:"wp_block"===a.type&&(s=jn),(0,l.createElement)(fd,{className:e,icon:s,onBack:t},(0,l.createElement)(v.VisuallyHidden,{as:"span"},(0,E.sprintf)((0,E.__)("Editing %s: "),i)),r())}function fd({className:e,icon:t,children:n,onBack:a}){const{open:r}=(0,d.useDispatch)(zn.store);return(0,l.createElement)("div",{className:y()("edit-site-document-actions",e)},a&&(0,l.createElement)(v.Button,{className:"edit-site-document-actions__back",icon:(0,E.isRTL)()?Kn:Yn,onClick:e=>{e.stopPropagation(),a()}},(0,E.__)("Back")),(0,l.createElement)(v.Button,{className:"edit-site-document-actions__command",onClick:()=>r()},(0,l.createElement)(v.__experimentalHStack,{className:"edit-site-document-actions__title",spacing:1,justify:"center"},(0,l.createElement)(we.BlockIcon,{icon:t}),(0,l.createElement)(v.__experimentalText,{size:"body",as:"h1"},n)),(0,l.createElement)("span",{className:"edit-site-document-actions__shortcut"},aa.displayShortcut.primary("k"))))}const{useShouldContextualToolbarShow:bd}=nt(we.privateApis),wd=e=>{e.preventDefault()};function Sd(){const e=(0,l.useRef)(),{deviceType:t,templateType:n,isInserterOpen:a,isListViewOpen:r,listViewShortcut:o,isVisualMode:i,isDistractionFree:s,blockEditorMode:c,homeUrl:u,showIconLabels:m,editorCanvasView:p}=(0,d.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t,getEditedPostType:n,isInserterOpened:a,isListViewOpened:r,getEditorMode:o}=e(Fn),{getShortcutRepresentation:i}=e(Vn.store),{__unstableGetEditorMode:s}=e(we.store),l=n(),{getUnstableBase:c}=e(_.store);return{deviceType:t(),templateType:l,isInserterOpen:a(),isListViewOpen:r(),listViewShortcut:i("core/edit-site/toggle-list-view"),isVisualMode:"visual"===o(),blockEditorMode:s(),homeUrl:c()?.home,showIconLabels:e(x.store).get("core/edit-site","showIconLabels"),editorCanvasView:nt(e(Fn)).getEditorCanvasContainerView(),isDistractionFree:e(x.store).get("core/edit-site","distractionFree")}}),[]),{get:g}=(0,d.useSelect)(x.store),h=g(Fn.name,"fixedToolbar"),{__experimentalSetPreviewDeviceType:f,setIsInserterOpened:b,setIsListViewOpened:w}=(0,d.useDispatch)(Fn),{__unstableSetEditorMode:S}=(0,d.useDispatch)(we.store),k=(0,re.useReducedMotion)(),C=(0,re.useViewportMatch)("medium"),T=(0,l.useCallback)((()=>{a?(e.current.focus(),b(!1)):b(!0)}),[a,b]),N=(0,l.useCallback)((()=>w(!r)),[w,r]),{shouldShowContextualToolbar:M,canFocusHiddenToolbar:P,fixedToolbarCanBeFocused:I}=bd(),B=M||P||I,D=!function(){const e=(0,v.__experimentalUseSlotFills)(Pa);return!!e?.length}(),R="wp_template_part"===n||"wp_navigation"===n,L=(0,E._x)("Toggle block inserter","Generic label for block inserter button"),A=a?(0,E.__)("Close"):(0,E.__)("Add"),F=window?.__experimentalEnableZoomedOutView&&i,V="zoom-out"===c,z={isDistractionFree:{y:"-50px"},isDistractionFreeHovering:{y:0},view:{y:0},edit:{y:0}},O={type:"tween",duration:k?0:.2,ease:"easeOut"};return(0,l.createElement)("div",{className:y()("edit-site-header-edit-mode",{"show-icon-labels":m})},D&&(0,l.createElement)(we.NavigableToolbar,{as:v.__unstableMotion.div,className:"edit-site-header-edit-mode__start","aria-label":(0,E.__)("Document tools"),shouldUseKeyboardFocusShortcut:!B,variants:z,transition:O},(0,l.createElement)("div",{className:"edit-site-header-edit-mode__toolbar"},!s&&(0,l.createElement)(v.ToolbarItem,{ref:e,as:v.Button,className:"edit-site-header-edit-mode__inserter-toggle",variant:"primary",isPressed:a,onMouseDown:wd,onClick:T,disabled:!i,icon:pr,label:m?A:L,showTooltip:!m}),C&&(0,l.createElement)(l.Fragment,null,!h&&(0,l.createElement)(v.ToolbarItem,{as:we.ToolSelector,showTooltip:!m,variant:m?"tertiary":void 0,disabled:!i}),(0,l.createElement)(v.ToolbarItem,{as:gd,showTooltip:!m,variant:m?"tertiary":void 0}),(0,l.createElement)(v.ToolbarItem,{as:hd,showTooltip:!m,variant:m?"tertiary":void 0}),!s&&(0,l.createElement)(v.ToolbarItem,{as:v.Button,className:"edit-site-header-edit-mode__list-view-toggle",disabled:!i||V,icon:Ou,isPressed:r,label:(0,E.__)("List View"),onClick:N,shortcut:o,showTooltip:!m,variant:m?"tertiary":void 0}),F&&!s&&!h&&(0,l.createElement)(v.ToolbarItem,{as:v.Button,className:"edit-site-header-edit-mode__zoom-out-view-toggle",icon:Hu,isPressed:V,label:(0,E.__)("Zoom-out View"),onClick:()=>{f("desktop"),S(V?"edit":"zoom-out")}})))),!s&&(0,l.createElement)("div",{className:"edit-site-header-edit-mode__center"},D?(0,l.createElement)(yd,null):Na(p)),(0,l.createElement)("div",{className:"edit-site-header-edit-mode__end"},(0,l.createElement)(v.__unstableMotion.div,{className:"edit-site-header-edit-mode__actions",variants:z,transition:O},!R&&D&&(0,l.createElement)("div",{className:y()("edit-site-header-edit-mode__preview-options",{"is-zoomed-out":V})},(0,l.createElement)(we.__experimentalPreviewOptions,{deviceType:t,setDeviceType:f,label:(0,E.__)("View")},(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{href:u,target:"_blank",icon:Gu},(0,E.__)("View site"),(0,l.createElement)(v.VisuallyHidden,{as:"span"},(0,E.__)("(opens in a new tab)")))))),(0,l.createElement)(Ci,null),!s&&(0,l.createElement)(ee.Slot,{scope:"core/edit-site"}),(0,l.createElement)(md,{showIconLabels:m}))))}var kd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(f.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var Cd=function({className:e}){const{isRequestingSite:t,siteIconUrl:n}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=t("root","__unstableBase",void 0);return{isRequestingSite:!n,siteIconUrl:n?.site_icon_url}}),[]);if(t&&!n)return(0,l.createElement)("div",{className:"edit-site-site-icon__image"});const a=n?(0,l.createElement)("img",{className:"edit-site-site-icon__image",alt:(0,E.__)("Site Icon"),src:n}):(0,l.createElement)(v.Icon,{className:"edit-site-site-icon__icon",size:"48px",icon:kd});return(0,l.createElement)("div",{className:y()(e,"edit-site-site-icon")},a)};const xd=(0,l.forwardRef)((({isTransparent:e,...t},n)=>{const{canvasMode:a,dashboardLink:r,homeUrl:o}=(0,d.useSelect)((e=>{const{getCanvasMode:t,getSettings:n}=nt(e(Fn)),{getUnstableBase:a}=e(_.store);return{canvasMode:t(),dashboardLink:n().__experimentalDashboardLink||"index.php",homeUrl:a()?.home}}),[]),{open:i}=(0,d.useDispatch)(zn.store),s=(0,re.useReducedMotion)(),{setCanvasMode:c,__experimentalSetPreviewDeviceType:u}=nt((0,d.useDispatch)(Fn)),{clearSelectedBlock:m}=(0,d.useDispatch)(we.store),p="view"===a?{href:r,label:(0,E.__)("Go to the Dashboard")}:{href:r,role:"button",label:(0,E.__)("Open Navigation"),onClick:e=>{e.preventDefault(),"edit"===a&&(m(),u("desktop"),c("view"))}},g=(0,d.useSelect)((e=>e(_.store).getEntityRecord("root","site")?.title),[]);return(0,l.createElement)(v.__unstableMotion.div,{ref:n,...t,className:y()("edit-site-site-hub",t.className),initial:!1,transition:{type:"tween",duration:s?0:.3,ease:"easeOut"}},(0,l.createElement)(v.__experimentalHStack,{justify:"space-between",alignment:"center",className:"edit-site-site-hub__container"},(0,l.createElement)(v.__experimentalHStack,{justify:"flex-start",className:"edit-site-site-hub__text-content",spacing:"0"},(0,l.createElement)(v.__unstableMotion.div,{className:y()("edit-site-site-hub__view-mode-toggle-container",{"has-transparent-background":e}),layout:!0,transition:{type:"tween",duration:s?0:.3,ease:"easeOut"}},(0,l.createElement)(v.Button,{...p,className:"edit-site-layout__view-mode-toggle"},(0,l.createElement)(v.__unstableMotion.div,{initial:!1,animate:{scale:"view"===a?.5:1},whileHover:{scale:"view"===a?.5:.96},transition:{type:"tween",duration:s?0:.3,ease:"easeOut"}},(0,l.createElement)(Cd,{className:"edit-site-layout__view-mode-toggle-icon"})))),(0,l.createElement)(v.__unstableAnimatePresence,null,(0,l.createElement)(v.__unstableMotion.div,{layout:"edit"===a,animate:{opacity:"view"===a?1:0},exit:{opacity:0},className:y()("edit-site-site-hub__site-title",{"is-transparent":e}),transition:{type:"tween",duration:s?0:.2,ease:"easeOut",delay:"view"===a?.1:0}},(0,It.decodeEntities)(g))),"view"===a&&(0,l.createElement)(v.Button,{href:o,target:"_blank",label:(0,E.__)("View site (opens in a new tab)"),"aria-label":(0,E.__)("View site (opens in a new tab)"),icon:Gu,className:"edit-site-site-hub__site-view-link"})),"view"===a&&(0,l.createElement)(v.Button,{className:y()("edit-site-site-hub_toggle-command-center",{"is-transparent":e}),icon:rr,onClick:()=>i(),label:(0,E.__)("Open command palette")})))}));var Td=xd;const Nd={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},Md=320,Pd=1300,Id=9/19.5,Bd={width:"100%",height:"100%"};function Dd(e,t){const n=1-Math.max(0,Math.min(1,(e-Md)/(Pd-Md))),a=((e,t,n)=>e+(t-e)*n)(t,Id,n);return e/a}var Rd=function e({isFullWidth:t,isOversized:n,setIsOversized:a,isReady:r,children:o,defaultSize:i,innerContentStyle:s}){const[c,u]=(0,l.useState)(Bd),[m,p]=(0,l.useState)(),[_,g]=(0,l.useState)(!1),[h,f]=(0,l.useState)(!1),[b,w]=(0,l.useState)(1),S=(0,d.useSelect)((e=>nt(e(Fn)).getCanvasMode()),[]),{setCanvasMode:k}=nt((0,d.useDispatch)(Fn)),C={type:"tween",duration:_?0:.5},x=(0,l.useRef)(null),T=(0,re.useInstanceId)(e,"edit-site-resizable-frame-handle-help"),N=i.width/i.height,M={default:{flexGrow:0,height:c.height},fullWidth:{flexGrow:1,height:c.height}},P=_?"active":h?"visible":"hidden";return(0,l.createElement)(v.ResizableBox,{as:v.__unstableMotion.div,ref:x,initial:!1,variants:M,animate:t?"fullWidth":"default",onAnimationComplete:e=>{"fullWidth"===e&&u({width:"100%",height:"100%"})},transition:C,size:c,enable:{top:!1,right:!1,bottom:!1,left:r,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},resizeRatio:b,handleClasses:void 0,handleStyles:{left:Nd,right:Nd},minWidth:Md,maxWidth:t?"100%":"150%",maxHeight:"100%",onFocus:()=>f(!0),onBlur:()=>f(!1),onMouseOver:()=>f(!0),onMouseOut:()=>f(!1),handleComponent:{left:"view"===S&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.Tooltip,{text:(0,E.__)("Drag to resize")},(0,l.createElement)(v.__unstableMotion.button,{key:"handle",role:"separator","aria-orientation":"vertical",className:y()("edit-site-resizable-frame__handle",{"is-resizing":_}),variants:{hidden:{opacity:0,left:0},visible:{opacity:1,left:-16},active:{opacity:1,left:-16,scaleY:1.3}},animate:P,"aria-label":(0,E.__)("Drag to resize"),"aria-describedby":T,"aria-valuenow":x.current?.resizable?.offsetWidth||void 0,"aria-valuemin":Md,"aria-valuemax":i.width,onKeyDown:e=>{if(!["ArrowLeft","ArrowRight"].includes(e.key))return;e.preventDefault();const t=20*(e.shiftKey?5:1)*("ArrowLeft"===e.key?1:-1),n=Math.min(Math.max(Md,x.current.resizable.offsetWidth+t),i.width);u({width:n,height:Dd(n,N)})},initial:"hidden",exit:"hidden",whileFocus:"active",whileHover:"active"})),(0,l.createElement)("div",{hidden:!0,id:T},(0,E.__)("Use left and right arrow keys to resize the canvas. Hold shift to resize in larger increments.")))},onResizeStart:(e,t,n)=>{p(n.offsetWidth),g(!0)},onResize:(e,t,r,o)=>{const s=o.width/b,l=Math.abs(s),c=o.width<0?l:(i.width-m)/2,d=Math.min(l,c),p=0===l?0:d/l;w(1-p+2*p);const _=m+o.width;a(_>i.width),u({height:n?"100%":Dd(_,N)})},onResizeStop:(e,t,r)=>{if(g(!1),!n)return;a(!1);r.ownerDocument.documentElement.offsetWidth-r.offsetWidth>200?u(Bd):k("edit")},className:y()("edit-site-resizable-frame__inner",{"is-resizing":_})},(0,l.createElement)(v.__unstableMotion.div,{className:"edit-site-resizable-frame__inner-content",animate:{borderRadius:t?0:8},transition:C,style:s},o))};const{useLocation:Ld,useHistory:Ad}=nt(pt.privateApis);const{useHistory:Fd,useLocation:Vd}=nt(pt.privateApis);const{EntitiesSavedStatesExtensible:zd}=nt(g.privateApis),Od=({onClose:e})=>{const t=(0,g.useEntitiesSavedStatesIsDirty)();let n;n=t.isDirty?(0,E.__)("Activate & Save"):(0,E.__)("Activate");const{getTheme:a}=(0,d.useSelect)(_.store),r=a(ht()),o=(0,l.createElement)("p",null,(0,E.sprintf)("Saving your changes will change your active theme to %1$s.",r?.name?.rendered)),i=function(){const e=Fd(),t=Vd();return async()=>{if(gt()){const n="themes.php?action=activate&stylesheet="+ht()+"&_wpnonce="+window.WP_BLOCK_THEME_ACTIVATE_NONCE;await window.fetch(n);const{wp_theme_preview:a,...r}=t.params;e.replace(r)}}}();return(0,l.createElement)(zd,{...t,additionalPrompt:o,close:e,onSave:async e=>(await i(),e),saveEnabled:!0,saveLabel:n})},Hd=({onClose:e})=>gt()?(0,l.createElement)(Od,{onClose:e}):(0,l.createElement)(g.EntitiesSavedStates,{close:e});function Gd(){const{isSaveViewOpen:e,canvasMode:t}=(0,d.useSelect)((e=>{const{isSaveViewOpened:t,getCanvasMode:n}=nt(e(Fn));return{isSaveViewOpen:t(),canvasMode:n()}}),[]),{setIsSaveViewOpened:n}=(0,d.useDispatch)(Fn),a=()=>n(!1);return"view"===t?e?(0,l.createElement)(v.Modal,{className:"edit-site-save-panel__modal",onRequestClose:a,__experimentalHideHeader:!0,contentLabel:(0,E.__)("Save site, content, and template changes")},(0,l.createElement)(Hd,{onClose:a})):null:(0,l.createElement)(oe,{className:y()("edit-site-layout__actions",{"is-entity-save-view-open":e}),ariaLabel:(0,E.__)("Save panel")},e?(0,l.createElement)(Hd,{onClose:a}):(0,l.createElement)("div",{className:"edit-site-editor__toggle-save-panel"},(0,l.createElement)(v.Button,{variant:"secondary",className:"edit-site-editor__toggle-save-panel-button",onClick:()=>n(!0),"aria-expanded":!1},(0,E.__)("Open save panel"))))}var Ud=function(){const{registerShortcut:e}=(0,d.useDispatch)(Vn.store);return(0,l.useEffect)((()=>{e({name:"core/edit-site/save",category:"global",description:(0,E.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-site/undo",category:"global",description:(0,E.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-site/redo",category:"global",description:(0,E.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,aa.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/edit-site/toggle-list-view",category:"global",description:(0,E.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),e({name:"core/edit-site/toggle-block-settings-sidebar",category:"global",description:(0,E.__)("Show or hide the Settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/edit-site/keyboard-shortcuts",category:"main",description:(0,E.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/edit-site/next-region",category:"global",description:(0,E.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-site/previous-region",category:"global",description:(0,E.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),e({name:"core/edit-site/toggle-mode",category:"global",description:(0,E.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),e({name:"core/edit-site/transform-heading-to-paragraph",category:"block-library",description:(0,E.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/edit-site/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,E.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})})),e({name:"core/edit-site/toggle-distraction-free",category:"global",description:(0,E.__)("Toggle distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}})}),[e]),null};var $d=function(){const{__experimentalGetDirtyEntityRecords:e,isSavingEntityRecord:t}=(0,d.useSelect)(_.store),{setIsSaveViewOpened:n}=(0,d.useDispatch)(Fn);return(0,Vn.useShortcut)("core/edit-site/save",(a=>{a.preventDefault();const r=e(),o=!!r.length;!r.some((e=>t(e.kind,e.name,e.key)))&&o&&n(!0)})),null};var jd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"}));var Wd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}));const{useGlobalStylesReset:Zd}=nt(we.privateApis),{useHistory:qd,useLocation:Yd}=nt(pt.privateApis);function Kd(){const[e,t]=Zd();return{isLoading:!1,commands:(0,l.useMemo)((()=>e?[{name:"core/edit-site/reset-global-styles",label:(0,E.__)("Reset styles to defaults"),icon:jd,callback:({close:e})=>{e(),t()}}]:[]),[e,t])}}function Xd(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t,setCanvasMode:n}=nt((0,d.useDispatch)(Fn)),{params:a}=Yd(),r=!zu(a,(0,re.useViewportMatch)("medium","<")),o=qd(),{canEditCSS:i}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a(),o=r?n("root","globalStyles",r):void 0;return{canEditCSS:null!==(t=!!o?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),{getCanvasMode:s}=nt((0,d.useSelect)(Fn));return{isLoading:!1,commands:(0,l.useMemo)((()=>i?[{name:"core/edit-site/open-styles-css",label:(0,E.__)("Open CSS"),icon:Gn,callback:({close:a})=>{a(),r||o.push({path:"/wp_global_styles",canvas:"edit"}),r&&"edit"!==s()&&n("edit"),e("edit-site/global-styles"),t("global-styles-css")}}]:[]),[o,e,t,i,r,s,n])}}var Qd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));var Jd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));var em=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));var tm=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(f.Path,{d:"M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z"}));const{useHistory:nm}=nt(pt.privateApis);function am(){const{isPage:e,canvasMode:t,hasPageContentFocus:n}=(0,d.useSelect)((e=>({isPage:e(Fn).isPage(),canvasMode:nt(e(Fn)).getCanvasMode(),hasPageContentFocus:e(Fn).hasPageContentFocus()})),[]),{setHasPageContentFocus:a}=(0,d.useDispatch)(Fn);if(!e||"edit"!==t)return{isLoading:!1,commands:[]};const r=[];return n?r.push({name:"core/switch-to-template-focus",label:(0,E.__)("Edit template"),icon:$n,callback:({close:e})=>{a(!1),e()}}):r.push({name:"core/switch-to-page-focus",label:(0,E.__)("Back to page"),icon:Un,callback:({close:e})=>{a(!0),e()}}),{isLoading:!1,commands:r}}function rm(){const{isLoaded:e,record:t}=Ur(),{removeTemplate:n,revertTemplate:a}=(0,d.useDispatch)(Fn),r=nm(),o=(0,d.useSelect)((e=>e(Fn).hasPageContentFocus()),[]);if(!e)return{isLoading:!0,commands:[]};const i=[];if(Rt(t)&&!o){const e="wp_template"===t.type?(0,E.__)("Reset template"):(0,E.__)("Reset template part");i.push({name:"core/reset-template",label:e,icon:Qn,callback:({close:e})=>{a(t),e()}})}if(Kr(t)&&!o){const e="wp_template"===t.type?(0,E.__)("Delete template"):(0,E.__)("Delete template part"),a="wp_template"===t.type?"/wp_template":"/wp_template_part/all";i.push({name:"core/remove-template",label:e,icon:jd,callback:({close:e})=>{n(t),r.push({path:a}),e()}})}return{isLoading:!e,commands:i}}function om(){const{openGeneralSidebar:e,closeGeneralSidebar:t,setIsInserterOpened:n,setIsListViewOpened:a,switchEditorMode:r}=(0,d.useDispatch)(Fn),{canvasMode:o,editorMode:i,activeSidebar:s}=(0,d.useSelect)((e=>({canvasMode:nt(e(Fn)).getCanvasMode(),editorMode:e(Fn).getEditorMode(),activeSidebar:e(U).getActiveComplementaryArea(Fn.name)})),[]),{openModal:l}=(0,d.useDispatch)(U),{get:c}=(0,d.useSelect)(x.store),{set:u,toggle:m}=(0,d.useDispatch)(x.store),{createInfoNotice:p}=(0,d.useDispatch)(Se.store);if("edit"!==o)return{isLoading:!1,commands:[]};const _=[];return _.push({name:"core/open-settings-sidebar",label:(0,E.__)("Toggle settings sidebar"),icon:(0,E.isRTL)()?ji:Wi,callback:({close:n})=>{n(),"edit-site/template"===s?t():e("edit-site/template")}}),_.push({name:"core/open-block-inspector",label:(0,E.__)("Toggle block inspector"),icon:Qd,callback:({close:n})=>{n(),"edit-site/block-inspector"===s?t():e("edit-site/block-inspector")}}),_.push({name:"core/toggle-spotlight-mode",label:(0,E.__)("Toggle spotlight mode"),icon:Jd,callback:({close:e})=>{m("core/edit-site","focusMode"),e()}}),_.push({name:"core/toggle-distraction-free",label:(0,E.__)("Toggle distraction free"),icon:Jd,callback:({close:e})=>{u("core/edit-site","fixedToolbar",!1),n(!1),a(!1),t(),m("core/edit-site","distractionFree"),p(c("core/edit-site","distractionFree")?(0,E.__)("Distraction free mode turned on."):(0,E.__)("Distraction free mode turned off."),{id:"core/edit-site/distraction-free-mode/notice",type:"snackbar"}),e()}}),_.push({name:"core/toggle-top-toolbar",label:(0,E.__)("Toggle top toolbar"),icon:Jd,callback:({close:e})=>{m("core/edit-site","fixedToolbar"),e()}}),_.push({name:"core/toggle-code-editor",label:(0,E.__)("Toggle code editor"),icon:em,callback:({close:e})=>{r("visual"===i?"text":"visual"),e()}}),_.push({name:"core/open-preferences",label:(0,E.__)("Open editor preferences"),icon:Jd,callback:()=>{l(Ju)}}),_.push({name:"core/open-shortcut-help",label:(0,E.__)("Open keyboard shortcuts"),icon:tm,callback:()=>{l(Zu)}}),{isLoading:!1,commands:_}}function im({title:e,subTitle:t,actions:n}){return(0,l.createElement)(v.__experimentalHStack,{as:"header",alignment:"left",className:"edit-site-page-header"},(0,l.createElement)(v.FlexBlock,{className:"edit-site-page-header__page-title"},(0,l.createElement)(v.__experimentalHeading,{as:"h2",level:4,className:"edit-site-page-header__title"},e),t&&(0,l.createElement)(v.__experimentalText,{as:"p",className:"edit-site-page-header__sub-title"},t)),(0,l.createElement)(v.FlexItem,{className:"edit-site-page-header__actions"},n))}function sm({title:e,subTitle:t,actions:n,children:a,className:r,hideTitleFromUI:o=!1}){const i=y()("edit-site-page",r);return(0,l.createElement)(oe,{className:i,ariaLabel:e},!o&&e&&(0,l.createElement)(im,{title:e,subTitle:t,actions:n}),(0,l.createElement)("div",{className:"edit-site-page-content"},a,(0,l.createElement)(g.EditorSnackbars,null)))}function lm({categoryId:e,type:t,titleId:n,descriptionId:a}){const{patternCategories:r}=Io(),o=(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplatePartAreas()),[]);let i,s;if(e===Eo&&t===vo)i=(0,E.__)("My Patterns"),s="";else if(t===yo){const t=o.find((t=>t.area===e));i=t?.label,s=t?.description}else if(t===ho){const t=r.find((t=>t.name===e));i=t?.label,s=t?.description}return i?(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-patterns__section-header"},(0,l.createElement)(v.__experimentalHeading,{as:"h2",level:4,id:n},i),s?(0,l.createElement)(v.__experimentalText,{variant:"muted",as:"p",id:a},s):null):null}var cm=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));function um({item:e,onClose:t}){const[n,a]=(0,l.useState)((()=>e.title)),[r,o]=(0,l.useState)(!1),{editEntityRecord:i,saveEditedEntityRecord:s}=(0,d.useDispatch)(_.store),{createSuccessNotice:c,createErrorNotice:u}=(0,d.useDispatch)(Se.store);if(e.type===yo&&!e.isCustom)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuItem,{onClick:()=>{o(!0),a(e.title)}},(0,E.__)("Rename")),r&&(0,l.createElement)(v.Modal,{title:(0,E.__)("Rename"),onRequestClose:()=>{o(!1),t()},overlayClassName:"edit-site-list__rename_modal"},(0,l.createElement)("form",{onSubmit:async function(r){r.preventDefault();try{await i("postType",e.type,e.id,{title:n}),a(""),o(!1),t(),await s("postType",e.type,e.id,{throwOnError:!0}),c((0,E.__)("Entity renamed."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while renaming the entity.");u(t,{type:"snackbar"})}}},(0,l.createElement)(v.__experimentalVStack,{spacing:"5"},(0,l.createElement)(v.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:n,onChange:a,required:!0}),(0,l.createElement)(v.__experimentalHStack,{justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>{o(!1),t()}},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit"},(0,E.__)("Save")))))))}const{useHistory:dm}=nt(pt.privateApis);function mm(e){if(e.type===ho)return{wp_pattern_sync_status:bo.unsynced};const t=e.reusableBlock.wp_pattern_sync_status,n=t===bo.unsynced;return{...e.reusableBlock.meta,wp_pattern_sync_status:n?t:void 0}}function pm({categoryId:e,item:t,label:n=(0,E.__)("Duplicate"),onClose:a}){const{saveEntityRecord:r}=(0,d.useDispatch)(_.store),{createErrorNotice:o,createSuccessNotice:i}=(0,d.useDispatch)(Se.store),s=dm(),c=ko();const u=t.type===yo?async function(){try{const n=(0,E.sprintf)((0,E.__)("%s (Copy)"),t.title),o=Co(n,c),l=xo(o),{area:u,content:d}=t.templatePart,m=await r("postType","wp_template_part",{slug:l,title:o,content:d,area:u},{throwOnError:!0});i((0,E.sprintf)((0,E.__)('"%s" created.'),o),{type:"snackbar",id:"edit-site-patterns-success",actions:[{label:(0,E.__)("Edit"),onClick:()=>s.push({postType:yo,postId:m?.id,categoryType:yo,categoryId:e})}]}),a()}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the template part.");o(t,{type:"snackbar",id:"edit-site-patterns-error"}),a()}}:async function(){try{const e=t.type===ho,n=(0,E.sprintf)((0,E.__)("%s (Copy)"),t.title),o=await r("postType","wp_block",{content:e?t.content:t.reusableBlock.content,meta:mm(t),status:"publish",title:n},{throwOnError:!0}),l=e?(0,E.__)("View my patterns"):(0,E.__)("Edit"),c=e?{categoryType:vo,categoryId:Eo,path:"/patterns"}:{categoryType:vo,categoryId:Eo,postType:vo,postId:o?.id};i((0,E.sprintf)((0,E.__)('"%s" added to my patterns.'),n),{type:"snackbar",id:"edit-site-patterns-success",actions:[{label:l,onClick:()=>s.push(c)}]}),a()}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the pattern.");o(t,{type:"snackbar",id:"edit-site-patterns-error"}),a()}};return(0,l.createElement)(v.MenuItem,{onClick:u},n)}const _m={header:eo,footer:to,uncategorized:Ic};var gm=(0,l.memo)((function({categoryId:e,item:t,...n}){const a=(0,l.useId)(),[r,o]=(0,l.useState)(!1),{removeTemplate:i}=(0,d.useDispatch)(Fn),{__experimentalDeleteReusableBlock:s}=(0,d.useDispatch)(Mc.store),{createErrorNotice:c,createSuccessNotice:u}=(0,d.useDispatch)(Se.store),m=t.type===vo,p=t.type===ho,_=t.type===yo,{onClick:g}=vt({postType:t.type,postId:m?t.id:t.name,categoryId:e,categoryType:t.type}),h=!t.blocks?.length,f=y()("edit-site-patterns__pattern",{"is-placeholder":h}),b=y()("edit-site-patterns__preview",{"is-inactive":p}),w=m||_&&t.isCustom,S=_&&t.templatePart.has_theme_file,k=[];w?k.push((0,E.__)("Press Enter to edit, or Delete to delete the pattern.")):t.description&&k.push(t.description),p&&k.push((0,E.__)("Theme patterns cannot be edited."));const C=_m[e]||(t.syncStatus===bo.full?jn:void 0),x=S?(0,E.__)("Clear"):(0,E.__)("Delete"),T=S?(0,E.__)("Are you sure you want to clear these customizations?"):(0,E.sprintf)((0,E.__)('Are you sure you want to delete "%s"?'),t.title);return(0,l.createElement)("li",{className:f},(0,l.createElement)("button",{className:b,id:`edit-site-patterns-${t.name}`,...n,onClick:t.type!==ho?g:void 0,"aria-disabled":t.type!==ho?"false":"true","aria-label":t.title,"aria-describedby":k.length?k.map(((e,t)=>`${a}-${t}`)).join(" "):void 0},h&&(0,E.__)("Empty pattern"),!h&&(0,l.createElement)(we.BlockPreview,{blocks:t.blocks})),k.map(((e,t)=>(0,l.createElement)("div",{key:t,hidden:!0,id:`${a}-${t}`},e))),(0,l.createElement)(v.__experimentalHStack,{className:"edit-site-patterns__footer",justify:"space-between"},(0,l.createElement)(v.__experimentalHStack,{alignment:"center",justify:"left",spacing:3,className:"edit-site-patterns__pattern-title"},C&&!p&&(0,l.createElement)(v.Tooltip,{position:"top center",text:(0,E.__)("Editing this pattern will also update anywhere it is used")},(0,l.createElement)("span",null,(0,l.createElement)(de,{className:"edit-site-patterns__pattern-icon",icon:C}))),(0,l.createElement)(v.Flex,{as:"span",gap:0,justify:"left"},t.type===ho?t.title:(0,l.createElement)(v.__experimentalHeading,{level:5},(0,l.createElement)(v.Button,{variant:"link",onClick:g,tabIndex:"-1"},t.title)),t.type===ho&&(0,l.createElement)(v.Tooltip,{position:"top center",text:(0,E.__)("Theme patterns cannot be edited.")},(0,l.createElement)("span",{className:"edit-site-patterns__pattern-lock-icon"},(0,l.createElement)(de,{icon:mo,size:24}))))),(0,l.createElement)(v.DropdownMenu,{icon:cm,label:(0,E.__)("Actions"),className:"edit-site-patterns__dropdown",popoverProps:{placement:"bottom-end"},toggleProps:{className:"edit-site-patterns__button",isSmall:!0,describedBy:(0,E.sprintf)((0,E.__)("Action menu for %s pattern"),t.title)}},(({onClose:n})=>(0,l.createElement)(v.MenuGroup,null,w&&!S&&(0,l.createElement)(um,{item:t,onClose:n}),(0,l.createElement)(pm,{categoryId:e,item:t,onClose:n,label:p?(0,E.__)("Copy to My patterns"):(0,E.__)("Duplicate")}),w&&(0,l.createElement)(v.MenuItem,{onClick:()=>o(!0)},S?(0,E.__)("Clear customizations"):(0,E.__)("Delete")))))),r&&(0,l.createElement)(v.__experimentalConfirmDialog,{confirmButtonText:x,onConfirm:()=>_?i(t):(async()=>{try{await s(t.id),u((0,E.sprintf)((0,E.__)('"%s" deleted.'),t.title),{type:"snackbar",id:"edit-site-patterns-success"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while deleting the pattern.");c(t,{type:"snackbar",id:"edit-site-patterns-error"})}})(),onCancel:()=>o(!1)},T))}));const hm=20;function ym({currentPage:e,numPages:t,changePage:n,totalItems:a}){return(0,l.createElement)(v.__experimentalHStack,{expanded:!1,spacing:3,className:"edit-site-patterns__grid-pagination"},(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.sprintf)((0,E._n)("%s item","%s items",a),a)),(0,l.createElement)(v.__experimentalHStack,{expanded:!1,spacing:1},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>n(1),disabled:1===e,"aria-label":(0,E.__)("First page")},"«"),(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>n(e-1),disabled:1===e,"aria-label":(0,E.__)("Previous page")},"‹")),(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.sprintf)((0,E._x)("%1$s of %2$s","paging"),e,t)),(0,l.createElement)(v.__experimentalHStack,{expanded:!1,spacing:1},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":(0,E.__)("Next page")},"›"),(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":(0,E.__)("Last page")},"»")))}function vm({categoryId:e,items:t,currentPage:n,setCurrentPage:a,...r}){const o=(0,l.useRef)(),i=t.length,s=n-1,c=(0,l.useMemo)((()=>t.slice(s*hm,s*hm+hm)),[s,t]),u=(0,re.useAsyncList)(c,{step:10});if(!c?.length)return null;const d=Math.ceil(t.length/hm);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("ul",{role:"listbox",className:"edit-site-patterns__grid",...r,ref:o},u.map((t=>(0,l.createElement)(gm,{key:t.name,item:t,categoryId:e})))),d>1&&(0,l.createElement)(ym,{currentPage:n,numPages:d,changePage:e=>{const t=document.querySelector(".edit-site-patterns");t?.scrollTo(0,0),a(e)},totalItems:i}))}function Em(){return(0,l.createElement)("div",{className:"edit-site-patterns__no-results"},(0,E.__)("No patterns found."))}var fm=n(4793),bm=n.n(fm);function wm(e){return e.toLowerCase()}var Sm=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],km=/[^A-Z0-9]+/gi;function Cm(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}const xm=e=>e.name||"",Tm=e=>e.title,Nm=e=>e.description||"",Mm=e=>e.keywords||[],Pm=()=>!1;function Im(e=""){return function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,a=void 0===n?Sm:n,r=t.stripRegexp,o=void 0===r?km:r,i=t.transform,s=void 0===i?wm:i,l=t.delimiter,c=void 0===l?" ":l,u=Cm(Cm(e,a,"$1\0$2"),o,"\0"),d=0,m=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(m-1);)m--;return u.slice(d,m).split("\0").map(s).join(c)}(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function Bm(e=""){return e=(e=(e=bm()(e)).replace(/^\//,"")).toLowerCase()}const Dm=(e="")=>Im(Bm(e)),Rm=(e=[],t="",n={})=>{const a=Dm(t),r=!a.length,o={...n,onlyFilterByCategory:r},i=r?0:1,s=e.map((e=>[e,Lm(e,t,o)])).filter((([,e])=>e>i));return 0===a.length||s.sort((([,e],[,t])=>t-e)),s.map((([e])=>e))};function Lm(e,t,n){const{categoryId:a,getName:r=xm,getTitle:o=Tm,getDescription:i=Nm,getKeywords:s=Mm,hasCategory:l=Pm,onlyFilterByCategory:c}=n;let u=l(e,a)?1:0;if(!u||c)return u;const d=r(e),m=o(e),p=i(e),_=s(e),g=Bm(t),h=Bm(m);if(g===h)u+=30;else if(h.startsWith(g))u+=20;else{const e=[d,m,p,..._].join(" ");0===((e,t)=>e.filter((e=>!Dm(t).some((t=>t.includes(e))))))(Im(g),e).length&&(u+=10)}return u}const Am=[],Fm=(e,t)=>e&&t?e+"//"+t:null,Vm=(e,{categoryId:t,search:n=""}={})=>{var a;const{getEntityRecords:r,getIsResolving:o}=e(_.store),{__experimentalGetDefaultTemplatePartAreas:i}=e(g.store),s={per_page:-1},l=(null!==(a=r("postType",yo,s))&&void 0!==a?a:Am).map((e=>(e=>({blocks:(0,c.parse)(e.content.raw),categories:[e.area],description:e.description||"",isCustom:"custom"===e.source,keywords:e.keywords||[],id:Fm(e.theme,e.slug),name:Fm(e.theme,e.slug),title:(0,It.decodeEntities)(e.title.rendered),type:e.type,templatePart:e}))(e))),u=(i()||[]).map((e=>e.area)),d=o("getEntityRecords",["postType","wp_template_part",s]),m=Rm(l,n,{categoryId:t,hasCategory:(e,t)=>"uncategorized"!==t?e.templatePart.area===t:e.templatePart.area===t||!u.includes(e.templatePart.area)});return{patterns:m,isResolving:d}},zm=(e,{search:t="",syncStatus:n}={})=>{const{getEntityRecords:a,getIsResolving:r}=e(_.store),o={per_page:-1},i=a("postType",vo,o);let s=i?i.map((e=>{return t=e,{blocks:(0,c.parse)(t.content.raw),categories:t.wp_pattern,id:t.id,name:t.slug,syncStatus:t.wp_pattern_sync_status||bo.full,title:t.title.raw,type:t.type,reusableBlock:t};var t})):Am;const l=r("getEntityRecords",["postType",vo,o]);return n&&(s=s.filter((e=>e.syncStatus===n))),s=Rm(s,t,{hasCategory:()=>!0}),{patterns:s,isResolving:l}};var Om=(e,t,{search:n="",syncStatus:a})=>(0,d.useSelect)((r=>e===yo?Vm(r,{categoryId:t,search:n}):e===ho?((e,{categoryId:t,search:n=""}={})=>{var a;const{getSettings:r}=nt(e(Fn)),o=r();let i=[...(null!==(a=o.__experimentalAdditionalBlockPatterns)&&void 0!==a?a:o.__experimentalBlockPatterns)||[],...e(_.store).getBlockPatterns()||[]].filter((e=>!fo.includes(e.source))).filter(wo).filter((e=>!1!==e.inserter)).map((e=>({...e,keywords:e.keywords||[],type:"pattern",blocks:(0,c.parse)(e.content)})));return i=Rm(i,n,t?{categoryId:t,hasCategory:(e,t)=>e.categories?.includes(t)}:{hasCategory:e=>!e.hasOwnProperty("categories")}),{patterns:i,isResolving:!1}})(r,{categoryId:t,search:n}):e===vo?zm(r,{search:n,syncStatus:a}):{patterns:Am,isResolving:!1}),[t,e,n,a]);const{useLocation:Hm,useHistory:Gm}=nt(pt.privateApis),Um={all:(0,E.__)("All"),[bo.full]:(0,E.__)("Synced"),[bo.unsynced]:(0,E.__)("Standard")},$m={all:"",[bo.full]:(0,E.__)("Patterns that are kept in sync across the site."),[bo.unsynced]:(0,E.__)("Patterns that can be changed freely without affecting the site.")};function jm({categoryId:e,type:t}){const[n,a]=(0,l.useState)(1),r=Hm(),o=Gm(),i=(0,re.useViewportMatch)("medium","<"),[s,c,u]=_r(""),d=(0,l.useDeferredValue)(u),[m,p]=(0,l.useState)("all"),_=(0,l.useDeferredValue)(m),g=t===ho&&"uncategorized"===e,{patterns:h,isResolving:y}=Om(t,g?"":e,{search:d,syncStatus:"all"===_?void 0:_}),f=(0,l.useId)(),b=`${f}-title`,w=`${f}-description`,S=h.length,k=Um[m],C=$m[m];return(0,l.createElement)(v.__experimentalVStack,{spacing:6},(0,l.createElement)(lm,{categoryId:e,type:t,titleId:b,descriptionId:w}),(0,l.createElement)(v.Flex,{alignment:"stretch",wrap:!0},i&&(0,l.createElement)(Wn,{icon:(0,E.isRTL)()?pe:me,label:(0,E.__)("Back"),onClick:()=>{"/patterns"===r.state?.backPath?o.back():o.push({path:"/patterns"})}}),(0,l.createElement)(v.FlexBlock,{className:"edit-site-patterns__search-block"},(0,l.createElement)(v.SearchControl,{className:"edit-site-patterns__search",onChange:e=>(e=>{a(1),c(e)})(e),placeholder:(0,E.__)("Search patterns"),label:(0,E.__)("Search patterns"),value:s,__nextHasNoMarginBottom:!0})),e===Eo&&(0,l.createElement)(v.__experimentalToggleGroupControl,{className:"edit-site-patterns__sync-status-filter",hideLabelFromVision:!0,label:(0,E.__)("Filter by sync status"),value:m,isBlock:!0,onChange:e=>(e=>{a(1),p(e)})(e),__nextHasNoMarginBottom:!0},Object.entries(Um).map((([e,t])=>(0,l.createElement)(v.__experimentalToggleGroupControlOption,{className:"edit-site-patterns__sync-status-filter-option",key:e,value:e,label:t}))))),"all"!==m&&(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-patterns__section-header"},(0,l.createElement)(v.__experimentalHeading,{as:"h3",level:5,id:b},k),C?(0,l.createElement)(v.__experimentalText,{variant:"muted",as:"p",id:w},C):null),S&&(0,l.createElement)(vm,{categoryId:e,items:h,"aria-labelledby":b,"aria-describedby":w,currentPage:n,setCurrentPage:a}),!y&&!S&&(0,l.createElement)(Em,null))}const{ExperimentalBlockEditorProvider:Wm}=nt(we.privateApis);function Zm(){const{categoryType:e,categoryId:t}=(0,_t.getQueryArgs)(window.location.href),n=e||go,a=t||_o,r=function(){var e;const t=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Fn));return t()}),[]),n=null!==(e=t.__experimentalAdditionalBlockPatterns)&&void 0!==e?e:t.__experimentalBlockPatterns,a=(0,d.useSelect)((e=>e(_.store).getBlockPatterns()),[]),r=(0,l.useMemo)((()=>[...n||[],...a||[]].filter(wo)),[n,a]);return(0,l.useMemo)((()=>{const{__experimentalAdditionalBlockPatterns:e,...n}=t;return{...n,__experimentalBlockPatterns:r,__unstableIsPreviewMode:!0}}),[t,r])}();return(0,l.createElement)(Wm,{settings:r},(0,l.createElement)(sm,{className:"edit-site-patterns",title:(0,E.__)("Patterns content"),hideTitleFromUI:!0},(0,l.createElement)(jm,{key:`${n}-${a}`,type:n,categoryId:a})))}function qm({data:e,columns:t}){return(0,l.createElement)("div",{className:"edit-site-table-wrapper"},(0,l.createElement)("table",{className:"edit-site-table"},(0,l.createElement)("thead",null,(0,l.createElement)("tr",null,t.map((e=>(0,l.createElement)("th",{key:e.header},e.header))))),(0,l.createElement)("tbody",null,e.map(((e,n)=>(0,l.createElement)("tr",{key:n},t.map(((t,n)=>(0,l.createElement)("td",{style:{maxWidth:t.maxWidth?t.maxWidth:void 0},key:n},t.cell(e))))))))))}const{useHistory:Ym}=nt(pt.privateApis);function Km(){const{canCreate:e,postType:t}=(0,d.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(Fn).getSettings();return{canCreate:!t,postType:e(_.store).getPostType("wp_template_part")}}),[]),[n,a]=(0,l.useState)(!1),r=Ym();return e&&t?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.Button,{variant:"primary",onClick:()=>a(!0)},t.labels.add_new_item),n&&(0,l.createElement)(To,{closeModal:()=>a(!1),blocks:[],onCreate:e=>{a(!1),r.push({postId:e.id,postType:"wp_template_part",canvas:"edit"})},onError:()=>a(!1)})):null}function Xm(){const{records:e}=(0,_.useEntityRecords)("postType","wp_template_part",{per_page:-1}),t=[{header:(0,E.__)("Template Part"),cell:e=>(0,l.createElement)(v.__experimentalVStack,null,(0,l.createElement)(v.__experimentalHeading,{as:"h3",level:5},(0,l.createElement)(Et,{params:{postId:e.id,postType:e.type},state:{backPath:"/wp_template_part/all"}},(0,It.decodeEntities)(e.title?.rendered||e.slug)))),maxWidth:400},{header:(0,E.__)("Added by"),cell:e=>(0,l.createElement)(Yr,{postType:e.type,postId:e.id})},{header:(0,l.createElement)(v.VisuallyHidden,null,(0,E.__)("Actions")),cell:e=>(0,l.createElement)(Qr,{postType:e.type,postId:e.id})}];return(0,l.createElement)(sm,{title:(0,E.__)("Template Parts"),actions:(0,l.createElement)(Km,null)},e&&(0,l.createElement)(qm,{data:e,columns:t}))}function Qm(){const{records:e}=(0,_.useEntityRecords)("postType","wp_template",{per_page:-1}),{canCreate:t}=(0,d.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(Fn).getSettings();return{postType:e(_.store).getPostType("wp_template"),canCreate:!t}})),n=[{header:(0,E.__)("Template"),cell:e=>(0,l.createElement)(v.__experimentalVStack,null,(0,l.createElement)(v.__experimentalHeading,{as:"h3",level:5},(0,l.createElement)(Et,{params:{postId:e.id,postType:e.type,canvas:"edit"}},(0,It.decodeEntities)(e.title?.rendered||e.slug))),e.description&&(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,It.decodeEntities)(e.description))),maxWidth:400},{header:(0,E.__)("Added by"),cell:e=>(0,l.createElement)(Yr,{postType:e.type,postId:e.id})},{header:(0,l.createElement)(v.VisuallyHidden,null,(0,E.__)("Actions")),cell:e=>(0,l.createElement)(Qr,{postType:e.type,postId:e.id})}];return(0,l.createElement)(sm,{title:(0,E.__)("Templates"),actions:t&&(0,l.createElement)(Or,{templateType:"wp_template",showIcon:!1,toggleProps:{variant:"primary"}})},e&&(0,l.createElement)(qm,{data:e,columns:n}))}const{useLocation:Jm}=nt(pt.privateApis);function ep(){const{params:{path:e}}=Jm();return"/wp_template/all"===e?(0,l.createElement)(Qm,null):"/wp_template_part/all"===e?(0,l.createElement)(Xm,null):"/patterns"===e?(0,l.createElement)(Zm,null):null}const tp=1e4;const{useCommands:np}=nt(On.privateApis),{useCommandContext:ap}=nt(zn.privateApis),{useLocation:rp}=nt(pt.privateApis),{useGlobalStyle:op}=nt(we.privateApis),ip=.5;function sp(){Fo(),function(){const e=Ad(),{params:t}=Ld(),n=(0,d.useSelect)((e=>nt(e(Fn)).getCanvasMode()),[]),{setCanvasMode:a}=nt((0,d.useDispatch)(Fn)),r=(0,l.useRef)(n),{canvas:o}=t,i=(0,l.useRef)(o),s=(0,l.useRef)(t);(0,l.useEffect)((()=>{s.current=t}),[t]),(0,l.useEffect)((()=>{r.current=n,"init"!==n&&("edit"===n&&i.current!==n&&e.push({...s.current,canvas:"edit"}),"view"===n&&void 0!==i.current&&e.push({...s.current,canvas:void 0}))}),[n,e]),(0,l.useEffect)((()=>{i.current=o,"edit"!==o&&"view"!==r.current?a("view"):"edit"===o&&"edit"!==r.current&&a("edit")}),[o,a])}(),np(),(0,zn.useCommandLoader)({name:"core/edit-site/page-content-focus",hook:am,context:"site-editor-edit"}),(0,zn.useCommandLoader)({name:"core/edit-site/manipulate-document",hook:rm}),(0,zn.useCommandLoader)({name:"core/edit-site/edit-ui",hook:om}),function(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t,setCanvasMode:n}=nt((0,d.useDispatch)(Fn)),{params:a}=Yd(),r=!zu(a,(0,re.useViewportMatch)("medium","<")),{getCanvasMode:o}=nt((0,d.useSelect)(Fn)),{set:i}=(0,d.useDispatch)(x.store),{createInfoNotice:s}=(0,d.useDispatch)(Se.store),l=qd(),{homeUrl:c,isDistractionFree:u}=(0,d.useSelect)((e=>{const{getUnstableBase:t}=e(_.store);return{homeUrl:t()?.home,isDistractionFree:e(x.store).get(Fn.name,"distractionFree")}}),[]);(0,zn.useCommand)({name:"core/edit-site/open-global-styles-revisions",label:(0,E.__)("Open styles revisions"),icon:Qn,callback:({close:a})=>{a(),r||l.push({path:"/wp_global_styles",canvas:"edit"}),r&&"edit"!==o()&&n("edit"),e("edit-site/global-styles"),t("global-styles-revisions")}}),(0,zn.useCommand)({name:"core/edit-site/open-styles",label:(0,E.__)("Open styles"),callback:({close:t})=>{t(),r||l.push({path:"/wp_global_styles",canvas:"edit"}),r&&"edit"!==o()&&n("edit"),u&&(i(Fn.name,"distractionFree",!1),s((0,E.__)("Distraction free mode turned off."),{type:"snackbar"})),e("edit-site/global-styles")},icon:Gn}),(0,zn.useCommand)({name:"core/edit-site/toggle-styles-welcome-guide",label:(0,E.__)("Learn about styles"),callback:({close:t})=>{t(),r||l.push({path:"/wp_global_styles",canvas:"edit"}),r&&"edit"!==o()&&n("edit"),e("edit-site/global-styles"),i("core/edit-site","welcomeGuideStyles",!0),setTimeout((()=>{i("core/edit-site","welcomeGuideStyles",!0)}),500)},icon:Wd}),(0,zn.useCommand)({name:"core/edit-site/view-site",label:(0,E.__)("View site"),callback:({close:e})=>{e(),window.open(c,"_blank")},icon:Gu}),(0,zn.useCommandLoader)({name:"core/edit-site/reset-global-styles",hook:Kd}),(0,zn.useCommandLoader)({name:"core/edit-site/open-styles-css",hook:Xd})}();const e=(0,l.useRef)(),{params:t}=rp(),n=(0,re.useViewportMatch)("medium","<"),a=zu(t,n),r=!a,{isDistractionFree:o,hasFixedToolbar:i,canvasMode:s,previousShortcut:c,nextShortcut:u}=(0,d.useSelect)((e=>{const{getAllShortcutKeyCombinations:t}=e(Vn.store),{getCanvasMode:n}=nt(e(Fn));return{canvasMode:n(),previousShortcut:t("core/edit-site/previous-region"),nextShortcut:t("core/edit-site/next-region"),hasFixedToolbar:e(x.store).get("core/edit-site","fixedToolbar"),isDistractionFree:e(x.store).get("core/edit-site","distractionFree")}}),[]),m="edit"===s,p=(0,v.__unstableUseNavigateRegions)({previous:c,next:u}),g=(0,re.useReducedMotion)(),h=n&&!a||!n&&("view"===s||!r),f=n&&r&&m||!n||!r,b=n&&a||r&&m,[w,S]=(0,re.useResizeObserver)(),[k]=(0,re.useResizeObserver)(),[C]=(0,l.useState)(!1),T=function(){const{isLoaded:e}=Ur(),[t,n]=(0,l.useState)(!1),a=(0,d.useSelect)((e=>{const n=e(_.store).hasResolvingSelectors();return!t&&!n}),[t]);return(0,l.useEffect)((()=>{let e;return t||(e=setTimeout((()=>{n(!0)}),tp)),()=>{clearTimeout(e)}}),[t]),(0,l.useEffect)((()=>{if(a){const e=setTimeout((()=>{n(!0)}),1e3);return()=>{clearTimeout(e)}}}),[a]),!t||!e}(),[N,M]=(0,l.useState)(!1);let P;P="view"===s?"view":o?"isDistractionFree":s;ap("edit"===s&&r?"site-editor-edit":"site-editor");const[I]=op("color.background"),[B]=op("color.gradient");return"init"===s?null:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(zn.CommandMenu,null),(0,l.createElement)(Ud,null),(0,l.createElement)($d,null),k,(0,l.createElement)("div",{...p,ref:p.ref,className:y()("edit-site-layout",p.className,{"is-distraction-free":o&&m,"is-full-canvas":b,"is-edit-mode":m,"has-fixed-toolbar":i})},(0,l.createElement)(v.__unstableMotion.div,{className:"edit-site-layout__header-container",variants:{isDistractionFree:{opacity:0,transition:{type:"tween",delay:.8,delayChildren:.8}},isDistractionFreeHovering:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},view:{opacity:1},edit:{opacity:1}},whileHover:o?"isDistractionFreeHovering":void 0,animate:P},(0,l.createElement)(Td,{as:v.__unstableMotion.div,variants:{isDistractionFree:{x:"-100%"},isDistractionFreeHovering:{x:0},view:{x:0},edit:{x:0}},ref:e,isTransparent:N,className:"edit-site-layout__hub"}),(0,l.createElement)(v.__unstableAnimatePresence,{initial:!1},r&&m&&(0,l.createElement)(oe,{key:"header",className:"edit-site-layout__header",ariaLabel:(0,E.__)("Editor top bar"),as:v.__unstableMotion.div,variants:{isDistractionFree:{opacity:0,y:0},isDistractionFreeHovering:{opacity:1,y:0},view:{opacity:1,y:"-100%"},edit:{opacity:1,y:0}},exit:{y:"-100%"},initial:{opacity:o?1:0,y:o?0:"-100%"},transition:{type:"tween",duration:g?0:.2,ease:"easeOut"}},(0,l.createElement)(Sd,null)))),(0,l.createElement)("div",{className:"edit-site-layout__content"},(0,l.createElement)(oe,{ariaLabel:(0,E.__)("Navigation"),className:"edit-site-layout__sidebar-region"},(0,l.createElement)(v.__unstableMotion.div,{inert:h?void 0:"inert",animate:{opacity:h?1:0},transition:{type:"tween",duration:g||n?0:ip,ease:"easeOut"},className:"edit-site-layout__sidebar"},(0,l.createElement)($i,null))),(0,l.createElement)(Gd,null),f&&(0,l.createElement)(l.Fragment,null,a&&(0,l.createElement)(ep,null),r&&(0,l.createElement)("div",{className:y()("edit-site-layout__canvas-container",{"is-resizing":C})},w,!!S.width&&(0,l.createElement)(v.__unstableMotion.div,{whileHover:r&&"view"===s?{scale:1.005,transition:{duration:g||C?0:.5,ease:"easeOut"}}:{},initial:!1,layout:"position",className:y()("edit-site-layout__canvas",{"is-right-aligned":N}),transition:{type:"tween",duration:g||C?0:ip,ease:"easeOut"}},(0,l.createElement)(Vu,null,(0,l.createElement)(Rd,{isReady:!T,isFullWidth:m,defaultSize:{width:S.width-24,height:S.height},isOversized:N,setIsOversized:M,innerContentStyle:{background:null!=B?B:I}},(0,l.createElement)(Lu,{isLoading:T})))))))))}const{RouterProvider:lp}=nt(pt.privateApis);function cp(){const{createErrorNotice:e}=(0,d.useDispatch)(Se.store);return(0,l.createElement)(Vn.ShortcutProvider,{style:{height:"100%"}},(0,l.createElement)(v.SlotFillProvider,null,(0,l.createElement)(ma,null,(0,l.createElement)(v.Popover.Slot,null),(0,l.createElement)(g.UnsavedChangesWarning,null),(0,l.createElement)(lp,null,(0,l.createElement)(sp,null),(0,l.createElement)($.PluginArea,{onError:function(t){e((0,E.sprintf)((0,E.__)('The "%s" plugin has encountered an error and cannot be rendered.'),t))}})))))}function up({className:e,...t}){const n=(0,d.useSelect)((e=>e(Fn).getSettings().showIconLabels),[]);return(0,l.createElement)(ae,{panelClassName:e,className:"edit-site-sidebar-edit-mode",scope:"core/edit-site",showIconLabels:n,...t})}function dp(e){return(0,l.createElement)(Q,{__unstableExplicitMenuItem:!0,scope:"core/edit-site",...e})}var mp=(0,re.compose)((0,$.withPluginContext)(((e,t)=>{var n;return{as:null!==(n=t.as)&&void 0!==n?n:v.MenuItem,icon:t.icon||e.icon,name:"core/edit-site/plugin-more-menu"}})))(K);function pp(e,t){const n=document.getElementById(e),a=(0,l.createRoot)(n);t.__experimentalFetchLinkSuggestions=(e,n)=>(0,_.__experimentalFetchLinkSuggestions)(e,n,t),t.__experimentalFetchRichUrlData=_.__experimentalFetchUrlData,(0,d.dispatch)(c.store).__experimentalReapplyBlockTypeFilters();const r=(0,u.__experimentalGetCoreBlocks)().filter((({name:e})=>"core/freeform"!==e));return(0,u.registerCoreBlocks)(r),(0,d.dispatch)(c.store).setFreeformFallbackBlockName("core/html"),(0,ve.registerLegacyWidgetBlock)({inserter:!1}),(0,ve.registerWidgetGroupBlock)({inserter:!1}),(0,d.dispatch)(x.store).setDefaults("core/edit-site",{editorMode:"visual",fixedToolbar:!1,focusMode:!1,distractionFree:!1,keepCaretInsideBlock:!1,welcomeGuide:!0,welcomeGuideStyles:!0,welcomeGuidePage:!0,welcomeGuideTemplate:!0,showListViewByDefault:!1,showBlockBreadcrumbs:!0}),(0,d.dispatch)(U).setDefaultComplementaryArea("core/edit-site","edit-site/template"),(0,d.dispatch)(Fn).updateSettings(t),(0,d.dispatch)(g.store).updateEditorSettings({defaultTemplateTypes:t.defaultTemplateTypes,defaultTemplatePartAreas:t.defaultTemplatePartAreas}),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),a.render((0,l.createElement)(cp,null)),a}function _p(){p()("wp.editSite.reinitializeEditor",{since:"6.2",version:"6.3"})}}(),(window.wp=window.wp||{}).editSite=a}();
\ No newline at end of file
+function da(e){return"[object Object]"===Object.prototype.toString.call(e)}function ma(e){var t,n;return!1!==da(e)&&(void 0===(t=e.constructor)||!1!==da(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}const{GlobalStylesContext:pa,cleanEmptyObject:_a}=nt(we.privateApis);function ga(e,t){return ua()(e,t,{isMergeableObject:ma})}function ha(){const[e,t,n]=function(){const{globalStylesId:e,isReady:t,settings:n,styles:a}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t,hasFinishedResolution:n}=e(_.store),a=e(_.store).__experimentalGetCurrentGlobalStylesId(),r=a?t("root","globalStyles",a):void 0;let o=!1;return n("__experimentalGetCurrentGlobalStylesId")&&(o=!a||n("getEditedEntityRecord",["root","globalStyles",a])),{globalStylesId:a,isReady:o,settings:r?.settings,styles:r?.styles}}),[]),{getEditedEntityRecord:r}=(0,d.useSelect)(_.store),{editEntityRecord:o}=(0,d.useDispatch)(_.store);return[t,(0,l.useMemo)((()=>({settings:null!=n?n:{},styles:null!=a?a:{}})),[n,a]),(0,l.useCallback)(((t,n={})=>{var a,i;const s=r("root","globalStyles",e),l=t({styles:null!==(a=s?.styles)&&void 0!==a?a:{},settings:null!==(i=s?.settings)&&void 0!==i?i:{}});o("root","globalStyles",e,{styles:_a(l.styles)||{},settings:_a(l.settings)||{}},n)}),[e])]}(),[a,r]=function(){const e=(0,d.useSelect)((e=>e(_.store).__experimentalGetCurrentThemeBaseGlobalStyles()),[]);return[!!e,e]}(),o=(0,l.useMemo)((()=>r&&t?ga(r,t):{}),[t,r]);return(0,l.useMemo)((()=>({isReady:e&&a,user:t,base:r,merged:o,setUserConfig:n})),[o,t,r,n,e,a])}function ya({children:e}){const t=ha();return t.isReady?(0,l.createElement)(pa.Provider,{value:t},e):null}const{useGlobalSetting:va,useGlobalStyle:Ea,useGlobalStylesOutput:fa}=nt(we.privateApis),ba={start:{scale:1,opacity:1},hover:{scale:0,opacity:0}},wa={hover:{opacity:1},start:{opacity:.5}},Sa={hover:{scale:1,opacity:1},start:{scale:0,opacity:0}};var ka=({label:e,isFocused:t,withHoverView:n})=>{const[a]=Ea("typography.fontWeight"),[r="serif"]=Ea("typography.fontFamily"),[o=r]=Ea("elements.h1.typography.fontFamily"),[i=a]=Ea("elements.h1.typography.fontWeight"),[s="black"]=Ea("color.text"),[c=s]=Ea("elements.h1.color.text"),[u="white"]=Ea("color.background"),[d]=Ea("color.gradient"),[m]=fa(),p=(0,re.useReducedMotion)(),[_]=va("color.palette.core"),[g]=va("color.palette.theme"),[h]=va("color.palette.custom"),[y,E]=(0,l.useState)(!1),[f,{width:b}]=(0,re.useResizeObserver)(),w=b?b/248:1,S=(null!=g?g:[]).concat(null!=h?h:[]).concat(null!=_?_:[]),k=S.filter((({color:e})=>e!==u&&e!==c)).slice(0,2),C=(0,l.useMemo)((()=>m?[...m,{css:"html{overflow:hidden}body{min-width: 0;padding: 0;border: none;}",isGlobalStyles:!0}]:m),[m]),x=!!b;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{style:{position:"relative"}},f),x&&(0,l.createElement)(we.__unstableIframe,{className:"edit-site-global-styles-preview__iframe",style:{height:152*w},onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),tabIndex:-1},(0,l.createElement)(we.__unstableEditorStyles,{styles:C}),(0,l.createElement)(v.__unstableMotion.div,{style:{height:152*w,width:"100%",background:null!=d?d:u,cursor:n?"pointer":void 0},initial:"start",animate:(y||t)&&!p&&e?"hover":"start"},(0,l.createElement)(v.__unstableMotion.div,{variants:ba,style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(v.__experimentalHStack,{spacing:10*w,justify:"center",style:{height:"100%",overflow:"hidden"}},(0,l.createElement)(v.__unstableMotion.div,{style:{fontFamily:o,fontSize:65*w,color:c,fontWeight:i},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:.3,type:"tween"}},"Aa"),(0,l.createElement)(v.__experimentalVStack,{spacing:4*w},k.map((({slug:e,color:t},n)=>(0,l.createElement)(v.__unstableMotion.div,{key:e,style:{height:32*w,width:32*w,background:t,borderRadius:32*w/2},animate:{scale:1,opacity:1},initial:{scale:.1,opacity:0},transition:{delay:1===n?.2:.1}})))))),(0,l.createElement)(v.__unstableMotion.div,{variants:n&&wa,style:{height:"100%",width:"100%",position:"absolute",top:0,overflow:"hidden",filter:"blur(60px)",opacity:.1}},(0,l.createElement)(v.__experimentalHStack,{spacing:0,justify:"flex-start",style:{height:"100%",overflow:"hidden"}},S.slice(0,4).map((({color:e},t)=>(0,l.createElement)("div",{key:t,style:{height:"100%",background:e,flexGrow:1}}))))),(0,l.createElement)(v.__unstableMotion.div,{variants:Sa,style:{height:"100%",width:"100%",overflow:"hidden",position:"absolute",top:0}},(0,l.createElement)(v.__experimentalVStack,{spacing:3*w,justify:"center",style:{height:"100%",overflow:"hidden",padding:10*w,boxSizing:"border-box"}},e&&(0,l.createElement)("div",{style:{fontSize:40*w,fontFamily:o,color:c,fontWeight:i,lineHeight:"1em",textAlign:"center"}},e))))))};const{GlobalStylesContext:Ca,areGlobalStyleConfigsEqual:xa}=nt(we.privateApis);function Ta({variation:e}){const[t,n]=(0,l.useState)(!1),{base:a,user:r,setUserConfig:o}=(0,l.useContext)(Ca),i=(0,l.useMemo)((()=>{var t,n;return{user:{settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(n=e.styles)&&void 0!==n?n:{}},base:a,merged:ga(a,e),setUserConfig:()=>{}}}),[e,a]),s=()=>{o((()=>({settings:e.settings,styles:e.styles})))},c=(0,l.useMemo)((()=>xa(r,e)),[r,e]);let u=e?.title;return e?.description&&(u=(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),e?.title,e?.description)),(0,l.createElement)(Ca.Provider,{value:i},(0,l.createElement)("div",{className:y()("edit-site-global-styles-variations_item",{"is-active":c}),role:"button",onClick:s,onKeyDown:e=>{e.keyCode===la.ENTER&&(e.preventDefault(),s())},tabIndex:"0","aria-label":u,"aria-current":c,onFocus:()=>n(!0),onBlur:()=>n(!1)},(0,l.createElement)("div",{className:"edit-site-global-styles-variations_item-preview"},(0,l.createElement)(ka,{label:e?.title,isFocused:t,withHoverView:!0}))))}function Na(){const e=(0,d.useSelect)((e=>e(_.store).__experimentalGetCurrentThemeGlobalStylesVariations()),[]),t=(0,l.useMemo)((()=>[{title:(0,E.__)("Default"),settings:{},styles:{}},...(null!=e?e:[]).map((e=>{var t,n;return{...e,settings:null!==(t=e.settings)&&void 0!==t?t:{},styles:null!==(n=e.styles)&&void 0!==n?n:{}}}))]),[e]);return(0,l.createElement)(v.__experimentalGrid,{columns:2,className:"edit-site-global-styles-style-variations-container"},t.map(((e,t)=>(0,l.createElement)(Ta,{key:t,variation:e}))))}const Ma=20;function Pa({variation:e="default",direction:t,resizeWidthBy:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("button",{className:`resizable-editor__drag-handle is-${t} is-variation-${e}`,"aria-label":(0,E.__)("Drag to resize"),"aria-describedby":`resizable-editor__resize-help-${t}`,onKeyDown:function(e){const{keyCode:a}=e;"left"===t&&a===la.LEFT||"right"===t&&a===la.RIGHT?n(Ma):("left"===t&&a===la.RIGHT||"right"===t&&a===la.LEFT)&&n(-Ma)}}),(0,l.createElement)(v.VisuallyHidden,{id:`resizable-editor__resize-help-${t}`},(0,E.__)("Use left and right arrow keys to resize the canvas.")))}const Ia={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0};var Ba=function({enableResizing:e,height:t,children:n}){const[a,r]=(0,l.useState)("100%"),o=(0,l.useRef)(),i=(0,l.useCallback)((e=>{o.current&&r(o.current.offsetWidth+e)}),[]);return(0,l.createElement)(v.ResizableBox,{ref:e=>{o.current=e?.resizable},size:{width:e?a:"100%",height:e&&t?t:"100%"},onResizeStop:(e,t,n)=>{r(n.style.width)},minWidth:300,maxWidth:"100%",maxHeight:"100%",enable:{right:e,left:e},showHandle:e,resizeRatio:2,handleComponent:{left:(0,l.createElement)(Pa,{direction:"left",resizeWidthBy:i}),right:(0,l.createElement)(Pa,{direction:"right",resizeWidthBy:i})},handleClasses:void 0,handleStyles:{left:Ia,right:Ia}},n)};function Da(e){switch(e){case"style-book":return(0,E.__)("Style Book");case"global-styles-revisions":return(0,E.__)("Global styles revisions");default:return""}}const{createPrivateSlotFill:Ra}=nt(v.privateApis),{privateKey:La,Slot:Aa,Fill:Fa}=Ra("EditSiteEditorCanvasContainerSlot");function Va({children:e,closeButtonLabel:t,onClose:n,enableResizing:a=!1}){const{editorCanvasContainerView:r,showListViewByDefault:o}=(0,d.useSelect)((e=>({editorCanvasContainerView:nt(e(Gn)).getEditorCanvasContainerView(),showListViewByDefault:e(x.store).get("core/edit-site","showListViewByDefault")})),[]),[i,s]=(0,l.useState)(!1),{setEditorCanvasContainerView:c}=nt((0,d.useDispatch)(Gn)),u=(0,re.useFocusOnMount)("firstElement"),m=(0,re.useFocusReturn)(),p=(0,l.useMemo)((()=>Da(r)),[r]),{setIsListViewOpened:_}=(0,d.useDispatch)(Gn);function g(){"function"==typeof n&&n(),_(o),c(void 0),s(!0)}const h=Array.isArray(e)?l.Children.map(e,((e,t)=>0===t?(0,l.cloneElement)(e,{ref:m}):e)):(0,l.cloneElement)(e,{ref:m});if(i)return null;const y=n||t;return(0,l.createElement)(Fa,null,(0,l.createElement)(Ba,{enableResizing:a},(0,l.createElement)("section",{className:"edit-site-editor-canvas-container",ref:y?u:null,onKeyDown:function(e){e.keyCode!==la.ESCAPE||e.defaultPrevented||(e.preventDefault(),g())},"aria-label":p},y&&(0,l.createElement)(v.Button,{className:"edit-site-editor-canvas-container__close-button",icon:C,label:t||(0,E.__)("Close"),onClick:g,showTooltip:!1}),h)))}Va.Slot=Aa;var za=Va;const{ExperimentalBlockEditorProvider:Oa,useGlobalStyle:Ha}=nt(we.privateApis);function Ga(){return[{name:"core/heading",title:(0,E.__)("Headings"),category:"text",blocks:[(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:1}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:2}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:3}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:4}),(0,c.createBlock)("core/heading",{content:(0,E.__)("Code Is Poetry"),level:5})]},...(0,c.getBlockTypes)().filter((e=>{const{name:t,example:n,supports:a}=e;return"core/heading"!==t&&!!n&&!1!==a.inserter})).map((e=>({name:e.name,title:e.title,category:e.category,blocks:(0,c.getBlockFromExample)(e.name,e.example)})))]}const Ua=({category:e,examples:t,isSelected:n,onClick:a,onSelect:r,settings:o,sizes:i,title:s})=>{const[c,u]=(0,l.useState)(!1),d={role:"button",onFocus:()=>u(!0),onBlur:()=>u(!1),onKeyDown:e=>{if(e.defaultPrevented)return;const{keyCode:t}=e;!a||t!==la.ENTER&&t!==la.SPACE||(e.preventDefault(),a(e))},onClick:e=>{e.defaultPrevented||a&&(e.preventDefault(),a(e))},readonly:!0},m=a?"body { cursor: pointer; } body * { pointer-events: none; }":"";return(0,l.createElement)(we.__unstableIframe,{className:y()("edit-site-style-book__iframe",{"is-focused":c&&!!a,"is-button":!!a}),name:"style-book-canvas",tabIndex:0,...a?d:{}},(0,l.createElement)(we.__unstableEditorStyles,{styles:o.styles}),(0,l.createElement)("style",null,'.is-root-container { display: flow-root; }\n\t\t\t\t\t\tbody { position: relative; padding: 32px !important; }\n\t.edit-site-style-book__examples {\n\t\tmax-width: 900px;\n\t\tmargin: 0 auto;\n\t}\n\n\t.edit-site-style-book__example {\n\t\tborder-radius: 2px;\n\t\tcursor: pointer;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tgap: 40px;\n\t\tmargin-bottom: 40px;\n\t\tpadding: 16px;\n\t\twidth: 100%;\n\t\tbox-sizing: border-box;\n\t}\n\n\t.edit-site-style-book__example.is-selected {\n\t\tbox-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t}\n\n\t.edit-site-style-book__example:focus:not(:disabled) {\n\t\tbox-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-components-color-accent, var(--wp-admin-theme-color, #007cba));\n\t\toutline: 3px solid transparent;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example {\n\t\tflex-direction: row;\n\t}\n\n\t.edit-site-style-book__example-title {\n\t\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;\n\t\tfont-size: 11px;\n\t\tfont-weight: 500;\n\t\tline-height: normal;\n\t\tmargin: 0;\n\t\ttext-align: left;\n\t\ttext-transform: uppercase;\n\t}\n\n\t.edit-site-style-book__examples.is-wide .edit-site-style-book__example-title {\n\t\ttext-align: right;\n\t\twidth: 120px;\n\t}\n\n\t.edit-site-style-book__example-preview {\n\t\twidth: 100%;\n\t}\n\n\t.edit-site-style-book__example-preview .block-editor-block-list__insertion-point,\n\t.edit-site-style-book__example-preview .block-list-appender {\n\t\tdisplay: none;\n\t}\n\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:first-child {\n\t\tmargin-top: 0;\n\t}\n\t.edit-site-style-book__example-preview .is-root-container > .wp-block:last-child {\n\t\tmargin-bottom: 0;\n\t}\n'+m),(0,l.createElement)($a,{className:y()("edit-site-style-book__examples",{"is-wide":i.width>600}),examples:t,category:e,label:s?(0,E.sprintf)((0,E.__)("Examples of blocks in the %s category"),s):(0,E.__)("Examples of blocks"),isSelected:n,onSelect:r}))},$a=(0,l.memo)((({className:e,examples:t,category:n,label:a,isSelected:r,onSelect:o})=>{const i=(0,v.__unstableUseCompositeState)({orientation:"vertical"});return(0,l.createElement)(v.__unstableComposite,{...i,className:e,"aria-label":a},t.filter((e=>!n||e.category===n)).map((e=>(0,l.createElement)(ja,{key:e.name,id:`example-${e.name}`,composite:i,title:e.title,blocks:e.blocks,isSelected:r(e.name),onClick:()=>{o?.(e.name)}}))))})),ja=({composite:e,id:t,title:n,blocks:a,isSelected:r,onClick:o})=>{const i=(0,d.useSelect)((e=>e(we.store).getSettings()),[]),s=(0,l.useMemo)((()=>({...i,__unstableIsPreviewMode:!0})),[i]),c=(0,l.useMemo)((()=>Array.isArray(a)?a:[a]),[a]);return(0,l.createElement)(v.__unstableCompositeItem,{...e,className:y()("edit-site-style-book__example",{"is-selected":r}),id:t,"aria-label":(0,E.sprintf)((0,E.__)("Open %s styles in Styles panel"),n),onClick:o,role:"button",as:"div"},(0,l.createElement)("span",{className:"edit-site-style-book__example-title"},n),(0,l.createElement)("div",{className:"edit-site-style-book__example-preview","aria-hidden":!0},(0,l.createElement)(v.Disabled,{className:"edit-site-style-book__example-preview__content"},(0,l.createElement)(Oa,{value:c,settings:s},(0,l.createElement)(we.BlockList,{renderAppender:!1})))))};var Wa=function({enableResizing:e=!0,isSelected:t,onClick:n,onSelect:a,showCloseButton:r=!0,showTabs:o=!0}){const[i,s]=(0,re.useResizeObserver)(),[u]=Ha("color.text"),[m]=Ha("color.background"),p=(0,l.useMemo)(Ga,[]),_=(0,l.useMemo)((()=>(0,c.getCategories)().filter((e=>p.some((t=>t.category===e.slug)))).map((e=>({name:e.slug,title:e.title,icon:e.icon})))),[p]),g=(0,d.useSelect)((e=>e(we.store).getSettings()),[]),h=(0,l.useMemo)((()=>({...g,__unstableIsPreviewMode:!0})),[g]);return(0,l.createElement)(za,{enableResizing:e,closeButtonLabel:r?(0,E.__)("Close Style Book"):null},(0,l.createElement)("div",{className:y()("edit-site-style-book",{"is-wide":s.width>600,"is-button":!!n}),style:{color:u,background:m}},i,o?(0,l.createElement)(v.TabPanel,{className:"edit-site-style-book__tab-panel",tabs:_},(e=>(0,l.createElement)(Ua,{category:e.name,examples:p,isSelected:t,onSelect:a,settings:h,sizes:s,title:e.title}))):(0,l.createElement)(Ua,{examples:p,isSelected:t,onClick:n,onSelect:a,settings:h,sizes:s})))};const Za={per_page:-1,_fields:"id,name,avatar_urls",context:"view",capabilities:["edit_theme_options"]},qa=[],{GlobalStylesContext:Ya}=nt(we.privateApis);function Ka(){const{user:e}=(0,l.useContext)(Ya),{authors:t,currentUser:n,isDirty:a,revisions:r,isLoadingGlobalStylesRevisions:o}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,getCurrentUser:n,getUsers:a,getCurrentThemeGlobalStylesRevisions:r,isResolving:o}=e(_.store),i=t(),s=n(),l=i.length>0,c=r()||qa;return{authors:a(Za)||qa,currentUser:s,isDirty:l,revisions:c,isLoadingGlobalStylesRevisions:o("getCurrentThemeGlobalStylesRevisions")}}),[]);return(0,l.useMemo)((()=>{let i=[];if(!t.length||o)return{revisions:i,hasUnsavedChanges:a,isLoading:!0};if(i=r.map((e=>({...e,author:t.find((t=>t.id===e.author))}))),i.length&&("unsaved"!==i[0].id&&(i[0].isLatest=!0),a&&e&&Object.keys(e).length>0&&n)){const t={id:"unsaved",styles:e?.styles,settings:e?.settings,author:{name:n?.name,avatar_urls:n?.avatar_urls},modified:new Date};i.unshift(t)}return{revisions:i,hasUnsavedChanges:a,isLoading:!1}}),[a,r,n,t,e,o])}const Xa=()=>{};function Qa(e){const{openGeneralSidebar:t}=(0,d.useDispatch)(Gn),{setCanvasMode:n}=nt((0,d.useDispatch)(Gn)),{createNotice:a}=(0,d.useDispatch)(Se.store),{set:r}=(0,d.useDispatch)(x.store),{get:o}=(0,d.useSelect)(x.store),i=(0,l.useCallback)((()=>{o(Gn.name,"distractionFree")&&(r(Gn.name,"distractionFree",!1),a("info",(0,E.__)("Distraction free mode turned off"),{isDismissible:!0,type:"snackbar"}))}),[a,r,o]);return(0,d.useSelect)((e=>!!e(_.store).__experimentalGetCurrentThemeGlobalStylesVariations()?.length),[])?(0,l.createElement)(v.__experimentalNavigatorButton,{...e,as:na,path:"/wp_global_styles"}):(0,l.createElement)(na,{...e,onClick:()=>{i(),n("edit"),t("edit-site/global-styles")}})}function Ja(){const{storedSettings:e}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Gn));return{storedSettings:t(!1)}}),[]);return(0,l.createElement)(we.BlockEditorProvider,{settings:e,onChange:Xa,onInput:Xa},(0,l.createElement)(Na,null))}function er({modifiedDateTime:e,onClickRevisions:t}){return(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-sidebar-navigation-screen-global-styles__footer"},(0,l.createElement)(na,{className:"edit-site-sidebar-navigation-screen-global-styles__revisions",label:(0,E.__)("Revisions"),onClick:t},(0,l.createElement)(v.__experimentalVStack,{as:"span",alignment:"center",spacing:5,direction:"row",justify:"space-between"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-global-styles__revisions__label"},(0,E.__)("Last modified")),(0,l.createElement)("span",null,(0,l.createElement)("time",{dateTime:e},(0,sa.humanTimeDiff)(e))),(0,l.createElement)(v.Icon,{icon:aa,style:{fill:"currentcolor"}}))))}function tr(){const{revisions:e,isLoading:t}=Ka(),{openGeneralSidebar:n,setIsListViewOpened:a}=(0,d.useDispatch)(Gn),r=(0,re.useViewportMatch)("medium","<"),{setCanvasMode:o,setEditorCanvasContainerView:i}=nt((0,d.useDispatch)(Gn)),{createNotice:s}=(0,d.useDispatch)(Se.store),{set:c}=(0,d.useDispatch)(x.store),{get:u}=(0,d.useSelect)(x.store),{isViewMode:m,isStyleBookOpened:p,revisionsCount:g}=(0,d.useSelect)((e=>{var t;const{getCanvasMode:n,getEditorCanvasContainerView:a}=nt(e(Gn)),{getEntityRecord:r,__experimentalGetCurrentGlobalStylesId:o}=e(_.store),i=o(),s=i?r("root","globalStyles",i):void 0;return{isViewMode:"view"===n(),isStyleBookOpened:"style-book"===a(),revisionsCount:null!==(t=s?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}}),[]),h=(0,l.useCallback)((()=>{u(Gn.name,"distractionFree")&&(c(Gn.name,"distractionFree",!1),s("info",(0,E.__)("Distraction free mode turned off"),{isDismissible:!0,type:"snackbar"}))}),[s,c,u]),y=(0,l.useCallback)((async()=>(h(),Promise.all([o("edit"),n("edit-site/global-styles")]))),[o,n,h]),v=(0,l.useCallback)((async()=>{await y(),i("style-book"),a(!1)}),[y,i,a]),f=(0,l.useCallback)((async()=>{await y(),i("global-styles-revisions")}),[y,i]),b=g>=2,w=e?.[0]?.modified,S=b&&!t&&w;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Jn,{title:(0,E.__)("Styles"),description:(0,E.__)("Choose a different style combination for the theme styles."),content:(0,l.createElement)(Ja,null),footer:S&&(0,l.createElement)(er,{modifiedDateTime:w,onClickRevisions:f}),actions:(0,l.createElement)(l.Fragment,null,!r&&(0,l.createElement)(Xn,{icon:ra,label:(0,E.__)("Style Book"),onClick:()=>i(p?void 0:"style-book"),isPressed:p}),(0,l.createElement)(Xn,{icon:ia,label:(0,E.__)("Edit styles"),onClick:async()=>await y()}))}),p&&!r&&m&&(0,l.createElement)(Wa,{enableResizing:!1,isSelected:()=>!1,onClick:v,onSelect:v,showCloseButton:!1,showTabs:!1}))}const nr="isTemplatePartMoveHintVisible";function ar(){const e=(0,d.useSelect)((e=>{var t;return null===(t=e(x.store).get("core",nr))||void 0===t||t}),[]),{set:t}=(0,d.useDispatch)(x.store);return e?(0,l.createElement)(v.Notice,{politeness:"polite",className:"edit-site-sidebar__notice",onRemove:()=>{t("core",nr,!1)}},(0,E.__)('Looking for template parts? Find them in "Patterns".')):null}function rr(){const{location:e}=(0,v.__experimentalUseNavigator)(),{setEditorCanvasContainerView:t}=nt((0,d.useDispatch)(Gn));return(0,l.useEffect)((()=>{"/"===e?.path&&t(void 0)}),[t,e?.path]),(0,l.createElement)(Jn,{isRoot:!0,title:(0,E.__)("Design"),description:(0,E.__)("Customize the appearance of your website using the block editor."),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalItemGroup,null,(0,l.createElement)(v.__experimentalNavigatorButton,{as:na,path:"/navigation",withChevron:!0,icon:Wn},(0,E.__)("Navigation")),(0,l.createElement)(Qa,{withChevron:!0,icon:Zn},(0,E.__)("Styles")),(0,l.createElement)(v.__experimentalNavigatorButton,{as:na,path:"/page",withChevron:!0,icon:qn},(0,E.__)("Pages")),(0,l.createElement)(v.__experimentalNavigatorButton,{as:na,path:"/wp_template",withChevron:!0,icon:Yn},(0,E.__)("Templates")),(0,l.createElement)(v.__experimentalNavigatorButton,{as:na,path:"/patterns",withChevron:!0,icon:Kn},(0,E.__)("Patterns"))),(0,l.createElement)(ar,null))})}var or=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z"}));var ir=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M17.8 2l-.9.3c-.1 0-3.6 1-5.2 2.1C10 5.5 9.3 6.5 8.9 7.1c-.6.9-1.7 4.7-1.7 6.3l-.9 2.3c-.2.4 0 .8.4 1 .1 0 .2.1.3.1.3 0 .6-.2.7-.5l.6-1.5c.3 0 .7-.1 1.2-.2.7-.1 1.4-.3 2.2-.5.8-.2 1.6-.5 2.4-.8.7-.3 1.4-.7 1.9-1.2s.8-1.2 1-1.9c.2-.7.3-1.6.4-2.4.1-.8.1-1.7.2-2.5 0-.8.1-1.5.2-2.1V2zm-1.9 5.6c-.1.8-.2 1.5-.3 2.1-.2.6-.4 1-.6 1.3-.3.3-.8.6-1.4.9-.7.3-1.4.5-2.2.8-.6.2-1.3.3-1.8.4L15 7.5c.3-.3.6-.7 1-1.1 0 .4 0 .8-.1 1.2zM6 20h8v-1.5H6V20z"}));var sr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z"}));var lr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z"}));var cr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"}));var ur=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm.5 12c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v10zm-11-7.6h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-.9 3.5H6.3l1.2-1.7v1.7zm5.6-3.2c-.4-.2-.8-.4-1.2-.4-.5 0-.9.1-1.2.4-.4.2-.6.6-.8 1-.2.4-.3.9-.3 1.5s.1 1.1.3 1.6c.2.4.5.8.8 1 .4.2.8.4 1.2.4.5 0 .9-.1 1.2-.4.4-.2.6-.6.8-1 .2-.4.3-1 .3-1.6 0-.6-.1-1.1-.3-1.5-.1-.5-.4-.8-.8-1zm0 3.6c-.1.3-.3.5-.5.7-.2.1-.4.2-.7.2-.3 0-.5-.1-.7-.2-.2-.1-.4-.4-.5-.7-.1-.3-.2-.7-.2-1.2 0-.7.1-1.2.4-1.5.3-.3.6-.5 1-.5s.7.2 1 .5c.3.3.4.8.4 1.5-.1.5-.1.9-.2 1.2zm5-3.9h-.7l-3.1 4.3h2.8V15h1v-1.3h.7v-.8h-.7V9.4zm-1 3.5H16l1.2-1.7v1.7z"}));var dr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M4 4v1.5h16V4H4zm8 8.5h8V11h-8v1.5zM4 20h16v-1.5H4V20zm4-8c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2z"}));var mr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z",fillRule:"evenodd",clipRule:"evenodd"}));var pr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"}));var _r=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M8.95 11.25H4v1.5h4.95v4.5H13V18c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2v-3c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75h-2.55v-7.5H13V9c0 1.1.9 2 2 2h3c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3c-1.1 0-2 .9-2 2v.75H8.95v4.5ZM14.5 15v3c0 .3.2.5.5.5h3c.3 0 .5-.2.5-.5v-3c0-.3-.2-.5-.5-.5h-3c-.3 0-.5.2-.5.5Zm0-6V6c0-.3.2-.5.5-.5h3c.3 0 .5.2.5.5v3c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5Z",clipRule:"evenodd"}));var gr=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.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-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"}));var hr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M20.1 11.2l-6.7-6.7c-.1-.1-.3-.2-.5-.2H5c-.4-.1-.8.3-.8.7v7.8c0 .2.1.4.2.5l6.7 6.7c.2.2.5.4.7.5s.6.2.9.2c.3 0 .6-.1.9-.2.3-.1.5-.3.8-.5l5.6-5.6c.4-.4.7-1 .7-1.6.1-.6-.2-1.2-.6-1.6zM19 13.4L13.4 19c-.1.1-.2.1-.3.2-.2.1-.4.1-.6 0-.1 0-.2-.1-.3-.2l-6.5-6.5V5.8h6.8l6.5 6.5c.2.2.2.4.2.6 0 .1 0 .3-.2.5zM9 8c-.6 0-1 .4-1 1s.4 1 1 1 1-.4 1-1-.4-1-1-1z"}));var yr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m7 6.5 4 2.5-4 2.5z"}),(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"m5 3c-1.10457 0-2 .89543-2 2v14c0 1.1046.89543 2 2 2h14c1.1046 0 2-.8954 2-2v-14c0-1.10457-.8954-2-2-2zm14 1.5h-14c-.27614 0-.5.22386-.5.5v10.7072l3.62953-2.6465c.25108-.1831.58905-.1924.84981-.0234l2.92666 1.8969 3.5712-3.4719c.2911-.2831.7545-.2831 1.0456 0l2.9772 2.8945v-9.3568c0-.27614-.2239-.5-.5-.5zm-14.5 14.5v-1.4364l4.09643-2.987 2.99567 1.9417c.2936.1903.6798.1523.9307-.0917l3.4772-3.3806 3.4772 3.3806.0228-.0234v2.5968c0 .2761-.2239.5-.5.5h-14c-.27614 0-.5-.2239-.5-.5z"}));var vr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}));function Er(e=""){const[t,n]=(0,l.useState)(e),[a,r]=(0,l.useState)(e),o=(0,re.useDebounce)(r,250);return(0,l.useEffect)((()=>{a!==t&&o(t)}),[a,t]),[t,n,a]}var fr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m7.3 9.7 1.4 1.4c.2-.2.3-.3.4-.5 0 0 0-.1.1-.1.3-.5.4-1.1.3-1.6L12 7 9 4 7.2 6.5c-.6-.1-1.1 0-1.6.3 0 0-.1 0-.1.1-.3.1-.4.2-.6.4l1.4 1.4L4 11v1h1l2.3-2.3zM4 20h9v-1.5H4V20zm0-5.5V16h16v-1.5H4z"}));const br=(e,t)=>(e||[]).map((e=>({...e,name:(0,At.decodeEntities)((0,be.get)(e,t))}))),wr=()=>(0,d.useSelect)((e=>e(_.store).getEntityRecords("postType","wp_template",{per_page:-1})),[]),Sr=()=>(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplateTypes()),[]),kr=()=>{const e=(0,d.useSelect)((e=>e(_.store).getPostTypes({per_page:-1})),[]);return(0,l.useMemo)((()=>{const t=["attachment"];return e?.filter((({viewable:e,slug:n})=>e&&!t.includes(n)))}),[e])};function Cr(e){const t=(0,l.useMemo)((()=>e?.reduce(((e,{labels:t})=>{const n=t.singular_name.toLowerCase();return e[n]=(e[n]||0)+1,e}),{})));return(0,l.useCallback)((({labels:e,slug:n})=>{const a=e.singular_name.toLowerCase();return t[a]>1&&a!==n}),[t])}function xr(){const e=kr(),t=(0,l.useMemo)((()=>e?.filter((e=>e.has_archive))),[e]),n=wr(),a=Cr(t);return(0,l.useMemo)((()=>t?.filter((e=>!(n||[]).some((t=>t.slug==="archive-"+e.slug)))).map((e=>{let t;return t=a(e)?(0,E.sprintf)((0,E.__)("Archive: %1$s (%2$s)"),e.labels.singular_name,e.slug):(0,E.sprintf)((0,E.__)("Archive: %s"),e.labels.singular_name),{slug:"archive-"+e.slug,description:(0,E.sprintf)((0,E.__)("Displays an archive with the latest posts of type: %s."),e.labels.singular_name),title:t,icon:e.icon?.startsWith("dashicons-")?e.icon.slice(10):lr,templatePrefix:"archive"}}))||[]),[t,n,a])}const Tr=e=>{const t=kr(),n=wr(),a=Sr(),r=Cr(t),o=(0,l.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let n=t;return"page"!==t&&(n=`single-${n}`),e[t]=n,e}),{})),[t]),i=Br("postType",o),s=(n||[]).map((({slug:e})=>e)),c=(t||[]).reduce(((t,n)=>{const{slug:l,labels:c,icon:u}=n,d=o[l],m=a?.find((({slug:e})=>e===d)),p=s?.includes(d),_=r(n);let g=(0,E.sprintf)((0,E.__)("Single item: %s"),c.singular_name);_&&(g=(0,E.sprintf)((0,E.__)("Single item: %1$s (%2$s)"),c.singular_name,l));const h=m?{...m,templatePrefix:o[l]}:{slug:d,title:g,description:(0,E.sprintf)((0,E.__)("Displays a single item: %s."),c.singular_name),icon:u?.startsWith("dashicons-")?u.slice(10):fr,templatePrefix:o[l]},y=i?.[l]?.hasEntities;return y&&(h.onClick=t=>{e({type:"postType",slug:l,config:{recordNamePath:"title.rendered",queryArgs:({search:e})=>({_fields:"id,title,slug,link",orderBy:e?"relevance":"modified",exclude:i[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${o[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:o[l]}}},labels:c,hasGeneralTemplate:p,template:t})}),p&&!y||t.push(h),t}),[]),u=(0,l.useMemo)((()=>c.reduce(((e,t)=>{const{slug:n}=t;let a="postTypesMenuItems";return"page"===n&&(a="defaultPostTypesMenuItems"),e[a].push(t),e}),{defaultPostTypesMenuItems:[],postTypesMenuItems:[]})),[c]);return u},Nr=e=>{const t=(()=>{const e=(0,d.useSelect)((e=>e(_.store).getTaxonomies({per_page:-1})),[]);return(0,l.useMemo)((()=>e?.filter((({visibility:e})=>e?.publicly_queryable))),[e])})(),n=wr(),a=Sr(),r=(0,l.useMemo)((()=>t?.reduce(((e,{slug:t})=>{let n=t;return["category","post_tag"].includes(t)||(n=`taxonomy-${n}`),"post_tag"===t&&(n="tag"),e[t]=n,e}),{})),[t]),o=t?.reduce(((e,{labels:t})=>{const n=t.singular_name.toLowerCase();return e[n]=(e[n]||0)+1,e}),{}),i=Br("taxonomy",r),s=(n||[]).map((({slug:e})=>e)),c=(t||[]).reduce(((t,n)=>{const{slug:l,labels:c}=n,u=r[l],d=a?.find((({slug:e})=>e===u)),m=s?.includes(u),p=((e,t)=>{if(["category","post_tag"].includes(t))return!1;const n=e.singular_name.toLowerCase();return o[n]>1&&n!==t})(c,l);let _=c.singular_name;p&&(_=(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),c.singular_name,l));const g=d?{...d,templatePrefix:r[l]}:{slug:u,title:_,description:(0,E.sprintf)((0,E.__)("Displays taxonomy: %s."),c.singular_name),icon:_r,templatePrefix:r[l]},h=i?.[l]?.hasEntities;return h&&(g.onClick=t=>{e({type:"taxonomy",slug:l,config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"count",exclude:i[l].existingEntitiesIds}),getSpecificTemplate:e=>{const t=`${r[l]}-${e.slug}`;return{title:t,slug:t,templatePrefix:r[l]}}},labels:c,hasGeneralTemplate:m,template:t})}),m&&!h||t.push(g),t}),[]);return(0,l.useMemo)((()=>c.reduce(((e,t)=>{const{slug:n}=t;let a="taxonomiesMenuItems";return["category","tag"].includes(n)&&(a="defaultTaxonomiesMenuItems"),e[a].push(t),e}),{defaultTaxonomiesMenuItems:[],taxonomiesMenuItems:[]})),[c])},Mr={user:"author"},Pr={user:{who:"authors"}};const Ir=(e,t,n={})=>{const a=(e=>{const t=wr();return(0,l.useMemo)((()=>Object.entries(e||{}).reduce(((e,[n,a])=>{const r=(t||[]).reduce(((e,t)=>{const n=`${a}-`;return t.slug.startsWith(n)&&e.push(t.slug.substring(n.length)),e}),[]);return r.length&&(e[n]=r),e}),{})),[e,t])})(t);return(0,d.useSelect)((t=>Object.entries(a||{}).reduce(((a,[r,o])=>{const i=t(_.store).getEntityRecords(e,r,{_fields:"id",context:"view",slug:o,...n[r]});return i?.length&&(a[r]=i),a}),{})),[a])},Br=(e,t,n={})=>{const a=Ir(e,t,n);return(0,d.useSelect)((r=>Object.keys(t||{}).reduce(((t,o)=>{const i=a?.[o]?.map((({id:e})=>e))||[];return t[o]={hasEntities:!!r(_.store).getEntityRecords(e,o,{per_page:1,_fields:"id",context:"view",exclude:i,...n[o]})?.length,existingEntitiesIds:i},t}),{})),[t,a])},Dr=[];function Rr({suggestion:e,search:t,onSelect:n,entityForSuggestions:a,composite:r}){const o="edit-site-custom-template-modal__suggestions_list__list-item";return(0,l.createElement)(v.__unstableCompositeItem,{role:"option",as:v.Button,...r,className:o,onClick:()=>n(a.config.getSpecificTemplate(e))},(0,l.createElement)(v.__experimentalText,{size:"body",lineHeight:1.53846153846,weight:500,className:`${o}__title`},(0,l.createElement)(v.TextHighlight,{text:(0,At.decodeEntities)(e.name),highlight:t})),e.link&&(0,l.createElement)(v.__experimentalText,{size:"body",lineHeight:1.53846153846,className:`${o}__info`},e.link))}function Lr({entityForSuggestions:e,onSelect:t}){const n=(0,v.__unstableUseCompositeState)({orientation:"vertical"}),[a,r,o]=Er(),i=function(e,t){const{config:n}=e,a=(0,l.useMemo)((()=>({order:"asc",context:"view",search:t,per_page:t?20:10,...n.queryArgs(t)})),[t,n]),{records:r,hasResolved:o}=(0,_.useEntityRecords)(e.type,e.slug,a),[i,s]=(0,l.useState)(Dr);return(0,l.useEffect)((()=>{if(!o)return;let e=Dr;r?.length&&(e=r,n.recordNamePath&&(e=br(e,n.recordNamePath))),s(e)}),[r,o]),i}(e,o),{labels:s}=e,[c,u]=(0,l.useState)(!1);return!c&&i?.length>9&&u(!0),(0,l.createElement)(l.Fragment,null,c&&(0,l.createElement)(v.SearchControl,{__nextHasNoMarginBottom:!0,onChange:r,value:a,label:s.search_items,placeholder:s.search_items}),!!i?.length&&(0,l.createElement)(v.__unstableComposite,{...n,role:"listbox",className:"edit-site-custom-template-modal__suggestions_list","aria-label":(0,E.__)("Suggestions list")},i.map((a=>(0,l.createElement)(Rr,{key:a.slug,suggestion:a,search:o,onSelect:t,entityForSuggestions:e,composite:n})))),o&&!i?.length&&(0,l.createElement)(v.__experimentalText,{as:"p",className:"edit-site-custom-template-modal__no-results"},s.not_found))}var Ar=function({onSelect:e,entityForSuggestions:t}){const[n,a]=(0,l.useState)(t.hasGeneralTemplate);return(0,l.createElement)(v.__experimentalVStack,{spacing:4,className:"edit-site-custom-template-modal__contents-wrapper",alignment:"left"},!n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalText,{as:"p"},(0,E.__)("Select whether to create a single template for all items or a specific one.")),(0,l.createElement)(v.Flex,{className:"edit-site-custom-template-modal__contents",gap:"4",align:"initial"},(0,l.createElement)(v.FlexItem,{isBlock:!0,as:v.Button,onClick:()=>{const{slug:n,title:a,description:r,templatePrefix:o}=t.template;e({slug:n,title:a,description:r,templatePrefix:o})}},(0,l.createElement)(v.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846},t.labels.all_items),(0,l.createElement)(v.__experimentalText,{as:"span",lineHeight:1.53846153846},(0,E.__)("For all items"))),(0,l.createElement)(v.FlexItem,{isBlock:!0,as:v.Button,onClick:()=>{a(!0)}},(0,l.createElement)(v.__experimentalText,{as:"span",weight:500,lineHeight:1.53846153846},t.labels.singular_name),(0,l.createElement)(v.__experimentalText,{as:"span",lineHeight:1.53846153846},(0,E.__)("For a specific item"))))),n&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalText,{as:"p"},(0,E.__)("This template will be used only for the specific item chosen.")),(0,l.createElement)(Lr,{entityForSuggestions:t,onSelect:e})))};var Fr=function({onClose:e,createTemplate:t}){const[n,a]=(0,l.useState)(""),r=(0,E.__)("Custom Template"),[o,i]=(0,l.useState)(!1);return(0,l.createElement)("form",{onSubmit:async function(e){if(e.preventDefault(),!o){i(!0);try{await t({slug:"wp-custom-template-"+(0,be.kebabCase)(n||r),title:n||r},!1)}finally{i(!1)}}}},(0,l.createElement)(v.__experimentalVStack,{spacing:6},(0,l.createElement)(v.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:n,onChange:a,placeholder:r,disabled:o,help:(0,E.__)('Describe the template, e.g. "Post with sidebar". A custom template can be manually applied to any post or page.')}),(0,l.createElement)(v.__experimentalHStack,{className:"edit-site-custom-generic-template__modal-actions",justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>{e()}},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit",isBusy:o,"aria-disabled":o},(0,E.__)("Create")))))};function Vr(){const e="edit-site-template-actions-loading-screen-modal";return(0,l.createElement)(v.Modal,{isFullScreen:!0,isDismissible:!1,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,onRequestClose:()=>{},__experimentalHideHeader:!0,className:e},(0,l.createElement)("div",{className:`${e}__content`},(0,l.createElement)(v.Spinner,null)))}const{useHistory:zr}=nt(vt.privateApis),Or=["front-page","home","single","page","index","archive","author","category","date","tag","search","404"],Hr={"front-page":or,home:ir,single:sr,page:qn,archive:lr,search:cr,404:ur,index:dr,category:mr,author:pr,taxonomy:_r,date:gr,tag:hr,attachment:yr};function Gr({title:e,direction:t,className:n,description:a,icon:r,onClick:o,children:i}){return(0,l.createElement)(v.Button,{className:n,onClick:o,label:a,showTooltip:!!a},(0,l.createElement)(v.Flex,{as:"span",spacing:2,align:"center",justify:"center",style:{width:"100%"},direction:t},(0,l.createElement)("div",{className:"edit-site-add-new-template__template-icon"},(0,l.createElement)(v.Icon,{icon:r})),(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-add-new-template__template-name",alignment:"center",spacing:0},(0,l.createElement)(v.__experimentalText,{weight:500,lineHeight:1.53846153846},e),i)))}const Ur={templatesList:1,customTemplate:2,customGenericTemplate:3};function $r({postType:e,toggleProps:t,showIcon:n=!0}){const[a,r]=(0,l.useState)(!1),[o,i]=(0,l.useState)(Ur.templatesList),[s,c]=(0,l.useState)({}),[u,m]=(0,l.useState)(!1),p=zr(),{saveEntityRecord:g}=(0,d.useDispatch)(_.store),{createErrorNotice:h,createSuccessNotice:f}=(0,d.useDispatch)(Se.store),{setTemplate:b}=nt((0,d.useDispatch)(Gn)),{homeUrl:w}=(0,d.useSelect)((e=>{const{getUnstableBase:t}=e(_.store);return{homeUrl:t()?.home}}),[]),S={"front-page":w,date:(0,E.sprintf)((0,E.__)("E.g. %s"),w+"/"+(new Date).getFullYear())};async function k(e,t=!0){if(!u){m(!0);try{const{title:n,description:a,slug:r}=e,o=await g("postType","wp_template",{description:a,slug:r.toString(),status:"publish",title:n,is_wp_suggestion:t},{throwOnError:!0});b(o.id,o.slug),p.push({postId:o.id,postType:o.type,canvas:"edit"}),f((0,E.sprintf)((0,E.__)('"%s" successfully created.'),(0,At.decodeEntities)(o.title?.rendered||n)),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the template.");h(t,{type:"snackbar"})}finally{m(!1)}}}const C=()=>{r(!1),i(Ur.templatesList)},x=function(e,t){const n=wr(),a=Sr(),r=(n||[]).map((({slug:e})=>e)),o=(a||[]).filter((e=>Or.includes(e.slug)&&!r.includes(e.slug))),i=n=>{t?.(),e(n)},s=[...o],{defaultTaxonomiesMenuItems:l,taxonomiesMenuItems:c}=Nr(i),{defaultPostTypesMenuItems:u,postTypesMenuItems:d}=Tr(i),m=function(e){const t=wr(),n=Sr(),a=Br("root",Mr,Pr);let r=n?.find((({slug:e})=>"author"===e));r||(r={description:(0,E.__)("Displays latest posts written by a single author."),slug:"author",title:"Author"});const o=!!t?.find((({slug:e})=>"author"===e));if(a.user?.hasEntities&&(r={...r,templatePrefix:"author"},r.onClick=t=>{e({type:"root",slug:"user",config:{queryArgs:({search:e})=>({_fields:"id,name,slug,link",orderBy:e?"name":"registered_date",exclude:a.user.existingEntitiesIds,who:"authors"}),getSpecificTemplate:e=>{const t=`author-${e.slug}`;return{title:t,slug:t,templatePrefix:"author"}}},labels:{singular_name:(0,E.__)("Author"),search_items:(0,E.__)("Search Authors"),not_found:(0,E.__)("No authors found."),all_items:(0,E.__)("All Authors")},hasGeneralTemplate:o,template:t})}),!o||a.user?.hasEntities)return r}(i);[...l,...u,m].forEach((e=>{if(!e)return;const t=s.findIndex((t=>t.slug===e.slug));t>-1?s[t]=e:s.push(e)})),s?.sort(((e,t)=>Or.indexOf(e.slug)-Or.indexOf(t.slug)));const p=[...s,...xr(),...d,...c];return p}(c,(()=>i(Ur.customTemplate)));if(!x.length)return null;const{as:T=v.Button,...N}=null!=t?t:{};let M=(0,E.__)("Add template");return o===Ur.customTemplate?M=(0,E.sprintf)((0,E.__)("Add template: %s"),s.labels.singular_name):o===Ur.customGenericTemplate&&(M=(0,E.__)("Create custom template")),(0,l.createElement)(l.Fragment,null,u&&(0,l.createElement)(Vr,null),(0,l.createElement)(T,{...N,onClick:()=>r(!0),icon:n?vr:null,label:e.labels.add_new_item},n?null:e.labels.add_new_item),a&&(0,l.createElement)(v.Modal,{title:M,className:y()("edit-site-add-new-template__modal",{"edit-site-add-new-template__modal_template_list":o===Ur.templatesList,"edit-site-custom-template-modal":o===Ur.customTemplate}),onRequestClose:C,overlayClassName:o===Ur.customGenericTemplate?"edit-site-custom-generic-template__modal":void 0},o===Ur.templatesList&&(0,l.createElement)(v.__experimentalGrid,{columns:3,gap:4,align:"flex-start",justify:"center",className:"edit-site-add-new-template__template-list__contents"},(0,l.createElement)(v.Flex,{className:"edit-site-add-new-template__template-list__prompt"},(0,E.__)("Select what the new template should apply to:")),x.map((e=>{const{title:t,slug:n,onClick:a}=e;return(0,l.createElement)(Gr,{key:n,title:t,direction:"column",className:"edit-site-add-new-template__template-button",description:S[n],icon:Hr[n]||Yn,onClick:()=>a?a(e):k(e)})})),(0,l.createElement)(Gr,{title:(0,E.__)("Custom template"),direction:"row",className:"edit-site-add-new-template__custom-template-button",icon:ia,onClick:()=>i(Ur.customGenericTemplate)},(0,l.createElement)(v.__experimentalText,{lineHeight:1.53846153846},(0,E.__)("A custom template can be manually applied to any post or page.")))),o===Ur.customTemplate&&(0,l.createElement)(Ar,{onSelect:k,entityForSuggestions:s}),o===Ur.customGenericTemplate&&(0,l.createElement)(Fr,{onClose:C,createTemplate:k})))}function jr({templateType:e="wp_template",...t}){const n=(0,d.useSelect)((t=>t(_.store).getPostType(e)),[e]);return n&&"wp_template"===e?(0,l.createElement)($r,{...t,postType:n}):null}const Wr=({postType:e,postId:t,...n})=>{const a=St({postType:e,postId:t});return(0,l.createElement)(na,{...a,...n})};function Zr(){const e=(0,re.useViewportMatch)("medium","<"),{records:t,isResolving:n}=(0,_.useEntityRecords)("postType","wp_template",{per_page:-1}),a=t?[...t]:[];a.sort(((e,t)=>e.title.rendered.localeCompare(t.title.rendered)));const r=St({path:"/wp_template/all"}),o=!e;return(0,l.createElement)(Jn,{title:(0,E.__)("Templates"),description:(0,E.__)("Express the layout of your site with templates"),actions:o&&(0,l.createElement)(jr,{templateType:"wp_template",toggleProps:{as:Xn}}),content:(0,l.createElement)(l.Fragment,null,n&&(0,E.__)("Loading templates"),!n&&(0,l.createElement)(v.__experimentalItemGroup,null,!t?.length&&(0,l.createElement)(v.__experimentalItem,null,(0,E.__)("No templates found")),a.map((e=>(0,l.createElement)(Wr,{postType:"wp_template",postId:e.id,key:e.id,withChevron:!0},(0,At.decodeEntities)(e.title?.rendered||e.slug)))))),footer:!e&&(0,l.createElement)(na,{withChevron:!0,...r},(0,E.__)("Manage all templates"))})}function qr(e,t){const{record:n,title:a,description:r,isLoaded:o,icon:i}=(0,d.useSelect)((n=>{const{getEditedPostType:a,getEditedPostId:r}=n(Gn),{getEditedEntityRecord:o,hasFinishedResolution:i}=n(_.store),{__experimentalGetTemplateInfo:s}=n(g.store),l=null!=e?e:a(),c=null!=t?t:r(),u=o("postType",l,c),d=c&&i("getEditedEntityRecord",["postType",l,c]),m=s(u);return{record:u,title:m.title,description:m.description,isLoaded:d,icon:m.icon}}),[e,t]);return{isLoaded:o,icon:i,record:n,getTitle:()=>a?(0,At.decodeEntities)(a):null,getDescription:()=>r?(0,At.decodeEntities)(r):null}}var Yr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"}));var Kr=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 3.3c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8s-4-8.8-8.8-8.8zm6.5 5.5h-2.6C15.4 7.3 14.8 6 14 5c2 .6 3.6 2 4.5 3.8zm.7 3.2c0 .6-.1 1.2-.2 1.8h-2.9c.1-.6.1-1.2.1-1.8s-.1-1.2-.1-1.8H19c.2.6.2 1.2.2 1.8zM12 18.7c-1-.7-1.8-1.9-2.3-3.5h4.6c-.5 1.6-1.3 2.9-2.3 3.5zm-2.6-4.9c-.1-.6-.1-1.1-.1-1.8 0-.6.1-1.2.1-1.8h5.2c.1.6.1 1.1.1 1.8s-.1 1.2-.1 1.8H9.4zM4.8 12c0-.6.1-1.2.2-1.8h2.9c-.1.6-.1 1.2-.1 1.8 0 .6.1 1.2.1 1.8H5c-.2-.6-.2-1.2-.2-1.8zM12 5.3c1 .7 1.8 1.9 2.3 3.5H9.7c.5-1.6 1.3-2.9 2.3-3.5zM10 5c-.8 1-1.4 2.3-1.8 3.8H5.5C6.4 7 8 5.6 10 5zM5.5 15.3h2.6c.4 1.5 1 2.8 1.8 3.7-1.8-.6-3.5-2-4.4-3.7zM14 19c.8-1 1.4-2.2 1.8-3.7h2.6C17.6 17 16 18.4 14 19z"}));const Xr=["wp_template","wp_template_part"];function Qr(e,t){return(0,d.useSelect)((n=>{const{getTheme:a,getPlugin:r,getEntityRecord:o,getMedia:i,getUser:s,getEditedEntityRecord:l}=n(_.store),c=l("postType",e,t);if(Xr.includes(c.type)){if(c.has_theme_file&&("theme"===c.origin||!c.origin&&["theme","custom"].includes(c.source)))return{type:"theme",icon:Yn,text:a(c.theme)?.name?.rendered||c.theme,isCustomized:"custom"===c.source};if(c.has_theme_file&&"plugin"===c.origin)return{type:"plugin",icon:Yr,text:r(c.theme)?.name||c.theme,isCustomized:"custom"===c.source};if(!c.has_theme_file&&"custom"===c.source&&!c.author){const e=o("root","__unstableBase");return{type:"site",icon:Kr,imageUrl:e?.site_logo?i(e.site_logo)?.source_url:void 0,text:e?.name,isCustomized:!1}}}const u=s(c.author);return{type:"user",icon:pr,imageUrl:u?.avatar_urls?.[48],text:u?.nickname,isCustomized:!1}}),[e,t])}function Jr({imageUrl:e}){const[t,n]=(0,l.useState)(!1);return(0,l.createElement)("div",{className:y()("edit-site-list-added-by__avatar",{"is-loaded":t})},(0,l.createElement)("img",{onLoad:()=>n(!0),alt:"",src:e}))}function eo({postType:e,postId:t}){const{text:n,icon:a,imageUrl:r,isCustomized:o}=Qr(e,t);return(0,l.createElement)(v.__experimentalHStack,{alignment:"left"},r?(0,l.createElement)(Jr,{imageUrl:r}):(0,l.createElement)("div",{className:"edit-site-list-added-by__icon"},(0,l.createElement)(v.Icon,{icon:a})),(0,l.createElement)("span",null,n,o&&(0,l.createElement)("span",{className:"edit-site-list-added-by__customized-info"},"wp_template"===e?(0,E._x)("Customized","template"):(0,E._x)("Customized","template part"))))}function to(e){return!!e&&("custom"===e.source&&!e.has_theme_file)}function no({template:e,onClose:t}){const n=(0,At.decodeEntities)(e.title.rendered),[a,r]=(0,l.useState)(n),[o,i]=(0,l.useState)(!1),{editEntityRecord:s,saveEditedEntityRecord:c}=(0,d.useDispatch)(_.store),{createSuccessNotice:u,createErrorNotice:m}=(0,d.useDispatch)(Se.store);if("wp_template"===e.type&&!e.is_custom)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuItem,{onClick:()=>{i(!0),r(n)}},(0,E.__)("Rename")),o&&(0,l.createElement)(v.Modal,{title:(0,E.__)("Rename"),onRequestClose:()=>{i(!1)},overlayClassName:"edit-site-list__rename-modal"},(0,l.createElement)("form",{onSubmit:async function(n){n.preventDefault();try{await s("postType",e.type,e.id,{title:a}),r(""),i(!1),t(),await c("postType",e.type,e.id,{throwOnError:!0}),u((0,E.__)("Entity renamed."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while renaming the entity.");m(t,{type:"snackbar"})}}},(0,l.createElement)(v.__experimentalVStack,{spacing:"5"},(0,l.createElement)(v.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:a,onChange:r,required:!0}),(0,l.createElement)(v.__experimentalHStack,{justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>{i(!1)}},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit"},(0,E.__)("Save")))))))}function ao({postType:e,postId:t,className:n,toggleProps:a,onRemove:r}){const o=(0,d.useSelect)((n=>n(_.store).getEntityRecord("postType",e,t)),[e,t]),{removeTemplate:i,revertTemplate:s}=(0,d.useDispatch)(Gn),{saveEditedEntityRecord:c}=(0,d.useDispatch)(_.store),{createSuccessNotice:u,createErrorNotice:m}=(0,d.useDispatch)(Se.store),p=to(o),g=zt(o);if(!p&&!g)return null;return(0,l.createElement)(v.DropdownMenu,{icon:le,label:(0,E.__)("Actions"),className:n,toggleProps:a},(({onClose:e})=>(0,l.createElement)(v.MenuGroup,null,p&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(no,{template:o,onClose:e}),(0,l.createElement)(ro,{onRemove:()=>{i(o),r?.(),e()},isTemplate:"wp_template"===o.type})),g&&(0,l.createElement)(v.MenuItem,{info:(0,E.__)("Use the template as supplied by the theme."),onClick:()=>{!async function(){try{await s(o,{allowUndo:!1}),await c("postType",o.type,o.id),u((0,E.sprintf)((0,E.__)('"%s" reverted.'),(0,At.decodeEntities)(o.title.rendered)),{type:"snackbar",id:"edit-site-template-reverted"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while reverting the entity.");m(t,{type:"snackbar"})}}(),e()}},(0,E.__)("Clear customizations")))))}function ro({onRemove:e,isTemplate:t}){const[n,a]=(0,l.useState)(!1);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuItem,{isDestructive:!0,isTertiary:!0,onClick:()=>a(!0)},(0,E.__)("Delete")),(0,l.createElement)(v.__experimentalConfirmDialog,{isOpen:n,onConfirm:e,onCancel:()=>a(!1),confirmButtonText:(0,E.__)("Delete")},t?(0,E.__)("Are you sure you want to delete this template?"):(0,E.__)("Are you sure you want to delete this template part?")))}var oo=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18.5 10.5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));var io=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M18 5.5h-8v8h8.5V6a.5.5 0 00-.5-.5zm-9.5 8h-3V6a.5.5 0 01.5-.5h2.5v8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"}));function so({children:e}){return(0,l.createElement)(v.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__label"},e)}function lo({label:e,children:t,className:n}){return(0,l.createElement)(v.__experimentalHStack,{key:e,spacing:5,alignment:"left",className:y()("edit-site-sidebar-navigation-details-screen-panel__row",n)},t)}function co({children:e}){return(0,l.createElement)(v.__experimentalText,{className:"edit-site-sidebar-navigation-details-screen-panel__value"},e)}function uo({title:e,children:t,spacing:n}){return(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-sidebar-navigation-details-screen-panel",spacing:n},e&&(0,l.createElement)(v.__experimentalHeading,{className:"edit-site-sidebar-navigation-details-screen-panel__heading",level:2},e),t)}const mo={};function po({postId:e,icon:t,title:n}){var a;const r={header:oo,footer:io},o=St({postType:"wp_template_part",postId:e});return(0,l.createElement)(na,{className:"edit-site-sidebar-navigation-screen-template__template-area-button",...o,icon:null!==(a=r[t])&&void 0!==a?a:Yn,withChevron:!0},(0,l.createElement)(v.__experimentalTruncate,{limit:20,ellipsizeMode:"tail",numberOfLines:1,className:"edit-site-sidebar-navigation-screen-template__template-area-label-text"},(0,At.decodeEntities)(n)))}function _o(){const e=(0,v.__experimentalUseNavigator)(),{params:{postType:t,postId:n}}=e,{editEntityRecord:a}=(0,d.useDispatch)(_.store),{allowCommentsOnNewPosts:r,templatePartAreas:o,postsPerPage:i,postsPageTitle:s,postsPageId:c,currentTemplateParts:u}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=t("root","site"),{getSettings:a}=nt(e(Gn)),r=e(Gn).getCurrentTemplateTemplateParts(),o=a(),i=n?.page_for_posts?e(_.store).getEntityRecord("postType","page",n?.page_for_posts):mo;return{allowCommentsOnNewPosts:"open"===n?.default_comment_status,postsPageTitle:i?.title?.rendered,postsPageId:i?.id,postsPerPage:n?.posts_per_page,templatePartAreas:o?.defaultTemplatePartAreas,currentTemplateParts:r}}),[t,n]),[m,p]=(0,l.useState)(""),[g,h]=(0,l.useState)(1),[y,f]=(0,l.useState)("");(0,l.useEffect)((()=>{p(r),f(s),h(i)}),[s,r,i]);const b=(0,l.useMemo)((()=>u.length&&o?u.map((({templatePart:e})=>({...o?.find((({area:t})=>t===e?.area)),...e}))):[]),[u,o]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(uo,{spacing:6},c&&(0,l.createElement)(lo,null,(0,l.createElement)(v.__experimentalInputControl,{className:"edit-site-sidebar-navigation-screen__input-control",placeholder:(0,E.__)("No Title"),size:"__unstable-large",value:y,onChange:(0,re.debounce)((e=>{f(e),a("postType","page",c,{title:e})}),300),label:(0,E.__)("Blog title"),help:(0,E.__)("Set the Posts Page title. Appears in search results, and when the page is shared on social media.")})),(0,l.createElement)(lo,null,(0,l.createElement)(v.__experimentalNumberControl,{className:"edit-site-sidebar-navigation-screen__input-control",placeholder:0,value:g,size:"__unstable-large",spinControls:"custom",step:"1",min:"1",onChange:e=>{h(e),a("root","site",void 0,{posts_per_page:e})},label:(0,E.__)("Posts per page"),help:(0,E.__)("Set the default number of posts to display on blog pages, including categories and tags. Some templates may override this setting.")}))),(0,l.createElement)(uo,{title:(0,E.__)("Discussion"),spacing:3},(0,l.createElement)(lo,null,(0,l.createElement)(v.CheckboxControl,{className:"edit-site-sidebar-navigation-screen__input-control",label:(0,E.__)("Allow comments on new posts"),help:(0,E.__)("Changes will apply to new posts only. Individual posts may override these settings."),checked:m,onChange:e=>{p(e),a("root","site",void 0,{default_comment_status:e?"open":null})}}))),(0,l.createElement)(uo,{title:(0,E.__)("Areas"),spacing:3},(0,l.createElement)(v.__experimentalItemGroup,null,b.map((({label:e,icon:t,theme:n,slug:a,title:r})=>(0,l.createElement)(lo,{key:a},(0,l.createElement)(po,{postId:`${n}//${a}`,title:r?.rendered||e,icon:t})))))))}function go({lastModifiedDateTime:e}){return(0,l.createElement)(l.Fragment,null,e&&(0,l.createElement)(lo,{className:"edit-site-sidebar-navigation-screen-details-footer"},(0,l.createElement)(so,null,(0,E.__)("Last modified")),(0,l.createElement)(co,null,(0,l.createInterpolateElement)((0,E.sprintf)((0,E.__)("<time>%s</time>"),(0,sa.humanTimeDiff)(e)),{time:(0,l.createElement)("time",{dateTime:e})}))))}function ho(){const e=(0,v.__experimentalUseNavigator)(),{params:{postType:t,postId:n}}=e,{setCanvasMode:a}=nt((0,d.useDispatch)(Gn)),{title:r,content:o,description:i,footer:s}=function(e,t){const{getDescription:n,getTitle:a,record:r}=qr(e,t),o=(0,d.useSelect)((e=>e(_.store).getCurrentTheme()),[]),i=Qr(e,t),s="theme"===i.type&&r.theme===o?.stylesheet,c=a();let u=n();!u&&i.text&&(u=(0,E.__)("This is a custom template that can be applied manually to any Post or Page."));const m="home"===r?.slug||"index"===r?.slug?(0,l.createElement)(_o,null):null,p=r?.modified?(0,l.createElement)(go,{lastModifiedDateTime:r.modified}):null;return{title:c,description:(0,l.createElement)(l.Fragment,null,u,i.text&&!s&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-author"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-author-icon"},i.imageUrl?(0,l.createElement)("img",{src:i.imageUrl,alt:"",width:"24",height:"24"}):(0,l.createElement)(v.Icon,{icon:i.icon})),i.text),i.isCustomized&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-template__added-by-description-customized"},(0,E._x)("(Customized)","template")))),content:m,footer:p}}(t,n);return(0,l.createElement)(Jn,{title:r,actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ao,{postType:t,postId:n,toggleProps:{as:Xn},onRemove:()=>{e.goTo(`/${t}/all`)}}),(0,l.createElement)(Xn,{onClick:()=>a("edit"),label:(0,E.__)("Edit"),icon:oa})),description:i,content:o,footer:s})}var yo=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M15 11h-.2V9c0-1.5-1.2-2.8-2.8-2.8S9.2 7.5 9.2 9v2H9c-.6 0-1 .4-1 1v4c0 .6.4 1 1 1h6c.6 0 1-.4 1-1v-4c0-.6-.4-1-1-1zm-1.8 0h-2.5V9c0-.7.6-1.2 1.2-1.2s1.2.6 1.2 1.2v2z"}));var vo=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5z"}));const Eo="my-patterns",fo="wp_block",bo="pattern",wo="wp_template_part",So="wp_block",ko="my-patterns",Co=["core","pattern-directory/core","pattern-directory/featured","pattern-directory/theme"],xo={full:"fully",unsynced:"unsynced"},To=(e,t,n)=>t===n.findIndex((t=>e.name===t.name));function No({blocks:e=[],closeModal:t,onCreate:n,onError:a,title:r}){const[o,i]=(0,l.useState)(""),[s,u]=(0,l.useState)(xo.unsynced),[m,p]=(0,l.useState)(!1),{createErrorNotice:g}=(0,d.useDispatch)(Se.store),{saveEntityRecord:h}=(0,d.useDispatch)(_.store);return(0,l.createElement)(v.Modal,{title:r||(0,E.__)("Create pattern"),onRequestClose:t,overlayClassName:"edit-site-create-pattern-modal"},(0,l.createElement)("form",{onSubmit:async t=>{t.preventDefault(),o&&(p(!0),await async function(){if(o)try{const t=await h("postType","wp_block",{title:o||(0,E.__)("Untitled Pattern"),content:e?.length?(0,c.serialize)(e):"",status:"publish",meta:s===xo.unsynced?{wp_pattern_sync_status:s}:void 0},{throwOnError:!0});n({pattern:t,categoryId:ko})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the pattern.");g(t,{type:"snackbar"}),a()}else g((0,E.__)("Please enter a pattern name."),{type:"snackbar"})}())}},(0,l.createElement)(v.__experimentalVStack,{spacing:"4"},(0,l.createElement)(v.TextControl,{className:"edit-site-create-pattern-modal__input",label:(0,E.__)("Name"),onChange:i,placeholder:(0,E.__)("My pattern"),required:!0,value:o,__nextHasNoMarginBottom:!0}),(0,l.createElement)(v.ToggleControl,{label:(0,E.__)("Keep all pattern instances in sync"),onChange:()=>{u(s===xo.full?xo.unsynced:xo.full)},help:(0,E.__)("Editing the original pattern will also update anywhere the pattern is used."),checked:s===xo.full}),(0,l.createElement)(v.__experimentalHStack,{justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>{t()}},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit",disabled:!o,isBusy:m},(0,E.__)("Create"))))))}const Mo=()=>(0,d.useSelect)((e=>e(_.store).getEntityRecords("postType","wp_template_part",{per_page:-1})),[]),Po=(e,t)=>{const n=e.toLowerCase(),a=t.map((e=>e.title.rendered.toLowerCase()));if(!a.includes(n))return e;let r=2;for(;a.includes(`${n} ${r}`);)r++;return`${e} ${r}`},Io=e=>(0,be.kebabCase)(e).replace(/[^\w-]+/g,"")||"wp-custom-part";function Bo({closeModal:e,blocks:t=[],onCreate:n,onError:a}){const{createErrorNotice:r}=(0,d.useDispatch)(Se.store),{saveEntityRecord:o}=(0,d.useDispatch)(_.store),i=Mo(),[s,u]=(0,l.useState)(""),[m,p]=(0,l.useState)(Vt),[h,y]=(0,l.useState)(!1),f=(0,re.useInstanceId)(Bo),w=(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplatePartAreas()),[]);return(0,l.createElement)(v.Modal,{title:(0,E.__)("Create template part"),onRequestClose:e,overlayClassName:"edit-site-create-template-part-modal"},(0,l.createElement)("form",{onSubmit:async e=>{e.preventDefault(),s&&(y(!0),await async function(){if(s)try{const e=Po(s,i),a=Io(e),r=await o("postType","wp_template_part",{slug:a,title:e,content:(0,c.serialize)(t),area:m},{throwOnError:!0});await n(r)}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the template part.");r(t,{type:"snackbar"}),a?.()}else r((0,E.__)("Please enter a title."),{type:"snackbar"})}())}},(0,l.createElement)(v.__experimentalVStack,{spacing:"4"},(0,l.createElement)(v.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:s,onChange:u,required:!0}),(0,l.createElement)(v.BaseControl,{label:(0,E.__)("Area"),id:`edit-site-create-template-part-modal__area-selection-${f}`,className:"edit-site-create-template-part-modal__area-base-control"},(0,l.createElement)(v.__experimentalRadioGroup,{label:(0,E.__)("Area"),className:"edit-site-create-template-part-modal__area-radio-group",id:`edit-site-create-template-part-modal__area-selection-${f}`,onChange:p,checked:m},w.map((({icon:e,label:t,area:n,description:a})=>(0,l.createElement)(v.__experimentalRadio,{key:t,value:n,className:"edit-site-create-template-part-modal__area-radio"},(0,l.createElement)(v.Flex,{align:"start",justify:"start"},(0,l.createElement)(v.FlexItem,null,(0,l.createElement)(v.Icon,{icon:e})),(0,l.createElement)(v.FlexBlock,{className:"edit-site-create-template-part-modal__option-label"},t,(0,l.createElement)("div",null,a)),(0,l.createElement)(v.FlexItem,{className:"edit-site-create-template-part-modal__checkbox"},m===n&&(0,l.createElement)(v.Icon,{icon:b})))))))),(0,l.createElement)(v.__experimentalHStack,{justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>{e()}},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit",disabled:!s,isBusy:h},(0,E.__)("Create"))))))}const{useHistory:Do}=nt(vt.privateApis);function Ro(){const e=Do(),[t,n]=(0,l.useState)(!1),[a,r]=(0,l.useState)(!1),o=(0,d.useSelect)((e=>!!e(Gn).getSettings().supportsTemplatePartsMode),[]);function i(){n(!1),r(!1)}return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.DropdownMenu,{controls:[!o&&{icon:oo,onClick:()=>r(!0),title:(0,E.__)("Create template part")},{icon:vo,onClick:()=>n(!0),title:(0,E.__)("Create pattern")}].filter(Boolean),toggleProps:{as:Xn},icon:vr,label:(0,E.__)("Create pattern")}),t&&(0,l.createElement)(No,{closeModal:()=>n(!1),onCreate:function({pattern:t,categoryId:a}){n(!1),e.push({postId:t.id,postType:"wp_block",categoryType:"wp_block",categoryId:a,canvas:"edit"})},onError:i}),a&&(0,l.createElement)(Bo,{closeModal:()=>r(!1),blocks:[],onCreate:function(t){r(!1),e.push({postId:t.id,postType:"wp_template_part",canvas:"edit"})},onError:i}))}function Lo({count:e,icon:t,id:n,isActive:a,label:r,type:o}){const i=St({path:"/patterns",categoryType:o,categoryId:n});if(e)return(0,l.createElement)(na,{...i,icon:t,suffix:(0,l.createElement)("span",null,e),"aria-current":a?"true":void 0},r)}function Ao(){const e=function(){const e=(0,d.useSelect)((e=>{var t;const{getSettings:n}=nt(e(Gn)),a=n();return null!==(t=a.__experimentalAdditionalBlockPatternCategories)&&void 0!==t?t:a.__experimentalBlockPatternCategories}));return[...e||[],...(0,d.useSelect)((e=>e(_.store).getBlockPatternCategories()))||[]]}();e.push({name:"uncategorized",label:(0,E.__)("Uncategorized")});const t=function(){const e=(0,d.useSelect)((e=>{var t;const{getSettings:n}=nt(e(Gn));return null!==(t=n().__experimentalAdditionalBlockPatterns)&&void 0!==t?t:n().__experimentalBlockPatterns})),t=(0,d.useSelect)((e=>e(_.store).getBlockPatterns()));return(0,l.useMemo)((()=>[...e||[],...t||[]].filter((e=>!Co.includes(e.source))).filter(To).filter((e=>!1!==e.inserter))),[e,t])}(),n=(0,l.useMemo)((()=>{const n={},a=[];return e.forEach((e=>{n[e.name]||(n[e.name]={...e,count:0})})),t.forEach((e=>{e.categories?.forEach((e=>{n[e]&&(n[e].count+=1)})),e.categories?.length||(n.uncategorized.count+=1)})),e.forEach((e=>{n[e.name].count&&a.push(n[e.name])})),a}),[e,t]);return{patternCategories:n,hasPatterns:!!n.length}}const Fo=e=>{const t=e||[],n=(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplatePartAreas()),[]),a={header:{},footer:{},sidebar:{},uncategorized:{}};n.forEach((e=>a[e.area]={...e,templateParts:[]}));return t.reduce(((e,t)=>(e[e[t.area]?t.area:"uncategorized"].templateParts.push(t),e)),a)};function Vo({areas:e,currentArea:t,currentType:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-patterns__group-header"},(0,l.createElement)(v.__experimentalHeading,{level:2},(0,E.__)("Template parts"))),(0,l.createElement)(v.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},Object.entries(e).map((([e,{label:a,templateParts:r}])=>(0,l.createElement)(Lo,{key:e,count:r?.length,icon:(0,g.getTemplatePartIcon)(e),label:a,id:e,type:"wp_template_part",isActive:t===e&&"wp_template_part"===n})))))}function zo({categories:e,currentCategory:t,currentType:n}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},e.map((e=>(0,l.createElement)(Lo,{key:e.name,count:e.count,label:(0,l.createElement)(v.Flex,{justify:"left",align:"center",gap:0},e.label,(0,l.createElement)(v.Tooltip,{position:"top center",text:(0,E.__)("Theme patterns cannot be edited.")},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__lock-icon"},(0,l.createElement)(v.Icon,{icon:yo,size:24})))),icon:vo,id:e.name,type:"pattern",isActive:t===`${e.name}`&&"pattern"===n})))))}function Oo(){const e=(0,re.useViewportMatch)("medium","<"),{categoryType:t,categoryId:n}=(0,Et.getQueryArgs)(window.location.href),a=n||Eo,r=t||fo,{templatePartAreas:o,hasTemplateParts:i,isLoading:s}=function(){const{records:e,isResolving:t}=(0,_.useEntityRecords)("postType","wp_template_part",{per_page:-1});return{hasTemplateParts:!!e&&!!e.length,isLoading:t,templatePartAreas:Fo(e)}}(),{patternCategories:c,hasPatterns:u}=Ao(),{myPatterns:m}=function(){const e=(0,d.useSelect)((e=>{var t;return null!==(t=e(_.store).getEntityRecords("postType","wp_block",{per_page:-1})?.length)&&void 0!==t?t:0}));return{myPatterns:{count:e,name:"my-patterns",label:(0,E.__)("My patterns")},hasPatterns:e>0}}(),p=St({path:"/wp_template_part/all"}),g=e?void 0:(0,l.createElement)(v.__experimentalItemGroup,null,(0,l.createElement)(na,{as:"a",href:"edit.php?post_type=wp_block",withChevron:!0},(0,E.__)("Manage all of my patterns")),(0,l.createElement)(na,{withChevron:!0,...p},(0,E.__)("Manage all template parts")));return(0,l.createElement)(Jn,{title:(0,E.__)("Patterns"),description:(0,E.__)("Manage what patterns are available when editing the site."),actions:(0,l.createElement)(Ro,null),footer:g,content:(0,l.createElement)(l.Fragment,null,s&&(0,E.__)("Loading patterns"),!s&&(0,l.createElement)(l.Fragment,null,!i&&!u&&(0,l.createElement)(v.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},(0,l.createElement)(v.__experimentalItem,null,(0,E.__)("No template parts or patterns found"))),(0,l.createElement)(v.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-patterns__group"},(0,l.createElement)(Lo,{key:m.name,count:m.count?m.count:"0",label:m.label,icon:w,id:m.name,type:"wp_block",isActive:a===`${m.name}`&&"wp_block"===r})),u&&(0,l.createElement)(zo,{categories:c,currentCategory:a,currentType:r}),i&&(0,l.createElement)(Vo,{areas:o,currentArea:a,currentType:r})))})}const{useLocation:Ho}=nt(vt.privateApis);function Go(){const{params:{postId:e,postType:t}={}}=Ho(),{isRequestingSite:n,homepageId:a,url:r}=(0,d.useSelect)((e=>{const{getSite:t,getUnstableBase:n}=e(_.store),a=t(),r=n();return{isRequestingSite:!r,homepageId:"page"===a?.show_on_front?a.page_on_front:null,url:r?.home}}),[]),{setEditedEntity:o,setTemplate:i,setTemplatePart:s,setPage:c,setNavigationMenu:u}=(0,d.useDispatch)(Gn);(0,l.useEffect)((()=>{if(t&&e)switch(t){case"wp_template":i(e);break;case"wp_template_part":s(e);break;case"wp_navigation":u(e);break;case"wp_block":o(t,e);break;default:c({context:{postType:t,postId:e}})}else a?c({context:{postType:"page",postId:a}}):n||c({path:r})}),[r,e,t,a,n,o,c,i,s,u])}var Uo=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));var $o=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));const{useLocation:jo,useHistory:Wo}=nt(vt.privateApis);function Zo(e){var t;let n=null!==(t=e?.path)&&void 0!==t?t:"/";if(e?.postType&&e?.postId)switch(e.postType){case"wp_block":case"wp_template":case"wp_template_part":case"page":n=`/${encodeURIComponent(e.postType)}/${encodeURIComponent(e.postId)}`;break;default:n=`/navigation/${encodeURIComponent(e.postType)}/${encodeURIComponent(e.postId)}`}return n}function qo(){const e=Wo(),{params:t}=jo(),{location:n,params:a,goTo:r}=(0,v.__experimentalUseNavigator)(),o=(0,l.useRef)(!0);(0,l.useEffect)((()=>{function r(n){if(a=n,r=t,Object.entries(a).every((([e,t])=>r[e]===t)))return;var a,r;const o={...t,...n};e.push(o)}o.current?o.current=!1:a?.postType&&a?.postId?r({postType:a?.postType,postId:a?.postId,path:void 0}):n.path.startsWith("/page/")&&a?.postId?r({postType:"page",postId:a?.postId,path:void 0}):"/patterns"===n.path?r({postType:void 0,postId:void 0,canvas:void 0,path:n.path}):r({postType:void 0,postId:void 0,categoryType:void 0,categoryId:void 0,path:"/"===n.path?void 0:n.path})}),[n?.path,a]),(0,l.useEffect)((()=>{const e=Zo(t);n.path!==e&&r(e)}),[t])}const Yo={className:"block-editor-block-settings-menu__popover",placement:"bottom-start"},{useLocation:Ko,useHistory:Xo}=nt(vt.privateApis);function Qo(e){const t=Ko(),n=Xo(),{block:a}=e,{clientId:r}=a,{moveBlocksDown:o,moveBlocksUp:i,removeBlocks:s}=(0,d.useDispatch)(we.store),c=(0,E.sprintf)((0,E.__)("Remove %s"),(0,we.BlockTitle)({clientId:r,maximumLength:25})),u=(0,E.sprintf)((0,E.__)("Go to %s"),(0,we.BlockTitle)({clientId:r,maximumLength:25})),m=(0,d.useSelect)((e=>{const{getBlockRootClientId:t}=e(we.store);return t(r)}),[r]),p=(0,l.useCallback)((e=>{const{attributes:a,name:r}=e;"post-type"===a.kind&&a.id&&a.type&&n&&n.push({postType:a.type,postId:a.id,...ft()&&{wp_theme_preview:bt()}},{backPath:Zo(t.params)}),"core/page-list-item"===r&&a.id&&n&&n.push({postType:"page",postId:a.id,...ft()&&{wp_theme_preview:bt()}},{backPath:Zo(t.params)})}),[n]);return(0,l.createElement)(v.DropdownMenu,{icon:le,label:(0,E.__)("Options"),className:"block-editor-block-settings-menu",popoverProps:Yo,noIcons:!0,...e},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{icon:Uo,onClick:()=>{i([r],m),e()}},(0,E.__)("Move up")),(0,l.createElement)(v.MenuItem,{icon:$o,onClick:()=>{o([r],m),e()}},(0,E.__)("Move down")),"page"===a.attributes?.type&&a.attributes?.id&&(0,l.createElement)(v.MenuItem,{onClick:()=>{p(a),e()}},u)),(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{onClick:()=>{s([r],!1),e()}},c)))))}const{PrivateListView:Jo}=nt(we.privateApis),ei=["postType","page",{per_page:100,_fields:["id","link","menu_order","parent","title","type"],orderby:"menu_order",order:"asc"}];function ti({rootClientId:e}){const{listViewRootClientId:t,isLoading:n}=(0,d.useSelect)((t=>{const{areInnerBlocksControlled:n,getBlockName:a,getBlockCount:r,getBlockOrder:o}=t(we.store),{isResolving:i}=t(_.store),s=o(e),l=1===s.length&&"core/page-list"===a(s[0])&&r(s[0])>0,c=i("getEntityRecords",ei);return{listViewRootClientId:l?s[0]:e,isLoading:!n(e)||c}}),[e]),{replaceBlock:a,__unstableMarkNextChangeAsNotPersistent:r}=(0,d.useDispatch)(we.store),o=(0,l.useCallback)((e=>{"core/navigation-link"!==e.name||e.attributes.url||(r(),a(e.clientId,(0,c.createBlock)("core/navigation-link",e.attributes)))}),[r,a]);return(0,l.createElement)(l.Fragment,null,!n&&(0,l.createElement)(Jo,{rootClientId:t,onSelect:o,blockSettingsMenu:Qo,showAppender:!1}),(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__helper-block-editor"},(0,l.createElement)(we.BlockList,null)))}const ni=()=>{};function ai({navigationMenuId:e}){const{storedSettings:t}=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Gn));return{storedSettings:t(!1)}}),[]),n=(0,l.useMemo)((()=>e?[(0,c.createBlock)("core/navigation",{ref:e})]:[]),[e]);return e&&n?.length?(0,l.createElement)(we.BlockEditorProvider,{settings:t,value:n,onChange:ni,onInput:ni},(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-navigation-menus__content"},(0,l.createElement)(ti,{rootClientId:n[0].clientId}))):null}function ri({id:e}){const[t]=(0,_.useEntityProp)("postType","wp_navigation","title",e);return e?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",size:"11",upperCase:!0,weight:500},t?.rendered||(0,E.__)("Navigation")),(0,l.createElement)(ai,{navigationMenuId:e})):null}function oi({id:e}){const[t]=(0,_.useEntityProp)("postType","wp_navigation","title",e),n=St({postId:e,postType:"wp_navigation"});return e?(0,l.createElement)(na,{withChevron:!0,...n},t||(0,E.__)("(no title)")):null}function ii({menus:e}){return(0,l.createElement)(v.__experimentalItemGroup,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu-list"},e.map((e=>(0,l.createElement)(oi,{key:e,id:e}))))}function si({menus:e}){return e.length?1===e.length?(0,l.createElement)(ri,{id:e[0]}):(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalHeading,{className:"edit-site-sidebar-navigation-screen-template-part-navigation-menu__title",size:"11",upperCase:!0,weight:500},(0,E.__)("Navigation")),(0,l.createElement)(ii,{menus:e})):null}function li(e,t){const{getDescription:n,getTitle:a,record:r}=qr(e,t),o=(0,d.useSelect)((e=>e(_.store).getCurrentTheme()),[]),i=Qr(e,t),s="theme"===i.type&&r.theme===o?.stylesheet,c=a();let u=n();!u&&i.text&&(u=(0,E.sprintf)((0,E.__)("This is the %s pattern."),a())),!u&&"wp_block"===e&&r?.title&&(u=(0,E.sprintf)((0,E.__)("This is the %s pattern."),r.title));const m=(0,l.createElement)(l.Fragment,null,u,i.text&&!s&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-author"},(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-author-icon"},i.imageUrl?(0,l.createElement)("img",{src:i.imageUrl,alt:"",width:"24",height:"24"}):(0,l.createElement)(v.Icon,{icon:i.icon})),i.text),i.isCustomized&&(0,l.createElement)("span",{className:"edit-site-sidebar-navigation-screen-pattern__added-by-description-customized"},(0,E._x)("(Customized)","pattern")))),p=r?.modified?(0,l.createElement)(go,{lastModifiedDateTime:r.modified}):null,g=[];"wp_block"===e&&g.push({label:(0,E.__)("Syncing"),value:"unsynced"===r.wp_pattern_sync_status?(0,E.__)("Not synced"):(0,E.__)("Fully synced")});const h=(0,l.createElement)(l.Fragment,null,!!g.length&&(0,l.createElement)(uo,{spacing:5,title:(0,E.__)("Details")},g.map((({label:e,value:t})=>(0,l.createElement)(lo,{key:e},(0,l.createElement)(so,null,e),(0,l.createElement)(co,null,t))))),function(e,t){const{record:n}=qr(e,t);if("wp_template_part"!==e)return;const a=function(e,t){if(!e||!t?.length)return[];const n=t=>{if(!t)return[];const a=[];for(const r of t)if(r.name===e&&a.push(r),r?.innerBlocks){const e=n(r.innerBlocks);e.length&&a.push(...e)}return a};return n(t)}("core/navigation",n?.blocks),r=a?.map((e=>e.attributes.ref));return r?.length?(0,l.createElement)(si,{menus:r}):void 0}(e,t));return{title:c,description:m,content:h,footer:p}}function ci(){const{params:e}=(0,v.__experimentalUseNavigator)(),{categoryType:t}=(0,Et.getQueryArgs)(window.location.href),{postType:n,postId:a}=e,{setCanvasMode:r}=nt((0,d.useDispatch)(Gn));Go();const o=li(n,a),i=t||"wp_template_part"!==n?"/patterns":"/wp_template_part/all";return(0,l.createElement)(Jn,{actions:(0,l.createElement)(Xn,{onClick:()=>r("edit"),label:(0,E.__)("Edit"),icon:oa}),backPath:i,...o})}const ui={per_page:100,status:["publish","draft"],order:"desc",orderby:"date"},di=e=>e?.trim()?.length>0;function mi({menuTitle:e,onClose:t,onSave:n}){const[a,r]=(0,l.useState)(e),o=a!==e&&di(a);return(0,l.createElement)(v.Modal,{title:(0,E.__)("Rename"),onRequestClose:t},(0,l.createElement)("form",{className:"sidebar-navigation__rename-modal-form"},(0,l.createElement)(v.__experimentalVStack,{spacing:"3"},(0,l.createElement)(v.TextControl,{__nextHasNoMarginBottom:!0,value:a,placeholder:(0,E.__)("Navigation title"),onChange:r}),(0,l.createElement)(v.__experimentalHStack,{justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{disabled:!o,variant:"primary",type:"submit",onClick:e=>{e.preventDefault(),o&&(n({title:a}),t())}},(0,E.__)("Save"))))))}function pi({onClose:e,onConfirm:t}){return(0,l.createElement)(v.Modal,{title:(0,E.__)("Delete"),onRequestClose:e},(0,l.createElement)("form",null,(0,l.createElement)(v.__experimentalVStack,{spacing:"3"},(0,l.createElement)("p",null,(0,E.__)("Are you sure you want to delete this Navigation menu?")),(0,l.createElement)(v.__experimentalHStack,{justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:e},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit",onClick:n=>{n.preventDefault(),t(),e()}},(0,E.__)("Delete"))))))}const _i={position:"bottom right"};function gi(e){const{onDelete:t,onSave:n,onDuplicate:a,menuTitle:r}=e,[o,i]=(0,l.useState)(!1),[s,c]=(0,l.useState)(!1),u=()=>{i(!1),c(!1)};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.DropdownMenu,{className:"sidebar-navigation__more-menu",label:(0,E.__)("Actions"),icon:le,popoverProps:_i},(({onClose:e})=>(0,l.createElement)("div",null,(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{onClick:()=>{i(!0),e()}},(0,E.__)("Rename")),(0,l.createElement)(v.MenuItem,{onClick:()=>{a(),e()}},(0,E.__)("Duplicate"))),(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{onClick:()=>{c(!0),e()}},(0,E.__)("Delete")))))),s&&(0,l.createElement)(pi,{onClose:u,onConfirm:t}),o&&(0,l.createElement)(mi,{onClose:u,menuTitle:r,onSave:n}))}function hi({postId:e}){const t=St({postId:e,postType:"wp_navigation",canvas:"edit"});return(0,l.createElement)(Xn,{...t,label:(0,E.__)("Edit"),icon:oa})}function yi({navigationMenu:e,handleDelete:t,handleDuplicate:n,handleSave:a}){const r=e?.title?.rendered;return(0,l.createElement)(xi,{actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(gi,{menuTitle:(0,At.decodeEntities)(r),onDelete:t,onSave:a,onDuplicate:n}),(0,l.createElement)(hi,{postId:e?.id})),title:(0,At.decodeEntities)(r),description:(0,E.__)("Navigation menus are a curated collection of blocks that allow visitors to get around your site.")},(0,l.createElement)(ai,{navigationMenuId:e?.id}))}const vi="wp_navigation";function Ei(){const{params:{postId:e}}=(0,v.__experimentalUseNavigator)(),{record:t,isResolving:n}=(0,_.useEntityRecord)("postType",vi,e),{isSaving:a,isDeleting:r}=(0,d.useSelect)((t=>{const{isSavingEntityRecord:n,isDeletingEntityRecord:a}=t(_.store);return{isSaving:n("postType",vi,e),isDeleting:a("postType",vi,e)}}),[e]),o=n||a||r,i=t?.title?.rendered||t?.slug,{handleSave:s,handleDelete:c,handleDuplicate:u}=Si(),m=()=>c(t),p=e=>s(t,e),g=()=>u(t);return o?(0,l.createElement)(xi,{description:(0,E.__)("Navigation menus are a curated collection of blocks that allow visitors to get around your site.")},(0,l.createElement)(v.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})):o||t?t?.content?.raw?(0,l.createElement)(yi,{navigationMenu:t,handleDelete:m,handleSave:p,handleDuplicate:g}):(0,l.createElement)(xi,{actions:(0,l.createElement)(gi,{menuTitle:(0,At.decodeEntities)(i),onDelete:m,onSave:p,onDuplicate:g}),title:(0,At.decodeEntities)(i),description:(0,E.__)("This Navigation Menu is empty.")}):(0,l.createElement)(xi,{description:(0,E.__)("Navigation Menu missing.")})}function fi(){const{goTo:e}=(0,v.__experimentalUseNavigator)(),{deleteEntityRecord:t}=(0,d.useDispatch)(_.store),{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(Se.store);return async r=>{const o=r?.id;try{await t("postType",vi,o,{force:!0},{throwOnError:!0}),n((0,E.__)("Deleted Navigation menu"),{type:"snackbar"}),e("/navigation")}catch(e){a((0,E.sprintf)((0,E.__)("Unable to delete Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function bi(){const{getEditedEntityRecord:e}=(0,d.useSelect)((e=>{const{getEditedEntityRecord:t}=e(_.store);return{getEditedEntityRecord:t}}),[]),{editEntityRecord:t,saveEditedEntityRecord:n}=(0,d.useDispatch)(_.store),{createSuccessNotice:a,createErrorNotice:r}=(0,d.useDispatch)(Se.store);return async(o,i)=>{if(!i)return;const s=o?.id,l=e("postType","wp_navigation",s);t("postType",vi,s,i);try{await n("postType",vi,s,{throwOnError:!0}),a((0,E.__)("Renamed Navigation menu"),{type:"snackbar"})}catch(e){t("postType",vi,s,l),r((0,E.sprintf)((0,E.__)("Unable to rename Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function wi(){const{goTo:e}=(0,v.__experimentalUseNavigator)(),{saveEntityRecord:t}=(0,d.useDispatch)(_.store),{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(Se.store);return async r=>{const o=r?.title?.rendered||r?.slug;try{const a=await t("postType",vi,{title:(0,E.sprintf)((0,E.__)("%s (Copy)"),o),content:r?.content?.raw,status:"publish"},{throwOnError:!0});a&&(n((0,E.__)("Duplicated Navigation menu"),{type:"snackbar"}),e(`/navigation/${vi}/${a.id}`))}catch(e){a((0,E.sprintf)((0,E.__)("Unable to duplicate Navigation menu (%s)."),e?.message),{type:"snackbar"})}}}function Si(){return{handleDelete:fi(),handleSave:bi(),handleDuplicate:wi()}}let ki=!1;function Ci(){const{records:e,isResolving:t,hasResolved:n}=(0,_.useEntityRecords)("postType","wp_navigation",ui),a=t&&!n,{getNavigationFallbackId:r}=nt((0,d.useSelect)(_.store)),o=e?.[0];o&&(ki=!0),o||t||!n||ki||r();const{handleSave:i,handleDelete:s,handleDuplicate:c}=Si(),u=!!e?.length;return a?(0,l.createElement)(xi,null,(0,l.createElement)(v.Spinner,{className:"edit-site-sidebar-navigation-screen-navigation-menus__loading"})):a||u?1===e?.length?(0,l.createElement)(yi,{navigationMenu:o,handleDelete:()=>s(o),handleDuplicate:()=>c(o),handleSave:e=>i(o,e)}):(0,l.createElement)(xi,null,(0,l.createElement)(v.__experimentalItemGroup,null,e?.map((({id:e,title:t,status:n},a)=>(0,l.createElement)(Ti,{postId:e,key:e,withChevron:!0,icon:Wn},function(e,t,n){return e?.rendered?"publish"===n?(0,At.decodeEntities)(e?.rendered):(0,E.sprintf)((0,E.__)("%1$s (%2$s)"),(0,At.decodeEntities)(e?.rendered),n):(0,E.sprintf)((0,E.__)("(no title %s)"),t)}(t,a+1,n)))))):(0,l.createElement)(xi,{description:(0,E.__)("No Navigation Menus found.")})}function xi({children:e,actions:t,title:n,description:a}){return(0,l.createElement)(Jn,{title:n||(0,E.__)("Navigation"),actions:t,description:a||(0,E.__)("Manage your Navigation menus."),content:e})}const Ti=({postId:e,...t})=>{const n=St({postId:e,postType:"wp_navigation"});return(0,l.createElement)(na,{...n,...t})},Ni={wp_template:{title:(0,E.__)("All templates"),description:(0,E.__)("Create new templates, or reset any customizations made to the templates supplied by your theme.")},wp_template_part:{title:(0,E.__)("All template parts"),description:(0,E.__)("Create new template parts, or reset any customizations made to the template parts supplied by your theme."),backPath:"/patterns"}};function Mi(){const{params:{postType:e}}=(0,v.__experimentalUseNavigator)(),t=(0,d.useSelect)((e=>!!e(Gn).getSettings().supportsTemplatePartsMode),[]);return(0,l.createElement)(Jn,{isRoot:t,title:Ni[e].title,description:Ni[e].description,backPath:Ni[e].backPath})}function Pi({className:e="edit-site-save-button__button",variant:t="primary",showTooltip:n=!0,defaultLabel:a,icon:r}){const{isDirty:o,isSaving:i,isSaveViewOpen:s}=(0,d.useSelect)((e=>{const{__experimentalGetDirtyEntityRecords:t,isSavingEntityRecord:n}=e(_.store),a=t(),{isSaveViewOpened:r}=e(Gn);return{isDirty:a.length>0,isSaving:a.some((e=>n(e.kind,e.name,e.key))),isSaveViewOpen:r()}}),[]),{setIsSaveViewOpened:c}=(0,d.useDispatch)(Gn),u=ft()||o,m=i||!u,p=ft()?i?(0,E.__)("Activating"):m?(0,E.__)("Saved"):o?(0,E.__)("Activate & Save"):(0,E.__)("Activate"):i?(0,E.__)("Saving"):m?(0,E.__)("Saved"):a||(0,E.__)("Save");return(0,l.createElement)(v.Button,{variant:t,className:e,"aria-disabled":m,"aria-expanded":s,isBusy:i,onClick:m?void 0:()=>c(!0),label:p,shortcut:m?void 0:la.displayShortcut.primary("s"),showTooltip:n,icon:r},p)}const{useLocation:Ii}=nt(vt.privateApis),Bi=[{kind:"postType",name:"wp_navigation"}];function Di(){const{params:e}=Ii(),{__unstableMarkLastChangeAsPersistent:t}=(0,d.useDispatch)(we.store),{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(Se.store),{dirtyCurrentEntity:r,countUnsavedChanges:o,isDirty:i,isSaving:s}=(0,d.useSelect)((t=>{const{__experimentalGetDirtyEntityRecords:n,isSavingEntityRecord:a}=t(_.store),r=n();let o=null;return 1===r.length&&(e.path?.includes("wp_global_styles")?o=r.find((e=>"globalStyles"===e.name)):e.postId&&(o=r.find((t=>t.name===e.postType&&String(t.key)===e.postId)))),{dirtyCurrentEntity:o,isDirty:r.length>0,isSaving:r.some((e=>a(e.kind,e.name,e.key))),countUnsavedChanges:r.length}}),[e.path,e.postType,e.postId]),{editEntityRecord:c,saveEditedEntityRecord:u,__experimentalSaveSpecifiedEntityEdits:m}=(0,d.useDispatch)(_.store),p=s||!i&&!ft();let g=r?(0,E.__)("Save"):(0,E.sprintf)((0,E._n)("Review %d change…","Review %d changes…",o),o);s&&(g=(0,E.__)("Saving"));return(0,l.createElement)(v.__experimentalHStack,{className:"edit-site-save-hub",alignment:"right",spacing:4},r?(0,l.createElement)(v.Button,{variant:"primary",onClick:async()=>{if(!r)return;const{kind:e,name:o,key:i,property:s}=r;try{"root"===r.kind&&"site"===o?await m("root","site",void 0,[s]):(Bi.some((t=>t.kind===e&&t.name===o))&&c(e,o,i,{status:"publish"}),await u(e,o,i)),t(),n((0,E.__)("Site updated."),{type:"snackbar"})}catch(e){a(`${(0,E.__)("Saving failed.")} ${e}`)}},isBusy:s,disabled:s,"aria-disabled":s,className:"edit-site-save-hub__button"},g):(0,l.createElement)(Pi,{className:"edit-site-save-hub__button",variant:p?null:"primary",showTooltip:!1,icon:p&&!s?b:null,defaultLabel:g}))}function Ri({onSave:e,onClose:t}){const[n,a]=(0,l.useState)(!1),[r,o]=(0,l.useState)(""),{saveEntityRecord:i}=(0,d.useDispatch)(_.store),{createErrorNotice:s,createSuccessNotice:c}=(0,d.useDispatch)(Se.store);return(0,l.createElement)(v.Modal,{title:(0,E.__)("Draft a new page"),onRequestClose:t},(0,l.createElement)("form",{onSubmit:async function(t){if(t.preventDefault(),!n){a(!0);try{const t=await i("postType","page",{status:"draft",title:r,slug:(0,be.kebabCase)(r||(0,E.__)("No title"))},{throwOnError:!0});e(t),c((0,E.sprintf)((0,E.__)('"%s" successfully created.'),t.title?.rendered||r),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the page.");s(t,{type:"snackbar"})}finally{a(!1)}}}},(0,l.createElement)(v.__experimentalVStack,{spacing:3},(0,l.createElement)(v.TextControl,{label:(0,E.__)("Page title"),onChange:o,placeholder:(0,E.__)("No title"),value:r}),(0,l.createElement)(v.__experimentalHStack,{spacing:2,justify:"end"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:t},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit",isBusy:n,"aria-disabled":n},(0,E.__)("Create draft"))))))}const{useHistory:Li}=nt(vt.privateApis),Ai=({postType:e="page",postId:t,...n})=>{const a=St({postType:e,postId:t},{backPath:"/page"});return(0,l.createElement)(na,{...a,...n})};function Fi(){const{records:e,isResolving:t}=(0,_.useEntityRecords)("postType","page",{status:"any",per_page:-1}),{records:n,isResolving:a}=(0,_.useEntityRecords)("postType","wp_template",{per_page:-1}),r=n?.filter((({slug:e})=>["404","search"].includes(e))),o=n?.find((e=>"front-page"===e.slug))||n?.find((e=>"home"===e.slug))||n?.find((e=>"index"===e.slug)),i=e?.concat(r,[o]),{frontPage:s,postsPage:c}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=t("root","site");return{frontPage:n?.page_on_front,postsPage:n?.page_for_posts}}),[]),u=s===c,m=e&&[...e];if(!u&&m?.length){const e=m.findIndex((e=>e.id===s)),t=m.splice(e,1);m?.splice(0,0,...t);const n=m.findIndex((e=>e.id===c)),a=m.splice(n,1);m.splice(1,0,...a)}const[p,g]=(0,l.useState)(!1),h=Li(),y=e=>{let t=qn;const a=c&&c===e?(n?.find((e=>"home"===e.slug))||n?.find((e=>"index"===e.slug)))?.id:null;switch(e){case s:t=or;break;case c:t=ir}return{icon:t,postType:a?"wp_template":"page",postId:a||e}};return(0,l.createElement)(l.Fragment,null,p&&(0,l.createElement)(Ri,{onSave:({type:e,id:t})=>{h.push({postId:t,postType:e,canvas:"edit"}),g(!1)},onClose:()=>g(!1)}),(0,l.createElement)(Jn,{title:(0,E.__)("Pages"),description:(0,E.__)("Browse and edit pages on your site."),actions:(0,l.createElement)(Xn,{icon:vr,label:(0,E.__)("Draft a new page"),onClick:()=>g(!0)}),content:(0,l.createElement)(l.Fragment,null,(t||a)&&(0,l.createElement)(v.__experimentalItemGroup,null,(0,l.createElement)(v.__experimentalItem,null,(0,E.__)("Loading pages"))),!(t||a)&&(0,l.createElement)(v.__experimentalItemGroup,null,!i?.length&&(0,l.createElement)(v.__experimentalItem,null,(0,E.__)("No page found")),u&&o&&(0,l.createElement)(Ai,{postType:"wp_template",postId:o.id,key:o.id,icon:or,withChevron:!0},(0,l.createElement)(v.__experimentalTruncate,{numberOfLines:1},(0,At.decodeEntities)(o.title?.rendered||(0,E.__)("(no title)")))),m?.map((({id:e,title:t})=>(0,l.createElement)(Ai,{...y(e),key:e,withChevron:!0},(0,l.createElement)(v.__experimentalTruncate,{numberOfLines:1},(0,At.decodeEntities)(t?.rendered||(0,E.__)("(no title)")))))))),footer:(0,l.createElement)(v.__experimentalVStack,{spacing:0},r?.map((e=>(0,l.createElement)(Ai,{postType:"wp_template",postId:e.id,key:e.id,icon:Yn,withChevron:!0},(0,l.createElement)(v.__experimentalTruncate,{numberOfLines:1},(0,At.decodeEntities)(e.title?.rendered||(0,E.__)("(no title)")))))),(0,l.createElement)(na,{className:"edit-site-sidebar-navigation-screen-pages__see-all",href:"edit.php?post_type=page",onClick:()=>{document.location="edit.php?post_type=page"}},(0,E.__)("Manage all pages")))}))}var Vi=window.wp.dom,zi=window.wp.escapeHtml,Oi=window.wp.wordcount;function Hi({status:e,date:t,short:n}){const a=(0,sa.humanTimeDiff)(t);let r=e;switch(e){case"publish":r=t?(0,l.createInterpolateElement)((0,E.sprintf)((0,E.__)("Published <time>%s</time>"),a),{time:(0,l.createElement)("time",{dateTime:t})}):(0,E.__)("Published");break;case"future":const e=(0,sa.dateI18n)(n?"M j":"F j",(0,sa.getDate)(t));r=t?(0,l.createInterpolateElement)((0,E.sprintf)((0,E.__)("Scheduled: <time>%s</time>"),e),{time:(0,l.createElement)("time",{dateTime:t})}):(0,E.__)("Scheduled");break;case"draft":r=(0,E.__)("Draft");break;case"pending":r=(0,E.__)("Pending");break;case"private":r=(0,E.__)("Private");break;case"protected":r=(0,E.__)("Password protected")}return(0,l.createElement)("div",{className:y()("edit-site-sidebar-navigation-screen-page__status",{[`has-status has-${e}-status`]:!!e})},r)}const Gi=189;function Ui({id:e}){const{record:t}=(0,_.useEntityRecord)("postType","page",e),{parentTitle:n,templateTitle:a}=(0,d.useSelect)((e=>{const{getEditedPostContext:n}=nt(e(Gn)),a=n(),r=e(_.store).getEntityRecords("postType","wp_template",{per_page:-1}),o="page"===a?.postType?a?.templateSlug:null,i=r&&o?r.find((e=>e.slug===o))?.title?.rendered:null;return{parentTitle:t?.parent?e(_.store).getEntityRecord("postType","page",t.parent,{_fields:["title"]})?.title?.rendered:null,templateTitle:i}}),[t?.parent]);return(0,l.createElement)(uo,{spacing:5,title:(0,E.__)("Details")},function(e){if(!e)return[];const t=[{label:(0,E.__)("Status"),value:(0,l.createElement)(Hi,{status:e?.password?"protected":e.status,date:e?.date,short:!0})},{label:(0,E.__)("Slug"),value:(0,l.createElement)(v.__experimentalTruncate,{numberOfLines:1},(0,Et.safeDecodeURIComponent)(e.slug))}];e?.templateTitle&&t.push({label:(0,E.__)("Template"),value:(0,At.decodeEntities)(e.templateTitle)}),e?.parentTitle&&t.push({label:(0,E.__)("Parent"),value:(0,At.decodeEntities)(e.parentTitle||(0,E.__)("(no title)"))});const n=(0,E._x)("words","Word count type. Do not translate!"),a=e?.content?.rendered?(0,Oi.count)(e.content.rendered,n):0,r=Math.round(a/Gi);return a&&t.push({label:(0,E.__)("Words"),value:a.toLocaleString()||(0,E.__)("Unknown")},{label:(0,E.__)("Time to read"),value:r>1?(0,E.sprintf)((0,E.__)("%s mins"),r.toLocaleString()):(0,E.__)("< 1 min")}),t}({parentTitle:n,templateTitle:a,...t}).map((({label:e,value:t})=>(0,l.createElement)(lo,{key:e},(0,l.createElement)(so,null,e),(0,l.createElement)(co,null,t)))))}function $i({postId:e,onRemove:t}){const{createSuccessNotice:n,createErrorNotice:a}=(0,d.useDispatch)(Se.store),{deleteEntityRecord:r}=(0,d.useDispatch)(_.store),o=(0,d.useSelect)((t=>t(_.store).getEntityRecord("postType","page",e)),[e]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuItem,{onClick:()=>async function(){try{await r("postType","page",e,{},{throwOnError:!0}),n((0,E.sprintf)((0,E.__)('"%s" moved to the Trash.'),(0,At.decodeEntities)(o.title.rendered)),{type:"snackbar",id:"edit-site-page-trashed"}),t?.()}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while moving the page to the trash.");a(t,{type:"snackbar"})}}(),isDestructive:!0},(0,E.__)("Move to Trash")))}function ji({postId:e,className:t,toggleProps:n,onRemove:a}){return(0,l.createElement)(v.DropdownMenu,{icon:le,label:(0,E.__)("Actions"),className:t,toggleProps:n},(()=>(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)($i,{postId:e,onRemove:a}))))}function Wi(){const e=(0,v.__experimentalUseNavigator)(),{setCanvasMode:t}=nt((0,d.useDispatch)(Gn)),{params:{postId:n}}=(0,v.__experimentalUseNavigator)(),{record:a}=(0,_.useEntityRecord)("postType","page",n),{featuredMediaAltText:r,featuredMediaSourceUrl:o}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=a?.featured_media?t("postType","attachment",a?.featured_media):null;return{featuredMediaSourceUrl:n?.media_details.sizes?.medium?.source_url||n?.source_url,featuredMediaAltText:(0,zi.escapeAttribute)(n?.alt_text||n?.description?.raw||"")}}),[a]),i=r?(0,At.decodeEntities)(r):(0,At.decodeEntities)(a?.title?.rendered||(0,E.__)("Featured image"));return a?(0,l.createElement)(Jn,{title:(0,At.decodeEntities)(a?.title?.rendered||(0,E.__)("(no title)")),actions:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ji,{postId:n,toggleProps:{as:Xn},onRemove:()=>{e.goTo("/page")}}),(0,l.createElement)(Xn,{onClick:()=>t("edit"),label:(0,E.__)("Edit"),icon:oa})),meta:(0,l.createElement)(v.ExternalLink,{className:"edit-site-sidebar-navigation-screen__page-link",href:a.link},(0,Et.filterURLForDisplay)((0,Et.safeDecodeURIComponent)(a.link))),content:(0,l.createElement)(l.Fragment,null,!!o&&(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-sidebar-navigation-screen-page__featured-image-wrapper",alignment:"left",spacing:2},(0,l.createElement)("div",{className:"edit-site-sidebar-navigation-screen-page__featured-image has-image"},(0,l.createElement)("img",{alt:i,src:o}))),!!a?.excerpt?.rendered&&(0,l.createElement)(v.__experimentalTruncate,{className:"edit-site-sidebar-navigation-screen-page__excerpt",numberOfLines:3},(0,Vi.__unstableStripHTML)(a.excerpt.rendered)),(0,l.createElement)(Ui,{id:n})),footer:(0,l.createElement)(go,{lastModifiedDateTime:a?.modified})}):null}const{useLocation:Zi}=nt(vt.privateApis);function qi(){return qo(),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/"},(0,l.createElement)(rr,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/navigation"},(0,l.createElement)(Ci,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/navigation/:postType/:postId"},(0,l.createElement)(Ei,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/wp_global_styles"},(0,l.createElement)(tr,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/page"},(0,l.createElement)(Fi,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/page/:postId"},(0,l.createElement)(Wi,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/:postType(wp_template)"},(0,l.createElement)(Zr,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/patterns"},(0,l.createElement)(Oo,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/:postType(wp_template|wp_template_part)/all"},(0,l.createElement)(Mi,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/:postType(wp_template_part|wp_block)/:postId"},(0,l.createElement)(ci,null)),(0,l.createElement)(v.__experimentalNavigatorScreen,{path:"/:postType(wp_template)/:postId"},(0,l.createElement)(ho,null)))}var Yi=(0,l.memo)((function(){const{params:e}=Zi(),t=(0,l.useRef)(Zo(e));return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalNavigatorProvider,{className:"edit-site-sidebar__content",initialPath:t.current},(0,l.createElement)(qi,null)),(0,l.createElement)(Di,null))}));var Ki=(0,l.createElement)(f.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z"}));var Xi=(0,l.createElement)(f.SVG,{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z"}));function Qi({className:e,identifier:t,title:n,icon:a,children:r,closeLabel:o,header:i,headerClassName:s,panelClassName:c}){const u=(0,d.useSelect)((e=>e(Gn).getSettings().showIconLabels),[]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ae,{className:e,scope:"core/edit-site",identifier:t,title:n,icon:a,closeLabel:o,header:i,headerClassName:s,panelClassName:c,showIconLabels:u},r),(0,l.createElement)(Q,{scope:"core/edit-site",identifier:t,icon:a},n))}function Ji({className:e,...t}){return(0,l.createElement)(v.Icon,{className:y()(e,"edit-site-global-styles-icon-with-current-color"),...t})}function es({icon:e,children:t,...n}){return(0,l.createElement)(v.__experimentalItem,{...n},e&&(0,l.createElement)(v.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(Ji,{icon:e,size:24}),(0,l.createElement)(v.FlexItem,null,t)),!e&&t)}function ts(e){return(0,l.createElement)(v.__experimentalNavigatorButton,{as:es,...e})}var ns=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M6.9 7L3 17.8h1.7l1-2.8h4.1l1 2.8h1.7L8.6 7H6.9zm-.7 6.6l1.5-4.3 1.5 4.3h-3zM21.6 17c-.1.1-.2.2-.3.2-.1.1-.2.1-.4.1s-.3-.1-.4-.2c-.1-.1-.1-.3-.1-.6V12c0-.5 0-1-.1-1.4-.1-.4-.3-.7-.5-1-.2-.2-.5-.4-.9-.5-.4 0-.8-.1-1.3-.1s-1 .1-1.4.2c-.4.1-.7.3-1 .4-.2.2-.4.3-.6.5-.1.2-.2.4-.2.7 0 .3.1.5.2.8.2.2.4.3.8.3.3 0 .6-.1.8-.3.2-.2.3-.4.3-.7 0-.3-.1-.5-.2-.7-.2-.2-.4-.3-.6-.4.2-.2.4-.3.7-.4.3-.1.6-.1.8-.1.3 0 .6 0 .8.1.2.1.4.3.5.5.1.2.2.5.2.9v1.1c0 .3-.1.5-.3.6-.2.2-.5.3-.9.4-.3.1-.7.3-1.1.4-.4.1-.8.3-1.1.5-.3.2-.6.4-.8.7-.2.3-.3.7-.3 1.2 0 .6.2 1.1.5 1.4.3.4.9.5 1.6.5.5 0 1-.1 1.4-.3.4-.2.8-.6 1.1-1.1 0 .4.1.7.3 1 .2.3.6.4 1.2.4.4 0 .7-.1.9-.2.2-.1.5-.3.7-.4h-.3zm-3-.9c-.2.4-.5.7-.8.8-.3.2-.6.2-.8.2-.4 0-.6-.1-.9-.3-.2-.2-.3-.6-.3-1.1 0-.5.1-.9.3-1.2s.5-.5.8-.7c.3-.2.7-.3 1-.5.3-.1.6-.3.7-.6v3.4z"}));var as=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M17.2 10.9c-.5-1-1.2-2.1-2.1-3.2-.6-.9-1.3-1.7-2.1-2.6L12 4l-1 1.1c-.6.9-1.3 1.7-2 2.6-.8 1.2-1.5 2.3-2 3.2-.6 1.2-1 2.2-1 3 0 3.4 2.7 6.1 6.1 6.1s6.1-2.7 6.1-6.1c0-.8-.3-1.8-1-3zm-5.1 7.6c-2.5 0-4.6-2.1-4.6-4.6 0-.3.1-1 .8-2.3.5-.9 1.1-1.9 2-3.1.7-.9 1.3-1.7 1.8-2.3.7.8 1.3 1.6 1.8 2.3.8 1.1 1.5 2.2 2 3.1.7 1.3.8 2 .8 2.3 0 2.5-2.1 4.6-4.6 4.6z"}));const{useHasDimensionsPanel:rs,useHasTypographyPanel:os,useHasColorPanel:is,useGlobalSetting:ss,useSettingsForBlockElement:ls}=nt(we.privateApis);var cs=function(){const[e]=ss(""),t=ls(e),n=os(t),a=is(t),r=rs(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.__experimentalItemGroup,null,n&&(0,l.createElement)(ts,{icon:ns,path:"/typography","aria-label":(0,E.__)("Typography styles")},(0,E.__)("Typography")),a&&(0,l.createElement)(ts,{icon:as,path:"/colors","aria-label":(0,E.__)("Colors styles")},(0,E.__)("Colors")),r&&(0,l.createElement)(ts,{icon:Yn,path:"/layout","aria-label":(0,E.__)("Layout styles")},(0,E.__)("Layout"))))};var us=function(){const{useGlobalStyle:e}=nt(we.privateApis),[t]=e("css"),{hasVariations:n,canEditCSS:a}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a,__experimentalGetCurrentThemeGlobalStylesVariations:r}=e(_.store),o=a(),i=o?n("root","globalStyles",o):void 0;return{hasVariations:!!r()?.length,canEditCSS:null!==(t=!!i?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]);return(0,l.createElement)(v.Card,{size:"small",className:"edit-site-global-styles-screen-root"},(0,l.createElement)(v.CardBody,null,(0,l.createElement)(v.__experimentalVStack,{spacing:4},(0,l.createElement)(v.Card,null,(0,l.createElement)(v.CardMedia,null,(0,l.createElement)(ka,null))),n&&(0,l.createElement)(v.__experimentalItemGroup,null,(0,l.createElement)(ts,{path:"/variations","aria-label":(0,E.__)("Browse styles")},(0,l.createElement)(v.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(v.FlexItem,null,(0,E.__)("Browse styles")),(0,l.createElement)(Ji,{icon:(0,E.isRTL)()?me:pe})))),(0,l.createElement)(cs,null))),(0,l.createElement)(v.CardDivider,null),(0,l.createElement)(v.CardBody,null,(0,l.createElement)(v.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4},(0,E.__)("Customize the appearance of specific blocks for the whole site.")),(0,l.createElement)(v.__experimentalItemGroup,null,(0,l.createElement)(ts,{path:"/blocks","aria-label":(0,E.__)("Blocks styles")},(0,l.createElement)(v.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(v.FlexItem,null,(0,E.__)("Blocks")),(0,l.createElement)(Ji,{icon:(0,E.isRTL)()?me:pe}))))),a&&!!t&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.CardDivider,null),(0,l.createElement)(v.CardBody,null,(0,l.createElement)(v.__experimentalSpacer,{as:"p",paddingTop:2,paddingX:"13px",marginBottom:4},(0,E.__)("Add your own CSS to customize the appearance and layout of your site.")),(0,l.createElement)(v.__experimentalItemGroup,null,(0,l.createElement)(ts,{path:"/css","aria-label":(0,E.__)("Additional CSS")},(0,l.createElement)(v.__experimentalHStack,{justify:"space-between"},(0,l.createElement)(v.FlexItem,null,(0,E.__)("Additional CSS")),(0,l.createElement)(Ji,{icon:(0,E.isRTL)()?me:pe})))))))};function ds(e){const t=function(e){return e?.filter((e=>"block"===e.source))}((0,d.useSelect)((t=>{const{getBlockStyles:n}=t(c.store);return n(e)}),[e]));return t}function ms({name:e}){const t=ds(e);return(0,l.createElement)(v.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},t.map(((t,n)=>t?.isDefault?null:(0,l.createElement)(ts,{key:n,path:"/blocks/"+encodeURIComponent(e)+"/variations/"+encodeURIComponent(t.name),"aria-label":t.label},t.label))))}var ps=function({title:e,description:t}){return(0,l.createElement)(v.__experimentalVStack,{spacing:0},(0,l.createElement)(v.__experimentalView,null,(0,l.createElement)(v.__experimentalSpacer,{marginBottom:0,paddingX:4,paddingY:3},(0,l.createElement)(v.__experimentalHStack,{spacing:2},(0,l.createElement)(v.__experimentalNavigatorToParentButton,{style:{minWidth:24,padding:0},icon:(0,E.isRTL)()?pe:me,isSmall:!0,"aria-label":(0,E.__)("Navigate to the previous view")}),(0,l.createElement)(v.__experimentalSpacer,null,(0,l.createElement)(v.__experimentalHeading,{className:"edit-site-global-styles-header",level:2,size:13},e))))),t&&(0,l.createElement)("p",{className:"edit-site-global-styles-header__description"},t))};const{useHasDimensionsPanel:_s,useHasTypographyPanel:gs,useHasBorderPanel:hs,useGlobalSetting:ys,useSettingsForBlockElement:vs,useHasColorPanel:Es}=nt(we.privateApis);function fs(e){const[t]=ys("",e),n=vs(t,e),a=gs(n),r=Es(n),o=hs(n),i=_s(n),s=o||i,l=!!ds(e)?.length;return a||r||s||l}function bs({block:e}){if(!fs(e.name))return null;const t=(0,E.sprintf)((0,E.__)("%s block styles"),e.title);return(0,l.createElement)(ts,{path:"/blocks/"+encodeURIComponent(e.name),"aria-label":t},(0,l.createElement)(v.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(we.BlockIcon,{icon:e.icon}),(0,l.createElement)(v.FlexItem,null,e.title)))}var ws=function(){const e=function(){const e=(0,d.useSelect)((e=>e(c.store).getBlockTypes()),[]),{core:t,noncore:n}=e.reduce(((e,t)=>{const{core:n,noncore:a}=e;return(t.name.startsWith("core/")?n:a).push(t),e}),{core:[],noncore:[]});return[...t,...n]}(),[t,n]=(0,l.useState)(""),a=(0,re.useDebounce)(Lt.speak,500),r=(0,d.useSelect)((e=>e(c.store).isMatchingSearchTerm),[]),o=(0,l.useMemo)((()=>t?e.filter((e=>r(e,t))):e),[t,e,r]),i=(0,l.useRef)();return(0,l.useEffect)((()=>{if(!t)return;const e=i.current.childElementCount,n=(0,E.sprintf)((0,E._n)("%d result found.","%d results found.",e),e);a(n,e)}),[t,a]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ps,{title:(0,E.__)("Blocks"),description:(0,E.__)("Customize the appearance of specific blocks and for the whole site.")}),(0,l.createElement)(v.SearchControl,{__nextHasNoMarginBottom:!0,className:"edit-site-block-types-search",onChange:n,value:t,label:(0,E.__)("Search for blocks"),placeholder:(0,E.__)("Search")}),(0,l.createElement)("div",{ref:i,className:"edit-site-block-types-item-list"},o.map((e=>(0,l.createElement)(bs,{block:e,key:"menu-itemblock-"+e.name})))))};var Ss=({name:e,variation:t=""})=>{const n=(0,c.getBlockType)(e)?.example,a={...n,attributes:{...n?.attributes,className:"is-style-"+t}},r=n&&(0,c.getBlockFromExample)(e,t?a:n),o=n?.viewportWidth||null,i="150px";return n?(0,l.createElement)(v.__experimentalSpacer,{marginX:4,marginBottom:4},(0,l.createElement)("div",{className:"edit-site-global-styles__block-preview-panel",style:{maxHeight:i,boxSizing:"initial"}},(0,l.createElement)(we.BlockPreview,{blocks:r,viewportWidth:o,minHeight:i,additionalStyles:[{css:`\n\t\t\t\t\t\t\t\tbody{\n\t\t\t\t\t\t\t\t\tmin-height:${i};\n\t\t\t\t\t\t\t\t\tdisplay:flex;align-items:center;justify-content:center;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t`}]}))):null};var ks=function({children:e,level:t}){return(0,l.createElement)(v.__experimentalHeading,{className:"edit-site-global-styles-subtitle",level:null!=t?t:2},e)};function Cs(e){if(!e)return e;const t=e.color||e.width;return!e.style&&t?{...e,style:"solid"}:!e.style||t?e:void 0}const{useHasDimensionsPanel:xs,useHasTypographyPanel:Ts,useHasBorderPanel:Ns,useGlobalSetting:Ms,useSettingsForBlockElement:Ps,useHasColorPanel:Is,useHasEffectsPanel:Bs,useHasFiltersPanel:Ds,useGlobalStyle:Rs,BorderPanel:Ls,ColorPanel:As,TypographyPanel:Fs,DimensionsPanel:Vs,EffectsPanel:zs,FiltersPanel:Os,AdvancedPanel:Hs}=nt(we.privateApis);var Gs=function({name:e,variation:t}){let n=[];t&&(n=["variations",t].concat(n));const a=n.join("."),[r]=Rs(a,e,"user",{shouldDecodeEncode:!1}),[o,i]=Rs(a,e,"all",{shouldDecodeEncode:!1}),[s,u]=Ms("",e),m=Ps(s,e),p=(0,c.getBlockType)(e),g=ds(e),h=Ts(m),y=Is(m),f=Ns(m),b=xs(m),w=Bs(m),S=Ds(m),k=!!g?.length&&!t,{canEditCSS:C}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a(),o=r?n("root","globalStyles",r):void 0;return{canEditCSS:null!==(t=!!o?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),x=t?g.find((e=>e.name===t)):null,T=(0,l.useMemo)((()=>({...o,layout:m.layout})),[o,m.layout]),N=(0,l.useMemo)((()=>({...r,layout:m.layout})),[r,m.layout]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ps,{title:t?x.label:p.title}),(0,l.createElement)(Ss,{name:e,variation:t}),k&&(0,l.createElement)("div",{className:"edit-site-global-styles-screen-variations"},(0,l.createElement)(v.__experimentalVStack,{spacing:3},(0,l.createElement)(ks,null,(0,E.__)("Style Variations")),(0,l.createElement)(ms,{name:e}))),y&&(0,l.createElement)(As,{inheritedValue:o,value:r,onChange:i,settings:m}),h&&(0,l.createElement)(Fs,{inheritedValue:o,value:r,onChange:i,settings:m}),b&&(0,l.createElement)(Vs,{inheritedValue:T,value:N,onChange:e=>{const t={...e};delete t.layout,i(t),e.layout!==m.layout&&u({...s,layout:e.layout})},settings:m,includeLayoutControls:!0}),f&&(0,l.createElement)(Ls,{inheritedValue:o,value:r,onChange:e=>{if(!e?.border)return void i(e);const{radius:t,...n}=e.border,a=function(e){return e?(0,v.__experimentalHasSplitBorders)(e)?{top:Cs(e.top),right:Cs(e.right),bottom:Cs(e.bottom),left:Cs(e.left)}:Cs(e):e}(n),r=(0,v.__experimentalHasSplitBorders)(a)?{color:null,style:null,width:null,...a}:{top:a,right:a,bottom:a,left:a};i({...e,border:{...r,radius:t}})},settings:m}),w&&(0,l.createElement)(zs,{inheritedValue:T,value:N,onChange:i,settings:m,includeLayoutControls:!0}),S&&(0,l.createElement)(Os,{inheritedValue:T,value:N,onChange:i,settings:{...m,color:{...m.color,customDuotone:!1}},includeLayoutControls:!0}),C&&(0,l.createElement)(v.PanelBody,{title:(0,E.__)("Advanced"),initialOpen:!1},(0,l.createElement)("p",null,(0,E.sprintf)((0,E.__)("Add your own CSS to customize the appearance of the %s block."),p?.title)),(0,l.createElement)(Hs,{value:r,onChange:i,inheritedValue:o})))};const{useGlobalStyle:Us}=nt(we.privateApis);function $s({parentMenu:e,element:t,label:n}){const a="text"!==t&&t?`elements.${t}.`:"",r="link"===t?{textDecoration:"underline"}:{},[o]=Us(a+"typography.fontFamily"),[i]=Us(a+"typography.fontStyle"),[s]=Us(a+"typography.fontWeight"),[c]=Us(a+"typography.letterSpacing"),[u]=Us(a+"color.background"),[d]=Us(a+"color.gradient"),[m]=Us(a+"color.text"),p=(0,E.sprintf)((0,E.__)("Typography %s styles"),n);return(0,l.createElement)(ts,{path:e+"/typography/"+t,"aria-label":p},(0,l.createElement)(v.__experimentalHStack,{justify:"flex-start"},(0,l.createElement)(v.FlexItem,{className:"edit-site-global-styles-screen-typography__indicator",style:{fontFamily:null!=o?o:"serif",background:null!=d?d:u,color:m,fontStyle:i,fontWeight:s,letterSpacing:c,...r}},(0,E.__)("Aa")),(0,l.createElement)(v.FlexItem,null,n)))}var js=function(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ps,{title:(0,E.__)("Typography"),description:(0,E.__)("Manage the typography settings for different elements.")}),(0,l.createElement)(Ss,null),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-typography"},(0,l.createElement)(v.__experimentalVStack,{spacing:3},(0,l.createElement)(ks,{level:3},(0,E.__)("Elements")),(0,l.createElement)(v.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,l.createElement)($s,{parentMenu:"",element:"text",label:(0,E.__)("Text")}),(0,l.createElement)($s,{parentMenu:"",element:"link",label:(0,E.__)("Links")}),(0,l.createElement)($s,{parentMenu:"",element:"heading",label:(0,E.__)("Headings")}),(0,l.createElement)($s,{parentMenu:"",element:"caption",label:(0,E.__)("Captions")}),(0,l.createElement)($s,{parentMenu:"",element:"button",label:(0,E.__)("Buttons")})))))};const{useGlobalStyle:Ws,useGlobalSetting:Zs,useSettingsForBlockElement:qs,TypographyPanel:Ys}=nt(we.privateApis);function Ks({element:e,headingLevel:t}){let n=[];"heading"===e?n=n.concat(["elements",t]):e&&"text"!==e&&(n=n.concat(["elements",e]));const a=n.join("."),[r]=Ws(a,void 0,"user",{shouldDecodeEncode:!1}),[o,i]=Ws(a,void 0,"all",{shouldDecodeEncode:!1}),[s]=Zs(""),c=qs(s,void 0,"heading"===e?t:e);return(0,l.createElement)(Ys,{inheritedValue:o,value:r,onChange:i,settings:c})}const{useGlobalStyle:Xs}=nt(we.privateApis);function Qs({name:e,element:t,headingLevel:n}){let a="";"heading"===t?a=`elements.${n}.`:t&&"text"!==t&&(a=`elements.${t}.`);const[r]=Xs(a+"typography.fontFamily",e),[o]=Xs(a+"color.gradient",e),[i]=Xs(a+"color.background",e),[s]=Xs(a+"color.text",e),[c]=Xs(a+"typography.fontSize",e),[u]=Xs(a+"typography.fontStyle",e),[d]=Xs(a+"typography.fontWeight",e),[m]=Xs(a+"typography.letterSpacing",e),p="link"===t?{textDecoration:"underline"}:{};return(0,l.createElement)("div",{className:"edit-site-typography-preview",style:{fontFamily:null!=r?r:"serif",background:null!=o?o:i,color:s,fontSize:c,fontStyle:u,fontWeight:d,letterSpacing:m,...p}},"Aa")}const Js={text:{description:(0,E.__)("Manage the fonts used on the site."),title:(0,E.__)("Text")},link:{description:(0,E.__)("Manage the fonts and typography used on the links."),title:(0,E.__)("Links")},heading:{description:(0,E.__)("Manage the fonts and typography used on headings."),title:(0,E.__)("Headings")},caption:{description:(0,E.__)("Manage the fonts and typography used on captions."),title:(0,E.__)("Captions")},button:{description:(0,E.__)("Manage the fonts and typography used on buttons."),title:(0,E.__)("Buttons")}};var el=function({element:e}){const[t,n]=(0,l.useState)("heading");return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ps,{title:Js[e].title,description:Js[e].description}),(0,l.createElement)(v.__experimentalSpacer,{marginX:4},(0,l.createElement)(Qs,{element:e,headingLevel:t})),"heading"===e&&(0,l.createElement)(v.__experimentalSpacer,{marginX:4,marginBottom:"1em"},(0,l.createElement)(v.__experimentalToggleGroupControl,{label:(0,E.__)("Select heading level"),hideLabelFromVision:!0,value:t,onChange:n,isBlock:!0,size:"__unstable-large",__nextHasNoMarginBottom:!0},(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"heading",label:(0,E.__)("All")}),(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"h1",label:(0,E.__)("H1")}),(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"h2",label:(0,E.__)("H2")}),(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"h3",label:(0,E.__)("H3")}),(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"h4",label:(0,E.__)("H4")}),(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"h5",label:(0,E.__)("H5")}),(0,l.createElement)(v.__experimentalToggleGroupControlOption,{value:"h6",label:(0,E.__)("H6")}))),(0,l.createElement)(Ks,{element:e,headingLevel:t}))};var tl=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/SVG"},(0,l.createElement)(f.Path,{d:"M17.192 6.75L15.47 5.03l1.06-1.06 3.537 3.53-3.537 3.53-1.06-1.06 1.723-1.72h-3.19c-.602 0-.993.202-1.28.498-.309.319-.538.792-.695 1.383-.13.488-.222 1.023-.296 1.508-.034.664-.116 1.413-.303 2.117-.193.721-.513 1.467-1.068 2.04-.575.594-1.359.954-2.357.954H4v-1.5h4.003c.601 0 .993-.202 1.28-.498.308-.319.538-.792.695-1.383.149-.557.216-1.093.288-1.662l.039-.31a9.653 9.653 0 0 1 .272-1.653c.193-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954h3.19zM8.004 6.75c.8 0 1.46.23 1.988.628a6.24 6.24 0 0 0-.684 1.396 1.725 1.725 0 0 0-.024-.026c-.287-.296-.679-.498-1.28-.498H4v-1.5h4.003zM12.699 14.726c-.161.459-.38.94-.684 1.396.527.397 1.188.628 1.988.628h3.19l-1.722 1.72 1.06 1.06L20.067 16l-3.537-3.53-1.06 1.06 1.723 1.72h-3.19c-.602 0-.993-.202-1.28-.498a1.96 1.96 0 0 1-.024-.026z"}));var nl=function({className:e,...t}){return(0,l.createElement)(v.Flex,{className:y()("edit-site-global-styles__color-indicator-wrapper",e),...t})};const{useGlobalSetting:al}=nt(we.privateApis),rl=[];var ol=function({name:e}){const[t]=al("color.palette.custom"),[n]=al("color.palette.theme"),[a]=al("color.palette.default"),[r]=al("color.defaultPalette",e),[o]=function(e){const[t,n]=at("color.palette.theme",e);return window.__experimentalEnableColorRandomizer?[function(){const e=Math.floor(225*Math.random()),a=t.map((t=>{const{color:n}=t,a=Ke(n).rotate(e).toHex();return{...t,color:a}}));n(a)}]:[]}(),i=(0,l.useMemo)((()=>[...t||rl,...n||rl,...a&&r?a:rl]),[t,n,a,r]),s=e?"/blocks/"+encodeURIComponent(e)+"/colors/palette":"/colors/palette",c=i.length>0?(0,E.sprintf)((0,E._n)("%d color","%d colors",i.length),i.length):(0,E.__)("Add custom colors");return(0,l.createElement)(v.__experimentalVStack,{spacing:3},(0,l.createElement)(ks,{level:3},(0,E.__)("Palette")),(0,l.createElement)(v.__experimentalItemGroup,{isBordered:!0,isSeparated:!0},(0,l.createElement)(ts,{path:s,"aria-label":(0,E.__)("Color palettes")},(0,l.createElement)(v.__experimentalHStack,{direction:0===i.length?"row-reverse":"row"},(0,l.createElement)(v.__experimentalZStack,{isLayered:!1,offset:-8},i.slice(0,5).map((({color:e},t)=>(0,l.createElement)(nl,{key:`${e}-${t}`},(0,l.createElement)(v.ColorIndicator,{colorValue:e}))))),(0,l.createElement)(v.FlexItem,null,c)))),window.__experimentalEnableColorRandomizer&&n?.length>0&&(0,l.createElement)(v.Button,{variant:"secondary",icon:tl,onClick:o},(0,E.__)("Randomize colors")))};const{useGlobalStyle:il,useGlobalSetting:sl,useSettingsForBlockElement:ll,ColorPanel:cl}=nt(we.privateApis);var ul=function(){const[e]=il("",void 0,"user",{shouldDecodeEncode:!1}),[t,n]=il("",void 0,"all",{shouldDecodeEncode:!1}),[a]=sl(""),r=ll(a);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ps,{title:(0,E.__)("Colors"),description:(0,E.__)("Manage palettes and the default color of different global elements on the site.")}),(0,l.createElement)(Ss,null),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-colors"},(0,l.createElement)(v.__experimentalVStack,{spacing:10},(0,l.createElement)(ol,null),(0,l.createElement)(cl,{inheritedValue:t,value:e,onChange:n,settings:r}))))};const{useGlobalSetting:dl}=nt(we.privateApis),ml={placement:"bottom-start",offset:8};function pl({name:e}){const[t,n]=dl("color.palette.theme",e),[a]=dl("color.palette.theme",e,"base"),[r,o]=dl("color.palette.default",e),[i]=dl("color.palette.default",e,"base"),[s,c]=dl("color.palette.custom",e),[u]=dl("color.defaultPalette",e),d=(0,re.useViewportMatch)("small","<")?ml:void 0;return(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-global-styles-color-palette-panel",spacing:10},!!t&&!!t.length&&(0,l.createElement)(v.__experimentalPaletteEdit,{canReset:t!==a,canOnlyChangeValues:!0,colors:t,onChange:n,paletteLabel:(0,E.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:d}),!!r&&!!r.length&&!!u&&(0,l.createElement)(v.__experimentalPaletteEdit,{canReset:r!==i,canOnlyChangeValues:!0,colors:r,onChange:o,paletteLabel:(0,E.__)("Default"),paletteLabelHeadingLevel:3,popoverProps:d}),(0,l.createElement)(v.__experimentalPaletteEdit,{colors:s,onChange:c,paletteLabel:(0,E.__)("Custom"),paletteLabelHeadingLevel:3,emptyMessage:(0,E.__)("Custom colors are empty! Add some colors to create your own color palette."),slugPrefix:"custom-",popoverProps:d}))}const{useGlobalSetting:_l}=nt(we.privateApis),gl={placement:"bottom-start",offset:8},hl=()=>{};function yl({name:e}){const[t,n]=_l("color.gradients.theme",e),[a]=_l("color.gradients.theme",e,"base"),[r,o]=_l("color.gradients.default",e),[i]=_l("color.gradients.default",e,"base"),[s,c]=_l("color.gradients.custom",e),[u]=_l("color.defaultGradients",e),[d]=_l("color.duotone.custom")||[],[m]=_l("color.duotone.default")||[],[p]=_l("color.duotone.theme")||[],[_]=_l("color.defaultDuotone"),g=[...d||[],...p||[],...m&&_?m:[]],h=(0,re.useViewportMatch)("small","<")?gl:void 0;return(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-global-styles-gradient-palette-panel",spacing:10},!!t&&!!t.length&&(0,l.createElement)(v.__experimentalPaletteEdit,{canReset:t!==a,canOnlyChangeValues:!0,gradients:t,onChange:n,paletteLabel:(0,E.__)("Theme"),paletteLabelHeadingLevel:3,popoverProps:h}),!!r&&!!r.length&&!!u&&(0,l.createElement)(v.__experimentalPaletteEdit,{canReset:r!==i,canOnlyChangeValues:!0,gradients:r,onChange:o,paletteLabel:(0,E.__)("Default"),paletteLabelLevel:3,popoverProps:h}),(0,l.createElement)(v.__experimentalPaletteEdit,{gradients:s,onChange:c,paletteLabel:(0,E.__)("Custom"),paletteLabelLevel:3,emptyMessage:(0,E.__)("Custom gradients are empty! Add some gradients to create your own palette."),slugPrefix:"custom-",popoverProps:h}),!!g&&!!g.length&&(0,l.createElement)("div",null,(0,l.createElement)(ks,{level:3},(0,E.__)("Duotone")),(0,l.createElement)(v.__experimentalSpacer,{margin:3}),(0,l.createElement)(v.DuotonePicker,{duotonePalette:g,disableCustomDuotone:!0,disableCustomColors:!0,clearable:!1,onChange:hl})))}var vl=function({name:e}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ps,{title:(0,E.__)("Palette"),description:(0,E.__)("Palettes are used to provide default color options for blocks and various design tools. Here you can edit the colors with their labels.")}),(0,l.createElement)(v.TabPanel,{tabs:[{name:"solid",title:"Solid",value:"solid"},{name:"gradient",title:"Gradient",value:"gradient"}]},(t=>(0,l.createElement)(l.Fragment,null,"solid"===t.value&&(0,l.createElement)(pl,{name:e}),"gradient"===t.value&&(0,l.createElement)(yl,{name:e})))))};const{useGlobalStyle:El,useGlobalSetting:fl,useSettingsForBlockElement:bl,DimensionsPanel:wl}=nt(we.privateApis),Sl={contentSize:!0,wideSize:!0,padding:!0,margin:!0,blockGap:!0,minHeight:!0,childLayout:!1};function kl(){const[e]=El("",void 0,"user",{shouldDecodeEncode:!1}),[t,n]=El("",void 0,"all",{shouldDecodeEncode:!1}),[a,r]=fl(""),o=bl(a),i=(0,l.useMemo)((()=>({...t,layout:o.layout})),[t,o.layout]),s=(0,l.useMemo)((()=>({...e,layout:o.layout})),[e,o.layout]);return(0,l.createElement)(wl,{inheritedValue:i,value:s,onChange:e=>{const t={...e};if(delete t.layout,n(t),e.layout!==o.layout){const t={...a,layout:e.layout};t.layout?.definitions&&delete t.layout.definitions,r(t)}},settings:o,includeLayoutControls:!0,defaultControls:Sl})}const{useHasDimensionsPanel:Cl,useGlobalSetting:xl,useSettingsForBlockElement:Tl}=nt(we.privateApis);var Nl=function(){const[e]=xl(""),t=Tl(e),n=Cl(t);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ps,{title:(0,E.__)("Layout")}),(0,l.createElement)(Ss,null),n&&(0,l.createElement)(kl,null))};var Ml=function(){const{mode:e}=(0,d.useSelect)((e=>({mode:e(we.store).__unstableGetEditorMode()})),[]),t=(0,l.useRef)(null);(0,l.useEffect)((()=>{"zoom-out"!==e&&(t.current=!1)}),[e]),(0,l.useEffect)((()=>{if("zoom-out"!==e)return n("zoom-out"),t.current=!0,()=>{t.current&&n(e)}}),[]);const{__unstableSetEditorMode:n}=(0,d.useDispatch)(we.store);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ps,{back:"/",title:(0,E.__)("Browse styles"),description:(0,E.__)("Choose a variation to change the look of the site.")}),(0,l.createElement)(v.Card,{size:"small",isBorderless:!0,className:"edit-site-global-styles-screen-style-variations"},(0,l.createElement)(v.CardBody,null,(0,l.createElement)(Na,null))))};const{useGlobalStyle:Pl,AdvancedPanel:Il}=nt(we.privateApis);var Bl=function(){const e=(0,E.__)("Add your own CSS to customize the appearance and layout of your site."),[t]=Pl("",void 0,"user",{shouldDecodeEncode:!1}),[n,a]=Pl("",void 0,"all",{shouldDecodeEncode:!1});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ps,{title:(0,E.__)("CSS"),description:(0,l.createElement)(l.Fragment,null,e,(0,l.createElement)(v.ExternalLink,{href:"https://wordpress.org/documentation/article/css/",className:"edit-site-global-styles-screen-css-help-link"},(0,E.__)("Learn more about CSS")))}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-css"},(0,l.createElement)(Il,{value:t,onChange:a,inheritedValue:n})))};const{ExperimentalBlockEditorProvider:Dl,useGlobalStylesOutputWithConfig:Rl}=nt(we.privateApis);function Ll(e){return!e||0===Object.keys(e).length}var Al=function({onClose:e,userConfig:t,blocks:n}){const{baseConfig:a}=(0,d.useSelect)((e=>({baseConfig:e(_.store).__experimentalGetCurrentThemeBaseGlobalStyles()})),[]),r=(0,l.useMemo)((()=>Ll(t)||Ll(a)?{}:ga(a,t)),[a,t]),o=(0,l.useMemo)((()=>Array.isArray(n)?n:[n]),[n]),i=(0,d.useSelect)((e=>e(we.store).getSettings()),[]),s=(0,l.useMemo)((()=>({...i,__unstableIsPreviewMode:!0})),[i]),[c]=Rl(r),u=Ll(c)||Ll(t)?s.styles:c;return(0,l.createElement)(za,{title:(0,E.__)("Revisions"),onClose:e,closeButtonLabel:(0,E.__)("Close revisions"),enableResizing:!0},(0,l.createElement)(we.__unstableIframe,{className:"edit-site-revisions__iframe",name:"revisions",tabIndex:0},(0,l.createElement)(we.__unstableEditorStyles,{styles:u}),(0,l.createElement)("style",null,".is-root-container { display: flow-root; } body { position: relative; padding: 32px; }"),(0,l.createElement)(v.Disabled,{className:"edit-site-revisions__example-preview__content"},(0,l.createElement)(Dl,{value:o,settings:s},(0,l.createElement)(we.BlockList,{renderAppender:!1})))))};const{createPrivateSlotFill:Fl}=nt(v.privateApis),{Slot:Vl,Fill:zl}=Fl("SidebarFixedBottom");function Ol({children:e}){return(0,l.createElement)(zl,null,(0,l.createElement)("div",{className:"edit-site-sidebar-fixed-bottom-slot"},e))}function Hl(e){const t=e?.author?.name||(0,E.__)("User");if("unsaved"===e?.id)return(0,E.sprintf)((0,E.__)("Unsaved changes by %s"),t);const n=(0,sa.dateI18n)((0,sa.getSettings)().formats.datetimeAbbreviated,(0,sa.getDate)(e?.modified));return e?.isLatest?(0,E.sprintf)((0,E.__)("Changes saved by %1$s on %2$s (current)"),t,n):(0,E.sprintf)((0,E.__)("Changes saved by %1$s on %2$s"),t,n)}var Gl=function({userRevisions:e,selectedRevisionId:t,onChange:n}){return(0,l.createElement)("ol",{className:"edit-site-global-styles-screen-revisions__revisions-list","aria-label":(0,E.__)("Global styles revisions"),role:"group"},e.map(((e,a)=>{const{id:r,author:o,modified:i}=e,s=o?.name||(0,E.__)("User"),c=o?.avatar_urls?.[48],u="unsaved"===e?.id,d=t?t===e?.id:0===a;return(0,l.createElement)("li",{className:y()("edit-site-global-styles-screen-revisions__revision-item",{"is-selected":d}),key:r},(0,l.createElement)(v.Button,{className:"edit-site-global-styles-screen-revisions__revision-button",disabled:d,onClick:()=>{n(e)},label:Hl(e)},(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__description"},(0,l.createElement)("time",{dateTime:i},(0,sa.humanTimeDiff)(i)),(0,l.createElement)("span",{className:"edit-site-global-styles-screen-revisions__meta"},u?(0,E.sprintf)((0,E.__)("Unsaved changes by %s"),s):(0,E.sprintf)((0,E.__)("Changes saved by %s"),s),(0,l.createElement)("img",{alt:o?.name,src:c})))))})))};const{GlobalStylesContext:Ul,areGlobalStyleConfigsEqual:$l}=nt(we.privateApis);var jl=function(){const{goBack:e}=(0,v.__experimentalUseNavigator)(),{user:t,setUserConfig:n}=(0,l.useContext)(Ul),{blocks:a,editorCanvasContainerView:r}=(0,d.useSelect)((e=>({editorCanvasContainerView:nt(e(Gn)).getEditorCanvasContainerView(),blocks:e(we.store).getBlocks()})),[]),{revisions:o,isLoading:i,hasUnsavedChanges:s}=Ka(),[c,u]=(0,l.useState)(),[m,p]=(0,l.useState)(t),[_,g]=(0,l.useState)(!1),{setEditorCanvasContainerView:h}=nt((0,d.useDispatch)(Gn));(0,l.useEffect)((()=>{"global-styles-revisions"!==r&&(e(),h(r))}),[r]);const y=()=>{e()},f=e=>{n((()=>({styles:e?.styles,settings:e?.settings}))),g(!1),y()},b=!!m?.id&&!$l(m,t),w=!i&&o.length;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ps,{title:(0,E.__)("Revisions"),description:(0,E.__)("Revisions are added to the timeline when style changes are saved.")}),i&&(0,l.createElement)(v.Spinner,{className:"edit-site-global-styles-screen-revisions__loading"}),w?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Al,{blocks:a,userConfig:m,onClose:y}),(0,l.createElement)("div",{className:"edit-site-global-styles-screen-revisions"},(0,l.createElement)(Gl,{onChange:e=>{p({styles:e?.styles,settings:e?.settings,id:e?.id}),u(e?.id)},selectedRevisionId:c,userRevisions:o}),b&&(0,l.createElement)(Ol,null,(0,l.createElement)(v.Button,{variant:"primary",className:"edit-site-global-styles-screen-revisions__button",disabled:!m?.id||"unsaved"===m?.id,onClick:()=>{s?g(!0):f(m)}},(0,E.__)("Apply")))),_&&(0,l.createElement)(v.__experimentalConfirmDialog,{title:(0,E.__)("Loading this revision will discard all unsaved changes."),isOpen:_,confirmButtonText:(0,E.__)(" Discard unsaved changes"),onConfirm:()=>f(m),onCancel:()=>g(!1)},(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h2",null,(0,E.__)("Loading this revision will discard all unsaved changes.")),(0,l.createElement)("p",null,(0,E.__)("Do you want to replace your unsaved changes in the editor?"))))):(0,l.createElement)(v.__experimentalSpacer,{marginX:4,"data-testid":"global-styles-no-revisions"},(0,E.__)("No results found.")))};const{Slot:Wl,Fill:Zl}=(0,v.createSlotFill)("GlobalStylesMenu");function ql(){const{toggle:e}=(0,d.useDispatch)(x.store),{canEditCSS:t}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a(),o=r?n("root","globalStyles",r):void 0;return{canEditCSS:null!==(t=!!o?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),{goTo:n}=(0,v.__experimentalUseNavigator)(),a=()=>n("/css");return(0,l.createElement)(Zl,null,(0,l.createElement)(v.DropdownMenu,{icon:le,label:(0,E.__)("More")},(({onClose:n})=>(0,l.createElement)(v.MenuGroup,null,t&&(0,l.createElement)(v.MenuItem,{onClick:a},(0,E.__)("Additional CSS")),(0,l.createElement)(v.MenuItem,{onClick:()=>{e("core/edit-site","welcomeGuideStyles"),n()}},(0,E.__)("Welcome Guide"))))))}function Yl({className:e,children:t}){return(0,l.createElement)("span",{className:y()(e,"edit-site-global-styles-sidebar__revisions-count-badge")},t)}function Kl(){const{setIsListViewOpened:e}=(0,d.useDispatch)(Gn),{revisionsCount:t}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a(),o=r?n("root","globalStyles",r):void 0;return{revisionsCount:null!==(t=o?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}}),[]),{useGlobalStylesReset:n}=nt(we.privateApis),[a,r]=n(),{goTo:o}=(0,v.__experimentalUseNavigator)(),{setEditorCanvasContainerView:i}=nt((0,d.useDispatch)(Gn)),s=()=>{e(!1),o("/revisions"),i("global-styles-revisions")},c=t>=2;return(0,l.createElement)(Zl,null,a||c?(0,l.createElement)(v.DropdownMenu,{icon:aa,label:(0,E.__)("Revisions")},(({onClose:e})=>(0,l.createElement)(v.MenuGroup,null,c&&(0,l.createElement)(v.MenuItem,{onClick:s,icon:(0,l.createElement)(Yl,null,t)},(0,E.__)("Revision history")),(0,l.createElement)(v.MenuItem,{onClick:()=>{r(),e()},disabled:!a},(0,E.__)("Reset to defaults"))))):(0,l.createElement)(v.Button,{label:(0,E.__)("Revisions"),icon:aa,disabled:!0,__experimentalIsFocusable:!0}))}function Xl({className:e,...t}){return(0,l.createElement)(v.__experimentalNavigatorScreen,{className:["edit-site-global-styles-sidebar__navigator-screen",e].filter(Boolean).join(" "),...t})}function Ql({parentMenu:e,blockStyles:t,blockName:n}){return t.map(((t,a)=>(0,l.createElement)(Xl,{key:a,path:e+"/variations/"+t.name},(0,l.createElement)(Gs,{name:n,variation:t.name}))))}function Jl({name:e,parentMenu:t=""}){const n=(0,d.useSelect)((t=>{const{getBlockStyles:n}=t(c.store);return n(e)}),[e]);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Xl,{path:t+"/colors/palette"},(0,l.createElement)(vl,{name:e})),!!n?.length&&(0,l.createElement)(Ql,{parentMenu:t,blockStyles:n,blockName:e}))}function ec(){const e=(0,v.__experimentalUseNavigator)(),{path:t}=e.location;return(0,l.createElement)(Wa,{isSelected:e=>t===`/blocks/${encodeURIComponent(e)}`||t.startsWith(`/blocks/${encodeURIComponent(e)}/`),onSelect:t=>{e.goTo("/blocks/"+encodeURIComponent(t))}})}function tc(){const e=(0,v.__experimentalUseNavigator)(),{selectedBlockName:t,selectedBlockClientId:n}=(0,d.useSelect)((e=>{const{getSelectedBlockClientId:t,getBlockName:n}=e(we.store),a=t();return{selectedBlockName:n(a),selectedBlockClientId:a}}),[]),a=fs(t);(0,l.useEffect)((()=>{if(!n||!a)return;const r=e.location.path;if("/blocks"!==r&&!r.startsWith("/blocks/"))return;const o="/blocks/"+encodeURIComponent(t);o!==r&&e.goTo(o,{skipFocus:!0})}),[n,t,a])}function nc(){const{goTo:e,location:t}=(0,v.__experimentalUseNavigator)(),n=(0,d.useSelect)((e=>nt(e(Gn)).getEditorCanvasContainerView()),[]);(0,l.useEffect)((()=>{"global-styles-revisions"===n?e("/revisions"):n&&"/revisions"===t?.path?e("/"):"global-styles-css"===n&&e("/css")}),[n,e])}var ac=function(){const e=(0,c.getBlockTypes)(),t=(0,d.useSelect)((e=>nt(e(Gn)).getEditorCanvasContainerView()),[]);return(0,l.createElement)(v.__experimentalNavigatorProvider,{className:"edit-site-global-styles-sidebar__navigator-provider",initialPath:"/"},(0,l.createElement)(Xl,{path:"/"},(0,l.createElement)(us,null)),(0,l.createElement)(Xl,{path:"/variations"},(0,l.createElement)(Ml,null)),(0,l.createElement)(Xl,{path:"/blocks"},(0,l.createElement)(ws,null)),(0,l.createElement)(Xl,{path:"/typography"},(0,l.createElement)(js,null)),(0,l.createElement)(Xl,{path:"/typography/text"},(0,l.createElement)(el,{element:"text"})),(0,l.createElement)(Xl,{path:"/typography/link"},(0,l.createElement)(el,{element:"link"})),(0,l.createElement)(Xl,{path:"/typography/heading"},(0,l.createElement)(el,{element:"heading"})),(0,l.createElement)(Xl,{path:"/typography/caption"},(0,l.createElement)(el,{element:"caption"})),(0,l.createElement)(Xl,{path:"/typography/button"},(0,l.createElement)(el,{element:"button"})),(0,l.createElement)(Xl,{path:"/colors"},(0,l.createElement)(ul,null)),(0,l.createElement)(Xl,{path:"/layout"},(0,l.createElement)(Nl,null)),(0,l.createElement)(Xl,{path:"/css"},(0,l.createElement)(Bl,null)),(0,l.createElement)(Xl,{path:"/revisions"},(0,l.createElement)(jl,null)),e.map((e=>(0,l.createElement)(Xl,{key:"menu-block-"+e.name,path:"/blocks/"+encodeURIComponent(e.name)},(0,l.createElement)(Gs,{name:e.name})))),(0,l.createElement)(Jl,null),e.map((e=>(0,l.createElement)(Jl,{key:"screens-block-"+e.name,name:e.name,parentMenu:"/blocks/"+encodeURIComponent(e.name)}))),"style-book"===t&&(0,l.createElement)(ec,null),(0,l.createElement)(Kl,null),(0,l.createElement)(ql,null),(0,l.createElement)(tc,null),(0,l.createElement)(nc,null))};function rc(){const{shouldClearCanvasContainerView:e,isStyleBookOpened:t,showListViewByDefault:n}=(0,d.useSelect)((e=>{const{getActiveComplementaryArea:t}=e(U),{getEditorCanvasContainerView:n,getCanvasMode:a}=nt(e(Gn)),r="visual"===e(Gn).getEditorMode(),o="edit"===a(),i=e(x.store).get("core/edit-site","showListViewByDefault");return{isStyleBookOpened:"style-book"===n(),shouldClearCanvasContainerView:"edit-site/global-styles"!==t("core/edit-site")||!r||!o,showListViewByDefault:i}}),[]),{setEditorCanvasContainerView:a}=nt((0,d.useDispatch)(Gn));(0,l.useEffect)((()=>{e&&a(void 0)}),[e]);const{setIsListViewOpened:r}=(0,d.useDispatch)(Gn);return(0,l.createElement)(Qi,{className:"edit-site-global-styles-sidebar",identifier:"edit-site/global-styles",title:(0,E.__)("Styles"),icon:Zn,closeLabel:(0,E.__)("Close Styles"),panelClassName:"edit-site-global-styles-sidebar__panel",header:(0,l.createElement)(v.Flex,{className:"edit-site-global-styles-sidebar__header",role:"menubar","aria-label":(0,E.__)("Styles actions")},(0,l.createElement)(v.FlexBlock,{style:{minWidth:"min-content"}},(0,l.createElement)("strong",null,(0,E.__)("Styles"))),(0,l.createElement)(v.FlexItem,null,(0,l.createElement)(v.Button,{icon:ra,label:(0,E.__)("Style Book"),isPressed:t,disabled:e,onClick:()=>{r(t&&n),a(t?void 0:"style-book")}})),(0,l.createElement)(Wl,null))},(0,l.createElement)(ac,null))}const oc="edit-site/template",ic="edit-site/block-inspector",sc={wp_navigation:(0,E.__)("Navigation"),wp_block:(0,E.__)("Pattern"),wp_template:(0,E.__)("Template")};var lc=({sidebarName:e})=>{const{hasPageContentFocus:t,entityType:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t,hasPageContentFocus:n}=e(Gn);return{hasPageContentFocus:n(),entityType:t()}})),a=sc[n]||sc.wp_template,{enableComplementaryArea:r}=(0,d.useDispatch)(U);let o;return o=t?e===oc?(0,E.__)("Page (selected)"):(0,E.__)("Page"):e===oc?(0,E.sprintf)((0,E.__)("%s (selected)"),a):a,(0,l.createElement)("ul",null,(0,l.createElement)("li",null,(0,l.createElement)(v.Button,{onClick:()=>r(Ft,oc),className:y()("edit-site-sidebar-edit-mode__panel-tab",{"is-active":e===oc}),"aria-label":o,"data-label":t?(0,E.__)("Page"):a},t?(0,E.__)("Page"):a)),(0,l.createElement)("li",null,(0,l.createElement)(v.Button,{onClick:()=>r(Ft,ic),className:y()("edit-site-sidebar-edit-mode__panel-tab",{"is-active":e===ic}),"aria-label":e===ic?(0,E.__)("Block (selected)"):(0,E.__)("Block"),"data-label":(0,E.__)("Block")},(0,E.__)("Block"))))};function cc({className:e,title:t,icon:n,description:a,actions:r,children:o}){return(0,l.createElement)("div",{className:y()("edit-site-sidebar-card",e)},(0,l.createElement)(v.Icon,{className:"edit-site-sidebar-card__icon",icon:n}),(0,l.createElement)("div",{className:"edit-site-sidebar-card__content"},(0,l.createElement)("div",{className:"edit-site-sidebar-card__header"},(0,l.createElement)("h2",{className:"edit-site-sidebar-card__title"},t),r),(0,l.createElement)("div",{className:"edit-site-sidebar-card__description"},a),o))}const{BlockQuickNavigation:uc}=nt(we.privateApis);function dc(){const e=(0,d.useSelect)((e=>nt(e(we.store)).getEnabledClientIdsTree()),[]),t=(0,l.useMemo)((()=>e.map((({clientId:e})=>e))),[e]);return(0,l.createElement)(uc,{clientIds:t})}const mc=[{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Draft"),(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.__)("Not ready to publish."))),value:"draft"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Pending"),(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.__)("Waiting for review before publishing."))),value:"pending"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Private"),(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.__)("Only visible to site admins and editors."))),value:"private"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Scheduled"),(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.__)("Publish automatically on a chosen date."))),value:"future"},{label:(0,l.createElement)(l.Fragment,null,(0,E.__)("Published"),(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.__)("Visible to everyone."))),value:"publish"}];function pc({postType:e,postId:t,status:n,password:a,date:r}){const[o,i]=(0,l.useState)(!!a),{editEntityRecord:s}=(0,d.useDispatch)(_.store),{createErrorNotice:c}=(0,d.useDispatch)(Se.store),[u,m]=(0,l.useState)(null),p=(0,l.useMemo)((()=>({anchor:u,"aria-label":(0,E.__)("Change status"),placement:"bottom-end"})),[u]),g=async({status:o=n,password:i=a,date:l=r})=>{try{await s("postType",e,t,{status:o,date:l,password:i})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while updating the status");c(t,{type:"snackbar"})}},h=e=>{i(e),e||g({password:""})},y=e=>{let t=r,n=a;"publish"===e?new Date(r)>new Date&&(t=null):"future"===e?(!r||new Date(r)<new Date)&&(t=new Date,t.setDate(t.getDate()+7)):"private"===e&&a&&(i(!1),n=""),g({status:e,date:t,password:n})};return(0,l.createElement)(v.__experimentalHStack,{className:"edit-site-summary-field"},(0,l.createElement)(v.__experimentalText,{className:"edit-site-summary-field__label"},(0,E.__)("Status")),(0,l.createElement)(v.Dropdown,{contentClassName:"edit-site-change-status__content",popoverProps:p,focusOnMount:!0,ref:m,renderToggle:({onToggle:e})=>(0,l.createElement)(v.Button,{className:"edit-site-summary-field__trigger",variant:"tertiary",onClick:e},(0,l.createElement)(Hi,{status:a?"protected":n})),renderContent:({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(we.__experimentalInspectorPopoverHeader,{title:(0,E.__)("Status"),onClose:e}),(0,l.createElement)("form",null,(0,l.createElement)(v.__experimentalVStack,{spacing:5},(0,l.createElement)(v.RadioControl,{className:"edit-site-change-status__options",hideLabelFromVision:!0,label:(0,E.__)("Status"),options:mc,onChange:y,selected:n}),"private"!==n&&(0,l.createElement)(v.BaseControl,{id:"edit-site-change-status__password",label:(0,E.__)("Password")},(0,l.createElement)(v.ToggleControl,{label:(0,E.__)("Hide this page behind a password"),checked:o,onChange:h}),o&&(0,l.createElement)(v.TextControl,{onChange:e=>g({password:e}),value:a,placeholder:(0,E.__)("Use a secure password"),type:"text"})))))}))}function _c({postType:e,postId:t,status:n,date:a}){const{editEntityRecord:r}=(0,d.useDispatch)(_.store),{createErrorNotice:o}=(0,d.useDispatch)(Se.store),[i,s]=(0,l.useState)(null),c=(0,l.useMemo)((()=>({anchor:i,"aria-label":(0,E.__)("Change publish date"),placement:"bottom-end"})),[i]),u=async a=>{try{let o=n;"future"===n&&new Date(a)<new Date?o="publish":"publish"===n&&new Date(a)>new Date&&(o="future"),await r("postType",e,t,{status:o,date:a})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while updating the status");o(t,{type:"snackbar"})}},m=a?(0,sa.humanTimeDiff)(a):(0,E.__)("Immediately");return(0,l.createElement)(v.__experimentalHStack,{className:"edit-site-summary-field"},(0,l.createElement)(v.__experimentalText,{className:"edit-site-summary-field__label"},(0,E.__)("Publish")),(0,l.createElement)(v.Dropdown,{contentClassName:"edit-site-change-status__content",popoverProps:c,focusOnMount:!0,ref:s,renderToggle:({onToggle:e})=>(0,l.createElement)(v.Button,{className:"edit-site-summary-field__trigger",variant:"tertiary",onClick:e},m),renderContent:({onClose:e})=>(0,l.createElement)(we.__experimentalPublishDateTimePicker,{currentDate:a,is12Hour:!0,onClose:e,onChange:u})}))}function gc({status:e,date:t,password:n,postId:a,postType:r}){return(0,l.createElement)(v.__experimentalVStack,null,(0,l.createElement)(pc,{status:e,date:t,password:n,postId:a,postType:r}),(0,l.createElement)(_c,{status:e,date:t,postId:a,postType:r}))}function hc(){const{context:e,hasResolved:t,title:n,blocks:a}=(0,d.useSelect)((e=>{const{getEditedPostContext:t,getEditedPostType:n,getEditedPostId:a}=e(Gn),{getEditedEntityRecord:r,hasFinishedResolution:o}=e(_.store),i=t(),s=["postType",n(),a()],l=r(...s);return{context:i,hasResolved:o("getEditedEntityRecord",s),title:l?.title,blocks:l?.blocks}}),[]),{setHasPageContentFocus:r}=(0,d.useDispatch)(Gn),o=(0,l.useMemo)((()=>({...e,postType:null,postId:null})),[e]);return t?(0,l.createElement)(v.__experimentalVStack,null,(0,l.createElement)("div",null,(0,At.decodeEntities)(n)),(0,l.createElement)("div",{className:"edit-site-page-panels__edit-template-preview"},(0,l.createElement)(we.BlockContextProvider,{value:o},(0,l.createElement)(we.BlockPreview,{viewportWidth:1024,blocks:a}))),(0,l.createElement)(v.Button,{className:"edit-site-page-panels__edit-template-button",variant:"secondary",onClick:()=>r(!1)},(0,E.__)("Edit template"))):null}function yc(){const{id:e,type:t,hasResolved:n,status:a,date:r,password:o,title:i,modified:s}=(0,d.useSelect)((e=>{const{getEditedPostContext:t}=e(Gn),{getEditedEntityRecord:n,hasFinishedResolution:a}=e(_.store),r=t(),o=["postType",r.postType,r.postId],i=n(...o);return{hasResolved:a("getEditedEntityRecord",o),title:i?.title,id:i?.id,type:i?.type,status:i?.status,date:i?.date,password:i?.password,modified:i?.modified}}),[]);return n?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.PanelBody,null,(0,l.createElement)(cc,{title:(0,At.decodeEntities)(i),icon:qn,description:(0,l.createElement)(v.__experimentalVStack,null,(0,l.createElement)(v.__experimentalText,null,(0,E.sprintf)((0,E.__)("Last edited %s"),(0,sa.humanTimeDiff)(s))))})),(0,l.createElement)(v.PanelBody,{title:(0,E.__)("Summary")},(0,l.createElement)(gc,{status:a,date:r,password:o,postId:e,postType:t})),(0,l.createElement)(v.PanelBody,{title:(0,E.__)("Content")},(0,l.createElement)(dc,null)),(0,l.createElement)(v.PanelBody,{title:(0,E.__)("Template")},(0,l.createElement)(hc,null))):null}function vc({template:e}){const{revertTemplate:t}=(0,d.useDispatch)(Gn);return zt(e)?(0,l.createElement)(v.DropdownMenu,{icon:le,label:(0,E.__)("Actions"),className:"edit-site-template-card__actions",toggleProps:{isSmall:!0}},(({onClose:n})=>(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{info:(0,E.__)("Use the template as supplied by the theme."),onClick:()=>{t(e),n()}},(0,E.__)("Clear customizations"))))):null}function Ec({area:e,clientId:t}){const{selectBlock:n,toggleBlockHighlight:a}=(0,d.useDispatch)(we.store),r=(0,d.useSelect)((t=>t(g.store).__experimentalGetDefaultTemplatePartAreas().find((t=>t.area===e))),[e]),o=()=>a(t,!0),i=()=>a(t,!1);return(0,l.createElement)(v.Button,{className:"edit-site-template-card__template-areas-item",icon:r?.icon,onMouseOver:o,onMouseLeave:i,onFocus:o,onBlur:i,onClick:()=>{n(t)}},r?.label)}function fc(){const e=(0,d.useSelect)((e=>e(Gn).getCurrentTemplateTemplateParts()),[]);return e.length?(0,l.createElement)("section",{className:"edit-site-template-card__template-areas"},(0,l.createElement)(v.__experimentalHeading,{level:3,className:"edit-site-template-card__template-areas-title"},(0,E.__)("Areas")),(0,l.createElement)("ul",{className:"edit-site-template-card__template-areas-list"},e.map((({templatePart:e,block:t})=>(0,l.createElement)("li",{key:e.slug},(0,l.createElement)(Ec,{area:e.area,clientId:t.clientId})))))):null}const bc=()=>{var e,t;const{record:n}=qr();return{currentTemplate:n,lastRevisionId:null!==(e=n?._links?.["predecessor-version"]?.[0]?.id)&&void 0!==e?e:null,revisionsCount:null!==(t=n?._links?.["version-history"]?.[0]?.count)&&void 0!==t?t:0}};function wc({children:e}){const{lastRevisionId:t,revisionsCount:n}=bc();return!t||n<2?null:(0,l.createElement)(g.PostTypeSupportCheck,{supportKeys:"revisions"},e)}const Sc=()=>{const{lastRevisionId:e,revisionsCount:t}=bc();return(0,l.createElement)(wc,null,(0,l.createElement)(v.Button,{href:(0,Et.addQueryArgs)("revision.php",{revision:e,gutenberg:!0}),className:"edit-site-template-last-revision__title",icon:aa},(0,E.sprintf)((0,E._n)("%d Revision","%d Revisions",t),t)))};function kc(){return(0,l.createElement)(wc,null,(0,l.createElement)(Sc,null))}function Cc(){const{info:{title:e,description:t,icon:n},record:a}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Gn),{getEditedEntityRecord:a}=e(_.store),{__experimentalGetTemplateInfo:r}=e(g.store),o=a("postType",t(),n());return{info:o?r(o):{},record:o}}),[]);return e||t?(0,l.createElement)(v.PanelBody,{className:"edit-site-template-panel"},(0,l.createElement)(cc,{className:"edit-site-template-card",title:(0,At.decodeEntities)(e),icon:"wp_navigation"===a?.type?Wn:n,description:(0,At.decodeEntities)(t),actions:(0,l.createElement)(vc,{template:a})},(0,l.createElement)(fc,null)),(0,l.createElement)(v.PanelRow,{header:(0,E.__)("Editing history"),className:"edit-site-template-revisions"},(0,l.createElement)(kc,null))):null}const{Fill:xc,Slot:Tc}=(0,v.createSlotFill)("PluginTemplateSettingPanel"),Nc=xc;Nc.Slot=Tc;var Mc=Nc;const{Slot:Pc,Fill:Ic}=(0,v.createSlotFill)("EditSiteSidebarInspector"),Bc=Ic;function Dc(){const{sidebar:e,isEditorSidebarOpened:t,hasBlockSelection:n,supportsGlobalStyles:a,hasPageContentFocus:r}=(0,d.useSelect)((e=>{const t=e(U).getActiveComplementaryArea(Ft),n=[ic,oc].includes(t),a=e(Gn).getSettings();return{sidebar:t,isEditorSidebarOpened:n,hasBlockSelection:!!e(we.store).getBlockSelectionStart(),supportsGlobalStyles:!a?.supportsTemplatePartsMode,hasPageContentFocus:e(Gn).hasPageContentFocus()}}),[]),{enableComplementaryArea:o}=(0,d.useDispatch)(U);(0,l.useEffect)((()=>{t&&(n?r||o(Ft,ic):o(Ft,oc))}),[n,t,r]);let i=e;return t||(i=n?ic:oc),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Qi,{identifier:i,title:(0,E.__)("Settings"),icon:(0,E.isRTL)()?Ki:Xi,closeLabel:(0,E.__)("Close Settings"),header:(0,l.createElement)(lc,{sidebarName:i}),headerClassName:"edit-site-sidebar-edit-mode__panel-tabs"},i===oc&&(0,l.createElement)(l.Fragment,null,r?(0,l.createElement)(yc,null):(0,l.createElement)(Cc,null),(0,l.createElement)(Mc.Slot,null)),i===ic&&(0,l.createElement)(Pc,{bubblesVirtually:!0})),a&&(0,l.createElement)(rc,null))}var Rc=window.wp.reusableBlocks;function Lc({clientId:e,onClose:t}){const{getBlocks:n}=(0,d.useSelect)(we.store),{replaceBlocks:a}=(0,d.useDispatch)(we.store);return(0,d.useSelect)((t=>t(we.store).canRemoveBlock(e)),[e])?(0,l.createElement)(v.MenuItem,{onClick:()=>{a(e,n(e)),t()}},(0,E.__)("Detach blocks from template part")):null}var Ac=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z"}));function Fc({clientIds:e,blocks:t}){const[n,a]=(0,l.useState)(!1),{replaceBlocks:r}=(0,d.useDispatch)(we.store),{createSuccessNotice:o}=(0,d.useDispatch)(Se.store),{canCreate:i}=(0,d.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(Gn).getSettings();return{canCreate:!t}}),[]);if(!i)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuItem,{icon:Ac,onClick:()=>{a(!0)}},(0,E.__)("Create template part")),n&&(0,l.createElement)(Bo,{closeModal:()=>{a(!1)},blocks:t,onCreate:async t=>{r(e,(0,c.createBlock)("core/template-part",{slug:t.slug,theme:t.theme})),o((0,E.__)("Template part created."),{type:"snackbar"})}}))}function Vc(){return(0,l.createElement)(we.BlockSettingsMenuControls,null,(({selectedClientIds:e,onClose:t})=>(0,l.createElement)(zc,{clientIds:e,onClose:t})))}function zc({clientIds:e,onClose:t}){const n=(0,d.useSelect)((t=>t(we.store).getBlocksByClientId(e)),[e]);return 1===n.length&&"core/template-part"===n[0]?.name?(0,l.createElement)(Lc,{clientId:e[0],onClose:t}):(0,l.createElement)(Fc,{clientIds:e,blocks:n})}var Oc=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));const{useLocation:Hc,useHistory:Gc}=nt(vt.privateApis);var Uc=function(){const e=Hc(),t=Gc(),n="wp_template_part"===e.params.postType,a="wp_navigation"===e.params.postType,r=e.state?.fromTemplateId;return(n||a)&&r?(0,l.createElement)(v.Button,{className:"edit-site-visual-editor__back-button",icon:Oc,onClick:()=>{t.back()}},(0,E.__)("Back")):null};var $c=function({enableResizing:e,settings:t,children:n,...a}){const{canvasMode:r,deviceType:o,isZoomOutMode:i}=(0,d.useSelect)((e=>({deviceType:e(Gn).__experimentalGetPreviewDeviceType(),isZoomOutMode:"zoom-out"===e(we.store).__unstableGetEditorMode(),canvasMode:nt(e(Gn)).getCanvasMode()})),[]),{setCanvasMode:s}=nt((0,d.useDispatch)(Gn)),c=(0,we.__experimentalUseResizeCanvas)(o),u=(0,we.__unstableUseMouseMoveTypingReset)(),[m,p]=(0,l.useState)(!1);(0,l.useEffect)((()=>{"edit"===r&&p(!1)}),[r]);const _={"aria-label":(0,E.__)("Editor Canvas"),role:"button",tabIndex:0,onFocus:()=>p(!0),onBlur:()=>p(!1),onKeyDown:e=>{const{keyCode:t}=e;t!==la.ENTER&&t!==la.SPACE||(e.preventDefault(),s("edit"))},onClick:()=>s("edit"),readonly:!0};return(0,l.createElement)(we.__unstableIframe,{expand:i,scale:i?.45:void 0,frameSize:i?100:void 0,style:e?{}:c,ref:u,name:"editor-canvas",className:y()("edit-site-visual-editor__editor-canvas",{"is-focused":m&&"view"===r}),...a,..."view"===r?_:{}},(0,l.createElement)(we.__unstableEditorStyles,{styles:t.styles}),(0,l.createElement)("style",null,`.is-root-container{display:flow-root;${e?"min-height:0!important;":""}}body{position:relative; ${"view"===r?"cursor: pointer; min-height: 100vh;":""}}}`),n)};const jc=(e,t)=>`<a ${Wc(e)}>${t}</a>`,Wc=e=>`href="${e}" target="_blank" rel="noreferrer noopener"`,Zc=e=>{const{title:t,foreign_landing_url:n,creator:a,creator_url:r,license:o,license_version:i,license_url:s}=e,l=((e,t)=>{let n=e.trim();return"pdm"!==e&&(n=e.toUpperCase().replace("SAMPLING","Sampling")),t&&(n+=` ${t}`),["pdm","cc0"].includes(e)||(n=`CC ${n}`),n})(o,i),c=(0,At.decodeEntities)(a);let u;return u=c?t?(0,E.sprintf)((0,E._x)('"%1$s" by %2$s/ %3$s',"caption"),jc(n,(0,At.decodeEntities)(t)),r?jc(r,c):c,s?jc(`${s}?ref=openverse`,l):l):(0,E.sprintf)((0,E._x)("<a %1$s>Work</a> by %2$s/ %3$s","caption"),Wc(n),r?jc(r,c):c,s?jc(`${s}?ref=openverse`,l):l):t?(0,E.sprintf)((0,E._x)('"%1$s"/ %2$s',"caption"),jc(n,(0,At.decodeEntities)(t)),s?jc(`${s}?ref=openverse`,l):l):(0,E.sprintf)((0,E._x)("<a %1$s>Work</a>/ %3$s","caption"),Wc(n),s?jc(`${s}?ref=openverse`,l):l),u.replace(/\s{2}/g," ")},qc=async(e={})=>(await(0,d.resolveSelect)(_.store).getMediaItems({...e,orderBy:e?.search?"relevance":"date"})).map((e=>({...e,alt:e.alt_text,url:e.source_url,previewUrl:e.media_details?.sizes?.medium?.source_url,caption:e.caption?.raw})));var Yc=[{name:"images",labels:{name:(0,E.__)("Images"),search_items:(0,E.__)("Search images")},mediaType:"image",async fetch(e={}){return qc({...e,media_type:"image"})}},{name:"videos",labels:{name:(0,E.__)("Videos"),search_items:(0,E.__)("Search videos")},mediaType:"video",async fetch(e={}){return qc({...e,media_type:"video"})}},{name:"audio",labels:{name:(0,E.__)("Audio"),search_items:(0,E.__)("Search audio")},mediaType:"audio",async fetch(e={}){return qc({...e,media_type:"audio"})}},{name:"openverse",labels:{name:(0,E.__)("Openverse"),search_items:(0,E.__)("Search Openverse")},mediaType:"image",async fetch(e={}){const t={...e,mature:!1,excluded_source:"flickr,inaturalist,wikimedia",license:"pdm,cc0"},n={per_page:"page_size",search:"q"},a=new URL("https://api.openverse.engineering/v1/images/");Object.entries(t).forEach((([e,t])=>{const r=n[e]||e;a.searchParams.set(r,t)}));const r=await window.fetch(a,{headers:{"User-Agent":"WordPress/inserter-media-fetch"}});return(await r.json()).results.map((e=>({...e,title:e.title?.toLowerCase().startsWith("file:")?e.title.slice(5):e.title,sourceId:e.id,id:void 0,caption:Zc(e),previewUrl:e.thumbnail})))},getReportUrl:({sourceId:e})=>`https://wordpress.org/openverse/image/${e}/report/`,isExternalResource:!0}];function Kc(){var e,t;const{setIsInserterOpened:n}=(0,d.useDispatch)(Gn),{storedSettings:a,canvasMode:r,templateType:o}=(0,d.useSelect)((e=>{const{getSettings:t,getCanvasMode:a,getEditedPostType:r}=nt(e(Gn));return{storedSettings:t(n),canvasMode:a(),templateType:r()}}),[n]),i=null!==(e=a.__experimentalAdditionalBlockPatterns)&&void 0!==e?e:a.__experimentalBlockPatterns,s=null!==(t=a.__experimentalAdditionalBlockPatternCategories)&&void 0!==t?t:a.__experimentalBlockPatternCategories,{restBlockPatterns:c,restBlockPatternCategories:u}=(0,d.useSelect)((e=>({restBlockPatterns:e(_.store).getBlockPatterns(),restBlockPatternCategories:e(_.store).getBlockPatternCategories()})),[]),m=(0,l.useMemo)((()=>[...i||[],...c||[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name)))).filter((({postTypes:e})=>!e||Array.isArray(e)&&e.includes(o)))),[i,c,o]),p=(0,l.useMemo)((()=>[...s||[],...u||[]].filter(((e,t,n)=>t===n.findIndex((t=>e.name===t.name))))),[s,u]);return(0,l.useMemo)((()=>{const{__experimentalAdditionalBlockPatterns:e,__experimentalAdditionalBlockPatternCategories:t,focusMode:n,...o}=a;return{...o,inserterMediaCategories:Yc,__experimentalBlockPatterns:m,__experimentalBlockPatternCategories:p,templateLock:!1,template:!1,focusMode:("view"!==r||!n)&&n}}),[a,m,p,r])}const Xc=["wp_template_part","wp_navigation","wp_block"],{useBlockEditingMode:Qc}=nt(we.privateApis),Jc=["core/post-title","core/post-featured-image","core/post-content"];function eu(){return Qc("disabled"),(0,l.useEffect)((()=>((0,Ee.addFilter)("editor.BlockEdit","core/edit-site/disable-non-content-blocks",tu),()=>(0,Ee.removeFilter)("editor.BlockEdit","core/edit-site/disable-non-content-blocks"))),[]),null}const tu=(0,re.createHigherOrderComponent)((e=>t=>{const n=void 0!==t.context.queryId,a=Jc.includes(t.name)&&!n;return Qc(a?"contentOnly":void 0),(0,l.createElement)(e,{...t})}),"withDisableNonPageContentBlocks");function nu({contentRef:e}){const t=(0,d.useSelect)((e=>e(Gn).hasPageContentFocus()),[]),{getNotices:n}=(0,d.useSelect)(Se.store),{createInfoNotice:a,removeNotice:r}=(0,d.useDispatch)(Se.store),{setHasPageContentFocus:o}=(0,d.useDispatch)(Gn),[i,s]=(0,l.useState)(!1),c=(0,l.useRef)(0);return(0,l.useEffect)((()=>{const i=async e=>{if(!t)return;if(!e.target.classList.contains("is-root-container"))return;const r=n().some((e=>e.id===c.current));if(r)return;const{notice:i}=await a((0,E.__)("Edit your template to edit this block."),{isDismissible:!0,type:"snackbar",actions:[{label:(0,E.__)("Edit template"),onClick:()=>o(!1)}]});c.current=i.id},l=e=>{t&&e.target.classList.contains("is-root-container")&&(c.current&&r(c.current),s(!0))},u=e.current;return u?.addEventListener("click",i),u?.addEventListener("dblclick",l),()=>{u?.removeEventListener("click",i),u?.removeEventListener("dblclick",l)}}),[c,t,e.current]),(0,l.createElement)(v.__experimentalConfirmDialog,{isOpen:i,confirmButtonText:(0,E.__)("Edit template"),onConfirm:()=>{s(!1),o(!1)},onCancel:()=>s(!1)},(0,E.__)("Edit your template to edit this block."))}function au(){return function(){const{isPage:e,hasPageContentFocus:t}=(0,d.useSelect)((e=>({isPage:e(Gn).isPage(),hasPageContentFocus:e(Gn).hasPageContentFocus()})),[]),n=(0,l.useRef)(!1),a=(0,l.useRef)(!1),{createInfoNotice:r}=(0,d.useDispatch)(Se.store),{setHasPageContentFocus:o}=(0,d.useDispatch)(Gn);(0,l.useEffect)((()=>{!n.current&&e&&a.current&&!t&&(r((0,E.__)("You are editing a template."),{isDismissible:!0,type:"snackbar",actions:[{label:(0,E.__)("Back to page"),onClick:()=>o(!0)}]}),n.current=!0),a.current=t}),[n,e,a,t,r,o])}(),null}function ru({contentRef:e}){const t=(0,d.useSelect)((e=>e(Gn).hasPageContentFocus()),[]);return(0,l.createElement)(l.Fragment,null,t&&(0,l.createElement)(eu,null),(0,l.createElement)(nu,{contentRef:e}),(0,l.createElement)(au,null))}const ou={type:"default",alignments:[]};function iu(){const{clearSelectedBlock:e}=(0,d.useDispatch)(we.store),{templateType:t,isFocusMode:n,isViewMode:a}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getCanvasMode:n}=nt(e(Gn)),a=t();return{templateType:a,isFocusMode:Xc.includes(a),isViewMode:"view"===n()}}),[]),[r,o]=(0,re.useResizeObserver)(),i=Kc(),{hasBlocks:s}=(0,d.useSelect)((e=>{const{getBlockCount:t}=e(we.store);return{hasBlocks:!!t()}}),[]),c=(0,re.useViewportMatch)("small","<"),u=n&&!a&&!c,m=(0,l.useRef)(),p=(0,re.useMergeRefs)([m,(0,we.__unstableUseClipboardHandler)(),(0,we.__unstableUseTypingObserver)()]),_="wp_navigation"===t,g=!(_&&n&&s||a)&&void 0;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(za.Slot,null,(([t])=>{var s;return t?(0,l.createElement)("div",{className:"edit-site-visual-editor is-focus-mode"},t):(0,l.createElement)(we.BlockTools,{className:y()("edit-site-visual-editor",{"is-focus-mode":n||!!t,"is-view-mode":a}),__unstableContentRef:m,onClick:t=>{t.target===t.currentTarget&&e()}},(0,l.createElement)(we.BlockEditorKeyboardShortcuts.Register,null),(0,l.createElement)(Uc,null),(0,l.createElement)(Ba,{enableResizing:u,height:null!==(s=o.height)&&void 0!==s?s:"100%"},(0,l.createElement)($c,{enableResizing:u,settings:i,contentRef:p,readonly:a},r,(0,l.createElement)(we.BlockList,{className:y()("edit-site-block-editor__block-list wp-site-blocks",{"is-navigation-block":_}),layout:ou,renderAppender:g}))))})),(0,l.createElement)(ru,{contentRef:m}))}const{ExperimentalBlockEditorProvider:su}=nt(we.privateApis);function lu({children:e}){const t=Kc(),{templateType:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t}=nt(e(Gn));return{templateType:t()}}),[]),[a,r,o]=(0,_.useEntityBlockEditor)("postType",n);return(0,l.createElement)(su,{settings:t,value:a,onInput:r,onChange:o,useSubRegistry:!1},e)}const{ExperimentalBlockEditorProvider:cu}=nt(we.privateApis),uu=()=>{};function du({children:e}){const t=Kc(),n=(0,_.useEntityId)("postType","wp_navigation"),a=(0,l.useMemo)((()=>[(0,c.createBlock)("core/navigation",{ref:n,templateLock:!1})]),[n]),{isEditMode:r}=(0,d.useSelect)((e=>{const{getCanvasMode:t}=nt(e(Gn));return{isEditMode:"edit"===t()}}),[]),{selectBlock:o,setBlockEditingMode:i,unsetBlockEditingMode:s}=nt((0,d.useDispatch)(we.store)),u=a&&a[0]?.clientId,m=(0,l.useMemo)((()=>({...t,templateLock:"insert",template:[["core/navigation",{},[]]]})),[t]);return(0,l.useEffect)((()=>{u&&r&&o(u)}),[u,r,o]),(0,l.useEffect)((()=>{if(u)return i(u,"contentOnly"),()=>{s(u)}}),[u,s,i]),(0,l.createElement)(cu,{settings:m,value:a,onInput:uu,onChange:uu,useSubRegistry:!1},e)}function mu(){const e=function(e){let t=null;t="wp_navigation"===e?du:lu;return t}((0,d.useSelect)((e=>e(Gn).getEditedPostType()),[]));return(0,l.createElement)(e,null,(0,l.createElement)(Vc,null),(0,l.createElement)(Bc,null,(0,l.createElement)(we.BlockInspector,null)),(0,l.createElement)(iu,null),(0,l.createElement)(Rc.ReusableBlocksMenuItems,null))}var pu=n(773);function _u({value:e,onChange:t,onInput:n}){const[a,r]=(0,l.useState)(e),[o,i]=(0,l.useState)(!1),s=(0,re.useInstanceId)(_u),c=(0,l.useRef)();o||a===e||r(e);return(0,l.useEffect)((()=>()=>{c.current&&t(c.current)}),[]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.VisuallyHidden,{as:"label",htmlFor:`code-editor-text-area-${s}`},(0,E.__)("Type text or HTML")),(0,l.createElement)(pu.Z,{autoComplete:"off",dir:"auto",value:a,onChange:e=>{const t=e.target.value;n(t),r(t),i(!0),c.current=t},onBlur:()=>{o&&(t(a),i(!1))},className:"edit-site-code-editor-text-area",id:`code-editor-text-area-${s}`,placeholder:(0,E.__)("Start writing with text or HTML")}))}function gu(){const{templateType:e,shortcut:t}=(0,d.useSelect)((e=>{const{getEditedPostType:t}=e(Gn),{getShortcutRepresentation:n}=e(Un.store);return{templateType:t(),shortcut:n("core/edit-site/toggle-mode")}}),[]),[n,a]=(0,_.useEntityProp)("postType",e,"content"),[r,,o]=(0,_.useEntityBlockEditor)("postType",e);let i;i=n instanceof Function?n({blocks:r}):r?(0,c.__unstableSerializeAndClean)(r):n;const{switchEditorMode:s}=(0,d.useDispatch)(Gn);return(0,l.createElement)("div",{className:"edit-site-code-editor"},(0,l.createElement)("div",{className:"edit-site-code-editor__toolbar"},(0,l.createElement)("h2",null,(0,E.__)("Editing code")),(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>s("visual"),shortcut:t},(0,E.__)("Exit code editor"))),(0,l.createElement)("div",{className:"edit-site-code-editor__body"},(0,l.createElement)(_u,{value:i,onChange:e=>{o((0,c.parse)(e),{selection:void 0})},onInput:a})))}var hu=function(){const{getEditorMode:e}=(0,d.useSelect)(Gn),t=(0,d.useSelect)((e=>e(Gn).isListViewOpened()),[]),n=(0,d.useSelect)((e=>e(U).getActiveComplementaryArea(Gn.name)===ic),[]),{redo:a,undo:r}=(0,d.useDispatch)(_.store),{setIsListViewOpened:o,switchEditorMode:i,setIsInserterOpened:s,closeGeneralSidebar:l}=(0,d.useDispatch)(Gn),{enableComplementaryArea:u,disableComplementaryArea:m}=(0,d.useDispatch)(U),{replaceBlocks:p}=(0,d.useDispatch)(we.store),{getBlockName:g,getSelectedBlockClientId:h,getBlockAttributes:y}=(0,d.useSelect)(we.store),{get:v}=(0,d.useSelect)(x.store),{set:f,toggle:b}=(0,d.useDispatch)(x.store),{createInfoNotice:w}=(0,d.useDispatch)(Se.store),S=(e,t)=>{e.preventDefault();const n=0===t?"core/paragraph":"core/heading",a=h();if(null===a)return;const r=g(a);if("core/paragraph"!==r&&"core/heading"!==r)return;const o=y(a),i="core/paragraph"===r?"align":"textAlign",s="core/paragraph"===n?"align":"textAlign";p(a,(0,c.createBlock)(n,{level:t,content:o.content,[s]:o[i]}))};return(0,Un.useShortcut)("core/edit-site/undo",(e=>{r(),e.preventDefault()})),(0,Un.useShortcut)("core/edit-site/redo",(e=>{a(),e.preventDefault()})),(0,Un.useShortcut)("core/edit-site/toggle-list-view",(()=>{t||o(!0)})),(0,Un.useShortcut)("core/edit-site/toggle-block-settings-sidebar",(e=>{e.preventDefault(),n?m(Ft):u(Ft,ic)})),(0,Un.useShortcut)("core/edit-site/toggle-mode",(()=>{i("visual"===e()?"text":"visual")})),(0,Un.useShortcut)("core/edit-site/transform-heading-to-paragraph",(e=>S(e,0))),[1,2,3,4,5,6].forEach((e=>{(0,Un.useShortcut)(`core/edit-site/transform-paragraph-to-heading-${e}`,(t=>S(t,e)))})),(0,Un.useShortcut)("core/edit-site/toggle-distraction-free",(()=>{f("core/edit-site","fixedToolbar",!1),s(!1),o(!1),l(),b("core/edit-site","distractionFree"),w(v("core/edit-site","distractionFree")?(0,E.__)("Distraction free mode turned on."):(0,E.__)("Distraction free mode turned off."),{id:"core/edit-site/distraction-free-mode/notice",type:"snackbar"})})),null};var yu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function vu(){const{setIsInserterOpened:e}=(0,d.useDispatch)(Gn),t=(0,d.useSelect)((e=>e(Gn).__experimentalGetInsertionPoint()),[]),n=(0,re.useViewportMatch)("medium","<"),a=n?"div":v.VisuallyHidden,[r,o]=(0,re.__experimentalUseDialog)({onClose:()=>e(!1),focusOnMount:null}),i=(0,l.useRef)();return(0,l.useEffect)((()=>{i.current.focusSearch()}),[]),(0,l.createElement)("div",{ref:r,...o,className:"edit-site-editor__inserter-panel"},(0,l.createElement)(a,{className:"edit-site-editor__inserter-panel-header"},(0,l.createElement)(v.Button,{icon:yu,label:(0,E.__)("Close block inserter"),onClick:()=>e(!1)})),(0,l.createElement)("div",{className:"edit-site-editor__inserter-panel-content"},(0,l.createElement)(we.__experimentalLibrary,{showInserterHelpPanel:!0,shouldFocusBlock:n,rootClientId:t.rootClientId,__experimentalInsertionIndex:t.insertionIndex,__experimentalFilterValue:t.filterValue,ref:i})))}const{PrivateListView:Eu}=nt(we.privateApis);function fu(){const{setIsListViewOpened:e}=(0,d.useDispatch)(Gn),t=(0,re.useFocusOnMount)("firstElement"),n=(0,re.useFocusReturn)(),a=(0,re.useFocusReturn)();const[r,o]=(0,l.useState)(null),i=(0,l.useRef)(),s=(0,l.useRef)(),c=(0,l.useRef)();return(0,Un.useShortcut)("core/edit-site/toggle-list-view",(()=>{i.current.contains(i.current.ownerDocument.activeElement)?e(!1):function(){const e=Vi.focus.tabbable.find(c.current)[0];(i.current.contains(e)?e:s.current).focus()}()})),(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel",onKeyDown:function(t){t.keyCode!==la.ESCAPE||t.defaultPrevented||e(!1)},ref:i},(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel-header",ref:n},(0,l.createElement)("strong",null,(0,E.__)("List View")),(0,l.createElement)(v.Button,{icon:C,label:(0,E.__)("Close"),onClick:()=>e(!1),ref:s})),(0,l.createElement)("div",{className:"edit-site-editor__list-view-panel-content",ref:(0,re.useMergeRefs)([a,t,o,c])},(0,l.createElement)(Eu,{dropZoneElement:r})))}function bu({nonAnimatedSrc:e,animatedSrc:t}){return(0,l.createElement)("picture",{className:"edit-site-welcome-guide__image"},(0,l.createElement)("source",{srcSet:e,media:"(prefers-reduced-motion: reduce)"}),(0,l.createElement)("img",{src:t,width:"312",height:"240",alt:""}))}function wu(){const{toggle:e}=(0,d.useDispatch)(x.store);return(0,d.useSelect)((e=>!!e(x.store).get("core/edit-site","welcomeGuide")),[])?(0,l.createElement)(v.Guide,{className:"edit-site-welcome-guide guide-editor",contentLabel:(0,E.__)("Welcome to the site editor"),finishButtonText:(0,E.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuide"),pages:[{image:(0,l.createElement)(bu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/edit-your-site.svg?1",animatedSrc:"https://s.w.org/images/block-editor/edit-your-site.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Edit your site")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Design everything on your site — from the header right down to the footer — using blocks.")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,l.createInterpolateElement)((0,E.__)("Click <StylesIconImage /> to start designing your blocks, and choose your typography, layout, and colors."),{StylesIconImage:(0,l.createElement)("img",{alt:(0,E.__)("styles"),src:"data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 4c-4.4 0-8 3.6-8 8v.1c0 4.1 3.2 7.5 7.2 7.9h.8c4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 15V5c3.9 0 7 3.1 7 7s-3.1 7-7 7z' fill='%231E1E1E'/%3E%3C/svg%3E%0A"})})))}]}):null}function Su(){const{toggle:e}=(0,d.useDispatch)(x.store),{isActive:t,isStylesOpen:n}=(0,d.useSelect)((e=>{const t=e(U).getActiveComplementaryArea(Gn.name);return{isActive:!!e(x.store).get("core/edit-site","welcomeGuideStyles"),isStylesOpen:"edit-site/global-styles"===t}}),[]);if(!t||!n)return null;const a=(0,E.__)("Welcome to Styles");return(0,l.createElement)(v.Guide,{className:"edit-site-welcome-guide guide-styles",contentLabel:a,finishButtonText:(0,E.__)("Get started"),onFinish:()=>e("core/edit-site","welcomeGuideStyles"),pages:[{image:(0,l.createElement)(bu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.svg?1",animatedSrc:"https://s.w.org/images/block-editor/welcome-to-styles.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},a),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Tweak your site, or give it a whole new look! Get creative — how about a new color palette for your buttons, or choosing a new font? Take a look at what you can do here.")))},{image:(0,l.createElement)(bu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/set-the-design.svg?1",animatedSrc:"https://s.w.org/images/block-editor/set-the-design.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Set the design")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("You can customize your site as much as you like with different colors, typography, and layouts. Or if you prefer, just leave it up to your theme to handle! ")))},{image:(0,l.createElement)(bu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.svg?1",animatedSrc:"https://s.w.org/images/block-editor/personalize-blocks.gif?1"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Personalize blocks")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("You can adjust your blocks to ensure a cohesive experience across your site — add your unique colors to a branded Button block, or adjust the Heading block to your preferred size.")))},{image:(0,l.createElement)(bu,{nonAnimatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.svg",animatedSrc:"https://s.w.org/images/block-editor/welcome-documentation.gif"}),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},(0,E.__)("Learn more")),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("New to block themes and styling your site? "),(0,l.createElement)(v.ExternalLink,{href:(0,E.__)("https://wordpress.org/documentation/article/styles-overview/")},(0,E.__)("Here’s a detailed guide to learn how to make the most of it."))))}]})}function ku(){const{toggle:e}=(0,d.useDispatch)(x.store),t=(0,d.useSelect)((e=>{const t=!!e(x.store).get("core/edit-site","welcomeGuidePage"),n=!!e(x.store).get("core/edit-site","welcomeGuide"),{hasPageContentFocus:a}=e(Gn);return t&&!n&&a()}),[]);if(!t)return null;const n=(0,E.__)("Editing a page");return(0,l.createElement)(v.Guide,{className:"edit-site-welcome-guide guide-page",contentLabel:n,finishButtonText:(0,E.__)("Continue"),onFinish:()=>e("core/edit-site","welcomeGuidePage"),pages:[{image:(0,l.createElement)("video",{className:"edit-site-welcome-guide__video",autoPlay:!0,loop:!0,muted:!0,width:"312",height:"240"},(0,l.createElement)("source",{src:"https://s.w.org/images/block-editor/editing-your-page.mp4",type:"video/mp4"})),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},n),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("It’s now possible to edit page content in the site editor. To customise other parts of the page like the header and footer switch to editing the template using the settings sidebar.")))}]})}function Cu(){const{toggle:e}=(0,d.useDispatch)(x.store),t=(0,d.useSelect)((e=>{const t=!!e(x.store).get("core/edit-site","welcomeGuideTemplate"),n=!!e(x.store).get("core/edit-site","welcomeGuide"),{isPage:a,hasPageContentFocus:r}=e(Gn);return t&&!n&&a()&&!r()}),[]);if(!t)return null;const n=(0,E.__)("Editing a template");return(0,l.createElement)(v.Guide,{className:"edit-site-welcome-guide guide-template",contentLabel:n,finishButtonText:(0,E.__)("Continue"),onFinish:()=>e("core/edit-site","welcomeGuideTemplate"),pages:[{image:(0,l.createElement)("video",{className:"edit-site-welcome-guide__video",autoPlay:!0,loop:!0,muted:!0,width:"312",height:"240"},(0,l.createElement)("source",{src:"https://s.w.org/images/block-editor/editing-your-template.mp4",type:"video/mp4"})),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h1",{className:"edit-site-welcome-guide__heading"},n),(0,l.createElement)("p",{className:"edit-site-welcome-guide__text"},(0,E.__)("Note that the same template can be used by multiple pages, so any changes made here may affect other pages on the site. To switch back to editing the page content click the ‘Back’ button in the toolbar.")))}]})}function xu(){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(wu,null),(0,l.createElement)(Su,null),(0,l.createElement)(ku,null),(0,l.createElement)(Cu,null))}function Tu({fallbackContent:e,onChoosePattern:t,postType:n}){const[,,a]=(0,_.useEntityBlockEditor)("postType",n),r=function(e){const{slug:t,patterns:n}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Gn),{getEntityRecord:a}=e(_.store),r=n(),o=a("postType",t(),r),{getSettings:i}=e(we.store);return{slug:o.slug,patterns:i().__experimentalBlockPatterns}}),[]);return(0,l.useMemo)((()=>[{name:"fallback",blocks:(0,c.parse)(e),title:(0,E.__)("Fallback content")},...n.filter((e=>Array.isArray(e.templateTypes)&&e.templateTypes.some((e=>t.startsWith(e))))).map((e=>({...e,blocks:(0,c.parse)(e.content)})))]),[e,t,n])}(e),o=(0,re.useAsyncList)(r);return(0,l.createElement)(we.__experimentalBlockPatternsList,{blockPatterns:r,shownPatterns:o,onClickPattern:(e,n)=>{a(n,{selection:void 0}),t()}})}function Nu({slug:e,isCustom:t,onClose:n,postType:a}){const r=function(e,t=!1){const[n,a]=(0,l.useState)("");return(0,l.useEffect)((()=>{Rt()({path:(0,Et.addQueryArgs)("/wp/v2/templates/lookup",{slug:e,is_custom:t,ignore_empty:!0})}).then((({content:e})=>a(e.raw)))}),[t,e]),n}(e,t);return r?(0,l.createElement)(v.Modal,{className:"edit-site-start-template-options__modal",title:(0,E.__)("Choose a pattern"),closeLabel:(0,E.__)("Cancel"),focusOnMount:"firstElement",onRequestClose:n,isFullScreen:!0},(0,l.createElement)("div",{className:"edit-site-start-template-options__modal-content"},(0,l.createElement)(Tu,{fallbackContent:r,slug:e,isCustom:t,postType:a,onChoosePattern:()=>{n()}})),(0,l.createElement)(v.Flex,{className:"edit-site-start-template-options__modal__actions",justify:"flex-end",expanded:!1},(0,l.createElement)(v.FlexItem,null,(0,l.createElement)(v.Button,{variant:"tertiary",onClick:n},(0,E.__)("Skip"))))):null}const Mu={INITIAL:"INITIAL",CLOSED:"CLOSED"};function Pu(){const[e,t]=(0,l.useState)(Mu.INITIAL),{shouldOpenModal:n,slug:a,isCustom:r,postType:o}=(0,d.useSelect)((e=>{const{getEditedPostType:t,getEditedPostId:n}=e(Gn),a=t(),r=n(),{getEditedEntityRecord:o,hasEditsForEntityRecord:i}=e(_.store),s=o("postType",a,r);return{shouldOpenModal:!i("postType",a,r)&&""===s.content&&"wp_template"===a&&!e(x.store).get("core/edit-site","welcomeGuide"),slug:s.slug,isCustom:s.is_custom,postType:a}}),[]);return e===Mu.INITIAL&&!n||e===Mu.CLOSED?null:(0,l.createElement)(Nu,{slug:a,isCustom:r,postType:o,onClose:()=>t(Mu.CLOSED)})}const{useGlobalStylesOutput:Iu}=nt(we.privateApis);function Bu(){return function(){const[e,t]=Iu(),{getSettings:n}=(0,d.useSelect)(Gn),{updateSettings:a}=(0,d.useDispatch)(Gn);(0,l.useEffect)((()=>{var r;if(!e||!t)return;const o=n(),i=Object.values(null!==(r=o.styles)&&void 0!==r?r:[]).filter((e=>!e.isGlobalStyles));a({...o,styles:[...i,...e],__experimentalFeatures:t})}),[e,t])}(),null}const{useLocation:Du}=nt(vt.privateApis);const{useGlobalStyle:Ru}=nt(we.privateApis);function Lu(){const[e]=Ru("color.text");return(0,l.createElement)("div",{className:"edit-site-canvas-spinner"},(0,l.createElement)(v.Spinner,{style:{color:e}}))}const{BlockRemovalWarningModal:Au}=nt(we.privateApis),Fu={body:(0,E.__)("Editor content"),sidebar:(0,E.__)("Editor settings"),actions:(0,E.__)("Editor publish"),footer:(0,E.__)("Editor footer")},Vu={wp_template:(0,E.__)("Template"),wp_template_part:(0,E.__)("Template Part"),wp_block:(0,E.__)("Pattern")},zu={"core/query":(0,E.__)("Query Loop displays a list of posts or pages."),"core/post-content":(0,E.__)("Post Content displays the content of a post or page."),"core/post-template":(0,E.__)("Post Template displays each post or page in a Query Loop.")};function Ou({isLoading:e}){const{record:t,getTitle:n,isLoaded:a}=qr(),{id:r,type:o}=t,{context:i,editorMode:s,canvasMode:c,blockEditorMode:u,isRightSidebarOpen:m,isInserterOpen:p,isListViewOpen:h,showIconLabels:f,showBlockBreadcrumbs:b,hasPageContentFocus:w}=(0,d.useSelect)((e=>{const{getEditedPostContext:t,getEditorMode:n,getCanvasMode:a,isInserterOpened:r,isListViewOpened:o,hasPageContentFocus:i}=nt(e(Gn)),{__unstableGetEditorMode:s}=e(we.store),{getActiveComplementaryArea:l}=e(U);return{context:t(),editorMode:n(),canvasMode:a(),blockEditorMode:s(),isInserterOpen:r(),isListViewOpen:o(),isRightSidebarOpen:l(Gn.name),showIconLabels:e(x.store).get("core/edit-site","showIconLabels"),showBlockBreadcrumbs:e(x.store).get("core/edit-site","showBlockBreadcrumbs"),hasPageContentFocus:i()}}),[]),{setEditedPostContext:S}=(0,d.useDispatch)(Gn),k="edit"===c,C="view"===c||"visual"===s,T=b&&k&&C&&"zoom-out"!==u,N=k&&C&&p,M=k&&C&&h,P=h?(0,E.__)("List View"):(0,E.__)("Block Library"),I=(0,l.useMemo)((()=>{const{postType:e,postId:t,...n}=null!=i?i:{};return{...w?i:n,queryContext:[i?.queryContext||{page:1},e=>S({...i,queryContext:{...i?.queryContext,...e}})]}}),[w,i,S]);let B;var D;a&&(B=(0,E.sprintf)((0,E.__)("%1$s ‹ %2$s ‹ Editor"),n(),null!==(D=Vu[o])&&void 0!==D?D:Vu.wp_template));return function(e){const t=Du(),n=(0,d.useSelect)((e=>e(_.store).getEntityRecord("root","site")?.title),[]),a=(0,l.useRef)(!0);(0,l.useEffect)((()=>{a.current=!1}),[t]),(0,l.useEffect)((()=>{if(!a.current&&e&&n){const t=(0,E.sprintf)((0,E.__)("%1$s ‹ %2$s — WordPress"),(0,At.decodeEntities)(e),(0,At.decodeEntities)(n));document.title=t,(0,Lt.speak)((0,E.sprintf)((0,E.__)("Now displaying: %s"),document.title),"assertive")}}),[e,n,t])}(a&&B),(0,l.createElement)(l.Fragment,null,e?(0,l.createElement)(Lu,null):null,k&&(0,l.createElement)(xu,null),(0,l.createElement)(_.EntityProvider,{kind:"root",type:"site"},(0,l.createElement)(_.EntityProvider,{kind:"postType",type:o,id:r},(0,l.createElement)(we.BlockContextProvider,{value:I},(0,l.createElement)(Dc,null),k&&(0,l.createElement)(Pu,null),(0,l.createElement)(se,{isDistractionFree:!0,enableRegionNavigation:!1,className:y()("edit-site-editor__interface-skeleton",{"show-icon-labels":f,"is-loading":e}),notices:(0,l.createElement)(g.EditorSnackbars,null),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Bu,null),k&&(0,l.createElement)(g.EditorNotices,null),C&&t&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(mu,null),(0,l.createElement)(Au,{rules:zu})),"text"===s&&t&&k&&(0,l.createElement)(gu,null),a&&!t&&(0,l.createElement)(v.Notice,{status:"warning",isDismissible:!1},(0,E.__)("You attempted to edit an item that doesn't exist. Perhaps it was deleted?")),k&&(0,l.createElement)(hu,null)),secondarySidebar:k&&(N&&(0,l.createElement)(vu,null)||M&&(0,l.createElement)(fu,null)),sidebar:k&&m&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ae.Slot,{scope:"core/edit-site"}),(0,l.createElement)(Vl,null)),footer:T&&(0,l.createElement)(we.BlockBreadcrumb,{rootLabelText:w?(0,E.__)("Page"):(0,E.__)("Template")}),labels:{...Fu,secondarySidebar:P}})))))}function Hu({text:e,children:t}){const n=(0,re.useCopyToClipboard)(e);return(0,l.createElement)(v.Button,{variant:"secondary",ref:n},t)}function Gu({message:e,error:t}){const n=[(0,l.createElement)(Hu,{key:"copy-error",text:t.stack},(0,E.__)("Copy Error"))];return(0,l.createElement)(we.Warning,{className:"editor-error-boundary",actions:n},e)}class Uu extends l.Component{constructor(){super(...arguments),this.state={error:null}}componentDidCatch(e){(0,Ee.doAction)("editor.ErrorBoundary.errorLogged",e)}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,l.createElement)(Gu,{message:(0,E.__)("The editor has encountered an unexpected error."),error:this.state.error}):this.props.children}}function $u({path:e,categoryType:t,categoryId:n},a){return"/wp_template/all"===e||"/wp_template_part/all"===e||"/patterns"===e&&(!a||!!t&&!!n)}var ju=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z"}));var Wu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"m12 20-4.5-3.6-.9 1.2L12 22l5.5-4.4-.9-1.2L12 20zm0-16 4.5 3.6.9-1.2L12 2 6.5 6.4l.9 1.2L12 4z"}));var Zu=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"}));const qu=[{keyCombination:{modifier:"primary",character:"b"},description:(0,E.__)("Make the selected text bold.")},{keyCombination:{modifier:"primary",character:"i"},description:(0,E.__)("Make the selected text italic.")},{keyCombination:{modifier:"primary",character:"k"},description:(0,E.__)("Convert the selected text into a link.")},{keyCombination:{modifier:"primaryShift",character:"k"},description:(0,E.__)("Remove a link.")},{keyCombination:{character:"[["},description:(0,E.__)("Insert a link to a post or page.")},{keyCombination:{modifier:"primary",character:"u"},description:(0,E.__)("Underline the selected text.")},{keyCombination:{modifier:"access",character:"d"},description:(0,E.__)("Strikethrough the selected text.")},{keyCombination:{modifier:"access",character:"x"},description:(0,E.__)("Make the selected text inline code.")},{keyCombination:{modifier:"access",character:"0"},description:(0,E.__)("Convert the current heading to a paragraph.")},{keyCombination:{modifier:"access",character:"1-6"},description:(0,E.__)("Convert the current paragraph or heading to a heading of level 1 to 6.")}];function Yu({keyCombination:e,forceAriaLabel:t}){const n=e.modifier?la.displayShortcutList[e.modifier](e.character):e.character,a=e.modifier?la.shortcutAriaLabel[e.modifier](e.character):e.character;return(0,l.createElement)("kbd",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-key-combination","aria-label":t||a},(Array.isArray(n)?n:[n]).map(((e,t)=>"+"===e?(0,l.createElement)(l.Fragment,{key:t},e):(0,l.createElement)("kbd",{key:t,className:"edit-site-keyboard-shortcut-help-modal__shortcut-key"},e))))}function Ku({description:e,keyCombination:t,aliases:n=[],ariaLabel:a}){return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-description"},e),(0,l.createElement)("div",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-term"},(0,l.createElement)(Yu,{keyCombination:t,forceAriaLabel:a}),n.map(((e,t)=>(0,l.createElement)(Yu,{keyCombination:e,forceAriaLabel:a,key:t})))))}function Xu({name:e}){const{keyCombination:t,description:n,aliases:a}=(0,d.useSelect)((t=>{const{getShortcutKeyCombination:n,getShortcutDescription:a,getShortcutAliases:r}=t(Un.store);return{keyCombination:n(e),aliases:r(e),description:a(e)}}),[e]);return t?(0,l.createElement)(Ku,{keyCombination:t,description:n,aliases:a}):null}const Qu="edit-site/keyboard-shortcut-help",Ju=({shortcuts:e})=>(0,l.createElement)("ul",{className:"edit-site-keyboard-shortcut-help-modal__shortcut-list",role:"list"},e.map(((e,t)=>(0,l.createElement)("li",{className:"edit-site-keyboard-shortcut-help-modal__shortcut",key:t},"string"==typeof e?(0,l.createElement)(Xu,{name:e}):(0,l.createElement)(Ku,{...e}))))),ed=({title:e,shortcuts:t,className:n})=>(0,l.createElement)("section",{className:y()("edit-site-keyboard-shortcut-help-modal__section",n)},!!e&&(0,l.createElement)("h2",{className:"edit-site-keyboard-shortcut-help-modal__section-title"},e),(0,l.createElement)(Ju,{shortcuts:t})),td=({title:e,categoryName:t,additionalShortcuts:n=[]})=>{const a=(0,d.useSelect)((e=>e(Un.store).getCategoryShortcuts(t)),[t]);return(0,l.createElement)(ed,{title:e,shortcuts:a.concat(n)})};function nd(){const e=(0,d.useSelect)((e=>e(U).isModalActive(Qu))),{closeModal:t,openModal:n}=(0,d.useDispatch)(U),a=()=>e?t():n(Qu);return(0,Un.useShortcut)("core/edit-site/keyboard-shortcuts",a),e?(0,l.createElement)(v.Modal,{className:"edit-site-keyboard-shortcut-help-modal",title:(0,E.__)("Keyboard shortcuts"),onRequestClose:a},(0,l.createElement)(ed,{className:"edit-site-keyboard-shortcut-help-modal__main-shortcuts",shortcuts:["core/edit-site/keyboard-shortcuts"]}),(0,l.createElement)(td,{title:(0,E.__)("Global shortcuts"),categoryName:"global"}),(0,l.createElement)(td,{title:(0,E.__)("Selection shortcuts"),categoryName:"selection"}),(0,l.createElement)(td,{title:(0,E.__)("Block shortcuts"),categoryName:"block",additionalShortcuts:[{keyCombination:{character:"/"},description:(0,E.__)("Change the block type after adding a new paragraph."),ariaLabel:(0,E.__)("Forward-slash")}]}),(0,l.createElement)(ed,{title:(0,E.__)("Text formatting"),shortcuts:qu})):null}function ad(e){const{featureName:t,onToggle:n=(()=>{}),...a}=e,r=(0,d.useSelect)((e=>!!e(x.store).get("core/edit-site",t)),[t]),{toggle:o}=(0,d.useDispatch)(x.store);return(0,l.createElement)(ye,{onChange:()=>{n(),o("core/edit-site",t)},isChecked:r,...a})}const rd="edit-site/preferences";function od(){const e=(0,d.useSelect)((e=>e(U).isModalActive(rd))),{closeModal:t,openModal:n}=(0,d.useDispatch)(U),a=(0,d.useRegistry)(),{closeGeneralSidebar:r,setIsListViewOpened:o,setIsInserterOpened:i}=(0,d.useDispatch)(Gn),{set:s}=(0,d.useDispatch)(x.store),c=()=>{a.batch((()=>{s("core/edit-site","fixedToolbar",!1),i(!1),o(!1),r()}))},u=(0,l.useMemo)((()=>[{name:"general",tabLabel:(0,E.__)("General"),content:(0,l.createElement)(he,{title:(0,E.__)("Appearance"),description:(0,E.__)("Customize options related to the block editor interface and editing flow.")},(0,l.createElement)(ad,{featureName:"distractionFree",onToggle:c,help:(0,E.__)("Reduce visual distractions by hiding the toolbar and other elements to focus on writing."),label:(0,E.__)("Distraction free")}),(0,l.createElement)(ad,{featureName:"focusMode",help:(0,E.__)("Highlights the current block and fades other content."),label:(0,E.__)("Spotlight mode")}),(0,l.createElement)(ad,{featureName:"showIconLabels",label:(0,E.__)("Show button text labels"),help:(0,E.__)("Show text instead of icons on buttons.")}),(0,l.createElement)(ad,{featureName:"showListViewByDefault",help:(0,E.__)("Opens the block list view sidebar by default."),label:(0,E.__)("Always open list view")}),(0,l.createElement)(ad,{featureName:"showBlockBreadcrumbs",help:(0,E.__)("Shows block breadcrumbs at the bottom of the editor."),label:(0,E.__)("Display block breadcrumbs")}))},{name:"blocks",tabLabel:(0,E.__)("Blocks"),content:(0,l.createElement)(he,{title:(0,E.__)("Block interactions"),description:(0,E.__)("Customize how you interact with blocks in the block library and editing canvas.")},(0,l.createElement)(ad,{featureName:"keepCaretInsideBlock",help:(0,E.__)("Aids screen readers by stopping text caret from leaving blocks."),label:(0,E.__)("Contain text cursor inside block")}))}]));return e?(0,l.createElement)(ue,{closeModal:()=>e?t():n(rd)},(0,l.createElement)(ge,{sections:u})):null}const{Fill:id,Slot:sd}=(0,v.createSlotFill)("EditSiteToolsMoreMenuGroup");id.Slot=({fillProps:e})=>(0,l.createElement)(sd,{fillProps:e},(e=>e&&e.length>0));var ld=id,cd=n(8981),ud=n.n(cd);var dd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18 11.3l-1-1.1-4 4V3h-1.5v11.3L7 10.2l-1 1.1 6.2 5.8 5.8-5.8zm.5 3.7v3.5h-13V15H4v5h16v-5h-1.5z"}));function md(){const{createErrorNotice:e}=(0,d.useDispatch)(Se.store);return(0,l.createElement)(v.MenuItem,{role:"menuitem",icon:dd,onClick:async function(){try{const e=await Rt()({path:"/wp-block-editor/v1/export",parse:!1,headers:{Accept:"application/zip"}}),t=await e.blob(),n=e.headers.get("content-disposition").match(/=(.+)\.zip/),a=n[1]?n[1]:"edit-site-export";ud()(t,a+".zip","application/zip")}catch(t){let n={};try{n=await t.json()}catch(e){}const a=n.message&&"unknown_error"!==n.code?n.message:(0,E.__)("An error occurred while creating the site export.");e(a,{type:"snackbar"})}},info:(0,E.__)("Download your theme with updated templates and styles.")},(0,E._x)("Export","site exporter menu item"))}function pd(){const{toggle:e}=(0,d.useDispatch)(x.store);return(0,l.createElement)(v.MenuItem,{onClick:()=>e("core/edit-site","welcomeGuide")},(0,E.__)("Welcome Guide"))}function _d(){const{createNotice:e}=(0,d.useDispatch)(Se.store),t=(0,d.useSelect)((e=>()=>{const{getEditedPostId:t,getEditedPostType:n}=e(Gn),{getEditedEntityRecord:a}=e(_.store),r=a("postType",n(),t());if(r){if("function"==typeof r.content)return r.content(r);if(r.blocks)return(0,c.__unstableSerializeAndClean)(r.blocks);if(r.content)return r.content}return""}),[]);const n=(0,re.useCopyToClipboard)(t,(function(){e("info",(0,E.__)("All content copied."),{isDismissible:!0,type:"snackbar"})}));return(0,l.createElement)(v.MenuItem,{ref:n},(0,E.__)("Copy all blocks"))}const gd=[{value:"visual",label:(0,E.__)("Visual editor")},{value:"text",label:(0,E.__)("Code editor")}];var hd=function(){const{shortcut:e,mode:t}=(0,d.useSelect)((e=>({shortcut:e(Un.store).getShortcutRepresentation("core/edit-site/toggle-mode"),isRichEditingEnabled:e(Gn).getSettings().richEditingEnabled,isCodeEditingEnabled:e(Gn).getSettings().codeEditingEnabled,mode:e(Gn).getEditorMode()})),[]),{switchEditorMode:n}=(0,d.useDispatch)(Gn),a=gd.map((n=>n.value!==t?{...n,shortcut:e}:n));return(0,l.createElement)(v.MenuGroup,{label:(0,E.__)("Editor")},(0,l.createElement)(v.MenuItemsChoice,{choices:a,value:t,onSelect:n}))};function yd({showIconLabels:e}){const t=(0,d.useRegistry)(),n=(0,d.useSelect)((e=>e(x.store).get("core/edit-site","distractionFree")),[]),{setIsInserterOpened:a,setIsListViewOpened:r,closeGeneralSidebar:o}=(0,d.useDispatch)(Gn),{openModal:i}=(0,d.useDispatch)(U),{set:s}=(0,d.useDispatch)(x.store),c=()=>{t.batch((()=>{s("core/edit-site","fixedToolbar",!1),a(!1),r(!1),o()}))};return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(ce,{toggleProps:{showTooltip:!e,...e&&{variant:"tertiary"}}},(({onClose:e})=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuGroup,{label:(0,E._x)("View","noun")},(0,l.createElement)(x.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"fixedToolbar",disabled:n,label:(0,E.__)("Top toolbar"),info:(0,E.__)("Access all block and document tools in a single place"),messageActivated:(0,E.__)("Top toolbar activated"),messageDeactivated:(0,E.__)("Top toolbar deactivated")}),(0,l.createElement)(x.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"focusMode",label:(0,E.__)("Spotlight mode"),info:(0,E.__)("Focus on one block at a time"),messageActivated:(0,E.__)("Spotlight mode activated"),messageDeactivated:(0,E.__)("Spotlight mode deactivated")}),(0,l.createElement)(x.PreferenceToggleMenuItem,{scope:"core/edit-site",name:"distractionFree",onToggle:c,label:(0,E.__)("Distraction free"),info:(0,E.__)("Write with calmness"),messageActivated:(0,E.__)("Distraction free mode activated"),messageDeactivated:(0,E.__)("Distraction free mode deactivated"),shortcut:la.displayShortcut.primaryShift("\\")})),(0,l.createElement)(hd,null),(0,l.createElement)(K.Slot,{name:"core/edit-site/plugin-more-menu",label:(0,E.__)("Plugins"),as:v.MenuGroup,fillProps:{onClick:e}}),(0,l.createElement)(v.MenuGroup,{label:(0,E.__)("Tools")},(0,l.createElement)(md,null),(0,l.createElement)(v.MenuItem,{onClick:()=>i(Qu),shortcut:la.displayShortcut.access("h")},(0,E.__)("Keyboard shortcuts")),(0,l.createElement)(pd,null),(0,l.createElement)(_d,null),(0,l.createElement)(v.MenuItem,{icon:Zu,role:"menuitem",href:(0,E.__)("https://wordpress.org/documentation/article/site-editor/"),target:"_blank",rel:"noopener noreferrer"},(0,E.__)("Help"),(0,l.createElement)(v.VisuallyHidden,{as:"span"},(0,E.__)("(opens in a new tab)"))),(0,l.createElement)(ld.Slot,{fillProps:{onClose:e}})),(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{onClick:()=>i(rd)},(0,E.__)("Preferences")))))),(0,l.createElement)(nd,null),(0,l.createElement)(od,null))}var vd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z"}));var Ed=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z"}));var fd=(0,l.forwardRef)((function(e,t){const n=(0,d.useSelect)((e=>e(_.store).hasUndo()),[]),{undo:a}=(0,d.useDispatch)(_.store);return(0,l.createElement)(v.Button,{...e,ref:t,icon:(0,E.isRTL)()?Ed:vd,label:(0,E.__)("Undo"),shortcut:la.displayShortcut.primary("z"),"aria-disabled":!n,onClick:n?a:void 0})}));var bd=(0,l.forwardRef)((function(e,t){const n=(0,la.isAppleOS)()?la.displayShortcut.primaryShift("z"):la.displayShortcut.primary("y"),a=(0,d.useSelect)((e=>e(_.store).hasRedo()),[]),{redo:r}=(0,d.useDispatch)(_.store);return(0,l.createElement)(v.Button,{...e,ref:t,icon:(0,E.isRTL)()?vd:Ed,label:(0,E.__)("Redo"),shortcut:n,"aria-disabled":!a,onClick:a?r:void 0})}));const wd={wp_block:(0,E.__)("Editing pattern:"),wp_navigation:(0,E.__)("Editing navigation menu:"),wp_template:(0,E.__)("Editing template:"),wp_template_part:(0,E.__)("Editing template part:")};function Sd(){return(0,d.useSelect)((e=>e(Gn).isPage()),[])?(0,l.createElement)(kd,null):(0,l.createElement)(Cd,null)}function kd(){const{hasPageContentFocus:e,hasResolved:t,isFound:n,title:a}=(0,d.useSelect)((e=>{const{hasPageContentFocus:t,getEditedPostContext:n}=e(Gn),{getEditedEntityRecord:a,hasFinishedResolution:r}=e(_.store),o=n(),i=["postType",o.postType,o.postId],s=a(...i);return{hasPageContentFocus:t(),hasResolved:r("getEditedEntityRecord",i),isFound:!!s,title:s?.title}}),[]),{setHasPageContentFocus:r}=(0,d.useDispatch)(Gn),[o,i]=(0,l.useState)(!1),s=(0,l.useRef)(!1);return(0,l.useEffect)((()=>{s.current&&!e&&i(!0),s.current=e}),[e]),t?n?e?(0,l.createElement)(xd,{className:y()("is-page",{"is-animated":o}),icon:qn},a):(0,l.createElement)(Cd,{className:"is-animated",onBack:()=>r(!0)}):(0,l.createElement)("div",{className:"edit-site-document-actions"},(0,E.__)("Document not found")):null}function Cd({className:e,onBack:t}){var n;const{isLoaded:a,record:r,getTitle:o,icon:i}=qr();if(!a)return null;if(!r)return(0,l.createElement)("div",{className:"edit-site-document-actions"},(0,E.__)("Document not found"));let s=i;return"wp_navigation"===r.type?s=Wn:"wp_block"===r.type&&(s=Kn),(0,l.createElement)(xd,{className:e,icon:s,onBack:t},(0,l.createElement)(v.VisuallyHidden,{as:"span"},null!==(n=wd[r.type])&&void 0!==n?n:wd.wp_template),o())}function xd({className:e,icon:t,children:n,onBack:a}){const{open:r}=(0,d.useDispatch)($n.store);return(0,l.createElement)("div",{className:y()("edit-site-document-actions",e)},a&&(0,l.createElement)(v.Button,{className:"edit-site-document-actions__back",icon:(0,E.isRTL)()?ta:ea,onClick:e=>{e.stopPropagation(),a()}},(0,E.__)("Back")),(0,l.createElement)(v.Button,{className:"edit-site-document-actions__command",onClick:()=>r()},(0,l.createElement)(v.__experimentalHStack,{className:"edit-site-document-actions__title",spacing:1,justify:"center"},(0,l.createElement)(we.BlockIcon,{icon:t}),(0,l.createElement)(v.__experimentalText,{size:"body",as:"h1"},n)),(0,l.createElement)("span",{className:"edit-site-document-actions__shortcut"},la.displayShortcut.primary("k"))))}const{useShouldContextualToolbarShow:Td}=nt(we.privateApis),Nd=e=>{e.preventDefault()};function Md(){const e=(0,l.useRef)(),{deviceType:t,templateType:n,isInserterOpen:a,isListViewOpen:r,listViewShortcut:o,isVisualMode:i,isDistractionFree:s,blockEditorMode:c,homeUrl:u,showIconLabels:m,editorCanvasView:p}=(0,d.useSelect)((e=>{const{__experimentalGetPreviewDeviceType:t,getEditedPostType:n,isInserterOpened:a,isListViewOpened:r,getEditorMode:o}=e(Gn),{getShortcutRepresentation:i}=e(Un.store),{__unstableGetEditorMode:s}=e(we.store),l=n(),{getUnstableBase:c}=e(_.store);return{deviceType:t(),templateType:l,isInserterOpen:a(),isListViewOpen:r(),listViewShortcut:i("core/edit-site/toggle-list-view"),isVisualMode:"visual"===o(),blockEditorMode:s(),homeUrl:c()?.home,showIconLabels:e(x.store).get("core/edit-site","showIconLabels"),editorCanvasView:nt(e(Gn)).getEditorCanvasContainerView(),isDistractionFree:e(x.store).get("core/edit-site","distractionFree")}}),[]),{get:g}=(0,d.useSelect)(x.store),h=g(Gn.name,"fixedToolbar"),{__experimentalSetPreviewDeviceType:f,setIsInserterOpened:b,setIsListViewOpened:w}=(0,d.useDispatch)(Gn),{__unstableSetEditorMode:S}=(0,d.useDispatch)(we.store),k=(0,re.useReducedMotion)(),C=(0,re.useViewportMatch)("medium"),T=(0,l.useCallback)((()=>{a?(e.current.focus(),b(!1)):b(!0)}),[a,b]),N=(0,l.useCallback)((()=>w(!r)),[w,r]),{shouldShowContextualToolbar:M,canFocusHiddenToolbar:P,fixedToolbarCanBeFocused:I}=Td(),B=M||P||I,D=!function(){const e=(0,v.__experimentalUseSlotFills)(La);return!!e?.length}(),R="wp_template_part"===n||"wp_navigation"===n,L=(0,E._x)("Toggle block inserter","Generic label for block inserter button"),A=a?(0,E.__)("Close"):(0,E.__)("Add"),F=window?.__experimentalEnableZoomedOutView&&i,V="zoom-out"===c,z={isDistractionFree:{y:"-50px"},isDistractionFreeHovering:{y:0},view:{y:0},edit:{y:0}},O={type:"tween",duration:k?0:.2,ease:"easeOut"};return(0,l.createElement)("div",{className:y()("edit-site-header-edit-mode",{"show-icon-labels":m})},D&&(0,l.createElement)(we.NavigableToolbar,{as:v.__unstableMotion.div,className:"edit-site-header-edit-mode__start","aria-label":(0,E.__)("Document tools"),shouldUseKeyboardFocusShortcut:!B,variants:z,transition:O},(0,l.createElement)("div",{className:"edit-site-header-edit-mode__toolbar"},!s&&(0,l.createElement)(v.ToolbarItem,{ref:e,as:v.Button,className:"edit-site-header-edit-mode__inserter-toggle",variant:"primary",isPressed:a,onMouseDown:Nd,onClick:T,disabled:!i,icon:vr,label:m?A:L,showTooltip:!m}),C&&(0,l.createElement)(l.Fragment,null,!h&&(0,l.createElement)(v.ToolbarItem,{as:we.ToolSelector,showTooltip:!m,variant:m?"tertiary":void 0,disabled:!i}),(0,l.createElement)(v.ToolbarItem,{as:fd,showTooltip:!m,variant:m?"tertiary":void 0}),(0,l.createElement)(v.ToolbarItem,{as:bd,showTooltip:!m,variant:m?"tertiary":void 0}),!s&&(0,l.createElement)(v.ToolbarItem,{as:v.Button,className:"edit-site-header-edit-mode__list-view-toggle",disabled:!i||V,icon:ju,isPressed:r,label:(0,E.__)("List View"),onClick:N,shortcut:o,showTooltip:!m,variant:m?"tertiary":void 0}),F&&!s&&!h&&(0,l.createElement)(v.ToolbarItem,{as:v.Button,className:"edit-site-header-edit-mode__zoom-out-view-toggle",icon:Wu,isPressed:V,label:(0,E.__)("Zoom-out View"),onClick:()=>{f("desktop"),S(V?"edit":"zoom-out")}})))),!s&&(0,l.createElement)("div",{className:"edit-site-header-edit-mode__center"},D?(0,l.createElement)(Sd,null):Da(p)),(0,l.createElement)("div",{className:"edit-site-header-edit-mode__end"},(0,l.createElement)(v.__unstableMotion.div,{className:"edit-site-header-edit-mode__actions",variants:z,transition:O},!R&&D&&(0,l.createElement)("div",{className:y()("edit-site-header-edit-mode__preview-options",{"is-zoomed-out":V})},(0,l.createElement)(we.__experimentalPreviewOptions,{deviceType:t,setDeviceType:f,label:(0,E.__)("View")},(0,l.createElement)(v.MenuGroup,null,(0,l.createElement)(v.MenuItem,{href:u,target:"_blank",icon:Zu},(0,E.__)("View site"),(0,l.createElement)(v.VisuallyHidden,{as:"span"},(0,E.__)("(opens in a new tab)")))))),(0,l.createElement)(Pi,null),!s&&(0,l.createElement)(ee.Slot,{scope:"core/edit-site"}),(0,l.createElement)(yd,{showIconLabels:m}))))}var Pd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(f.Path,{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"}));var Id=function({className:e}){const{isRequestingSite:t,siteIconUrl:n}=(0,d.useSelect)((e=>{const{getEntityRecord:t}=e(_.store),n=t("root","__unstableBase",void 0);return{isRequestingSite:!n,siteIconUrl:n?.site_icon_url}}),[]);if(t&&!n)return(0,l.createElement)("div",{className:"edit-site-site-icon__image"});const a=n?(0,l.createElement)("img",{className:"edit-site-site-icon__image",alt:(0,E.__)("Site Icon"),src:n}):(0,l.createElement)(v.Icon,{className:"edit-site-site-icon__icon",size:"48px",icon:Pd});return(0,l.createElement)("div",{className:y()(e,"edit-site-site-icon")},a)};const Bd=(0,l.forwardRef)((({isTransparent:e,...t},n)=>{const{canvasMode:a,dashboardLink:r,homeUrl:o}=(0,d.useSelect)((e=>{const{getCanvasMode:t,getSettings:n}=nt(e(Gn)),{getUnstableBase:a}=e(_.store);return{canvasMode:t(),dashboardLink:n().__experimentalDashboardLink||"index.php",homeUrl:a()?.home}}),[]),{open:i}=(0,d.useDispatch)($n.store),s=(0,re.useReducedMotion)(),{setCanvasMode:c,__experimentalSetPreviewDeviceType:u}=nt((0,d.useDispatch)(Gn)),{clearSelectedBlock:m}=(0,d.useDispatch)(we.store),p="view"===a?{href:r,label:(0,E.__)("Go to the Dashboard")}:{href:r,role:"button",label:(0,E.__)("Open Navigation"),onClick:e=>{e.preventDefault(),"edit"===a&&(m(),u("desktop"),c("view"))}},g=(0,d.useSelect)((e=>e(_.store).getEntityRecord("root","site")?.title),[]);return(0,l.createElement)(v.__unstableMotion.div,{ref:n,...t,className:y()("edit-site-site-hub",t.className),initial:!1,transition:{type:"tween",duration:s?0:.3,ease:"easeOut"}},(0,l.createElement)(v.__experimentalHStack,{justify:"space-between",alignment:"center",className:"edit-site-site-hub__container"},(0,l.createElement)(v.__experimentalHStack,{justify:"flex-start",className:"edit-site-site-hub__text-content",spacing:"0"},(0,l.createElement)(v.__unstableMotion.div,{className:y()("edit-site-site-hub__view-mode-toggle-container",{"has-transparent-background":e}),layout:!0,transition:{type:"tween",duration:s?0:.3,ease:"easeOut"}},(0,l.createElement)(v.Button,{...p,className:"edit-site-layout__view-mode-toggle"},(0,l.createElement)(v.__unstableMotion.div,{initial:!1,animate:{scale:"view"===a?.5:1},whileHover:{scale:"view"===a?.5:.96},transition:{type:"tween",duration:s?0:.3,ease:"easeOut"}},(0,l.createElement)(Id,{className:"edit-site-layout__view-mode-toggle-icon"})))),(0,l.createElement)(v.__unstableAnimatePresence,null,(0,l.createElement)(v.__unstableMotion.div,{layout:"edit"===a,animate:{opacity:"view"===a?1:0},exit:{opacity:0},className:y()("edit-site-site-hub__site-title",{"is-transparent":e}),transition:{type:"tween",duration:s?0:.2,ease:"easeOut",delay:"view"===a?.1:0}},(0,At.decodeEntities)(g))),"view"===a&&(0,l.createElement)(v.Button,{href:o,target:"_blank",label:(0,E.__)("View site (opens in a new tab)"),"aria-label":(0,E.__)("View site (opens in a new tab)"),icon:Zu,className:"edit-site-site-hub__site-view-link"})),"view"===a&&(0,l.createElement)(v.Button,{className:y()("edit-site-site-hub_toggle-command-center",{"is-transparent":e}),icon:cr,onClick:()=>i(),label:(0,E.__)("Open command palette")})))}));var Dd=Bd;const Rd={position:void 0,userSelect:void 0,cursor:void 0,width:void 0,height:void 0,top:void 0,right:void 0,bottom:void 0,left:void 0},Ld=320,Ad=1300,Fd=9/19.5,Vd={width:"100%",height:"100%"};function zd(e,t){const n=1-Math.max(0,Math.min(1,(e-Ld)/(Ad-Ld))),a=((e,t,n)=>e+(t-e)*n)(t,Fd,n);return e/a}var Od=function e({isFullWidth:t,isOversized:n,setIsOversized:a,isReady:r,children:o,defaultSize:i,innerContentStyle:s}){const[c,u]=(0,l.useState)(Vd),[m,p]=(0,l.useState)(),[_,g]=(0,l.useState)(!1),[h,f]=(0,l.useState)(!1),[b,w]=(0,l.useState)(1),S=(0,d.useSelect)((e=>nt(e(Gn)).getCanvasMode()),[]),{setCanvasMode:k}=nt((0,d.useDispatch)(Gn)),C={type:"tween",duration:_?0:.5},x=(0,l.useRef)(null),T=(0,re.useInstanceId)(e,"edit-site-resizable-frame-handle-help"),N=i.width/i.height,M={default:{flexGrow:0,height:c.height},fullWidth:{flexGrow:1,height:c.height}},P=_?"active":h?"visible":"hidden";return(0,l.createElement)(v.ResizableBox,{as:v.__unstableMotion.div,ref:x,initial:!1,variants:M,animate:t?"fullWidth":"default",onAnimationComplete:e=>{"fullWidth"===e&&u({width:"100%",height:"100%"})},transition:C,size:c,enable:{top:!1,right:!1,bottom:!1,left:r,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},resizeRatio:b,handleClasses:void 0,handleStyles:{left:Rd,right:Rd},minWidth:Ld,maxWidth:t?"100%":"150%",maxHeight:"100%",onFocus:()=>f(!0),onBlur:()=>f(!1),onMouseOver:()=>f(!0),onMouseOut:()=>f(!1),handleComponent:{left:"view"===S&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.Tooltip,{text:(0,E.__)("Drag to resize")},(0,l.createElement)(v.__unstableMotion.button,{key:"handle",role:"separator","aria-orientation":"vertical",className:y()("edit-site-resizable-frame__handle",{"is-resizing":_}),variants:{hidden:{opacity:0,left:0},visible:{opacity:1,left:-16},active:{opacity:1,left:-16,scaleY:1.3}},animate:P,"aria-label":(0,E.__)("Drag to resize"),"aria-describedby":T,"aria-valuenow":x.current?.resizable?.offsetWidth||void 0,"aria-valuemin":Ld,"aria-valuemax":i.width,onKeyDown:e=>{if(!["ArrowLeft","ArrowRight"].includes(e.key))return;e.preventDefault();const t=20*(e.shiftKey?5:1)*("ArrowLeft"===e.key?1:-1),n=Math.min(Math.max(Ld,x.current.resizable.offsetWidth+t),i.width);u({width:n,height:zd(n,N)})},initial:"hidden",exit:"hidden",whileFocus:"active",whileHover:"active"})),(0,l.createElement)("div",{hidden:!0,id:T},(0,E.__)("Use left and right arrow keys to resize the canvas. Hold shift to resize in larger increments.")))},onResizeStart:(e,t,n)=>{p(n.offsetWidth),g(!0)},onResize:(e,t,r,o)=>{const s=o.width/b,l=Math.abs(s),c=o.width<0?l:(i.width-m)/2,d=Math.min(l,c),p=0===l?0:d/l;w(1-p+2*p);const _=m+o.width;a(_>i.width),u({height:n?"100%":zd(_,N)})},onResizeStop:(e,t,r)=>{if(g(!1),!n)return;a(!1);r.ownerDocument.documentElement.offsetWidth-r.offsetWidth>200?u(Vd):k("edit")},className:y()("edit-site-resizable-frame__inner",{"is-resizing":_})},(0,l.createElement)(v.__unstableMotion.div,{className:"edit-site-resizable-frame__inner-content",animate:{borderRadius:t?0:8},transition:C,style:s},o))};const{useLocation:Hd,useHistory:Gd}=nt(vt.privateApis);const{useHistory:Ud,useLocation:$d}=nt(vt.privateApis);const{EntitiesSavedStatesExtensible:jd}=nt(g.privateApis),Wd=({onClose:e})=>{const t=(0,g.useEntitiesSavedStatesIsDirty)();let n;n=t.isDirty?(0,E.__)("Activate & Save"):(0,E.__)("Activate");const{getTheme:a}=(0,d.useSelect)(_.store),r=a(bt()),o=(0,l.createElement)("p",null,(0,E.sprintf)("Saving your changes will change your active theme to %1$s.",r?.name?.rendered)),i=function(){const e=Ud(),t=$d();return async()=>{if(ft()){const n="themes.php?action=activate&stylesheet="+bt()+"&_wpnonce="+window.WP_BLOCK_THEME_ACTIVATE_NONCE;await window.fetch(n);const{wp_theme_preview:a,...r}=t.params;e.replace(r)}}}();return(0,l.createElement)(jd,{...t,additionalPrompt:o,close:e,onSave:async e=>(await i(),e),saveEnabled:!0,saveLabel:n})},Zd=({onClose:e})=>ft()?(0,l.createElement)(Wd,{onClose:e}):(0,l.createElement)(g.EntitiesSavedStates,{close:e});function qd(){const{isSaveViewOpen:e,canvasMode:t}=(0,d.useSelect)((e=>{const{isSaveViewOpened:t,getCanvasMode:n}=nt(e(Gn));return{isSaveViewOpen:t(),canvasMode:n()}}),[]),{setIsSaveViewOpened:n}=(0,d.useDispatch)(Gn),a=()=>n(!1);return"view"===t?e?(0,l.createElement)(v.Modal,{className:"edit-site-save-panel__modal",onRequestClose:a,__experimentalHideHeader:!0,contentLabel:(0,E.__)("Save site, content, and template changes")},(0,l.createElement)(Zd,{onClose:a})):null:(0,l.createElement)(oe,{className:y()("edit-site-layout__actions",{"is-entity-save-view-open":e}),ariaLabel:(0,E.__)("Save panel")},e?(0,l.createElement)(Zd,{onClose:a}):(0,l.createElement)("div",{className:"edit-site-editor__toggle-save-panel"},(0,l.createElement)(v.Button,{variant:"secondary",className:"edit-site-editor__toggle-save-panel-button",onClick:()=>n(!0),"aria-expanded":!1},(0,E.__)("Open save panel"))))}var Yd=function(){const{registerShortcut:e}=(0,d.useDispatch)(Un.store);return(0,l.useEffect)((()=>{e({name:"core/edit-site/save",category:"global",description:(0,E.__)("Save your changes."),keyCombination:{modifier:"primary",character:"s"}}),e({name:"core/edit-site/undo",category:"global",description:(0,E.__)("Undo your last changes."),keyCombination:{modifier:"primary",character:"z"}}),e({name:"core/edit-site/redo",category:"global",description:(0,E.__)("Redo your last undo."),keyCombination:{modifier:"primaryShift",character:"z"},aliases:(0,la.isAppleOS)()?[]:[{modifier:"primary",character:"y"}]}),e({name:"core/edit-site/toggle-list-view",category:"global",description:(0,E.__)("Open the block list view."),keyCombination:{modifier:"access",character:"o"}}),e({name:"core/edit-site/toggle-block-settings-sidebar",category:"global",description:(0,E.__)("Show or hide the Settings sidebar."),keyCombination:{modifier:"primaryShift",character:","}}),e({name:"core/edit-site/keyboard-shortcuts",category:"main",description:(0,E.__)("Display these keyboard shortcuts."),keyCombination:{modifier:"access",character:"h"}}),e({name:"core/edit-site/next-region",category:"global",description:(0,E.__)("Navigate to the next part of the editor."),keyCombination:{modifier:"ctrl",character:"`"},aliases:[{modifier:"access",character:"n"}]}),e({name:"core/edit-site/previous-region",category:"global",description:(0,E.__)("Navigate to the previous part of the editor."),keyCombination:{modifier:"ctrlShift",character:"`"},aliases:[{modifier:"access",character:"p"},{modifier:"ctrlShift",character:"~"}]}),e({name:"core/edit-site/toggle-mode",category:"global",description:(0,E.__)("Switch between visual editor and code editor."),keyCombination:{modifier:"secondary",character:"m"}}),e({name:"core/edit-site/transform-heading-to-paragraph",category:"block-library",description:(0,E.__)("Transform heading to paragraph."),keyCombination:{modifier:"access",character:"0"}}),[1,2,3,4,5,6].forEach((t=>{e({name:`core/edit-site/transform-paragraph-to-heading-${t}`,category:"block-library",description:(0,E.__)("Transform paragraph to heading."),keyCombination:{modifier:"access",character:`${t}`}})})),e({name:"core/edit-site/toggle-distraction-free",category:"global",description:(0,E.__)("Toggle distraction free mode."),keyCombination:{modifier:"primaryShift",character:"\\"}})}),[e]),null};var Kd=function(){const{__experimentalGetDirtyEntityRecords:e,isSavingEntityRecord:t}=(0,d.useSelect)(_.store),{setIsSaveViewOpened:n}=(0,d.useDispatch)(Gn);return(0,Un.useShortcut)("core/edit-site/save",(a=>{a.preventDefault();const r=e(),o=!!r.length;!r.some((e=>t(e.kind,e.name,e.key)))&&o&&n(!0)})),null};var Xd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"}));var Qd=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"}));const{useGlobalStylesReset:Jd}=nt(we.privateApis),{useHistory:em,useLocation:tm}=nt(vt.privateApis);function nm(){const[e,t]=Jd();return{isLoading:!1,commands:(0,l.useMemo)((()=>e?[{name:"core/edit-site/reset-global-styles",label:(0,E.__)("Reset styles to defaults"),icon:Xd,callback:({close:e})=>{e(),t()}}]:[]),[e,t])}}function am(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t,setCanvasMode:n}=nt((0,d.useDispatch)(Gn)),{params:a}=tm(),r=!$u(a,(0,re.useViewportMatch)("medium","<")),o=em(),{canEditCSS:i}=(0,d.useSelect)((e=>{var t;const{getEntityRecord:n,__experimentalGetCurrentGlobalStylesId:a}=e(_.store),r=a(),o=r?n("root","globalStyles",r):void 0;return{canEditCSS:null!==(t=!!o?._links?.["wp:action-edit-css"])&&void 0!==t&&t}}),[]),{getCanvasMode:s}=nt((0,d.useSelect)(Gn));return{isLoading:!1,commands:(0,l.useMemo)((()=>i?[{name:"core/edit-site/open-styles-css",label:(0,E.__)("Open CSS"),icon:Zn,callback:({close:a})=>{a(),r||o.push({path:"/wp_global_styles",canvas:"edit"}),r&&"edit"!==s()&&n("edit"),e("edit-site/global-styles"),t("global-styles-css")}}]:[]),[o,e,t,i,r,s,n])}}var rm=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"}));var om=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{fillRule:"evenodd",d:"M10.289 4.836A1 1 0 0111.275 4h1.306a1 1 0 01.987.836l.244 1.466c.787.26 1.503.679 2.108 1.218l1.393-.522a1 1 0 011.216.437l.653 1.13a1 1 0 01-.23 1.273l-1.148.944a6.025 6.025 0 010 2.435l1.149.946a1 1 0 01.23 1.272l-.653 1.13a1 1 0 01-1.216.437l-1.394-.522c-.605.54-1.32.958-2.108 1.218l-.244 1.466a1 1 0 01-.987.836h-1.306a1 1 0 01-.986-.836l-.244-1.466a5.995 5.995 0 01-2.108-1.218l-1.394.522a1 1 0 01-1.217-.436l-.653-1.131a1 1 0 01.23-1.272l1.149-.946a6.026 6.026 0 010-2.435l-1.148-.944a1 1 0 01-.23-1.272l.653-1.131a1 1 0 011.217-.437l1.393.522a5.994 5.994 0 012.108-1.218l.244-1.466zM14.929 12a3 3 0 11-6 0 3 3 0 016 0z",clipRule:"evenodd"}));var im=(0,l.createElement)(f.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)(f.Path,{d:"M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z"}));var sm=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,l.createElement)(f.Path,{d:"M18,0 L2,0 C0.9,0 0.01,0.9 0.01,2 L0,12 C0,13.1 0.9,14 2,14 L18,14 C19.1,14 20,13.1 20,12 L20,2 C20,0.9 19.1,0 18,0 Z M18,12 L2,12 L2,2 L18,2 L18,12 Z M9,3 L11,3 L11,5 L9,5 L9,3 Z M9,6 L11,6 L11,8 L9,8 L9,6 Z M6,3 L8,3 L8,5 L6,5 L6,3 Z M6,6 L8,6 L8,8 L6,8 L6,6 Z M3,6 L5,6 L5,8 L3,8 L3,6 Z M3,3 L5,3 L5,5 L3,5 L3,3 Z M6,9 L14,9 L14,11 L6,11 L6,9 Z M12,6 L14,6 L14,8 L12,8 L12,6 Z M12,3 L14,3 L14,5 L12,5 L12,3 Z M15,6 L17,6 L17,8 L15,8 L15,6 Z M15,3 L17,3 L17,5 L15,5 L15,3 Z M10,20 L14,16 L6,16 L10,20 Z"}));const{useHistory:lm}=nt(vt.privateApis);function cm(){const{isPage:e,canvasMode:t,hasPageContentFocus:n}=(0,d.useSelect)((e=>({isPage:e(Gn).isPage(),canvasMode:nt(e(Gn)).getCanvasMode(),hasPageContentFocus:e(Gn).hasPageContentFocus()})),[]),{setHasPageContentFocus:a}=(0,d.useDispatch)(Gn);if(!e||"edit"!==t)return{isLoading:!1,commands:[]};const r=[];return n?r.push({name:"core/switch-to-template-focus",label:(0,E.__)("Edit template"),icon:Yn,callback:({close:e})=>{a(!1),e()}}):r.push({name:"core/switch-to-page-focus",label:(0,E.__)("Back to page"),icon:qn,callback:({close:e})=>{a(!0),e()}}),{isLoading:!1,commands:r}}function um(){const{isLoaded:e,record:t}=qr(),{removeTemplate:n,revertTemplate:a}=(0,d.useDispatch)(Gn),r=lm(),o=(0,d.useSelect)((e=>e(Gn).hasPageContentFocus()),[]);if(!e)return{isLoading:!0,commands:[]};const i=[];if(zt(t)&&!o){const e="wp_template"===t.type?(0,E.__)("Reset template"):(0,E.__)("Reset template part");i.push({name:"core/reset-template",label:e,icon:aa,callback:({close:e})=>{a(t),e()}})}if(to(t)&&!o){const e="wp_template"===t.type?(0,E.__)("Delete template"):(0,E.__)("Delete template part"),a="wp_template"===t.type?"/wp_template":"/wp_template_part/all";i.push({name:"core/remove-template",label:e,icon:Xd,callback:({close:e})=>{n(t),r.push({path:a}),e()}})}return{isLoading:!e,commands:i}}function dm(){const{openGeneralSidebar:e,closeGeneralSidebar:t,setIsInserterOpened:n,setIsListViewOpened:a,switchEditorMode:r}=(0,d.useDispatch)(Gn),{canvasMode:o,editorMode:i,activeSidebar:s}=(0,d.useSelect)((e=>({canvasMode:nt(e(Gn)).getCanvasMode(),editorMode:e(Gn).getEditorMode(),activeSidebar:e(U).getActiveComplementaryArea(Gn.name)})),[]),{openModal:l}=(0,d.useDispatch)(U),{get:c}=(0,d.useSelect)(x.store),{set:u,toggle:m}=(0,d.useDispatch)(x.store),{createInfoNotice:p}=(0,d.useDispatch)(Se.store);if("edit"!==o)return{isLoading:!1,commands:[]};const _=[];return _.push({name:"core/open-settings-sidebar",label:(0,E.__)("Toggle settings sidebar"),icon:(0,E.isRTL)()?Ki:Xi,callback:({close:n})=>{n(),"edit-site/template"===s?t():e("edit-site/template")}}),_.push({name:"core/open-block-inspector",label:(0,E.__)("Toggle block inspector"),icon:rm,callback:({close:n})=>{n(),"edit-site/block-inspector"===s?t():e("edit-site/block-inspector")}}),_.push({name:"core/toggle-spotlight-mode",label:(0,E.__)("Toggle spotlight mode"),icon:om,callback:({close:e})=>{m("core/edit-site","focusMode"),e()}}),_.push({name:"core/toggle-distraction-free",label:(0,E.__)("Toggle distraction free"),icon:om,callback:({close:e})=>{u("core/edit-site","fixedToolbar",!1),n(!1),a(!1),t(),m("core/edit-site","distractionFree"),p(c("core/edit-site","distractionFree")?(0,E.__)("Distraction free mode turned on."):(0,E.__)("Distraction free mode turned off."),{id:"core/edit-site/distraction-free-mode/notice",type:"snackbar"}),e()}}),_.push({name:"core/toggle-top-toolbar",label:(0,E.__)("Toggle top toolbar"),icon:om,callback:({close:e})=>{m("core/edit-site","fixedToolbar"),e()}}),_.push({name:"core/toggle-code-editor",label:(0,E.__)("Toggle code editor"),icon:im,callback:({close:e})=>{r("visual"===i?"text":"visual"),e()}}),_.push({name:"core/open-preferences",label:(0,E.__)("Open editor preferences"),icon:om,callback:()=>{l(rd)}}),_.push({name:"core/open-shortcut-help",label:(0,E.__)("Open keyboard shortcuts"),icon:sm,callback:()=>{l(Qu)}}),{isLoading:!1,commands:_}}function mm({title:e,subTitle:t,actions:n}){return(0,l.createElement)(v.__experimentalHStack,{as:"header",alignment:"left",className:"edit-site-page-header"},(0,l.createElement)(v.FlexBlock,{className:"edit-site-page-header__page-title"},(0,l.createElement)(v.__experimentalHeading,{as:"h2",level:4,className:"edit-site-page-header__title"},e),t&&(0,l.createElement)(v.__experimentalText,{as:"p",className:"edit-site-page-header__sub-title"},t)),(0,l.createElement)(v.FlexItem,{className:"edit-site-page-header__actions"},n))}function pm({title:e,subTitle:t,actions:n,children:a,className:r,hideTitleFromUI:o=!1}){const i=y()("edit-site-page",r);return(0,l.createElement)(oe,{className:i,ariaLabel:e},(0,l.createElement)("div",{className:"edit-site-page-content"},!o&&e&&(0,l.createElement)(mm,{title:e,subTitle:t,actions:n}),a),(0,l.createElement)(g.EditorSnackbars,null))}function _m({categoryId:e,type:t,titleId:n,descriptionId:a}){const{patternCategories:r}=Ao(),o=(0,d.useSelect)((e=>e(g.store).__experimentalGetDefaultTemplatePartAreas()),[]);let i,s;if(e===ko&&t===So)i=(0,E.__)("My Patterns"),s="";else if(t===wo){const t=o.find((t=>t.area===e));i=t?.label,s=t?.description}else if(t===bo){const t=r.find((t=>t.name===e));i=t?.label,s=t?.description}return i?(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-patterns__section-header"},(0,l.createElement)(v.__experimentalHeading,{as:"h2",level:4,id:n},i),s?(0,l.createElement)(v.__experimentalText,{variant:"muted",as:"p",id:a},s):null):null}var gm=(0,l.createElement)(f.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,l.createElement)(f.Path,{d:"M11 13h2v-2h-2v2zm-6 0h2v-2H5v2zm12-2v2h2v-2h-2z"}));function hm({item:e,onClose:t}){const[n,a]=(0,l.useState)((()=>e.title)),[r,o]=(0,l.useState)(!1),{editEntityRecord:i,saveEditedEntityRecord:s}=(0,d.useDispatch)(_.store),{createSuccessNotice:c,createErrorNotice:u}=(0,d.useDispatch)(Se.store);if(e.type===wo&&!e.isCustom)return null;return(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.MenuItem,{onClick:()=>{o(!0),a(e.title)}},(0,E.__)("Rename")),r&&(0,l.createElement)(v.Modal,{title:(0,E.__)("Rename"),onRequestClose:()=>{o(!1),t()},overlayClassName:"edit-site-list__rename_modal"},(0,l.createElement)("form",{onSubmit:async function(r){r.preventDefault();try{await i("postType",e.type,e.id,{title:n}),a(""),o(!1),t(),await s("postType",e.type,e.id,{throwOnError:!0}),c((0,E.__)("Entity renamed."),{type:"snackbar"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while renaming the entity.");u(t,{type:"snackbar"})}}},(0,l.createElement)(v.__experimentalVStack,{spacing:"5"},(0,l.createElement)(v.TextControl,{__nextHasNoMarginBottom:!0,label:(0,E.__)("Name"),value:n,onChange:a,required:!0}),(0,l.createElement)(v.__experimentalHStack,{justify:"right"},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>{o(!1),t()}},(0,E.__)("Cancel")),(0,l.createElement)(v.Button,{variant:"primary",type:"submit"},(0,E.__)("Save")))))))}const{useHistory:ym}=nt(vt.privateApis);function vm(e){if(e.type===bo)return{wp_pattern_sync_status:xo.unsynced};const t=e.reusableBlock.wp_pattern_sync_status,n=t===xo.unsynced;return{...e.reusableBlock.meta,wp_pattern_sync_status:n?t:void 0}}function Em({categoryId:e,item:t,label:n=(0,E.__)("Duplicate"),onClose:a}){const{saveEntityRecord:r}=(0,d.useDispatch)(_.store),{createErrorNotice:o,createSuccessNotice:i}=(0,d.useDispatch)(Se.store),s=ym(),c=Mo();const u=t.type===wo?async function(){try{const n=(0,E.sprintf)((0,E.__)("%s (Copy)"),t.title),o=Po(n,c),l=Io(o),{area:u,content:d}=t.templatePart,m=await r("postType","wp_template_part",{slug:l,title:o,content:d,area:u},{throwOnError:!0});i((0,E.sprintf)((0,E.__)('"%s" created.'),o),{type:"snackbar",id:"edit-site-patterns-success",actions:[{label:(0,E.__)("Edit"),onClick:()=>s.push({postType:wo,postId:m?.id,categoryType:wo,categoryId:e})}]}),a()}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the template part.");o(t,{type:"snackbar",id:"edit-site-patterns-error"}),a()}}:async function(){try{const e=t.type===bo,n=(0,E.sprintf)((0,E.__)("%s (Copy)"),t.title),o=await r("postType","wp_block",{content:e?t.content:t.reusableBlock.content,meta:vm(t),status:"publish",title:n},{throwOnError:!0}),l=e?(0,E.__)("View my patterns"):(0,E.__)("Edit"),c=e?{categoryType:So,categoryId:ko,path:"/patterns"}:{categoryType:So,categoryId:ko,postType:So,postId:o?.id};i((0,E.sprintf)((0,E.__)('"%s" added to my patterns.'),n),{type:"snackbar",id:"edit-site-patterns-success",actions:[{label:l,onClick:()=>s.push(c)}]}),a()}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while creating the pattern.");o(t,{type:"snackbar",id:"edit-site-patterns-error"}),a()}};return(0,l.createElement)(v.MenuItem,{onClick:u},n)}const fm={header:oo,footer:io,uncategorized:Ac};var bm=(0,l.memo)((function({categoryId:e,item:t,...n}){const a=(0,l.useId)(),[r,o]=(0,l.useState)(!1),{removeTemplate:i}=(0,d.useDispatch)(Gn),{__experimentalDeleteReusableBlock:s}=(0,d.useDispatch)(Rc.store),{createErrorNotice:c,createSuccessNotice:u}=(0,d.useDispatch)(Se.store),m=t.type===So,p=t.type===bo,_=t.type===wo,{onClick:g}=St({postType:t.type,postId:m?t.id:t.name,categoryId:e,categoryType:t.type}),h=!t.blocks?.length,f=y()("edit-site-patterns__pattern",{"is-placeholder":h}),b=y()("edit-site-patterns__preview",{"is-inactive":p}),w=m||_&&t.isCustom,S=_&&t.templatePart.has_theme_file,k=[];w?k.push((0,E.__)("Press Enter to edit, or Delete to delete the pattern.")):t.description&&k.push(t.description),p&&k.push((0,E.__)("Theme patterns cannot be edited."));const C=fm[e]||(t.syncStatus===xo.full?Kn:void 0),x=S?(0,E.__)("Clear"):(0,E.__)("Delete"),T=S?(0,E.__)("Are you sure you want to clear these customizations?"):(0,E.sprintf)((0,E.__)('Are you sure you want to delete "%s"?'),t.title);return(0,l.createElement)("li",{className:f},(0,l.createElement)("button",{className:b,id:`edit-site-patterns-${t.name}`,...n,onClick:t.type!==bo?g:void 0,"aria-disabled":t.type!==bo?"false":"true","aria-label":t.title,"aria-describedby":k.length?k.map(((e,t)=>`${a}-${t}`)).join(" "):void 0},h&&(0,E.__)("Empty pattern"),!h&&(0,l.createElement)(we.BlockPreview,{blocks:t.blocks})),k.map(((e,t)=>(0,l.createElement)("div",{key:t,hidden:!0,id:`${a}-${t}`},e))),(0,l.createElement)(v.__experimentalHStack,{className:"edit-site-patterns__footer",justify:"space-between"},(0,l.createElement)(v.__experimentalHStack,{alignment:"center",justify:"left",spacing:3,className:"edit-site-patterns__pattern-title"},C&&!p&&(0,l.createElement)(v.Tooltip,{position:"top center",text:(0,E.__)("Editing this pattern will also update anywhere it is used")},(0,l.createElement)("span",null,(0,l.createElement)(de,{className:"edit-site-patterns__pattern-icon",icon:C}))),(0,l.createElement)(v.Flex,{as:"span",gap:0,justify:"left"},t.type===bo?t.title:(0,l.createElement)(v.__experimentalHeading,{level:5},(0,l.createElement)(v.Button,{variant:"link",onClick:g,tabIndex:"-1"},t.title)),t.type===bo&&(0,l.createElement)(v.Tooltip,{position:"top center",text:(0,E.__)("Theme patterns cannot be edited.")},(0,l.createElement)("span",{className:"edit-site-patterns__pattern-lock-icon"},(0,l.createElement)(de,{icon:yo,size:24}))))),(0,l.createElement)(v.DropdownMenu,{icon:gm,label:(0,E.__)("Actions"),className:"edit-site-patterns__dropdown",popoverProps:{placement:"bottom-end"},toggleProps:{className:"edit-site-patterns__button",isSmall:!0,describedBy:(0,E.sprintf)((0,E.__)("Action menu for %s pattern"),t.title)}},(({onClose:n})=>(0,l.createElement)(v.MenuGroup,null,w&&!S&&(0,l.createElement)(hm,{item:t,onClose:n}),(0,l.createElement)(Em,{categoryId:e,item:t,onClose:n,label:p?(0,E.__)("Copy to My patterns"):(0,E.__)("Duplicate")}),w&&(0,l.createElement)(v.MenuItem,{onClick:()=>o(!0)},S?(0,E.__)("Clear customizations"):(0,E.__)("Delete")))))),r&&(0,l.createElement)(v.__experimentalConfirmDialog,{confirmButtonText:x,onConfirm:()=>_?i(t):(async()=>{try{await s(t.id),u((0,E.sprintf)((0,E.__)('"%s" deleted.'),t.title),{type:"snackbar",id:"edit-site-patterns-success"})}catch(e){const t=e.message&&"unknown_error"!==e.code?e.message:(0,E.__)("An error occurred while deleting the pattern.");c(t,{type:"snackbar",id:"edit-site-patterns-error"})}})(),onCancel:()=>o(!1)},T))}));const wm=20;function Sm({currentPage:e,numPages:t,changePage:n,totalItems:a}){return(0,l.createElement)(v.__experimentalHStack,{expanded:!1,spacing:3,className:"edit-site-patterns__grid-pagination"},(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.sprintf)((0,E._n)("%s item","%s items",a),a)),(0,l.createElement)(v.__experimentalHStack,{expanded:!1,spacing:1},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>n(1),disabled:1===e,"aria-label":(0,E.__)("First page")},"«"),(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>n(e-1),disabled:1===e,"aria-label":(0,E.__)("Previous page")},"‹")),(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,E.sprintf)((0,E._x)("%1$s of %2$s","paging"),e,t)),(0,l.createElement)(v.__experimentalHStack,{expanded:!1,spacing:1},(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>n(e+1),disabled:e===t,"aria-label":(0,E.__)("Next page")},"›"),(0,l.createElement)(v.Button,{variant:"tertiary",onClick:()=>n(t),disabled:e===t,"aria-label":(0,E.__)("Last page")},"»")))}function km({categoryId:e,items:t,currentPage:n,setCurrentPage:a,...r}){const o=(0,l.useRef)(),i=t.length,s=n-1,c=(0,l.useMemo)((()=>t.slice(s*wm,s*wm+wm)),[s,t]),u=(0,re.useAsyncList)(c,{step:10});if(!c?.length)return null;const d=Math.ceil(t.length/wm);return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("ul",{role:"listbox",className:"edit-site-patterns__grid",...r,ref:o},u.map((t=>(0,l.createElement)(bm,{key:t.name,item:t,categoryId:e})))),d>1&&(0,l.createElement)(Sm,{currentPage:n,numPages:d,changePage:e=>{const t=document.querySelector(".edit-site-patterns");t?.scrollTo(0,0),a(e)},totalItems:i}))}function Cm(){return(0,l.createElement)("div",{className:"edit-site-patterns__no-results"},(0,E.__)("No patterns found."))}var xm=n(4793),Tm=n.n(xm);function Nm(e){return e.toLowerCase()}var Mm=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Pm=/[^A-Z0-9]+/gi;function Im(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}const Bm=e=>e.name||"",Dm=e=>e.title,Rm=e=>e.description||"",Lm=e=>e.keywords||[],Am=()=>!1;function Fm(e=""){return function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,a=void 0===n?Mm:n,r=t.stripRegexp,o=void 0===r?Pm:r,i=t.transform,s=void 0===i?Nm:i,l=t.delimiter,c=void 0===l?" ":l,u=Im(Im(e,a,"$1\0$2"),o,"\0"),d=0,m=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(m-1);)m--;return u.slice(d,m).split("\0").map(s).join(c)}(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function Vm(e=""){return e=(e=(e=Tm()(e)).replace(/^\//,"")).toLowerCase()}const zm=(e="")=>Fm(Vm(e)),Om=(e=[],t="",n={})=>{const a=zm(t),r=!a.length,o={...n,onlyFilterByCategory:r},i=r?0:1,s=e.map((e=>[e,Hm(e,t,o)])).filter((([,e])=>e>i));return 0===a.length||s.sort((([,e],[,t])=>t-e)),s.map((([e])=>e))};function Hm(e,t,n){const{categoryId:a,getName:r=Bm,getTitle:o=Dm,getDescription:i=Rm,getKeywords:s=Lm,hasCategory:l=Am,onlyFilterByCategory:c}=n;let u=l(e,a)?1:0;if(!u||c)return u;const d=r(e),m=o(e),p=i(e),_=s(e),g=Vm(t),h=Vm(m);if(g===h)u+=30;else if(h.startsWith(g))u+=20;else{const e=[d,m,p,..._].join(" ");0===((e,t)=>e.filter((e=>!zm(t).some((t=>t.includes(e))))))(Fm(g),e).length&&(u+=10)}return u}const Gm=[],Um=(e,t)=>e&&t?e+"//"+t:null,$m=(e,{categoryId:t,search:n=""}={})=>{var a;const{getEntityRecords:r,getIsResolving:o}=e(_.store),{__experimentalGetDefaultTemplatePartAreas:i}=e(g.store),s={per_page:-1},l=(null!==(a=r("postType",wo,s))&&void 0!==a?a:Gm).map((e=>(e=>({blocks:(0,c.parse)(e.content.raw),categories:[e.area],description:e.description||"",isCustom:"custom"===e.source,keywords:e.keywords||[],id:Um(e.theme,e.slug),name:Um(e.theme,e.slug),title:(0,At.decodeEntities)(e.title.rendered),type:e.type,templatePart:e}))(e))),u=(i()||[]).map((e=>e.area)),d=o("getEntityRecords",["postType","wp_template_part",s]),m=Om(l,n,{categoryId:t,hasCategory:(e,t)=>"uncategorized"!==t?e.templatePart.area===t:e.templatePart.area===t||!u.includes(e.templatePart.area)});return{patterns:m,isResolving:d}},jm=(e,{search:t="",syncStatus:n}={})=>{const{getEntityRecords:a,getIsResolving:r}=e(_.store),o={per_page:-1},i=a("postType",So,o);let s=i?i.map((e=>{return t=e,{blocks:(0,c.parse)(t.content.raw),categories:t.wp_pattern,id:t.id,name:t.slug,syncStatus:t.wp_pattern_sync_status||xo.full,title:t.title.raw,type:t.type,reusableBlock:t};var t})):Gm;const l=r("getEntityRecords",["postType",So,o]);return n&&(s=s.filter((e=>e.syncStatus===n))),s=Om(s,t,{hasCategory:()=>!0}),{patterns:s,isResolving:l}};var Wm=(e,t,{search:n="",syncStatus:a})=>(0,d.useSelect)((r=>e===wo?$m(r,{categoryId:t,search:n}):e===bo?((e,{categoryId:t,search:n=""}={})=>{var a;const{getSettings:r}=nt(e(Gn)),o=r();let i=[...(null!==(a=o.__experimentalAdditionalBlockPatterns)&&void 0!==a?a:o.__experimentalBlockPatterns)||[],...e(_.store).getBlockPatterns()||[]].filter((e=>!Co.includes(e.source))).filter(To).filter((e=>!1!==e.inserter)).map((e=>({...e,keywords:e.keywords||[],type:"pattern",blocks:(0,c.parse)(e.content)})));return i=Om(i,n,t?{categoryId:t,hasCategory:(e,t)=>e.categories?.includes(t)}:{hasCategory:e=>!e.hasOwnProperty("categories")}),{patterns:i,isResolving:!1}})(r,{categoryId:t,search:n}):e===So?jm(r,{search:n,syncStatus:a}):{patterns:Gm,isResolving:!1}),[t,e,n,a]);const{useLocation:Zm,useHistory:qm}=nt(vt.privateApis),Ym={all:(0,E.__)("All"),[xo.full]:(0,E.__)("Synced"),[xo.unsynced]:(0,E.__)("Standard")},Km={all:"",[xo.full]:(0,E.__)("Patterns that are kept in sync across the site."),[xo.unsynced]:(0,E.__)("Patterns that can be changed freely without affecting the site.")};function Xm({categoryId:e,type:t}){const[n,a]=(0,l.useState)(1),r=Zm(),o=qm(),i=(0,re.useViewportMatch)("medium","<"),[s,c,u]=Er(""),d=(0,l.useDeferredValue)(u),[m,p]=(0,l.useState)("all"),_=(0,l.useDeferredValue)(m),g=t===bo&&"uncategorized"===e,{patterns:h,isResolving:y}=Wm(t,g?"":e,{search:d,syncStatus:"all"===_?void 0:_}),f=(0,l.useId)(),b=`${f}-title`,w=`${f}-description`,S=h.length,k=Ym[m],C=Km[m];return(0,l.createElement)(v.__experimentalVStack,{spacing:6},(0,l.createElement)(_m,{categoryId:e,type:t,titleId:b,descriptionId:w}),(0,l.createElement)(v.Flex,{alignment:"stretch",wrap:!0},i&&(0,l.createElement)(Xn,{icon:(0,E.isRTL)()?pe:me,label:(0,E.__)("Back"),onClick:()=>{"/patterns"===r.state?.backPath?o.back():o.push({path:"/patterns"})}}),(0,l.createElement)(v.FlexBlock,{className:"edit-site-patterns__search-block"},(0,l.createElement)(v.SearchControl,{className:"edit-site-patterns__search",onChange:e=>(e=>{a(1),c(e)})(e),placeholder:(0,E.__)("Search patterns"),label:(0,E.__)("Search patterns"),value:s,__nextHasNoMarginBottom:!0})),e===ko&&(0,l.createElement)(v.__experimentalToggleGroupControl,{className:"edit-site-patterns__sync-status-filter",hideLabelFromVision:!0,label:(0,E.__)("Filter by sync status"),value:m,isBlock:!0,onChange:e=>(e=>{a(1),p(e)})(e),__nextHasNoMarginBottom:!0},Object.entries(Ym).map((([e,t])=>(0,l.createElement)(v.__experimentalToggleGroupControlOption,{className:"edit-site-patterns__sync-status-filter-option",key:e,value:e,label:t}))))),"all"!==m&&(0,l.createElement)(v.__experimentalVStack,{className:"edit-site-patterns__section-header"},(0,l.createElement)(v.__experimentalHeading,{as:"h3",level:5,id:b},k),C?(0,l.createElement)(v.__experimentalText,{variant:"muted",as:"p",id:w},C):null),S&&(0,l.createElement)(km,{categoryId:e,items:h,"aria-labelledby":b,"aria-describedby":w,currentPage:n,setCurrentPage:a}),!y&&!S&&(0,l.createElement)(Cm,null))}const{ExperimentalBlockEditorProvider:Qm}=nt(we.privateApis);function Jm(){const{categoryType:e,categoryId:t}=(0,Et.getQueryArgs)(window.location.href),n=e||fo,a=t||Eo,r=function(){var e;const t=(0,d.useSelect)((e=>{const{getSettings:t}=nt(e(Gn));return t()}),[]),n=null!==(e=t.__experimentalAdditionalBlockPatterns)&&void 0!==e?e:t.__experimentalBlockPatterns,a=(0,d.useSelect)((e=>e(_.store).getBlockPatterns()),[]),r=(0,l.useMemo)((()=>[...n||[],...a||[]].filter(To)),[n,a]);return(0,l.useMemo)((()=>{const{__experimentalAdditionalBlockPatterns:e,...n}=t;return{...n,__experimentalBlockPatterns:r,__unstableIsPreviewMode:!0}}),[t,r])}();return(0,l.createElement)(Qm,{settings:r},(0,l.createElement)(pm,{className:"edit-site-patterns",title:(0,E.__)("Patterns content"),hideTitleFromUI:!0},(0,l.createElement)(Xm,{key:`${n}-${a}`,type:n,categoryId:a})))}function ep({data:e,columns:t}){return(0,l.createElement)("div",{className:"edit-site-table-wrapper"},(0,l.createElement)("table",{className:"edit-site-table"},(0,l.createElement)("thead",null,(0,l.createElement)("tr",null,t.map((e=>(0,l.createElement)("th",{key:e.header},e.header))))),(0,l.createElement)("tbody",null,e.map(((e,n)=>(0,l.createElement)("tr",{key:n},t.map(((t,n)=>(0,l.createElement)("td",{style:{maxWidth:t.maxWidth?t.maxWidth:void 0},key:n},t.cell(e))))))))))}const{useHistory:tp}=nt(vt.privateApis);function np(){const{canCreate:e,postType:t}=(0,d.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(Gn).getSettings();return{canCreate:!t,postType:e(_.store).getPostType("wp_template_part")}}),[]),[n,a]=(0,l.useState)(!1),r=tp();return e&&t?(0,l.createElement)(l.Fragment,null,(0,l.createElement)(v.Button,{variant:"primary",onClick:()=>a(!0)},t.labels.add_new_item),n&&(0,l.createElement)(Bo,{closeModal:()=>a(!1),blocks:[],onCreate:e=>{a(!1),r.push({postId:e.id,postType:"wp_template_part",canvas:"edit"})},onError:()=>a(!1)})):null}function ap(){const{records:e}=(0,_.useEntityRecords)("postType","wp_template_part",{per_page:-1}),t=[{header:(0,E.__)("Template Part"),cell:e=>(0,l.createElement)(v.__experimentalVStack,null,(0,l.createElement)(v.__experimentalHeading,{as:"h3",level:5},(0,l.createElement)(kt,{params:{postId:e.id,postType:e.type},state:{backPath:"/wp_template_part/all"}},(0,At.decodeEntities)(e.title?.rendered||e.slug)))),maxWidth:400},{header:(0,E.__)("Added by"),cell:e=>(0,l.createElement)(eo,{postType:e.type,postId:e.id})},{header:(0,l.createElement)(v.VisuallyHidden,null,(0,E.__)("Actions")),cell:e=>(0,l.createElement)(ao,{postType:e.type,postId:e.id})}];return(0,l.createElement)(pm,{title:(0,E.__)("Template Parts"),actions:(0,l.createElement)(np,null)},e&&(0,l.createElement)(ep,{data:e,columns:t}))}function rp(){const{records:e}=(0,_.useEntityRecords)("postType","wp_template",{per_page:-1}),{canCreate:t}=(0,d.useSelect)((e=>{const{supportsTemplatePartsMode:t}=e(Gn).getSettings();return{postType:e(_.store).getPostType("wp_template"),canCreate:!t}})),n=[{header:(0,E.__)("Template"),cell:e=>(0,l.createElement)(v.__experimentalVStack,null,(0,l.createElement)(v.__experimentalHeading,{as:"h3",level:5},(0,l.createElement)(kt,{params:{postId:e.id,postType:e.type,canvas:"edit"}},(0,At.decodeEntities)(e.title?.rendered||e.slug))),e.description&&(0,l.createElement)(v.__experimentalText,{variant:"muted"},(0,At.decodeEntities)(e.description))),maxWidth:400},{header:(0,E.__)("Added by"),cell:e=>(0,l.createElement)(eo,{postType:e.type,postId:e.id})},{header:(0,l.createElement)(v.VisuallyHidden,null,(0,E.__)("Actions")),cell:e=>(0,l.createElement)(ao,{postType:e.type,postId:e.id})}];return(0,l.createElement)(pm,{title:(0,E.__)("Templates"),actions:t&&(0,l.createElement)(jr,{templateType:"wp_template",showIcon:!1,toggleProps:{variant:"primary"}})},e&&(0,l.createElement)(ep,{data:e,columns:n}))}const{useLocation:op}=nt(vt.privateApis);function ip(){const{params:{path:e}}=op();return"/wp_template/all"===e?(0,l.createElement)(rp,null):"/wp_template_part/all"===e?(0,l.createElement)(ap,null):"/patterns"===e?(0,l.createElement)(Jm,null):null}const sp=1e4;const{useCommands:lp}=nt(jn.privateApis),{useCommandContext:cp}=nt($n.privateApis),{useLocation:up}=nt(vt.privateApis),{useGlobalStyle:dp}=nt(we.privateApis),mp=.5;function pp(){Go(),function(){const e=Gd(),{params:t}=Hd(),n=(0,d.useSelect)((e=>nt(e(Gn)).getCanvasMode()),[]),{setCanvasMode:a}=nt((0,d.useDispatch)(Gn)),r=(0,l.useRef)(n),{canvas:o}=t,i=(0,l.useRef)(o),s=(0,l.useRef)(t);(0,l.useEffect)((()=>{s.current=t}),[t]),(0,l.useEffect)((()=>{r.current=n,"init"!==n&&("edit"===n&&i.current!==n&&e.push({...s.current,canvas:"edit"}),"view"===n&&void 0!==i.current&&e.push({...s.current,canvas:void 0}))}),[n,e]),(0,l.useEffect)((()=>{i.current=o,"edit"!==o&&"view"!==r.current?a("view"):"edit"===o&&"edit"!==r.current&&a("edit")}),[o,a])}(),lp(),(0,$n.useCommandLoader)({name:"core/edit-site/page-content-focus",hook:cm,context:"site-editor-edit"}),(0,$n.useCommandLoader)({name:"core/edit-site/manipulate-document",hook:um}),(0,$n.useCommandLoader)({name:"core/edit-site/edit-ui",hook:dm}),function(){const{openGeneralSidebar:e,setEditorCanvasContainerView:t,setCanvasMode:n}=nt((0,d.useDispatch)(Gn)),{params:a}=tm(),r=!$u(a,(0,re.useViewportMatch)("medium","<")),{getCanvasMode:o}=nt((0,d.useSelect)(Gn)),{set:i}=(0,d.useDispatch)(x.store),{createInfoNotice:s}=(0,d.useDispatch)(Se.store),l=em(),{homeUrl:c,isDistractionFree:u}=(0,d.useSelect)((e=>{const{getUnstableBase:t}=e(_.store);return{homeUrl:t()?.home,isDistractionFree:e(x.store).get(Gn.name,"distractionFree")}}),[]);(0,$n.useCommand)({name:"core/edit-site/open-global-styles-revisions",label:(0,E.__)("Open styles revisions"),icon:aa,callback:({close:a})=>{a(),r||l.push({path:"/wp_global_styles",canvas:"edit"}),r&&"edit"!==o()&&n("edit"),e("edit-site/global-styles"),t("global-styles-revisions")}}),(0,$n.useCommand)({name:"core/edit-site/open-styles",label:(0,E.__)("Open styles"),callback:({close:t})=>{t(),r||l.push({path:"/wp_global_styles",canvas:"edit"}),r&&"edit"!==o()&&n("edit"),u&&(i(Gn.name,"distractionFree",!1),s((0,E.__)("Distraction free mode turned off."),{type:"snackbar"})),e("edit-site/global-styles")},icon:Zn}),(0,$n.useCommand)({name:"core/edit-site/toggle-styles-welcome-guide",label:(0,E.__)("Learn about styles"),callback:({close:t})=>{t(),r||l.push({path:"/wp_global_styles",canvas:"edit"}),r&&"edit"!==o()&&n("edit"),e("edit-site/global-styles"),i("core/edit-site","welcomeGuideStyles",!0),setTimeout((()=>{i("core/edit-site","welcomeGuideStyles",!0)}),500)},icon:Qd}),(0,$n.useCommand)({name:"core/edit-site/view-site",label:(0,E.__)("View site"),callback:({close:e})=>{e(),window.open(c,"_blank")},icon:Zu}),(0,$n.useCommandLoader)({name:"core/edit-site/reset-global-styles",hook:nm}),(0,$n.useCommandLoader)({name:"core/edit-site/open-styles-css",hook:am})}();const e=(0,l.useRef)(),{params:t}=up(),n=(0,re.useViewportMatch)("medium","<"),a=$u(t,n),r=!a,{isDistractionFree:o,hasFixedToolbar:i,canvasMode:s,previousShortcut:c,nextShortcut:u}=(0,d.useSelect)((e=>{const{getAllShortcutKeyCombinations:t}=e(Un.store),{getCanvasMode:n}=nt(e(Gn));return{canvasMode:n(),previousShortcut:t("core/edit-site/previous-region"),nextShortcut:t("core/edit-site/next-region"),hasFixedToolbar:e(x.store).get("core/edit-site","fixedToolbar"),isDistractionFree:e(x.store).get("core/edit-site","distractionFree")}}),[]),m="edit"===s,p=(0,v.__unstableUseNavigateRegions)({previous:c,next:u}),g=(0,re.useReducedMotion)(),h=n&&!a||!n&&("view"===s||!r),f=n&&r&&m||!n||!r,b=n&&a||r&&m,[w,S]=(0,re.useResizeObserver)(),[k]=(0,re.useResizeObserver)(),[C]=(0,l.useState)(!1),T=function(){const{isLoaded:e}=qr(),[t,n]=(0,l.useState)(!1),a=(0,d.useSelect)((e=>{const n=e(_.store).hasResolvingSelectors();return!t&&!n}),[t]);return(0,l.useEffect)((()=>{let e;return t||(e=setTimeout((()=>{n(!0)}),sp)),()=>{clearTimeout(e)}}),[t]),(0,l.useEffect)((()=>{if(a){const e=setTimeout((()=>{n(!0)}),1e3);return()=>{clearTimeout(e)}}}),[a]),!t||!e}(),[N,M]=(0,l.useState)(!1);let P;P="view"===s?"view":o?"isDistractionFree":s;cp("edit"===s&&r?"site-editor-edit":"site-editor");const[I]=dp("color.background"),[B]=dp("color.gradient");return"init"===s?null:(0,l.createElement)(l.Fragment,null,(0,l.createElement)($n.CommandMenu,null),(0,l.createElement)(Yd,null),(0,l.createElement)(Kd,null),k,(0,l.createElement)("div",{...p,ref:p.ref,className:y()("edit-site-layout",p.className,{"is-distraction-free":o&&m,"is-full-canvas":b,"is-edit-mode":m,"has-fixed-toolbar":i})},(0,l.createElement)(v.__unstableMotion.div,{className:"edit-site-layout__header-container",variants:{isDistractionFree:{opacity:0,transition:{type:"tween",delay:.8,delayChildren:.8}},isDistractionFreeHovering:{opacity:1,transition:{type:"tween",delay:.2,delayChildren:.2}},view:{opacity:1},edit:{opacity:1}},whileHover:o?"isDistractionFreeHovering":void 0,animate:P},(0,l.createElement)(Dd,{as:v.__unstableMotion.div,variants:{isDistractionFree:{x:"-100%"},isDistractionFreeHovering:{x:0},view:{x:0},edit:{x:0}},ref:e,isTransparent:N,className:"edit-site-layout__hub"}),(0,l.createElement)(v.__unstableAnimatePresence,{initial:!1},r&&m&&(0,l.createElement)(oe,{key:"header",className:"edit-site-layout__header",ariaLabel:(0,E.__)("Editor top bar"),as:v.__unstableMotion.div,variants:{isDistractionFree:{opacity:0,y:0},isDistractionFreeHovering:{opacity:1,y:0},view:{opacity:1,y:"-100%"},edit:{opacity:1,y:0}},exit:{y:"-100%"},initial:{opacity:o?1:0,y:o?0:"-100%"},transition:{type:"tween",duration:g?0:.2,ease:"easeOut"}},(0,l.createElement)(Md,null)))),(0,l.createElement)("div",{className:"edit-site-layout__content"},(0,l.createElement)(oe,{ariaLabel:(0,E.__)("Navigation"),className:"edit-site-layout__sidebar-region"},(0,l.createElement)(v.__unstableMotion.div,{inert:h?void 0:"inert",animate:{opacity:h?1:0},transition:{type:"tween",duration:g||n?0:mp,ease:"easeOut"},className:"edit-site-layout__sidebar"},(0,l.createElement)(Yi,null))),(0,l.createElement)(qd,null),f&&(0,l.createElement)(l.Fragment,null,a&&(0,l.createElement)(ip,null),r&&(0,l.createElement)("div",{className:y()("edit-site-layout__canvas-container",{"is-resizing":C})},w,!!S.width&&(0,l.createElement)(v.__unstableMotion.div,{whileHover:r&&"view"===s?{scale:1.005,transition:{duration:g||C?0:.5,ease:"easeOut"}}:{},initial:!1,layout:"position",className:y()("edit-site-layout__canvas",{"is-right-aligned":N}),transition:{type:"tween",duration:g||C?0:mp,ease:"easeOut"}},(0,l.createElement)(Uu,null,(0,l.createElement)(Od,{isReady:!T,isFullWidth:m,defaultSize:{width:S.width-24,height:S.height},isOversized:N,setIsOversized:M,innerContentStyle:{background:null!=B?B:I}},(0,l.createElement)(Ou,{isLoading:T})))))))))}const{RouterProvider:_p}=nt(vt.privateApis);function gp(){const{createErrorNotice:e}=(0,d.useDispatch)(Se.store);return(0,l.createElement)(Un.ShortcutProvider,{style:{height:"100%"}},(0,l.createElement)(v.SlotFillProvider,null,(0,l.createElement)(ya,null,(0,l.createElement)(v.Popover.Slot,null),(0,l.createElement)(g.UnsavedChangesWarning,null),(0,l.createElement)(_p,null,(0,l.createElement)(pp,null),(0,l.createElement)($.PluginArea,{onError:function(t){e((0,E.sprintf)((0,E.__)('The "%s" plugin has encountered an error and cannot be rendered.'),t))}})))))}function hp({className:e,...t}){const n=(0,d.useSelect)((e=>e(Gn).getSettings().showIconLabels),[]);return(0,l.createElement)(ae,{panelClassName:e,className:"edit-site-sidebar-edit-mode",scope:"core/edit-site",showIconLabels:n,...t})}function yp(e){return(0,l.createElement)(Q,{__unstableExplicitMenuItem:!0,scope:"core/edit-site",...e})}var vp=(0,re.compose)((0,$.withPluginContext)(((e,t)=>{var n;return{as:null!==(n=t.as)&&void 0!==n?n:v.MenuItem,icon:t.icon||e.icon,name:"core/edit-site/plugin-more-menu"}})))(K);function Ep(e,t){const n=document.getElementById(e),a=(0,l.createRoot)(n);t.__experimentalFetchLinkSuggestions=(e,n)=>(0,_.__experimentalFetchLinkSuggestions)(e,n,t),t.__experimentalFetchRichUrlData=_.__experimentalFetchUrlData,(0,d.dispatch)(c.store).__experimentalReapplyBlockTypeFilters();const r=(0,u.__experimentalGetCoreBlocks)().filter((({name:e})=>"core/freeform"!==e));return(0,u.registerCoreBlocks)(r),(0,d.dispatch)(c.store).setFreeformFallbackBlockName("core/html"),(0,ve.registerLegacyWidgetBlock)({inserter:!1}),(0,ve.registerWidgetGroupBlock)({inserter:!1}),(0,d.dispatch)(x.store).setDefaults("core/edit-site",{editorMode:"visual",fixedToolbar:!1,focusMode:!1,distractionFree:!1,keepCaretInsideBlock:!1,welcomeGuide:!0,welcomeGuideStyles:!0,welcomeGuidePage:!0,welcomeGuideTemplate:!0,showListViewByDefault:!1,showBlockBreadcrumbs:!0}),(0,d.dispatch)(U).setDefaultComplementaryArea("core/edit-site","edit-site/template"),(0,d.dispatch)(Gn).updateSettings(t),(0,d.dispatch)(g.store).updateEditorSettings({defaultTemplateTypes:t.defaultTemplateTypes,defaultTemplatePartAreas:t.defaultTemplatePartAreas}),window.addEventListener("dragover",(e=>e.preventDefault()),!1),window.addEventListener("drop",(e=>e.preventDefault()),!1),a.render((0,l.createElement)(gp,null)),a}function fp(){p()("wp.editSite.reinitializeEditor",{since:"6.2",version:"6.3"})}}(),(window.wp=window.wp||{}).editSite=a}();
\ No newline at end of file
}
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
-function _typeof(obj) {
+function _typeof(o) {
"@babel/helpers - typeof";
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
- return typeof obj;
- } : function (obj) {
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
- }, _typeof(obj);
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
+ return typeof o;
+ } : function (o) {
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
+ }, _typeof(o);
}
;// CONCATENATED MODULE: ./node_modules/date-fns/esm/_lib/requiredArgs/index.js
function requiredArgs(required, args) {
* unique across all registered formats.
* @property {string} tagName The HTML tag this format will wrap the
* selection with.
+ * @property {boolean} interactive Whether format makes content interactive or not.
* @property {string} [className] A class to match the format.
* @property {string} title Name of the format.
* @property {Function} edit Should return a component for the user to
$attachments[ $val->ID ] = $_attachments[ $key ];
}
} elseif ( ! empty( $atts['exclude'] ) ) {
+ $post_parent_id = $id;
$attachments = get_children(
array(
'post_parent' => $id,
)
);
} else {
+ $post_parent_id = $id;
$attachments = get_children(
array(
'post_parent' => $id,
);
}
+ if ( ! empty( $post_parent_id ) ) {
+ $post_parent = get_post( $post_parent_id );
+
+ // terminate the shortcode execution if user cannot read the post or password-protected
+ if (
+ ( ! is_post_publicly_viewable( $post_parent->ID ) && ! current_user_can( 'read_post', $post_parent->ID ) )
+ || post_password_required( $post_parent ) ) {
+ return '';
+ }
+ }
+
if ( empty( $attachments ) ) {
return '';
}
$attachments = get_children( $args );
}
+ if ( ! empty( $args['post_parent'] ) ) {
+ $post_parent = get_post( $id );
+
+ // terminate the shortcode execution if user cannot read the post or password-protected
+ if ( ! current_user_can( 'read_post', $post_parent->ID ) || post_password_required( $post_parent ) ) {
+ return '';
+ }
+ }
+
if ( empty( $attachments ) ) {
return '';
}
'edit_posts' => 'edit_posts',
'edit_published_posts' => 'edit_published_posts',
'delete_published_posts' => 'delete_published_posts',
+ // Enables trashing draft posts as well.
+ 'delete_posts' => 'delete_posts',
'edit_others_posts' => 'edit_others_posts',
'delete_others_posts' => 'delete_others_posts',
),
$query_args['post_parent'] = $parent;
}
+ /*
+ * Maintain backward compatibility for `sort_column` key.
+ * Additionally to `WP_Query`, it has been supporting the `post_modified_gmt` field, so this logic will translate
+ * it to `post_modified` which should result in the same order given the two dates in the fields match.
+ */
$orderby = wp_parse_list( $parsed_args['sort_column'] );
- $orderby = array_map( 'trim', $orderby );
+ $orderby = array_map(
+ static function( $orderby_field ) {
+ $orderby_field = trim( $orderby_field );
+ if ( 'post_modified_gmt' === $orderby_field || 'modified_gmt' === $orderby_field ) {
+ $orderby_field = str_replace( '_gmt', '', $orderby_field );
+ }
+ return $orderby_field;
+ },
+ $orderby
+ );
if ( $orderby ) {
$query_args['orderby'] = array_fill_keys( $orderby, $parsed_args['sort_order'] );
}
*/
$query_args = apply_filters( 'get_pages_query_args', $query_args, $parsed_args );
- $query = new WP_Query( $query_args );
- $pages = $query->get_posts();
+ $pages = new WP_Query();
+ $pages = $pages->query( $query_args );
if ( $child_of || $hierarchical ) {
$pages = get_page_children( $child_of, $pages );
$result = wp_verify_nonce( $nonce, 'wp_rest' );
if ( ! $result ) {
+ add_filter( 'rest_send_nocache_headers', '__return_true', 20 );
return new WP_Error( 'rest_cookie_invalid_nonce', __( 'Cookie check failed' ), array( 'status' => 403 ) );
}
*/
$this->send_header( 'X-Content-Type-Options', 'nosniff' );
- /**
- * Filters whether to send nocache headers on a REST API request.
- *
- * @since 4.4.0
- *
- * @param bool $rest_send_nocache_headers Whether to send no-cache headers.
- */
- $send_no_cache_headers = apply_filters( 'rest_send_nocache_headers', is_user_logged_in() );
- if ( $send_no_cache_headers ) {
- foreach ( wp_get_nocache_headers() as $header => $header_value ) {
- if ( empty( $header_value ) ) {
- $this->remove_header( $header );
- } else {
- $this->send_header( $header, $header_value );
- }
- }
- }
-
/**
* Filters whether the REST API is enabled.
*
* $_GET['_method']. If that is not set, we check for the HTTP_X_HTTP_METHOD_OVERRIDE
* header.
*/
+ $method_overridden = false;
if ( isset( $_GET['_method'] ) ) {
$request->set_method( $_GET['_method'] );
} elseif ( isset( $_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'] ) ) {
$request->set_method( $_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'] );
+ $method_overridden = true;
}
$expose_headers = array( 'X-WP-Total', 'X-WP-TotalPages', 'Link' );
*/
$served = apply_filters( 'rest_pre_serve_request', false, $result, $request, $this );
+ /**
+ * Filters whether to send nocache headers on a REST API request.
+ *
+ * @since 4.4.0
+ * @since 6.3.2 Moved the block to catch the filter added on rest_cookie_check_errors() from rest-api.php
+ *
+ * @param bool $rest_send_nocache_headers Whether to send no-cache headers.
+ */
+ $send_no_cache_headers = apply_filters( 'rest_send_nocache_headers', is_user_logged_in() );
+
+ // send no cache headers if the $send_no_cache_headers is true
+ // OR if the HTTP_X_HTTP_METHOD_OVERRIDE is used but resulted a 4x response code.
+ if ( $send_no_cache_headers || ( true === $method_overridden && strpos( $code, '4' ) === 0 ) ) {
+ foreach ( wp_get_nocache_headers() as $header => $header_value ) {
+ if ( empty( $header_value ) ) {
+ $this->remove_header( $header );
+ } else {
+ $this->send_header( $header, $header_value );
+ }
+ }
+ }
+
if ( ! $served ) {
if ( 'HEAD' === $request->get_method() ) {
return null;
return $this->add_additional_fields_schema( $this->schema );
}
- // Do not cache this schema because all properties are derived from parent controller.
$schema = parent::get_item_schema();
/*
}
if ( ! empty( $prepared_args['search'] ) ) {
+ if ( ! current_user_can( 'list_users' ) ) {
+ $prepared_args['search_columns'] = array( 'ID', 'user_login', 'user_nicename', 'display_name' );
+ }
$prepared_args['search'] = '*' . $prepared_args['search'] . '*';
}
/**
return false;
}
+/**
+ * Returns a list of registered shortcode names found in the given content.
+ *
+ * Example usage:
+ *
+ * get_shortcode_tags_in_content( '[audio src="file.mp3"][/audio] [foo] [gallery ids="1,2,3"]' );
+ * // array( 'audio', 'gallery' )
+ *
+ * @since 6.3.2
+ *
+ * @param string $content The content to check.
+ * @return string[] An array of registered shortcode names found in the content.
+ */
+function get_shortcode_tags_in_content( $content ) {
+ if ( false === strpos( $content, '[' ) ) {
+ return array();
+ }
+
+ preg_match_all( '/' . get_shortcode_regex() . '/', $content, $matches, PREG_SET_ORDER );
+ if ( empty( $matches ) ) {
+ return array();
+ }
+
+ $tags = array();
+ foreach ( $matches as $shortcode ) {
+ $tags[] = $shortcode[2];
+
+ if ( ! empty( $shortcode[5] ) ) {
+ $deep_tags = get_shortcode_tags_in_content( $shortcode[5] );
+ if ( ! empty( $deep_tags ) ) {
+ $tags = array_merge( $tags, $deep_tags );
+ }
+ }
+ }
+
+ return $tags;
+}
+
/**
* Searches content for shortcodes and filter shortcodes through their hooks.
*
<?php
}
-// Attaches filters to enable theme previews in the Site Editor.
-if ( ! empty( $_GET['wp_theme_preview'] ) ) {
- add_filter( 'stylesheet', 'wp_get_theme_preview_path' );
- add_filter( 'template', 'wp_get_theme_preview_path' );
- add_action( 'init', 'wp_attach_theme_preview_middleware' );
- add_action( 'admin_head', 'wp_block_theme_activate_nonce' );
+/**
+ * Add filters and actions to enable Block Theme Previews in the Site Editor.
+ *
+ * The filters and actions should be added after `pluggable.php` is included as they may
+ * trigger code that uses `current_user_can()` which requires functionality from `pluggable.php`.
+ *
+ * @since 6.3.2
+ */
+function wp_initialize_theme_preview_hooks() {
+ if ( ! empty( $_GET['wp_theme_preview'] ) ) {
+ add_filter( 'stylesheet', 'wp_get_theme_preview_path' );
+ add_filter( 'template', 'wp_get_theme_preview_path' );
+ add_action( 'init', 'wp_attach_theme_preview_middleware' );
+ add_action( 'admin_head', 'wp_block_theme_activate_nonce' );
+ }
}
*
* @global string $wp_version
*/
-$wp_version = '6.3.1';
+$wp_version = '6.3.2';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.